/* CloudNorth Tech — site stylesheet (v2, dark-first)
   Layout: 1200px measure, 128px section rhythm, floating capsule nav, full-bleed hero on
   grid-paper with a single luminous blue accent. Glass surfaces with hairline gradient borders.
   Every colour is a token; light theme mirrors the dark set and is reachable from the toggle. */

:root {
  color-scheme: dark;
  --bg: #06090f;
  --bg-2: #0a1020;
  --bg-3: #0d1526;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --ink: #eef2ff;
  --ink-2: #c3cbe0;
  --muted: #8b95ad;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --accent: #4f8cff;
  --accent-2: #8fb4ff;
  --accent-ink: #06090f;
  --accent-soft: rgba(79, 140, 255, 0.14);
  --accent-soft-2: rgba(79, 140, 255, 0.28);
  --glow: rgba(79, 140, 255, 0.45);
  --aurora: #2fd4a7;
  --amber: #f5b84b;
  --panel: #0a1020;
  --panel-2: #0e1628;
  --panel-ink: #eef2ff;
  --panel-muted: #8b95ad;
  --panel-line: rgba(255, 255, 255, 0.09);
  --grid-line: rgba(255, 255, 255, 0.055);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  --nav-bg: rgba(10, 16, 32, 0.7);

  --font-display: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-1: 160ms;   /* state feedback: hover, press, tabs */
  --dur-2: 260ms;   /* small reveals: panel swap, FAQ answer */
  --dur-3: 600ms;   /* hero entrance, settle beats */
  --dur-reveal: 700ms; /* scroll reveals */
  --lift: -5px;     /* card hover lift */
  --maple: #e0322b;
  --measure: 1200px;
}


:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7fc;
  --bg-2: #ffffff;
  --bg-3: #eaeef8;
  --surface: rgba(255, 255, 255, 0.7);
  --surface-2: rgba(255, 255, 255, 0.95);
  --ink: #0a1020;
  --ink-2: #334060;
  --muted: #65708c;
  --line: rgba(10, 16, 32, 0.08);
  --line-2: rgba(10, 16, 32, 0.16);
  --accent: #1f5fe0;
  --accent-2: #3f7bff;
  --accent-ink: #ffffff;
  --accent-soft: rgba(31, 95, 224, 0.10);
  --accent-soft-2: rgba(31, 95, 224, 0.22);
  --glow: rgba(31, 95, 224, 0.35);
  --panel: #0a1020;
  --panel-2: #0e1628;
  --panel-ink: #eef2ff;
  --panel-muted: #8b95ad;
  --panel-line: rgba(255, 255, 255, 0.09);
  --grid-line: rgba(10, 16, 32, 0.06);
  --shadow: 0 30px 80px -40px rgba(10, 16, 32, 0.35);
  --nav-bg: rgba(255, 255, 255, 0.72);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* Film grain over everything, very faint */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0.045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
/* Type scale: fixed steps so headings keep the same size in every language; longer text wraps, it never shrinks. */
:root { --h1: clamp(40px, 5.4vw, 68px); --h2: clamp(30px, 3.6vw, 44px); --h3: 22px; --h4: 18px; }
h2 { font-size: var(--h2); } h3 { font-size: var(--h3); } h4 { font-size: var(--h4); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent-soft-2); }

.wrap {
  width: 100%; max-width: var(--measure); margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.section { padding-block: 64px; position: relative; }
.section.tight { padding-block: 52px; }
@media (max-width: 760px) { .section { padding-block: 56px; } .section.tight { padding-block: 44px; } }

.kicker {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-2);
  font-weight: 500; display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 22px; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }
