/* =========================================================================
   Kerb — marketing site
   Visual system: "SayBriefly" (creative-agency sketchbook on cream paper)
   Forest Ink does the structural work · Highlighter Yellow is a marker wash
   only · Bricolage Grotesque display + Inter body · borders & colour over
   shadows · floating pill nav · sticky-note pastel cards.
   ========================================================================= */

:root {
  /* Colours */
  --forest-ink: #1a3300;
  --forest-ink-70: rgba(26, 51, 0, 0.7);
  --forest-ink-55: rgba(26, 51, 0, 0.55);
  --forest-ink-12: rgba(26, 51, 0, 0.12);
  --forest-ink-08: rgba(26, 51, 0, 0.08);
  --highlighter-yellow: #ffe95c;
  --cream-paper: #fcfaf5;
  --cream-deep: #f6f1e6;
  --pencil-gray: #b6b6b6;
  --whisper-gray: #f1f1f1;
  --teal: #a8e5e5;
  --mint: #d5f5c2;
  --blush: #f6d0ff;
  --terracotta: #cb5521;

  /* Type */
  --font-display: "Bricolage Grotesque", "Archivo Black", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Radius */
  --r-btn: 6px;
  --r-card: 14px;
  --r-nav: 16px;
  --r-full: 9999px;

  /* Layout */
  --page-max: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-gap: clamp(72px, 11vw, 128px);

  /* Shadow (used sparingly — nav glow + button lift only) */
  --shadow-btn: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
  --shadow-lift: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.1) 0px 1px 2px -1px;
  --shadow-nav: rgba(255, 235, 90, 0.09) 0px 32px 90px 0px, rgba(255, 235, 90, 0.12) 0px 8px 30px 0px;
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  color: var(--forest-ink);
  background: var(--cream-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
:focus-visible { outline: 2px solid var(--forest-ink); outline-offset: 3px; border-radius: 3px; }

/* --------------------------------------------------------------- helpers */
.wrap { width: 100%; max-width: var(--page-max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--forest-ink-70);
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--forest-ink); opacity: 0.5;
}

/* marker highlight — yellow wash behind words, never a button */
.mark {
  background: var(--highlighter-yellow);
  padding: 0.02em 0.16em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  border-radius: 2px;
}
.mark.teal { background: var(--teal); }
.mark.mint { background: var(--mint); }

/* display headings */
h1, h2, h3 { font-weight: 800; }
.display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
.h-hero { font-size: clamp(44px, 7.4vw, 88px); }
.h-sec  { font-size: clamp(34px, 5vw, 60px); }
.h-sm   { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.05; }

