/* ==========================================================================
   Twistters — marketing site
   Scan-first design system: short lines, colour-coded sections, big numbers.
   Brand teal is still primary; five secondary hues carry the section coding
   so a visitor can tell where they are without reading a word.
   ========================================================================== */

:root {
  --ground: #F5F8FA;
  --panel: #FFFFFF;
  --panel-2: #EAF1F5;
  --ink: #0F2033;
  --ink-2: #2C4257;
  --muted: #55697C;
  --line: #DCE5EC;
  --line-soft: #E9F0F5;

  /* Brand */
  --accent: #0E9384;
  --accent-strong: #0B7A6E;
  --accent-bright: #14B8A6;
  --accent-wash: rgba(14, 147, 132, .09);

  /* Section hues — used for icons, numbers, top-bars and chips. */
  --c-teal: #0E9384;
  --c-blue: #2563EB;
  --c-violet: #7C3AED;
  --c-amber: #B45309;
  --c-rose: #DC2626;
  --c-cyan: #0E7490;
  --gold: #A97C1E;

  --w-teal: rgba(14, 147, 132, .10);
  --w-blue: rgba(37, 99, 235, .10);
  --w-violet: rgba(124, 58, 237, .10);
  --w-amber: rgba(180, 83, 9, .11);
  --w-rose: rgba(220, 38, 38, .09);
  --w-cyan: rgba(14, 116, 144, .10);
  --gold-wash: rgba(169, 124, 30, .12);

  /* Dark surfaces (the hero and CTA are dark in both themes) */
  --hero: #0B1524;
  --hero-2: #0E1E33;
  --hero-ink: #F0F6FA;
  --hero-lead: #C3D6E4;
  --hero-muted: #90A9BF;
  --hero-line: #23405C;

  --shadow: 0 1px 0 rgba(15, 32, 51, .04), 0 10px 30px -16px rgba(15, 32, 51, .22);
  --shadow-lg: 0 1px 0 rgba(15, 32, 51, .04), 0 30px 64px -28px rgba(15, 32, 51, .34);
  --shadow-color: 0 18px 44px -22px rgba(14, 147, 132, .55);

  --fdisplay: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Inter", Roboto, Helvetica, Arial, sans-serif;
  --fsans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fserif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --fmono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --gutter: clamp(20px, 5vw, 60px);
  --measure: 1180px;
  --radius: 18px;
  --radius-sm: 11px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0A1420;
    --panel: #10202F;
    --panel-2: #0D1B29;
    --ink: #EDF4F9;
    --ink-2: #C7D8E5;
    --muted: #94ADC0;
    --line: #21394F;
    --line-soft: #1A2E42;

    --accent: #2DD4BF;
    --accent-strong: #5EEAD4;
    --accent-bright: #2DD4BF;
    --accent-wash: rgba(45, 212, 191, .13);

    --c-teal: #2DD4BF;
    --c-blue: #60A5FA;
    --c-violet: #A78BFA;
    --c-amber: #FBBF24;
    --c-rose: #FB7185;
    --c-cyan: #22D3EE;
    --gold: #E9C46A;

    --w-teal: rgba(45, 212, 191, .14);
    --w-blue: rgba(96, 165, 250, .14);
    --w-violet: rgba(167, 139, 250, .14);
    --w-amber: rgba(251, 191, 36, .14);
    --w-rose: rgba(251, 113, 133, .13);
    --w-cyan: rgba(34, 211, 238, .14);
    --gold-wash: rgba(233, 196, 106, .14);

    --hero: #07101C;
    --hero-2: #0A1728;
    --hero-line: #1C324A;

    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 16px 44px -20px rgba(0, 0, 0, .6);
    --shadow-lg: 0 1px 0 rgba(0, 0, 0, .3), 0 34px 78px -30px rgba(0, 0, 0, .78);
    --shadow-color: 0 18px 44px -22px rgba(45, 212, 191, .38);
  }
}