.section-head { display: grid; gap: 14px; max-width: 820px; margin-bottom: 32px; }
.section-head h2 { font-size: var(--h2); max-width: 24ch; }
.section-head p { color: var(--muted); font-size: 19px; max-width: 60ch; line-height: 1.55; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* Gradient text */
.grad {
  background: linear-gradient(92deg, var(--accent-2) 0%, var(--accent) 45%, var(--aurora) 110%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px; border-radius: 999px; font-weight: 700; font-size: 15.5px; letter-spacing: -0.01em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap; position: relative; isolation: isolate;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: var(--accent-ink);
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 12px 32px -10px var(--glow);
}
.btn-primary:hover { box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 18px 40px -10px var(--glow); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: var(--panel-ink); color: var(--panel); }
.btn-light:hover { background: #fff; }
.btn-outline-light { background: transparent; border-color: var(--panel-line); color: var(--panel-ink); }
.btn-outline-light:hover { border-color: var(--panel-ink); }
.btn svg { width: 18px; height: 18px; }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header: floating capsule ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; padding-top: 14px; padding-bottom: 14px; margin-bottom: -14px; pointer-events: none; }
/* Once scrolled, paint the page background behind the header so content never shows above the capsule */
.site-header::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--bg) 0, var(--bg) 70%, transparent 100%); opacity: 0; transition: opacity 0.3s; pointer-events: none; z-index: -1; }
.site-header.is-scrolled::before { opacity: 1; }
.site-header .wrap { pointer-events: auto; }
.nav {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; height: 64px;
  padding: 0 10px 0 18px; border-radius: 999px; border: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled .nav {
  background: var(--nav-bg); border-color: var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 10px 40px -20px rgba(0,0,0,0.6);
}
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: 10px; flex: none; }
.brand img { height: 30px; width: auto; }
.wordmark { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.03em; color: var(--ink); line-height: 1; display: inline-flex; align-items: baseline; gap: 6px; }
.wordmark small { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; justify-self: start; min-width: 0; }
.nav-links a { font-size: 14px; color: var(--ink-2); font-weight: 600; padding: 9px 9px; white-space: nowrap; border-radius: 999px; transition: background 0.2s, color 0.2s; }
.nav-links a:hover, .nav-links a.active { background: var(--surface-2); color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 6px; justify-self: end; }
.nav-actions .btn { padding: 11px 16px; font-size: 14.5px; min-width: 146px; justify-content: center; }
.nav-phone {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2);
  font-family: var(--font-mono); font-size: 13.5px; font-weight: 500; letter-spacing: 0.01em; white-space: nowrap;
  transition: border-color var(--dur-1) ease, color var(--dur-1) ease;
}
.nav-phone i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--glow); }
.nav-phone:hover { border-color: var(--ink); color: var(--ink); }
@media (max-width: 1180px) { .locale-label { display: none; } .nav-actions .locale-btn { padding: 0 10px; } .nav-phone { padding: 9px 12px; font-size: 13px; gap: 8px; } .nav-actions .btn { min-width: 0; padding: 11px 14px; } .nav-links { gap: 2px; } }
@media (max-width: 1070px) and (min-width: 961px) { .nav-actions { gap: 4px; } .nav-links a { padding-inline: 6px; font-size: 13.5px; } .nav-actions .locale-btn { padding: 0 8px; } .nav-phone { padding: 9px 10px; font-size: 12.5px; gap: 7px; } .nav-actions .btn { padding: 11px 12px; font-size: 14px; } }
/* Longer words in French and Spanish: tighter nav links so the phone and CTA still fit */
:root:not([data-lang="en"]) .nav-links a { font-size: 13.5px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface);
  display: inline-grid; place-items: center; cursor: pointer; transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.icon-btn:hover { border-color: var(--ink); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .sun, .theme-toggle .moon { display: none; }
:root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .moon { display: block; }
.menu-btn { display: none; }
@media (max-width: 960px) {
  .nav-links, .nav-actions .btn, .nav-phone { display: none; }
  .menu-btn { display: inline-grid; }
  .nav { position: relative; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; left: 0; right: 0; top: 72px; padding: 12px;
    background: var(--nav-bg); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow);
  }
  .nav.open .nav-links a { display: block; padding: 14px 16px; font-size: 16px; }
  .nav.open .nav-links li:last-child a { display: block; margin-top: 8px; text-align: center; background: var(--accent); color: #fff; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: 40px 56px; overflow: clip; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -80px 0 0; z-index: -2;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(75% 70% at 50% 20%, #000 20%, transparent 80%);
  mask-image: radial-gradient(75% 70% at 50% 20%, #000 20%, transparent 80%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -340px; width: 1100px; height: 700px; transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, var(--glow), transparent 70%); opacity: 0.55; filter: blur(20px); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 9px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink-2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--aurora); box-shadow: 0 0 0 0 rgba(47,212,167,0.6); animation: pulse 2s infinite; }
.eyebrow .sep { color: var(--muted); font-weight: 400; }
.hero h1 { font-size: var(--h1); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; margin-top: 24px; }
.hero h1 em { font-style: normal; }
.hero .lede { margin-top: 26px; font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); max-width: 56ch; line-height: 1.55; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 30px; color: var(--muted); font-size: 14px; }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof svg { width: 16px; height: 16px; color: var(--aurora); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 64px; } }

/* Glass card with gradient hairline border (shared) */
.glass {
  position: relative; background: var(--surface); border-radius: var(--r-xl); isolation: isolate;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1;
  background: linear-gradient(160deg, rgba(255,255,255,0.22), rgba(255,255,255,0.04) 40%, var(--accent-soft-2) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

/* Hero run panel */
.hero-panel { min-width: 0; }
.run { color: var(--panel-ink); border-radius: var(--r-xl); overflow: hidden; position: relative; background: linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: var(--shadow); }
.run::after { content: ""; position: absolute; inset: -60% -30% auto; height: 80%; background: radial-gradient(50% 60% at 60% 40%, var(--accent-soft-2), transparent 70%); pointer-events: none; }
.run-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 0; position: relative; z-index: 1; }
.live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; color: var(--panel-muted); letter-spacing: 0.1em; text-transform: uppercase; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--aurora); box-shadow: 0 0 0 0 rgba(47,212,167,0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(47,212,167,0); } 100% { box-shadow: 0 0 0 0 rgba(47,212,167,0); } }
.run-name { font-family: var(--font-mono); font-size: 12px; color: var(--panel-muted); }
.run-tabs { display: flex; gap: 6px; padding: 16px 24px 0; overflow-x: auto; scrollbar-width: none; position: relative; z-index: 1; }
.run-tabs::-webkit-scrollbar { display: none; }
.run-tab { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--panel-line); background: transparent; color: var(--panel-muted); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.run-tab:hover { color: var(--panel-ink); border-color: rgba(255,255,255,0.35); }
.run-tab[aria-pressed="true"] { background: var(--panel-ink); color: var(--panel); border-color: var(--panel-ink); }
.run-steps { list-style: none; margin: 0; padding: 18px 24px 8px; min-height: 290px; position: relative; z-index: 1; transition: opacity var(--dur-1) ease; }
.run-steps.is-swapping { opacity: 0; }
.run-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--panel-line); z-index: 2; overflow: hidden; }
.run-progress i { display: block; height: 100%; width: 100%; background: var(--accent-2); transform-origin: left; transform: scaleX(0); }
.run.is-complete .run-progress i { animation: hold-bar var(--hold, 3.2s) linear forwards; }
@keyframes hold-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.run.is-complete .run-foot div + div dd { animation: fade-in var(--dur-3) var(--ease-out) both; }
.run-step { display: grid; grid-template-columns: 22px 1fr auto; gap: 14px; align-items: start; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.07); opacity: 0.3; transition: opacity var(--dur-2) ease; }
.run-step:last-child { border-bottom: 0; }
.run-step.is-running, .run-step.is-done { opacity: 1; }
.step-mark { width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.22); display: grid; place-items: center; color: var(--panel); transition: background 0.25s, border-color 0.25s; }
.step-mark svg { width: 12px; height: 12px; opacity: 0; transition: opacity 0.2s; }
.run-step.is-running .step-mark { border-color: var(--accent-2); border-top-color: transparent; animation: spin 0.7s linear infinite; }
.run-step.is-done .step-mark { background: var(--aurora); border-color: var(--aurora); }
.run-step.is-done.is-human .step-mark { background: var(--amber); border-color: var(--amber); }
.run-step.is-done .step-mark svg { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.step-text { font-size: 15px; line-height: 1.4; color: var(--panel-ink); }
.step-time { font-family: var(--font-mono); font-size: 12px; line-height: 1.9; color: var(--panel-muted); white-space: nowrap; }
.run-foot { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid var(--panel-line); background: rgba(255,255,255,0.03); position: relative; z-index: 1; }
.run-foot div { padding: 16px 24px 18px; min-width: 0; }
.run-foot div + div { border-left: 1px solid var(--panel-line); }
.run-foot dt { font-size: 12.5px; color: var(--panel-muted); }
.run-foot dd { margin: 2px 0 0; font-weight: 700; line-height: 1.3; font-size: 15px; }
.run-foot div + div dd { color: var(--aurora); }
.run-note { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: right; }
.hero-panel { opacity: 0; animation: fade-up 0.8s var(--ease) 0.2s both; }
.hero-copy > * { opacity: 0; animation: fade-up var(--dur-3) var(--ease) both; }
.hero-copy > *:nth-child(1) { animation-delay: 0.04s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.12s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.22s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.32s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.4s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Hero rotor: the headline's object cycles through four tasks, 3s each, one visible at a time. */
.rotor { display: inline-grid; text-align: left; vertical-align: baseline; }
.rotor > em { grid-area: 1 / 1; white-space: nowrap; opacity: 0; animation: rotor 12s var(--ease) infinite; }
.rotor > em:nth-child(1) { animation-delay: 0s; }
.rotor > em:nth-child(2) { animation-delay: 3s; }
.rotor > em:nth-child(3) { animation-delay: 6s; }
.rotor > em:nth-child(4) { animation-delay: 9s; }
@keyframes rotor {
  0% { opacity: 0; transform: translateY(0.35em); filter: blur(6px); }
  4%, 22% { opacity: 1; transform: none; filter: blur(0); }
  26%, 100% { opacity: 0; transform: translateY(-0.35em); filter: blur(6px); }
}

/* Hero panel: after its entrance the run panel drifts, 7s per cycle, 6px of travel. */
.hero-panel .run { animation: drift 7s ease-in-out 1.2s infinite; }
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Scroll progress: a 2px accent bar at the top, driven by scroll position. No JS. */
.scroll-progress { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; height: 2px; width: 100%; z-index: 70; pointer-events: none;
  background: linear-gradient(90deg, var(--accent), var(--aurora)); transform-origin: left; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
  .scroll-progress { animation: progress linear both; animation-timeline: scroll(root); }
}
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Ticker ---------- */
.ticker { border-block: 1px solid var(--line); overflow: hidden; position: relative; background: var(--bg-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 120px, #000 calc(100% - 120px), transparent); mask-image: linear-gradient(90deg, transparent, #000 120px, #000 calc(100% - 120px), transparent); }
.ticker-track { display: flex; gap: 0; width: max-content; animation: ticker 60s linear infinite; }
.ticker.is-paused .ticker-track { animation-play-state: paused; }
@media (hover: hover) and (pointer: fine) { .ticker:hover .ticker-track { animation-play-state: paused; } }
.ticker span { display: inline-flex; align-items: center; gap: 14px; padding: 18px 28px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.ticker span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--glow); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Pain -> Outcome ---------- */
.pairs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pair { padding: 30px; display: grid; gap: 18px; border-radius: var(--r-lg); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.pair:hover { transform: translateY(var(--lift)); box-shadow: var(--shadow); }
.pair .before { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.pair .before::before, .pair .after::before { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 8px; }
.pair .before::before { content: "Today"; color: var(--muted); }
.pair .after { font-size: 16.5px; color: var(--ink); font-weight: 600; border-top: 1px solid var(--line); padding-top: 18px; line-height: 1.5; }
.pair .after::before { content: "After"; color: var(--aurora); }
@media (max-width: 900px) { .pairs { grid-template-columns: 1fr; } }

/* ---------- Services bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.card { padding: 34px; display: flex; flex-direction: column; gap: 18px; min-width: 0; border-radius: var(--r-lg); overflow: hidden; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.card:hover { transform: translateY(var(--lift)); box-shadow: var(--shadow); }
.card .icon { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-2); display: grid; place-items: center; border: 1px solid var(--accent-soft-2); transition: transform 0.35s var(--ease); }
.card:hover .icon { transform: scale(1.08) rotate(-4deg); }
.card .icon svg { width: 22px; height: 22px; }
.card h3 { font-size: var(--h3); letter-spacing: -0.025em; }
.card p { color: var(--muted); font-size: 16px; line-height: 1.55; }
.card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 15px; color: var(--ink-2); }
.card li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.card li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--glow); margin-top: 9px; flex: none; }
.card .case { margin-top: 2px; padding: 14px 16px 14px 18px; border-left: 2px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--r) var(--r) 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.card .case b { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.card .more { margin-top: auto; color: var(--accent-2); font-weight: 700; font-size: 15px; }
.span-7 { grid-column: span 7; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-12 { grid-column: span 12; }
.card.featured { background: linear-gradient(180deg, var(--panel-2), var(--panel)); color: var(--panel-ink); }
.card.featured::before { background: linear-gradient(160deg, var(--accent-soft-2), rgba(255,255,255,0.06) 50%, var(--aurora) 160%); }
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@supports (background: conic-gradient(from var(--angle), red, blue)) {
  .card.featured::before {
    background: conic-gradient(from var(--angle), var(--accent) 0deg, transparent 70deg, transparent 180deg, var(--aurora) 250deg, transparent 320deg, var(--accent) 360deg);
    animation: orbit 9s linear infinite;
  }
}
@keyframes orbit { to { --angle: 360deg; } }
.card.featured p, .card.featured ul { color: var(--panel-muted); }
.card.featured li { color: #c3cbe0; }
.card.featured .icon { background: var(--accent-soft-2); color: var(--accent-2); border-color: transparent; }
.trade-figure { margin: 6px 0 0; background: rgba(255,255,255,0.04); border: 1px solid var(--panel-line); border-radius: var(--r); padding: 16px 16px 12px; }
.trade-figure svg { width: 100%; height: auto; }
.trade-figure figcaption { font-size: 13px; color: var(--panel-muted); margin-top: 8px; }
@media (max-width: 960px) { .span-7, .span-5, .span-6 { grid-column: span 12; } }

/* Card spotlight: a soft glow follows the pointer. Fine pointers only; touch never paints it. */
@media (hover: hover) and (pointer: fine) {
  .card::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
    background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), var(--accent-soft), transparent 62%);
    opacity: 0; transition: opacity var(--dur-2) ease;
  }
  .card:hover::after { opacity: 1; }
}

/* Trade figure: the order lifecycle draws once when it scrolls into view.
   Beats: price line draws (1.4s) > entry fills (0.9s) > target and stop levels rise in > labels settle. */
.trade-figure .tf-price { stroke-dasharray: var(--len, 1200); }
.trade-figure .tf-entry { transform-box: fill-box; transform-origin: center; }
.trade-figure .tf-target { --from: 10px; }
.trade-figure .tf-stop { --from: -10px; }
@media (prefers-reduced-motion: no-preference) {
  .js .trade-figure.will-draw .tf-price { stroke-dashoffset: var(--len, 1200); }
  .js .trade-figure.will-draw .tf-level, .js .trade-figure.will-draw .tf-entry-line, .js .trade-figure.will-draw .tf-labels { opacity: 0; }
  .js .trade-figure.will-draw .tf-entry { transform: scale(0); }
  .trade-figure.is-drawn .tf-price { animation: tf-draw 1400ms cubic-bezier(0.3, 0, 0.2, 1) forwards; }
  .trade-figure.is-drawn .tf-entry { animation: tf-pop 420ms var(--ease) 900ms forwards; }
  .trade-figure.is-drawn .tf-entry-line { animation: tf-fade 500ms ease 1100ms forwards; }
  .trade-figure.is-drawn .tf-target { animation: tf-rise var(--dur-3) var(--ease-out) 1250ms forwards; }
  .trade-figure.is-drawn .tf-stop { animation: tf-rise var(--dur-3) var(--ease-out) 1400ms forwards; }
  .trade-figure.is-drawn .tf-labels { animation: tf-fade 500ms ease 1650ms forwards; }
}
@keyframes tf-draw { to { stroke-dashoffset: 0; } }
@keyframes tf-pop { 0% { transform: scale(0); } 70% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes tf-fade { to { opacity: 1; } }
@keyframes tf-rise { from { opacity: 0; transform: translateY(var(--from, 0)); } to { opacity: 1; transform: none; } }

/* ---------- Typical builds ---------- */
.builds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.build { padding: 30px 32px; display: grid; gap: 14px; min-width: 0; border-radius: var(--r-lg); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.build:hover { transform: translateY(var(--lift)); box-shadow: var(--shadow); }
.build .meta { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); background: var(--surface); }
.chip.accent { border-color: var(--accent-soft-2); background: var(--accent-soft); color: var(--accent-2); }
.build h3 { font-size: 22px; }
.build p { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.build .stack { font-family: var(--font-mono); font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; line-height: 1.7; }
@media (max-width: 860px) { .builds { grid-template-columns: 1fr; } }
.note { font-size: 14px; color: var(--muted); margin-top: 24px; max-width: 70ch; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { padding: 30px 28px; position: relative; display: grid; gap: 14px; align-content: start; border-radius: var(--r-lg); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-display); font-weight: 800; font-size: 44px; letter-spacing: -0.04em; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--line-2); }
.step h3 { font-size: 21px; }
.step p { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.step .deliver { font-size: 14px; color: var(--ink-2); border-left: 2px solid var(--aurora); padding-left: 12px; line-height: 1.5; }
.step .deliver b { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
@media (max-width: 960px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .process { grid-template-columns: 1fr; } }

/* ---------- Calculator ---------- */
.calc {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; color: var(--panel-ink);
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); border-radius: var(--r-xl); padding: 48px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.calc::after { content: ""; position: absolute; inset: auto -10% -60% auto; width: 60%; height: 120%; background: radial-gradient(50% 50% at 50% 50%, var(--accent-soft-2), transparent 70%); pointer-events: none; }
.calc h2 { font-size: var(--h2); }
.calc .kicker { color: var(--accent-2); }
.calc p.sub { color: var(--panel-muted); margin-top: 14px; font-size: 16px; }
.calc form { display: grid; gap: 20px; margin-top: 28px; position: relative; z-index: 1; }
.field { display: grid; gap: 8px; }
.field label { display: flex; justify-content: space-between; font-size: 14px; color: var(--panel-muted); }
.field output { font-family: var(--font-mono); color: var(--panel-ink); font-size: 13.5px; }
.field input[type="range"] { width: 100%; accent-color: var(--accent); }
.calc-out { display: grid; gap: 14px; align-content: center; position: relative; z-index: 1; }
.calc-tile { background: rgba(255,255,255,0.04); border: 1px solid var(--panel-line); border-radius: var(--r); padding: 20px 22px; }
.calc-tile span { font-size: 13px; color: var(--panel-muted); display: block; }
.calc-tile b { font-family: var(--font-display); font-size: clamp(30px, 3.8vw, 44px); font-weight: 800; font-variant-numeric: tabular-nums; display: block; margin-top: 4px; letter-spacing: -0.03em; }
.calc-tile.big { background: var(--accent-soft); border-color: var(--accent-soft-2); }
.calc-tile.big b { color: var(--accent-2); }
.calc-foot { font-size: 12.5px; color: var(--panel-muted); }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; padding: 28px; } }

/* ---------- Pricing ---------- */
.price-tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); margin-bottom: 36px; }
.price-tabs button { border: 0; background: transparent; padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: 14.5px; cursor: pointer; color: var(--muted); transition: background 0.2s, color 0.2s; }
.price-tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.price-panel[hidden] { display: none; }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.price-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
.price { padding: 32px; display: flex; flex-direction: column; gap: 18px; min-width: 0; border-radius: var(--r-lg); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.price:hover { transform: translateY(var(--lift)); box-shadow: var(--shadow); }
.price .name { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.price .amount { font-family: var(--font-display); font-size: 40px; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.price .amount small { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.price .amount .cur { font-size: 15px; color: var(--muted); font-weight: 600; margin-right: 6px; vertical-align: 0.9em; letter-spacing: 0; }
.price p { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.price dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14.5px; }
.price dt { color: var(--muted); } .price dd { margin: 0; color: var(--ink-2); font-weight: 600; }
.price ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }
.price li { display: flex; gap: 10px; }
.price li svg { width: 16px; height: 16px; color: var(--aurora); flex: none; margin-top: 4px; }
.price .btn { margin-top: auto; }
.price.highlight::before { background: linear-gradient(160deg, var(--accent), var(--accent-soft-2) 50%, var(--aurora)); }
.price.highlight { box-shadow: 0 0 0 6px var(--accent-soft), 0 30px 80px -40px var(--glow); }
@media (max-width: 960px) { .price-grid { grid-template-columns: 1fr; } }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.why ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.why li { display: grid; grid-template-columns: 30px 1fr; gap: 16px; font-size: 16.5px; color: var(--ink-2); line-height: 1.5; }
.why li b { display: block; color: var(--ink); font-weight: 700; }
.why li svg { width: 30px; height: 30px; color: var(--accent-2); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { padding: 26px 24px; border-radius: var(--r-lg); }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(34px, 4vw, 52px); font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.stat span { font-size: 13.5px; color: var(--muted); display: block; margin-top: 8px; }
.stack-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 60px 24px 0; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.015em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%);
  background: linear-gradient(currentColor, currentColor) center / 16px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 16px no-repeat;
  transition: transform 0.3s var(--ease); color: var(--accent-2);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details[open] summary { color: var(--accent-2); }
.faq .answer { padding: 0 60px 26px 0; color: var(--ink-2); font-size: 16px; max-width: 70ch; line-height: 1.6; }

/* ---------- CTA + contact ---------- */
.cta-band { position: relative; overflow: clip; }
.cta-band::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 80% at 85% 0%, var(--accent-soft-2), transparent 60%); }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; position: relative; align-items: start; }
.contact h2 { font-size: var(--h2); }
.contact .lede { color: var(--muted); margin-top: 20px; font-size: 18px; max-width: 54ch; line-height: 1.55; }
.contact-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 15.5px; color: var(--ink); }
.contact-list svg { width: 18px; height: 18px; color: var(--accent-2); flex: none; }
.contact-list a:hover { text-decoration: underline; }
.copy-btn { border: 1px solid var(--line-2); background: transparent; color: var(--muted); border-radius: 999px; padding: 3px 10px; font-size: 12px; cursor: pointer; }
.copy-btn:hover { color: var(--ink); border-color: var(--ink); }
.form-card { padding: 32px; display: grid; gap: 16px; border-radius: var(--r-xl); }
.form-card h3 { font-size: var(--h3); }
.form-card .f { display: grid; gap: 7px; }
.form-card label { font-size: 13.5px; color: var(--muted); }
.form-card input, .form-card textarea, .form-card select {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--ink); border-radius: 12px; padding: 13px 14px; font: inherit; font-size: 15px;
}
.form-card input:focus, .form-card textarea:focus, .form-card select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form-card textarea { min-height: 120px; resize: vertical; }
.form-card .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-card .fine { font-size: 12.5px; color: var(--muted); }
.form-card .status { font-size: 14px; color: var(--accent-2); min-height: 1.4em; }
.form-card .btn { justify-content: center; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } .form-card .row2 { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; background: var(--bg-2); }
.footer .wrap { display: grid; gap: 24px; padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.footer-links a:hover { color: var(--ink); }
.footer .disclaimer { font-size: 12.5px; max-width: 90ch; line-height: 1.6; }
.footer .brand img { height: 26px; }
.footer .wordmark { font-size: 17px; }

/* ---------- Reveal + motion safety ---------- */
[data-reveal] { opacity: 1; transform: none; transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(16px); }

/* Pricing panel swap + FAQ answer: small confirm motion */
.price-panel:not([hidden]) { animation: fade-in var(--dur-2) var(--ease) both; }
.faq details[open] .answer { animation: fade-in var(--dur-2) var(--ease) both; }

/* Hover lifts only where a hover-capable pointer exists; touch keeps cards still */
@media (hover: none), (pointer: coarse) {
  .btn:hover, .icon-btn:hover, .pair:hover, .card:hover, .build:hover, .price:hover { transform: none; }
  .card:hover .icon, .btn:hover .arrow { transform: none; }
}
.back-top { position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); opacity: 0; pointer-events: none; transition: opacity 0.25s; z-index: 40; width: 48px; height: 48px; padding: 0; }
.back-top.show { opacity: 1; pointer-events: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal]:not(.is-visible) { opacity: 1; transform: none; }
  .hero-panel, .hero-copy > * { opacity: 1; }
  .run-step { opacity: 1; }
  .run-progress { display: none; }
  .rotor > em { opacity: 0; } .rotor > em:first-child { opacity: 1; }
  .agenda-steps li { opacity: 1; }
  .scroll-progress { display: none; }
  .ticker { -webkit-mask-image: none; mask-image: none; }
  .ticker-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .ticker-track span[aria-hidden="true"] { display: none; }
}

