/* ── Self-hosted variable fonts (SIL OFL) ───────────────────────────────────
   No third-party font CDN: removes a ~2.1s blocking request, keeps visitor
   IPs out of Google logs, and works offline. One file per family, all weights. */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 100 900;
  font-display: swap; src: url('assets/fonts/Fraunces-var.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 100 900;
  font-display: swap; src: url('assets/fonts/Manrope-var.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 900;
  font-display: swap; src: url('assets/fonts/JetBrainsMono-var.woff2') format('woff2'); }

/* ==========================================================================
   AVZERA Digital Solutions
   Palette: Palace Obsidian + Champagne Gold. Light, dark and brand modes.
   ========================================================================== */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  /* Core Electric Blue — the logo's own colour. The site previously ran on a
     champagne-gold accent that matched neither the wordmark nor the 3D scene, so
     the brand read as two different studios depending on which page you landed
     on. Blue is the locked identity; gold survives below as the kintsugi accent
     that ties the 2D site to the fractured-brain scene. */
  --blue: #0066ff;
  --blue-soft: #2f88ff;
  --blue-dim: #0b4fa8;
  --accent: #0066ff;
  --accent-soft: #2f88ff;
  --accent-dim: #0b4fa8;

  /* Kintsugi gold: the fracture repair accent, used only where the story is the
     brain. Kept as a separate token so it never competes with the brand blue. */
  --kintsugi: #c9a227;
  --kintsugi-soft: #e0bf52;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;

  --max: 1180px;
  --gutter: clamp(20px, 5vw, 48px);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

[data-theme="light"] {
  --ink: #14161c;
  --ink-2: #3d4049;
  --ink-3: #5c606b;
  --bg: #f7f4ed;
  --bg-2: #efeade;
  --bg-3: #e6e0d2;
  --line: rgba(20, 22, 28, .10);
  --line-2: rgba(20, 22, 28, .20);
  --card: rgba(255, 255, 255, .70);
  --card-hi: rgba(255, 255, 255, .95);
  --shadow: 0 18px 50px rgba(20, 22, 28, .12);
}

/* Blue needs to darken on a light surface to keep 4.5:1 contrast */
[data-theme="light"] {
  --accent: #0050d0; --accent-dim: #003f9e;
  /* accent-soft is used for small tracked caps; on the light paper field #0066ff
     only reaches 4.4:1, so it steps down to #0047b8 (5.9:1) in this theme. */
  --accent-soft: #0047b8;
  --kintsugi: #6f5a12;
}

[data-theme="dark"] {
  --ink: #f4f1ea;
  --ink-2: #c2beb4;
  --ink-3: #a5a29a;
  --bg: #070b14;
  --bg-2: #0c1220;
  --bg-3: #121a2b;
  --line: rgba(244, 241, 234, .10);
  --line-2: rgba(244, 241, 234, .18);
  --card: rgba(255, 255, 255, .028);
  --card-hi: rgba(255, 255, 255, .055);
  --shadow: 0 20px 60px rgba(0, 0, 0, .55);
}

[data-theme="brand"] {
  --ink: #f2f6fc;
  --ink-2: #b8c6da;
  --ink-3: #93a5bd;
  --bg: #050a16;
  --bg-2: #08152c;
  --bg-3: #0d1e3a;
  --line: rgba(0, 102, 255, .18);
  --line-2: rgba(0, 102, 255, .34);
  --card: rgba(0, 102, 255, .05);
  --card-hi: rgba(0, 102, 255, .11);
  --shadow: 0 20px 60px rgba(0, 0, 0, .60);
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  transition: background .3s var(--ease), color .3s var(--ease);
}

h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 999;
  padding: 10px 18px; background: var(--accent); color: #fff;
  font-weight: 700; border-radius: var(--r-sm);
}
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ── Nav ────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); }

.nav-brand { display: flex; align-items: center; gap: 9px; }
.nav-mark { width: 22px; height: 22px; color: var(--accent); }
.nav-word { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: .14em; }