/* The explicit toggle must beat the media query in both directions. */
:root[data-theme="light"] {
  --ground: #F5F8FA; --panel: #FFFFFF; --panel-2: #EAF1F5;
  --ink: #0F2033; --ink-2: #2C4257; --muted: #55697C;
  --line: #DCE5EC; --line-soft: #E9F0F5;
  --accent: #0E9384; --accent-strong: #0B7A6E; --accent-bright: #14B8A6; --accent-wash: rgba(14, 147, 132, .09);
  --c-teal: #0E9384; --c-blue: #2563EB; --c-violet: #7C3AED; --c-amber: #B45309; --c-rose: #DC2626; --c-cyan: #0E7490;
  --gold: #A97C1E;
  --w-teal: rgba(14, 147, 132, .10); --w-blue: rgba(37, 99, 235, .10); --w-violet: rgba(124, 58, 237, .10);
  --w-amber: rgba(180, 83, 9, .11); --w-rose: rgba(220, 38, 38, .09); --w-cyan: rgba(14, 116, 144, .10);
  --gold-wash: rgba(169, 124, 30, .12);
  --hero: #0B1524; --hero-2: #0E1E33; --hero-line: #23405C;
  --shadow: 0 1px 0 rgba(15, 32, 51, .04), 0 10px 30px -16px rgba(15, 32, 51, .22);
  --shadow-lg: 0 1px 0 rgba(15, 32, 51, .04), 0 30px 64px -28px rgba(15, 32, 51, .34);
  --shadow-color: 0 18px 44px -22px rgba(14, 147, 132, .55);
}
:root[data-theme="dark"] {
  --ground: #0A1420; --panel: #10202F; --panel-2: #0D1B29;
  --ink: #EDF4F9; --ink-2: #C7D8E5; --muted: #94ADC0;
  --line: #21394F; --line-soft: #1A2E42;
  --accent: #2DD4BF; --accent-strong: #5EEAD4; --accent-bright: #2DD4BF; --accent-wash: rgba(45, 212, 191, .13);
  --c-teal: #2DD4BF; --c-blue: #60A5FA; --c-violet: #A78BFA; --c-amber: #FBBF24; --c-rose: #FB7185; --c-cyan: #22D3EE;
  --gold: #E9C46A;
  --w-teal: rgba(45, 212, 191, .14); --w-blue: rgba(96, 165, 250, .14); --w-violet: rgba(167, 139, 250, .14);
  --w-amber: rgba(251, 191, 36, .14); --w-rose: rgba(251, 113, 133, .13); --w-cyan: rgba(34, 211, 238, .14);
  --gold-wash: rgba(233, 196, 106, .14);
  --hero: #07101C; --hero-2: #0A1728; --hero-line: #1C324A;
  --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 16px 44px -20px rgba(0, 0, 0, .6);
  --shadow-lg: 0 1px 0 rgba(0, 0, 0, .3), 0 34px 78px -30px rgba(0, 0, 0, .78);
  --shadow-color: 0 18px 44px -22px rgba(45, 212, 191, .38);
}

