/* ============================================================================
   White Whale — Sea-Quest design system (marketing site)
   The White Whale Crew, est. 2026 · Moby finds it, you land it.
   Bright cozy nautical adventure-game. Sticker cards: thick navy outline +
   hard offset shadow + generous rounding. One coral action, one gold coin.
   Matches the app's sea-quest tokens so site ↔ product feel like one world.
   ========================================================================== */

:root {
  /* Ocean ground */
  --sky:      #A7E6F7;
  --sea:      #33ADE0;
  --sea-deep: #1685C4;

  /* Surfaces */
  --card:     #FFFFFF;
  --deck:     #EFFAFE;   /* pale-sky panel that white cards sit on */
  --sand:     #FFF6E0;
  --line:     rgba(20, 58, 82, .16);

  /* Ink — text + ALL outlines */
  --ink:       #143A52;
  --ink-soft:  #3E6478;
  --ink-faint: #7C9AAB;

  /* Semantic accents (each single-purpose) */
  --coral:    #FF6A42;   /* THE one primary action */
  --coral-d:  #E24C28;
  --gold:     #FFC23D;   /* coins, badges, sparkle */
  --gold-d:   #E79A12;
  --seaglass: #22C08C;   /* prices / positive */
  --grape:    #7C5CE6;

  /* Token aliases kept so existing inline styles still resolve */
  --ground:   var(--sky);
  --accent:   var(--coral);
  --accent-2: var(--coral-d);

  --font-display: 'Fredoka', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-hand:    'Caveat', 'Segoe Script', cursive;
  --font-body:    system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --radius:    16px;
  --radius-lg: 24px;
  --shadow-card: 0 5px 0 rgba(20, 58, 82, .14);
  --shadow-pop:  0 4px 0 var(--ink);

  --measure: 64ch;
  --pad: clamp(1.15rem, 5vw, 3rem);
  --maxw: 1080px;
}

/* minimal reset (standalone pages get no host reset) */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: linear-gradient(180deg, #B7ECF9 0%, #7FD2EF 22%, #46B4E4 55%, #1F92CF 100%);
  background-attachment: fixed;
  min-height: 100vh;
}
/* Baked atmosphere — sun glow top-right + a few soft bubbles. Decorative. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(420px 420px at 88% -8%, rgba(255, 236, 150, .55), transparent 70%),
    radial-gradient(120px 120px at 10% 22%, rgba(255,255,255,.20), transparent 70%),
    radial-gradient(80px 80px at 82% 42%, rgba(255,255,255,.16), transparent 70%),
    radial-gradient(60px 60px at 26% 74%, rgba(255,255,255,.14), transparent 70%);
}

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

/* ── Type ─────────────────────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.24rem; line-height: 1.2; }
p { margin: 0; }
a { color: inherit; }

.label { font-family: var(--font-display); font-weight: 600; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.label--accent { color: var(--coral); }

/* ── Top bar ──────────────────────────────────────────────────────────── */
.topbar { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.82); backdrop-filter: blur(8px); border-bottom: 2.5px solid var(--ink); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; flex-wrap: wrap; }
.brandmark { display: flex; align-items: center; gap: .55rem; }
.brandmark b { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .005em; }
.topbar .prepared { color: var(--ink-soft); }
.topbar .prepared span { color: var(--ink); }
.topbar .foot__links a { font-weight: 600; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; }
.hero__grid { position: relative; z-index: 1; padding-block: clamp(3rem, 8vw, 5.5rem); display: grid; gap: clamp(1.1rem, 2.6vw, 1.7rem); max-width: 46rem; }
.hero__moby { width: clamp(120px, 20vw, 190px); height: auto; margin-bottom: -.4rem; animation: bob 4.5s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
@media (prefers-reduced-motion: reduce) { .hero__moby { animation: none; } }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; flex-wrap: wrap; background: var(--gold); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 999px; padding: .3rem .85rem; font-size: .72rem; box-shadow: 0 3px 0 rgba(20,58,82,.18); width: max-content; max-width: 100%; }
.hero h1 { font-size: clamp(2.4rem, 6.4vw, 4.2rem); letter-spacing: -.02em; }
.hero .lede { font-size: clamp(1.08rem, 1.9vw, 1.3rem); color: var(--ink); font-weight: 500; max-width: 36rem; line-height: 1.45; }
.hero .lede b { font-weight: 700; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { font-family: var(--font-display); font-weight: 500; font-size: .78rem; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: .3rem .8rem; box-shadow: 0 2px 0 rgba(20,58,82,.16); }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .4rem; }
.btn { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-weight: 600; font-size: 1rem; padding: .72rem 1.4rem; border-radius: 999px; text-decoration: none; border: 3px solid var(--ink); cursor: pointer; transition: transform .1s ease, box-shadow .1s ease, background .12s ease; }
.btn--primary { background: var(--coral); color: #fff; box-shadow: 0 5px 0 var(--ink); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.btn--primary:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.btn--ghost { background: #fff; color: var(--ink); box-shadow: 0 4px 0 rgba(20,58,82,.2); }
.btn--ghost:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(20,58,82,.2); }
.btn--ghost:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(20,58,82,.2); }

