/* ─────────────────────────────────────────────────────────────────────────────
   Wundoria marketing site — wundoria.org
   Tokens matched 1:1 to the app (apps/app/src/theme.ts) and the 9.5 prototype:
   warm cream, orange script wordmark (masked + tinted like the prototype's
   .wordmark-tint), journey map with dashed path + circular world nodes,
   Fraunces italics for accents. Fonts: Fraunces · Nunito · Caveat.
   ──────────────────────────────────────────────────────────────────────────── */

:root {
  --cream: #fff8ef;
  --glow: #fcdcc6;
  --paper: #fffdfa;
  --ink: #3a2417;
  --soft-ink: #6b5444;
  --line: rgba(184, 120, 70, 0.14);
  --accent: #e8743b;
  --accent-deep: #c2521f;
  --accent-soft: #fbe0cf;
  --gold: #eba93d;
  --ok: #2c7a4b;
  --path: #d9c4ad;
  --shadow-card: 0 5px 14px rgba(120, 60, 20, 0.18);
  --shadow-lift: 0 12px 26px rgba(120, 60, 20, 0.18);
  --shadow-hero: 0 14px 32px rgba(120, 60, 20, 0.18);
  --r-sm: 11px;
  --r-md: 14px;
  --r-card: 16px;
  --r-lg: 20px;
  --r-xl: 24px;
  --font-title: "Fraunces", Georgia, serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --font-hand: "Caveat", cursive;
  --max: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent-deep); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }

/* ── wordmark (prototype technique: mask the lettering, tint it orange) ──── */

/* The official lettering (sparkles included) used as a mask and tinted —
   same technique as the app. Tint defaults to World-1 orange; set
   --wordmark-tint to any world's deep colour for a per-world overlay. */
.wordmark {
  display: inline-block;
  background: var(--wordmark-tint, var(--accent-deep));
  -webkit-mask: url("../assets/wordmark.png") center / contain no-repeat;
  mask: url("../assets/wordmark.png") center / contain no-repeat;
  aspect-ratio: 790 / 294;
}
.wordmark-wrap { position: relative; display: inline-block; line-height: 0; }

/* ── header ─────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px; max-width: var(--max); margin: 0 auto;
}
.site-header .logo { text-decoration: none; }
.site-header .wordmark { height: 34px; }
nav.main-nav { display: flex; gap: 22px; align-items: center; }
nav.main-nav a {
  text-decoration: none; color: var(--soft-ink);
  font-weight: 700; font-size: 15.5px;
}
nav.main-nav a:hover, nav.main-nav a[aria-current="page"] { color: var(--accent-deep); }
nav.main-nav a.cta {
  background: var(--accent); color: #fff;
  padding: 9px 18px; border-radius: 14px;
  box-shadow: 0 6px 14px rgba(232, 116, 59, 0.35);
}
nav.main-nav a.cta:hover { background: var(--accent-deep); }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  nav.main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 18px 22px; gap: 16px; align-items: flex-start; }
  nav.main-nav.open { display: flex; }
  .nav-toggle {
    display: block; background: none; border: 1.5px solid var(--line);
    border-radius: 10px; padding: 7px 12px; font-size: 18px; color: var(--ink);
    cursor: pointer; font-family: var(--font-body);
  }
}

/* ── hero (prototype splash/onboarding: peach gradient + glow + wordmark) ── */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 50% -140px, var(--glow), transparent 70%),
    linear-gradient(180deg, #fde3d0 0%, var(--cream) 62%);
  padding: 68px 0 44px;
  text-align: center;
}
.hero .hero-mark { width: min(62vw, 320px); }
.hero .kicker {
  margin-top: 14px;
  font-weight: 800; font-size: 17.5px; color: var(--soft-ink);
}
.hero .kicker .sp { color: var(--gold); }
.hero h1 {
  font-family: var(--font-title); font-weight: 600;
  font-size: clamp(38px, 6vw, 60px); line-height: 1.12;
  margin: 22px auto 18px; max-width: 16ch;
}
.hero h1 em, .accent-word {
  font-style: italic; color: var(--accent); font-weight: 500;
}
.hero .sub {
  max-width: 560px; margin: 0 auto 30px; font-size: 19px; color: var(--soft-ink);
}
.hero .characters {
  display: flex; justify-content: center; align-items: flex-end; gap: 34px;
  margin-top: 38px;
}
.hero .characters img { height: 190px; width: auto; filter: drop-shadow(0 10px 18px rgba(120,60,20,.22)); }
@media (max-width: 560px) { .hero .characters img { height: 140px; } }