/* --------------------------------------------------------------- base ---- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--fsans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--fdisplay);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.028em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.95rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.18; letter-spacing: -.018em; }
h4 { font-size: 1.03rem; line-height: 1.28; letter-spacing: -.012em; font-weight: 700; }

/* Gradient headline words — the site's one piece of flourish. */
.grad {
  background: linear-gradient(96deg, var(--accent-bright), var(--c-blue) 52%, var(--c-violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.hero .grad {
  background: linear-gradient(96deg, #5EEAD4, #7DD3FC 48%, #C4B5FD);
  -webkit-background-clip: text;
  background-clip: text;
}

p { margin: 0; }
p + p { margin-top: .85em; }
strong { font-weight: 700; color: var(--ink); }
em { font-style: italic; }
a { color: var(--accent-strong); text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

::selection { background: var(--accent); color: #fff; }

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--panel); color: var(--ink);
  padding: 10px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); font-weight: 650; font-size: .9rem;
  transition: top .18s ease;
}
.skip:focus { top: 12px; }

/* ------------------------------------------------------------- layout ---- */

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.wrap-tight { max-width: 880px; }

section { position: relative; }
.band { padding-block: clamp(52px, 7.5vw, 100px); }
.band-alt { background: var(--panel-2); }
.band-alt + .band-alt { padding-top: 0; }
.band-tight { padding-block: clamp(34px, 4vw, 52px); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.stack   { display: flex; flex-direction: column; gap: clamp(18px, 2.4vw, 30px); }
.stack-s { display: flex; flex-direction: column; gap: 12px; }

.grid { display: grid; gap: clamp(14px, 1.8vw, 22px); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-split {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
}

@media (max-width: 900px) {
  .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-split { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ type bits -- */

.eyebrow {
  font-family: var(--fmono);
  font-size: .7rem;
  letter-spacing: .19em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px; border-radius: 2px;
  background: currentColor;
  flex: none;
}
.eyebrow.center { justify-content: center; }
.eyebrow.blue { color: var(--c-blue); }
.eyebrow.violet { color: var(--c-violet); }
.eyebrow.amber { color: var(--c-amber); }
.eyebrow.rose { color: var(--c-rose); }
.eyebrow.gold { color: var(--gold); }

/* Deck-style headline: short, punchy, one idea. */
.big { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.title-max { max-width: 22ch; }

.lead {
  font-size: clamp(1.12rem, 1.5vw, 1.32rem);
  line-height: 1.48;
  color: var(--ink-2);
  max-width: 46ch;
}
.lead-wide { max-width: 58ch; }
.muted { color: var(--muted); }
.max-60 { max-width: 52ch; }
.center { text-align: center; }
.center .lead, .center p { margin-inline: auto; }
.center .eyebrow { justify-content: center; }
.accent { color: var(--accent-strong); }

.kicker {
  font-family: var(--fmono);
  font-size: .69rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
}

.src { font-size: .78rem; color: var(--muted); line-height: 1.55; }
.src a { color: var(--muted); text-decoration-thickness: 1px; }
.src a:hover { color: var(--accent-strong); }

/* Progressive disclosure — the long, nuanced version stays available but
   never blocks the scan. */
.more {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  padding: 2px 16px;
}
.more > summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 0;
  font-size: .9rem;
  font-weight: 650;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 9px;
}
.more > summary::-webkit-details-marker { display: none; }
.more > summary::before {
  content: "";
  width: 16px; height: 16px;
  flex: none;
  background: currentColor;
  color: var(--accent-strong);
  clip-path: polygon(38% 22%, 38% 78%, 72% 50%);
  transition: transform .18s ease;
}
.more[open] > summary::before { transform: rotate(90deg); }
.more > summary:hover { color: var(--accent-strong); }
.more .inner {
  padding: 0 0 16px;
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.62;
  display: grid;
  gap: 10px;
}
.more .inner p { color: var(--muted); }

/* ------------------------------------------------------------- header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ground) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); }

.header-in { display: flex; align-items: center; gap: 18px; min-height: 70px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--fdisplay);
  font-size: 1.02rem;
  letter-spacing: -.02em;
  font-weight: 800;
  flex: none;
}
.brand svg { width: 30px; height: 30px; flex: none; }
.brand:hover { color: var(--accent-strong); }

.nav { display: flex; align-items: center; gap: 3px; margin-left: auto; }
.nav a:not(.btn) {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .93rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s ease, background .15s ease;
}
.nav a:not(.btn):hover { color: var(--ink); background: var(--accent-wash); }
.nav a:not(.btn)[aria-current="page"] { color: var(--accent-strong); background: var(--accent-wash); }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }

.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, transform .15s ease;
}
.icon-btn:hover { color: var(--ink); border-color: var(--accent); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 17px; height: 17px; }

.theme-btn .sun { display: none; }
.theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: none; }
}
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }
:root[data-theme="light"] .theme-btn .sun { display: none; }
:root[data-theme="light"] .theme-btn .moon { display: block; }

.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav {
    position: fixed;
    inset: 70px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px var(--gutter) 22px;
    background: var(--ground);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 1rem; }
  .nav .btn { margin-top: 8px; justify-content: center; }
  .nav-toggle { display: grid; }
}

/* ------------------------------------------------------------ buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--fsans);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 15px; height: 15px; flex: none; }

.btn-primary {
  background: linear-gradient(100deg, var(--accent-strong), var(--accent));
  color: #fff;
  box-shadow: var(--shadow-color);
}
.btn-primary:hover { filter: brightness(1.07); box-shadow: 0 22px 50px -22px color-mix(in srgb, var(--accent) 70%, transparent); }
:root[data-theme="dark"] .btn-primary { color: #05121B; background: linear-gradient(100deg, #2DD4BF, #5EEAD4); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-primary { color: #05121B; background: linear-gradient(100deg, #2DD4BF, #5EEAD4); }
}

.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-strong); background: var(--accent-wash); }

.btn-on-dark { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .18); color: #fff; }
.btn-on-dark:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .34); color: #fff; }

.btn-lg { padding: 16px 28px; font-size: 1.02rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-row.center { justify-content: center; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  color: var(--accent-strong);
}
.arrow-link svg { width: 14px; height: 14px; transition: transform .18s ease; }
.arrow-link:hover svg { transform: translateX(3px); }

/* --------------------------------------------------------------- hero ---- */

.hero {
  position: relative;
  background: linear-gradient(168deg, var(--hero-2), var(--hero) 62%);
  color: var(--hero-ink);
  overflow: hidden;
  isolation: isolate;
}
/* Colour mesh — teal, blue and violet, the three section hues. */
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -12% auto -12%;
  height: 150%;
  background:
    radial-gradient(42% 44% at 18% 12%, rgba(20, 184, 166, .34), transparent 68%),
    radial-gradient(38% 40% at 78% 6%, rgba(37, 99, 235, .30), transparent 70%),
    radial-gradient(36% 42% at 92% 62%, rgba(124, 58, 237, .26), transparent 70%),
    radial-gradient(30% 34% at 46% 96%, rgba(14, 116, 144, .22), transparent 72%);
  z-index: -1;
  pointer-events: none;
}
/* Faint grid — the "infrastructure" texture. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(76% 72% at 50% 26%, #000 26%, transparent 100%);
  -webkit-mask-image: radial-gradient(76% 72% at 50% 26%, #000 26%, transparent 100%);
  z-index: -1;
  pointer-events: none;
}
.hero .wrap { position: relative; padding-block: clamp(56px, 9.5vw, 116px); }
.hero .g-split h1 { font-size: clamp(2.3rem, 4vw, 3.6rem); }
.hero h1, .hero h2, .hero h3 { color: var(--hero-ink); }
.hero p { color: var(--hero-muted); }
.hero .lead { color: var(--hero-lead); }
.hero .eyebrow { color: #6EE7DA; }
.hero strong, .cta strong { color: #FFFFFF; }
.hero em, .cta em { color: var(--hero-ink); }

.hero-quote {
  font-family: var(--fserif);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-style: italic;
  color: #DCEAF4;
  border-left: 3px solid var(--accent-bright);
  padding-left: 18px;
  max-width: 40ch;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-family: var(--fmono);
  font-size: .73rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--hero-muted);
  padding-top: 4px;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, .18);
}

/* Trust/connector chips — used on dark and light surfaces. */
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 650;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink-2);
  white-space: nowrap;
}
.chip i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); flex: none;
}
.chip.b i { background: var(--c-blue); }
.chip.v i { background: var(--c-violet); }
.chip.a i { background: var(--c-amber); }
.chip.r i { background: var(--c-rose); }
.chip.c i { background: var(--c-cyan); }
.on-dark .chip, .hero .chip {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .16);
  color: #DCEAF4;
}

/* --------------------------------------------------------------- card ---- */

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 2.3vw, 27px);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card p { color: var(--muted); font-size: .95rem; }
.card-hover { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }

