/* ==========================================================================
   WESTON CLICK — base.css
   Global design system: tokens, reset, typography, layout, shared components,
   floating header, page hero, footer, buttons, cards, animation primitives.
   Loaded on every page BEFORE the page-specific stylesheet.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* --- Brand: Signal Green -----------------------------------------------
     Signal green  #14B87C   primary brand colour, highlights, accent marks
     Signal deep   #0B6E4F   buttons, dark green surfaces
     Ink           #0F1A16   text, dark backgrounds
     Bone          #F7F5F0   light backgrounds
     Slate         #6B7A74   captions, secondary text
     The scale below is built around those so every tint stays on-brand. */
  --brand-50:  #E7F8F1;
  --brand-100: #C6F0E0;
  --brand-200: #92E4C8;
  --brand-300: #5AD5AC;
  --brand-400: #2AC692;
  --brand-500: #14B87C;   /* Signal green */
  --brand-600: #0F9A68;
  --brand-700: #0B6E4F;   /* Signal deep  */
  --brand-800: #0A5840;
  --brand-900: #083F2E;
  --brand-950: #052A1F;

  /* Semantic brand aliases - use these in components, not the raw scale */
  --accent:        #0B6E4F;   /* Signal deep  - solid buttons, brand fills */
  --accent-hover:  #095B41;   /* pressed / hover state of primary          */
  --accent-bright: #14B87C;   /* Signal green - highlights, links, marks   */
  --accent-tint:   #E7F8F1;   /* tinted surfaces, icon tiles, active nav   */
  --accent-on-dark: #34D89C;  /* the one accent used for text on dark      */

  /* Brand as RGB triplets, for translucent shadows and glows */
  --accent-rgb:        11, 110, 79;
  --accent-bright-rgb: 20, 184, 124;

  /* --- Support hue: success / affirmative marks --- */
  --mint-500: #14B87C;

  /* --- Neutral ink scale - greyed toward the brand green --- */
  --ink-900: #0F1A16;   /* Ink   */
  --ink-800: #182620;
  --ink-700: #27382F;
  --ink-600: #3E5249;
  --ink-500: #6B7A74;   /* Slate */
  --ink-400: #8B9892;
  --ink-300: #AEB9B4;
  --ink-200: #CFD7D3;
  --ink-100: #E5EAE7;
  --ink-50:  #F2F5F3;

  /* --- Surfaces --- */
  --white:       #FFFFFF;
  --surface:     #FFFFFF;
  --surface-alt: #F7F5F0;   /* Bone */
  --bone:        #F7F5F0;
  --line:        #E6E2D9;
  --line-strong: #D6D1C5;

  /* --- Dark hero / footer surfaces --- */
  --ink-hero:    #0F1A16;
  --ink-hero-2:  #16281F;
  --surface-ink: #0B1410;

  /* --- Semantic text --- */
  --text:       var(--ink-900);
  --text-muted: var(--ink-500);

  /* --- Typography --- */
  --font-display: "Bricolage Grotesque", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body:    "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono:    ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;

  --fs-hero:    clamp(2.05rem, 1.25rem + 3.2vw, 3.5rem);
  --fs-h1:      clamp(2.15rem, 1.45rem + 3.1vw, 3.5rem);
  --fs-h2:      clamp(1.85rem, 1.35rem + 2.1vw, 2.75rem);
  --fs-h3:      clamp(1.3rem, 1.14rem + 0.8vw, 1.7rem);
  --fs-h4:      clamp(1.1rem, 1.04rem + 0.3vw, 1.25rem);
  --fs-lead:    clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  --fs-body:    1.0625rem;
  --fs-sm:      0.9375rem;
  --fs-xs:      0.8125rem;

  --lh-tight: 1.04;
  --lh-snug:  1.24;
  --lh-base:  1.68;

  /* --- Spacing --- */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 20px;  --sp-6: 24px;  --sp-7: 32px;  --sp-8: 40px;
  --sp-9: 48px;  --sp-10: 64px; --sp-11: 80px; --sp-12: 96px;

  --section-y:       clamp(52px, 5.2vw, 84px);
  --section-y-tight: clamp(40px, 4vw, 62px);

  /* --- Layout --- */
  --container:        1200px;
  --container-wide:   1300px;
  --container-narrow: 780px;
  --gutter: clamp(18px, 4vw, 32px);

  /* --- Radii --- */
  --r-xs: 6px;  --r-sm: 10px; --r-md: 14px;
  --r-lg: 20px; --r-xl: 28px; --r-2xl: 36px; --r-pill: 999px;

  /* --- Elevation --- */
  --shadow-xs: 0 1px 2px rgba(15, 26, 22, .04);
  --shadow-sm: 0 1px 3px rgba(15, 26, 22, .05), 0 6px 16px -8px rgba(15, 26, 22, .09);
  --shadow-md: 0 2px 6px rgba(15, 26, 22, .04), 0 16px 36px -14px rgba(15, 26, 22, .13);
  --shadow-lg: 0 4px 12px rgba(15, 26, 22, .05), 0 32px 64px -22px rgba(15, 26, 22, .17);
  --shadow-xl: 0 8px 20px rgba(15, 26, 22, .06), 0 48px 90px -28px rgba(15, 26, 22, .22);
  --shadow-accent: 0 10px 28px -10px rgba(var(--accent-rgb), .55);

  /* --- Motion --- */
  --ease-out:    cubic-bezier(.16, 1, .3, 1);
  --ease-soft:   cubic-bezier(.4, 0, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .5, 1);
  --dur-fast: .18s;
  --dur-base: .32s;

  /* --- Chrome --- */
  --header-h:     64px;   /* height of the floating nav pill */
  --header-top:   14px;   /* its offset from the top of the viewport */
  --header-space: 96px;   /* total space the pill occupies */
  --z-header: 100;
  --z-nav-panel: 120;
  --z-sticky-cta: 90;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-space) + 16px);
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-snug);
  letter-spacing: -0.025em;
  color: var(--ink-900);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: -0.035em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.032em; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); letter-spacing: -0.02em; }

