/* =====================================================================
   ThinkOtter — marketing site
   Aesthetic: "Riverside storybook edtech"
   Warm cream paper, otter-orange dominant, tutor-blue sharp accent,
   pebble-gold rewards, soft organic shapes, characterful serif display.
   Brand tokens mirror the live app (tutor / student / passage / pebbles / otter).
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces (warm paper) */
  --paper:        #fdf8f0;   /* otter-paper      */
  --paper-2:      #fbf0e0;   /* deeper paper     */
  --sand:         #f5e6d0;   /* otter-sand       */
  --cream:        #fef3c7;   /* otter-cream      */
  --white:        #ffffff;

  /* Ink (warm browns, never cold gray) */
  --ink:          #3c2a16;   /* body             */
  --ink-strong:   #271809;   /* headings         */
  --ink-soft:     #7a6446;   /* muted            */
  --ink-faint:    #a89072;

  /* Brand accents */
  --orange:       #f97316;   /* otter-orange-500 */
  --orange-600:   #ea580c;
  --orange-400:   #fb923c;
  --blue:         #2563eb;   /* tutor-600        */
  --blue-500:     #3b82f6;
  --blue-50:      #eff6ff;
  --gold:         #c4862f;   /* pebbles-500      */
  --gold-300:     #deb076;
  --gold-100:     #f5e6d0;
  --green:        #16a34a;   /* student-600      */
  --green-500:    #22c55e;
  --green-50:     #f0fdf4;
  --amber:        #f59e0b;   /* passage-500      */

  /* Radii (echo app radius-xl=20) */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* Warm shadows */
  --sh-sm:  0 1px 2px rgba(92,54,18,.06), 0 2px 6px rgba(92,54,18,.05);
  --sh:     0 6px 18px -8px rgba(120,70,20,.22), 0 2px 6px rgba(120,70,20,.08);
  --sh-lg:  0 24px 50px -20px rgba(120,64,14,.35), 0 8px 18px -10px rgba(120,64,14,.18);
  --sh-glow:0 18px 60px -18px rgba(249,115,22,.45);

  /* Type */
  --font-display: "Baloo 2", "Plus Jakarta Sans", -apple-system, sans-serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-fun: "Baloo 2", var(--font-body);

  /* Layout (Fostery-style: centred container + gutter) */
  --maxw: 1200px;
  --gutter: clamp(20px, 4.5vw, 32px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-y: auto;
  overflow-x: clip;
  scrollbar-gutter: stable;
}
@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 {
  min-width: 320px;
  min-height: 100%;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  position: relative;
}

/* Paper grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .55;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.55 0 0 0 0 0.4 0 0 0 0 0.2 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, header, footer { position: relative; z-index: 1; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-strong);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.005em;
  font-optical-sizing: auto;
}
h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 1rem + .7vw, 1.5rem); font-weight: 700; }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange-600);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

.lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.28rem); color: var(--ink-soft); }

/* ---------- Layout ---------- */
/* Centred container — section backgrounds stay full-bleed, but their content is
   constrained to a readable max-width with consistent side gutters. */
.wrap {
  width: min(calc(100% - var(--gutter) - var(--gutter)), var(--maxw));
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}
section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-head { max-width: 44rem; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 1rem; }
.section-head p { margin-top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--orange);
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body);
  font-weight: 700; font-size: 1rem;
  padding: .92rem 1.5rem;
  border-radius: var(--r-pill);
  border: none; cursor: pointer;
  background: var(--bg); color: #fff;
  box-shadow: var(--sh-glow), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .25s, filter .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); filter: saturate(1.06); box-shadow: 0 26px 60px -18px rgba(249,115,22,.6); }
