/* ==========================================================================
   Sorsi OS marketing site
   Brand tokens come from the Seed Deck (Nov 2026). Effects follow the
   "Features & Effects" design reference, expressed in Sorsi navy + orange.
   Progressive enhancement: everything is visible without JavaScript; the
   `.js` class (set in <head>) switches on entrance animations.
   ========================================================================== */

:root {
  --navy: #082840;
  --navy-2: #0d3656;
  --navy-3: #12466f;
  --slate: #4a5c6f;
  --blue: #176a9a;
  --sky: #6fb9e4;
  --orange: #ff741a;
  --orange-soft: #ffe6d4;
  --bg: #f5f9fb;
  --bg-alt: #edf2f7;
  --white: #ffffff;
  --line: #d5e1ec;
  --line-strong: #c8d8e6;

  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius: 16px;
  --max: 1120px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow-sm: 0 1px 2px rgba(8, 40, 64, 0.06), 0 4px 12px rgba(8, 40, 64, 0.05);
  --shadow-md: 0 10px 30px rgba(8, 40, 64, 0.12);
  --shadow-lg: 0 24px 60px rgba(8, 40, 64, 0.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

img, picture, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p { text-wrap: pretty; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.accent { color: var(--orange); }
.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;
}

/* ---------- Accessibility ---------- */
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible { outline-color: var(--sky); }
.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 12px 18px; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* Smooth page-to-page transitions (page "curtain") where supported */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.25s ease both fade-out; }
::view-transition-new(root) { animation: 0.4s ease 0.05s both fade-in; }
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }

/* ---------- Header: frosted glass with a faint aurora ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(245, 249, 251, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(420px 90px at 12% -30%, rgba(255, 116, 26, 0.16), transparent 70%),
    radial-gradient(520px 100px at 88% -40%, rgba(111, 185, 228, 0.28), transparent 70%);
  animation: aurora-shift 14s ease-in-out infinite alternate;
}
@keyframes aurora-shift { to { background-position: 40px 0, -40px 0; opacity: 0.8; } }

.nav { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { height: 34px; width: auto; }
.nav ul { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--slate); font-size: 0.95rem; font-weight: 500;
}
.nav a:hover { color: var(--navy); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--navy); font-weight: 700; box-shadow: inset 0 -3px 0 var(--orange); }
.nav a.nav-cta {
  background: var(--orange); color: var(--navy); font-weight: 700; border-radius: 999px; padding: 0 20px; margin-left: 8px;
  box-shadow: 0 6px 16px rgba(255, 116, 26, 0.35);
}
.nav a.nav-cta:hover { filter: brightness(1.06); box-shadow: 0 8px 22px rgba(255, 116, 26, 0.45); }
.lang-item { margin-left: 4px; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em;
}
.lang-switch a {
  color: var(--slate); text-decoration: none; min-height: 36px;
  display: inline-flex; align-items: center; padding: 0 2px;
  box-shadow: none !important;
}
.lang-switch a[aria-current="true"] { color: var(--navy); }
.lang-switch span { color: var(--line); font-weight: 500; }
.nav-toggle {
  display: none; width: 48px; height: 48px; border: 0; background: transparent; border-radius: 12px; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; content: ""; position: relative;
  transition: transform 0.25s var(--ease), background 0.2s;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* Breadcrumbs */
.breadcrumbs { padding: 20px 0 0; font-size: 0.88rem; color: var(--slate); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "\203A"; margin-right: 6px; color: var(--line-strong); }
.breadcrumbs a { color: var(--slate); }
.breadcrumbs a:hover { color: var(--navy); }
.breadcrumbs [aria-current] { color: var(--navy); font-weight: 600; }