p { margin: 0; text-wrap: pretty; }

a { color: var(--accent-bright); text-decoration: none; transition: color var(--dur-fast) var(--ease-soft); }
a:hover { color: var(--accent); }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }

strong, b { font-weight: 700; color: var(--ink-900); }

::selection { background: var(--brand-200); color: var(--brand-950); }

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

/* Skip link — accessibility */
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: top var(--dur-base) var(--ease-out);
}
.skip-link:focus { top: 16px; color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   3. LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide   { max-width: var(--container-wide); }
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: var(--section-y-tight); }
.section--alt { background: var(--surface-alt); }

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* Line break that only applies once there is room for it */
.br-md { display: none; }
@media (min-width: 768px) { .br-md { display: inline; } }

.measure    { max-width: 68ch; }
.measure-sm { max-width: 56ch; }

/* The floating header sits over the hero, so pages do not offset for it */
.page-main { padding-top: 0; }

/* --------------------------------------------------------------------------
   4. TYPOGRAPHIC COMPONENTS
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
}
.eyebrow--plain::before { display: none; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--ink-600);
  font-weight: 400;
  letter-spacing: -0.011em;
}

.body-copy { color: var(--ink-500); font-size: var(--fs-body); line-height: var(--lh-base); }
.body-copy + .body-copy { margin-top: var(--sp-4); }

.section-head { max-width: 760px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 + .lead { margin-top: var(--sp-4); }
.section-head + * { margin-top: clamp(40px, 5vw, 64px); }

.accent-text { color: var(--accent); }

/* Placeholder blocks: content the client must supply before launch.
   Deliberately visible so nothing fabricated ships by accident. */
.placeholder {
  display: block;
  border: 1px dashed var(--brand-300);
  background: var(--accent-tint);
  border-radius: var(--r-md);
  padding: var(--sp-5) var(--sp-6);
  color: var(--brand-950);
  font-size: var(--fs-sm);
  line-height: 1.6;
}
.placeholder__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-bright);
  background: var(--white);
  border: 1px solid var(--brand-200);
  border-radius: var(--r-pill);
  padding: 3px 10px;
  margin-bottom: var(--sp-3);
}

/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  --btn-py: 14px;
  --btn-px: 26px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--btn-py) var(--btn-px);
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: -0.008em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  transition:
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    background-color var(--dur-base) var(--ease-soft),
    border-color var(--dur-base) var(--ease-soft),
    color var(--dur-base) var(--ease-soft);
}
.btn__icon { width: 16px; height: 16px; flex: none; transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .btn__icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(.99); }

/* Primary — solid Signal Deep with a light sweep on hover */
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn--primary::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.2) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease-out);
}
.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(var(--accent-rgb), .7);
}
.btn--primary:hover::after { transform: translateX(120%); }