/* ── buttons (prototype: filled orange serif + white chip) ─────────────── */

.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--font-title); font-weight: 600; font-size: 18px;
  border-radius: 18px; padding: 14px 30px; border: none;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 8px 18px rgba(232, 116, 59, 0.4);
}
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost {
  background: var(--paper); color: var(--accent-deep);
  border: 1.5px solid rgba(184, 120, 70, 0.3);
}
.btn-ghost:hover { border-color: var(--accent); }
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── trust strip ────────────────────────────────────────────────────────── */

.trust-strip {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.trust-strip .wrap {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 36px;
  padding: 16px 22px; font-size: 15.5px; font-weight: 700; color: var(--soft-ink);
}
.trust-strip span::before { content: "✓ "; color: var(--ok); font-weight: 900; }

/* ── sections ───────────────────────────────────────────────────────────── */

section.block { padding: 72px 0; }
section.block.tint { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.block h2 {
  font-family: var(--font-title); font-weight: 600;
  font-size: clamp(28px, 4vw, 40px); line-height: 1.2; margin-bottom: 12px;
}
.block h2 em { font-style: italic; color: var(--accent); font-weight: 500; }
.block .lede { color: var(--soft-ink); font-size: 18.5px; max-width: 640px; }
.center { text-align: center; }
.center .lede { margin: 0 auto; }

/* Section kicker — prototype's italic serif labels ("Nature missions") */
.hand {
  font-family: var(--font-title); font-style: italic; font-weight: 500;
  font-size: 21px; color: var(--accent-deep); margin-bottom: 4px;
}
.hand::after { content: " ✦"; color: var(--gold); font-style: normal; font-size: 0.75em; }
.script { font-family: var(--font-hand); font-size: 28px; color: var(--accent-deep); }

/* ── how it works ───────────────────────────────────────────────────────── */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 42px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px 24px;
  box-shadow: var(--shadow-card); text-align: left; position: relative;
}
.step .num {
  font-family: var(--font-title); font-style: italic; font-size: 30px;
  color: var(--accent); line-height: 1;
}
.step h3 { font-family: var(--font-title); font-size: 21px; font-weight: 600; margin: 10px 0 8px; }
.step p { color: var(--soft-ink); font-size: 16px; }

/* ── journey map (the prototype's signature 8-world map) ────────────────── */

.journey { max-width: 620px; margin: 46px auto 0; text-align: left; }

.greeting-card {
  display: flex; gap: 16px; align-items: center;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  padding: 18px 22px; margin-bottom: 34px;
}
.greeting-card .avatar {
  width: 58px; height: 58px; border-radius: 50%; flex: none;
  /* Show Mia's whole head, not a zoomed face */
  background: var(--accent-soft) url("../assets/mia.png") center 8% / 112% auto no-repeat;
  border: 2px solid #fff; box-shadow: var(--shadow-card);
}
.greeting-card h3 { font-family: var(--font-title); font-weight: 600; font-size: 20px; line-height: 1.3; }
.greeting-card p { font-size: 14.5px; color: var(--soft-ink); }

.jpath { position: relative; padding: 6px 0 2px; }
.jpath::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  border-left: 3px dashed var(--path); transform: translateX(-50%);
}
.jrow {
  position: relative; display: grid;
  grid-template-columns: 1fr 96px 1fr; align-items: center;
  margin-bottom: 22px;
}
.jrow:last-child { margin-bottom: 0; }
.jnode {
  grid-column: 2; justify-self: center; position: relative;
  width: 82px; height: 82px; border-radius: 50%;
  /* The node art (assets/nodes/) is pre-cropped 240×240 square, same files
     the app map uses — plain centred cover is the correct alignment. */
  background-size: cover; background-position: center;
  border: 3px solid #fff; box-shadow: var(--shadow-card);
}
.jrow.active .jnode { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(235, 169, 61, 0.35), var(--shadow-card); }
.jcard {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-card); box-shadow: var(--shadow-card);
  padding: 13px 16px;
}
.jrow.left .jcard { grid-column: 1; grid-row: 1; text-align: right; justify-self: end; }
.jrow.right .jcard { grid-column: 3; grid-row: 1; text-align: left; justify-self: start; }
.jcard h3 { font-family: var(--font-title); font-weight: 600; font-size: 18.5px; line-height: 1.25; }
.jcard .meta { font-size: 13px; font-weight: 700; color: var(--soft-ink); margin-top: 2px; }
.jcard .meta .free { color: var(--accent); }
.jcard .tagline { font-family: var(--font-title); font-style: italic; font-size: 14px; color: var(--accent-deep); margin-top: 4px; }

