/* =====================================================================
   LeafDock — Shared stylesheet (theme + marketing site)
   ---------------------------------------------------------------------
   Vibe: techy + organic. Light, airy canvas · deep green for depth ·
   punchy emerald for actions · soft mint→white gradient washes.

   HOW TO RE-THEME: every color, font, space, radius and shadow is a
   CSS custom property in :root below. Change a value once here and it
   updates everywhere. Nothing downstream hard-codes a hex value.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. DESIGN TOKENS  (edit these to re-skin the whole brand)
   --------------------------------------------------------------------- */
:root {
  /* --- Brand colors (from the brand spec) --- */
  --bg:           #FFFFFF;  /* clean white canvas                       */
  --ink:          #15211B;  /* primary body text                        */
  --primary:      #1F4D3A;  /* deep forest green — logo, headings, dark */
  --button:       #15803D;  /* vivid emerald — ALL primary CTAs (solid) */
  --button-hover: #126C34;  /* emerald, slightly darker for hover       */
  --leaf:         #3DBF73;  /* fresh green accent                       */
  --mint:         #9FE7C4;  /* soft highlight / gradient glow           */
  --tech:         #5EEAD4;  /* bright teal pop                          */
  --surface-dark: #0E2A20;  /* dark feature/CTA sections (light text)   */

  /* --- Derived / neutral tints (tasteful extensions of the palette) --- */
  --ink-soft:     #4A5A52;  /* muted body / secondary text              */
  --ink-faint:    #7C8B83;  /* captions, meta, placeholders             */
  --line:         #E4EDE8;  /* hairline borders, dividers               */
  --surface:      #F4FAF6;  /* very light mint card/section fill        */
  --surface-2:    #EAF6EF;  /* slightly deeper mint fill                */
  --mint-wash:    #EAF8F0;  /* top of the soft mint→white gradient      */
  --on-dark:      #E8F3EC;  /* text color on --surface-dark sections    */
  --on-dark-soft: #9DBCAE;  /* muted text on dark sections              */

  /* --- Status colors (score gauges, impact tags) --- */
  --good:   #15803D;  /* green  — strong score / low effort win         */
  --warn:   #C77F12;  /* amber  — partial / medium                      */
  --bad:    #C0392B;  /* red    — needs work / high priority            */

  /* --- Typography ---
     Headings & the LeafDock wordmark: Fraunces (warm, organic serif).
     Body & all small labels: Inter. (Eyebrow/label text is the body sans,
     just uppercased + letter-spaced — no separate mono face.) */
  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;          /* headings + wordmark */
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;          /* body & labels       */

  /* --- Type scale (fluid: big & confident on large screens, clean on small) ---
     clamp(MIN, PREFERRED-vw, MAX): the vw term scales with the viewport, the
     MIN/MAX keep it readable and prevent overflow at the extremes. */
  --fs-display: clamp(2.75rem, 7vw, 5.25rem); /* hero headline           */
  --fs-h1:      clamp(2.2rem, 5vw, 3.5rem);
  --fs-h2:      clamp(1.9rem, 4.2vw, 3rem);    /* section titles         */
  --fs-h3:      clamp(1.2rem, 1.6vw, 1.45rem);
  --fs-lead:    clamp(1.1rem, 1.7vw, 1.4rem);  /* subheads / lead copy   */
  --fs-body:    1rem;
  --fs-sm:      0.9rem;
  --fs-eyebrow: 0.78rem;                      /* eyebrow / label text    */

  /* --- Spacing scale (8px base) --- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  /* Big rhythm tokens are FLUID (clamp with vh): sections + cards compress on
     short laptop viewports and expand on tall screens, so content-heavy sections
     fit/scroll instead of being cut off. Smaller tokens (1–6) stay fixed. */
  --space-7: clamp(1.5rem, 4vh, 3rem);
  --space-8: clamp(2rem, 5vh, 4rem);
  --space-9: clamp(3rem, 8vh, 6rem);   /* vertical section rhythm */

  /* --- Radius --- */
  --radius-sm:  8px;
  --radius:     14px;   /* default card/button radius (soft rounded)    */
  --radius-lg:  24px;
  --radius-pill: 999px;

  /* --- Shadows (soft, low-contrast — keeps the airy feel) --- */
  --shadow-sm: 0 1px 2px rgba(15, 42, 32, 0.05);
  --shadow:    0 8px 24px rgba(15, 42, 32, 0.07);
  --shadow-lg: 0 20px 50px rgba(15, 42, 32, 0.12);

  /* --- Layout --- */
  --container: 1140px;   /* max content width */
  --container-narrow: 760px;
  --header-h: 68px;

  /* --- Motion --- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);  /* gentle ease-out          */
  --t-fast: 0.18s;
  --t:      0.3s;
  --t-slow: 0.6s;

  /* --- Reusable gradient washes (soft, low-contrast) --- */
  --wash-mint: linear-gradient(180deg, var(--mint-wash) 0%, var(--bg) 100%);
  --wash-hero: radial-gradient(1200px 600px at 70% -10%, rgba(159,231,196,0.45) 0%, rgba(255,255,255,0) 60%),
               radial-gradient(900px 500px at 10% 0%, rgba(94,234,212,0.18) 0%, rgba(255,255,255,0) 55%);

  /* --- SIGNATURE GRADIENT ---------------------------------------------
     Decorative accents ONLY: Beacon score ring, progress bars, the
     "Most popular" badge, soft blobs, and gradient-clipped headline
     words. NEVER the page background, and NEVER behind white button text
     (its pale left end kills contrast — primary buttons stay solid). */
  --grad-signature: linear-gradient(90deg, #82F4B1 0%, #30C67C 100%);
}

/* ---------------------------------------------------------------------
   2. RESET / BASE
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

/* scroll-padding-top keeps every section top / anchor target below the sticky
   header instead of hidden under it (initAnchorScroll reads this value too). */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;          /* contain decorative blobs without clipping section content vertically */
}

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

