:root {
  --bg: #7dd3fc;
  --ink: #1e3a5f;
  --muted: #4a6d8c;
  --accent: #ff5c7a;
  --font-display: 'Fredoka', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100dvh;
  padding: calc(1.1rem + var(--safe-top)) 1rem calc(5.2rem + var(--safe-bottom));
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 230, 109, 0.5), transparent 36%),
    radial-gradient(circle at 92% 4%, rgba(255, 92, 122, 0.32), transparent 34%),
    radial-gradient(circle at 78% 96%, rgba(94, 234, 212, 0.42), transparent 42%),
    linear-gradient(165deg, #9ae6ff 0%, #7dd3fc 48%, #bae6fd 100%);
}

.doc {
  width: min(100%, 40rem);
  margin: 0 auto;
  padding: 1.35rem 1.2rem 5.4rem;
  border-radius: 1.35rem;
  background: rgba(255, 252, 247, 0.94);
  border: 2px solid rgba(30, 58, 95, 0.12);
  box-shadow: 0 18px 40px rgba(12, 18, 32, 0.18);
}

.kicker {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 6vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.updated {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.88rem;
}

h2 {
  margin: 1.55rem 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

p,
li {
  font-size: 0.98rem;
}

p {
  margin: 0 0 0.75rem;
}

ul {
  margin: 0 0 0.75rem;
  padding-left: 1.15rem;
}

li {
  margin: 0 0 0.35rem;
}

a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 92, 122, 0.45);
}

.steps {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
}

.steps li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.65rem;
  align-items: start;
  margin: 0 0 0.95rem;
}

.steps b {
  display: block;
  margin-bottom: 0.12rem;
  font-family: var(--font-display);
  font-size: 1rem;
}

.n {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ffe66d;
  font-family: var(--font-display);
  font-size: 0.95rem;
  box-shadow: 0 3px 0 rgba(202, 138, 4, 0.35);
}

.tabs {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0.35rem 0.4rem calc(0.4rem + var(--safe-bottom));
  background: rgba(255, 252, 247, 0.94);
  border-top: 2px solid rgba(30, 58, 95, 0.1);
  backdrop-filter: blur(12px);
}

.tabs a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  border: 0;
  border-bottom: 0;
  border-radius: 0.85rem;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.tabs a.is-on {
  color: var(--ink);
  background: rgba(255, 230, 109, 0.55);
}

.nav {
  display: none;
}