@media (max-width: 560px) {
  .jrow { grid-template-columns: 1fr 76px 1fr; }
  .jnode { width: 64px; height: 64px; }
  .jcard { padding: 11px 13px; }
  .jcard h3 { font-size: 16px; }
  .jcard .tagline { display: none; }
}

/* Grand keepsake card — the dashed gold card at the end of the map */
.keepsake-card {
  display: flex; gap: 16px; align-items: center; text-align: left;
  background: #fdeedd; border: 2px dashed var(--gold);
  border-radius: var(--r-lg); padding: 16px 20px; margin-top: 34px;
}
.keepsake-card .badge {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  background: var(--gold); color: #fff; font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card);
}
.keepsake-card h3 { font-family: var(--font-title); font-weight: 600; font-size: 19px; color: var(--accent-deep); }
.keepsake-card p { font-size: 14.5px; color: var(--soft-ink); }

/* ── promise ────────────────────────────────────────────────────────────── */

.promise-band {
  background:
    radial-gradient(900px 400px at 50% -100px, rgba(252, 220, 198, 0.55), transparent 70%),
    var(--paper);
}
.promise-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; margin-top: 38px; }
@media (max-width: 760px) { .promise-list { grid-template-columns: 1fr; } }
.promise-item {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 18px 20px; text-align: left;
}
.promise-item h3 { font-family: var(--font-title); font-size: 18px; font-weight: 600; margin-bottom: 5px; }
.promise-item p { font-size: 15.5px; color: var(--soft-ink); }

/* ── split panels (parents / teachers) ──────────────────────────────────── */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 42px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.panel {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 34px 30px; box-shadow: var(--shadow-card);
  text-align: left;
}
.panel .hand { font-size: 19px; }
.panel h3 { font-family: var(--font-title); font-size: 24px; font-weight: 600; margin: 4px 0 12px; }
.panel p { color: var(--soft-ink); margin-bottom: 12px; }
.panel ul { list-style: none; margin: 14px 0 20px; }
.panel ul li { padding-left: 26px; position: relative; margin-bottom: 9px; color: var(--soft-ink); }
.panel ul li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 900; }

/* ── pricing ────────────────────────────────────────────────────────────── */

.price-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 42px; }
@media (max-width: 820px) { .price-cards { grid-template-columns: 1fr; } }
.price-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 26px; text-align: center; box-shadow: var(--shadow-card);
}
.price-card.featured { border: 2px solid var(--accent); position: relative; }
.price-card.featured .tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 800;
  padding: 3px 14px; border-radius: 999px; white-space: nowrap;
  font-family: var(--font-body);
}
.price-card .amount { font-family: var(--font-title); font-size: 40px; font-weight: 600; }
.price-card .per { color: var(--soft-ink); font-size: 15px; margin-bottom: 10px; }
.price-card p { color: var(--soft-ink); font-size: 15.5px; }