a { color: var(--button); text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--button-hover); }

/* Headings — Fraunces serif, tight tracking, forest green by default */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--primary);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-4);
  font-weight: 700;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p  { margin: 0 0 var(--space-4); }

/* Accessible focus ring — visible on keyboard navigation everywhere */
:focus-visible {
  outline: 3px solid var(--leaf);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ---------------------------------------------------------------------
   3. LAYOUT HELPERS
   --------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--space-5); }
.container-narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--space-9); }
.section--tight { padding-block: var(--space-7); }
.section--wash { background: var(--wash-mint); }          /* soft top gradient */
.section--surface { background: var(--surface); }
.section--dark {                                          /* dark feature/CTA */
  background: var(--surface-dark);
  color: var(--on-dark);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: var(--on-dark-soft); }

.section-head { max-width: 640px; margin-bottom: var(--space-7); }
.section-head.center { margin-inline: auto; text-align: center; }

/* Eyebrow label — body sans, uppercase + letter-spaced, with a tiny leaf tick */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-4);
}
.eyebrow::before {                 /* small leaf-dot motif */
  content: "";
  width: 8px; height: 8px;
  border-radius: 0 60% 60% 60%;    /* leaf-ish teardrop */
  background: var(--leaf);
  transform: rotate(45deg);
  flex: none;
}
.section--dark .eyebrow { color: var(--tech); }

.lead { font-size: var(--fs-lead); color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.text-center { text-align: center; }

/* ---------------------------------------------------------------------
   4. BUTTONS
   Primary CTA = solid --button emerald, white text, NEVER a gradient.
   --------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--button);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1;
  padding: 0.85em 1.5em;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Primary — punchy solid emerald */
.btn-primary { background: var(--btn-bg); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--button-hover); color: #fff; box-shadow: var(--shadow); }

/* Ghost / secondary — outlined, calm */
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--leaf); color: var(--primary); background: var(--surface); }

/* On dark sections */
.section--dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.25); }
.section--dark .btn-ghost:hover { border-color: var(--tech); background: rgba(255,255,255,0.06); }