/* ── Section decks (float on the ocean) ──────────────────────────────── */
main > section { background: var(--deck); border: 3px solid var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: clamp(1.6rem, 4.5vw, 3rem); margin-block: clamp(1.1rem, 3vw, 1.8rem); }
main > section.wrap { max-width: var(--maxw); }
.sec-head { display: grid; gap: .6rem; max-width: var(--measure); margin-bottom: clamp(1.3rem, 3.5vw, 2.2rem); }
.sec-head p.sub { color: var(--ink-soft); font-size: 1.05rem; font-weight: 500; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ── Steps ────────────────────────────────────────────────────────────── */
.steps { display: grid; gap: 1rem; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: #fff; border: 2.5px solid var(--ink); border-radius: var(--radius); padding: 1.4rem 1.4rem; display: grid; gap: .5rem; align-content: start; box-shadow: 0 4px 0 rgba(20,58,82,.14); }
.step__n { font-family: var(--font-display); font-weight: 600; font-size: .8rem; letter-spacing: .04em; color: var(--coral); }
.step p { color: var(--ink-soft); font-size: .96rem; }

/* ── Cards ────────────────────────────────────────────────────────────── */
.cards { display: grid; gap: 1rem; }
@media (min-width: 680px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { background: #fff; border: 2.5px solid var(--ink); border-radius: var(--radius); padding: 1.4rem 1.4rem; display: grid; gap: .5rem; box-shadow: 0 4px 0 rgba(20,58,82,.14); }
.card__ic { color: var(--coral); }
.card p { color: var(--ink-soft); font-size: .97rem; }

/* ── Ledger (is / is-not) ─────────────────────────────────────────────── */
.ledger { display: grid; gap: 1rem; }
@media (min-width: 680px) { .ledger { grid-template-columns: 1fr 1fr; } }
.ledger__col { border: 2.5px solid var(--ink); border-radius: var(--radius); padding: 1.3rem 1.4rem; background: #fff; box-shadow: 0 4px 0 rgba(20,58,82,.14); }
.ledger__col h3 { display: flex; align-items: center; gap: .5rem; margin-bottom: .8rem; }
.ledger__col.are h3 { color: var(--seaglass); }
.ledger__col.arenot h3 { color: var(--ink-faint); }
.ledger ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .6rem; }
.ledger li { display: flex; gap: .55rem; align-items: flex-start; color: var(--ink-soft); font-size: .97rem; line-height: 1.45; }
.ledger li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .5rem; border-radius: 3px; }
.ledger .are li::before { background: var(--seaglass); }
.ledger .arenot li::before { background: #fff; border: 2px solid var(--ink-faint); }
.ledger .arenot li { text-decoration: line-through; text-decoration-color: var(--line); }

/* ── Ask ──────────────────────────────────────────────────────────────── */
.ask { display: grid; gap: 1rem; }
@media (min-width: 720px) { .ask { grid-template-columns: 1fr 1fr; } }
.ask__item { border: 2.5px solid var(--ink); border-left: 6px solid var(--coral); border-radius: var(--radius); padding: 1.3rem 1.4rem; background: #fff; display: grid; gap: .45rem; box-shadow: 0 4px 0 rgba(20,58,82,.14); }
.ask__item p { color: var(--ink-soft); font-size: .97rem; }

/* ── Stage (definition rows) ─────────────────────────────────────────── */
.stage { display: grid; gap: 1.3rem; max-width: var(--measure); }
.stage dl { margin: 0; display: grid; gap: 1rem; }
.stage .row { display: grid; gap: .25rem; padding-bottom: 1rem; border-bottom: 2px dashed var(--line); }
.stage .row:last-child { border-bottom: 0; padding-bottom: 0; }
.stage dt { font-family: var(--font-display); font-weight: 600; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--coral); }
.stage dd { margin: 0; color: var(--ink-soft); }
.stage dd b { color: var(--ink); font-weight: 700; }

/* ── Footer ───────────────────────────────────────────────────────────── */
footer { padding-block: clamp(2rem, 6vw, 3.5rem); }
.foot { background: var(--ink); color: #EAF6FC; border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.4rem); display: grid; gap: 1.4rem; box-shadow: 0 6px 0 rgba(20,58,82,.35); }
.foot__top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1.4rem; }
.foot .brandmark b { color: #fff; }
.foot .label { color: #8FC7DF; }
.foot__links { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; }
.foot__links a { color: #CFE9F5; text-decoration: none; font-size: .92rem; font-weight: 500; }
.foot__links a:hover { color: #fff; }
.disclosure { font-size: .82rem; color: #9FCFE4; max-width: 60ch; line-height: 1.5; border-top: 1px solid rgba(255,255,255,.16); padding-top: 1.2rem; }
.disclosure b { color: #EAF6FC; }

a:focus-visible, .btn:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

/* ── Legal / prose pages ─────────────────────────────────────────────── */
.prose { max-width: var(--measure); margin-block: clamp(1.4rem, 4vw, 2.2rem); background: #fff; border: 3px solid var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: clamp(1.6rem, 4.5vw, 2.6rem); display: grid; gap: 1rem; }
.prose h1 { font-family: var(--font-display); }
.prose h2 { font-size: 1.4rem; margin-top: 1.2rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .5rem; }
.prose a { color: var(--sea-deep); font-weight: 600; }
