/* Prospecture public website, "coal" theme shared with the customer platform and the
   Operations Centre: coal-slate surfaces with gentle gradients, a burnt-orange accent and a
   steel-blue second colour, in light and dark. The theme follows the system setting until the
   visitor picks one with the switch in the header (theme-init.js applies it before paint).
   No external resources and no inline styles (the site CSP forbids both): self-hosted fonts
   (SIL Open Font Licence, see fonts/) and inline SVG only. */

@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("fonts/chakra-petch-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("fonts/chakra-petch-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* Light tokens are the base; dark tokens apply when the system prefers dark (unless the
   visitor chose light) and whenever the visitor chose dark. */
:root {
  color-scheme: light;
  --bg: #f4f2ef;
  --bg-2: #ebe8e3;
  --surface: #ffffff;
  --surface-2: #f7f5f2;
  --line: rgba(40, 44, 52, 0.12);
  --line-2: rgba(40, 44, 52, 0.24);
  --text: #17191d;
  --text-2: #3a3f47;
  --muted: #5e6570;
  --faint: #8a909a;
  --accent: #c2551b;
  --accent-2: #a8461a;
  --accent-ink: #ffffff;
  --steel: #2f6a9e;
  --ok: #2e8a5c;
  --warn: #a86f00;
  --bad: #c42a3c;
  --card-grad: linear-gradient(160deg, #ffffff 0%, #f6f3ef 100%);
  --page-grad: radial-gradient(1100px 600px at 12% -10%, rgba(194, 85, 27, 0.08), transparent 60%),
               linear-gradient(180deg, #f6f4f1 0%, #eeebe6 100%);
  /* Overlay ink for hairline fills, and the colour of shadows. */
  --ink: #282c34;
  --shadow-ink: rgba(70, 52, 36, 0.32);
  --grid: transparent;
  --hero-grad: linear-gradient(100deg, var(--text) 10%, var(--accent) 95%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #16181c;
    --bg-2: #1b1e23;
    --surface: #1f2329;
    --surface-2: #262a31;
    --line: rgba(176, 186, 201, 0.12);
    --line-2: rgba(176, 186, 201, 0.24);
    --text: #eef0f3;
    --text-2: #c3c8d0;
    --muted: #8d95a1;
    --faint: #5f6672;
    --accent: #e8702a;
    --accent-2: #f39a5b;
    --accent-ink: #1a0f07;
    --steel: #7fb0dc;
    --ok: #63c391;
    --warn: #f0b429;
    --bad: #ef4b5f;
    --card-grad: linear-gradient(160deg, #23272e 0%, #1c1f25 100%);
    --page-grad: radial-gradient(1100px 600px at 12% -10%, rgba(232, 112, 42, 0.10), transparent 60%),
                 radial-gradient(900px 520px at 100% 0%, rgba(127, 176, 220, 0.07), transparent 60%),
                 linear-gradient(180deg, #1a1d22 0%, #141619 100%);
    --ink: #ffffff;
    --shadow-ink: #000000;
    --grid: rgba(176, 186, 201, 0.03);
    --hero-grad: linear-gradient(100deg, var(--text) 10%, var(--accent-2) 95%);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #16181c;
  --bg-2: #1b1e23;
  --surface: #1f2329;
  --surface-2: #262a31;
  --line: rgba(176, 186, 201, 0.12);
  --line-2: rgba(176, 186, 201, 0.24);
  --text: #eef0f3;
  --text-2: #c3c8d0;
  --muted: #8d95a1;
  --faint: #5f6672;
  --accent: #e8702a;
  --accent-2: #f39a5b;
  --accent-ink: #1a0f07;
  --steel: #7fb0dc;
  --ok: #63c391;
  --warn: #f0b429;
  --bad: #ef4b5f;
  --card-grad: linear-gradient(160deg, #23272e 0%, #1c1f25 100%);
  --page-grad: radial-gradient(1100px 600px at 12% -10%, rgba(232, 112, 42, 0.10), transparent 60%),
               radial-gradient(900px 520px at 100% 0%, rgba(127, 176, 220, 0.07), transparent 60%),
               linear-gradient(180deg, #1a1d22 0%, #141619 100%);
  --ink: #ffffff;
  --shadow-ink: #000000;
  --grid: rgba(176, 186, 201, 0.03);
  --hero-grad: linear-gradient(100deg, var(--text) 10%, var(--accent-2) 95%);
}
:root {
  --accent-dim: color-mix(in srgb, var(--accent) 14%, transparent);
  --steel-dim: color-mix(in srgb, var(--steel) 15%, transparent);
  --ok-dim: color-mix(in srgb, var(--ok) 14%, transparent);
  --warn-dim: color-mix(in srgb, var(--warn) 14%, transparent);
  --bad-dim: color-mix(in srgb, var(--bad) 14%, transparent);
  /* Status colours as small text: nudged towards the text colour for AA contrast on tints. */
  --ok-text: color-mix(in srgb, var(--ok) 72%, var(--text));
  --warn-text: color-mix(in srgb, var(--warn) 72%, var(--text));
  --radius: 14px;
  --radius-sm: 10px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-tech: "Chakra Petch", system-ui, sans-serif;
  --font-card: "JetBrains Mono", ui-monospace, monospace;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --border: var(--line);
  --border-strong: var(--line-2);
  --focus: var(--accent);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow: inset 0 1px 0 color-mix(in srgb, var(--ink) 4%, transparent), 0 18px 36px -24px color-mix(in srgb, var(--shadow-ink) 70%, transparent);
  --glow: 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent), 0 20px 40px -24px color-mix(in srgb, var(--shadow-ink) 80%, transparent);
  /* The thin orange highlight on the top edge of cards. */
  --edge: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 30%, transparent) 45%, transparent 80%);
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; background: var(--bg); }

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  font-weight: 400;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--page-grad);
  background-color: var(--bg);
  background-attachment: fixed;
}

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

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.6em; color: var(--text); font-style: normal; }
h1, h2 { font-family: var(--font-display); font-weight: 700; }
h1 { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.5rem); line-height: 1.06; }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.8vw, 2.5rem); line-height: 1.1; }
h3, h4 { font-family: var(--font-tech); font-weight: 700; letter-spacing: 0; }
h3 { font-size: 1.15rem; }
/* Card titles use the mono face. */
.card h3, .stage h3, .tier h3 { font-family: var(--font-card); font-weight: 700; letter-spacing: -0.02em; }
em, i, cite { font-style: normal; }
strong, b { font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

a { color: var(--steel); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
code { font-family: var(--font-card); font-size: 0.86em; color: var(--steel); }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--bg-2); color: var(--text); border: 1px solid var(--accent);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 70px; }
.brand-block { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; margin-right: auto; min-width: 0; }
.site-footer .brand-block { margin-right: 0; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; margin-right: auto;
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.15rem;
}
.brand .logo { height: 32px; width: auto; flex: none; }
.brand .logo .wordmark { fill: currentColor; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; counter-reset: nav; }
.site-nav li:not(.nav-app) { counter-increment: nav; }
.site-nav a {
  display: flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 9px;
  border: 1px solid transparent;
  color: var(--text-2); text-decoration: none; font-family: var(--font-tech); font-weight: 600; font-size: 0.95rem;
}
.site-nav li:not(.nav-app) a::before {
  content: counter(nav, decimal-leading-zero);
  font-family: var(--font-card); font-size: 0.66rem; color: var(--muted);
}
.site-nav a:hover { color: var(--text); background: color-mix(in srgb, var(--ink) 4%, transparent); }
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--accent-dim);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}
.site-nav a[aria-current="page"]::before { color: var(--accent-2); }
.header-actions { display: flex; align-items: center; gap: 8px; }