.btn-lg { padding: 1em 1.9em; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------------
   5. BADGES / PILLS
   --------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3em 0.7em;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--primary);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.badge--leaf { background: var(--mint); color: var(--primary); border-color: transparent; }
.badge--soon { background: var(--surface); color: var(--ink-faint); }

/* ---------------------------------------------------------------------
   6. CARDS
   --------------------------------------------------------------------- */
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

/* Reusable leaf bullet for feature lists */
.leaf-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.leaf-list li { position: relative; padding-left: 1.75rem; }
.leaf-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.45em;
  width: 10px; height: 10px;
  border-radius: 0 60% 60% 60%;
  background: var(--leaf);
  transform: rotate(45deg);
}

/* ---------------------------------------------------------------------
   7. SHARED MARKETING HEADER (sticky)
   --------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}
/* Logo lockup (inline SVG mark + wordmark) */
.logo { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.logo:hover { color: inherit; }
.logo__mark { width: 28px; height: 28px; flex: none; }
.logo__word--leaf { color: var(--primary); }
.logo__word--dock { color: var(--button); }

/* Primary nav */
.site-nav { display: flex; align-items: center; gap: var(--space-6); }
.site-nav a { color: var(--ink-soft); font-weight: 500; font-size: var(--fs-sm); }
.site-nav a:hover { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: var(--space-4); }
.header-actions .login-link { color: var(--ink-soft); font-weight: 600; font-size: var(--fs-sm); }
.header-actions .login-link:hover { color: var(--primary); }

/* Mobile menu toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: var(--radius-sm);
  width: 42px; height: 42px; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--primary);
  border-radius: 2px; transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after  { transform: translateY(4px); }

/* ---------------------------------------------------------------------
   8. SHARED FOOTER
   --------------------------------------------------------------------- */
.site-footer {
  background: var(--surface-dark);
  color: var(--on-dark-soft);
  padding-block: var(--space-8) var(--space-6);
}
.site-footer a { color: var(--on-dark-soft); }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-7);
  margin-bottom: var(--space-7);
}
.footer-brand .logo__word--leaf { color: #fff; }
.footer-brand .logo__word--dock { color: var(--tech); }
.footer-tagline { margin-top: var(--space-3); max-width: 32ch; color: var(--on-dark-soft); }
.footer-col h4 { color: #fff; font-size: var(--fs-sm); font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500; margin-bottom: var(--space-4); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-5);
  display: flex; flex-wrap: wrap; gap: var(--space-3);
  justify-content: space-between; align-items: center;
  font-size: var(--fs-sm); color: var(--on-dark-soft);
  font-family: var(--font-body); letter-spacing: 0.03em;
}

/* ---------------------------------------------------------------------
   8b. HERO  (marketing landing)
   Airy mint→white wash + a slow floating organic blob + faint dot grid.
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  /* overflow:hidden moved to .hero__bg so the section never clips its content;
     the decorative blob layer clips itself instead. */
  padding-block: clamp(var(--space-8), 12vw, var(--space-9));
  background: var(--wash-hero), var(--bg);
}
.hero__inner { position: relative; z-index: 1; max-width: 780px; }

/* Decorative layer */
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

/* Soft floating mint/teal blobs */
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.5;
  will-change: transform;
}
.hero__blob--1 {
  width: 420px; height: 420px;
  right: -80px; top: -120px;
  background: radial-gradient(circle at 30% 30%, var(--mint), transparent 70%);
  animation: floaty 18s var(--ease) infinite alternate;
}
.hero__blob--2 {
  width: 320px; height: 320px;
  left: -60px; bottom: -120px;
  background: radial-gradient(circle at 60% 40%, var(--tech), transparent 70%);
  opacity: 0.28;
  animation: floaty 22s var(--ease) infinite alternate-reverse;
}
@keyframes floaty {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-30px, 30px, 0) scale(1.08); }
}