.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  transition: color .2s var(--ease); position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; inset: auto 0 -4px 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-btn {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line-2);
  color: var(--ink-2); transition: color .2s, border-color .2s, transform .3s var(--ease);
}
.theme-btn svg { width: 16px; height: 16px; }
.theme-btn:hover { color: var(--accent); border-color: var(--accent); transform: rotate(-18deg); }
/* Glyph follows the active theme instead of always showing a moon on a dark page. */
.theme-btn::after { content: "\263D"; font-size: 15px; line-height: 1; }
.theme-btn[data-theme="dark"]::after { content: "\2600"; }
.theme-btn[data-theme="light"]::after { content: "\263E"; }
.theme-btn[data-theme="brand"]::after { content: "\25C6"; font-size: 12px; }
.theme-btn svg { display: none; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 100px;
  font-size: 14.5px; font-weight: 600; letter-spacing: -.005em;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn:hover { transform: translateY(-1.5px); }
.btn:active { transform: translateY(0); }

/* Transparent border on the solid variant so both buttons measure the same
   height. Without it a ghost/solid pair differs by 2px and the CTA row across
   four pricing cards sits off-baseline. */
.btn-solid {
  background: var(--accent); color: #fff; border: 1px solid transparent;
  box-shadow: 0 6px 22px rgba(0, 102, 255, .28);
}
.btn-solid:hover { background: var(--accent-soft); box-shadow: 0 10px 30px rgba(0, 102, 255, .38); }

.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); }
.btn-ghost { border-color: rgba(244, 241, 234, .28); }
/* WCAG 1.4.11 wants 3:1 for the boundary of a control. At .28 the border measured
   2.23:1 against the dark field, so the secondary button read as floating text
   rather than a button. .42 clears 3:1 without turning it into a second primary. */
.btn-ghost { border-color: rgba(244, 241, 234, .42); }
[data-theme="light"] .btn-ghost { border-color: rgba(20, 22, 28, .52); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm { padding: 9px 17px; font-size: 13px; }
.btn-block { width: 100%; }

/* ── Eyebrow ────────────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase; color: var(--accent-soft);
}
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 0 80px; overflow: hidden;
}
.hero-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(0, 102, 255, .13), transparent 68%),
    radial-gradient(ellipse 45% 40% at 88% 78%, rgba(0, 102, 255, .07), transparent 70%);
}
.hero-inner { position: relative; z-index: 1; }

.hero-h1 {
  font-size: clamp(2.7rem, 7.6vw, 5.6rem);
  margin: 20px 0 0;
  max-width: 15ch;
}
.hero-h1 .line { display: block; }
.hero-h1 em {
  font-style: italic; color: var(--accent);
  background: linear-gradient(100deg, var(--accent-dim), var(--accent-soft) 42%, var(--accent) 62%, var(--accent-dim));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-sub {
  margin-top: 26px; max-width: 54ch;
  font-size: clamp(1rem, 1.7vw, 1.18rem); color: var(--ink-2); line-height: 1.68;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* The scarcity line is copy we want read, not texture. ink-3 on the dark field
   measured under 4.5:1 at 11.5px caps, so step it up to ink-2 and add weight. */
.hero-cap {
  margin-top: 30px; font-family: var(--font-mono); font-weight: 500;
  font-size: 11.5px; letter-spacing: .07em; color: var(--ink-2); text-transform: uppercase;
}

.hero-trust {
  display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px;
  padding-top: 22px; border-top: 1px solid var(--line);
}
.hero-trust li {
  display: flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 500; color: var(--ink-2);
}
.hero-trust li::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}

.hero-metric {
  position: absolute; right: var(--gutter); bottom: 80px;
  display: none; flex-direction: column; gap: 14px;
  padding: 20px 24px; border: 1px solid var(--line);
  border-radius: var(--r-md); background: var(--card);
  backdrop-filter: blur(12px);
}
@media (min-width: 1080px) { .hero-metric { display: flex; } }
.metric-row { display: flex; align-items: baseline; justify-content: space-between; gap: 26px; }
.metric-k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.metric-v { font-family: var(--font-display); font-size: 20px; font-weight: 500; color: var(--accent); }