.teacher-note {
  margin-top: 26px; text-align: center; font-size: 17px; color: var(--soft-ink);
}
.teacher-note strong { color: var(--ok); }

/* ── waitlist ───────────────────────────────────────────────────────────── */

.waitlist-box {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-xl); box-shadow: var(--shadow-hero);
  padding: 44px 36px; max-width: 620px; margin: 42px auto 0; text-align: center;
}
.waitlist-box h2 { margin-bottom: 8px; }
.waitlist-box .lede { margin: 0 auto 26px; font-size: 17px; }

form.waitlist { display: flex; flex-direction: column; gap: 14px; }
form.waitlist .row { display: flex; gap: 12px; }
@media (max-width: 560px) { form.waitlist .row { flex-direction: column; } }
form.waitlist input[type="email"], form.waitlist select {
  flex: 1; font-family: var(--font-body); font-size: 16.5px; color: var(--ink);
  padding: 13px 18px; border-radius: var(--r-md);
  border: 1.5px solid rgba(184, 120, 70, 0.3); background: var(--cream);
  outline: none; min-width: 0;
}
form.waitlist input[type="email"]:focus, form.waitlist select:focus { border-color: var(--accent); }
form.waitlist .privacy { font-size: 13.5px; color: var(--soft-ink); }
.form-msg { font-weight: 700; min-height: 24px; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: #b3403f; }

/* ── back-us page extras ────────────────────────────────────────────────── */

.tier-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 42px; }
@media (max-width: 820px) { .tier-cards { grid-template-columns: 1fr; } }
.tier {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 24px; box-shadow: var(--shadow-card); text-align: left;
}
.tier .amount { font-family: var(--font-title); font-style: italic; font-size: 26px; font-weight: 600; color: var(--accent-deep); }
.tier h3 { font-family: var(--font-title); font-size: 20px; font-weight: 600; margin: 4px 0 8px; }
.tier p { color: var(--soft-ink); font-size: 15.5px; }

.timeline { margin-top: 38px; border-left: 3px dashed var(--path); padding-left: 26px; }
.timeline .tl-item { margin-bottom: 26px; position: relative; }
.timeline .tl-item::before {
  content: ""; position: absolute; left: -33px; top: 6px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.timeline h3 { font-family: var(--font-title); font-size: 19px; font-weight: 600; }
.timeline p { color: var(--soft-ink); font-size: 15.5px; }

/* ── long-form article (promise page) ───────────────────────────────────── */

article.longform { max-width: 720px; margin: 0 auto; padding: 64px 22px 80px; }
article.longform h1 { font-family: var(--font-title); font-weight: 600; font-size: clamp(32px, 5vw, 46px); margin-bottom: 6px; }
article.longform .dedication { font-family: var(--font-hand); font-size: 26px; color: var(--accent-deep); margin-bottom: 26px; }
article.longform p { margin-bottom: 18px; color: var(--soft-ink); font-size: 17.5px; }
article.longform h2 { font-family: var(--font-title); font-weight: 600; font-size: 23px; margin: 34px 0 10px; color: var(--ink); }
article.longform .signoff { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 24px; font-style: italic; }

/* ── footer ─────────────────────────────────────────────────────────────── */

footer.site-footer {
  background: #f6ecdf; border-top: 1px solid var(--line);
  padding: 46px 0 40px; margin-top: 0;
}
footer.site-footer .cols {
  display: flex; flex-wrap: wrap; gap: 30px 60px; justify-content: space-between;
  max-width: var(--max); margin: 0 auto; padding: 0 22px;
}
footer.site-footer .brand .wordmark { height: 32px; margin-bottom: 10px; }
footer.site-footer p, footer.site-footer a { font-size: 14.5px; color: var(--soft-ink); }
footer.site-footer nav { display: flex; flex-direction: column; gap: 8px; }
footer.site-footer nav a { text-decoration: none; font-weight: 700; }
footer.site-footer nav a:hover { color: var(--accent-deep); }
footer.site-footer .fine { max-width: var(--max); margin: 30px auto 0; padding: 18px 22px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--soft-ink); }