/* Faint techy dot grid */
.hero__dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--mint) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(900px 500px at 75% 0%, #000 0%, transparent 70%);
          mask-image: radial-gradient(900px 500px at 75% 0%, #000 0%, transparent 70%);
  opacity: 0.5;
}

.hero__title { font-size: var(--fs-display); margin-bottom: var(--space-5); }
.hero__sub { max-width: 60ch; margin-bottom: var(--space-6); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-bottom: var(--space-5); }
.hero__note { font-family: var(--font-body); font-size: var(--fs-eyebrow); letter-spacing: 0.06em; color: var(--ink-faint); margin: 0; }

/* ---------------------------------------------------------------------
   9. SCROLL-REVEAL (driven by Intersection Observer in js/main.js)
   Elements with .reveal fade-and-rise into place. Disabled when the
   user prefers reduced motion (see §11) and immediately shown if JS off.
   --------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }   /* progressive enhancement */
/* Per-group stagger delay is set inline by js/main.js (staggerIndex). */

/* =====================================================================
   MARKETING SECTIONS (index.html)
   ===================================================================== */

/* --- Signature-gradient utilities (decorative only) --- */
.grad-text {                              /* gradient-clipped headline words */
  background: var(--grad-signature);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Generic two-column "split" layout: copy + visual */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-8);
  align-items: center;
}

/* ---- Beacon flagship ---- */
.beacon-features { display: grid; gap: var(--space-5); margin-top: var(--space-6); }
.beacon-feature { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); align-items: start; }
.beacon-feature__icon {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--primary);
}
.beacon-feature h3 { font-size: 1.1rem; margin-bottom: var(--space-1); }
.beacon-feature p { margin: 0; color: var(--ink-soft); font-size: var(--fs-sm); }

/* Decorative Beacon "score preview" card (the visual half of the split) */
.score-preview {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  box-shadow: var(--shadow);
  text-align: center;
  overflow: hidden;
}
.score-preview::before {                  /* soft signature glow behind ring */
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(300px 200px at 50% 20%, rgba(48,198,124,0.16), transparent 70%);
}
.score-preview > * { position: relative; z-index: 1; }
.score-preview__caption { font-family: var(--font-body); font-size: var(--fs-eyebrow); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: var(--space-5); }