/* ── Sections ───────────────────────────────────────────────────────────── */
.sec { padding: clamp(70px, 10vw, 128px) 0; }
.sec-alt { background: var(--bg-2); }

.sec-head { max-width: 62ch; margin-bottom: clamp(38px, 5vw, 60px); }
.sec-head h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); margin-top: 12px; }
.sec-sub { margin-top: 16px; color: var(--ink-2); font-size: clamp(.96rem, 1.5vw, 1.06rem); }

/* ── Grids ──────────────────────────────────────────────────────────────── */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* ── Cards: problems ────────────────────────────────────────────────────── */
.pcard {
  padding: 26px 22px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--card); transition: border-color .25s var(--ease), background .25s, transform .25s var(--ease);
}
.pcard:hover { border-color: var(--line-2); background: var(--card-hi); transform: translateY(-3px); }
.pcard-stat {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 500; color: var(--accent); line-height: 1;
}
.pcard-label {
  display: block; margin-top: 6px; font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}
.pcard-text { margin-top: 16px; font-size: 14px; color: var(--ink-2); line-height: 1.62; }

/* ── Pillars ────────────────────────────────────────────────────────────── */
.pillars { display: flex; flex-direction: column; gap: 14px; }

.pillar {
  display: grid; grid-template-columns: 74px 1fr; gap: 22px;
  padding: clamp(24px, 3.4vw, 38px);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--card); position: relative; overflow: hidden;
  transition: border-color .3s var(--ease), background .3s;
}
.pillar::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 2px;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity .35s var(--ease);
}
.pillar:hover { border-color: var(--line-2); background: var(--card-hi); }
.pillar:hover::before { opacity: 1; }

.pillar-n {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 300;
  color: var(--accent); opacity: .55; line-height: 1;
}
.pillar-name { font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.pillar-sub {
  margin-top: 5px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .09em; text-transform: uppercase; color: var(--accent);
}
.pillar-body { margin-top: 14px; font-size: 14.5px; color: var(--ink-2); max-width: 62ch; }
.pillar-points { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.pillar-points li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13.5px; color: var(--ink-2);
}
.pillar-points li::before {
  content: ""; width: 5px; height: 5px; margin-top: 8px; flex-shrink: 0;
  border-radius: 50%; background: var(--accent);
}
@media (max-width: 640px) {
  .pillar { grid-template-columns: 1fr; gap: 12px; }
  .pillar-n { font-size: 1.7rem; }
}

/* ── Work ───────────────────────────────────────────────────────────────── */
/* Exactly two columns on desktop so four cards make a clean 2×2, never 3+orphan */
#workGrid { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
@media (min-width: 1000px) { #workGrid { grid-template-columns: repeat(2, 1fr); } }

.wcard {
  display: flex; flex-direction: column;
  padding: 28px 26px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--card); position: relative; overflow: hidden;
  transition: border-color .25s var(--ease), background .25s, transform .25s var(--ease);
}
.wcard:hover { border-color: var(--accent-dim); background: var(--card-hi); transform: translateY(-3px); }

.wcard-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.wcard-kind {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
}
.wcard-name { margin-top: 9px; font-size: clamp(1.25rem, 2.4vw, 1.55rem); }
.wcard-body { margin-top: 13px; font-size: 14px; color: var(--ink-2); flex: 1; }
.wcard-stack {
  margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: .02em;
}
.wcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 15px; }
.wcard-metric {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  color: var(--accent); letter-spacing: .03em;
}
.wcard-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  transition: color .2s, gap .2s;
}
.wcard-link svg { width: 13px; height: 13px; }
.wcard-link:hover { color: var(--accent); gap: 9px; }