.lede {
  font-size: clamp(18px, 2.1vw, 21px);
  line-height: 1.55;
  color: var(--forest-ink-70);
  max-width: 60ch;
}
.lede b { color: var(--forest-ink); font-weight: 600; }
.section-head { max-width: 720px; }
.section-head .lede { margin-top: 18px; }
.section-head h2 { margin-top: 14px; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: var(--r-btn);
  font-weight: 500; font-size: 16px; line-height: 1;
  padding: 17px 26px;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn .arw { transition: transform .18s ease; }
.btn:hover .arw { transform: translateX(3px); }
.btn-primary { background: var(--forest-ink); color: var(--cream-paper); box-shadow: var(--shadow-btn); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn-mint  { background: var(--mint);  color: var(--forest-ink); border-color: var(--forest-ink); }
.btn-mint:hover  { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--forest-ink); border: 1px solid var(--forest-ink); }
.btn-ghost:hover { background: var(--forest-ink); color: var(--cream-paper); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.reassure { font-size: 13px; color: var(--forest-ink-55); }

/* -------------------------------------------------------------------- nav */
.nav-shell { position: sticky; top: 14px; z-index: 60; padding-inline: var(--gutter); }
.nav {
  max-width: var(--page-max); margin-inline: auto;
  display: flex; align-items: center; gap: 20px;
  background: var(--cream-paper);
  border: 1px solid var(--pencil-gray);
  border-radius: var(--r-nav);
  padding: 10px 12px 10px 16px;
  box-shadow: var(--shadow-nav);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.brand .logo {
  width: 38px; height: 38px; border-radius: 9px; background: var(--highlighter-yellow);
  display: grid; place-items: center; flex: none;
}
.nav-links { display: flex; gap: 4px; margin-inline: auto; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--forest-ink-70);
  padding: 8px 12px; border-radius: var(--r-btn); transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--forest-ink); background: var(--forest-ink-08); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-burger { display: none; }

/* ------------------------------------------------------------------ hero */
/* The words sit on a living video stage (dog wandering a country home),
   veiled with a cream scrim so Forest Ink type stays the hero and the
   page's cream canvas continues right through the video. */
.hero { padding-top: clamp(20px, 3vw, 36px); position: relative; }
.hero-stage { position: relative; }
.hero-screen {
  position: relative; overflow: hidden;
  border: 1px solid var(--forest-ink); border-radius: 22px;
  background: var(--cream-deep); box-shadow: var(--shadow-btn);
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(125% 110% at 50% 40%,
      rgba(252,250,245,0.94) 0%,
      rgba(252,250,245,0.80) 46%,
      rgba(252,250,245,0.58) 78%,
      rgba(252,250,245,0.42) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  text-align: center; display: flex; flex-direction: column; align-items: center;
  padding: clamp(48px, 7vw, 104px) clamp(22px, 6vw, 72px);
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--highlighter-yellow); color: var(--forest-ink);
  border-radius: var(--r-full); padding: 7px 14px;
  font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow-btn);
}
.hero h1 { margin-top: 26px; max-width: 15ch; }
.hero .lede { margin: 24px auto 0; text-align: center; }
.hero-cta { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; justify-content: center; }
.hero-reassure { margin-top: 16px; }

/* corner tags on the stage */
.frame-tag {
  position: absolute; z-index: 3; font-family: var(--font-mono); font-size: 12px;
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--forest-ink); color: var(--cream-paper);
  padding: 6px 12px; border-radius: var(--r-full);
}
.frame-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: #ff6b5c; box-shadow: 0 0 0 0 rgba(255,107,92,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(255,107,92,.55)} 70%{box-shadow:0 0 0 7px rgba(255,107,92,0)} 100%{box-shadow:0 0 0 0 rgba(255,107,92,0)} }
@media (prefers-reduced-motion: reduce) { .frame-tag .dot { animation: none; } .hero-bg { display:none; } }
.frame-tag.tl { top: 18px; left: 18px; }
.frame-tag.br { bottom: 18px; right: 18px; background: var(--highlighter-yellow); color: var(--forest-ink); }

/* trust strip (below the stage, on cream) */
.trust { margin-top: 32px; display: flex; align-items: center; justify-content: center;
  gap: clamp(16px, 3vw, 34px); flex-wrap: wrap; }
.trust .lbl { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--forest-ink-55); }
.trust ul { list-style: none; padding: 0; display: flex; gap: clamp(14px, 2.6vw, 30px); flex-wrap: wrap; justify-content: center; }
.trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--forest-ink-70); }
.trust li svg { flex: none; }

/* floating sticky-note callouts overhanging the stage */
.note {
  position: absolute; z-index: 4; border: 1px solid var(--forest-ink);
  border-radius: 10px; padding: 12px 15px; font-size: 13.5px; font-weight: 500;
  line-height: 1.3; max-width: 210px; box-shadow: var(--shadow-btn);
}
.note b { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--forest-ink-70); margin-bottom: 3px; }
.note.a { background: var(--mint);  top: 40px; left: -34px; transform: rotate(-4deg); }
.note.c { background: var(--teal);  bottom: 44px; right: -34px; transform: rotate(4deg); }
@media (max-width: 1180px) { .note { display: none; } }