/* Secondary — outlined, for light surfaces */
.btn--ghost {
  background: var(--white);
  color: var(--ink-800);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-xs);
}
.btn--ghost:hover {
  color: var(--accent);
  border-color: var(--brand-300);
  background: var(--accent-tint);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* On dark surfaces */
.btn--onink {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
}
.btn--onink:hover { background: rgba(255,255,255,.16); color: #fff; transform: translateY(-2px); }

/* Text link with arrow */
.btn--link {
  padding: 6px 2px;
  border-radius: var(--r-xs);
  color: var(--accent-bright);
  background: none;
  box-shadow: none;
  overflow: visible;
}
.btn--link::before {
  content: "";
  position: absolute;
  left: 2px; right: 2px; bottom: 2px;
  height: 1px;
  background: currentColor;
  opacity: .3;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform var(--dur-base) var(--ease-out);
}
.btn--link:hover { color: var(--accent); transform: none; }
.btn--link:hover::before { transform: scaleX(1); }

.btn--lg { --btn-py: 17px; --btn-px: 32px; font-size: 1rem; }
.btn--block { display: flex; width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
}
.btn-row--center { justify-content: center; }

/* Micro-copy that sits under a CTA */
.cta-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  color: var(--ink-400);
  font-weight: 500;
}
.cta-note svg { width: 14px; height: 14px; color: var(--mint-500); flex: none; }

/* --------------------------------------------------------------------------
   6. TRUST MARKERS, PILLS, BADGES
   -------------------------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--white);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-600);
  box-shadow: var(--shadow-xs);
}
.pill__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 3px rgba(var(--accent-bright-rgb), .18);
  flex: none;
}
.pill svg { width: 14px; height: 14px; color: var(--accent); flex: none; }

.step-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-tint);
  border: 1px solid var(--brand-100);
  flex: none;
}

/* --------------------------------------------------------------------------
   7. CARDS & SURFACES
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 34px);
  transition:
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-soft);
}
/* Cursor spotlight — subtle; driven by main.js */
.fcard::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 50%),
    rgba(var(--accent-rgb), .07),
    transparent 65%
  );
  transition: opacity var(--dur-base) var(--ease-soft);
}
.fcard:hover::before { opacity: 1; }


/* --------------------------------------------------------------------------
   8. DECORATIVE BACKGROUNDS (light sections)
   -------------------------------------------------------------------------- */
.aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.aurora::before,
.aurora::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
}
.aurora::before {
  width: 620px; height: 620px;
  top: -260px; right: -120px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .3), transparent 68%);
}
.aurora::after {
  width: 520px; height: 520px;
  bottom: -280px; left: -140px;
  background: radial-gradient(circle, rgba(var(--accent-bright-rgb), .22), transparent 68%);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(15, 26, 22,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 26, 22,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 78%);
}
.grid-overlay--ink {
  background-image:
    linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
}
.aurora--ink::before { background: radial-gradient(circle, rgba(var(--accent-bright-rgb), .5), transparent 68%); }
.aurora--ink::after  { background: radial-gradient(circle, rgba(var(--accent-rgb), .45), transparent 68%); }

.layer { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   9. FLOATING HEADER / NAVIGATION
   The nav is a floating pill that sits over the dark hero on every page.
   -------------------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: calc(var(--z-header) + 1);
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width .1s linear;
}

.site-header {
  position: fixed;
  top: var(--header-top);
  left: 0; right: 0;
  z-index: var(--z-header);
  padding-inline: var(--gutter);
  pointer-events: none;          /* only the pill itself is interactive */
}

.header-inner {
  pointer-events: auto;
  max-width: 1240px;
  margin-inline: auto;
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--sp-5);
  padding: 8px 8px 8px 8px;
  border-radius: var(--r-pill);
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  transition: background-color var(--dur-base) var(--ease-soft),
              border-color var(--dur-base) var(--ease-soft),
              box-shadow var(--dur-base) var(--ease-soft);
}
.site-header.is-scrolled .header-inner {
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(170%) blur(20px);
  backdrop-filter: saturate(170%) blur(20px);
  border-color: rgba(15, 26, 22, .07);
  box-shadow: 0 10px 34px -18px rgba(15, 26, 22, .35);
}

/* Right-hand cluster: CTA + mobile toggle */
.header-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.header-cta { --btn-py: 16px; --btn-px: 30px; font-size: 1rem; font-weight: 700; }
.header-cta .btn__icon { width: 15px; height: 15px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--ink-900);
  flex: none;
}
.brand:hover { color: var(--ink-900); }
.brand__mark { width: 34px; height: 34px; border-radius: 10px; transition: transform var(--dur-base) var(--ease-spring); }
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.06); }
.brand__name { display: inline-flex; gap: .3em; }
.brand__name span { color: var(--accent-bright); }

.nav { display: flex; align-items: center; justify-content: center; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative;
  display: block;
  padding: 11px 19px;
  border-radius: var(--r-pill);
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink-600);
  transition: color var(--dur-fast) var(--ease-soft), background-color var(--dur-fast) var(--ease-soft);
}
.nav__link:hover { color: var(--ink-900); background: rgba(15, 26, 22, .07); }
.nav__link[aria-current="page"] {
  color: var(--ink-900);
  font-weight: 700;
  background: rgba(15, 26, 22, .09);
}

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(15, 26, 22, .12);
  background: rgba(255, 255, 255, .5);
  color: var(--ink-900);
  flex: none;
}
.nav-toggle:hover { background: rgba(255, 255, 255, .8); }
.nav-toggle__bars { width: 17px; height: 12px; position: relative; }
.nav-toggle__bars span {
  position: absolute; left: 0;
  width: 100%; height: 2px; border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast) var(--ease-soft);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 5px; }
