/* ============================================================
   F35 WebKit — BASE LAYER
   ------------------------------------------------------------
   Structure, components and motion. NEVER hard-code a colour,
   radius, shadow or font family in this file — read a token from
   theme.css instead. If a client needs a different look, the fix
   belongs in their theme.css, not here.

   Written mobile-first. Page-specific overrides go in the page's
   own <style> block ONLY when the rule genuinely cannot be shared.
   ============================================================ */

/* ============================================================
   1. RESET / BASE
   ============================================================ */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Anchor jumps must clear the LIVE sticky header (kit.js measures it into
     --header-h on every page). A hard-coded value overshoots on mobile, where
     the header is shorter. */
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;   /* iOS must not inflate text in landscape */
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--body);
  background: var(--canvas);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Never let a stray wide element create a horizontal scrollbar on a phone.
     `clip`, not `hidden` — `hidden` makes this a scroll container and kills
     position:sticky on the header. */
  overflow-x: clip;
}

/* The [hidden] attribute must always win. Any author rule that sets `display`
   otherwise silently un-hides the element. */
[hidden] { display: none !important; }

/* Long words and URLs must not push the layout wider than the viewport. */
h1, h2, h3, h4, p, li, td, th, dd, dt, figcaption, label, summary { overflow-wrap: break-word; }

/* height:auto is NOT optional. Images declare width/height attributes to prevent
   layout shift; without height:auto those attributes supply a DEFINITE height,
   which silently disables every aspect-ratio rule below it. */
img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-dark); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 6px;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.08;
  color: var(--ink);
  margin: 0 0 .5em;
  font-weight: 650;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.35rem, 5.4vw, 4.15rem); letter-spacing: -0.032em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); letter-spacing: -0.026em; }
h3 { font-size: 1.28rem; letter-spacing: -0.012em; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1rem; }

::selection { background: var(--brand); color: var(--brand-on); }

/* ============================================================
   2. LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  /* Gutters respect the iPhone notch in landscape (needs viewport-fit=cover). */
  padding-inline: max(1.4rem, env(safe-area-inset-left)) max(1.4rem, env(safe-area-inset-right));
}
.container--narrow { max-width: 760px; }
.container--wide { max-width: 1320px; }

.section { padding: clamp(3.5rem, 8vw, 6.75rem) 0; }
.section--tight { padding: clamp(2.4rem, 5vw, 4rem) 0; }
.section--alt { background: var(--surface-2); }
.section--dark {
  background:
    radial-gradient(900px 500px at 82% -20%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 60%),
    var(--dark);
  color: var(--on-dark);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark .lead { color: var(--on-dark-muted); }
.section--dark a { color: #fff; }

.text-center { text-align: center; }
.section-intro { max-width: 62ch; margin-inline: auto; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 64ch; }
.text-center .lead, .section-intro .lead { margin-inline: auto; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .74rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: .7rem;
}
.section--dark .eyebrow { color: var(--accent); }

.stack > * + * { margin-top: 1rem; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ============================================================
   3. BUTTONS
   Hardened so a long label wraps inside the pill instead of
   overflowing it, and so a flex parent can never squeeze the
   label below its own text width.
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  cursor: pointer; border: 0; max-width: 100%;
  font-family: var(--sans); font-weight: 650; font-size: 1rem; line-height: 1.2;
  text-align: center; white-space: normal;
  padding: .85rem 1.6rem; border-radius: 999px; text-decoration: none;
  overflow: hidden;
  transition: transform .18s var(--ease), box-shadow .22s var(--ease),
              background .18s var(--ease), color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Sheen: a soft highlight sweeps across on hover. Pure CSS, GPU-cheap, and it
   reads as "this is a real product" without animating anything on load. */
.btn::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,.34) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform .6s var(--ease);
  pointer-events: none;
}
.btn:hover::after { transform: translateX(120%); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: var(--brand-on);
  box-shadow: var(--shadow);
}
.btn-primary:hover { box-shadow: var(--shadow-lg); }

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--accent-on);
  box-shadow: var(--shadow);
}

.btn-ghost {
  background: transparent; color: var(--brand-dark);
  border: 2px solid var(--brand);
  padding: calc(.85rem - 2px) calc(1.6rem - 2px);
}
.btn-ghost:hover { background: var(--brand); color: var(--brand-on); }
.btn-ghost::after { display: none; }