.icon-button {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: color-mix(in srgb, var(--ink) 4%, transparent); color: var(--text);
  cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s;
}
.icon-button:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.icon-button svg { width: 20px; height: 20px; }
/* Theme switch: shows the sun in dark (to switch to light) and the moon in light. */
.theme-toggle[hidden] { display: none; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle[data-current="dark"] .icon-sun { display: block; }
.theme-toggle[data-current="dark"] .icon-moon { display: none; }

/* Tagline under the wordmark. The last word cross-fades (motion.js); its width is reserved. */
.tagline {
  display: block; padding-left: 41px; white-space: nowrap;
  font-family: var(--font-tech); font-weight: 600; font-size: 0.68rem; line-height: 1.2;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.tagline-word { display: inline-block; min-width: 13ch; text-align: left; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.tagline-word.out { opacity: 0; transform: translateY(4px); }
@media (max-width: 479px) {
  .site-header .tagline { padding-left: 0; font-size: 0.56rem; letter-spacing: 0.05em; }
}
.nav-toggle { display: none; }

.header-signin { color: var(--text-2); font-family: var(--font-tech); font-weight: 600; font-size: 0.95rem; text-decoration: none; padding: 8px 10px; border-radius: 9px; }
.header-signin:hover { color: var(--text); background: color-mix(in srgb, var(--ink) 4%, transparent); }
.site-nav .nav-app { display: none; }

@media (max-width: 899px) {
  .header-signin { display: none; }
  .js .nav-toggle { display: inline-grid; }
  .js .site-nav { display: none; }
  .js .site-nav[data-open] {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    background: color-mix(in srgb, var(--bg) 97%, transparent); border-bottom: 1px solid var(--line-2);
    box-shadow: 0 30px 50px -20px color-mix(in srgb, var(--shadow-ink) 90%, transparent);
    padding: 8px 16px 16px;
  }
  .js .site-nav[data-open] ul { flex-direction: column; }
  .js .site-nav[data-open] a { padding: 12px; font-size: 1.02rem; }
  .js .site-nav[data-open] .nav-app { display: block; }
  .js .site-nav[data-open] .nav-app .btn { color: var(--accent-ink); margin-top: 6px; justify-content: center; }
  .site-nav ul { flex-wrap: wrap; }
  .header-inner { flex-wrap: wrap; position: relative; }
  html:not(.js) .site-nav { order: 3; width: 100%; padding-bottom: 8px; }
}
@media (max-width: 479px) {
  .header-actions .header-cta { display: none; }
  .brand .logo { height: 28px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: var(--radius-sm);
  font: inherit; font-family: var(--font-tech); font-weight: 700; font-size: 1rem; line-height: 1.2; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  border: 1px solid var(--line-2); background: color-mix(in srgb, var(--ink) 4%, transparent); color: var(--text);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { text-decoration: none; }
.btn-primary {
  border-color: transparent; color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 80%, var(--accent-2)));
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 22px -6px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn-secondary { background: color-mix(in srgb, var(--ink) 4%, transparent); color: var(--text); border-color: var(--line-2); }
.btn-secondary:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.btn-small { min-height: 38px; padding: 7px 14px; font-size: 0.9rem; }
.btn-large { min-height: 50px; padding: 12px 24px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.text-link { font-family: var(--font-tech); font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
a[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

/* ---------- Sections ---------- */
main { display: block; counter-reset: kicker; }
main:focus { outline: none; }
.section { position: relative; padding: clamp(56px, 5vw + 24px, 96px) 0; }
.section-alt {
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-2) 80%, transparent), color-mix(in srgb, var(--bg-2) 40%, transparent));
  border-block: 1px solid var(--line);
}
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.lead { font-size: clamp(1.05rem, 1rem + 0.35vw, 1.2rem); color: var(--text-2); }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* Eyebrow: a short label above a page heading. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 12px; margin-bottom: 22px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface);
  color: var(--text-2);
  font-family: var(--font-tech); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}

/* Kicker: numbered section label, e.g. "02 // HOW IT WORKS". */
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  color: var(--text-2); font-family: var(--font-tech); font-weight: 600; font-size: 0.74rem;
  letter-spacing: 0.12em; text-transform: uppercase;
}
main .kicker { counter-increment: kicker; }
main .kicker::before { content: counter(kicker, decimal-leading-zero) " //"; color: var(--accent-2); white-space: pre; }
.kicker svg { display: none; }

/* ---------- Heroes ---------- */
.hero, .page-hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(50% 60% at 82% 15%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%),
    radial-gradient(40% 50% at 10% 90%, color-mix(in srgb, var(--steel) 7%, transparent), transparent 70%);
}
/* A slow, faint scan band crossing the hero (animated under html.motion only). */
.hero::after, .page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 45%; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 2.5%, transparent) 35%, color-mix(in srgb, var(--accent) 5.5%, transparent) 50%, color-mix(in srgb, var(--accent) 2.5%, transparent) 65%, transparent);
  opacity: 0; transform: translate3d(0, -100%, 0);
}
.hero > .container, .page-hero > .container { position: relative; }
.hero { padding: clamp(40px, 5vw + 16px, 96px) 0 clamp(48px, 5vw + 24px, 104px); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1fr 1.2fr; gap: 52px; } }
.hero h1 { font-size: clamp(2.4rem, 1.5rem + 3vw, 3.9rem); letter-spacing: -0.03em; }
.hero h1, .page-hero h1 {
  background: var(--hero-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 .grad { color: var(--accent); -webkit-text-fill-color: var(--accent); }
:root[data-theme="dark"] .hero h1 .grad { color: var(--accent-2); -webkit-text-fill-color: var(--accent-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero h1 .grad { color: var(--accent-2); -webkit-text-fill-color: var(--accent-2); } }
.hero .lead { max-width: 36em; }
.hero-note { display: flex; align-items: baseline; gap: 8px; color: var(--muted); font-size: 0.92rem; margin: 0; }
.hero-note svg { color: var(--ok-text); flex: none; transform: translateY(2px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.cta-row.cta-row-last { margin-bottom: 0; }
.page-hero { padding: clamp(48px, 5vw + 16px, 92px) 0 clamp(40px, 4vw + 16px, 72px); border-bottom: 1px solid var(--line); }
.page-hero .lead { max-width: 44em; }
.assurance-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--text-2); font-size: 0.92rem; }
.assurance-list li { display: inline-flex; align-items: center; gap: 8px; }
.assurance-list svg { width: 18px; height: 18px; color: var(--ok-text); flex: none; }

/* Hero illustration: a console window. */
.hero-art {
  position: relative; overflow: hidden; padding: 0; border-radius: 18px;
  border: 1px solid var(--line-2);
  background: var(--card-grad);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ink) 5%, transparent), 0 40px 80px -30px color-mix(in srgb, var(--shadow-ink) 80%, transparent);
}
.hero-art::after {
  content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 1px; pointer-events: none;
  background: var(--edge);
}
/* Scan line inside the window. */
.hero-art::before {
  content: ""; position: absolute; left: 0; right: 0; top: 42px; height: 2px; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 45%, transparent), transparent);
  opacity: 0;
}
.hero-art-head {
  display: flex; align-items: center; gap: 6px; padding: 11px 16px;
  border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg-2) 70%, transparent);
}
.hero-art-head > span { width: 9px; height: 9px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 12%, transparent); }
.hero-art-head > span:first-child { background: color-mix(in srgb, var(--bad) 55%, transparent); }
.hero-art-head > span:nth-child(2) { background: color-mix(in srgb, var(--warn) 55%, transparent); }
.hero-art-head > span:nth-child(3) { background: color-mix(in srgb, var(--ok) 60%, transparent); }
.hero-art-head em {
  margin-left: auto; font-style: normal; font-family: var(--font-tech); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2);
}
.hero-art .flow { padding: clamp(10px, 2vw, 22px); }