.nav-toggle__bars span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1040px) {
  .header-inner {
    display: flex;
    justify-content: space-between;
    padding-left: 18px;
  }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    top: calc(var(--header-top) + var(--header-h) + 10px);
    left: var(--gutter);
    right: var(--gutter);
    z-index: var(--z-nav-panel);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    max-height: calc(100dvh - var(--header-space) - 24px);
    padding: var(--sp-5);
    overflow-y: auto;
    border-radius: var(--r-xl);
    background: rgba(247, 245, 240, .98);
    -webkit-backdrop-filter: saturate(170%) blur(20px);
    backdrop-filter: saturate(170%) blur(20px);
    border: 1px solid rgba(15, 26, 22, .08);
    box-shadow: 0 24px 60px -20px rgba(15, 26, 22, .4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(.99);
    transform-origin: top center;
    transition: opacity var(--dur-base) var(--ease-soft),
                transform var(--dur-base) var(--ease-out),
                visibility var(--dur-base);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link {
    padding: 14px 16px;
    font-size: 1.0625rem;
    font-weight: 600;
    border-radius: var(--r-md);
  }
}
@media (max-width: 560px) {
  .header-cta { --btn-px: 18px; font-size: var(--fs-xs); }
}

/* --------------------------------------------------------------------------
   10. PAGE HERO — shared across every page (.hhero)
   Split layout, sized to sit inside one screen.
   Left: badge, two-line promise, one-line sub, CTA pair, feature row, proof.
   Right: the portrait with the system drawn beside it as a three-step flow,
   a result stat, a handwritten aside and a quote card.
   Home page only; each inner page has its own hero in its page CSS.
   ========================================================================== */
.hhero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--white);
}

.hhero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hhero__blob { position: absolute; border-radius: 50%; filter: blur(120px); }
.hhero__blob--1 {
  width: 560px; height: 560px; top: -240px; right: -120px;
  background: radial-gradient(circle, rgba(var(--accent-bright-rgb), .16), transparent 70%);
}
.hhero__blob--2 {
  width: 440px; height: 440px; bottom: -220px; left: -170px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .10), transparent 70%);
}

.hhero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  padding-top: calc(var(--header-space) + clamp(84px, 7.6vw, 132px));
  padding-bottom: clamp(40px, 4vw, 60px);
}

/* On a desktop screen the whole hero is meant to land inside the first
   viewport — hence the min-height rather than a tall fixed padding block. */
@media (min-width: 961px) {
  .hhero__inner { min-height: min(100svh, 880px); }
}


/* --------------------------------------------------------------------------
   LEFT COLUMN
   -------------------------------------------------------------------------- */
.hhero__copy { min-width: 0; }

.hhero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 17px 8px 13px;
  border-radius: var(--r-pill);
  background: var(--ink-50);
  border: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-700);
}
.hhero__badge::before {
  content: "";
  width: 7px; height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--accent-bright);
  animation: hhero-pulse 2.4s var(--ease-soft) infinite;
}
@keyframes hhero-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(var(--accent-bright-rgb), .26); }
  50%      { box-shadow: 0 0 0 8px rgba(var(--accent-bright-rgb), 0); }
}

.hhero__title {
  margin-top: clamp(16px, 1.9vw, 24px);
  max-width: 21ch;
  font-size: clamp(2.05rem, 1.15rem + 2.6vw, 3.3rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.045em;
  color: var(--ink-900);
}
/* The accent line carries the hand-drawn underline, so it needs to be its
   own positioning context and sit on its own row. */
.hhero__accent {
  display: block;
  position: relative;
  width: fit-content;
  max-width: 100%;
  color: var(--accent-bright);
}
.hhero__stroke {
  position: absolute;
  left: 8%;
  right: 0;
  bottom: -0.16em;
  width: 84%;
  height: .13em;
  color: var(--accent-bright);
  opacity: .9;
}

.hhero__sub {
  margin-top: clamp(14px, 1.7vw, 20px);
  max-width: 44ch;
  font-size: clamp(1rem, .96rem + .3vw, 1.12rem);
  line-height: 1.6;
  color: var(--ink-500);
}

/* --- CTA row --- */
.hhero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  margin-top: clamp(22px, 2.6vw, 32px);
}
.hhero__actions .btn--primary { box-shadow: 0 14px 34px -14px rgba(var(--accent-rgb), .8); }
.hhero__actions .btn--primary:hover { box-shadow: 0 18px 44px -14px rgba(var(--accent-rgb), .95); }

.hplay { display: inline-flex; align-items: center; gap: 13px; color: var(--ink-900); }
.hplay__btn {
  flex: none;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid rgba(var(--accent-bright-rgb), .35);
  background: var(--accent-tint);
  color: var(--accent);
  transition: transform var(--dur-base) var(--ease-spring),
              border-color var(--dur-fast) var(--ease-soft),
              box-shadow var(--dur-base) var(--ease-soft);
}
.hplay__btn svg { width: 15px; height: 15px; margin-left: 2px; }
.hplay:hover .hplay__btn {
  transform: scale(1.07);
  border-color: var(--accent-bright);
  box-shadow: 0 10px 26px -12px rgba(var(--accent-rgb), .6);
}
.hplay__text { display: flex; flex-direction: column; line-height: 1.3; }
.hplay__text strong { font-size: var(--fs-body); font-weight: 700; }
.hplay__text span { font-size: var(--fs-sm); color: var(--ink-500); }