.btn-ghost--light { color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost--light:hover { background: #fff; color: var(--ink); }

.btn-lg { padding: 1.02rem 2.1rem; font-size: 1.06rem; }
.btn-ghost.btn-lg { padding: calc(1.02rem - 2px) calc(2.1rem - 2px); }
.btn-sm { padding: .5rem 1.05rem; font-size: .88rem; }
.btn-ghost.btn-sm { padding: calc(.5rem - 2px) calc(1.05rem - 2px); }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.btn-row--center { justify-content: center; }

/* Every touch target clears the 44px WCAG 2.5.5 minimum. */
@media (pointer: coarse) {
  .btn { min-height: 44px; }
}

/* ============================================================
   4. HEADER / NAV
   ============================================================ */

/* Skip link — parked off-canvas until focused. Keyboard users otherwise have to
   tab through the entire nav on every page. Must be the first element in <body>. */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: var(--brand-on);
  padding: .7rem 1.1rem; border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 650; text-decoration: none;
}
.skip-link:focus { left: 0; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.site-header.scrolled {
  box-shadow: 0 6px 26px -16px rgba(20,23,28,.45);
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--canvas) 94%, transparent);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 72px;
}

.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); min-width: 0; }
/* The mark is 40px, which leaves the whole brand link 4px short of the 44px
   touch minimum. Only matters on touch devices, so only applied there. */
@media (pointer: coarse) { .brand { min-height: 44px; } }
.brand img, .brand .brand-mark { width: 40px; height: 40px; object-fit: contain; flex: 0 0 auto; }
.brand-text {
  font-family: var(--display); font-weight: 650; font-size: 1.12rem; line-height: 1.05;
  display: flex; flex-direction: column; letter-spacing: -0.02em; overflow: hidden;
}
.brand-text small {
  font-family: var(--sans); font-weight: 600; font-size: .62rem; letter-spacing: .14em;
  color: var(--muted); text-transform: uppercase; white-space: nowrap;
}

.primary-nav { display: flex; align-items: center; gap: 1.4rem; }
.primary-nav ul { display: flex; gap: 1.15rem; list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  text-decoration: none; color: var(--body); font-weight: 550; font-size: .93rem;
  padding: .35rem 0; position: relative;
  transition: color .16s var(--ease);
}
/* Underline grows from the centre on hover — one small, deliberate flourish. */
.primary-nav > ul > li > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--brand); border-radius: 2px;
  transform: scaleX(0); transition: transform .22s var(--ease);
}
.primary-nav a:hover { color: var(--brand-dark); }
.primary-nav > ul > li > a:hover::after { transform: scaleX(1); }
.primary-nav a[aria-current="page"] { color: var(--brand-dark); font-weight: 650; }
.primary-nav > ul > li > a[aria-current="page"]::after { transform: scaleX(1); }

/* The CTA is marked up TWICE — once inside #primary-nav (so it appears at the
   bottom of the mobile drawer) and once in the header bar (for desktop). Each
   breakpoint hides the copy it doesn't want; without this pair of rules both
   render side by side at desktop widths. */
.nav-cta-group { display: flex; align-items: center; gap: .6rem; }
@media (min-width: 1001px) {
  .primary-nav > .nav-cta-group { display: none; }
}