.card-num {
  font-family: var(--fmono);
  font-size: .73rem;
  letter-spacing: .12em;
  color: var(--accent-strong);
  font-weight: 650;
  text-transform: uppercase;
}

.card-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: var(--w-teal);
  color: var(--c-teal);
  margin-bottom: 4px;
  flex: none;
}
.card-icon svg { width: 22px; height: 22px; }
.card-icon.blue   { background: var(--w-blue);   color: var(--c-blue); }
.card-icon.violet { background: var(--w-violet); color: var(--c-violet); }
.card-icon.amber  { background: var(--w-amber);  color: var(--c-amber); }
.card-icon.rose   { background: var(--w-rose);   color: var(--c-rose); }
.card-icon.cyan   { background: var(--w-cyan);   color: var(--c-cyan); }

/* Colour-coded top edge, applied per card. */
.topline { position: relative; overflow: hidden; }
.topline::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--c-teal), color-mix(in srgb, var(--c-teal) 25%, transparent));
}
.topline.blue::before   { background: linear-gradient(90deg, var(--c-blue), color-mix(in srgb, var(--c-blue) 25%, transparent)); }
.topline.violet::before { background: linear-gradient(90deg, var(--c-violet), color-mix(in srgb, var(--c-violet) 25%, transparent)); }
.topline.amber::before  { background: linear-gradient(90deg, var(--c-amber), color-mix(in srgb, var(--c-amber) 25%, transparent)); }
.topline.rose::before   { background: linear-gradient(90deg, var(--c-rose), color-mix(in srgb, var(--c-rose) 25%, transparent)); }