/* --- Feature row, above a hairline rule --- */
.hhero__features {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 1.8vw, 26px);
  margin-top: clamp(22px, 2.6vw, 32px);
  padding-top: clamp(20px, 2.4vw, 28px);
  border-top: 1px solid var(--line);
}
.hfeat { display: inline-flex; align-items: center; gap: 11px; flex: 0 1 auto; min-width: 0; }
.hfeat__icon {
  flex: none;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent-bright);
}
.hfeat__icon svg { width: 19px; height: 19px; }
.hfeat__label {
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.32;
  color: var(--ink-900);
}

/* --- Social proof --- */
.hhero__trust {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: clamp(22px, 2.6vw, 32px);
}
.avatars { display: flex; }
.avatars__item,
.av {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--av, var(--accent));
  color: #fff;
  font-weight: 700;
  font-style: normal;
  text-transform: uppercase;
}
.avatars__item {
  width: 40px; height: 40px;
  font-size: 12.5px;
  letter-spacing: .02em;
  border: 2.5px solid var(--white);
  margin-left: -11px;
  box-shadow: 0 2px 8px -3px rgba(15, 26, 22, .35);
}
.avatars__item:first-child { margin-left: 0; }
.avatars__item::after,
.av::after { content: attr(data-initials); }

.hhero__trust-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: var(--fs-sm);
  color: var(--ink-600);
}
.stars { color: #F5B544; letter-spacing: .1em; font-size: 1.02rem; line-height: 1.1; }

/* --------------------------------------------------------------------------
   RIGHT COLUMN — portrait, flow, stat, aside, quote
   -------------------------------------------------------------------------- */
.hhero__visual {
  position: relative;
  min-height: clamp(440px, 37vw, 560px);
}

.hshot {
  position: absolute;
  right: 14%;
  bottom: 0;
  height: 76%;
  width: auto;
  aspect-ratio: 448 / 509;
  margin: 0;
}
/* The green disc the subject sits in front of. */
.hshot::before {
  content: "";
  position: absolute;
  left: -4%;
  top: -16%;
  width: 104%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent-tint);
  z-index: -1;
}
.hshot__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  /* Desaturated to match the composition — drop in a colour photo and it
     picks this up automatically. */
  filter: grayscale(1) contrast(1.04);
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
}

/* --- The three-step flow, bracketed together on the left --- */
.hflow {
  position: absolute;
  left: 0;
  top: 4%;
  width: min(250px, 47%);
  display: grid;
  gap: clamp(10px, 1.4vw, 16px);
  padding-left: 22px;
  list-style: none;
}
/* Vertical spine + the dot where it meets the page. */
.hflow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  bottom: 24px;
  width: 1.5px;
  background: var(--line-strong);
}
.hflow::after {
  content: "";
  position: absolute;
  left: -3px;
  top: 50%;
  width: 8px; height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--accent);
}
.hflow__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 16px;
  border-radius: 15px;
  background: var(--white);
  border: 1px solid rgba(15, 26, 22, .05);
  box-shadow: 0 16px 38px -18px rgba(15, 26, 22, .28), 0 2px 5px rgba(15, 26, 22, .03);
  animation: hcard-float 7s var(--ease-soft) infinite;
}
.hflow__item:nth-child(2) { animation-delay: -2.3s; }
.hflow__item:nth-child(3) { animation-delay: -4.6s; }
/* Stub connecting each card back to the spine. */
.hflow__item::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 50%;
  width: 22px;
  height: 1.5px;
  background: var(--line-strong);
}
@keyframes hcard-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.hflow__icon {
  flex: none;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-tint);
  color: var(--accent);
}
.hflow__icon svg { width: 20px; height: 20px; }
.hflow__label {
  display: flex;
  flex-direction: column;
  font-size: var(--fs-xs);
  line-height: 1.35;
  color: var(--ink-500);
}
.hflow__label strong { font-size: var(--fs-sm); font-weight: 700; color: var(--ink-900); }

