:root {
  --night: #15191d;
  --night-2: #1d2328;
  --night-3: #27303a;
  --ink: #1b1f22;
  --ink-soft: #56605d;
  --paper: #fffaf2;
  --paper-2: #fff1dc;
  --line: #ecdcc4;
  --sun: #ffb238;
  --sun-deep: #f2762e;
  --mint: #3ed6a6;
  --white: #ffffff;

  --pirate: #e9a23b;
  --starship: #4cc9f0;
  --military: #8fae5d;
  --fantasy: #ef6351;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(21, 25, 29, 0.12);
  --font-display: "Overpass", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--sun-deep); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.eyebrow {
  display: inline-block; font-family: var(--font-display); font-weight: 600;
  font-size: .85rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sun-deep); margin-bottom: .6rem;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Prototype ribbon ---------- */
.ribbon {
  background: var(--sun); color: var(--night); font-size: .9rem; font-weight: 600;
  text-align: center; padding: 8px 16px;
}
.ribbon a { color: var(--night); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(21, 25, 29, 0.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; }
.brand-mark { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: #d2dad8; text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--white); background: rgba(255,255,255,.08); }
.nav-toggle { display: none; background: none; border: 0; color: var(--white); padding: 8px; cursor: pointer; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column;
    background: var(--night); padding: 8px 16px 16px; border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  padding: 14px 24px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--sun); color: var(--night); box-shadow: 0 6px 0 var(--sun-deep); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--sun-deep); }
.btn-ghost { background: rgba(255,255,255,.08); color: var(--white); border: 1px solid rgba(255,255,255,.18); }