/* Product cards — the two flagship offers. */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 5px;
  background: linear-gradient(90deg, var(--c-teal), var(--c-cyan));
}
.product-card.is-gold::before { background: linear-gradient(90deg, var(--c-violet), var(--c-blue)); }
.product-card.is-gold .eyebrow, .product-card.is-gold .arrow-link { color: var(--c-violet); }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-card h2 { font-size: clamp(1.5rem, 2.3vw, 1.95rem); }
.product-card .tagline {
  font-family: var(--fserif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-2);
}
.product-card ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.product-card ul li {
  position: relative;
  padding-left: 26px;
  font-size: .95rem;
  color: var(--ink-2);
}
.product-card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: .42em;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--w-teal);
}
.product-card ul li::after {
  content: "";
  position: absolute;
  left: 4.5px; top: .72em;
  width: 7px; height: 4px;
  border-left: 2px solid var(--c-teal);
  border-bottom: 2px solid var(--c-teal);
  transform: rotate(-45deg);
}
.product-card.is-gold ul li::before { background: var(--w-violet); }
.product-card.is-gold ul li::after { border-color: var(--c-violet); }
.product-card .btn-row { margin-top: auto; padding-top: 6px; }

/* --------------------------------------------------------- stat tiles ---- */

.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.1vw, 25px);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.stat .figure {
  font-family: var(--fdisplay);
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--c-teal);
}
.stat .figure.gold, .stat .figure.amber { color: var(--c-amber); }
.stat .figure.blue { color: var(--c-blue); }
.stat .figure.violet { color: var(--c-violet); }
.stat .figure.rose { color: var(--c-rose); }
.stat .label { font-size: .92rem; color: var(--muted); line-height: 1.45; }
.stat .label b, .stat .label strong { color: var(--ink); }
.stat .cite { font-family: var(--fmono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); opacity: .75; }
.stat-bare { background: none; border: 0; padding: 0; }

/* Compact number strip — reads in two seconds. */
.strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.strip .cell { background: var(--panel); padding: clamp(18px, 2.2vw, 26px); display: grid; gap: 5px; }
.strip .n {
  font-family: var(--fdisplay);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
}
.strip .cell:nth-child(1) .n { color: var(--c-teal); }
.strip .cell:nth-child(2) .n { color: var(--c-blue); }
.strip .cell:nth-child(3) .n { color: var(--c-violet); }
.strip .cell:nth-child(4) .n { color: var(--c-amber); }
.strip .t { font-size: .88rem; color: var(--muted); line-height: 1.4; }
@media (max-width: 820px) { .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .strip { grid-template-columns: 1fr; } }

/* --------------------------------------------------- before / after ------ */

.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }
.compare .side {
  border-radius: var(--radius);
  padding: clamp(20px, 2.4vw, 30px);
  border: 1px solid var(--line);
  background: var(--panel);
  display: grid;
  gap: 14px;
  align-content: start;
}
.compare .side.before { background: var(--w-rose); border-color: color-mix(in srgb, var(--c-rose) 26%, var(--line)); }
.compare .side.after  { background: var(--w-teal); border-color: color-mix(in srgb, var(--c-teal) 32%, var(--line)); }
.compare .tag-h {
  font-family: var(--fmono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 650;
}
.compare .before .tag-h { color: var(--c-rose); }
.compare .after .tag-h { color: var(--c-teal); }
.compare h3 { font-size: clamp(1.2rem, 1.9vw, 1.5rem); }
.compare ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.compare li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  font-size: .95rem;
  color: var(--ink-2);
  align-items: start;
}
.compare li svg { width: 17px; height: 17px; margin-top: .16em; }
.compare .before li svg { color: var(--c-rose); }
.compare .after li svg { color: var(--c-teal); }

/* ------------------------------------------------- horizontal flow ------- */

.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 20px); position: relative; }
.flow.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .flow, .flow.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .flow, .flow.four { grid-template-columns: 1fr; } }
.flow .node {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.2vw, 26px);
  display: grid;
  gap: 9px;
  align-content: start;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.flow .node:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.flow .badge {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--fmono);
  font-size: .86rem;
  font-weight: 700;
  background: var(--w-teal);
  color: var(--c-teal);
  margin-bottom: 3px;
}
.flow .node:nth-child(1) .badge { background: var(--w-teal); color: var(--c-teal); }
.flow .node:nth-child(2) .badge { background: var(--w-blue); color: var(--c-blue); }
.flow .node:nth-child(3) .badge { background: var(--w-violet); color: var(--c-violet); }
.flow .node:nth-child(4) .badge { background: var(--w-amber); color: var(--c-amber); }
.flow .node h3 { font-size: 1.12rem; }
.flow .node p { font-size: .93rem; color: var(--muted); }