/* --- Result stat --- */
.hstat {
  position: absolute;
  right: -9%;
  top: 34%;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 20px;
  border-radius: 17px;
  background: var(--white);
  border: 1px solid rgba(15, 26, 22, .05);
  box-shadow: 0 18px 44px -18px rgba(15, 26, 22, .3), 0 2px 6px rgba(15, 26, 22, .04);
  animation: hcard-float 7s var(--ease-soft) infinite;
  animation-delay: -1.4s;
}
.hstat__icon {
  flex: none;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--accent-tint);
  color: var(--accent);
}
.hstat__icon svg { width: 22px; height: 22px; }
.hstat__body { display: grid; gap: 1px; min-width: 0; }
.hstat__label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-600); }
.hstat__value {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.hstat__foot { font-size: var(--fs-xs); color: var(--ink-400); }

/* --- Handwritten aside --- */
.hscript {
  position: absolute;
  top: 0;
  right: 0;
  max-width: 216px;
  font-family: Caveat, "Bricolage Grotesque", cursive;
  font-size: clamp(1.35rem, 1.05rem + .95vw, 1.8rem);
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
  color: var(--ink-900);
}
.hscript__arrow {
  position: absolute;
  right: 4px;
  top: 100%;
  width: 74px; height: 56px;
  color: var(--ink-900);
}

/* --- Quote card --- */
.hquote {
  position: absolute;
  right: -6%;
  bottom: 0;
  width: min(258px, 48%);
  margin: 0;
  padding: 20px 22px;
  border-radius: 18px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 22px 50px -20px rgba(11, 110, 79, .6);
}
.hquote p {
  font-family: Caveat, "Bricolage Grotesque", cursive;
  font-size: clamp(1.2rem, 1rem + .6vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
}
.hquote__mark {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: .6;
  color: rgba(255, 255, 255, .45);
}
.hquote::after {
  content: "";
  display: block;
  width: 56px; height: 3px;
  margin-top: 12px;
  border-radius: 2px;
  background: var(--accent-bright);
}
.hquote__spark {
  position: absolute;
  right: -18px;
  top: -20px;
  width: 34px; height: 30px;
  color: var(--accent-bright);
}
.hquote__spark svg { width: 100%; height: 100%; }

/* --------------------------------------------------------------------------
   RESPONSIVE
   Under 960px the composition stacks: promise first, picture underneath,
   and every floating element flows instead of overlapping.
   -------------------------------------------------------------------------- */
@media (max-width: 1440px) {
  .hflow   { width: min(226px, 46%); }
  /* Pushed down so the aside's arrow does not clip this card's corner. */
  .hstat   { right: -8%; top: 39%; padding: 13px 16px; }
  .hscript { max-width: 190px; }
  .hscript__arrow { width: 62px; height: 46px; }
  .hquote  { width: min(238px, 46%); padding: 17px 19px; }
}

@media (max-width: 960px) {
  .hhero__inner { grid-template-columns: minmax(0, 1fr); gap: clamp(34px, 5vw, 48px); }
  .hhero__title { max-width: 18ch; }
  .hhero__sub   { max-width: 52ch; }

  .hhero__visual {
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    grid-template-areas:
      "shot   shot"
      "flow   flow"
      "stat   quote"
      "script script";
  }
  .hshot, .hflow, .hstat, .hquote, .hscript {
    position: static;
    width: auto;
    max-width: none;
    animation: none;
  }
  .hshot {
    grid-area: shot;
    height: auto;
    width: auto;
    aspect-ratio: 16 / 11;
    border-radius: var(--r-2xl);
    overflow: hidden;
  }
  .hshot::before { display: none; }
  .hshot__img {
    object-position: center 24%;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hflow {
    grid-area: flow;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-left: 0;
  }
  .hflow::before, .hflow::after, .hflow__item::before { display: none; }

  .hstat   { grid-area: stat; }
  .hquote  { grid-area: quote; }
  .hscript { grid-area: script; text-align: center; max-width: none; }
  .hscript__arrow { display: none; }
}

@media (max-width: 680px) {
  .hhero__visual {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "shot" "flow" "stat" "quote" "script";
  }
  .hshot { aspect-ratio: 4 / 3; }
  .hflow { grid-template-columns: minmax(0, 1fr); }
  .hhero__features { gap: 14px 20px; }
  .hplay { width: 100%; }
  .hhero__actions .btn--lg { width: 100%; justify-content: center; }
}

/* Short laptop screens (the common 1366x768 class of display): compress the
   rhythm so the hero still resolves inside one view instead of overflowing. */
@media (min-width: 961px) and (max-height: 820px) {
  .hhero__inner {
    min-height: 0;
    padding-top: calc(var(--header-space) + 92px);
    padding-bottom: 16px;
  }
  .hhero__title  { font-size: clamp(1.85rem, 1.1rem + 1.85vw, 2.55rem); }
  .hhero__sub    { margin-top: 12px; font-size: 1rem; }
  .hhero__actions,
  .hhero__features,
  .hhero__trust  { margin-top: 18px; }
  .hhero__features { padding-top: 16px; }
  .hhero__visual { min-height: clamp(380px, 52svh, 470px); }
  .hplay__btn    { width: 46px; height: 46px; }
  .avatars__item { width: 36px; height: 36px; font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .hflow__item, .hstat { animation: none; }
  .hhero__badge::before { animation: none; }
}

@media (max-width: 680px) {
  /* Narrow screens get more of the portrait, less letterboxing. */
  .hshot { aspect-ratio: 1 / 1; }
  .hshot__img { object-position: center 38%; }
}


/* --------------------------------------------------------------------------
   12. SHARED SECTION PATTERNS
   -------------------------------------------------------------------------- */

/* --- Old Way vs New Way comparison --- */
.versus {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.versus__col { padding: clamp(26px, 3vw, 40px); }
.versus__col--old { background: var(--surface-alt); }
.versus__col--new {
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(var(--accent-rgb), .07), transparent 60%),
    var(--white);
}
.versus__divider { position: relative; width: 1px; background: var(--line); }
.versus__divider span {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--ink-400);
  letter-spacing: .04em;
}
.versus__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: var(--sp-5);
}
.versus__col--old .versus__label { color: var(--ink-400); }
.versus__col--new .versus__label { color: var(--accent-bright); }
.versus__title { font-size: var(--fs-h4); margin-bottom: var(--sp-4); }
.versus__list > li {
  display: flex;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--ink-600);
}
.versus__list > li:first-child { border-top: 0; padding-top: 0; }
.versus__icon { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.versus__col--old .versus__icon { color: var(--ink-300); }
.versus__col--new .versus__icon { color: var(--accent); }

@media (max-width: 860px) {
  .versus { grid-template-columns: 1fr; }
  .versus__divider { width: 100%; height: 1px; }
  .versus__divider span { width: 42px; height: 42px; }
  .versus__col--old { padding-bottom: calc(clamp(26px, 3vw, 40px) + 12px); }
  .versus__col--new { padding-top: calc(clamp(26px, 3vw, 40px) + 12px); }
}

/* --- Accordion (objections + FAQ) --- */
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__trigger {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-6);
  width: 100%;
  padding: clamp(20px, 2.4vw, 28px) 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, .98rem + .35vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.45;
  color: var(--ink-900);
  transition: color var(--dur-fast) var(--ease-soft);
}
.accordion__trigger:hover { color: var(--accent-bright); }
.accordion__icon {
  position: relative;
  width: 34px; height: 34px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--white);
  transition: background-color var(--dur-base) var(--ease-soft),
              border-color var(--dur-base) var(--ease-soft),
              transform var(--dur-base) var(--ease-out);
}
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 13px; height: 1.8px;
  border-radius: 2px;
  background: var(--ink-600);
  transform: translate(-50%, -50%);
  transition: transform var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-soft);
}
.accordion__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.accordion__trigger:hover .accordion__icon { border-color: var(--brand-300); background: var(--accent-tint); }
.accordion__trigger[aria-expanded="true"] .accordion__icon {
  background: var(--accent);
  border-color: var(--accent);
  transform: rotate(180deg);
}
.accordion__trigger[aria-expanded="true"] .accordion__icon::before,
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { background: #fff; }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.accordion__panel {
  overflow: hidden;
  height: 0;
  transition: height var(--dur-base) var(--ease-out);
}
.accordion__panel-inner {
  padding: 0 clamp(48px, 6vw, 72px) clamp(22px, 2.4vw, 30px) 0;
  color: var(--ink-500);
  font-size: var(--fs-body);
  line-height: 1.7;
}
.accordion__panel-inner > * + * { margin-top: var(--sp-4); }