.btn:active { transform: translateY(0); }
.btn--blue { --bg: var(--blue); box-shadow: 0 18px 50px -18px rgba(37,99,235,.5), inset 0 1px 0 rgba(255,255,255,.25); }
.btn--blue:hover { box-shadow: 0 26px 60px -18px rgba(37,99,235,.6); }
.btn--ghost {
  background: transparent; color: var(--ink-strong);
  box-shadow: inset 0 0 0 2px rgba(60,42,22,.16);
}
.btn--ghost:hover { background: rgba(255,255,255,.6); box-shadow: inset 0 0 0 2px rgba(60,42,22,.3); transform: translateY(-2px); }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.06rem; }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  padding: .7rem 0;
  transition: background .3s, box-shadow .3s, padding .3s;
}
.site-header.scrolled {
  background: rgba(253,248,240,.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 rgba(120,70,20,.08), var(--sh-sm);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .55rem; }
.brand img { height: 40px; width: auto; }
.brand .sr-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
/* mobile-first: inline links hidden until there's room (see min-width query) */
.nav-links { display: none; align-items: center; gap: clamp(0.85rem, 1.4vw, 1.7rem); list-style: none; padding: 0; margin: 0; }
.nav-links a {
  font-weight: 600; font-size: .96rem; color: var(--ink); position: relative;
  padding: .25rem 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--orange); border-radius: 2px; transition: width .25s ease;
}
.nav-links a:hover { color: var(--ink-strong); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: .85rem; }
/* mobile-first: hamburger shown by default; the ghost "Log in" hides on mobile */
.nav-cta .btn--ghost { display: none; }
.nav-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: none; background: var(--white); box-shadow: var(--sh-sm); cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink-strong); border-radius: 2px; position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink-strong); border-radius: 2px; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(2rem, 1rem + 3vw, 3.5rem);
  padding-bottom: clamp(3rem, 2rem + 4vw, 5rem);
  overflow: hidden;
}
.hero::before { /* warm radial glow */
  content: ""; position: absolute; z-index: 0;
  width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  top: -16%; right: -12%;
  background: radial-gradient(circle at center, rgba(251,146,60,.35), rgba(251,146,60,0) 62%);
  filter: blur(8px); pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; z-index: 0;
  width: 40vw; height: 40vw; max-width: 520px; max-height: 520px;
  bottom: -22%; left: -14%;
  background: radial-gradient(circle at center, rgba(59,130,246,.18), rgba(59,130,246,0) 64%);
  pointer-events: none;
}
/* Centred hero (Fostery-style): everything stacked and centred, visual below. */
.hero-center { position: relative; z-index: 1; max-width: 880px; margin-inline: auto; text-align: center; }
.badge-row { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.5rem; justify-content: center; }
.pill {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .01em;
  padding: .42rem .8rem; border-radius: var(--r-pill);
  background: var(--white); color: var(--ink-strong);
  box-shadow: var(--sh-sm); border: 1px solid rgba(120,70,20,.08);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
.pill.blue .dot { background: var(--blue-500); box-shadow: 0 0 0 3px rgba(59,130,246,.18); }
.pill.gold .dot { background: var(--gold); box-shadow: 0 0 0 3px rgba(196,134,47,.2); }

.hero h1 {
  font-size: clamp(2.2rem, 1rem + 5vw, 4.6rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 1.25rem;
  overflow-wrap: break-word;   /* never let a long word overflow on small screens */
}
.hero h1 .ink-orange {
  color: var(--orange-600);
}
.hero h1 .underline-mark {
  position: relative;   /* wraps naturally; the cream highlight follows the text box */
}
.hero h1 .underline-mark::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .04em; height: .34em; z-index: -1;
  background: var(--cream);
  border-radius: 6px;
  transform: rotate(-1deg);
}
.hero p.lead { margin: 0 auto 1.9rem; max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; justify-content: center; }
.hero-note { margin-top: 1.4rem; font-size: .92rem; color: var(--ink-soft); display: flex; align-items: center; justify-content: center; gap: .5rem; }
.hero-note svg { color: var(--green); flex: none; }

/* Hero visual: mascot + floating chat cards — centred below the copy, like
   the reference site's hero proof image. */
.hero-art { position: relative; z-index: 1; width: 100%; max-width: 440px; margin: clamp(40px, 6vw, 72px) auto 0; }
/* Positioned wrapper (no overflow clip) holds the stage AND the floating cards,
   so the chat bubbles / pebble badge can spill past the stage edge without being
   sliced off. Capped width keeps the otter a sensible size on full-width screens. */
.hero-stage-wrap { position: relative; width: 100%; max-width: 460px; margin-inline: auto; }
.hero-stage {
  position: relative;
  aspect-ratio: 1 / 1.02;
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 90% at 50% 8%, #fff7ea 0%, var(--sand) 70%, var(--paper-2) 100%);
  box-shadow: var(--sh-lg);
  border: 1px solid rgba(120,70,20,.08);
  overflow: hidden;
}
.hero-stage::before { /* dotted texture */
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(196,134,47,.18) 1.3px, transparent 1.3px);
  background-size: 22px 22px; opacity: .5;
}
.hero-otter {
  position: absolute; left: 50%; bottom: 5%; transform: translateX(-50%);
  width: 84%; height: 88%;
  background-image: url("assets/img/otter-tutor.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
  filter: drop-shadow(0 16px 22px rgba(80,40,8,.22));
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100%{ transform: translateX(-50%) translateY(0); } 50%{ transform: translateX(-50%) translateY(-10px); } }

/* mobile-first: decorative floats hidden by default, shown on desktop */
.chat-float, .pebble-pop { display: none; }
.chat-float {
  position: absolute; z-index: 3;
  background: #fff; border-radius: var(--r); padding: .8rem .95rem;
  box-shadow: var(--sh-lg); border: 1px solid rgba(120,70,20,.07);
  max-width: 16rem; font-size: .86rem; line-height: 1.45;
}
.chat-float .who { font-weight: 800; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .2rem; display: flex; align-items: center; gap: .4rem; }
.chat-float.tutor { top: 7%; right: -4%; }
.chat-float.tutor .who { color: var(--blue); }
.chat-float.tutor .who::before { content: "🦦"; }
.chat-float.student { bottom: 12%; left: -6%; animation: floaty 6s ease-in-out infinite .8s; }
.chat-float.student .who { color: var(--green); }
.chat-float.student .who::before { content: "✏️"; }
.chat-float.tutor { animation: floaty 7s ease-in-out infinite .3s; }

.pebble-pop {
  position: absolute; z-index: 4; top: 40%; right: -7%;
  align-items: center; gap: .5rem;   /* display set to flex in the desktop query */
  background: linear-gradient(180deg,#fff, #fdf3e3);
  border-radius: var(--r-pill); padding: .5rem .85rem .5rem .55rem;
  box-shadow: var(--sh-lg); border: 1px solid rgba(196,134,47,.25);
  font-family: var(--font-fun); font-weight: 800; color: var(--gold);
  animation: pebblepulse 3.4s ease-in-out infinite;
}
.pebble-pop img { width: 30px; }
@keyframes pebblepulse { 0%,100%{ transform: scale(1); } 50%{ transform: scale(1.06); } }

/* ---------- Trust strip ---------- */
.trust {
  background: var(--ink-strong);
  color: #f6ead6;
  padding: 1.1rem 0;
  position: relative; z-index: 2;
}
.trust .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2.4rem; text-align: center; }
.trust b { color: #fff; font-family: var(--font-fun); }
.trust .ti { display: inline-flex; align-items: center; gap: .55rem; font-size: .95rem; font-weight: 500; }
.trust .ti svg { color: var(--orange-400); flex: none; }
.trust .sep { width: 1px; height: 22px; background: rgba(255,255,255,.16); }

/* ---------- Stats ---------- */
.stat-band { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); }
.stats { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
.stat {
  text-align: center; padding: 1.6rem 1rem;
  background: var(--white); border-radius: var(--r-lg);
  box-shadow: var(--sh-sm); border: 1px solid rgba(120,70,20,.06);
}
.stat .num { font-family: var(--font-fun); font-weight: 800; font-size: clamp(2rem,1.4rem + 1.8vw,2.8rem); color: var(--orange-600); line-height: 1; }
.stat .num.blue { color: var(--blue); }
.stat .num.gold { color: var(--gold); }
.stat .num.green { color: var(--green); }
.stat .lab { margin-top: .5rem; font-size: .9rem; color: var(--ink-soft); font-weight: 600; }

/* ---------- Pain / empathy ---------- */
.pain-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem,1rem + 3vw,4rem); align-items: center; }
.pain-list { list-style: none; padding: 0; display: grid; gap: 1rem; }
.pain-list li {
  display: flex; gap: .9rem; align-items: flex-start;
  background: var(--white); padding: 1.05rem 1.2rem; border-radius: var(--r);
  box-shadow: var(--sh-sm); border: 1px solid rgba(120,70,20,.06);
}
.pain-list .ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--cream); color: var(--orange-600); }
.pain-list b { color: var(--ink-strong); display: block; font-family: var(--font-body); }
.pain-list span { font-size: .95rem; color: var(--ink-soft); }
.pain-aside {
  background: var(--blue); color: #eaf1ff;
  border-radius: var(--r-xl); padding: clamp(1.6rem,1rem + 2vw,2.6rem);
  box-shadow: var(--sh-lg); position: relative; overflow: hidden;
}
.pain-aside::before { content:""; position:absolute; width:240px; height:240px; right:-60px; top:-60px; border-radius:50%; background: rgba(255,255,255,.08); }
.pain-aside h3 { color: #fff; font-size: clamp(1.4rem,1rem + 1.4vw,2rem); margin-bottom: .8rem; }
.pain-aside p { color: #d4e2ff; }
.pain-aside .who-said { margin-top: 1.3rem; font-weight: 700; color: #fff; display: flex; align-items: center; gap: .6rem; }

/* ---------- Steps (how it works) ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 1.2rem; counter-reset: step; }
.step {
  position: relative; background: var(--white); border-radius: var(--r-lg);
  padding: 2.4rem 1.4rem 1.5rem; box-shadow: var(--sh-sm);
  border: 1px solid rgba(120,70,20,.06);
  transition: transform .25s, box-shadow .25s;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--sh); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -18px; left: 1.4rem;
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  font-family: var(--font-fun); font-weight: 800; font-size: 1.25rem; color: #fff;
  background: linear-gradient(160deg, var(--orange-400), var(--orange-600));
  box-shadow: var(--sh-glow);
}
.step h3 { font-size: 1.15rem; margin-bottom: .45rem; }
.step p { font-size: .94rem; color: var(--ink-soft); }
.step .emoji { font-size: 1.5rem; margin-bottom: .6rem; display:block; }

/* ---------- Question types ---------- */
.qtypes { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.qcard {
  background: var(--white); border-radius: var(--r); padding: 1.3rem 1.3rem 1.2rem;
  box-shadow: var(--sh-sm); border: 1px solid rgba(120,70,20,.07);
  border-left: 4px solid var(--accent, var(--orange));
  transition: transform .2s, box-shadow .2s;
}
.qcard:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.qcard .qn { font-family: var(--font-fun); font-weight: 800; font-size: .8rem; color: var(--accent, var(--orange-600)); letter-spacing: .02em; }
.qcard h3 { font-size: 1.08rem; margin: .2rem 0 .35rem; }
.qcard p { font-size: .9rem; color: var(--ink-soft); }

/* ---------- Method ---------- */
.method { background: linear-gradient(180deg, var(--paper-2) 0%, var(--sand) 100%); }

/* ---------- For busy parents ---------- */
.parents { background: linear-gradient(180deg, var(--blue-50) 0%, var(--paper) 100%); }
.parent-grid, .value-grid { margin-top: clamp(1.6rem, 1rem + 2vw, 2.6rem); }

/* ---------- Why / value ---------- */
.value { background: linear-gradient(180deg, var(--gold-100) 0%, var(--paper) 100%); }
.demo-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem,1rem + 3vw,4rem); align-items: center; }
.demo-points { list-style: none; padding: 0; display: grid; gap: 1.1rem; margin-top: 1.6rem; }
.demo-points li { display: flex; gap: .8rem; align-items: flex-start; }
.demo-points .tick { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--green-50); color: var(--green); display: grid; place-items: center; box-shadow: inset 0 0 0 2px rgba(34,197,94,.25); }
.demo-points b { color: var(--ink-strong); }
.demo-points span { color: var(--ink-soft); font-size: .96rem; }

.phone {
  background: #fff; border-radius: var(--r-xl); padding: 1.1rem;
  box-shadow: var(--sh-lg); border: 1px solid rgba(120,70,20,.08);
  max-width: 27rem; margin-inline: auto; width: 100%;
}
.phone--shot { padding: .5rem; max-width: 22rem; overflow: hidden; }
.phone--shot img { display: block; width: 100%; height: auto; border-radius: calc(var(--r-xl) - .5rem); }
.phone-head { display: flex; align-items: center; gap: .6rem; padding: .2rem .3rem .9rem; border-bottom: 1px dashed rgba(120,70,20,.16); margin-bottom: .9rem; }
.phone-head .ava { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(160deg,var(--orange-400),var(--orange-600)); display:grid; place-items:center; font-size:1.1rem; }
.phone-head .nm { font-weight: 700; color: var(--ink-strong); font-size: .95rem; }
.phone-head .st { font-size: .76rem; color: var(--green); font-weight: 600; display: flex; align-items: center; gap: .3rem; }
.phone-head .st::before { content:""; width:7px;height:7px;border-radius:50%;background:var(--green-500); }
.bubble { padding: .7rem .9rem; border-radius: 14px; font-size: .9rem; margin-bottom: .6rem; max-width: 86%; line-height: 1.45; }
.bubble.t { background: #f1f5f9; color: #1f2937; box-shadow: var(--sh-sm); border-top-left-radius: 4px; }
.bubble.s { background: var(--blue); color: #fff; margin-left: auto; border-top-right-radius: 4px; }
.bubble .hint-tag { font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--blue); display:block; margin-bottom:.2rem; }
.bubble.win { background: var(--green-50); color: var(--green); box-shadow: inset 0 0 0 1.5px rgba(34,197,94,.3); font-weight: 600; max-width: 100%; display: flex; align-items: center; gap: .5rem; }

/* ---------- Pebbles / rewards ---------- */
.rewards { position: relative; }
.rewards-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem,1rem + 3vw,4rem); align-items: center; }
.pebble-card {
  background: linear-gradient(170deg, #fff 0%, #fdf3e3 100%);
  border-radius: var(--r-xl); padding: clamp(1.6rem,1rem + 2vw,2.4rem);
  box-shadow: var(--sh-lg); border: 1px solid rgba(196,134,47,.2);
  text-align: center;
}
.pebble-card img.big { width: 150px; margin: 0 auto .6rem; animation: floaty 5s ease-in-out infinite; }
.pebble-counter { font-family: var(--font-fun); font-weight: 800; font-size: 3.2rem; color: var(--gold); line-height: 1; }
.pebble-counter span { font-size: 1.1rem; color: var(--ink-soft); display:block; font-family: var(--font-body); font-weight:600; margin-top:.2rem; }
.reward-tiers { display: grid; gap: .7rem; margin-top: 1.4rem; text-align: left; }
.reward-tier { display: flex; align-items: center; gap: .8rem; background: #fff; border-radius: var(--r); padding: .7rem .9rem; box-shadow: var(--sh-sm); }
.reward-tier .amt { font-family: var(--font-fun); font-weight: 800; color: var(--gold); background: var(--gold-100); border-radius: 10px; padding: .25rem .55rem; font-size: .9rem; min-width: 56px; text-align: center; }
.reward-tier b { color: var(--ink-strong); font-family: var(--font-body); font-size: .94rem; }
.reward-tier span { font-size: .83rem; color: var(--ink-soft); }

.reward-feats { list-style: none; padding: 0; display: grid; gap: 1rem; }
.reward-feats li { display: flex; gap: .9rem; align-items: flex-start; }
.reward-feats .ic { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 1.3rem; background: var(--cream); }
.reward-feats b { color: var(--ink-strong); display:block; }
.reward-feats p { font-size: .94rem; color: var(--ink-soft); }

/* ---------- Reports ---------- */
.reports { background: var(--ink-strong); color: #f3e7d4; }
.reports h2, .reports h3 { color: #fff; }
.reports .eyebrow { color: var(--orange-400); }
.reports .lead { color: #d9c7ab; }
.report-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem,1rem + 3vw,4rem); align-items: center; }
.report-feats { list-style: none; padding: 0; display: grid; gap: 1.2rem; margin-top: 1.8rem; }
.report-feats li { display: flex; gap: .85rem; align-items: flex-start; }
.report-feats .tick { flex:none; width:26px;height:26px;border-radius:50%; background: rgba(251,146,60,.16); color: var(--orange-400); display:grid;place-items:center; }
.report-feats b { color: #fff; }
.report-feats span { color: #c9b89c; font-size: .95rem; }

.report-card {
  background: #fff; color: var(--ink); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); overflow: hidden;   /* tilt added on desktop */
}
.report-card .rc-top { background: linear-gradient(120deg,#fff7 ,transparent), var(--cream); padding: 1.2rem 1.4rem; border-bottom: 3px solid var(--amber); }
.report-card .rc-top .t { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--ink-strong); }
.report-card .rc-top .s { font-size: .82rem; color: var(--ink-soft); }
.report-card .rc-body { padding: 1.2rem 1.4rem; display: grid; gap: 1rem; }
.rc-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: .7rem; }
.rc-stat { text-align: center; background: var(--paper); border-radius: 12px; padding: .7rem .4rem; }
.rc-stat .n { font-family: var(--font-fun); font-weight: 800; font-size: 1.4rem; color: var(--orange-600); }
.rc-stat.g .n { color: var(--green); }
.rc-stat.b .n { color: var(--blue); }
.rc-stat .l { font-size: .68rem; color: var(--ink-soft); font-weight: 600; }
.rc-block { border-radius: 12px; padding: .85rem 1rem; }
.rc-block.up { background: var(--green-50); border-left: 3px solid var(--green-500); }
.rc-block.next { background: var(--blue-50); border-left: 3px solid var(--blue-500); }
.rc-block .h { font-weight: 800; font-size: .82rem; letter-spacing: .02em; text-transform: uppercase; margin-bottom: .35rem; }
.rc-block.up .h { color: var(--green); }
.rc-block.next .h { color: var(--blue); }
.rc-block ul { margin: 0; padding-left: 1.1rem; font-size: .88rem; color: var(--ink); }
.rc-block li { margin: .15rem 0; }

/* ---------- Features grid ---------- */
.feat-grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
.feat {
  background: var(--white); border-radius: var(--r-lg); padding: 1.6rem 1.5rem;
  box-shadow: var(--sh-sm); border: 1px solid rgba(120,70,20,.06);
  transition: transform .22s, box-shadow .22s;
}
.feat:hover { transform: translateY(-5px); box-shadow: var(--sh); }
.feat .ic { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 1rem; background: var(--cream); }
.feat.b .ic { background: var(--blue-50); }
.feat.g .ic { background: var(--green-50); }
.feat h3 { font-size: 1.16rem; margin-bottom: .5rem; }
.feat p { font-size: .95rem; color: var(--ink-soft); }

/* ---------- Pricing ---------- */
.pricing { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); }
.price-grid { display: grid; grid-template-columns: 1fr; gap: 1.4rem; align-items: stretch; max-width: 26rem; margin-inline: auto; }
.price {
  background: var(--white); border-radius: var(--r-xl); padding: 2rem 1.7rem;
  box-shadow: var(--sh-sm); border: 1.5px solid rgba(120,70,20,.08);
  display: flex; flex-direction: column;
  position: relative;
}
.price.feat-plan { border-color: var(--orange); box-shadow: var(--sh-lg); }   /* lift added on desktop */
.price .tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--orange); color: #fff; font-weight: 700; font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; padding: .35rem .9rem; border-radius: var(--r-pill); box-shadow: var(--sh-glow); white-space: nowrap; }
.price h3 { font-size: 1.4rem; }
.price .desc { font-size: .9rem; color: var(--ink-soft); min-height: 2.6rem; margin: .3rem 0 1rem; }
.price .amount { font-family: var(--font-fun); font-weight: 800; font-size: 2.6rem; color: var(--ink-strong); line-height: 1; }
.price .amount small { font-size: .95rem; color: var(--ink-soft); font-weight: 600; font-family: var(--font-body); }
.price ul { list-style: none; padding: 0; margin: 1.3rem 0 1.6rem; display: grid; gap: .7rem; }
.price li { display: flex; gap: .6rem; align-items: flex-start; font-size: .94rem; }
.price li svg { flex: none; color: var(--green); margin-top: 2px; }
.price li.muted { color: var(--ink-faint); }
.price li.muted svg { color: var(--ink-faint); }
.price .btn { width: 100%; justify-content: center; margin-top: auto; }
.price-note { text-align: center; margin-top: 1.6rem; font-size: .9rem; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 50rem; margin-inline: auto; display: grid; gap: .8rem; }
.faq-item {
  background: var(--white); border-radius: var(--r); box-shadow: var(--sh-sm);
  border: 1px solid rgba(120,70,20,.07); overflow: hidden;
}
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 1.04rem; color: var(--ink-strong);
  padding: 1.15rem 1.3rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-q .chev { flex: none; transition: transform .3s; color: var(--orange-600); }
.faq-item.open .chev { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); font-size: .98rem; }
.faq-a-inner a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Final CTA ---------- */
.cta-final { padding-bottom: clamp(4rem,3rem + 4vw,7rem); }
.cta-box {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-600) 55%, #c2410c 100%);
  color: #fff; border-radius: var(--r-xl);
  padding: clamp(2.5rem,1.5rem + 4vw,4.5rem) clamp(1.5rem,1rem + 3vw,3.5rem);
  text-align: center; box-shadow: var(--sh-lg);
}
.cta-box::before { content:""; position:absolute; inset:0; background-image: radial-gradient(rgba(255,255,255,.14) 1.5px, transparent 1.5px); background-size: 26px 26px; opacity:.5; }
.cta-box::after { content:""; position:absolute; width:320px;height:320px; border-radius:50%; background: rgba(255,255,255,.12); right:-90px; bottom:-130px; }
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 { color: #fff; font-size: clamp(2rem,1.4rem + 2.6vw,3.2rem); margin-bottom: .8rem; }
.cta-box p { color: #ffe8d6; font-size: 1.12rem; max-width: 36rem; margin: 0 auto 2rem; }
.cta-box .btn { background: #fff; color: var(--orange-600); box-shadow: 0 18px 40px -16px rgba(0,0,0,.4); }
.cta-box .btn:hover { box-shadow: 0 26px 50px -16px rgba(0,0,0,.5); }
.cta-box .cta-sub { margin-top: 1.1rem; font-size: .9rem; color: #ffdcc2; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-strong); color: #cbb89c; padding: 3.5rem 0 2rem; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.footer-brand img { height: 46px; margin-bottom: 1rem; filter: drop-shadow(0 4px 10px rgba(0,0,0,.3)); }
.footer-brand p { font-size: .92rem; max-width: 22rem; color: #b7a487; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: .6rem; }
.footer-col a { font-size: .94rem; color: #cbb89c; transition: color .2s; }
.footer-col a:hover { color: var(--orange-400); }
.footer-bottom { margin-top: 2.6rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; font-size: .85rem; color: #9b8a70; }
.footer-bottom .made { display: inline-flex; align-items: center; gap: .4rem; }

/* ---------- Scroll reveal (only hide when JS is active, so no-JS users see all content) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal[data-d="1"] { transition-delay: .08s; }
.js .reveal[data-d="2"] { transition-delay: .16s; }
.js .reveal[data-d="3"] { transition-delay: .24s; }
.js .reveal[data-d="4"] { transition-delay: .32s; }

/* ---------- Section dividers (waves) ---------- */
.wave { display: block; width: 100%; height: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Mobile menu (hamburger dropdown) ---------- */
/* width:auto + max-width:none override the .wrap class it also carries, so the
   absolute left/right offsets fully control its width (no overflow). */
.mobile-menu { position: absolute; top: 100%; left: var(--gutter); right: var(--gutter); width: auto; max-width: none; padding: 0; display: none; background: var(--white); border-radius: var(--r); box-shadow: var(--sh-lg); border: 1px solid rgba(120,70,20,.08); }
.mobile-menu.show { display: grid; gap: .2rem; padding: .6rem; }
.mobile-menu a { padding: .8rem 1rem; border-radius: 10px; font-weight: 600; }
.mobile-menu a:hover { background: var(--paper); }
.mobile-menu .btn { margin: .4rem; justify-content: center; }
/* footer: brand block spans the full width until the 4-col layout kicks in */
.footer-brand { grid-column: 1 / -1; }

/* ---------- Responsive — mobile-first (min-width, like the reference site) ---------- */

/* large phones / small tablets: 2-up stat & step cards, full-width hero CTAs */
@media (max-width: 559px) {
  .nav-cta > .btn:not(.btn--ghost) { display: none; }
  .nav-cta { gap: .5rem; }
  .badge-row { flex-direction: column; align-items: center; }
  .pill { max-width: 100%; white-space: normal; }
  .hero h1 { font-size: clamp(2rem, 1.65rem + 3vw, 2.45rem); }
  .hero-note { flex-wrap: wrap; max-width: 20rem; margin-inline: auto; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .trust .sep { display: none; }
}
@media (min-width: 560px) {
  .stats, .steps { grid-template-columns: repeat(2, 1fr); }
}

/* tablets: 2-up content cards + 4-col footer */
@media (min-width: 700px) {
  .qtypes, .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
}

/* small desktops: two-column content sections, 3-up cards, pricing row */
@media (min-width: 880px) {
  .pain-grid, .report-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .demo-grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
  .rewards-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
  .qtypes, .feat-grid { grid-template-columns: repeat(3, 1fr); }
  .price-grid { grid-template-columns: repeat(3, 1fr); max-width: none; }
  .price.feat-plan { transform: translateY(-8px); }
}

/* desktop: 4-up stats/steps, decorative hero floats, tilted report */
@media (min-width: 980px) {
  .stats, .steps { grid-template-columns: repeat(4, 1fr); }
  .chat-float { display: block; }
  .pebble-pop { display: flex; }
  .report-card { transform: rotate(-1.2deg); }
}

/* wide: inline nav replaces the hamburger */
@media (min-width: 1080px) {
  .nav-links { display: flex; }
  .nav-cta .btn--ghost { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* ===================================================================
   Multi-page additions (Option C): pillars, breadcrumbs, page hero
   =================================================================== */

/* Active nav link */
.nav-links a[aria-current="page"] { color: var(--orange-600); font-weight: 700; }

/* ---------- Sub-page hero / intro band ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  border-bottom: 1px solid rgba(120,70,20,.06);
  padding: clamp(1.6rem, 1.2rem + 3vw, 3.4rem) 0 clamp(2rem, 1.4rem + 3vw, 3.6rem);
}
.page-hero .lead { margin-inline: auto; }
.page-hero .answer {
  max-width: 60ch; margin: 1rem auto 0; font-size: clamp(1.02rem, .98rem + .3vw, 1.18rem);
  color: var(--ink); line-height: 1.6;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumb { font-size: .84rem; color: var(--ink-soft); margin-bottom: .9rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 0; align-items: center; justify-content: center; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--orange-600); }
.breadcrumb [aria-current="page"] { color: var(--ink-strong); font-weight: 600; }
.breadcrumb .sep { opacity: .45; }

/* ---------- Pillar teaser cards (home) ---------- */
.pillar-grid { display: grid; grid-template-columns: 1fr; gap: clamp(1rem, .6rem + 1.6vw, 1.6rem); }
.pillar {
  display: flex; flex-direction: column; gap: .55rem;
  background: #fff; border: 1px solid rgba(120,70,20,.08); border-radius: var(--r-xl);
  padding: clamp(1.4rem, 1rem + 1.4vw, 2rem); box-shadow: var(--sh);
  text-decoration: none; color: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}
.pillar:hover, .pillar:focus-visible { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.pillar .pic { font-size: 1.9rem; line-height: 1; }
.pillar h3 { font-size: 1.22rem; margin-top: .2rem; }
.pillar p { color: var(--ink-soft); font-size: .96rem; line-height: 1.55; }
.pillar .more { margin-top: auto; padding-top: .5rem; color: var(--orange-600); font-weight: 700; font-size: .92rem; }
.pillar .more .arr { transition: transform .18s ease; display: inline-block; }
.pillar:hover .more .arr { transform: translateX(4px); }
@media (min-width: 780px) { .pillar-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Condensed value strip (home) ---------- */
.why-strip { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.why-strip .wsi { display: flex; gap: .8rem; align-items: flex-start; background: #fff; border: 1px solid rgba(120,70,20,.07); border-radius: var(--r); padding: 1rem 1.1rem; box-shadow: var(--sh-sm); }
.why-strip .wsi .ic { font-size: 1.5rem; line-height: 1; flex: none; }
.why-strip .wsi b { color: var(--ink-strong); display: block; font-size: .98rem; }
.why-strip .wsi span { color: var(--ink-soft); font-size: .9rem; }
@media (min-width: 780px) { .why-strip { grid-template-columns: repeat(3, 1fr); } }

/* ---------- FAQ "see all" link ---------- */
.faq-more { text-align: center; margin-top: 1.6rem; }

/* ---------- Section CTA (centered button under a section) ---------- */
.section-cta { text-align: center; margin-top: clamp(1.6rem, 1rem + 1.6vw, 2.4rem); }

/* Two-up explore cards (when only two deep pages are featured) */
@media (min-width: 780px) {
  .pillar-grid.cols-2 { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin-inline: auto; }
}

/* ---------- Question-type tags (home 'what we cover' teaser) ---------- */
.type-tags { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center; max-width: 760px; margin: clamp(1.2rem, .8rem + 1.4vw, 2rem) auto 0; }
.type-tags span {
  background: #fff; border: 1px solid rgba(120,70,20,.12); border-radius: var(--r-pill);
  padding: .42rem .9rem; font-size: .86rem; font-weight: 600; color: var(--ink); box-shadow: var(--sh-sm);
}

/* ---------- Wide hero screenshot (landscape app view) ---------- */
.hero-art--wide { max-width: min(980px, 100%); }
.hero-shot {
  background: #fff; border: 1px solid rgba(120,70,20,.08);
  border-radius: var(--r-xl); padding: .55rem; box-shadow: var(--sh-lg);
}
.hero-shot img { display: block; width: 100%; height: auto; border-radius: calc(var(--r-xl) - .55rem); }