/* --------------------------------------------------------- pipeline ------ */

.pipeline { counter-reset: step; display: grid; gap: 2px; }
.pipeline .step {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 15px;
  align-items: start;
  padding: 15px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: background .18s ease, border-color .18s ease;
}
.pipeline .step:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.pipeline .step:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.pipeline .step + .step { border-top: 0; }
.pipeline .step:hover { background: var(--accent-wash); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.pipeline .num {
  counter-increment: step;
  font-family: var(--fmono);
  font-size: .8rem;
  font-weight: 700;
  color: var(--c-teal);
  background: var(--w-teal);
  border-radius: 9px;
  height: 32px;
  display: grid;
  place-items: center;
}
.pipeline .num::before { content: "0" counter(step); }
.pipeline h4 { margin-bottom: 2px; }
.pipeline p { font-size: .92rem; color: var(--muted); }
.pipeline .human {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  font-family: var(--fmono);
  font-size: .67rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-amber);
  background: var(--w-amber);
  padding: 4px 9px;
  border-radius: 999px;
  font-weight: 650;
}

/* --------------------------------------------------------------- table --- */

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 600px; }
thead th {
  text-align: left;
  font-family: var(--fmono);
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--muted);
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
  white-space: nowrap;
}
tbody td { padding: 13px 18px; border-bottom: 1px solid var(--line-soft); color: var(--muted); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody td:first-child { color: var(--ink); font-weight: 650; white-space: nowrap; }
tbody tr.is-us td { background: var(--accent-wash); }
tbody tr.is-us td:first-child { color: var(--accent-strong); }

/* ------------------------------------------------------------- pricing --- */

.price {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: clamp(22px, 2.5vw, 30px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.price.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg);
  transform: translateY(-4px);
}
@media (max-width: 600px) { .price.featured { transform: none; } }
.price.featured::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 5px;
  background: linear-gradient(90deg, var(--c-teal), var(--c-blue), var(--c-violet));
}
.price .tier {
  font-family: var(--fmono);
  font-size: .71rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.price .tag {
  background: var(--accent);
  color: #fff;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .62rem;
  letter-spacing: .1em;
}
:root[data-theme="dark"] .price .tag { color: #05121B; }
.price .amount {
  font-family: var(--fdisplay);
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
}
/* Own line so the period never orphans mid-figure across the three cards. */
.price .amount small {
  display: block;
  margin-top: 7px;
  font-family: var(--fsans);
  font-size: .79rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}
.price .who { font-size: .89rem; color: var(--muted); padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.price ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: .92rem; color: var(--ink-2); }
.price ul li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start; }
.price ul li svg { width: 14px; height: 14px; margin-top: .34em; color: var(--c-teal); }
.price .btn { margin-top: auto; justify-content: center; }

/* -------------------------------------------------------------- quote ---- */

.callout {
  border-left: 4px solid var(--accent);
  background: var(--panel);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: clamp(20px, 2.3vw, 27px) clamp(20px, 2.5vw, 30px);
  box-shadow: var(--shadow);
}
.callout.gold { border-left-color: var(--c-amber); }
.callout.blue { border-left-color: var(--c-blue); }
.callout.violet { border-left-color: var(--c-violet); }
.callout h3 { margin-bottom: 7px; }
.callout p { color: var(--muted); }

/* Big pull quote — one sentence, lots of air. */
.pull {
  font-family: var(--fdisplay);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.14;
  letter-spacing: -.03em;
  max-width: 26ch;
  text-wrap: balance;
}

/* Terminal-style demo block (the "cited answer" proof). */
.terminal {
  background: linear-gradient(165deg, #0E2033, #08131F);
  border: 1px solid var(--hero-line);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--fmono);
  font-size: .85rem;
  line-height: 1.62;
  box-shadow: var(--shadow-lg);
}
.terminal .bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--hero-line);
  background: rgba(255, 255, 255, .04);
}
.terminal .bar i { width: 10px; height: 10px; border-radius: 50%; background: #2B4763; }
.terminal .bar i:nth-child(1) { background: #FB7185; }
.terminal .bar i:nth-child(2) { background: #FBBF24; }
.terminal .bar i:nth-child(3) { background: #34D399; }
.terminal .bar span {
  margin-left: 6px;
  font-size: .69rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--hero-muted);
}
.terminal .body { padding: 18px 18px 20px; display: grid; gap: 12px; }
.terminal .q { color: #FFFFFF; font-weight: 600; }
.terminal .q::before { content: "▸ "; color: #5EEAD4; }
.terminal .a { color: #C3D6E4; padding-left: 14px; border-left: 2px solid #14B8A6; }
.terminal .cites { display: flex; flex-wrap: wrap; gap: 7px; padding-left: 14px; }
.terminal .cites b {
  font-weight: 600;
  font-size: .73rem;
  color: #7DD3FC;
  background: rgba(56, 189, 248, .12);
  border: 1px solid rgba(56, 189, 248, .3);
  padding: 3px 9px;
  border-radius: 999px;
}
.terminal .cites b:nth-child(even) { color: #C4B5FD; background: rgba(167, 139, 250, .12); border-color: rgba(167, 139, 250, .3); }
.terminal .note { color: var(--hero-muted); font-size: .73rem; padding-top: 4px; border-top: 1px solid var(--hero-line); }

/* ------------------------------------------------------------ modules ---- */

.domain {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.domain header {
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
  display: flex;
  align-items: center;
  gap: 12px;
}
.domain header h3 { font-size: 1.1rem; flex: 1; }
.domain header .dot {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--w-teal); color: var(--c-teal);
  flex: none;
}
.domain header .dot svg { width: 16px; height: 16px; }
.domain header .count {
  font-family: var(--fmono);
  font-size: .67rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.domain ul { margin: 0; padding: 6px 0; list-style: none; }
.domain ul li { padding: 9px 20px; font-size: .9rem; color: var(--muted); display: grid; gap: 1px; }
.domain ul li b { color: var(--ink); font-weight: 650; font-size: .94rem; }
.domain ul li + li { border-top: 1px solid var(--line-soft); }
.domain.blue header .dot { background: var(--w-blue); color: var(--c-blue); }
.domain.violet header .dot { background: var(--w-violet); color: var(--c-violet); }
.domain.amber header .dot { background: var(--w-amber); color: var(--c-amber); }

/* ------------------------------------------------------------ timeline --- */

.timeline { display: grid; gap: 0; }
.timeline .phase {
  position: relative;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 22px;
  padding: 20px 0 20px 0;
  border-top: 1px solid var(--line);
}
.timeline .phase:last-child { border-bottom: 1px solid var(--line); }
.timeline .when {
  font-family: var(--fmono);
  font-size: .73rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-strong);
  padding-top: 4px;
  font-weight: 650;
}
.timeline .phase:nth-child(2) .when { color: var(--c-blue); }
.timeline .phase:nth-child(3) .when { color: var(--c-violet); }
.timeline .phase:nth-child(4) .when { color: var(--c-amber); }
.timeline .phase p { color: var(--muted); font-size: .94rem; margin-top: 5px; }
@media (max-width: 640px) {
  .timeline .phase { grid-template-columns: 1fr; gap: 8px; }
}

/* ------------------------------------------------------------ diagram ---- */

/* Titles the map the way the old deck slide did, with the product named. */
.diagram-title { text-align: center; display: grid; gap: 5px; }
.diagram-title h3 { font-size: clamp(1.1rem, 1.7vw, 1.35rem); }

/* Inline SVG architecture map. Scrolls rather than shrinking its labels. */
.diagram {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow-x: auto;
  padding: clamp(14px, 2vw, 26px);
}
.diagram svg { min-width: 660px; width: 100%; height: auto; }
.diagram .lbl { font-family: var(--fsans); font-size: 13px; font-weight: 650; fill: var(--ink); }
.diagram .lbl-s { font-family: var(--fmono); font-size: 10px; letter-spacing: .1em; fill: var(--muted); text-transform: uppercase; }
.diagram .lbl-w { font-family: var(--fdisplay); font-size: 15px; font-weight: 800; fill: #fff; }
.diagram .box { fill: var(--panel); stroke: var(--line); }
.diagram .wire { stroke: var(--line); stroke-width: 1.6; fill: none; }

/* ---------------------------------------------------------------- CTA ---- */

.cta {
  background: linear-gradient(150deg, var(--hero-2), var(--hero) 70%);
  color: var(--hero-ink);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(34px, 5vw, 64px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.cta::before {
  content: "";
  position: absolute;
  inset: auto -20% -70% -20%;
  height: 130%;
  background:
    radial-gradient(40% 60% at 32% 100%, rgba(20, 184, 166, .34), transparent 70%),
    radial-gradient(38% 56% at 70% 100%, rgba(124, 58, 237, .28), transparent 72%);
  z-index: -1;
}
.cta h2 { color: var(--hero-ink); }
.cta p { color: var(--hero-lead); max-width: 50ch; margin-inline: auto; }
.cta .eyebrow { color: #6EE7DA; }
.cta .btn-row { justify-content: center; margin-top: 6px; }

/* --------------------------------------------------------------- form ---- */

.form-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow);
}
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field > label {
  font-size: .87rem;
  font-weight: 650;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.field > label .opt { font-weight: 500; color: var(--muted); font-size: .78rem; }
.field .hint { font-size: .8rem; color: var(--muted); }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  font-family: inherit;
  font-size: .97rem;
  color: var(--ink);
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  appearance: none;
}
textarea { min-height: 128px; resize: vertical; line-height: 1.55; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2355697C' stroke-width='1.6'%3E%3Cpath d='M4 6.5 8 10.5l4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 15px;
  padding-right: 38px;
}
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--panel);
  box-shadow: 0 0 0 3px var(--accent-wash);
}
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: #C4483A; }
:root[data-theme="dark"] input[aria-invalid="true"],
:root[data-theme="dark"] textarea[aria-invalid="true"] { border-color: #E8836F; }

.err { font-size: .8rem; color: #C4483A; min-height: 0; }
:root[data-theme="dark"] .err { color: #E8836F; }

.pills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
@media (max-width: 560px) { .pills { grid-template-columns: 1fr; } }
.pills label {
  position: relative;
  display: block;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--ground);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.pills label:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.pills input { position: absolute; opacity: 0; width: 0; height: 0; }
.pills label b { display: block; font-size: .93rem; font-weight: 700; color: var(--ink); }
.pills label span { display: block; font-size: .79rem; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.pills input:checked + b { color: var(--accent-strong); }
.pills label:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-wash);
  box-shadow: 0 0 0 1px var(--accent);
}
.pills input:focus-visible + b { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 3px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: .82rem; color: var(--muted); margin-top: 14px; line-height: 1.55; }

.alert {
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: .92rem;
  margin-bottom: 22px;
  border: 1px solid;
}
.alert-ok { background: var(--accent-wash); border-color: color-mix(in srgb, var(--accent) 40%, transparent); color: var(--ink); }
.alert-bad { background: rgba(196, 72, 58, .08); border-color: rgba(196, 72, 58, .35); color: var(--ink); }

/* -------------------------------------------------------------- footer --- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--panel-2);
  padding-block: clamp(38px, 5vw, 56px) 26px;
  font-size: .9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  font-family: var(--fmono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
  margin-bottom: 12px;
}
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent-strong); }
.site-footer .about p { color: var(--muted); font-size: .9rem; max-width: 34ch; margin-top: 12px; }
.footer-bottom {
  margin-top: clamp(28px, 4vw, 42px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  color: var(--muted);
}
.footer-bottom .disclaimer { max-width: 68ch; line-height: 1.55; }

/* ------------------------------------------------------------- motion ---- */

:root[data-anim="on"] .reveal { opacity: 0; transform: translateY(14px); }
:root[data-anim="on"] .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .3, 1);
}

/* Slow pulse on the live-answer indicator. */
@keyframes tw-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.82); }
}
.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #34D399;
  animation: tw-pulse 2.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  :root[data-anim="on"] .reveal { opacity: 1; transform: none; }
  .price.featured { transform: none; }
}

/* --------------------------------------------------------------- print --- */

@media print {
  .site-header, .nav, .icon-btn, .cta, .skip { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .card, .price, .stat, .terminal, .flow .node, .compare .side { box-shadow: none; border-color: #ccc; break-inside: avoid; }
  .hero { background: #fff; color: #000; }
  .hero h1, .hero p, .hero .lead { color: #000; }
  .grad { -webkit-text-fill-color: initial; color: #000; background: none; }
  .more[open] .inner { display: block; }
  a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