/* ---------- Links: story links and arrow links ---------- */
.story-link {
  background: linear-gradient(var(--orange), var(--orange)) no-repeat 0 100% / 0 2px;
  transition: background-size 0.35s var(--ease); padding-bottom: 2px;
}
.story-link:hover { background-size: 100% 2px; text-decoration: none; }
.arrow-link { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.arrow-link::after { content: "\2192"; transition: transform 0.25s var(--ease); }
.arrow-link:hover { text-decoration: none; }
.arrow-link:hover::after { transform: translateX(5px); }
.prose a:not(.btn), .answer-capsule a, .faq-item a, .glossary a {
  text-decoration: underline; text-decoration-color: rgba(23, 106, 154, 0.35); text-underline-offset: 3px;
}
.prose a:not(.btn):hover { text-decoration-color: var(--orange); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 26px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1.2;
  border: 2px solid var(--navy); color: var(--navy); background: transparent;
  background-image: linear-gradient(var(--navy), var(--navy)); background-repeat: no-repeat; background-position: left; background-size: 0% 100%;
  cursor: pointer; text-decoration: none;
  transition: background-size 0.4s var(--ease), color 0.25s, transform 0.15s, box-shadow 0.25s;
}
.btn:hover { text-decoration: none; background-size: 100% 100%; color: var(--white); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  background-color: var(--orange); border-color: var(--orange); color: var(--navy);
  background-image: linear-gradient(#ffa05c, #ffa05c);
  box-shadow: 0 8px 20px rgba(255, 116, 26, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover { color: var(--navy); box-shadow: 0 12px 28px rgba(255, 116, 26, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.on-dark .btn { border-color: rgba(255, 255, 255, 0.65); color: var(--white); background-image: linear-gradient(rgba(255,255,255,0.14), rgba(255,255,255,0.14)); }
.on-dark .btn:hover { color: var(--white); }
.on-dark .btn-primary { border-color: var(--orange); color: var(--navy); background-image: linear-gradient(#ffa05c, #ffa05c); }
.on-dark .btn-primary:hover { color: var(--navy); }

/* Shimmer CTA: a soft sheen passes over the button every few seconds */
.btn.shimmer::after {
  content: ""; position: absolute; z-index: -1; top: 0; left: -60%; width: 38%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-20deg); animation: shimmer 5s ease-in-out infinite;
}
@keyframes shimmer { 0%, 60% { left: -60%; } 100% { left: 130%; } }

/* CTA pulse: a glowing ring around key conversion points */
.cta-pulse { animation: cta-ring 2.6s ease-out infinite; }
@keyframes cta-ring {
  0% { box-shadow: 0 8px 20px rgba(255, 116, 26, 0.35), 0 0 0 0 rgba(255, 116, 26, 0.5); }
  70%, 100% { box-shadow: 0 8px 20px rgba(255, 116, 26, 0.35), 0 0 0 16px rgba(255, 116, 26, 0); }
}

/* Magnetic buttons lean toward the cursor (positions set by JS) */
[data-magnetic] { transition: transform 0.25s var(--ease), background-size 0.4s var(--ease), color 0.25s, box-shadow 0.25s; will-change: transform; }

/* "Free" badge */
.free-badge {
  display: inline-block; background: var(--navy); color: var(--white); border-radius: 999px;
  font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 9px; margin-left: 2px;
}

/* Loading state */
.btn.is-loading { pointer-events: none; opacity: 0.85; }
.btn.is-loading::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Typographic details ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 700; color: var(--blue); margin: 0 0 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--orange); flex: none; }
.eyebrow[data-chapter]::after {
  content: attr(data-chapter); margin-left: auto; font-family: var(--font-display); font-size: 0.8rem;
  color: var(--line-strong); letter-spacing: 0.08em;
}
.center .eyebrow, .waitlist .eyebrow { justify-content: center; }
.on-dark .eyebrow { color: var(--sky); }

.uline {
  background: linear-gradient(var(--orange), var(--orange)) no-repeat 0 94% / 100% 0.12em;
  padding-bottom: 0.06em;
}
.dropcap::first-letter {
  float: left; font-family: var(--font-display); font-weight: 700; font-size: 4.2em; line-height: 0.82;
  padding: 0.06em 0.12em 0 0; color: var(--navy);
}

/* Decorative dividers */
.divider { border: 0; height: 1px; margin: 0; background: var(--line); }
.divider.fade { background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
.divider.gradient { height: 3px; background: linear-gradient(90deg, transparent, var(--sky), var(--orange), transparent); border-radius: 3px; opacity: 0.8; }
.divider.dinkus { height: auto; background: none; text-align: center; letter-spacing: 1em; color: var(--orange); font-size: 0.8rem; line-height: 1; }
.divider.dinkus::before { content: "\25C6\25C6\25C6"; padding-left: 1em; }

/* Corner marks: small L-shaped blueprint marks (pure CSS, no pseudo elements needed) */
.marks {
  background-image:
    linear-gradient(var(--orange), var(--orange)), linear-gradient(var(--orange), var(--orange)),
    linear-gradient(var(--orange), var(--orange)), linear-gradient(var(--orange), var(--orange)),
    linear-gradient(var(--orange), var(--orange)), linear-gradient(var(--orange), var(--orange)),
    linear-gradient(var(--orange), var(--orange)), linear-gradient(var(--orange), var(--orange));
  background-repeat: no-repeat;
  background-size: 16px 2px, 2px 16px, 16px 2px, 2px 16px, 16px 2px, 2px 16px, 16px 2px, 2px 16px;
  background-position: 10px 10px, 10px 10px, calc(100% - 10px) 10px, calc(100% - 10px) 10px,
    10px calc(100% - 10px), 10px calc(100% - 10px), calc(100% - 10px) calc(100% - 10px), calc(100% - 10px) calc(100% - 10px);
}

/* Film grain: a very faint texture so dark areas don't look flat */
.grain { position: relative; }
.grain > .grain-layer, .grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay; z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Dark sections ---------- */
.on-dark { background: var(--navy); color: #dbe7f1; position: relative; }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--white); }
.on-dark .lead, .on-dark p { color: #c8d8e6; }
.on-dark a:not(.btn) { color: var(--sky); }
.edge::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: var(--orange); z-index: 3; }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 96px; overflow: hidden; background: radial-gradient(1000px 520px at 78% 40%, #0d3656 0%, var(--navy) 62%); }
.hero-fx { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.aurora { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; will-change: transform; }
.aurora.a1 { width: 520px; height: 520px; right: -80px; top: -140px; background: rgba(111, 185, 228, 0.45); animation: drift-a 16s ease-in-out infinite alternate; }
.aurora.a2 { width: 420px; height: 420px; left: 18%; bottom: -200px; background: rgba(255, 116, 26, 0.32); animation: drift-b 19s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(-80px, 70px) scale(1.15); } }
@keyframes drift-b { to { transform: translate(90px, -50px) scale(1.2); } }
.rings { position: absolute; right: 8%; top: 50%; width: 760px; height: 760px; margin-top: -380px; }
.rings i {
  position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(111, 185, 228, 0.22);
  animation: rotate-slow 70s linear infinite;
}
.rings i:nth-child(2) { inset: 90px; border-style: dashed; border-color: rgba(255, 116, 26, 0.28); animation-duration: 95s; animation-direction: reverse; }
.rings i:nth-child(3) { inset: 190px; animation-duration: 120s; }
.rings i::after { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 14px var(--orange); }
@keyframes rotate-slow { to { transform: rotate(360deg); } }
.stars { position: absolute; inset: 0; }
.stars i {
  position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: 0.2;
  animation: twinkle 3.2s ease-in-out infinite;
}
@keyframes twinkle { 50% { opacity: 0.95; transform: scale(1.6); } }

.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); margin: 0 0 20px; }
.hero p.hero-sub { font-size: 1.2rem; max-width: 540px; margin: 0 0 28px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin: 18px 0 0; font-size: 0.9rem; color: #9eb3c6; display: flex; align-items: center; gap: 8px; }

/* Mask reveal: text paints immediately, a soft mask sweeps across it on load */
.mask-reveal {
  -webkit-mask-image: linear-gradient(100deg, #000 38%, transparent 62%);
  mask-image: linear-gradient(100deg, #000 38%, transparent 62%);
  -webkit-mask-size: 300% 100%; mask-size: 300% 100%;
  -webkit-mask-position: 100% 0; mask-position: 100% 0;
  animation: mask-sweep 1.3s 0.15s var(--ease) forwards;
}
@keyframes mask-sweep { to { -webkit-mask-position: 0 0; mask-position: 0 0; } }

/* Ken Burns: slow documentary-style zoom and drift on hero artwork */
.hero-art { position: relative; will-change: transform; }
.hero-art picture, .hero-art img { border-radius: var(--radius); }
.kenburns img { animation: kenburns 22s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes kenburns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.045) translate(-6px, -8px); } }

.scroll-cue {
  position: absolute; z-index: 2; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: 44px; height: 44px; display: grid; place-items: center;
}
.scroll-cue span { display: block; width: 2px; height: 30px; background: rgba(255, 255, 255, 0.25); border-radius: 2px; position: relative; overflow: hidden; }
.scroll-cue span::after { content: ""; position: absolute; left: 0; top: 0; width: 2px; height: 10px; background: var(--orange); border-radius: 2px; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(-12px); } 100% { transform: translateY(32px); } }

/* Status pulse */
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: #34d399; display: inline-block; animation: dot-pulse 2s ease-out infinite; flex: none; }
@keyframes dot-pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } }

/* ---------- Sections ---------- */
.section { padding: 80px 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 0 0 12px; }
.section .lead { color: var(--slate); font-size: 1.1rem; margin: 0 0 36px; max-width: 680px; }
.on-dark .lead { color: #c8d8e6; }
.center { text-align: center; }
.center .lead, .lead.center { margin-left: auto; margin-right: auto; }

.page-title { padding: 36px 0 28px; }
.page-title h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); margin: 0 0 14px; max-width: 840px; }
.page-title .lead { color: var(--slate); font-size: 1.15rem; margin: 0; max-width: 700px; }
.page-title .meta { color: var(--slate); font-size: 0.88rem; margin-top: 14px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }

/* Answer capsule: a concise, extractable direct answer (also read by AI search) */
.answer-capsule {
  margin: 22px 0 0; max-width: 760px; padding: 18px 22px; background: var(--white);
  border: 1px solid var(--line); border-left: 5px solid var(--orange); border-radius: 12px; box-shadow: var(--shadow-sm);
  font-size: 1.05rem; color: var(--navy);
}
.answer-capsule strong:first-child { display: block; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin-bottom: 4px; }
.on-dark .answer-capsule { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); border-left-color: var(--orange); color: #e8f0f7; box-shadow: none; }
.on-dark .answer-capsule strong:first-child { color: var(--sky); }
.on-dark .answer-capsule p { margin: 0; color: inherit; }
.answer-capsule p { margin: 0; }

/* Media */
.media { margin: 0; }
.media img { width: 100%; border-radius: var(--radius); }
.media.framed img { border: 1px solid var(--line-strong); box-shadow: var(--shadow-md); }
.media figcaption { margin-top: 10px; font-size: 0.82rem; color: var(--slate); }
.on-dark .media figcaption { color: #9eb3c6; }
.media.wide { margin-top: 12px; }
[data-lightbox] { cursor: zoom-in; }

/* Image reveal: photos unveil with a wipe as they scroll into view */
.js .img-reveal { clip-path: inset(0 100% 0 0 round 16px); }
.js .img-reveal.in { clip-path: inset(0 0 0 0 round 16px); transition: clip-path 1.1s var(--ease); }

/* ---------- Cards, tiles, glass ---------- */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  position: relative; background-color: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s;
}
.card h3 { margin: 0 0 8px; font-size: 1.12rem; }
.card p { margin: 0; color: var(--slate); }
.on-dark .card { background-color: var(--navy-2); border-color: rgba(255, 255, 255, 0.1); box-shadow: none; }
.on-dark .card.glass { background-color: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 18px 40px rgba(0, 0, 0, 0.25); }
.on-dark .card h3 { color: var(--white); }
a.card { display: block; color: var(--navy); }
a.card:hover { text-decoration: none; }
.card.tile { display: flex; }
a.card.tile { display: flex; }
.on-dark .card p { color: #c8d8e6; }

/* Card lift: rises and deepens its shadow on hover */
.lift:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }

/* Bubble tiles: rounded, glass-like, with an icon badge */
.tile { border-radius: 22px; display: flex; flex-direction: column; gap: 4px; }
.tile .ico {
  width: 44px; height: 44px; border-radius: 14px; margin-bottom: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: var(--orange);
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; box-shadow: 0 6px 14px rgba(8, 40, 64, 0.25);
}

/* Card spotlight: soft light follows the pointer (position set by JS) */
.spot { overflow: hidden; }
.spot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s; border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 116, 26, 0.14), transparent 62%);
}
.spot:hover::after { opacity: 1; }
.on-dark .spot::after { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(111, 185, 228, 0.2), transparent 62%); }