/* Flow illustration */
.flow text { font-family: var(--font-body); fill: var(--text); }
.flow .t-muted { fill: var(--muted); }
.flow .t-label { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; fill: var(--muted); }
.flow .t-strong { font-weight: 700; }
.flow .t-violet { fill: var(--steel); font-family: var(--font-card); }
.flow .t-teal { fill: var(--accent-2); }
.flow .t-amber { fill: var(--warn); }
.flow .t-on-violet { fill: var(--accent-ink); }
.flow .box { fill: var(--surface-2); stroke: var(--line-2); stroke-width: 1.2; }
.flow .box-soft { fill: color-mix(in srgb, var(--ink) 4%, transparent); stroke: var(--line); }
.flow .box-blocked { fill: none; stroke: var(--line-2); stroke-dasharray: 4 4; }
.flow .verify { fill: color-mix(in srgb, var(--steel) 8%, transparent); stroke: var(--steel); stroke-width: 1.4; }
.flow .line { fill: none; stroke: var(--line-2); stroke-width: 1.6; }
.flow .pulse { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 10 140; animation: flow-dash 3.2s linear 1 forwards; }
.flow .pulse-v { stroke: var(--steel); }
.flow .pulse-t { stroke: var(--accent); }
.flow .pulse.d1 { animation-delay: -0.8s; }
.flow .pulse.d2 { animation-delay: -1.6s; }
.flow .pulse.d3 { animation-delay: -2.4s; }
.flow .fill-violet { fill: var(--steel); }
.flow .fill-teal { fill: var(--accent); }
.flow .fill-amber { fill: var(--warn); }
.flow .fill-muted { fill: var(--line-2); }
.flow .fill-soft-violet { fill: var(--steel-dim); }
.flow .fill-soft-teal { fill: var(--accent-dim); }
.flow .fill-soft-amber { fill: var(--warn-dim); }
.flow .stroke-teal { stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.flow .stroke-muted { stroke: var(--muted); fill: none; stroke-width: 1.6; stroke-linecap: round; }
.flow .track { fill: color-mix(in srgb, var(--ink) 8%, transparent); }
.flow .ic-violet { color: var(--steel); }
.flow .ic-teal { color: var(--accent-2); }
.flow .ic-muted { color: var(--muted); }
.flow .ic-amber { color: var(--warn-text); }
/* Decorative motion runs once (under 5 s) and then stops: no endless loops (WCAG 2.2.2). */
@keyframes flow-dash { from { stroke-dashoffset: 150; opacity: 1; } 85% { opacity: 1; } to { stroke-dashoffset: 0; opacity: 0; } }

/* ---------- Panels (cards) ---------- */
.grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.card {
  position: relative; min-width: 0;
  background: var(--card-grad);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
/* A thin orange highlight on the top edge, fading out to the right. */
.card::before, .stage::before, .faq details::before, .table-wrap::before, .cta-band::before {
  content: ""; position: absolute; left: 20px; right: 20px; top: -1px; height: 1px; pointer-events: none;
  background: var(--edge); opacity: 0.85;
}
.table-wrap.plain::before { display: none; }
.card h3 { margin-bottom: 8px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .muted { font-size: 0.97rem; }
.card-accent::before { height: 2px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }

/* Hover: only cards you act on lift. Links that are whole cards, and the plan cards you choose
   between, take a 2px lift and a warmer border; information cards stay still. */
a.card:hover, a.card:focus-visible, .tier:hover, .tier:focus-within {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 38%, transparent);
  box-shadow: var(--glow);
}

.icon-tile {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: 16px; border-radius: 11px;
  color: var(--steel);
  background: linear-gradient(145deg, color-mix(in srgb, var(--steel) 20%, transparent), color-mix(in srgb, var(--steel) 5%, transparent));
  border: 1px solid color-mix(in srgb, var(--steel) 32%, transparent);
}
.icon-tile.teal {
  color: var(--accent-2);
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 18%, transparent), color-mix(in srgb, var(--accent) 3%, transparent));
  border-color: color-mix(in srgb, var(--accent) 32%, transparent);
}
.icon-tile.amber {
  color: var(--warn-text); background: var(--warn-dim);
  border-color: color-mix(in srgb, var(--warn) 30%, transparent);
}
.icon-tile svg { width: 22px; height: 22px; }
.icon-tile.sm { width: 38px; height: 38px; margin-bottom: 0; border-radius: 10px; flex: none; }
.icon-tile.sm svg { width: 19px; height: 19px; }

.check-list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 8px; }
.check-list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.check-list svg { width: 18px; height: 18px; margin-top: 4px; color: var(--ok-text); }
.check-list strong { color: var(--text); }
@media (min-width: 640px) { .check-list.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; } }
@media (min-width: 900px) { .check-list.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; } }
@media (min-width: 560px) and (max-width: 899px) { .check-list.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Status chips */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 6px;
  font-family: var(--font-tech); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap; color: var(--text-2); background: color-mix(in srgb, var(--ink) 6%, transparent); border: 1px solid var(--line-2);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-tier { gap: 5px; color: var(--steel); background: var(--steel-dim); border-color: color-mix(in srgb, var(--steel) 35%, transparent); }
.badge-tier::before { display: none; }
.badge-tier svg { width: 13px; height: 13px; color: var(--steel); }
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

.illustrative {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-family: var(--font-tech); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--warn-text); background: var(--warn-dim); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent);
  border-radius: 6px; padding: 2px 8px;
}
.illustrative::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.example-tag {
  display: inline-block; margin-bottom: 6px; padding: 1px 8px; border-radius: 6px;
  font-family: var(--font-tech); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line-2);
}
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 6px; white-space: nowrap;
  font-family: var(--font-tech); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid transparent;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-ok { color: var(--ok-text); background: var(--ok-dim); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.pill-unknown { color: var(--warn-text); background: var(--warn-dim); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }

/* Assurance strip */
.assurance { border-block: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 60%, transparent); }
.assurance-grid { list-style: none; margin: 0; padding: 22px 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .assurance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .assurance-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.assurance-grid li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; }
.assurance-grid svg {
  width: 40px; height: 40px; padding: 9px; border-radius: 11px;
  background: var(--accent-dim); color: var(--accent-2); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.assurance-grid strong { display: block; font-size: 0.96rem; color: var(--text); }
.assurance-grid span { color: var(--muted); font-size: 0.88rem; line-height: 1.4; }

/* Problem, role and feature cards */
.problem { border-color: color-mix(in srgb, var(--warn) 22%, transparent); }
.card.problem::before { background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--warn) 60%, transparent), transparent); }
.role-card h3 { font-size: 1.05rem; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  font-family: var(--font-card); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.02em;
  padding: 3px 8px; border-radius: 6px; color: var(--text-2);
  background: color-mix(in srgb, var(--ink) 4%, transparent); border: 1px solid var(--line);
}
.mini-features .mini-feature, .mini-feature { display: grid; grid-template-columns: 38px 1fr; gap: 14px; padding: 20px; }
.mini-feature h3 { font-size: 1rem; margin-bottom: 4px; }
.mini-feature p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.th-icon { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; color: var(--steel); }
svg.inline { display: inline-block; width: 1em; height: 1em; vertical-align: -0.15em; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.step { counter-increment: step; }
.step .num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px; border-radius: 8px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-card); font-weight: 700; font-size: 0.85rem;
}
.step .num::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 1.05rem; }
.step p { font-size: 0.95rem; color: var(--muted); margin: 0; }

.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }
.split.align-start { align-items: start; }

