/* ==========================================================================
   WonderSpy — wonderspy.app
   Design tokens mirror the iOS app (Core/UI/style/Theme.swift, CategoryColors.swift)
   Display type: Baloo 2  (web stand-in for ChalkboardSE)
   Body type:    Nunito   (web stand-in for SF Rounded)
   ========================================================================== */

:root {
  /* Surfaces */
  --cream:        #FCF7F0;   /* Color.pastelBackground */
  --cream-deep:   #F6EDDF;
  --card:         #FFFFFF;
  --forest:       #14332C;   /* dark parent-trust panel */
  --forest-soft:  #1D473D;

  /* Ink */
  --ink:          #1F3330;   /* Color.pastelText */
  --ink-soft:     #4C6159;
  --ink-faint:    #788C85;
  --on-dark:      #F3EEE4;
  --on-dark-soft: #BFD3CB;

  /* Brand */
  --orange:       #F4853A;   /* brand accent */
  --orange-warm:  #FFA833;
  --orange-cta:   #CE5A0C;   /* AA-safe orange for white text */
  --orange-cta-d: #AF430A;
  --orange-text:  #A8430B;
  --teal:         #009E85;   /* Color.badgeEasy */
  --teal-deep:    #05705F;
  --camera-teal:  #6BA89A;
  --green:        #27AE60;

  /* Pastels */
  --mint:    #E0F5EB;
  --yellow:  #FCF5D9;
  --peach:   #FCEBE6;
  --sky:     #DBF2FC;
  --pink:    #FCE8ED;
  --lav:     #E6DBFA;

  /* Category palettes (CategoryColors.swift) */
  --nature-bg:  #E0EDC7;  --nature-alt:  #D1E0B8;  --nature-ink:  #405724;
  --wild-bg:    #F7EBD6;  --wild-alt:    #F5E0C7;  --wild-ink:    #634D2E;
  --rainbow-bg: #E6DBFA;  --rainbow-alt: #DBE8FA;  --rainbow-ink: #423870;
  --traffic-bg: #D1EDF7;  --traffic-alt: #C2DBF5;  --traffic-ink: #24547A;
  --buddy-bg:   #FAE4F0;  --buddy-alt:   #FBD5E5;  --buddy-ink:   #A64C7E;
  --house-bg:   #FCD6CC;  --house-alt:   #FCE3C4;  --house-ink:   #70383D;

  /* Form */
  --r-sm: 12px; --r-md: 20px; --r-lg: 28px; --r-xl: 40px; --r-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(31, 51, 48, .06);
  --shadow-md: 0 10px 30px rgba(31, 51, 48, .09);
  --shadow-lg: 0 24px 60px rgba(31, 51, 48, .14);
  --ring: 0 0 0 4px rgba(244, 133, 58, .35);

  --maxw: 1140px;
  --gutter: 20px;

  --font-display: "Baloo 2", "Chalkboard SE", "Comic Sans MS", system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--orange-text); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--orange-cta-d); }
:focus-visible { outline: 3px solid var(--orange-cta); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); }
h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
p  { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
strong { font-weight: 800; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--r-sm) 0; font-weight: 700;
}
.skip:focus { left: 0; }