/* ---- Score gauge (matches leafdock-report-reference.html) ---- */
.gauge { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.ring-wrap { position: relative; width: min(176px, 56vw); aspect-ratio: 1; }
.ring-wrap svg { display: block; width: 100%; height: 100%; }       /* rotate(-90) is inline on the svg */
/* Stroke / width / linecap are inline attrs on the circles. dasharray and
   dashoffset are set by JS (initGauge in main.js): it reads the circle's
   real radius, sets dasharray = circumference, and dashoffset = C × (1 −
   score/100) so ONLY score% of the ring is ever drawn. CSS supplies just
   the fill transition. */
.ring-prog { transition: stroke-dashoffset 1.1s var(--ease); }
/* JS-ABSENT fallback only: show the gauge filled to the sample 72% as a real
   arc (dasharray ≈ 2·π·66, offset ≈ 28%), so it's never a full circle. When JS
   is present, the inline pre-paint script in index.html sets the empty start
   state synchronously and initGauge animates the fill — so this never shows. */
.no-js .ring-prog { stroke-dasharray: 415; stroke-dashoffset: 116; }
/* Center label overlay: big score + smaller /100 stacked, sans + tabular */
.ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-label .score { font-size: clamp(2.6rem, 9vw, 3.25rem); font-weight: 700; line-height: 1; color: var(--primary); font-variant-numeric: tabular-nums lining-nums; }
.ring-label .max { font-size: 0.95rem; color: var(--ink-faint); font-variant-numeric: tabular-nums; margin-top: 4px; }
/* Caption BELOW the ring (not inside it) */
.gauge .cap { font-size: var(--fs-eyebrow); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }

/* ---- Category bars (match reference: name + value above a gradient fill) ---- */
.score-preview__cats { display: grid; gap: var(--space-5); margin-top: var(--space-7); text-align: left; }
.cat-top { display: flex; justify-content: space-between; font-size: var(--fs-sm); margin-bottom: var(--space-2); }
.cat-name { color: var(--ink); }
.cat-v { color: var(--primary); font-weight: 600; font-variant-numeric: tabular-nums; }
.bar-track { height: 11px; background: var(--surface-2); border-radius: 7px; overflow: hidden; }
/* RESTING STATE = filled to --val (robust: shows with no JS / no IO / reduced
   motion — never stuck at 0). From-0 fill + stagger is a .has-anim enhancement. */
.bar-fill { width: var(--val, 0%); height: 100%; border-radius: 7px; background: var(--grad-signature); transition: width 1.1s var(--ease); }
.has-anim .bar-fill { width: 0; }                                            /* start empty */
.has-anim .score-preview.is-visible .bar-fill { width: var(--val, 0%); }      /* fill on reveal */
.has-anim .score-preview.is-visible .cat:nth-child(1) .bar-fill { transition-delay: 0.08s; }
.has-anim .score-preview.is-visible .cat:nth-child(2) .bar-fill { transition-delay: 0.20s; }
.has-anim .score-preview.is-visible .cat:nth-child(3) .bar-fill { transition-delay: 0.32s; }
.has-anim .score-preview.is-visible .cat:nth-child(4) .bar-fill { transition-delay: 0.44s; }

/* ---- How it works ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); counter-reset: step; }
.step { position: relative; }
.step__num {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-family: var(--font-body); font-weight: 500; font-size: 1rem;
  color: var(--primary);
  background: var(--surface-2);
  border: 1px solid var(--line);
  margin-bottom: var(--space-4);
}
.step h3 { font-size: 1.15rem; margin-bottom: var(--space-2); }
.step p { color: var(--ink-soft); margin: 0; }

/* ---- Pricing ---- */
.billing-toggle { display: inline-flex; align-items: center; gap: var(--space-3); margin: var(--space-5) auto 0; font-family: var(--font-body); font-size: var(--fs-sm); color: var(--ink-soft); }
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch__slider { position: absolute; inset: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-pill); transition: background var(--t) var(--ease); }
.switch__slider::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 50%; transform: translateY(-50%); background: #fff; border-radius: 50%; box-shadow: var(--shadow-sm); transition: transform var(--t) var(--ease); }
.switch input:checked + .switch__slider { background: var(--button); }
.switch input:checked + .switch__slider::before { transform: translate(20px, -50%); }
.switch input:focus-visible + .switch__slider { outline: 3px solid var(--leaf); outline-offset: 2px; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); align-items: stretch; }
.price-card { display: flex; flex-direction: column; position: relative; }
.price-card--featured { border-color: transparent; box-shadow: var(--shadow-lg); }
.price-card--featured::before {           /* gradient hairline frame */
  content: ""; position: absolute; inset: -1px; z-index: -1;
  border-radius: inherit; padding: 1px;
  background: var(--grad-signature);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.price-badge {                            /* "Most popular" — signature gradient */
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad-signature);
  color: #08361F;
  font-family: var(--font-body); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.35em 0.9em; border-radius: var(--radius-pill);
  white-space: nowrap; box-shadow: var(--shadow-sm);
}
.price-card__name { font-family: var(--font-head); font-size: 1.3rem; color: var(--primary); font-weight: 700; }
.price-card__desc { color: var(--ink-soft); font-size: var(--fs-sm); min-height: 2.8em; margin-top: var(--space-1); }
.price-card__price { display: flex; align-items: baseline; gap: 0.25rem; margin: var(--space-4) 0 var(--space-2); }
/* Big stat number → body sans + tabular figures (not the serif display font) */
.price-card__amount { font-family: var(--font-body); font-size: 2.6rem; font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.01em; }
.price-card__period { color: var(--ink-faint); font-family: var(--font-body); font-size: var(--fs-sm); }
.price-card .leaf-list { margin: var(--space-4) 0 var(--space-6); font-size: var(--fs-sm); }
.price-card .btn { margin-top: auto; }

/* ---- Automation cards ---- */
.auto-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.auto-card { display: flex; flex-direction: column; gap: var(--space-3); }
.auto-card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.auto-card h3 { font-size: 1.05rem; margin: 0; }
.auto-card p { margin: 0; color: var(--ink-soft); font-size: var(--fs-sm); }