/* ---------- Book page ---------- */
.book-hero { padding-block: 72px 32px; }
.book-hero .hero-grid { align-items: start; }
.book-hero h1 { font-size: var(--h1); }
.agenda-steps { list-style: none; margin: 0; padding: 22px 24px 10px; position: relative; z-index: 1; display: grid; gap: 0; }
.agenda-steps li { display: grid; grid-template-columns: 52px 1fr; gap: 14px; padding: 13px 0; position: relative; }
.agenda-steps li + li { border-top: 1px solid rgba(255,255,255,0.07); }
.agenda-steps li::before { content: ""; position: absolute; left: 60px; top: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, transparent, var(--panel-line) 20%, var(--panel-line) 80%, transparent); }
.agenda-steps li:first-child::before { top: 50%; } .agenda-steps li:last-child::before { bottom: 50%; }
.agenda-steps li::after { content: ""; position: absolute; left: 57px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--glow); }
.agenda-time { font-family: var(--font-mono); font-size: 12px; color: var(--panel-muted); line-height: 1.8; padding-right: 18px; text-align: right; }
.agenda-steps b { display: block; font-size: 15px; color: var(--panel-ink); line-height: 1.35; padding-left: 14px; }
.agenda-steps p { margin: 3px 0 0; font-size: 13.5px; color: var(--panel-muted); line-height: 1.45; padding-left: 14px; }
.agenda-steps li { opacity: 0; animation: fade-up var(--dur-3) var(--ease) both; }
.agenda-steps li:nth-child(1) { animation-delay: 0.5s; } .agenda-steps li:nth-child(2) { animation-delay: 0.65s; }
.agenda-steps li:nth-child(3) { animation-delay: 0.8s; } .agenda-steps li:nth-child(4) { animation-delay: 0.95s; }
.book-copy { max-width: 760px; }
.book-meta { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; color: var(--ink-2); font-size: 15px; }
.book-meta li { display: flex; align-items: center; gap: 10px; }
.book-meta svg { width: 18px; height: 18px; color: var(--accent-2); flex: none; }
.process.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.book-meta.inline { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; }
.book-hero .book-embed { margin-top: 26px; min-height: 0; }
.book-hero .book-embed[hidden] { display: none; }
.eyebrow-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; border-radius: 999px; }
.btn-sm svg { width: 16px; height: 16px; }
.book-hero .book-embed iframe { min-height: 700px; }
.book-embed { border-radius: var(--r-lg); overflow: hidden; min-height: 560px; display: grid; }
.book-embed iframe { width: 100%; height: 100%; min-height: 700px; border: 0; display: block; }
.book-facade { appearance: none; border: 0; background: transparent; color: var(--ink); cursor: pointer; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 40px; min-height: 560px; width: 100%; transition: background var(--dur-2) ease; }
.book-facade:hover { background: var(--accent-soft); }
.book-facade svg { width: 44px; height: 44px; color: var(--accent-2); margin-bottom: 8px; }
.book-facade-title { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.book-facade-sub { font-size: 14px; color: var(--muted); }
.book-facade-btn { margin-top: 18px; pointer-events: none; }
.book-facade:hover .book-facade-btn { transform: translateY(-2px); }
.book-facade:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.book-note { margin-top: 14px; font-size: 14px; color: var(--muted); line-height: 1.55; }
.book-note b { color: var(--ink-2); }
.book-note a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 960px) { .process.three { grid-template-columns: 1fr; } .book-embed, .book-embed iframe { min-height: 620px; } }