.play-badge {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 16px;
  border-radius: 14px; background: #000; color: #fff; text-decoration: none;
  border: 1px solid rgba(255,255,255,.25); position: relative;
}
.play-badge small { display: block; font-size: .7rem; opacity: .8; letter-spacing: .04em; text-transform: uppercase; }
.play-badge strong { display: block; font-size: 1.15rem; font-family: var(--font-display); font-weight: 600; line-height: 1.1; }
.play-badge svg { width: 28px; height: 28px; }
.play-badge.is-dev { cursor: default; opacity: .9; }
.play-badge .dev-tag {
  position: absolute; top: -10px; right: -10px; background: var(--mint); color: var(--night);
  font-size: .68rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; letter-spacing: .05em; text-transform: uppercase;
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1200px 500px at 80% -10%, #1f5a48 0%, transparent 60%),
              linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  color: var(--white); position: relative; overflow: hidden; padding: 72px 0 0;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 .hl { color: var(--sun); }
.hero .lead { color: #c8d1cf; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 28px; }
.hero-note { margin-top: 18px; font-size: .9rem; color: #97a39f; }
.hero-art { position: relative; min-height: 420px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 360px; }
}

/* phone mock */
.phone {
  width: 270px; margin: 0 auto; background: #0c0f12; border-radius: 38px; padding: 12px;
  box-shadow: 0 30px 60px rgba(0,0,0,.45), inset 0 0 0 2px #2c353d; position: relative; z-index: 2;
}
.phone-screen { background: #e8eef0; border-radius: 28px; overflow: hidden; height: 470px; position: relative; }
.map-bg { position: absolute; inset: 0; }
.nav-card {
  position: absolute; top: 14px; left: 12px; right: 12px; background: #0f7a5a; color: #fff;
  border-radius: 14px; padding: 12px 14px; display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: .95rem;
}
.nav-card svg { width: 30px; height: 30px; flex: none; }
.nav-card small { display: block; font-weight: 500; opacity: .85; font-size: .78rem; }
.bubble {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: calc(100% - 28px); background: var(--white); color: var(--ink); border-radius: 16px;
  padding: 12px 14px; box-shadow: 0 8px 20px rgba(0,0,0,.18); font-size: .92rem;
}
.bubble .who { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: .85rem; color: var(--ink-soft); margin-bottom: 4px; }
.bubble .who i { width: 10px; height: 10px; border-radius: 50%; background: var(--pirate); display: inline-block; }
.bubble p { margin: 0; font-weight: 500; transition: opacity .3s ease; }

.float-chip {
  position: absolute; z-index: 3; background: var(--white); color: var(--ink); border-radius: 999px;
  padding: 8px 14px; font-weight: 600; font-size: .85rem; box-shadow: var(--shadow); white-space: nowrap;
  animation: bob 5s ease-in-out infinite;
}
.float-chip.c1 { top: 40px; left: 0; }
.float-chip.c2 { top: 190px; right: -4px; animation-delay: -1.5s; }
.float-chip.c3 { bottom: 120px; left: 8px; animation-delay: -3s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 480px) { .float-chip { display: none; } }

/* road */
.road { height: 84px; background: #2a3036; margin-top: 56px; position: relative; overflow: hidden; }
.road::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 6px; transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, var(--sun) 0 48px, transparent 48px 96px);
  animation: drive 1.6s linear infinite;
}
@keyframes drive { from { background-position: 0 0; } to { background-position: -96px 0; } }
/* shape-shifting vehicle: car → pirate ship → spaceship → carriage → tank */
.vehicle {
  position: absolute; bottom: 8px; left: -120px; width: 100px; height: 56px; z-index: 2;
  animation: cruise 20s linear infinite;
}
.vehicle .v { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; animation: morph 20s infinite; }
.vehicle .v1 { animation-delay: 0s; }
.vehicle .v2 { animation-delay: 4s; }
.vehicle .v3 { animation-delay: 8s; }
.vehicle .v4 { animation-delay: 12s; }
.vehicle .v5 { animation-delay: 16s; }
.vehicle .v1 { opacity: 1; } /* visible before animations start */
@keyframes cruise { from { left: -120px; } to { left: calc(100% + 20px); } }
@keyframes morph {
  0%   { opacity: 0; transform: scale(.4) rotate(-8deg); }
  3%   { opacity: 1; transform: scale(1.12) rotate(0); }
  5%   { transform: scale(1); }
  18%  { opacity: 1; transform: scale(1) translateY(0); }
  20%  { opacity: 0; transform: scale(.4) rotate(8deg); }
  100% { opacity: 0; transform: scale(.4); }
}
.vehicle .poof {
  position: absolute; left: 50%; top: 50%; width: 80px; height: 80px; margin: -40px 0 0 -40px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,246,194,.9) 0 18%, rgba(255,178,56,.5) 30%, transparent 62%);
  opacity: 0; animation: poof 4s infinite 3.7s; pointer-events: none;
}
@keyframes poof { 0% { opacity: 0; transform: scale(.3); } 6% { opacity: 1; transform: scale(1.1); } 14%, 100% { opacity: 0; transform: scale(1.5); } }
@media (prefers-reduced-motion: reduce) {
  .road::after, .vehicle, .vehicle .v, .vehicle .poof, .float-chip { animation: none; }
  .vehicle { left: 10%; }
}