/* ------------------------------------------------------------- sections */
section { scroll-margin-top: 90px; }
.band { padding-block: var(--section-gap); }

/* stat row */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
.stat {
  border-radius: var(--r-card); padding: 26px 24px 24px;
  border: 1px solid var(--forest-ink);
}
.stat:nth-child(1) { background: var(--highlighter-yellow); }
.stat:nth-child(2) { background: var(--cream-paper); }
.stat:nth-child(3) { background: var(--mint); }
.stat .big { font-family: var(--font-display); font-weight: 800; font-size: clamp(38px, 5vw, 54px); line-height: 1; letter-spacing: .01em; }
.stat p { margin-top: 12px; font-size: 15px; color: var(--forest-ink-70); }

/* savings calculator — the "obvious difference" front and centre */
.calc {
  margin-top: 48px; border: 1px solid var(--forest-ink); border-radius: 20px;
  background: var(--cream-paper); padding: clamp(26px, 4vw, 46px); box-shadow: var(--shadow-btn);
}
.calc-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.calc-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--forest-ink-55); }
.calc-price { font-size: clamp(40px, 6vw, 66px); line-height: 1; }

.calc-range { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; margin-top: 30px;
  border-radius: 999px; background: var(--forest-ink-12); outline: none; cursor: pointer; }
.calc-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 30px; height: 30px;
  border-radius: 50%; background: var(--highlighter-yellow); border: 2px solid var(--forest-ink);
  box-shadow: var(--shadow-btn); cursor: grab; margin-top: -11px; }
.calc-range::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; }
.calc-range::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: var(--highlighter-yellow);
  border: 2px solid var(--forest-ink); cursor: grab; }
.calc-range::-moz-range-track { height: 8px; border-radius: 999px; background: var(--forest-ink-12); }
.calc-range:active::-webkit-slider-thumb { cursor: grabbing; }
.calc-scale { display: flex; justify-content: space-between; margin-top: 12px;
  font-family: var(--font-mono); font-size: 11px; color: var(--forest-ink-55); }

.calc-bars { margin-top: 36px; display: grid; gap: 22px; }
.calc-row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.calc-who { font-size: 15px; font-weight: 600; }
.calc-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .03em; padding: 3px 9px; border-radius: 999px; }
.agent-tag { background: var(--forest-ink-08); color: var(--forest-ink-70); }
.kerb-tag { background: var(--highlighter-yellow); color: var(--forest-ink); }
.calc-track { position: relative; height: 48px; background: var(--cream-deep); border-radius: 9px;
  overflow: hidden; border: 1px solid var(--forest-ink-12); }
.calc-fill { height: 100%; min-width: 6px; transition: width .4s cubic-bezier(.2,.7,.2,1); }
.agent-fill { background: var(--forest-ink); }
.kerb-fill { background: var(--mint); border-right: 1px solid var(--forest-ink); }
.calc-amt { position: absolute; right: 9px; top: 50%; transform: translateY(-50%);
  background: var(--cream-paper); border: 1px solid var(--forest-ink); border-radius: 999px;
  padding: 3px 13px; font-family: var(--font-display); font-weight: 800; font-size: 18px;
  letter-spacing: .01em; color: var(--forest-ink); box-shadow: var(--shadow-btn); }

.calc-save { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--forest-ink-12);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.calc-save-figure { display: flex; flex-direction: column; gap: 6px; }
.calc-save-value { font-size: clamp(34px, 5vw, 52px); line-height: 1; align-self: flex-start;
  background: var(--highlighter-yellow); padding: 2px 12px; border-radius: 6px; }
.calc-note { margin-top: 22px; font-size: 13px; color: var(--forest-ink-55); line-height: 1.55; max-width: 76ch; }