/* --- System flow diagram (Website → Automation → Ads → Booked calls) ---
   Flex-based so it runs horizontally on desktop and stacks vertically on
   mobile; connectors and their travelling pulses rotate with the layout. */
.sysflow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(48px, 6vw, 80px);
  padding: clamp(28px, 4vw, 44px) clamp(20px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  background:
    radial-gradient(120% 130% at 50% 0%, rgba(var(--accent-rgb), .05), transparent 62%),
    var(--white);
  box-shadow: var(--shadow-sm);
}
.sysflow__node {
  position: relative;
  flex: 1 1 0;
  max-width: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.sysflow__node + .sysflow__node::before,
.sysflow__node + .sysflow__node::after {
  content: "";
  position: absolute;
  top: 32px;
  right: 100%;
  height: 2px;
}
.sysflow__node + .sysflow__node::before {
  width: clamp(48px, 6vw, 80px);
  background: repeating-linear-gradient(90deg, var(--brand-300) 0 7px, transparent 7px 15px);
}
.sysflow__node + .sysflow__node::after {
  width: 7px; height: 7px;
  top: 29px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .14);
  animation: sys-travel 2.8s var(--ease-soft) infinite;
  animation-delay: var(--sys-delay, 0s);
}
.sysflow__node:nth-child(3)::after { --sys-delay: .5s; }
.sysflow__node:nth-child(4)::after { --sys-delay: 1s; }
@keyframes sys-travel {
  0%       { transform: translateX(0); opacity: 0; }
  12%      { opacity: 1; }
  78%      { opacity: 1; }
  85%,100% { transform: translateX(clamp(48px, 6vw, 80px)); opacity: 0; }
}

.sysflow__icon {
  display: grid;
  place-items: center;
  width: 66px; height: 66px;
  border-radius: 20px;
  border: 1px solid var(--brand-100);
  background: linear-gradient(155deg, var(--white), var(--accent-tint));
  color: var(--accent);
  box-shadow: inset 0 1px 0 #fff, var(--shadow-xs);
  transition: transform var(--dur-base) var(--ease-spring), box-shadow var(--dur-base) var(--ease-out);
}
.sysflow__icon svg { width: 26px; height: 22px; }
.sysflow__node:hover .sysflow__icon { transform: translateY(-3px) scale(1.04); box-shadow: var(--shadow-md); }