/* ── Sprint timeline ────────────────────────────────────────────────────── */
.sprint { display: grid; gap: 0; }
.sprint li {
  display: grid; grid-template-columns: 130px 1fr; gap: 24px;
  padding: 24px 0; border-bottom: 1px solid var(--line);
  position: relative;
}
.sprint li:last-child { border-bottom: 0; }
.sprint li::before {
  content: ""; position: absolute; left: 130px; top: 50%; width: 10px; height: 10px;
  margin-left: -5px; border-radius: 50%; background: var(--accent);
  transform: translateY(-50%); box-shadow: 0 0 0 4px var(--bg-2);
}
.sprint-when {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: .07em; text-transform: uppercase; color: var(--accent);
  padding-right: 20px; text-align: right;
}
.sprint-what { padding-left: 20px; font-size: 14.5px; color: var(--ink-2); max-width: 62ch; }
@media (max-width: 640px) {
  .sprint li { grid-template-columns: 1fr; gap: 7px; }
  .sprint li::before { display: none; }
  .sprint-when { text-align: left; padding-right: 0; }
  .sprint-what { padding-left: 0; }
}

/* ── Pricing ────────────────────────────────────────────────────────────── */
.pcard2 {
  display: flex; flex-direction: column;
  padding: 26px 22px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--card); position: relative;
  transition: border-color .25s var(--ease), transform .25s var(--ease), background .25s;
}
.pcard2:hover { border-color: var(--line-2); transform: translateY(-3px); }
.pcard2.popular {
  border-color: var(--accent-dim);
  background: linear-gradient(165deg, var(--card-hi), var(--card));
}
/* The badge used to hang off the top edge at right:18px, which sliced through
   the card's rounded corner and its 1px accent border. Tucking it inside the
   card keeps the radius intact and stops it repeating the "COMBO" label. */
/* Padding on the popular card pushed its price 18px below the other three.
   Give it the same top padding and reserve the badge band with an equal
   margin on the code line, so all four prices share a baseline. */
/* The badge is absolutely positioned, so it needs no flow space at all. Fit it
   inside the card's existing 26px top padding band and every card keeps an
   identical baseline from the code line down. */
.pcard2.popular .pcard2-code { padding-right: 112px; }
.pcard2.popular::after {
  content: "Most popular"; position: absolute; top: 12px; right: 18px;
  padding: 4px 11px; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-family: var(--font-mono); font-size: 9px; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase;
}

.pcard2-code { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; color: var(--ink-3); }
/* Titles wrap to one or two lines depending on length, which pushed the price
   and unit label off a shared baseline across the row. A two-line min-height
   reserves the slot so all four cards align from the price down. */