/* how it works — numbered ladder */
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 48px; }
.step {
  border: 1px solid var(--forest-ink-12); border-radius: var(--r-card);
  background: var(--cream-paper); padding: 26px 26px 28px;
  display: flex; gap: 20px; align-items: flex-start;
  transition: border-color .2s, transform .2s;
}
.step:hover { border-color: var(--forest-ink); transform: translateY(-2px); }
.step .no { font-family: var(--font-mono); font-size: 13px; color: var(--forest-ink-55); padding-top: 4px; }
.step .ic { width: 44px; height: 44px; border-radius: 10px; background: var(--cream-deep);
  display: grid; place-items: center; flex: none; border: 1px solid var(--forest-ink-12); }
.step h3 { font-family: var(--font-body); font-size: 20px; font-weight: 700; }
.step p { margin-top: 8px; font-size: 15.5px; color: var(--forest-ink-70); line-height: 1.5; }

/* feature rows — media + copy, alternating */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.feature + .feature { margin-top: var(--section-gap); }
.feature.flip .f-media { order: 2; }
.f-copy .kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--forest-ink-55); }
.f-copy h3 { margin-top: 12px; }
.f-copy p { margin-top: 18px; font-size: 17px; color: var(--forest-ink-70); line-height: 1.55; max-width: 46ch; }
.f-list { list-style: none; padding: 0; margin-top: 22px; display: grid; gap: 12px; }
.f-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 15.5px; }
.f-list li svg { flex: none; margin-top: 2px; }

.f-media { position: relative; }
.media-frame { border: 1px solid var(--forest-ink); border-radius: var(--r-card); overflow: hidden; background: var(--cream-deep); }
.media-frame.tall { aspect-ratio: 4 / 5; }
.media-frame.wide { aspect-ratio: 16 / 10; }
.media-frame img, .media-frame video { width: 100%; height: 100%; object-fit: cover; }

/* autoplaying feature video with caption */
.playwrap { position: relative; }
.play-cap { position: absolute; left: 16px; bottom: 16px; z-index: 2;
  font-family: var(--font-mono); font-size: 12px; background: var(--forest-ink); color: var(--cream-paper);
  padding: 6px 11px; border-radius: var(--r-full); }

/* pull-quote card overlapping media */
.f-pill { position: absolute; z-index: 3; background: var(--cream-paper); border: 1px solid var(--forest-ink);
  border-radius: 10px; padding: 12px 15px; font-size: 13.5px; font-weight: 500; max-width: 210px;
  box-shadow: var(--shadow-btn); }
.f-pill b { display:block; font-family: var(--font-mono); font-size: 11px; letter-spacing:.05em; text-transform: uppercase; color: var(--forest-ink-70); margin-bottom: 3px; }

/* compliance sticky-note grid */
.notes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 46px; }
.snote { border: 1px solid var(--forest-ink); border-radius: var(--r-card); padding: 24px; }
.snote:nth-child(3n+1) { background: var(--cream-paper); }
.snote:nth-child(3n+2) { background: var(--cream-paper); }
.snote:nth-child(3n)   { background: var(--cream-paper); }
.snote.hl { background: var(--highlighter-yellow); }
.snote.mint { background: var(--mint); }
.snote.teal { background: var(--teal); }
.snote.blush { background: var(--blush); }
.snote .tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--forest-ink-70); }
.snote h3 { font-family: var(--font-body); font-size: 19px; font-weight: 700; margin-top: 12px; }
.snote p { margin-top: 9px; font-size: 15px; color: var(--forest-ink-70); line-height: 1.5; }