.sysflow__name {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}
.sysflow__note { font-size: var(--fs-xs); color: var(--ink-400); }

.sysflow__node--out .sysflow__icon {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-md);
}

@media (max-width: 760px) {
  .sysflow { flex-direction: column; align-items: center; gap: 44px; }
  .sysflow__node { max-width: 260px; width: 100%; }
  .sysflow__node + .sysflow__node::before,
  .sysflow__node + .sysflow__node::after {
    top: auto; right: auto; left: 50%; bottom: 100%;
  }
  .sysflow__node + .sysflow__node::before {
    width: 2px; height: 44px; margin-left: -1px;
    background: repeating-linear-gradient(180deg, var(--brand-300) 0 7px, transparent 7px 15px);
  }
  .sysflow__node + .sysflow__node::after {
    width: 7px; height: 7px;
    margin-left: -3.5px;
    bottom: calc(100% + 37px);
    animation-name: sys-travel-y;
  }
  @keyframes sys-travel-y {
    0%       { transform: translateY(0); opacity: 0; }
    12%      { opacity: 1; }
    78%      { opacity: 1; }
    85%,100% { transform: translateY(37px); opacity: 0; }
  }
}

/* --- Benefits / business-outcomes pair --- */
.outcomes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 28px);
  margin-top: clamp(28px, 3vw, 36px);
}
.outcomes__block {
  padding: var(--sp-6);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface-alt);
}
.outcomes__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: var(--sp-4);
}
.outcomes__title svg { width: 14px; height: 14px; flex: none; }
.outcomes__list > li {
  position: relative;
  padding-left: 20px;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--ink-600);
}
.outcomes__list > li + li { margin-top: 10px; }
.outcomes__list > li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-400);
}
@media (max-width: 620px) { .outcomes { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------------------
   13. FINAL CTA BAND
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--surface-ink);
  color: rgba(255, 255, 255, .68);
}
.cta-band__inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin-inline: auto;
  text-align: center;
  padding-block: var(--section-y);
}
.cta-band h2 { color: #fff; }
.cta-band .lead { color: rgba(255, 255, 255, .66); margin-top: var(--sp-5); }
.cta-band .body-copy { color: rgba(255, 255, 255, .6); margin-top: var(--sp-5); }
.cta-band .btn-row { margin-top: var(--sp-8); }
.cta-band .cta-note { color: rgba(255, 255, 255, .5); }
.cta-band__note { margin-top: var(--sp-5); }

/* --------------------------------------------------------------------------
   14. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--surface-ink);
  color: rgba(255, 255, 255, .6);
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding-block: clamp(56px, 6vw, 84px) var(--sp-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: clamp(32px, 4vw, 56px);
}
.footer-brand .brand { color: #fff; margin-bottom: var(--sp-5); }
.footer-brand .brand:hover { color: #fff; }
.footer-brand .brand__name span { color: var(--accent-on-dark); }
.footer-brand p {
  color: rgba(255, 255, 255, .48);
  font-size: var(--fs-sm);
  line-height: 1.7;
  max-width: 34ch;
}
.footer-col__title {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .42);
  margin-bottom: var(--sp-5);
}
.footer-col ul > li + li { margin-top: 12px; }
.footer-col a {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, .62);
  transition: color var(--dur-fast) var(--ease-soft);
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, .42);
}
.footer-bottom a { color: rgba(255, 255, 255, .42); }
.footer-bottom a:hover { color: #fff; }

@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   15. STICKY MOBILE CTA
   -------------------------------------------------------------------------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-sticky-cta);
  display: none;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform var(--dur-base) var(--ease-out);
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { --btn-py: 15px; font-size: 1rem; }

@media (max-width: 768px) { .sticky-cta { display: block; } }

/* --------------------------------------------------------------------------
   16. SCROLL REVEAL PRIMITIVES
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity .7s var(--ease-out),
    transform .7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal="fade"]  { transform: none; }
[data-reveal="left"]  { transform: translateX(-26px); }
[data-reveal="right"] { transform: translateX(26px); }
[data-reveal="scale"] { transform: scale(.965); }

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* SVG path draw-in */
.draw-path {
  stroke-dasharray: var(--len, 400);
  stroke-dashoffset: var(--len, 400);
  transition: stroke-dashoffset 1.4s var(--ease-out);
  transition-delay: var(--draw-delay, 0ms);
}
.is-revealed .draw-path { stroke-dashoffset: 0; }

/* --------------------------------------------------------------------------
   17. REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .draw-path { stroke-dashoffset: 0 !important; }
}

/* --------------------------------------------------------------------------
   18. PRINT
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .sticky-cta, .site-footer, .aurora, .grid-overlay,
  .hhero__bg, .hhero__visual { display: none !important; }
  body { color: #000; }
}