/* Tilt cards (3D tilt toward pointer, driven by JS) */
[data-tilt] { transform-style: preserve-3d; will-change: transform; transition: transform 0.2s ease-out, box-shadow 0.35s; }

/* Specular sweep: a diagonal streak of light on hover (cards without numbered steps) */
.sweep::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -80%; width: 50%; pointer-events: none; z-index: 1;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.55), transparent); transform: skewX(-18deg);
}
.sweep:hover::before { left: 140%; transition: left 0.9s var(--ease); }

/* Specular glass panels */
.glass {
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 18px 40px rgba(0, 0, 0, 0.25);
}
.glass-light {
  background: rgba(255, 255, 255, 0.7); border: 1px solid rgba(255, 255, 255, 0.9); border-radius: var(--radius);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 #fff, var(--shadow-md);
}

/* Luxe / featured cards */
.luxe { border: 2px solid transparent; background: linear-gradient(var(--white), var(--white)) padding-box, linear-gradient(135deg, var(--orange), var(--sky)) border-box; box-shadow: var(--shadow-md); }
.on-dark .luxe { background: linear-gradient(var(--navy-2), var(--navy-2)) padding-box, linear-gradient(135deg, var(--orange), var(--sky)) border-box; }

/* Tag pills and count pills */
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
  background: var(--bg-alt); color: var(--navy); border: 1px solid var(--line);
}
.pill.count { background: var(--navy); color: var(--white); border-color: var(--navy); min-width: 28px; justify-content: center; }
.pill.orange { background: var(--orange-soft); color: #8a3500; border-color: #ffc9a3; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }

/* Orange-bar callouts */
.bars { display: grid; gap: 22px; margin-top: 8px; }
.bar { border-left: 5px solid var(--orange); padding-left: 16px; }
.bar h3 { margin: 0 0 2px; font-size: 1.1rem; }
.bar p { margin: 0; color: var(--slate); }

/* Numbered step cards */
.steps { counter-reset: step; }
.steps .card { padding-top: 60px; }
.steps .card::before {
  counter-increment: step; content: "0" counter(step); position: absolute; top: 20px; left: 26px;
  width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: var(--orange);
  font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; display: grid; place-items: center;
}

.checklist { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.checklist li { position: relative; padding-left: 26px; color: var(--slate); }
.checklist li::before { content: "\2713"; position: absolute; left: 0; color: var(--orange); font-weight: 800; }
.on-dark .checklist li { color: #c8d8e6; }

/* Stat cards and animated stat bars */
.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat {
  background: var(--navy); border-radius: 14px; padding: 22px 22px 20px; color: #c8d8e6; font-size: 0.95rem; position: relative;
}
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.7rem); line-height: 1; color: var(--orange); margin-bottom: 8px; }
.stat.light { background: var(--white); border: 1px solid var(--line); color: var(--slate); box-shadow: var(--shadow-sm); }
.stat.light strong { color: var(--navy); }
.statbar { display: grid; gap: 14px; max-width: 640px; }
.statbar .row { display: grid; gap: 6px; }
.statbar .label { display: flex; justify-content: space-between; font-size: 0.92rem; font-weight: 600; }
.statbar .track { height: 12px; border-radius: 99px; background: var(--bg-alt); overflow: hidden; border: 1px solid var(--line); }
.statbar .fill { display: block; height: 100%; width: var(--w, 50%); border-radius: 99px; background: linear-gradient(90deg, var(--blue), var(--sky)); }
.statbar .fill.warn { background: linear-gradient(90deg, #ff9a52, var(--orange)); }
.js .statbar .fill { width: 0; }
.js .statbar.in .fill { width: var(--w, 50%); transition: width 1.4s var(--ease); }

/* Testimonial and team cards */
.person { text-align: center; padding: 28px 22px; }
.person .avatar {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--white);
  background: radial-gradient(circle at 30% 25%, var(--navy-3), var(--navy)); border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--orange), var(--shadow-md);
  overflow: hidden;
}
.person .avatar.has-photo { padding: 0; background: var(--bg-alt); }
.person .avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { margin-bottom: 2px; }
.person .role { color: var(--blue); font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; }
.person-link { margin: 10px 0 0; font-size: 0.9rem; font-weight: 600; }
.quote {
  border-left: 5px solid var(--orange); padding: 4px 0 4px 22px; margin: 0; font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem); line-height: 1.35; max-width: 780px;
}
.quote cite { display: block; margin-top: 10px; font-family: var(--font-body); font-size: 0.92rem; color: var(--blue); font-style: normal; }
.on-dark .quote { color: var(--white); }
.on-dark .quote cite { color: var(--sky); }