/* pricing / savings */
.price-wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.price-card { border: 1px solid var(--forest-ink); border-radius: var(--r-card); background: var(--cream-paper); overflow: hidden; }
.price-card .top { background: var(--forest-ink); color: var(--cream-paper); padding: 26px 30px; }
.price-card .top .p { font-family: var(--font-display); font-weight: 800; font-size: 52px; line-height: 1; letter-spacing: .01em; }
.price-card .top .p small { font-family: var(--font-body); font-weight: 500; font-size: 16px; opacity: .8; letter-spacing: 0; }
.price-card .top .split { margin-top: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.price-card .top .split-part { background: rgba(252,250,245,0.12); border: 1px solid rgba(252,250,245,0.28);
  border-radius: var(--r-full); padding: 6px 13px; font-size: 13.5px; }
.price-card .top .split-part b { font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: .01em; }
.price-card .top .split-plus { font-size: 15px; opacity: .7; }
.price-card .top .sub { margin-top: 14px; font-size: 14px; opacity: .8; line-height: 1.45; }
.price-card .body { padding: 26px 30px 30px; }
.price-card ul { list-style: none; padding: 0; display: grid; gap: 13px; }
.price-card li { display: flex; gap: 11px; font-size: 15.5px; }
.price-card li svg { flex: none; margin-top: 3px; }
.price-card .foot { margin-top: 24px; }

.compare { display: grid; gap: 14px; }
.compare-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px;
  border-bottom: 1px solid var(--forest-ink-12); padding-bottom: 14px; }
.compare-row .who { font-size: 15px; color: var(--forest-ink-70); }
.compare-row .amt { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: .01em; }
.compare-row.you .amt { background: var(--highlighter-yellow); padding: 2px 10px; border-radius: 4px; }
.compare .save { font-size: 14px; color: var(--forest-ink-70); }
.compare .save b { color: var(--forest-ink); }

/* faq */
.faq { margin-top: 40px; border-top: 1px solid var(--forest-ink-12); }
.qa { border-bottom: 1px solid var(--forest-ink-12); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px;
  align-items: center; padding: 22px 4px; font-size: 18px; font-weight: 600; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .pm { flex: none; width: 26px; height: 26px; border: 1px solid var(--forest-ink); border-radius: var(--r-full);
  display: grid; place-items: center; transition: transform .2s, background .2s; }
.qa[open] summary .pm { background: var(--highlighter-yellow); transform: rotate(135deg); }
.qa .a { padding: 0 4px 24px; font-size: 16px; color: var(--forest-ink-70); line-height: 1.6; max-width: 68ch; }

/* final CTA */
.final { text-align: center; border: 1px solid var(--forest-ink); border-radius: 22px;
  background: var(--mint); padding: clamp(48px, 8vw, 88px) var(--gutter); position: relative; overflow: hidden; }
.final h2 { max-width: 18ch; margin-inline: auto; }
.final .lede { margin: 20px auto 0; text-align: center; color: var(--forest-ink-70); }
.final .hero-cta { margin-top: 30px; }
.final .sketch-house { position: absolute; opacity: .18; pointer-events: none; }

/* footer */
footer { border-top: 1px solid var(--forest-ink-12); padding-block: 56px 40px; margin-top: var(--section-gap); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--forest-ink-55); font-weight: 400; margin-bottom: 14px; }
.foot-grid a { display: block; font-size: 15px; color: var(--forest-ink-70); padding: 5px 0; }
.foot-grid a:hover { color: var(--forest-ink); }
.foot-blurb { font-size: 15px; color: var(--forest-ink-70); max-width: 34ch; margin-top: 14px; line-height: 1.5; }
.foot-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--forest-ink-12);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot-bottom p, .foot-bottom a { font-size: 13px; color: var(--forest-ink-55); }
.foot-legal { max-width: 720px; margin-top: 18px; font-size: 12px; color: var(--forest-ink-55); line-height: 1.5; }

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

/* -------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .stats { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .feature.flip .f-media { order: 0; }
  .notes-grid { grid-template-columns: 1fr; }
  .price-wrap { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .btn { width: 100%; justify-content: center; }
  .hero-cta { width: 100%; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bottom { justify-content: flex-start; }
}

/* -------------------------------------------------------- auth modal */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center;
  justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(26, 51, 0, 0.38);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade .2s ease; }