.nav-toggle {
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: transparent; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 0; margin-right: -6px; border-radius: 12px;
}
.nav-toggle span {
  width: 25px; height: 2.5px; background: var(--ink); border-radius: 2px;
  transition: transform .28s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* The scrim dims the page behind the open drawer AND IS the scroll lock:
   touch-action:none means a drag on it scrolls nothing. We deliberately do NOT
   put overflow:hidden or position:fixed on html/body — that makes the root a
   scroll container, which kills position:sticky and drops the header (and the
   drawer hanging off it) off the top of the screen. */
.nav-scrim {
  position: fixed; inset: 0; z-index: 45;
  background: rgba(15, 18, 22, .42);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity .28s var(--ease);
  touch-action: none; overscroll-behavior: contain;
}
.nav-scrim.is-open { opacity: 1; pointer-events: auto; }

/* Drawer breakpoint. Raise it if a client's nav has many links — a wrapped
   two-row header is the single most common way a site looks broken. */
@media (max-width: 1000px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    /* ABSOLUTE, anchored to the sticky header — not fixed. .site-header has a
       backdrop-filter, which makes it the containing block for fixed children,
       so position:fixed here resolves against the header, not the viewport. */
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--canvas); border-bottom: 1px solid var(--line);
    padding: .6rem 1.4rem calc(1.6rem + env(safe-area-inset-bottom));
    padding-inline: max(1.4rem, env(safe-area-inset-left)) max(1.4rem, env(safe-area-inset-right));
    box-shadow: var(--shadow-lg);
    transform: translateY(-135%); transition: transform .32s var(--ease);
    /* dvh, not vh: vh is the LARGEST mobile viewport, so with the URL bar showing
       the last menu items sat under the browser chrome and were unreachable. */
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto; overscroll-behavior: contain;
    z-index: 46;
  }
  .primary-nav.open { transform: translateY(0); }
  .primary-nav:focus { outline: none; }   /* focused programmatically only */
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav li { border-bottom: 1px solid var(--line); }
  .primary-nav a { display: flex; align-items: center; min-height: 52px; padding: .55rem 0; font-size: 1.02rem; }
  .primary-nav > ul > li > a::after { display: none; }
  .primary-nav a[aria-current="page"]::before {
    content: ""; width: 4px; height: 22px; border-radius: 999px;
    background: var(--brand); margin-right: .7rem; flex: 0 0 4px;
  }
  /* Scoped to the drawer. Unscoped, this also hits pages whose header has a
     .nav-cta-group but NO drawer (404, thanks) and stacks their buttons. */
  .primary-nav .nav-cta-group { flex-direction: column; align-items: stretch; gap: .7rem; margin-top: 1.1rem; }
  .primary-nav .nav-cta-group .btn { width: 100%; }
  .header-inner > .nav-cta-group { display: none; }
}
/* Landscape phones: the panel scrolls rather than overflowing. */
@media (max-width: 1000px) and (max-height: 480px) {
  .primary-nav a { min-height: 44px; }
  .primary-nav { padding-top: .3rem; }
}
@media (max-width: 420px) {
  .brand-text small { display: none; }
}

/* ============================================================
   5. HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3.2rem, 9vw, 7rem) 0;
  background: linear-gradient(180deg, var(--canvas) 0%, var(--surface-2) 100%);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 2.4rem; align-items: center;
}
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.06fr .94fr; gap: 3.5rem; }
}
.hero h1 .accent {
  /* Gradient text for the emphasised phrase. background-clip is widely supported;
     the color fallback below keeps it readable if it ever isn't. */
  color: var(--brand-dark);
  background: linear-gradient(100deg, var(--brand) 0%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .lead { font-size: clamp(1.1rem, 1.9vw, 1.32rem); max-width: 54ch; }

/* Aurora: two slow-drifting colour clouds behind the hero. This is the site's
   only ambient animation — it is 20s+, low contrast, and pauses under
   prefers-reduced-motion. Anything faster reads as a distraction. */
.hero--aurora::before,
.hero--aurora::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .5; pointer-events: none; z-index: 0;
}
.hero--aurora::before {
  width: 46vw; height: 46vw; min-width: 340px; min-height: 340px;
  top: -18%; right: -8%;
  background: color-mix(in srgb, var(--brand) 55%, transparent);
  animation: aurora-a 24s var(--ease) infinite alternate;
}
.hero--aurora::after {
  width: 38vw; height: 38vw; min-width: 280px; min-height: 280px;
  bottom: -22%; left: -10%;
  background: color-mix(in srgb, var(--accent) 42%, transparent);
  animation: aurora-b 30s var(--ease) infinite alternate;
}
.hero > .container { position: relative; z-index: 1; }

@keyframes aurora-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-6%, 8%, 0) scale(1.14); }
}
@keyframes aurora-b {
  from { transform: translate3d(0, 0, 0) scale(1.08); }
  to   { transform: translate3d(8%, -6%, 0) scale(.94); }
}

.hero-art {
  position: relative; aspect-ratio: 4 / 3.1; border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--dark) 0%, var(--dark-2) 100%);
  display: grid; place-items: center; color: #fff;
  box-shadow: var(--shadow-lg); text-align: center; padding: 2rem; overflow: hidden;
}
/* A DIRECT child <img> is the panel's full-bleed background photo. Scoped to
   `>` deliberately: an unscoped rule also grabs any icon or logo nested in the
   panel's content, stretches it to fill, and — being positioned with z-index 0
   — paints it straight over the text beside it. */
.hero-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-art > *:not(img) { position: relative; z-index: 1; }

.trust-row {
  display: flex; flex-wrap: wrap; gap: .55rem 1.4rem; margin-top: 1.6rem;
  color: var(--muted); font-weight: 600; font-size: .92rem;
}
.trust-row span { display: inline-flex; align-items: center; gap: .45rem; }
.trust-row .dot { color: var(--brand); }