/* Trust rail (credential-style chips) */
.trust-rail { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; padding: 0; margin: 0; list-style: none; }
.trust-rail li {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; font-size: 0.9rem; font-weight: 600;
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--navy);
}
.trust-rail li::before { content: "\2713"; color: var(--orange); font-weight: 800; }
.trust-band { padding: 26px 0; background: var(--white); border-bottom: 1px solid var(--line); }

/* Logo marquee (integrations) */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 48s linear infinite; padding: 6px 0; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .chip {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 14px; background: var(--white);
  border: 1px solid var(--line); font-family: var(--font-display); font-weight: 600; color: var(--navy); white-space: nowrap; box-shadow: var(--shadow-sm);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* Timeline with a spine that draws itself */
.timeline { list-style: none; margin: 0; padding: 0 0 0 64px; position: relative; display: grid; gap: 22px; counter-reset: tl; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 23px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; }
.timeline::before { background: var(--line); }
.timeline::after { background: linear-gradient(var(--orange), var(--sky)); transform-origin: top; }
.js .timeline::after { transform: scaleY(0); }
.js .timeline.in::after { transform: scaleY(1); transition: transform 1.8s var(--ease); }
.timeline li { position: relative; counter-increment: tl; min-height: 56px; padding-top: 2px; }
.timeline li::before {
  content: counter(tl); position: absolute; left: -64px; top: 0; width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: var(--orange); border: 4px solid var(--bg); font-family: var(--font-display); font-weight: 700;
  display: grid; place-items: center; z-index: 1; box-shadow: 0 0 0 2px var(--navy);
}
.timeline h3 { margin: 0 0 4px; font-size: 1.1rem; }
.timeline p { margin: 0; color: var(--slate); }
.section-alt .timeline li::before { border-color: var(--bg-alt); }

/* ---------- FAQ accordions ---------- */
.faq-list { display: grid; gap: 12px; max-width: 820px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); transition: border-color 0.25s, box-shadow 0.25s; }
.faq-item[open] { border-color: var(--orange); box-shadow: var(--shadow-md); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 14px 20px; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 10px; height: 10px; border-right: 2.5px solid var(--orange); border-bottom: 2.5px solid var(--orange);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq-item .answer { padding: 0 20px 18px; color: var(--slate); animation: faq-open 0.35s var(--ease); }
.faq-item .answer p { margin: 0 0 10px; }
.faq-item .answer p:last-child { margin: 0; }
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Comparison grid ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--white); }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 680px; font-size: 0.98rem; }
.compare caption { text-align: left; padding: 16px 20px; font-family: var(--font-display); font-weight: 600; color: var(--navy); }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--navy); color: var(--white); font-family: var(--font-display); border-top: 0; font-size: 0.95rem; }
.compare thead th.rec { background: linear-gradient(180deg, var(--orange), #ff9a52); color: var(--navy); }
.compare tbody th { font-weight: 600; color: var(--navy); background: var(--bg); width: 28%; }
.compare td.rec { background: #fff6ef; font-weight: 600; color: var(--navy); border-left: 2px solid var(--orange); border-right: 2px solid var(--orange); }
.compare tbody tr:last-child td.rec { border-bottom: 2px solid var(--orange); }
.compare td { color: var(--slate); }

/* ---------- Glossary ---------- */
.glossary-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }
.glossary-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--navy); font-weight: 600; font-size: 0.9rem; }
.glossary-nav a:hover { background: var(--navy); color: var(--white); text-decoration: none; }
.glossary dl { margin: 0; display: grid; gap: 18px; max-width: 820px; }
.glossary .term { background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--orange); border-radius: 12px; padding: 18px 22px; box-shadow: var(--shadow-sm); scroll-margin-top: 96px; }
.glossary dt { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--navy); margin: 0 0 6px; }
.glossary dd { margin: 0; color: var(--slate); }