.pcard2-name {
  margin-top: 9px; font-family: var(--font-display); font-size: 1.16rem;
  font-weight: 500; line-height: 1.22; min-height: calc(1.22em * 2);
}
.pcard2-price { margin-top: 16px; font-family: var(--font-display); font-size: 1.95rem; font-weight: 500; color: var(--accent); line-height: 1; }
.pcard2-unit { margin-top: 5px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
/* Bodies run 2-3 lines; the popular card's was one line shorter, which lifted
   its checklist ~20px above the rest and pushed its delivery row down. A
   three-line floor keeps every list and delivery row on a shared scan line. */
.pcard2-body {
  min-height: calc(1.62em * 3); margin-top: 15px; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
/* The list sizes to its own content and the delivery block absorbs the slack
   with margin-top:auto. Letting the list flex instead made each card's CTA
   depend on how many bullets that card happened to have, so four CTAs meant to
   share one baseline drifted 6px apart across the row. */
.pcard2-list { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 7px; }
/* Reserved slot matching the combo callout's real measured height: 3 lines at
   20.4px + 20px padding + 2px border = 83px, plus its 14px top margin = 97px.
   Every card reserves it so the delivery row and CTA share one baseline. */
.pcard2-saving-slot { min-height: 97px; }

/* Delivery window and the recurring-cost truth. A one-time price next to a 24/7
   service raises "who pays for the API in month two?" — answering it on the card
   removes the largest objection instead of leaving it to the sales call. */
.pcard2-delivery {
  margin-top: 16px; display: flex; align-items: baseline; gap: 8px;
  font-family: var(--font-mono); font-size: 13px; color: var(--ink-1);
}
.pcard2-delivery span {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
/* This is the trust-critical line on the card — "one-time" is only honest if the
   recurring cost sits next to it. At 11 px / --ink-3 it read as fine print, so it
   is promoted to body size and one step up in contrast. */
.pcard2-recurring {
  margin-top: 8px; margin-bottom: 4px;
  font-size: 13px; line-height: 1.65; color: var(--ink-2);
}
/* The recurring line wraps to 1 or 2 lines depending on copy length, which pushed
   the popular card's CTA 2px off its neighbours. Give the note block a fixed
   two-line floor so every CTA sits on the same baseline. */
/* Exactly two lines on every card. One card's copy ran to three, which pushed
   its delivery row 18px below the rest even though the card heights matched. */
.pcard2-recurring { min-height: calc(1.6em * 2); max-height: calc(1.6em * 2); overflow: hidden; }
/* Bundle saving is the strongest argument in the row and was invisible. */
.price-note {
  margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line);
  max-width: 78ch; font-size: 12px; line-height: 1.72; color: var(--ink-3);
}
/* A blue outline here competed with the popular card's own highlight border —
   two frames inside one card. A neutral edge with a left accent bar says
   "callout" without repeating the selection state. */
/* The callout only exists on the combo card. Letting it take flow space there
   alone pushed that card's delivery row and CTA out of line with the other
   three, and absolutely positioning it made it collide with the delivery row
   instead. A reserved slot on every card keeps the whole lower stack on one
   baseline no matter which card carries the callout. */
.pcard2-saving {
  margin-top: 14px; padding: 10px 12px; border-radius: 9px;
  border: 1px solid var(--line-2); border-left: 3px solid var(--accent);
  background: rgba(0, 102, 255, .07);
  font-size: 12px; line-height: 1.7; color: var(--ink-2);
}
.pcard2-saving b { color: var(--ink); font-weight: 600; }
.pcard2-saving b:first-child { color: var(--ink-3); font-weight: 500; text-decoration: line-through; }
.wcard-note {
  margin-top: 9px; padding: 7px 10px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--bg-2);
  font-size: 10.5px; line-height: 1.55; color: var(--ink-3);
}
.pcard2-list li { display: flex; gap: 8px; font-size: 12.5px; color: var(--ink-2); align-items: flex-start; }
.pcard2-list li::before {
  content: "✓"; color: var(--accent); font-size: 11px; font-weight: 700;
  flex-shrink: 0; margin-top: 2px;
}
/* Pin the CTA to the card floor. The feature lists differ in length (P02 wraps a
   bullet, P04 carries the savings panel), so with a plain 20px top margin the four
   buttons landed at 637 / 657 / 637 / 617 — a 40px stagger across one comparison
   row. margin-top:auto pushes every button to the same baseline regardless of copy
   length, which is what makes a pricing grid readable as a grid. */
/* 40px was under the 44px touch minimum on phones. min-height fixes the hit box
   on every viewport without changing the desktop rhythm. */
.pcard2 .btn { margin-top: auto; min-height: 46px; }
.pcard2 .pcard2-recurring { margin-bottom: 18px; }

/* ── Onboarding ─────────────────────────────────────────────────────────── */
.ocard {
  padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--card); transition: border-color .25s, background .25s;
}
.ocard:hover { border-color: var(--line-2); background: var(--card-hi); }
.ocard-n {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--accent-dim); color: var(--accent);
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
}
.ocard-title { margin-top: 16px; font-size: 1.06rem; font-family: var(--font-display); font-weight: 500; }
.ocard-body { margin-top: 9px; font-size: 13.5px; color: var(--ink-2); }

/* ── Niches ─────────────────────────────────────────────────────────────── */
/* 5 items: 3-col grid gives a clean 3+2 with the last cell spanning full width */
.niches { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
@media (min-width: 900px) { .niches { grid-template-columns: repeat(3, 1fr); } }
.niche { padding: 24px 22px; background: var(--bg); transition: background .25s; }
.niche:hover { background: var(--bg-3); }
.niche-name { font-family: var(--font-display); font-size: 1.04rem; font-weight: 500; }
.niche-body { margin-top: 8px; font-size: 13px; color: var(--ink-2); }

/* the 5th of 5 fills the trailing gap so no dead cell shows */
@media (min-width: 900px) {
  .niches > .niche:nth-child(4) { grid-column: 1 / 2; }
  .niches > .niche:nth-child(5) { grid-column: 2 / 4; }
}

/* ── Contact ────────────────────────────────────────────────────────────── */
.sec-contact { background: var(--bg-2); }
.contact-wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px); align-items: start;
}
@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr; } }