/* ---------- Workflow band ---------- */
.section-dark {
  background:
    radial-gradient(60% 80% at 100% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 60%),
    radial-gradient(50% 70% at 0% 100%, color-mix(in srgb, var(--steel) 6%, transparent), transparent 60%),
    linear-gradient(180deg, var(--bg-2), color-mix(in srgb, var(--bg-2) 70%, var(--bg)));
  border-block: 1px solid var(--line-2);
}
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: none; }
@media (min-width: 640px) { .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .pipeline { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 28px; } }
.stage {
  position: relative; padding: 20px; border-radius: var(--radius);
  background: var(--card-grad);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.stage-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.stage-icon {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 11px;
  background: var(--steel-dim); color: var(--steel); border: 1px solid color-mix(in srgb, var(--steel) 32%, transparent);
}
.stage-you .stage-icon { background: var(--accent-dim); color: var(--accent-2); border-color: color-mix(in srgb, var(--accent) 32%, transparent); }
.stage-code .stage-icon { background: color-mix(in srgb, var(--ink) 5%, transparent); color: var(--text); border-color: var(--line-2); }
.stage-icon svg { width: 21px; height: 21px; }
.stage-num {
  font-family: var(--font-card); font-size: 0.7rem; font-weight: 700; color: var(--accent-2);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); background: var(--accent-dim); border-radius: 5px; padding: 1px 6px;
}
.stage h3 { font-size: 1.02rem; margin-bottom: 6px; }
.stage p { color: var(--muted); font-size: 0.92rem; margin: 0 0 12px; }
.who {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 6px;
  font-family: var(--font-tech); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid transparent;
}
.who svg { width: 13px; height: 13px; }
.who-you { color: var(--accent-2); background: var(--accent-dim); border-color: color-mix(in srgb, var(--accent) 32%, transparent); }
.who-ai { color: var(--steel); background: var(--steel-dim); border-color: color-mix(in srgb, var(--steel) 35%, transparent); }
.who-code { color: var(--text-2); background: color-mix(in srgb, var(--ink) 5%, transparent); border-color: var(--line-2); }
/* Connectors between stages, with a travelling orange spark. */
.stage::after {
  content: ""; position: absolute; border-radius: 2px;
  background: linear-gradient(90deg, transparent 0 35%, var(--accent) 50%, transparent 65% 100%) 0 0 / 300% 100% no-repeat, var(--line-2);
  animation: pipe 2.4s linear 2;
}
.stage:last-child::after { display: none; }
@media (max-width: 639px) {
  .stage::after { left: 41px; top: 100%; width: 2px; height: 18px; background: linear-gradient(180deg, transparent 0 35%, var(--accent) 50%, transparent 65% 100%) 0 0 / 100% 300% no-repeat, var(--line-2); animation-name: pipe-v; }
}
@media (min-width: 640px) and (max-width: 1039px) {
  .stage:nth-child(odd)::after { left: 100%; top: 50%; width: 18px; height: 2px; }
  .stage:nth-child(even)::after { display: none; }
}
@media (min-width: 1040px) {
  .stage::after { left: 100%; top: 41px; width: 28px; height: 2px; }
  .stage:nth-child(4n)::after { display: none; }
}
.stage:nth-child(2)::after { animation-delay: -0.3s; } .stage:nth-child(3)::after { animation-delay: -0.6s; }
.stage:nth-child(4)::after { animation-delay: -0.9s; } .stage:nth-child(5)::after { animation-delay: -1.2s; }
.stage:nth-child(6)::after { animation-delay: -1.5s; } .stage:nth-child(7)::after { animation-delay: -1.8s; }
@keyframes pipe { from { background-position: 100% 0, 0 0; } to { background-position: 0% 0, 0 0; } }
@keyframes pipe-v { from { background-position: 0 100%, 0 0; } to { background-position: 0 0%, 0 0; } }
/* Measured connectors (pipeline.js): one SVG layer under the stages, joined across row wraps. */
.pipe-host { position: relative; }
.pipe-links { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; z-index: 0; }
.pipeline.linked { position: relative; z-index: 1; }
.pipeline.linked .stage::after { display: none; }
/* Room between rows for the elbow that carries the workflow onto the next row. */
@media (min-width: 640px) { .pipeline.linked { row-gap: 40px; } }
.motion #how.pin-ready .pipeline.linked { row-gap: 34px; }
.pipe-line { fill: none; stroke: color-mix(in srgb, var(--accent) 28%, var(--line-2)); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pipe-spark {
  fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round;
  stroke-dasharray: 0.22 2; stroke-dashoffset: 0.22; opacity: 0;
}
.pipe-link.lit .pipe-line { stroke: color-mix(in srgb, var(--accent) 70%, var(--line-2)); }
.pipe-line { transition: stroke 0.5s var(--ease); }
/* With motion: each line draws in as the stage it leads to scrolls into view (pipeline.js). */
.motion .pipe-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.motion .pipe-link.drawn .pipe-line { animation: draw-in 0.6s var(--ease) var(--draw-delay, 0ms) forwards; }

/* Live motion. Continuous, gentle flow in the hero illustration and along the workflow, shown only
   while html.live-on is set: motion.js sets it unless the visitor prefers reduced motion, and each
   graphic runs only while it is on screen. Every animation that repeats forever lives in this block
   and names .live-on in its selector. */
@keyframes pipe-spark {
  0% { opacity: 1; stroke-dashoffset: 0.22; }
  11% { opacity: 1; stroke-dashoffset: -1; }
  11.01%, 100% { opacity: 0; stroke-dashoffset: -1; }
}
.live-on .pipe-links.onscreen .pipe-link.drawn .pipe-spark { animation: pipe-spark 5s linear calc(var(--link, 0) * 0.55s) infinite; }
.live-on .hero-art.onscreen .flow .pulse { animation: flow-dash 3.2s linear infinite; }
.live-on .hero-art.onscreen .flow .pulse.d1 { animation-delay: 0.8s; }
.live-on .hero-art.onscreen .flow .pulse.d2 { animation-delay: 1.6s; }
.live-on .hero-art.onscreen .flow .pulse.d3 { animation-delay: 2.4s; }
.live-on .hero-art.onscreen .flow .pulse-t { animation-duration: 3.6s; }

.legend { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; color: var(--muted); font-size: 0.88rem; margin-top: 22px; }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.legend svg { width: 15px; height: 15px; }

/* ---------- Charts ---------- */
.chart-card { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.chart-head, .ai-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.chart-head h3, .ai-head h3 { margin: 0; }
.chart { width: 100%; height: auto; }
.chart text { font-family: var(--font-body); fill: var(--text); }
.chart .c-label { font-size: 16px; font-weight: 650; }
.chart .c-value { font-family: var(--font-card); font-size: 18px; font-weight: 700; fill: var(--accent-2); }
.chart .c-note { font-size: 13px; fill: var(--muted); }
.chart .c-axis { font-size: 13px; fill: var(--muted); font-weight: 600; }
.chart .c-tick { font-family: var(--font-card); font-size: 12.5px; fill: var(--text-2); }
.chart .c-score { font-family: var(--font-card); font-size: 14px; font-weight: 700; }
.chart .c-ring { fill: var(--steel-dim); stroke: var(--steel); stroke-width: 2; }
.chart .c-track { fill: color-mix(in srgb, var(--ink) 5%, transparent); }
.chart .bar-1 { fill: color-mix(in srgb, var(--steel) 35%, transparent); }
.chart .bar-2 { fill: color-mix(in srgb, var(--steel) 72%, transparent); }
.chart .bar-3 { fill: var(--accent); }
.chart .c-arrow { fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chart .rung-1 { fill: #2f6a9e; }
.chart .rung-2 { fill: #4e555f; }
.chart .rung-3 { fill: #b04d18; }
.chart .c-on { fill: #ffffff; }

.ai-diagram { padding: 24px; }
.ai-grid { display: grid; gap: 24px; margin-top: 18px; }
@media (min-width: 960px) { .ai-grid { grid-template-columns: minmax(0, 1fr) 300px; align-items: center; } }
.lanes { display: grid; gap: 12px; }
@media (min-width: 760px) { .lanes { grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); align-items: stretch; } }
.lane { border-radius: 12px; padding: 16px; border: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 2.5%, transparent); }
.lane-ai { background: linear-gradient(160deg, color-mix(in srgb, var(--steel) 12%, transparent), transparent 70%); border-color: color-mix(in srgb, var(--steel) 30%, transparent); }
.lane-title {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
  font-family: var(--font-tech); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2);
}
.lane-title svg { width: 18px; height: 18px; color: var(--steel); }
.lane ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.chip {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 9px;
  background: color-mix(in srgb, var(--bg) 50%, transparent); border: 1px solid var(--line); font-size: 0.92rem; font-weight: 550;
}
.chip svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.chip-code svg { color: var(--text-2); }
.chip-ai svg { color: var(--steel); }
.lane-join { display: grid; place-items: center; color: var(--accent-2); }
.lane-join svg { width: 24px; height: 24px; }
@media (max-width: 759px) { .lane-join svg { transform: rotate(90deg); } }
.ladder { max-width: 320px; margin-inline: auto; width: 100%; }

/* ---------- Tables ---------- */
.table-wrap {
  position: relative; overflow-x: auto;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.table-wrap:focus-visible { outline-offset: 2px; }
.table-wrap.plain { border: 0; background: none; box-shadow: none; }
table.matrix, table.compare { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
table.matrix { min-width: 760px; font-size: 0.92rem; }
.matrix th, .matrix td, .compare th, .compare td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.matrix th, .matrix td { vertical-align: middle; }
.matrix thead th, .compare thead th {
  background: var(--surface-2); color: var(--text-2); border-bottom-color: var(--line-2);
  font-family: var(--font-tech); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.matrix thead th:first-child { width: 26%; }
.matrix tbody th, .compare tbody th { font-weight: 600; color: var(--text); background: var(--surface); position: sticky; left: 0; z-index: 1; }
.matrix tr:last-child th, .matrix tr:last-child td, .compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.matrix td { color: var(--muted); }
.matrix td.us { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, transparent), color-mix(in srgb, var(--accent) 4%, transparent)), var(--surface); color: var(--text); font-weight: 600; }
.matrix thead th.us { background: var(--accent); color: var(--accent-ink); border-top-left-radius: 0; }
.matrix thead th.us .th-icon { color: var(--accent-ink); }
.matrix tbody tr, .compare tbody tr { transition: background 0.2s; }
.m-icon { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; margin-right: 8px; vertical-align: -6px; }
.m-icon svg { width: 14px; height: 14px; }
.m-yes .m-icon, .legend .m-yes svg { color: var(--ok-text); }
.m-yes .m-icon { background: var(--ok-dim); }
.m-partial .m-icon, .legend .m-partial svg { color: var(--warn-text); }
.m-partial .m-icon { background: var(--warn-dim); }
.m-no .m-icon, .legend .m-no svg { color: var(--muted); }
.m-no .m-icon { background: color-mix(in srgb, var(--ink) 5%, transparent); }

table.compare { min-width: 860px; font-size: 0.93rem; }
.compare caption { text-align: left; padding: 16px 18px; color: var(--muted); font-size: 0.9rem; caption-side: bottom; border-top: 1px solid var(--line); }
.compare th, .compare td { vertical-align: top; }
.compare thead th:first-child { width: 22%; }
@media (max-width: 639px) { .compare thead th:first-child { width: 150px; } table.compare { min-width: 780px; font-size: 0.88rem; } .compare th, .compare td { padding: 10px; } }
.compare .group th {
  background: var(--bg-2); color: var(--accent-2);
  font-family: var(--font-tech); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.compare td { color: var(--text-2); }
.compare .yes svg { width: 18px; height: 18px; color: var(--ok-text); }
.compare .no { color: var(--muted); }

table.uses { width: 100%; border-collapse: collapse; }
.uses th, .uses td { padding: 10px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.uses thead th { font-family: var(--font-tech); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--line-2); }
.uses td { text-align: right; font-family: var(--font-card); font-weight: 600; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.uses thead th:last-child { text-align: right; }
.uses tbody th { font-weight: 500; color: var(--text-2); }
.uses tr:last-child th, .uses tr:last-child td { border-bottom: 0; }

/* ---------- Pricing ---------- */
.pricing-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 28px; }
.billing-switch {
  display: inline-flex; padding: 4px; gap: 4px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--surface);
}
.billing-switch button {
  min-height: 38px; padding: 6px 18px; border: 1px solid transparent; border-radius: 9px;
  background: transparent; color: var(--text-2);
  font-family: var(--font-tech); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.billing-switch button:hover { color: var(--text); }
.billing-switch button[aria-pressed="true"] {
  color: var(--accent-2); background: var(--accent-dim); border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
.save-note { color: var(--ok-text); font-family: var(--font-tech); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
html:not(.js) .billing-switch, html:not(.js) .save-note { display: none; }

.tiers { display: grid; gap: 18px; }
@media (min-width: 700px) { .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tiers { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; } }
.tier { display: flex; flex-direction: column; padding: 22px 18px; }
@media (min-width: 700px) {
  .tier { display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
}
.tier.featured {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 9%, transparent), transparent 45%), var(--card-grad);
}
.tier.featured::before { left: 0; right: 0; height: 2px; top: -1px; border-radius: var(--radius) var(--radius) 0 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.tier h3 { font-size: 1.12rem; margin-bottom: 4px; }
.tier .for { color: var(--muted); font-size: 0.92rem; margin-bottom: 14px; }
.tier-head { align-self: start; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.tier-head .icon-tile { width: 36px; height: 36px; margin: 0; border-radius: 10px; }
.tier-head .icon-tile svg { width: 19px; height: 19px; }
.tier-head h3 { margin: 0; }
.tier-flag {
  flex-basis: 100%; justify-self: start;
  font-family: var(--font-tech); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-2);
}
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; margin-bottom: 4px; }
.price .amount, .topup .amount, .tier-mini .amount, .tier-link .amount {
  font-family: var(--font-card); font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--text);
}
.price .amount { font-size: 2.05rem; line-height: 1.15; }
.tier.featured .price .amount { color: var(--accent-2); }
.price .amount-long { font-size: 1.35rem; line-height: 1.55; letter-spacing: -0.03em; }
.price .per { color: var(--muted); font-size: 0.88rem; }
.price-note { color: var(--muted); font-size: 0.85rem; margin-bottom: 16px; }
.tier .btn { white-space: nowrap; padding-left: 12px; padding-right: 12px; font-size: 0.93rem; justify-content: center; }
.tier .btn { margin-bottom: 20px; align-self: start; }
.allowances { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; font-size: 0.93rem; align-content: start; }
.allowances li { display: flex; flex-direction: column-reverse; border-bottom: 1px dashed var(--line-2); padding-bottom: 8px; line-height: 1.35; }
.allowances li span:first-child { color: var(--muted); font-family: var(--font-tech); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 3px; }
.allowances li span:last-child { font-weight: 600; color: var(--text); }
.adds { font-size: 0.92rem; }
.adds h4 { font-family: var(--font-tech); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--steel); margin: 4px 0 8px; }
.adds .check-list { gap: 5px; }
.adds .check-list li { grid-template-columns: 16px 1fr; color: var(--text-2); }
.adds .check-list svg { width: 15px; height: 15px; margin-top: 4px; }
html[data-billing="yearly"] [data-billing-show="monthly"],
html:not([data-billing="yearly"]) [data-billing-show="yearly"] { display: none; }

.every-plan { display: grid; gap: 4px 20px; }
@media (min-width: 700px) { .every-plan { grid-template-columns: auto 1fr; } }

.topup { display: grid; gap: 20px; align-items: center; }
@media (min-width: 760px) { .topup { grid-template-columns: auto 1fr; gap: 28px; } }
.topup .amount { font-size: 2.1rem; }

/* Credit prices: information only. Credits are bought in the customer workspace. */
.credits-note { display: grid; gap: 18px; }
.credits-note-head { display: grid; grid-template-columns: auto 1fr; gap: 0 16px; align-items: start; }
.credits-note-head .icon-tile { margin-bottom: 0; }
.credits-note-head p { margin: 0; }
.credit-prices { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.credit-prices li:last-child { grid-column: 1 / -1; }
@media (min-width: 1000px) { .credit-prices li:last-child { grid-column: auto; } }
@media (min-width: 1000px) { .credit-prices { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.credit-prices li {
  display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 3%, transparent);
}
.credit-qty { font-family: var(--font-tech); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.credit-price { font-family: var(--font-card); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.credit-unit { font-size: 0.85rem; color: var(--muted); }
.talk-link { font-weight: 650; }

/* Summary tiers on the home page */
.tier-mini { display: grid; gap: 12px; }
@media (min-width: 560px) { .tier-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .tier-mini { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.tier-mini .card { padding: 18px; }
.tier-mini p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.tier-link { display: grid; gap: 4px; align-content: start; text-decoration: none; color: var(--text); padding: 18px; }
.tier-link .name { font-weight: 650; margin-top: 8px; }
.tier-link .amount { font-size: 1.55rem; line-height: 1.25; }
.tier-link .small { color: var(--text-2); }
.tier-link .small.muted { color: var(--muted); }
.tier-link.featured { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.tier-link.featured .amount { color: var(--accent-2); }
.credits-strip {
  display: grid; grid-template-columns: 38px 1fr 20px; gap: 14px; align-items: center;
  margin-top: 16px; text-decoration: none; color: var(--text-2); padding: 16px 20px;
}
.credits-strip strong { color: var(--text); }
.credits-strip > svg { width: 20px; height: 20px; color: var(--accent-2); transition: transform 0.3s var(--ease); }
.credits-strip:hover > svg { transform: translateX(3px); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details {
  position: relative; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  transition: border-color 0.25s var(--ease);
}
.faq details::before { opacity: 0; transition: opacity 0.3s var(--ease); }
.faq details[open] { border-color: var(--line-2); }
.faq details[open]::before, .faq details:hover::before { opacity: 1; }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 15px 20px; font-weight: 600; border-radius: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 9px; height: 9px; flex: none;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg); transition: transform 0.3s var(--ease); margin-top: -4px;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq details > div { padding: 0 20px 16px; color: var(--text-2); }
.faq details > div p:last-child { margin: 0; }

/* ---------- Notes and callouts ---------- */
.note {
  position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 12px; overflow: hidden;
  padding: 14px 18px 14px 20px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--surface);
  color: var(--text-2); font-size: 0.95rem;
}
.note::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.note svg { width: 22px; height: 22px; color: var(--accent-2); margin-top: 2px; }
.note p { margin: 0; }
.note strong { color: var(--text); }

.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 20px; padding: clamp(28px, 4vw, 56px);
  border: 1px solid var(--line-2);
  background:
    radial-gradient(70% 120% at 100% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%),
    radial-gradient(60% 120% at 0% 100%, color-mix(in srgb, var(--steel) 8%, transparent), transparent 60%),
    var(--card-grad);
  box-shadow: var(--shadow);
  color: var(--text);
}
.cta-band::before { left: 40px; right: 40px; }
.cta-band p { color: var(--text-2); max-width: 40em; }
.cta-band .cta-tagline {
  font-family: var(--font-tech); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 10px;
}
.cta-art { position: absolute; right: -40px; top: 50%; width: 360px; height: 360px; transform: translateY(-50%); opacity: 0.3; z-index: -1; }
.cta-art svg { width: 100%; height: 100%; }
@media (max-width: 700px) { .cta-art { width: 220px; height: 220px; right: -60px; opacity: 0.16; } }

/* Sub navigation chips (product page) */
.chip-nav { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 24px 0 0; }
.chip-nav a {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 3%, transparent);
  color: var(--text-2); text-decoration: none; font-family: var(--font-tech); font-size: 0.9rem; font-weight: 600;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.chip-nav a:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.chip-nav svg { width: 15px; height: 15px; color: var(--accent-2); }

.feature-group { margin-top: 64px; }
.feature-group:first-child { margin-top: 0; }
.feature-group > h2 { display: flex; align-items: center; gap: 12px; }
.feature-group > h2 .icon-tile { margin: 0; }
.feature-group > h2 { flex-wrap: wrap; }
.feature-group > .group-note { max-width: 44em; margin: -4px 0 20px; color: var(--text-2); }

/* Mock opportunity card */
.mock { padding: 0; overflow: hidden; margin: 0; }
.mock-head { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.mock-head .title { font-weight: 650; }
.mock-head .meta { color: var(--muted); font-size: 0.86rem; }
.mock .illustrative { margin-bottom: 8px; }
.score-ring { flex: none; width: 58px; height: 58px; }
.score-ring text { font-family: var(--font-card); fill: var(--text); font-weight: 700; font-size: 16px; }
.score-ring .ring-track { stroke: color-mix(in srgb, var(--ink) 8%, transparent); }
.score-ring .ring-value { stroke: var(--accent); }
.mock-body { padding: 16px 20px 20px; display: grid; gap: 16px; }
.mock-label { font-family: var(--font-tech); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.factor { display: grid; grid-template-columns: 112px 1fr 44px; gap: 10px; align-items: center; font-size: 0.88rem; color: var(--text-2); }
.factor .bar { height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 7%, transparent); overflow: hidden; }
.factor .bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--steel), var(--accent)); }
.factor .val { text-align: right; color: var(--text); font-family: var(--font-card); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.evidence-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.88rem; }
.evidence-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 9px; background: color-mix(in srgb, var(--ink) 3%, transparent); border: 1px solid var(--line); }
.evidence-list .src { font-family: var(--font-card); font-size: 0.76rem; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evidence-list svg { width: 16px; height: 16px; color: var(--muted); }

.prose { max-width: 760px; }
.prose h2 { font-size: 1.45rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--text); }

/* Contact: the whole card is one mailto link; the address inside does not look like a link. */
.contact-column { display: grid; gap: 18px; min-width: 0; align-items: start; }
@media (min-width: 900px) {
  .contact-column { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; }
  .contact-column:has(> .contact-form[hidden]) { grid-template-columns: minmax(0, 1fr); }
}
.contact-card { display: block; color: inherit; text-decoration: none; }
.contact-card h2 { font-size: 1.5rem; }
.contact-body { display: grid; gap: 6px; color: var(--text-2); }
.contact-email { font-family: var(--font-card); font-size: 1.15rem; font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.contact-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 38%, transparent); box-shadow: var(--glow); }
.contact-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius); }

.contact-form { display: grid; gap: 16px; }
.help-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .help-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .help-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.help-card { display: grid; align-content: start; gap: 12px; }
.help-card-head { display: flex; align-items: center; gap: 12px; }
.help-card h3 { font-size: 1.05rem; margin: 0; }
.help-card p { margin: 0; color: var(--text-2); }
.help-list { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 0.93rem; color: var(--muted); }
.help-list li { position: relative; padding-left: 16px; }
.help-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0.7; }
.contact-form[hidden] { display: none; }
.contact-form h2 { font-size: 1.5rem; margin: 0; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-family: var(--font-tech); font-weight: 600; font-size: 0.95rem; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--bg); color: var(--text);
  font: inherit; font-size: 1rem;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field select { appearance: auto; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent);
}
.field [aria-invalid="true"] { border-color: var(--bad); }
.field-error { margin: 0; color: color-mix(in srgb, var(--bad) 78%, var(--text)); font-size: 0.9rem; font-weight: 600; }
.field-count { margin: 0; color: var(--muted); font-size: 0.85rem; font-family: var(--font-card); }
.hp { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.form-privacy { margin: 0; }
.contact-form .btn { justify-self: start; }
.contact-form .btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.form-status { margin: 0; color: var(--text-2); }
.form-status:empty { display: none; }
.form-status[data-state="error"] { color: color-mix(in srgb, var(--bad) 78%, var(--text)); font-weight: 600; }
.contact-done p { margin: 0; font-size: 1.1rem; font-weight: 600; color: var(--text); }
.contact-done:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Security location card */
.location-card { margin: 0; display: grid; gap: 14px; }
.loc { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: 12px; background: color-mix(in srgb, var(--ink) 3%, transparent); border: 1px solid var(--line); }
.loc .icon-tile { margin: 0; }
.loc strong { display: block; }
.loc span { color: var(--muted); font-family: var(--font-card); font-size: 0.8rem; letter-spacing: 0.02em; }
.loc-arrow { display: grid; place-items: center; color: var(--accent-2); }
.loc-arrow svg { width: 22px; height: 22px; transform: rotate(90deg); }
.location-card p { margin: 0; }

/* About */
.big-quote { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; margin: 0; color: var(--text); }
.mission h3 { font-family: var(--font-tech); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* Brand sheet */
.brand-tile { margin: 0; display: grid; place-items: center; gap: 16px; min-height: 200px; }
.brand-tile img { max-width: 100%; height: auto; }
.brand-tile.light { background: #f4f2ef; border-color: var(--line-2); }
.brand-tile.dark { background: radial-gradient(80% 100% at 50% 0%, rgba(232, 112, 42, 0.12), transparent 70%), #16181c; border-color: var(--line-2); }
.brand-tile.dark figcaption { color: #c3c8d0; }
.brand-tile.light figcaption { color: #3a3f47; }
.brand-tile figcaption { font-family: var(--font-tech); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.brand-tile.marks { grid-template-columns: repeat(5, auto); justify-content: center; align-items: center; column-gap: 20px; }
.brand-tile.marks figcaption { grid-column: 1 / -1; text-align: center; }
@media (max-width: 479px) { .brand-tile.marks { column-gap: 10px; } }
.swatches { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.swatch { display: grid; gap: 2px; font-size: 0.88rem; }
.swatch span { height: 52px; border-radius: 10px; border: 1px solid var(--line-2); margin-bottom: 6px; }
.swatch code { font-family: var(--font-card); color: var(--accent-2); }
.swatch em { font-style: normal; color: var(--muted); }
.downloads { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
@media (min-width: 760px) { .downloads { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.downloads li { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 3%, transparent); border: 1px solid var(--line); }
.downloads a { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; }
.downloads svg { width: 18px; height: 18px; }
.downloads code { font-family: var(--font-card); font-size: 0.8rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 70%, transparent); padding: 52px 0 32px; font-size: 0.94rem; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.site-footer h2 {
  font-family: var(--font-tech); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.site-footer a { color: var(--text-2); text-decoration: none; display: inline-block; padding: 3px 0; }
.site-footer a:hover { color: var(--accent-2); text-decoration: underline; }
.site-footer .brand { display: inline-flex; padding: 0; }
.footer-tagline { color: var(--muted); margin-top: 14px; max-width: 30em; }
.site-footer .tagline { margin-top: 2px; }
.footer-tagline strong { color: var(--text); }
.footer-base {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  font-family: var(--font-tech); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 40px; }
.center { text-align: center; }

/* ======================================================================
   Motion (motion.js). Applies only under html.motion, which is never set when
   the visitor prefers reduced motion or JavaScript is off: content is then fully
   visible and still. Slow easing, short durations, transform and opacity only.
   ====================================================================== */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform-origin: 0 50%; transform: scaleX(var(--scroll, 0));
}
.motion .site-header { transition: box-shadow 0.4s var(--ease); }
.motion .site-header[data-scrolled] { box-shadow: 0 12px 30px -18px color-mix(in srgb, var(--shadow-ink) 90%, transparent), 0 1px 0 color-mix(in srgb, var(--accent) 12%, transparent); }

/* Reveal: fade and rise 12px, staggered within each group, once. */
.motion .rv {
  opacity: 0; transform: translate3d(0, 12px, 0);
  transition: opacity 0.6s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--rv-delay, 0ms);
}
.motion .rv.in { opacity: 1; transform: none; }
/* Cards keep their hover lift once revealed: the reveal transition hands back to the hover one. */
.motion .card.rv.in, .motion .stage.rv.in { transition: opacity 0.6s var(--ease) var(--rv-delay, 0ms), transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease); }

/* Hero entrance */
.motion .hero-in { animation: hero-rise 0.7s var(--ease) var(--rv-delay, 0ms) both; }
@keyframes hero-rise { from { opacity: 0; transform: translate3d(0, 12px, 0); } to { opacity: 1; transform: none; } }
.motion .hero-grid { perspective: 1400px; }
.motion .hero-art-in {
  animation-name: hero-art-rise; animation-duration: 0.9s; animation-fill-mode: backwards;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.6s var(--ease);
}
@keyframes hero-art-rise { from { opacity: 0; transform: translate3d(0, 24px, 0) scale(0.98); } to { opacity: 1; transform: none; } }

/* One faint scan sweep across the hero band and the console window, then still. */
.motion .hero::after, .motion .page-hero::after { animation: scan-sweep 3.6s linear 0.8s 1; }
@keyframes scan-sweep {
  0% { opacity: 0; transform: translate3d(0, -100%, 0); }
  10% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(0, 230%, 0); }
}
.motion .hero-art::before { animation: window-scan 3.4s linear 1.2s 1; }
@keyframes window-scan {
  0% { opacity: 0; transform: translate3d(0, 0, 0); }
  8% { opacity: 1; }
  85% { opacity: 0.8; }
  100% { opacity: 0; transform: translate3d(0, 400px, 0); }
}


/* Hero flow lines draw in once (stroke-dashoffset), set up by motion.js. */
.motion .flow .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw-in 0.9s var(--ease) var(--rv-delay, 600ms) forwards; }
@keyframes draw-in { to { stroke-dashoffset: 0; } }

/* Charts draw themselves as they arrive: funnel bars from the centre, score bars from the baseline. */
.motion .rv .chart [class^="bar-"] {
  transform-box: fill-box; transform-origin: 50% 50%; transform: scaleX(0);
  transition: transform 0.7s var(--ease) calc(var(--rv-delay, 0ms) + 200ms);
}
.motion .rv .chart[aria-labelledby^="score"] [class^="bar-"] { transform-origin: 50% 100%; transform: scaleY(0); }
.motion .rv.in .chart [class^="bar-"] { transform: none; }
.motion .rv .chart .rung { opacity: 0; transform: translateY(12px); transform-box: fill-box; transition: opacity 0.6s var(--ease), transform 0.7s var(--ease); }
.motion .rv.in .chart .rung { opacity: 1; transform: none; }
.motion .rv.in .chart .rung-1 { transition-delay: 0.25s; }
.motion .rv.in .chart .rung-2 { transition-delay: 0.45s; }
.motion .rv.in .chart .rung-3 { transition-delay: 0.65s; }
.motion .rv .factor .bar span { transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.7s var(--ease) 0.3s; }
.motion .rv.in .factor .bar span { transform: none; }
.motion .rv .score-ring .ring-value { stroke-dashoffset: 126.7; transition: stroke-dashoffset 0.9s var(--ease) 0.3s; }
.motion .rv.in .score-ring .ring-value { stroke-dashoffset: 0; }

/* Dark panels open out from a slightly inset rounded panel to full width. */
.motion main .section-dark { clip-path: inset(0 calc((1 - var(--open, 1)) * 3vw) round calc((1 - var(--open, 1)) * 28px)); }
.motion main .cta-band { transform: scale(calc(0.97 + var(--open, 1) * 0.03)); transform-origin: 50% 100%; }

/* Pinned workflow: the section holds still while the stages light in turn. */
.pin-meter { display: none; }
.motion #how.pinned { height: calc(100vh + var(--pin-length, 300vh)); padding: 0; }
.motion #how.pinned > .container {
  position: sticky; top: var(--pin-top, 0px);
  min-height: calc(100vh - var(--pin-top, 0px));
  display: flex; flex-direction: column; justify-content: center; padding-block: 20px;
}
/* A tighter layout so that all eight stages fit on one screen while pinned. */
.motion #how.pin-ready .section-head { max-width: none; margin-bottom: 22px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 6px 40px; align-items: end; }
.motion #how.pin-ready .section-head .kicker { grid-column: 1 / -1; justify-self: start; }
.motion #how.pin-ready .section-head h2 { margin: 0; font-size: clamp(1.6rem, 1.1rem + 1.2vw, 2.1rem); }
.motion #how.pin-ready .section-head .lead { margin: 0; font-size: 1rem; }
.motion #how.pin-ready .pipeline { gap: 16px 28px; }
.motion #how.pin-ready .stage { padding: 16px 18px; }
.motion #how.pin-ready .stage-top { margin-bottom: 10px; }
.motion #how.pin-ready .stage-icon { width: 38px; height: 38px; }
.motion #how.pin-ready .stage p { font-size: 0.88rem; margin-bottom: 10px; }
.motion #how.pin-ready .legend { margin-top: 16px; }
.motion #how.pin-ready .stage::after { top: 35px; }
.motion #how.pinned .rv { opacity: 1; transform: none; }
.motion #how.pin-ready .pin-meter {
  display: flex; align-items: center; gap: 16px; margin-top: 14px;
  font-family: var(--font-tech); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2);
}
.pin-meter-track { position: relative; flex: 1; height: 2px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.pin-meter-track span {
  position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--pin-progress, 0));
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.motion #how.pinned .stage {
  opacity: 0.3; transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}
.motion #how.pinned .stage.lit { opacity: 1; transform: none; }
.motion #how.pinned .stage.current {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}
.motion #how.pinned .stage:not(.lit)::after { animation-play-state: paused; }

/* Further subtle motion. Each plays once as its block arrives; transform and opacity only. */
/* Icon tiles settle in just after their card. */
.motion .rv .icon-tile, .motion .rv .stage-icon {
  opacity: 0; transform: scale(0.82);
  transition: opacity 0.5s var(--ease) calc(var(--rv-delay, 0ms) + 140ms), transform 0.6s var(--ease) calc(var(--rv-delay, 0ms) + 140ms);
}
.motion .rv.in .icon-tile, .motion .rv.in .stage-icon { opacity: 1; transform: none; }
/* Kicker labels: a short orange rule draws out to the right. */
.motion .section-head .kicker::after {
  content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.6s var(--ease) 0.25s;
}
.motion .section-head .kicker.in::after { transform: none; }
/* Checklists tick in one line at a time. */
.motion .rv .check-list > li { opacity: 0; transform: translate3d(-6px, 0, 0); transition: opacity 0.45s var(--ease), transform 0.5s var(--ease); }
.motion .rv.in .check-list > li { opacity: 1; transform: none; }
.motion .rv.in .check-list > li:nth-child(2) { transition-delay: 60ms; }
.motion .rv.in .check-list > li:nth-child(3) { transition-delay: 120ms; }
.motion .rv.in .check-list > li:nth-child(4) { transition-delay: 180ms; }
.motion .rv.in .check-list > li:nth-child(5) { transition-delay: 240ms; }
.motion .rv.in .check-list > li:nth-child(n+6) { transition-delay: 300ms; }
/* Answers open softly. */
.motion .faq details[open] > div { animation: answer-open 0.35s var(--ease); }
@keyframes answer-open { from { opacity: 0; transform: translate3d(0, -4px, 0); } to { opacity: 1; transform: none; } }
/* The recommended plan's border warms once as it arrives. */
.motion .tier.featured.rv.in { animation: featured-glow 1.6s var(--ease) 0.4s 1; }
@keyframes featured-glow { 0%, 100% { box-shadow: var(--shadow); } 45% { box-shadow: var(--glow); } }
/* Primary buttons: a single soft sheen passes over on hover. */
.motion .btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.motion .btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, color-mix(in srgb, #fff 28%, transparent) 50%, transparent 70%);
  transform: translateX(-120%);
}
.motion .btn-primary:hover::after { transform: translateX(120%); transition: transform 0.7s var(--ease); }
/* Reduced motion: nothing moves; every element shows its final state at once. */
/* ---------- Cookie choices (theme-init.js; the same rules in both apps) ---------- */
.consent-banner {
  position: relative; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem 1.25rem;
  padding: 0.75rem max(1rem, calc((100% - 72rem) / 2));
  background: var(--surface); border-bottom: 1px solid var(--line-2); box-shadow: var(--shadow);
}
.consent-text { flex: 1 1 26rem; max-width: 44rem; margin: 0; color: var(--text); font-size: 0.95rem; line-height: 1.5; }
.consent-text a, .consent-dialog a { color: var(--steel); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
/* Accept and reject look the same, so neither choice is nudged. */
.consent-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 0; padding: 8px 16px;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text);
  font: inherit; font-family: var(--font-tech); font-weight: 700; font-size: 0.95rem; line-height: 1.2; cursor: pointer;
  box-shadow: none; transform: none;
}
.consent-button:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: none; transform: none; }
.consent-quiet { background: transparent; }
.consent-dialog {
  width: min(32rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); padding: clamp(1.25rem, 4vw, 1.75rem);
  border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: var(--shadow);
}
.consent-dialog::backdrop { background: rgba(10, 11, 13, 0.55); }
.consent-dialog h2 { margin: 0 0 0.5rem; font-family: var(--font-display); font-size: 1.4rem; }
.consent-dialog p { margin: 0.25rem 0 0.75rem; color: var(--text-2); }
.consent-option { padding: 0.75rem 0; border-top: 1px solid var(--line); }
.consent-option p { margin: 0.25rem 0 0; }
.consent-option-name { display: flex; align-items: center; gap: 0.6rem; margin: 0; color: var(--text); font-weight: 700; }
.consent-option-name input { inline-size: 1.15rem; block-size: 1.15rem; margin: 0; accent-color: var(--accent); }
.consent-always {
  margin-inline-start: auto; padding: 1px 8px; border-radius: 999px; background: var(--ok-dim); color: var(--text);
  font-family: var(--font-tech); font-size: 0.8rem; font-weight: 600;
}
.consent-dialog .consent-actions { margin-top: 0.5rem; }
.link-button {
  display: inline-block; margin: 0; padding: 3px 0; min-height: 0; border: 0; background: none; box-shadow: none;
  color: var(--text-2); font: inherit; font-weight: inherit; letter-spacing: inherit; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer;
}
.link-button:hover { color: var(--accent-2); transform: none; box-shadow: none; }
.link-button[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .flow .pulse { display: none; }
  .stage::after { background: var(--line-2); }
  .card:hover, .btn:hover, a.card:hover, a.card:focus-visible, .tier:hover, .tier:focus-within { transform: none; }
  .hero::after, .page-hero::after, .hero-art::before { display: none; }
  .motion .rv, .motion .hero-in, .motion .rv .chart [class^="bar-"], .motion .rv .chart .rung, .motion .rv .factor .bar span,
  .motion .rv .icon-tile, .motion .rv .stage-icon, .motion .rv .check-list > li, .motion .section-head .kicker::after {
    opacity: 1 !important; transform: none !important;
  }
  .motion .flow .draw, .motion .rv .score-ring .ring-value { stroke-dashoffset: 0 !important; }
  .scroll-progress { display: none; }
}
@media print {
  .site-header, .site-footer, .skip-link, .cta-band, .scroll-progress { display: none; }
  .motion .rv, .motion .hero-in, .motion .rv .icon-tile, .motion .rv .stage-icon, .motion .rv .check-list > li { opacity: 1 !important; transform: none !important; }
  .motion main .section-dark { clip-path: none; }
}

/* Utility classes in place of inline style attributes, so pages work under a strict
   Content-Security-Policy (style-src 'self'). */
.sprite { position: absolute; }
.w-70 { width: 70%; } .w-81 { width: 81%; } .w-84 { width: 84%; } .w-88 { width: 88%; } .w-92 { width: 92%; }
.swatch-slate { background: #2a2e35; } .swatch-coal { background: #16181c; } .swatch-ember { background: #f39a5b; }
.swatch-orange { background: #e8702a; } .swatch-deep-orange { background: #c2551b; } .swatch-bone { background: #f4efe9; }
.swatch-ink { background: #17191d; } .swatch-steel { background: #7fb0dc; }

/* ---------- Holding page (holding.html) ----------
   Shown for areas that are not open yet: the mark, the name, the tagline and a way back. */
.holding-page { min-height: 100vh; }
.holding-corner { position: fixed; top: 16px; right: 16px; z-index: 10; }
.holding { min-height: 100vh; display: grid; place-items: center; padding: 88px 16px; }
.holding-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; max-width: 100%; }
.holding-mark { width: 88px; height: 88px; margin-bottom: 10px; border-radius: 20px; box-shadow: 0 24px 48px -24px color-mix(in srgb, var(--shadow-ink) 80%, transparent); }
.holding-name {
  margin: 0; font-size: clamp(2.6rem, 2rem + 3vw, 4rem); line-height: 1.05; letter-spacing: -0.03em;
  background: var(--hero-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.holding .tagline { padding-left: 0; font-size: 0.8rem; letter-spacing: 0.1em; }
.holding .tagline-word { min-width: 13ch; }
/* Balance the space reserved after the word, so the resting phrase sits centred. */
.holding .tagline > [aria-hidden] { padding-left: 4ch; }
.holding-back { margin-top: 26px; }
@media (max-width: 379px) { .holding .tagline { font-size: 0.68rem; letter-spacing: 0.06em; } }
.motion .holding-inner > * { animation: hero-rise 0.6s var(--ease) both; }
.motion .holding-inner > :nth-child(2) { animation-delay: 60ms; }
.motion .holding-inner > :nth-child(3) { animation-delay: 120ms; }
.motion .holding-inner > :nth-child(4) { animation-delay: 180ms; }

/* ---------- Cookie policy tables (cookies.html) ---------- */
.table-scroll { max-width: 100%; overflow-x: auto; margin: 1rem 0 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.table-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cookie-table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 0.95rem; line-height: 1.5; }
.cookie-table th, .cookie-table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cookie-table tbody tr:last-child td { border-bottom: 0; }
.cookie-table th { background: var(--surface-2); color: var(--text); font-family: var(--font-tech); font-size: 0.85rem; }
.cookie-table code { overflow-wrap: anywhere; }