/* ---------- Gallery and empty states ---------- */
.gallery { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gallery figure { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery picture { overflow: hidden; display: block; background: var(--white); border-bottom: 1px solid var(--line); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--white); padding: 8px; transition: transform 0.6s var(--ease); }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption { padding: 12px 16px; font-size: 0.9rem; font-weight: 600; color: var(--navy); }
.empty-state { text-align: center; max-width: 560px; margin: 24px auto; padding: 48px 24px; }
.empty-state .lead { margin: 0 auto 24px; }
.empty-state .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.empty-mark { font-family: var(--font-display); font-weight: 700; font-size: clamp(4rem, 14vw, 7rem); line-height: 1; letter-spacing: -0.04em; background: linear-gradient(135deg, var(--navy), var(--sky) 60%, var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; }
.letter-group { margin-bottom: 36px; scroll-margin-top: 96px; }
.letter-group h2.letter { font-size: 1.6rem; color: var(--orange); margin: 0 0 12px; font-family: var(--font-display); }

/* ---------- Article layout ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 64px; align-items: start; }
.article { max-width: 720px; }
.article h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin: 52px 0 14px; scroll-margin-top: 96px; }
.article h3 { font-size: 1.2rem; margin: 32px 0 8px; }
.article p, .article li { font-size: 1.08rem; color: #2c4054; line-height: 1.75; }
.article p { margin: 0 0 18px; }
.article ul, .article ol { padding-left: 22px; margin: 0 0 18px; }
.article blockquote.pull {
  margin: 32px 0; padding: 6px 0 6px 24px; border-left: 5px solid var(--orange); font-family: var(--font-display);
  font-size: 1.45rem; line-height: 1.35; color: var(--navy);
}
.article .callout { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 28px 0; box-shadow: var(--shadow-sm); }
.article .callout h3 { margin-top: 0; }

/* Citable data blocks: specific, attributable numbers for AEO / AI citation */
.citable {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--orange);
  border-radius: var(--radius);
  padding: 28px 28px 22px;
  margin: 36px 0 0;
  box-shadow: var(--shadow-sm);
}
.article .callout.citable { margin-top: 28px; }
.citable > .eyebrow { margin-bottom: 8px; }
.citable > h2, .citable > h3 { margin: 0 0 18px; font-size: 1.35rem; }
.citable-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.citable-grid li {
  display: grid; gap: 4px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.citable-grid strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.1;
  color: var(--orange);
}
.citable-grid span { color: var(--slate); font-size: 0.95rem; }
.citable .fineprint { margin: 16px 0 0; }
.takeaways { background: var(--navy); color: #dbe7f1; border-radius: var(--radius); padding: 24px 26px; margin: 28px 0; }
.takeaways h2, .takeaways h3 { color: var(--white); margin: 0 0 10px; font-size: 1.15rem; }
.takeaways ul { margin: 0; }
.takeaways li { color: #dbe7f1; font-size: 1rem; line-height: 1.6; margin-bottom: 6px; }
.toc { position: sticky; top: 96px; font-size: 0.92rem; }
.toc h2 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--blue); margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--slate); }
.toc a:hover { color: var(--navy); text-decoration: none; }
.toc a.active { color: var(--navy); font-weight: 700; border-left-color: var(--orange); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; max-width: 560px; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--navy); background: var(--white); border: 1.5px solid var(--line-strong);
  border-radius: 12px; padding: 24px 14px 8px; min-height: 56px; appearance: none; -webkit-appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%); background-position: calc(100% - 22px) 26px, calc(100% - 16px) 26px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field label {
  position: absolute; left: 15px; top: 17px; font-size: 1rem; color: var(--slate); pointer-events: none;
  transform-origin: left top; transition: transform 0.18s var(--ease), color 0.18s;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select:focus + label, .field.has-value label, .field.is-select label {
  transform: translateY(-11px) scale(0.78); color: var(--blue); font-weight: 600;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 116, 26, 0.18); }