/* hero extras */
.hero-points { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px 20px; color: #c8d1cf; font-size: .95rem; font-weight: 500; }
.hero-hint { text-align: center; color: #97a39f; font-size: .85rem; margin: 14px 0 0; }
.bubble { display: flex; gap: 12px; align-items: center; }
.bubble-play {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--sun); color: var(--night); display: grid; place-items: center;
  box-shadow: 0 0 0 0 rgba(255,178,56,.6); animation: pulse 2s infinite;
}
.bubble-play svg { width: 22px; height: 22px; }
.bubble-play .i-pause { display: none; }
.bubble.playing .bubble-play .i-play { display: none; }
.bubble.playing .bubble-play .i-pause { display: inline; }
.bubble.playing .bubble-play { animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,178,56,.6); } 70% { box-shadow: 0 0 0 12px rgba(255,178,56,0); } 100% { box-shadow: 0 0 0 0 rgba(255,178,56,0); } }
@media (prefers-reduced-motion: reduce) { .bubble-play { animation: none; } }
.nav-links a.nav-cta { background: var(--sun); color: var(--night); font-weight: 600; }
.nav-links a.nav-cta:hover { background: #ffc35f; color: var(--night); }

/* privacy */
.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .privacy-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .privacy-grid { grid-template-columns: 1fr; } }
.p-card { background: var(--night-2); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 24px; }
.p-card .k { font-size: 1.8rem; display: block; margin-bottom: 10px; }
.p-card h3 { color: var(--mint); }
.p-card p { color: #c8d1cf; margin: 0; font-size: .97rem; }

/* beta */
.beta { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .beta { grid-template-columns: 1fr; gap: 32px; } }
.expect-title { margin-top: 28px; font-size: 1.15rem; }
.expect { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.expect li { position: relative; padding-left: 30px; color: var(--ink-soft); }
.expect li::before { content: "→"; position: absolute; left: 0; color: var(--sun-deep); font-weight: 700; }
.expect b { color: var(--ink); }
.beta-form {
  background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 28px;
  box-shadow: var(--shadow); display: grid; gap: 18px;
}
@media (max-width: 520px) { .beta-form { padding: 20px; } }
.beta-form label { display: grid; gap: 6px; }
.beta-form label > span { font-weight: 600; font-size: .95rem; }
.beta-form em { color: var(--sun-deep); font-style: normal; }
.beta-form em.opt { color: var(--ink-soft); font-weight: 400; font-size: .85rem; }
.beta-form small { color: var(--ink-soft); font-size: .82rem; }
.beta-form input[type=email], .beta-form input[type=text], .beta-form select {
  font: inherit; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); width: 100%;
}
.beta-form input:focus, .beta-form select:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 3px rgba(255,178,56,.25); }
.beta-form input[aria-invalid=true] { border-color: #d64545; }
.beta-form label.check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.beta-form label.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--sun-deep); }
.beta-form label.check span { font-weight: 500; }
.beta-form .btn { width: 100%; }
.form-note { font-size: .82rem; color: var(--ink-soft); margin: -6px 0 0; text-align: center; }
.form-status { margin: 0; font-weight: 600; text-align: center; min-height: 1.2em; }
.form-status.ok { color: #138a63; }
.form-status.err { color: #c03b3b; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--night); color: var(--white); }
.section-dark .lead { color: #c8d1cf; }
.section-head { margin-bottom: 48px; }

/* features */
.features { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.feature {
  grid-column: span 2; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: 0 2px 0 var(--line);
}
.feature:nth-child(4), .feature:nth-child(5) { grid-column: span 3; }
.feature .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.6rem; margin-bottom: 16px; background: var(--paper-2);
}
.feature p { color: var(--ink-soft); margin: 0; }
@media (max-width: 900px) {
  .features { grid-template-columns: 1fr 1fr; }
  .feature, .feature:nth-child(4), .feature:nth-child(5) { grid-column: span 1; }
  .feature:nth-child(5) { grid-column: span 2; }
}
@media (max-width: 600px) {
  .features { grid-template-columns: 1fr; }
  .feature:nth-child(5) { grid-column: span 1; }
}

/* ---------- Voice sampler ---------- */
.sampler {
  background: var(--night-2); border-radius: 28px; padding: 32px; color: var(--white);
  display: grid; grid-template-columns: 300px 1fr; gap: 32px; box-shadow: 0 20px 50px rgba(21,25,29,.25);
}
@media (max-width: 860px) { .sampler { grid-template-columns: 1fr; padding: 20px; } }
.theme-tabs { display: grid; gap: 10px; }
.theme-tab {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: var(--night-3); border: 2px solid transparent; color: var(--white); border-radius: 16px;
  padding: 14px 16px; cursor: pointer; font: inherit;
}
.theme-tab .emoji { font-size: 1.7rem; }
.theme-tab b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.theme-tab b + span { display: block; font-size: .85rem; color: #9eaaa7; }
.theme-tab[aria-selected="true"] { border-color: var(--accent, var(--sun)); background: #2e3a44; }
@media (max-width: 860px) {
  .theme-tabs { grid-template-columns: repeat(2, 1fr); }
  .theme-tab { padding: 10px 12px; gap: 10px; }
  .theme-tab b + span { display: none; }
}

.voice-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip {
  border: 1px solid rgba(255,255,255,.2); background: transparent; color: #e3eae8; font: inherit; font-weight: 600;
  padding: 8px 16px; border-radius: 999px; cursor: pointer; font-size: .92rem;
}
.chip[aria-pressed="true"] { background: var(--accent, var(--sun)); color: var(--night); border-color: transparent; }

.stage {
  background: linear-gradient(160deg, #25303a, #1c252c); border-radius: 20px; padding: 24px;
  min-height: 150px; display: flex; flex-direction: column; justify-content: center; position: relative;
  border: 1px solid rgba(255,255,255,.07);
}
.stage .label { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #9eaaa7; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.stage .quote { font-family: var(--font-display); font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 500; line-height: 1.3; margin: 0; }
.stage .plain { margin-top: 12px; font-size: .9rem; color: #9eaaa7; }
.stage .plain s { opacity: .8; }
.eq { display: inline-flex; gap: 3px; align-items: flex-end; height: 14px; }
.eq i { width: 3px; background: var(--accent, var(--sun)); border-radius: 2px; height: 30%; }
.playing .eq i { animation: eq .8s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.2s; } .eq i:nth-child(3) { animation-delay: -.4s; } .eq i:nth-child(4) { animation-delay: -.6s; }
@keyframes eq { 0%,100% { height: 25%; } 50% { height: 100%; } }

.actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; }
.act {
  background: var(--night-3); color: var(--white); border: 1px solid rgba(255,255,255,.1); border-radius: 14px;
  padding: 14px 12px; font: inherit; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 10px; justify-content: center;
  transition: background .15s ease, transform .1s ease;
}
.act:hover { background: #334049; }
.act:active { transform: scale(.97); }
.act .k { font-size: 1.2rem; }
.sampler-hint { font-size: .88rem; color: #9eaaa7; margin-top: 14px; }

/* ---------- Split sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 38px; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--mint); color: var(--night);
  display: grid; place-items: center; font-weight: 700; font-size: .85rem; margin-top: 1px;
}

.kids-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 520px) { .kids-board { grid-template-columns: 1fr 1fr; } }
.kid-card {
  background: var(--night-2); border: 1px solid rgba(255,255,255,.08); border-radius: 18px; padding: 18px;
  color: var(--white); text-align: left; font: inherit; cursor: pointer; transition: transform .15s ease, border-color .15s ease;
}
.kid-card:hover { transform: translateY(-3px); border-color: var(--starship); }
.kid-card .k { font-size: 1.8rem; display: block; margin-bottom: 6px; }
.kid-card b { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; display: block; }
.kid-card span { font-size: .85rem; color: #9eaaa7; }
.kid-card.playing { border-color: var(--starship); box-shadow: 0 0 0 3px rgba(76,201,240,.25); }
.kids-caption {
  grid-column: 1 / -1; background: rgba(76,201,240,.1); border: 1px dashed rgba(76,201,240,.5);
  border-radius: 14px; padding: 14px 16px; min-height: 64px; font-size: .98rem; color: #dff6ff;
}

/* easter eggs */
.egg-box {
  background: var(--white); border: 2px dashed var(--sun); border-radius: 24px; padding: 40px;
  display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center;
}
@media (max-width: 700px) { .egg-box { grid-template-columns: 1fr; text-align: center; padding: 28px 20px; } }
.egg {
  width: 120px; height: 150px; margin: 0 auto; cursor: pointer; border: 0; background: none; padding: 0;
  transition: transform .2s ease;
}
.egg:hover { transform: rotate(-6deg) scale(1.04); }
.egg.wobble { animation: wobble .6s ease; }
@keyframes wobble { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 50% { transform: rotate(10deg); } 75% { transform: rotate(-5deg); } }
.egg-out { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); min-height: 1.6em; margin-top: 8px; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  width: 40px; height: 40px; border-radius: 12px; background: var(--night); color: var(--sun);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin-bottom: 14px;
}
.step p { color: var(--ink-soft); margin: 0; font-size: .97rem; }

/* disclaimer */
.notice {
  background: #fff4e0; border: 1px solid #f5c983; border-left: 6px solid var(--sun-deep); border-radius: var(--radius-sm);
  padding: 22px 24px; display: grid; gap: 6px;
}
.notice h3 { margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.notice ul { margin: 0; padding-left: 20px; color: var(--ink-soft); }
.notice li { margin-bottom: 4px; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--sun-deep), var(--sun)); color: var(--night); border-radius: 28px; padding: 48px; text-align: center; }
.cta-band .lead { color: #3a2a12; margin-inline: auto; }
.cta-band .row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.cta-band .btn-dark { background: var(--night); color: var(--white); }
@media (max-width: 600px) { .cta-band { padding: 32px 20px; } }

/* ---------- Guide page ---------- */
.page-hero { background: linear-gradient(180deg, var(--night), var(--night-2)); color: var(--white); padding: 64px 0 56px; }
.page-hero .lead { color: #c8d1cf; }
.guide { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .guide { grid-template-columns: 1fr; } .toc { display: none; } }
.toc { position: sticky; top: 88px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.toc b { font-family: var(--font-display); display: block; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: .95rem; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--sun-deep); }
.doc > section { padding: 0 0 56px; scroll-margin-top: 90px; }
.doc h2 { font-size: 2rem; }
.doc h3 { margin-top: 1.4em; }
.doc ol.numbered { padding-left: 0; list-style: none; counter-reset: n; display: grid; gap: 14px; }
.doc ol.numbered > li {
  counter-increment: n; position: relative; padding: 16px 18px 16px 64px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.doc ol.numbered > li::before {
  content: counter(n); position: absolute; left: 16px; top: 14px; width: 32px; height: 32px; border-radius: 10px;
  background: var(--night); color: var(--sun); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600;
}
.doc ol.numbered > li > b { display: block; }
.doc ol.numbered p { margin: 4px 0 0; color: var(--ink-soft); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
table { border-collapse: collapse; width: 100%; min-width: 480px; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--paper-2); font-family: var(--font-display); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 18px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--font-display); font-size: 1.4rem; line-height: 1; color: var(--sun-deep); }
details[open] summary::after { content: "–"; }
details p { color: var(--ink-soft); }
.callout { background: #e8fbf4; border: 1px solid #a8ebd4; border-radius: var(--radius-sm); padding: 16px 18px; margin: 16px 0; }
.callout.warn { background: #fff4e0; border-color: #f5c983; }

.contact-card {
  background: var(--night); color: var(--white); border-radius: 24px; padding: 36px;
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.contact-card p { color: #c8d1cf; margin: 0; }
.contact-card .mail { font-family: var(--font-display); font-size: clamp(1.1rem, 3vw, 1.5rem); color: var(--sun); word-break: break-all; text-decoration: none; }
@media (max-width: 700px) { .contact-card { grid-template-columns: 1fr; padding: 28px 20px; } }

/* ---------- Footer ---------- */
footer { background: var(--night); color: #97a39f; padding: 48px 0 32px; font-size: .92rem; }
footer .wrap { display: grid; gap: 24px; }
.foot-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; align-items: center; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: #e3eae8; text-decoration: none; }
footer a:hover { color: var(--sun); }
.foot-small { border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; font-size: .82rem; line-height: 1.6; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.45rem; margin-top: 2em; }
.legal p, .legal li { color: var(--ink-soft); }
.legal b { color: var(--ink); }
.legal ul { padding-left: 20px; display: grid; gap: 8px; }
.legal .callout { margin-top: 0; }