/* Interior-page hero — smaller, no aurora. */
.page-hero {
  position: relative;
  background: linear-gradient(180deg, var(--canvas) 0%, var(--surface-2) 100%);
  padding: clamp(2.6rem, 6vw, 4.4rem) 0;
  border-bottom: 1px solid var(--line);
}
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: .6rem; }
.breadcrumb a { color: var(--muted); }

/* ============================================================
   6. GRID + CARDS
   ============================================================ */
.grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 620px) {
  .grid-2, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-sm);
  transition: transform .24s var(--ease), box-shadow .24s var(--ease), border-color .24s var(--ease);
}
.card h3 { margin-top: .35rem; }
.card > :last-child { margin-bottom: 0; }
.card .icon {
  display: inline-grid; place-items: center; width: 54px; height: 54px;
  border-radius: 15px; background: var(--brand-soft); color: var(--brand-dark);
  font-size: 1.6rem; margin-bottom: .5rem;
}
.card--link { text-decoration: none; color: inherit; display: block; }
.card--hover:hover, .card--link:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
}
/* Accent rule wipes in across the top edge on hover. */
.card--link::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  border-radius: var(--radius) var(--radius) 0 0;
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.card--link:hover::after { transform: scaleX(1); }

.pill {
  display: inline-block; background: var(--surface-2); color: var(--brand-dark);
  font-size: .74rem; font-weight: 700; letter-spacing: .02em;
  padding: .3rem .74rem; border-radius: 999px; margin: 0 .3rem .3rem 0;
}
.pill--accent { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent-dark); }

/* ============================================================
   7. STEPS / PROCESS
   ============================================================ */