.field [aria-invalid="true"] { border-color: #b3361b; }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(179, 54, 27, 0.15); }
.field-error { margin: 6px 2px 0; color: #b3361b; font-size: 0.88rem; font-weight: 600; min-height: 0; }
.form .optional { font-weight: 400; opacity: 0.75; }

/* Invisible spam protection field */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Waitlist */
.waitlist { text-align: center; padding: 8px 0; position: relative; z-index: 2; }
.waitlist h2 { margin: 0 0 8px; }
.waitlist .lead { margin: 0 auto 28px; }
.waitlist-form {
  display: grid; gap: 12px; max-width: 640px; margin: 0 auto; text-align: left;
}
.waitlist-form .wl-extras {
  display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr));
}
.waitlist-form .wl-field { position: relative; }
.waitlist-form label:not(.hp):not(.visually-hidden) {
  display: block; margin: 0 0 6px; font-size: 0.82rem; font-weight: 600; color: #c8d8e6;
}
.waitlist-form .optional { font-weight: 400; opacity: 0.75; }
.waitlist-form input[type="email"],
.waitlist-form input[type="text"],
.waitlist-form input[type="tel"],
.waitlist-form select {
  width: 100%; min-height: 52px; font: inherit; color: var(--navy); background: var(--white); border: 2px solid transparent;
  border-radius: 16px; padding: 12px 18px;
}
.waitlist-form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--slate) 50%),
    linear-gradient(135deg, var(--slate) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 36px;
}
.waitlist-form input[type="email"]:focus,
.waitlist-form input[type="text"]:focus,
.waitlist-form input[type="tel"]:focus,
.waitlist-form select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 116, 26, 0.3); }
.waitlist-form input[aria-invalid="true"],
.waitlist-form select[aria-invalid="true"] { border-color: #ff9a8a; }
.waitlist-form .wl-consents {
  grid-column: 1 / -1; border: 0; margin: 4px 0 0; padding: 0; display: grid; gap: 12px;
}
.waitlist-form .wl-check {
  display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start;
  font-size: 0.86rem; line-height: 1.45; color: #c8d8e6; font-weight: 500; cursor: pointer;
}
.waitlist-form .wl-check input {
  width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--orange);
}
.waitlist-form .wl-check .req { color: var(--orange); font-weight: 700; }
.waitlist-form .wl-check[aria-invalid="true"],
.waitlist-form .wl-check:has(input[aria-invalid="true"]) { color: #ffb08a; }
.waitlist-form .btn { justify-self: center; margin-top: 4px; }
.waitlist-trust { margin: 18px 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; font-size: 0.88rem; color: #9eb3c6; list-style: none; padding: 0; }
.waitlist-trust li::before { content: "\2713"; color: var(--orange); font-weight: 800; margin-right: 6px; }
.waitlist .field-error { color: #ffb08a; text-align: left; padding-left: 4px; }
@media (max-width: 640px) {
  .waitlist-form .wl-extras { grid-template-columns: 1fr; }
}
.form-status { min-height: 1.5em; margin: 16px 0 0; font-size: 0.95rem; color: #c8d8e6; }
.form-status.success { color: #7fe0b0; font-weight: 600; }
.form-status.error { color: #ffb08a; font-weight: 600; }
.section:not(.on-dark) .form-status { color: var(--slate); }
.section:not(.on-dark) .form-status.success { color: #0f7a4a; }
.section:not(.on-dark) .form-status.error { color: #b3361b; }

/* ---------- Toasts, lightbox, sticky CTA ---------- */
.toast-region { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 90; display: grid; gap: 10px; max-width: min(380px, calc(100vw - 32px)); }
.toast {
  background: var(--navy); color: var(--white); border-left: 5px solid var(--orange); border-radius: 12px; padding: 14px 18px;
  box-shadow: var(--shadow-lg); font-size: 0.95rem; animation: toast-in 0.4s var(--ease);
}
.toast.error { border-left-color: #ff7a5c; }
.toast.leaving { animation: toast-out 0.3s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateX(24px); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(24px); } }

dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 94vh; overflow: visible; margin: auto; }
dialog.lightbox::backdrop { background: rgba(8, 40, 64, 0.92); backdrop-filter: blur(4px); }
dialog.lightbox img { max-height: 84vh; width: auto; max-width: 100%; margin: 0 auto; border-radius: 12px; box-shadow: var(--shadow-lg); }
dialog.lightbox figcaption { color: #dbe7f1; text-align: center; margin-top: 12px; font-size: 0.92rem; }
dialog.lightbox .lb-close {
  position: absolute; top: -52px; right: 0; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.14); color: var(--white); font-size: 1.5rem; line-height: 1;
}
dialog.lightbox[open] { animation: lb-in 0.3s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: scale(0.97); } }

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(8, 40, 64, 0.97); backdrop-filter: blur(10px);
  box-shadow: 0 -10px 30px rgba(8, 40, 64, 0.3); transform: translateY(110%); transition: transform 0.4s var(--ease); color: var(--white);
}
.sticky-cta.show { transform: none; }
.sticky-cta span { font-size: 0.92rem; font-weight: 600; line-height: 1.3; }
.sticky-cta .btn { min-height: 46px; padding: 10px 20px; flex: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid rgba(255, 255, 255, 0.08); background: var(--navy); color: #9eb3c6; padding: 56px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 0.92rem; position: relative; }
.site-footer a { color: #c8d8e6; }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); gap: 28px; }
.footer-grid h2 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--sky); margin: 0 0 14px; font-family: var(--font-body); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer-grid li a { display: inline-flex; min-height: 36px; align-items: center; }
.footer-brand img { height: 34px; width: auto; margin-bottom: 14px; }
.footer-brand p { margin: 0; max-width: 300px; color: #9eb3c6; }
.footer-bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fineprint { color: var(--slate); font-size: 0.85rem; margin-top: 24px; }
.on-dark .fineprint { color: #9eb3c6; }

/* ---------- Pricing ---------- */
.price-card { display: flex; flex-direction: column; }
.price-card .tier { color: var(--blue); font-weight: 700; letter-spacing: 0.1em; font-size: 0.78rem; text-transform: uppercase; margin: 0 0 8px; }
.price-card .price { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; margin: 0; color: var(--navy); line-height: 1.1; }
.price-card .price small { font-family: var(--font-body); font-size: 0.9rem; font-weight: 400; color: var(--slate); }
.price-card .for { margin: 6px 0 0; color: var(--navy); font-weight: 600; }
.price-card .badge { align-self: flex-start; margin-top: 16px; padding: 4px 14px; border-radius: 999px; background: var(--orange-soft); color: #8a3500; font-size: 0.8rem; font-weight: 700; }
.price-card.featured { box-shadow: 0 18px 44px rgba(255, 116, 26, 0.2); }

.prose { max-width: 720px; }
.prose p { color: var(--slate); font-size: 1.08rem; margin: 0 0 18px; }
.prose p.strong { color: var(--navy); font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1.25; }
.prose h2 { margin: 36px 0 12px; font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.prose h3 { margin: 24px 0 8px; font-size: 1.1rem; }
.prose ul { margin: 0 0 18px; padding-left: 1.2em; color: var(--slate); font-size: 1.05rem; }
.prose li { margin: 0 0 8px; }
.form-consent {
  margin: 10px 0 0; font-size: 0.84rem; line-height: 1.45; color: var(--slate); max-width: 36rem;
}
.form-consent a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

.container.narrow { max-width: 640px; }
.stack-form { display: grid; gap: 16px; margin-top: 8px; }
.stack-form[hidden],
#prefs-missing[hidden],
[data-prefs-link][hidden] { display: none !important; }
.stack-form .btn { justify-self: start; }
.prefs-consents {
  border: 0; margin: 0; padding: 0; display: grid; gap: 14px;
}
.prefs-check {
  display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start;
  font-size: 0.95rem; line-height: 1.45; color: var(--navy); font-weight: 500; cursor: pointer;
}
.prefs-check input {
  width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--orange);
}
.prefs-form .fineprint { margin-top: 0; }
.waitlist-form .form-consent {
  grid-column: 1 / -1; text-align: center; margin: 4px auto 0; color: #9eb3c6; max-width: 34rem;
}
.waitlist-form .form-consent a { color: var(--sky); }
.tagline { color: var(--orange); font-weight: 700; }

/* ---------- Scroll-driven entrances (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
[data-drift] { will-change: transform; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { position: static; margin-bottom: 32px; padding: 18px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .rings { right: -200px; opacity: 0.6; }
}
@media (max-width: 860px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse > :first-child { order: 0; }
  .hero { padding: 56px 0 72px; }
  .section { padding: 60px 0; }
  .nav-toggle { display: inline-flex; }
  .nav nav {
    position: absolute; left: 0; right: 0; top: 100%; background: rgba(245, 249, 251, 0.98); border-bottom: 1px solid var(--line);
    padding: 8px 16px 18px; box-shadow: var(--shadow-md); display: none;
  }
  .nav nav.open { display: block; animation: fade-in 0.25s ease; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { padding: 0 8px; width: 100%; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--orange); }
  .nav a.nav-cta { margin: 14px 0 0; justify-content: center; border-bottom: 0; }
  .sticky-cta { display: flex; }
  body.has-sticky { padding-bottom: 76px; }
  .scroll-cue { display: none; }
  .eyebrow[data-chapter]::after { display: none; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .timeline { padding-left: 56px; }
  .timeline li::before { left: -56px; width: 42px; height: 42px; }
  .timeline::before, .timeline::after { left: 19px; }
}

/* ---------- Reduced motion: calm everything down ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal, .js .img-reveal { opacity: 1; transform: none; clip-path: none; }
  .js .statbar .fill { width: var(--w, 50%); }
  .js .timeline::after { transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track [aria-hidden="true"] { display: none; }
  .mask-reveal { -webkit-mask-image: none; mask-image: none; }
  @view-transition { navigation: none; }
}

/* ---------- Print: clean pages without chrome ---------- */
@media print {
  .site-header, .site-footer, .sticky-cta, .toast-region, .hero-fx, .scroll-cue, .waitlist, .btn, .toc, .marquee, .nav-toggle, form { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  .on-dark { background: #fff !important; color: #000 !important; }
  .on-dark h1, .on-dark h2, .on-dark h3, .on-dark p, .on-dark .lead { color: #000 !important; }
  .js .reveal, .js .img-reveal { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .section { padding: 24px 0; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #555; }
  .card, .faq-item, .term { box-shadow: none !important; break-inside: avoid; }
  .faq-item .answer { display: block !important; }
}