/* ---------- Layout ---------- */
.wrap { width: min(var(--maxw), 100% - (var(--gutter) * 2)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 116px) 0; position: relative; }
.section--tight { padding: clamp(44px, 6vw, 72px) 0; }
.center { text-align: center; }
.lede { font-size: clamp(1.05rem, 1.7vw, 1.25rem); color: var(--ink-soft); max-width: 62ch; }
.center .lede { margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 800; font-size: .8rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal-deep); background: var(--mint);
  padding: 7px 16px; border-radius: var(--r-pill); margin-bottom: 18px;
}
.eyebrow--warm { color: var(--orange-text); background: var(--peach); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 800; font-size: 1.0625rem;
  padding: 16px 30px; border-radius: var(--r-pill); border: 0;
  text-decoration: none; cursor: pointer; min-height: 56px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: linear-gradient(180deg, var(--orange-cta), var(--orange-cta-d));
  color: #fff; box-shadow: 0 8px 20px rgba(175, 67, 10, .32), inset 0 1px 0 rgba(255,255,255,.28);
}
.btn--primary:hover { color: #fff; box-shadow: 0 12px 28px rgba(175, 67, 10, .4), inset 0 1px 0 rgba(255,255,255,.28); }
.btn--ghost {
  background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); border: 2px solid rgba(31,51,48,.1);
}
.btn--ghost:hover { color: var(--ink); border-color: rgba(31,51,48,.22); }
.btn--onDark { background: #fff; color: var(--forest); }
.btn--onDark:hover { color: var(--forest); }
.btn--block { width: 100%; }
.btn-note { font-size: .875rem; color: var(--ink-faint); margin: 12px 0 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(252, 247, 240, .88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(31, 51, 48, .07);
}
.nav { display: flex; align-items: center; gap: 18px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-weight: 700; font-size: .97rem; }
.nav-links a:hover { color: var(--ink); }
.nav .btn { padding: 11px 22px; min-height: 46px; font-size: .97rem; white-space: nowrap; }
.nav-cta { margin-left: 8px; }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 6vw, 78px) 0 clamp(56px, 7vw, 92px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -20% auto -20%; height: 130%;
  background:
    radial-gradient(48% 42% at 78% 22%, rgba(255, 168, 51, .22), transparent 70%),
    radial-gradient(44% 40% at 12% 70%, rgba(0, 158, 133, .14), transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 4vw, 60px); align-items: center; position: relative; }
.hero h1 { margin-bottom: .35em; }
.hero h1 .swash { color: var(--orange-text); }
.hero .lede { font-size: clamp(1.1rem, 1.8vw, 1.32rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 22px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.trust-row li {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid rgba(31,51,48,.09); box-shadow: var(--shadow-sm);
  padding: 8px 15px; border-radius: var(--r-pill); font-size: .875rem; font-weight: 700; color: var(--ink-soft);
}
.trust-row svg { flex: none; }

/* Hero art */
.hero-art { position: relative; display: grid; place-items: center; min-height: 380px; }
.hero-blob {
  position: absolute; inset: 8% 4%; border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%;
  background: linear-gradient(150deg, var(--mint), var(--sky) 55%, var(--lav));
  filter: blur(2px); opacity: .85;
}
.hero-scout { position: relative; width: min(84%, 380px); filter: drop-shadow(0 26px 40px rgba(31,51,48,.22)); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.float-card {
  position: absolute; background: #fff; border-radius: var(--r-md); padding: 11px 15px;
  box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: .88rem; white-space: nowrap;
}
.float-card small { display: block; font-weight: 700; font-size: .74rem; color: var(--ink-faint); }
.float-card img { width: 34px; height: 34px; object-fit: contain; }
.float-card--a { top: 4%; left: -2%; animation: bob 7s ease-in-out infinite .4s; }
.float-card--b { bottom: 12%; right: -4%; animation: bob 6.5s ease-in-out infinite .9s; }
.float-card--c { bottom: 38%; left: -6%; background: var(--nature-bg); animation: bob 7.5s ease-in-out infinite 1.4s; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { margin-inline: auto; }
  .hero-cta, .trust-row { justify-content: center; }
  .hero-art { order: -1; min-height: 320px; margin-bottom: 8px; }
  .hero-scout { width: min(70%, 300px); }
  .float-card--a { top: 2%; left: 0; }
  .float-card--b { bottom: 6%; right: 0; }
  .float-card--c { display: none; }
}

/* ---------- Stat band ---------- */
.stats { background: var(--forest); color: var(--on-dark); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1; color: var(--orange-warm); }
.stat span { font-size: .92rem; color: var(--on-dark-soft); font-weight: 700; }
@media (max-width: 680px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 14px; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; counter-reset: step; }
.step {
  background: #fff; border-radius: var(--r-lg); padding: 30px 24px 26px; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(31,51,48,.06); position: relative;
}
.step-num {
  counter-increment: step; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(160deg, var(--orange-warm), var(--orange)); color: #4a2205;
  font-family: var(--font-display); font-weight: 800; font-size: 1.25rem;
}
.step-num::before { content: counter(step); }
.step h3 { margin-bottom: .35em; }
.step p { margin: 0; color: var(--ink-soft); font-size: .97rem; }
@media (max-width: 940px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Callout ---------- */
.callout {
  margin-top: 44px; background: var(--yellow); border: 2px dashed rgba(244,133,58,.45);
  border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px);
  display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: center;
}
.callout img { width: 96px; }
.callout h3 { margin-bottom: .25em; }
.callout p { margin: 0; color: var(--ink-soft); }
@media (max-width: 620px) { .callout { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

/* ---------- Worlds ---------- */
.worlds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 46px; }
.worlds--six { grid-template-columns: repeat(3, 1fr); max-width: 980px; margin-inline: auto; }
.world {
  border-radius: var(--r-lg); padding: 20px 22px 24px; min-height: 208px;
  display: flex; flex-direction: column; gap: 6px;
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.world-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; min-height: 34px; }
.world .world-ico { font-size: 1.9rem; line-height: 1; }
.world h3 { font-size: 1.18rem; margin: 0; }
.world p { margin: 0; font-size: .9rem; opacity: .85; font-weight: 600; }
.world-tag {
  background: rgba(255,255,255,.75); border-radius: var(--r-pill); padding: 4px 11px;
  font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  white-space: nowrap; flex: none;
}
.w-nature  { background: linear-gradient(160deg, var(--nature-bg), var(--nature-alt));   color: var(--nature-ink); }
.w-wild    { background: linear-gradient(160deg, var(--wild-bg), var(--wild-alt));       color: var(--wild-ink); }
.w-rainbow { background: linear-gradient(160deg, var(--rainbow-bg), var(--rainbow-alt)); color: var(--rainbow-ink); }
.w-traffic { background: linear-gradient(160deg, var(--traffic-bg), var(--traffic-alt)); color: var(--traffic-ink); }
.w-buddy   { background: linear-gradient(160deg, var(--buddy-bg), var(--buddy-alt));     color: var(--buddy-ink); }
.w-house   { background: linear-gradient(160deg, var(--house-bg), var(--house-alt));     color: var(--house-ink); }
.w-sky     { background: linear-gradient(160deg, var(--sky), #C8E4F7);                   color: #1B4C6B; }
.w-rain    { background: linear-gradient(160deg, var(--mint), #CFEDDF);                  color: #17564A; }
@media (max-width: 940px) { .worlds, .worlds--six { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .worlds, .worlds--six { grid-template-columns: 1fr; } }

/* ---------- Split rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 68px); align-items: center; }
.split--flip .split-media { order: -1; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--flip .split-media { order: 0; }
}
.tick { list-style: none; padding: 0; margin: 22px 0 0; }
.tick li { position: relative; padding-left: 36px; margin-bottom: 14px; color: var(--ink-soft); }
.tick li strong { color: var(--ink); }
.tick li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- WonderCard mock ---------- */
.wondercard {
  background: #fff; border-radius: var(--r-xl); padding: 18px; box-shadow: var(--shadow-lg);
  max-width: 380px; margin-inline: auto; transform: rotate(-1.6deg);
  border: 1px solid rgba(31,51,48,.07);
}
.wondercard-photo {
  border-radius: var(--r-lg); aspect-ratio: 4 / 3; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--wild-bg), var(--nature-bg));
  position: relative; overflow: hidden;
}
.wondercard-photo img { width: 58%; filter: drop-shadow(0 12px 18px rgba(31,51,48,.18)); }
.wc-new {
  position: absolute; top: 14px; left: 14px; background: var(--orange); color: #fff;
  font-weight: 800; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: var(--r-pill);
}
.wondercard-body { padding: 18px 8px 6px; }
.wc-name { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; line-height: 1.1; margin: 0; }
.wc-local { font-family: var(--font-display); font-size: 1.15rem; color: var(--teal-deep); margin: 2px 0 12px; font-weight: 700; }
.wc-fact { font-size: .97rem; color: var(--ink-soft); margin: 0 0 14px; }
.wc-row { display: flex; flex-wrap: wrap; gap: 8px; }
.wc-chip {
  display: inline-flex; align-items: center; gap: 6px; background: var(--cream-deep);
  border-radius: var(--r-pill); padding: 7px 14px; font-size: .82rem; font-weight: 800; color: var(--ink-soft);
}
.wc-chip--ask { background: var(--peach); color: var(--orange-text); }
.wc-safety {
  margin-top: 14px; background: var(--mint); border-radius: var(--r-sm); padding: 10px 14px;
  font-size: .82rem; font-weight: 700; color: var(--teal-deep);
}

/* ---------- Titles ladder ---------- */
.ladder { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.ladder li {
  list-style: none; background: #fff; border: 1px solid rgba(31,51,48,.08); box-shadow: var(--shadow-sm);
  border-radius: var(--r-pill); padding: 9px 18px; font-weight: 800; font-size: .92rem; color: var(--ink-soft);
}
.ladder li:first-child { background: var(--mint); color: var(--teal-deep); border-color: transparent; }
.ladder li:last-child { background: linear-gradient(135deg, var(--orange-warm), var(--orange)); color: #4a2205; border-color: transparent; }

/* ---------- Parents (dark) ---------- */
.parents { background: var(--forest); color: var(--on-dark); }
.parents h2, .parents h3 { color: #fff; }
.parents .lede { color: var(--on-dark-soft); }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 46px; }
.promise {
  background: var(--forest-soft); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-lg); padding: 26px 24px;
}
.promise h3 { font-size: 1.15rem; margin-bottom: .4em; }
.promise p { margin: 0; color: var(--on-dark-soft); font-size: .95rem; }
.promise-ico {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(255, 168, 51, .16); margin-bottom: 16px; color: var(--orange-warm);
}
.promise-ico svg { width: 24px; height: 24px; }
@media (max-width: 940px) { .promise-grid { grid-template-columns: repeat(2, 1fr); } }
.promise-grid--three { grid-template-columns: repeat(3, 1fr); max-width: 980px; margin-inline: auto; }
@media (max-width: 940px) { .promise-grid--three { grid-template-columns: 1fr; max-width: 520px; } }
@media (max-width: 560px) { .promise-grid { grid-template-columns: 1fr; } }

/* Dashboard mock */
.dash {
  background: #fff; color: var(--ink); border-radius: var(--r-xl); padding: 26px;
  box-shadow: var(--shadow-lg); max-width: 420px; margin-inline: auto;
}
.dash-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.dash-head span { font-weight: 800; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.dash-hero { background: var(--mint); border-radius: var(--r-md); padding: 20px; text-align: center; margin-bottom: 14px; }
.dash-hero b { display: block; font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--teal-deep); }
.dash-hero span { font-weight: 700; color: var(--teal-deep); font-size: .92rem; }
.dash-hero em { display: block; font-style: normal; font-size: .82rem; color: var(--green); font-weight: 800; margin-top: 6px; }
.dash-rows { display: grid; gap: 9px; }
.dash-row { display: flex; justify-content: space-between; align-items: center; background: var(--cream); border-radius: var(--r-sm); padding: 12px 16px; font-size: .94rem; font-weight: 700; }
.dash-row b { font-family: var(--font-display); font-size: 1.15rem; }
.dash-foot { margin: 16px 0 0; font-size: .8rem; color: var(--ink-faint); text-align: center; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 46px; align-items: start; }
.plan {
  background: #fff; border-radius: var(--r-xl); padding: 34px 30px; box-shadow: var(--shadow-sm);
  border: 2px solid rgba(31,51,48,.07);
}
.plan--hero { border-color: var(--orange); box-shadow: var(--shadow-md); position: relative; }
.plan-flag {
  position: absolute; top: -14px; left: 30px; background: linear-gradient(135deg, var(--orange-warm), var(--orange));
  color: #4a2205; font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 16px; border-radius: var(--r-pill);
}
.plan h3 { margin-bottom: .2em; }
.plan-price { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; line-height: 1.1; margin: 10px 0 2px; }
.plan-price small { font-family: var(--font-body); font-size: .95rem; font-weight: 700; color: var(--ink-faint); }
.plan-sub { color: var(--ink-faint); font-size: .9rem; margin-bottom: 20px; }
.plan .tick { margin-top: 0; }
.plan .tick li { font-size: .95rem; margin-bottom: 11px; }
.plan .btn { margin-top: 22px; }
@media (max-width: 800px) { .plans { grid-template-columns: 1fr; } }

/* ---------- Download ---------- */
.download { background: linear-gradient(170deg, var(--cream-deep), var(--peach)); }
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 54px); align-items: stretch; }
.dl-card {
  background: #fff; border-radius: var(--r-xl); padding: clamp(26px, 3.4vw, 40px);
  box-shadow: var(--shadow-md); display: flex; flex-direction: column;
}
.dl-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: .3em; }
.dl-card > p { color: var(--ink-soft); font-size: .97rem; }
.qr-holder {
  background: #fff; border: 2px solid rgba(31,51,48,.1); border-radius: var(--r-md);
  padding: 14px; width: 190px; margin: 18px 0 14px;
}
.qr-holder svg, .qr-holder img { width: 100%; height: auto; display: block; }
.qr-caption { font-size: .85rem; color: var(--ink-faint); margin: 0 0 20px; }
.dl-soon { background: rgba(255,255,255,.62); border: 2px dashed rgba(31,51,48,.16); }
.soon-pill {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; background: var(--forest); color: #fff;
  font-weight: 800; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: var(--r-pill); margin-bottom: 18px;
}
.dl-foot { margin-top: auto; }
@media (max-width: 800px) { .dl-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 46px auto 0; }
.faq details {
  background: #fff; border-radius: var(--r-md); margin-bottom: 12px; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(31,51,48,.07); overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 20px 56px 20px 24px; font-family: var(--font-display);
  font-weight: 700; font-size: 1.1rem; position: relative; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; color: var(--orange-text); line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq .faq-body { padding: 0 24px 22px; color: var(--ink-soft); }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Final CTA ---------- */
.finale { background: var(--forest); color: var(--on-dark); text-align: center; }
.finale h2 { color: #fff; max-width: 18ch; margin-inline: auto; }
.finale .lede { color: var(--on-dark-soft); }
.finale img { width: 150px; margin: 0 auto 20px; }

/* ---------- Footer ---------- */
.site-footer { background: #0F2620; color: var(--on-dark-soft); padding: 56px 0 34px; font-size: .94rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.site-footer .brand { color: #fff; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .8em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--on-dark-soft); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-note {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .86rem;
}
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(40px, 6vw, 76px) 0 clamp(60px, 8vw, 96px); }
.legal-wrap { width: min(780px, 100% - 40px); margin-inline: auto; }
.legal h1 { font-size: clamp(2.1rem, 5vw, 3rem); }
.legal h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin-top: 2.2em; scroll-margin-top: 90px; }
.legal h3 { font-size: 1.12rem; margin-top: 1.7em; }
.legal p, .legal li { color: var(--ink-soft); }
.legal li { margin-bottom: .5em; }
.legal-meta { color: var(--ink-faint); font-size: .92rem; margin-bottom: 2em; }
.legal-summary {
  background: var(--mint); border-radius: var(--r-lg); padding: 26px 28px; margin: 0 0 40px;
  border-left: 6px solid var(--teal);
}
.legal-summary h2 { margin-top: 0; font-size: 1.2rem; }
.legal-summary p, .legal-summary li { color: var(--teal-deep); font-weight: 600; }
.legal-summary li { margin-bottom: .35em; }
.toc { background: #fff; border-radius: var(--r-md); padding: 22px 26px; box-shadow: var(--shadow-sm); margin-bottom: 40px; }
.toc h2 { margin: 0 0 .6em; font-size: 1.05rem; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 30px; }
.toc li { margin-bottom: .35em; font-size: .93rem; }
.toc a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.toc a:hover { color: var(--orange-text); text-decoration: underline; }
@media (max-width: 620px) { .toc ol { columns: 1; } }
.legal table { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.8em; font-size: .93rem; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border-bottom: 1px solid rgba(31,51,48,.1); vertical-align: top; }
.legal th { font-weight: 800; color: var(--ink); background: var(--cream-deep); }
.legal td { color: var(--ink-soft); }
.legal-contact { background: var(--yellow); border-radius: var(--r-md); padding: 22px 26px; margin-top: 40px; }
.legal-contact p:last-child { margin-bottom: 0; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

@media (max-width: 460px) {
  .nav .btn { padding: 10px 16px; font-size: .9rem; }
  .brand { font-size: 1.18rem; }
  .brand img { width: 32px; height: 32px; }
}
@media (max-width: 420px) {
  .float-card { font-size: .8rem; padding: 9px 12px; }
  .float-card img { width: 28px; height: 28px; }
  .hero-scout { width: min(66%, 250px); }
}

/* ---------- Recognition pipeline (Apple Intelligence section) ---------- */
.pipeline {
  list-style: none; padding: 0; margin: 46px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: pipe;
}
.pipe {
  background: #fff; border-radius: var(--r-lg); padding: 28px 26px;
  border: 1px solid rgba(31,51,48,.07); box-shadow: var(--shadow-sm); position: relative;
}
.pipe-step {
  display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--teal-deep); background: var(--mint);
  padding: 5px 12px; border-radius: var(--r-pill); margin-bottom: 14px;
}
.pipe h3 { font-size: 1.24rem; margin-bottom: .35em; }
.pipe p { margin: 0; color: var(--ink-soft); font-size: .96rem; }
.pipe--ai { border-color: rgba(244,133,58,.5); box-shadow: var(--shadow-md); }
.pipe--ai .pipe-step { color: var(--orange-text); background: var(--peach); }
/* connector arrows between stages */
.pipe + .pipe::before {
  content: ""; position: absolute; left: -13px; top: 50%; width: 10px; height: 10px;
  border-right: 3px solid rgba(244,133,58,.55); border-bottom: 3px solid rgba(244,133,58,.55);
  transform: translateY(-50%) rotate(-45deg);
}
@media (max-width: 900px) {
  .pipeline { grid-template-columns: 1fr; }
  .pipe + .pipe::before { left: 50%; top: -14px; transform: translateX(-50%) rotate(45deg); }
}

.ai-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.ai-note { background: rgba(255,255,255,.6); border-radius: var(--r-md); padding: 22px 24px; border: 1px solid rgba(31,51,48,.06); }
.ai-note h4 { font-family: var(--font-display); font-size: 1.02rem; margin-bottom: .4em; }
.ai-note p { margin: 0; font-size: .93rem; color: var(--ink-soft); }
@media (max-width: 900px) { .ai-notes { grid-template-columns: 1fr; } }

/* ---------- Grown-ups plain notes ---------- */
.grown-note {
  max-width: 820px; margin: 34px auto 0; background: var(--forest-soft);
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-lg); padding: 26px 30px;
}
.grown-note p { color: var(--on-dark-soft); font-size: .95rem; }
.grown-note p:last-child { margin-bottom: 0; }
.grown-note strong { color: #fff; }
.grown-note em { color: var(--on-dark); font-style: normal; font-weight: 700; }
.grown-note a { color: var(--orange-warm); }
.grown-note a:hover { color: #fff; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 44px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: #fff; border-radius: var(--r-lg); padding: 30px 28px;
  border: 1px solid rgba(31,51,48,.07); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.contact-card h3 { margin-bottom: .35em; }
.contact-card p { color: var(--ink-soft); font-size: .97rem; }
.contact-card .contact-mail {
  display: inline-block; font-family: var(--font-display); font-weight: 800;
  font-size: 1.16rem; color: var(--orange-text); text-decoration: none;
  background: var(--peach); border-radius: var(--r-pill); padding: 10px 20px; margin: 4px 0 16px;
  align-self: flex-start; word-break: break-word;
}
.contact-card .contact-mail:hover { background: #FBDFD4; color: var(--orange-cta-d); }
.contact-foot { margin-top: auto; padding-top: 6px; font-size: .88rem; color: var(--ink-faint); }
.contact-card--wide { grid-column: 1 / -1; background: var(--yellow); border-color: rgba(244,133,58,.3); }
.checklist { list-style: none; padding: 0; margin: 14px 0 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 10px; color: var(--ink-soft); font-size: .95rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 5px;
  background: rgba(244,133,58,.2); border: 2px solid rgba(244,133,58,.55);
}

/* ==========================================================================
   Coming-soon holding page (indexCS.html)
   Same warm cream ground as the rest of the site — the style guide says the
   brand is cream, pastel and rounded, never dark.
   ========================================================================== */
.cs { position: relative; overflow: hidden; padding: clamp(28px, 5vw, 52px) 0 clamp(50px, 7vw, 86px); }
.cs::before {
  content: ""; position: absolute; inset: -25% -20% auto -20%; height: 120%; pointer-events: none;
  background:
    radial-gradient(46% 40% at 50% 14%, rgba(255, 168, 51, .20), transparent 70%),
    radial-gradient(40% 36% at 14% 66%, rgba(0, 158, 133, .12), transparent 70%),
    radial-gradient(38% 34% at 86% 60%, rgba(107, 168, 154, .12), transparent 70%);
}
.cs-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.cs-brand { margin-bottom: clamp(26px, 5vw, 48px); }
.cs h1 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); margin-bottom: .4em; }
.cs h1 .swash { color: var(--orange-text); }
.cs .lede { margin-inline: auto; }

/* Mascot on a soft pastel disc */
.cs-scout { position: relative; width: min(72%, 290px); margin: clamp(24px, 4vw, 42px) auto clamp(30px, 5vw, 50px); }
.cs-scout img { position: relative; z-index: 1; filter: drop-shadow(0 22px 34px rgba(31,51,48,.2)); animation: bob 6.5s ease-in-out infinite; }
.cs-disc {
  position: absolute; inset: -10% -10% -2%; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, var(--mint), var(--sky) 62%, rgba(230,219,250,.55));
  animation: pulse 6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.06); opacity: 1; } }

/* Clue cards */
.cs-clues { width: 100%; margin-top: clamp(8px, 2vw, 18px); }
.cs-clues h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); margin-bottom: .2em; }
.cs-clues-sub { color: var(--ink-faint); font-size: .97rem; margin-bottom: 30px; }
.clue-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 920px; margin-inline: auto; }
@media (max-width: 800px) { .clue-grid { grid-template-columns: 1fr; max-width: 420px; } }

.clue {
  position: relative; display: flex; flex-direction: column; align-items: center;
  border-radius: var(--r-lg); padding: 28px 24px 22px; min-height: 268px;
  border: 1px solid rgba(31,51,48,.07); box-shadow: var(--shadow-sm);
  font-family: var(--font-body); color: var(--ink); text-align: center; cursor: pointer;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.clue:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: rgba(244,133,58,.4); }
.clue--a { background: linear-gradient(160deg, var(--nature-bg), var(--nature-alt)); }
.clue--b { background: linear-gradient(160deg, var(--peach), var(--house-alt)); }
.clue--c { background: linear-gradient(160deg, var(--sky), var(--traffic-alt)); }

.clue-art { width: 104px; height: 104px; display: grid; place-items: center; margin-bottom: 16px; }
.clue-art img {
  width: 100%; height: auto;
  filter: grayscale(1) brightness(.55) opacity(.3);
  transition: filter .45s ease, transform .45s ease;
}
.clue.is-open .clue-art img, .clue:hover .clue-art img { filter: none; transform: scale(1.06); }

.clue-title { position: relative; display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.22rem; line-height: 1.35; }
.clue-redacted, .clue-revealed { display: block; transition: opacity .35s ease; }
.clue-revealed { position: absolute; inset: 0; opacity: 0; color: var(--orange-text); }
.clue.is-open .clue-redacted { opacity: 0; }
.clue.is-open .clue-revealed { opacity: 1; }
.redact {
  display: inline-block; letter-spacing: .04em; font-size: .92em; white-space: nowrap;
  color: rgba(31,51,48,.55); background: rgba(255,255,255,.62);
  border-radius: 6px; padding: 0 6px;
}
.clue-back {
  font-size: .94rem; color: var(--ink-soft); line-height: 1.55;
  max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s ease, opacity .3s ease, margin .4s ease;
}
.clue.is-open .clue-back { max-height: 260px; opacity: 1; margin-top: 12px; }
.clue-hint {
  margin-top: auto; padding-top: 16px; font-size: .73rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; color: rgba(31,51,48,.42);
}
.clue.is-open .clue-hint { opacity: 0; height: 0; padding-top: 0; overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .clue-back, .clue-redacted, .clue-revealed, .clue-art img { transition: none; }
  .cs-scout img, .cs-disc { animation: none; }
}

.cs-cta { margin-top: clamp(44px, 7vw, 76px); }
.cs-cta h2 { font-size: clamp(1.45rem, 3.2vw, 2rem); margin-bottom: .3em; }
.cs-cta > p { color: var(--ink-soft); margin-bottom: 22px; }
.cs-note { margin: 20px 0 0; font-size: .85rem; color: var(--ink-faint); }
.cs-footer {
  margin-top: clamp(46px, 8vw, 76px); padding-top: 24px; width: 100%;
  border-top: 1px solid rgba(31,51,48,.1);
  display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: center;
  font-size: .86rem; color: var(--ink-faint);
}
.cs-footer a { color: var(--ink-soft); text-decoration: none; }
.cs-footer a:hover { color: var(--orange-text); text-decoration: underline; }
@media (max-width: 620px) { .cs h1 br { display: none; } }

/* single contact block */
.contact-single {
  background: #fff; border-radius: var(--r-xl); padding: clamp(28px, 4vw, 46px);
  border: 1px solid rgba(31,51,48,.07); box-shadow: var(--shadow-sm);
  max-width: 780px; margin: 44px auto 0;
}
.contact-single h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: .4em; }
.contact-single h3 { font-size: 1.16rem; margin-top: 1.6em; margin-bottom: .3em; }
.contact-single p { color: var(--ink-soft); }
.contact-sub { font-size: .95rem; margin-bottom: .8em; }
.contact-single .checklist { margin-top: 4px; }
.contact-single .contact-foot {
  margin: 26px 0 0; padding-top: 20px; border-top: 1px solid rgba(31,51,48,.09);
  font-size: .92rem; color: var(--ink-faint);
}
.contact-single .contact-foot em { font-style: normal; font-weight: 700; color: var(--ink-soft); }

/* ---------- Acknowledgements: licence notices ---------- */
.legal pre.licence-text {
  background: #fff; border-radius: var(--r-sm); box-shadow: var(--shadow-sm);
  padding: 18px 20px; margin: .8em 0 1.6em;
  font: .78rem/1.55 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: var(--ink-soft); white-space: pre-wrap; overflow-wrap: anywhere;
}
@media (max-width: 620px) { .legal table { font-size: .86rem; } .legal th, .legal td { padding: 10px 8px; overflow-wrap: anywhere; } }