.modal-card { position: relative; width: 100%; max-width: 452px; max-height: 92vh; overflow-y: auto;
  background: var(--cream-paper); border: 1px solid var(--forest-ink); border-radius: 20px;
  padding: clamp(26px, 4vw, 40px); box-shadow: rgba(26,51,0,.18) 0 24px 60px -12px;
  animation: pop .24s cubic-bezier(.2,.8,.2,1); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .modal-backdrop, .modal-card { animation: none; } }

.modal-x { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: var(--forest-ink-70); border: 1px solid transparent; transition: background .15s, color .15s; }
.modal-x:hover { background: var(--forest-ink-08); color: var(--forest-ink); }
.modal-brand { display: inline-flex; margin-bottom: 20px; font-size: 18px; }
.modal-brand .logo { width: 32px; height: 32px; }
.modal-title { font-size: clamp(24px, 4vw, 30px); }
.modal-sub { margin-top: 10px; font-size: 15px; color: var(--forest-ink-70); line-height: 1.5; }

.modal-google { margin-top: 22px; }
#googleMount:empty { display: none; }
.btn-google { display: flex; width: 100%; align-items: center; justify-content: center; gap: 11px;
  background: var(--cream-paper); color: var(--forest-ink); border: 1px solid var(--forest-ink);
  border-radius: var(--r-btn); padding: 13px 18px; font-size: 15px; font-weight: 500; transition: background .15s; }
.btn-google:hover { background: var(--cream-deep); }
#googleMount:not(:empty) + .btn-google { display: none; }

.modal-divider { display: flex; align-items: center; gap: 14px; margin: 20px 0; color: var(--forest-ink-55); }
.modal-divider::before, .modal-divider::after { content: ""; flex: 1; height: 1px; background: var(--forest-ink-12); }
.modal-divider span { font-family: var(--font-mono); font-size: 12px; }

.field { display: block; margin-bottom: 14px; }
.field[hidden] { display: none; }
.field > span { display: block; font-size: 13px; font-weight: 500; color: var(--forest-ink-70); margin-bottom: 6px; }
.field input { width: 100%; font: inherit; font-size: 16px; color: var(--forest-ink);
  background: var(--cream-paper); border: 1px solid var(--pencil-gray); border-radius: var(--r-btn);
  padding: 12px 14px; transition: border-color .15s, box-shadow .15s; }
.field input::placeholder { color: var(--forest-ink-55); }
.field input:focus { outline: none; border-color: var(--forest-ink); box-shadow: 0 0 0 3px rgba(26,51,0,.12); }
.field input[aria-invalid="true"] { border-color: var(--terracotta); }
.field-error { color: var(--terracotta); font-size: 13px; margin: -4px 0 12px; }
.field-error.is-note { color: var(--forest-ink-70); }
.modal-submit { width: 100%; justify-content: center; margin-top: 6px; }
.modal-submit[disabled] { opacity: .6; cursor: progress; }

.modal-toggle { margin-top: 18px; font-size: 14px; color: var(--forest-ink-70); text-align: center; }
.linkbtn { color: var(--forest-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.modal-legal { margin-top: 16px; font-size: 12px; color: var(--forest-ink-55); line-height: 1.5; }
.modal-legal a { text-decoration: underline; text-underline-offset: 2px; }

.modal-done { text-align: center; padding: 8px 0; }
.done-tick { width: 62px; height: 62px; border-radius: 50%; background: var(--mint); border: 1px solid var(--forest-ink);
  display: grid; place-items: center; margin: 0 auto 18px; }
.modal-done h2 { font-size: clamp(26px, 4vw, 32px); }
.modal-done .modal-sub { margin-top: 12px; }
.modal-done .modal-submit { margin-top: 24px; }

@media (max-width: 480px) {
  .modal { padding: 0; align-items: flex-end; }
  .modal-card { max-width: none; max-height: 94vh; border-radius: 20px 20px 0 0; border-bottom: none;
    animation: slideup .28s cubic-bezier(.2,.8,.2,1); }
  @keyframes slideup { from { transform: translateY(24px); opacity: .6; } }
}