.contact-copy h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); margin-top: 12px; }

.contact-direct { margin-top: 34px; display: flex; flex-direction: column; }
.cd-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  transition: padding-left .25s var(--ease), border-color .25s;
}
a.cd-row:hover { padding-left: 6px; border-bottom-color: var(--accent-dim); }
.cd-k {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3); flex-shrink: 0;
}
.cd-v { font-size: 14px; font-weight: 500; color: var(--ink); text-align: right; }
a.cd-row:hover .cd-v { color: var(--accent); }

/* ── Form ───────────────────────────────────────────────────────────────── */
.lead {
  padding: clamp(24px, 3.4vw, 34px);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--card); backdrop-filter: blur(10px);
}
.lead-title { font-size: 1.22rem; font-family: var(--font-display); font-weight: 500; margin-bottom: 22px; }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3);
}
.field input, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 14.5px;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, .14);
}
.field.bad input, .field.bad textarea { border-color: #e05252; }
.field-err {
  font-size: 11.5px; color: #e05252; min-height: 0;
}
.field-err:empty { display: none; }

/* chips */
.chips { border: 0; padding: 0; margin: 0 0 18px; }
.chips legend {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 9px;
}
.chip { display: inline-flex; margin: 0 6px 6px 0; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span {
  padding: 7px 15px; border: 1px solid var(--line-2); border-radius: 100px;
  font-size: 12.5px; font-weight: 500; color: var(--ink-2);
  transition: border-color .2s, color .2s, background .2s;
}
.chip input:checked + span {
  border-color: var(--accent); color: var(--accent);
  background: rgba(0, 102, 255, .1);
}
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* consent */
.consent {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 4px 0 6px; cursor: pointer;
}
.consent input {
  width: 17px; height: 17px; margin: 2px 0 0; flex-shrink: 0;
  accent-color: var(--accent); cursor: pointer;
}
.consent span { font-size: 11.5px; line-height: 1.55; color: var(--ink-3); }
.consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.lead .btn { margin-top: 18px; }
.lead .btn[disabled] { opacity: .6; cursor: wait; }
.lead-note { margin-top: 13px; font-size: 11.5px; color: var(--ink-3); text-align: center; line-height: 1.6; }
.lead-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.lead-status { margin-top: 12px; font-size: 13px; text-align: center; min-height: 20px; }
.lead-status.ok { color: #4caf7d; }
.lead-status.err { color: #e05252; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.foot { padding: 56px 0 40px; border-top: 1px solid var(--line); background: var(--bg); }
.foot-wrap { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 34px; }
@media (max-width: 860px) { .foot-wrap { grid-template-columns: 1fr; gap: 26px; } }

.foot-brand { display: flex; gap: 14px; align-items: flex-start; }
.foot-mark { width: 26px; height: 26px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.foot-name { font-family: var(--font-display); font-size: 1rem; font-weight: 600; letter-spacing: .1em; }
.foot-name span { font-weight: 400; letter-spacing: .02em; color: var(--ink-2); font-size: .82rem; }
.foot-meta { margin-top: 6px; font-size: 12px; color: var(--ink-3); }

.foot-links { display: flex; flex-direction: column; gap: 9px; }
.foot-links a {
  font-size: 12.5px; color: var(--ink-2); width: fit-content;
  transition: color .2s;
}
.foot-links a:hover { color: var(--accent); }

.foot-legal { font-size: 11.5px; color: var(--ink-3); line-height: 1.8; }
.foot-legal a { color: var(--accent); }
.foot-copy { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }

/* ── Floating WhatsApp ──────────────────────────────────────────────────── */
.wa-float {
  position: fixed; right: 16px; bottom: 84px; z-index: 90;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: #fff;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .3);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 12px 32px rgba(37, 211, 102, .4); }
.wa-float svg { width: 27px; height: 27px; }
@media (min-width: 768px) { .wa-float { bottom: 22px; right: 22px; width: 56px; height: 56px; } }

/* ── Sticky mobile bar ──────────────────────────────────────────────────── */
.sticky-bar {
  position: fixed; inset: auto 0 0 0; z-index: 95;
  display: none; grid-template-columns: repeat(3, 1fr);
  background: color-mix(in srgb, var(--bg-2) 94%, transparent);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.sticky-bar a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 4px; font-size: 10.5px; font-weight: 600;
  color: var(--ink-2); transition: color .2s;
  -webkit-tap-highlight-color: transparent;
}
.sticky-bar a:hover, .sticky-bar a:active { color: var(--accent); }
.sticky-bar svg { width: 19px; height: 19px; }

@media (max-width: 767px) {
  .sticky-bar { display: grid; }
  /* 58px cleared the sticky bar (56px) but not the floating WhatsApp button,
     which sits 28px above it and covered the last card's CTA. 96px leaves the
     FAB its own band so the final action is always reachable. */
  body { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .nav-links { display: none; }
  .hero { padding-top: 96px; min-height: auto; }
  .hero-h1 { font-size: clamp(2.3rem, 9.5vw, 3.4rem); }
  .foot { padding-bottom: 76px; }

  /* 44px minimum touch targets */
  .theme-btn { width: 44px; height: 44px; }
  .btn { padding: 15px 26px; }
  .btn-sm { padding: 13px 20px; font-size: 13.5px; }
  .chip span { padding: 12px 18px; font-size: 13px; }
  .field input, .field textarea { padding: 14px 15px; font-size: 16px; }
  .consent input { width: 20px; height: 20px; }
  .consent span { font-size: 12.5px; }
  .foot-links a { padding: 11px 0; font-size: 13.5px; }
  .cd-row { padding: 16px 0; }
  .sticky-bar a { padding: 8px 4px; min-height: 44px; justify-content: center; }
  .wa-float { width: 56px; height: 56px; }
}

/* ── Preview banner ─────────────────────────────────────────────────────── */
.preview-banner {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  padding: 6px 12px; text-align: center;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  background: var(--accent); color: #fff;
}
.preview-banner + .nav { top: 26px; }

/* ── Offer bar ──────────────────────────────────────────────────────────── */
.offer-bar {
  position: relative; z-index: 99;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  flex-wrap: wrap; padding: 9px var(--gutter);
  background: var(--accent); color: #fff;
  font-size: 12.5px; font-weight: 600;
}
.offer-bar a {
  padding: 4px 13px; border-radius: 100px;
  background: #050a16; color: var(--accent); font-size: 11.5px;
}

/* ── Reveal animation ───────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}


/* ── Mobile tap targets ─────────────────────────────────────────────────────
   WCAG 2.5.8 wants 44×44. Inline links inside a sentence are an accepted
   exception (enlarging them reflows the paragraph), but standalone controls are
   not: the wordmark, the "Open live" card links, the footer legal row and the
   consent checkbox all had 17–28 px hit areas on a 390 px viewport. Padding
   widens the hit box without moving the text off its baseline. */
@media (max-width: 860px) {
  .nav-brand { display: inline-flex; align-items: center; min-height: 44px; }
  .wcard-link {
    display: inline-flex; align-items: center; min-height: 44px;
    padding: 0 4px; margin: 0 -4px;
  }
  .foot-legal a, .foot-links a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px;
    margin: 0 -6px;
  }
  .lead-note a, .consent a {
    display: inline-block; padding: 7px 2px; margin: -7px -2px;
  }
  /* The checkbox is 20 px; the whole chip label is the real target. */
  .chip { min-height: 44px; align-items: center; }
  .chip input { width: 20px; height: 20px; }
  a.cd-row { min-height: 44px; display: flex; align-items: center; }
}