/* ---- About ---- */
.about { text-align: center; }

/* ---- Final CTA ---- */
/* No overflow:hidden here — it was clipping the CTA button when the section
   grew taller than the viewport. The blob is contained by body's overflow-x. */
.final-cta { text-align: center; position: relative; }
.final-cta__blob {                        /* soft signature blob behind copy */
  position: absolute; width: 520px; height: 520px; border-radius: 50%;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(48,198,124,0.22), transparent 65%);
  pointer-events: none; z-index: 0;
}
.final-cta .container { position: relative; z-index: 1; }
.cta-points { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3) var(--space-6); padding: 0; margin: var(--space-5) 0 0; }
.cta-points li { display: flex; align-items: center; gap: var(--space-2); color: var(--on-dark); font-weight: 500; font-size: var(--fs-sm); }
.cta-points li::before { content: ""; width: 8px; height: 8px; border-radius: 0 60% 60% 60%; background: var(--tech); transform: rotate(45deg); flex: none; }

/* ---- Supporting content (fills sparse sections tastefully) ---- */
/* Hero: row of AI assistants Beacon checks */
.hero__platforms { margin-top: var(--space-6); }
.hero__platforms-label { display: block; font-size: var(--fs-eyebrow); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-faint); font-weight: 600; margin-bottom: var(--space-3); }
.platform-row { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); padding: 0; margin: 0; }
.platform-row li { display: flex; align-items: center; gap: var(--space-2); font-weight: 600; color: var(--primary); font-size: 0.95rem; }
.platform-row li::before { content: ""; width: 7px; height: 7px; border-radius: 0 60% 60% 60%; background: var(--leaf); transform: rotate(45deg); flex: none; }

/* About: three guiding principles */
.about-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); margin-top: var(--space-8); text-align: left; }
.about-point h3 { font-size: var(--fs-h3); margin-bottom: var(--space-2); }
.about-point p { color: var(--ink-soft); margin: 0; }
.about-point { position: relative; padding-top: var(--space-4); border-top: 2px solid var(--mint); }

/* Soft signature accent shape (reused to balance sparse sections) */
.accent-blob { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(48,198,124,0.16), transparent 65%); }

/* ---- Full-height sections (desktop) ----
   Normal native scrolling (no JS snap). Each section fills the viewport with
   vertically centered content (the full-height look). KEY: min-height (NEVER a
   fixed height) + NO overflow:hidden — so a section whose content exceeds the
   viewport simply GROWS and scrolls; nothing is clipped or unreachable. The
   fluid --space-* rhythm above compresses padding on short laptop screens, and
   scroll-padding-top keeps headings below the sticky header. */
@media (min-width: 761px) and (prefers-reduced-motion: no-preference) {
  .snap-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* ---------------------------------------------------------------------
   10. RESPONSIVE
   --------------------------------------------------------------------- */
/* Hero starts at the top — no empty space above the content, so you only scroll down */

@media (max-width: 980px) {
  .auto-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: var(--space-6); }
  .split .score-preview { order: -1; }     /* show the visual first on mobile */
  .steps { grid-template-columns: 1fr; gap: var(--space-5); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .price-card--featured { order: -1; }      /* surface the popular plan first */
  .auto-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .about-points { grid-template-columns: 1fr; gap: var(--space-5); margin-top: var(--space-6); }
}
@media (max-width: 760px) {
  /* Collapse primary nav into a toggle-able panel */
  .nav-toggle { display: inline-flex; }
  .site-nav, .header-actions { display: none; }

  /* Mobile nav panel injected/toggled by main.js (.is-open on <header>) */
  .site-header.is-open .site-nav,
  .site-header.is-open .header-actions {
    display: flex;
    position: absolute;
    left: 0; right: 0; top: var(--header-h);
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-header.is-open .header-actions { top: calc(var(--header-h) + 0px); box-shadow: var(--shadow); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------------------------------------------------------------------
   11. REDUCED MOTION — honor user preference
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