/* ---------- Canada ---------- */
.maple { display: inline-grid; place-items: center; width: 18px; height: 18px; color: var(--maple); margin-right: 8px; vertical-align: -3px; }
.maple .leaf { width: 16px; height: 16px; }
.kicker .maple { margin-right: 6px; }
.pledge { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 32px; align-items: center; padding: 36px; border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--accent-soft), transparent 55%), var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.pledge::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft-2), transparent 70%); pointer-events: none; }
.pledge h3 { font-size: var(--h3); letter-spacing: -0.03em; margin-top: 12px; }
.pledge p { margin-top: 14px; color: var(--muted); font-size: 16px; line-height: 1.55; max-width: 60ch; }
.pledge-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; position: relative; }
.pledge-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.45; color: var(--ink); }
.pledge-list svg { width: 18px; height: 18px; color: var(--aurora); flex: none; margin-top: 3px; }
.footer-ca { color: var(--ink-2); font-weight: 600; margin-top: 18px; }
@media (max-width: 960px) {
  .pledge { grid-template-columns: 1fr; }
}

/* ---------- Language and region control ---------- */
.locale { position: relative; }
.nav-actions .locale-btn { width: auto; height: 40px; padding: 0 12px 0 10px; gap: 8px; display: inline-flex; align-items: center; border-radius: 999px; white-space: nowrap; }
.locale-btn svg { width: 20px; height: 20px; flex: none; }
.locale-btn .globe { filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25)); }
.locale-btn:hover .globe { transform: rotate(-12deg); transition: transform var(--dur-2) var(--ease); }
.locale-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-2); min-width: 2ch; text-align: center; }
.locale-panel { position: absolute; right: 0; top: calc(100% + 10px); width: 260px; padding: 14px; border-radius: var(--r); display: none; gap: 12px; z-index: 80; box-shadow: var(--shadow); }
.locale.open .locale-panel { display: grid; }
.locale-panel label { display: grid; gap: 6px; font-size: 12.5px; color: var(--muted); }
.locale-panel select { width: 100%; font: inherit; font-size: 14px; color: var(--ink); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 10px; }
.field-note { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
@media (max-width: 960px) { .locale-label { display: none; } .nav-actions .locale-btn { padding: 0; width: 40px; justify-content: center; } .locale-panel { right: auto; left: 0; } }

.why h2 { font-size: var(--h2); margin-top: 16px; }
.why > div > p.lead { color: var(--muted); margin-top: 18px; font-size: 17.5px; max-width: 56ch; }