.steps { counter-reset: step; display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 780px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding-top: 3.4rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: var(--brand-on); font-family: var(--display); font-weight: 700; font-size: 1.15rem;
  box-shadow: var(--shadow-sm);
}
/* Connector line between steps on wide screens only. */
@media (min-width: 780px) {
  .step::after {
    content: ""; position: absolute; top: 23px; left: 56px; right: -1.4rem; height: 2px;
    background: linear-gradient(90deg, var(--line), transparent);
  }
  .step:last-child::after { display: none; }
}
.section--dark .step h3 { color: #fff; }

/* ============================================================
   8. PRICING
   ============================================================ */
.price-card { display: flex; flex-direction: column; }
.price-card .btn { margin-top: auto; }
.price-card.featured {
  border-color: transparent;
  box-shadow: var(--shadow);
}
/* Gradient border via a masked pseudo-element — a real 2px gradient edge, not a
   background bleed, so the card's own surface stays clean. */
.price-card.featured::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: var(--brand-on); font-size: .7rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .3rem .85rem; border-radius: 999px; white-space: nowrap;
  box-shadow: var(--shadow-sm); z-index: 2;
}
.price {
  font-family: var(--display); font-weight: 700; font-size: 2.7rem; line-height: 1;
  color: var(--ink); margin: .5rem 0 .15rem; letter-spacing: -0.03em;
}
.price .per { font-family: var(--sans); font-size: .9rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price-sub { color: var(--muted); font-size: .9rem; margin: 0 0 1rem; }

.check-list { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .6rem; }
.check-list li { position: relative; padding-left: 1.75rem; font-size: .96rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 8px; height: 14px; border: solid var(--brand);
  border-width: 0 2.5px 2.5px 0; transform: rotate(42deg) translateY(-50%);
}
.check-list li.no { color: var(--muted); }
.check-list li.no::before {
  content: "\00d7"; width: auto; height: auto; border: 0; transform: none;
  color: var(--muted); font-size: 1.15rem; line-height: 1; top: .18em;
}

/* ============================================================
   9. STAT BAND
   ============================================================ */
.stat-band { display: grid; gap: 1.4rem; grid-template-columns: repeat(2, 1fr); text-align: center; }
@media (min-width: 780px) { .stat-band { grid-template-columns: repeat(4, 1fr); } }
.stat-num {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.03em;
  font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1; color: var(--brand);
  font-variant-numeric: tabular-nums;   /* digits don't jiggle while counting up */
}
.section--dark .stat-num { color: var(--accent); }
.stat-label { font-size: .88rem; color: var(--muted); margin-top: .4rem; }
.section--dark .stat-label { color: var(--on-dark-muted); }

/* ============================================================
   10. FAQ ACCORDION
   ============================================================ */
.faq { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); margin-bottom: .75rem; overflow: hidden;
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-item:has(.faq-q[aria-expanded="true"]) { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.faq-q {
  width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
  padding: 1.15rem 1.3rem; font-size: 1.04rem; font-weight: 650; font-family: var(--display);
  color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-q .chev { transition: transform .3s var(--ease); color: var(--brand); flex: 0 0 auto; }
.faq-q[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq-a {
  padding: 0 1.3rem; max-height: 0; overflow: hidden;
  transition: max-height .34s var(--ease), padding .34s var(--ease);
}
/* 60rem, not a pixel value: on a 360px phone a four-line answer already exceeds
   420px, and a too-small cap silently CLIPS the end of longer answers. */
.faq-a.open { padding: 0 1.3rem 1.3rem; max-height: 60rem; }
.faq-a > :last-child { margin-bottom: 0; }

/* ============================================================
   11. FORMS
   ============================================================ */
.form { max-width: 680px; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 0 1.3rem; }
@media (min-width: 620px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.15rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 650; font-size: .92rem; color: var(--ink); }
.field .hint { font-size: .84rem; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 1rem; padding: .82rem .95rem; width: 100%;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--body);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
/* 16px minimum on mobile or iOS Safari zooms the whole page on focus. */
@media (max-width: 620px) {
  .field input, .field select, .field textarea { font-size: 16px; }
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: var(--ring);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .85rem; font-weight: 600; }
.req { color: var(--danger); }

/* Checkbox / radio cards — a tap target that looks designed, not like a raw input. */
.choice-grid { display: grid; gap: .7rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .choice-grid { grid-template-columns: 1fr 1fr; } }
.choice {
  display: flex; align-items: flex-start; gap: .7rem; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .9rem 1rem; background: var(--surface); font-size: .96rem;
  transition: border-color .16s var(--ease), background .16s var(--ease), box-shadow .16s var(--ease);
}
.choice:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.choice input { margin: .28rem 0 0; flex: 0 0 auto; accent-color: var(--brand); width: 18px; height: 18px; }
.choice:has(input:checked) {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 6%, var(--surface));
  box-shadow: var(--shadow-sm);
}
.choice:has(input:focus-visible) { box-shadow: var(--ring); }
.choice strong { display: block; color: var(--ink); }
.choice span.desc { display: block; color: var(--muted); font-size: .87rem; line-height: 1.5; }

/* Honeypot. Must be reachable by bots but never by humans or screen readers —
   display:none is skipped by some bots, so position it off-canvas instead. */
.hp-field {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

/* ---- Multi-step form ---- */
.steps-progress { margin-bottom: 2rem; }
.steps-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.steps-bar span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  border-radius: 999px; transition: width .45s var(--ease);
}
.steps-count { font-size: .85rem; color: var(--muted); font-weight: 600; margin-top: .55rem; }
.form-step[hidden] { display: none !important; }
/* Each step fades up as it becomes current. Short (0.35s) so it never delays input. */
.form-step { animation: step-in .35s var(--ease) both; }
@keyframes step-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.form-nav { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.4rem; }
.form-nav .btn { flex: 1 1 auto; min-width: 140px; }

/* ============================================================
   12. TESTIMONIALS + LOGO STRIP
   ============================================================ */
.quote {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem; box-shadow: var(--shadow-sm); position: relative;
}
.quote::before {
  content: "\201C"; font-family: var(--display); font-size: 3.4rem; line-height: 1;
  color: var(--brand); position: absolute; top: .35rem; right: 1rem; opacity: .28;
}
.quote p { font-size: 1.04rem; }
.quote cite { font-style: normal; font-weight: 700; color: var(--brand-dark); }
.quote cite span { display: block; font-weight: 400; font-size: .88rem; color: var(--muted); }

.logo-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 1.5rem 2.75rem; opacity: .72;
}
.logo-strip img { max-height: 34px; width: auto; filter: grayscale(1); transition: filter .25s var(--ease), opacity .25s var(--ease); }
.logo-strip img:hover { filter: none; }

/* ============================================================
   13. TABLES
   ============================================================ */
.table-wrap {
  overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; background: var(--surface); min-width: 540px; }
th, td { text-align: left; padding: .95rem 1.1rem; border-bottom: 1px solid var(--line-soft); }
thead th {
  background: linear-gradient(160deg, var(--dark), var(--dark-2)); color: #fff;
  font-family: var(--display); font-weight: 650; letter-spacing: -0.01em;
  position: sticky; top: 0;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: var(--surface-2); }
td .yes { color: var(--ok); font-weight: 700; }
td .no { color: var(--muted); }

/* ============================================================
   14. CALLOUT BAND + NOTES
   ============================================================ */
.band {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: var(--brand-on); border-radius: var(--radius-lg);
  padding: clamp(2.2rem, 5vw, 3.6rem); text-align: center; box-shadow: var(--shadow-lg);
}
.band::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1.4px);
  background-size: 20px 20px; opacity: .5;
}
.band > * { position: relative; z-index: 1; }
.band h2 { color: #fff; }
.band .lead { color: rgba(255,255,255,.86); margin-inline: auto; }

.note {
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: var(--radius-sm); padding: .95rem 1.15rem; font-size: .93rem; margin: 1.2rem 0;
}
.note--danger { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.note > :last-child { margin-bottom: 0; }

/* ============================================================
   15. GALLERY
   ============================================================ */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 760px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-grid .tile {
  aspect-ratio: 1; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(150deg, var(--surface-2), var(--line));
  display: grid; place-items: center; color: var(--muted); font-size: .85rem;
  text-align: center; padding: 1rem; transition: transform .25s var(--ease);
}
.gallery-grid .tile:hover { transform: translateY(-4px); }
.gallery-grid .tile img { width: 100%; height: 100%; object-fit: cover; }

/* Browser-chrome frame for site screenshots. Makes a flat screenshot read as
   "a real website" instead of "an image someone pasted". */
.screenshot {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); background: var(--surface);
}
.screenshot__bar {
  display: flex; align-items: center; gap: .4rem;
  padding: .6rem .85rem; background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.screenshot__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.screenshot__bar span {
  margin-left: .6rem; font-size: .74rem; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* Crop to a 3:2 window anchored at the top. A site screenshot is usually a
   full-page capture many thousands of pixels tall; without this the card
   becomes a mile-long strip. The top of the page is the part worth showing. */
.screenshot img {
  width: 100%; display: block;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: top center;
}

/* ============================================================
   16. FOOTER
   ============================================================ */
.site-footer {
  background:
    radial-gradient(700px 300px at 90% -40%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 60%),
    var(--dark);
  color: var(--on-dark-muted); margin-top: 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem; padding: 3.4rem 0 2rem;
}
@media (min-width: 560px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.site-footer h3 { color: #fff; font-size: .95rem; margin-bottom: .9rem; letter-spacing: .01em; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; transition: color .16s var(--ease); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35rem; }
/* A bare 20px line of text is under the 24px WCAG 2.5.8 pointer-target minimum,
   so footer links get vertical padding at every pointer type — not only touch. */
.site-footer li a { display: inline-block; padding-block: .3rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 1.3rem 0;
  font-size: .84rem; color: var(--on-dark-muted);
  display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; justify-content: space-between;
}
.brand--footer, .brand--footer .brand-text { color: #fff; }
/* Footer links are ~20px of text. On touch devices they need a 44px target, so
   pad them vertically and pull the extra height back out with a negative margin
   — otherwise every footer column grows by 50%. */
@media (pointer: coarse) {
  .site-footer li a,
  .footer-bottom a {
    display: inline-block;
    padding-block: .8rem;
    margin-block: -.5rem;
  }
}

/* ============================================================
   17. MOTION — scroll reveal
   The ONLY entrance animation in the kit. Elements start 18px low
   and fade in as they enter the viewport, with a small stagger for
   siblings. kit.js adds .is-visible; if JS fails or the visitor
   prefers reduced motion, everything is shown immediately.
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   18. REDUCED MOTION
   One block, at the end, that wins. Anything animated above must
   be listed here or it will keep moving for a visitor who asked
   the operating system for stillness.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .form-step { animation: none !important; }
  .hero--aurora::before, .hero--aurora::after { animation: none !important; }
  .btn::after { display: none !important; }
  .btn, .card, .card--link, .gallery-grid .tile, .site-header, .primary-nav,
  .nav-toggle span, .faq-q .chev, .steps-bar span {
    transition: none !important;
  }
  .btn:hover, .card--hover:hover, .card--link:hover, .gallery-grid .tile:hover { transform: none !important; }
}

/* ============================================================
   19. PRINT
   ============================================================ */
@media print {
  .site-header, .site-footer, .nav-scrim, .btn, .band { display: none !important; }
  body { color: #000; background: #fff; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
