/* ============================================================
   Hybridpod — hybridpod.ai
   Light, futuristic, restrained. One accent. Lots of air.
   ============================================================ */

@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/space-grotesk-var-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-var-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

/* Theme contract: every brand colour flows through these variables.
   /theme.js (and the Hybridpod portal's theme studio) overrides them at
   runtime — never hardcode an accent below this block. */
:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --ink: #0a1020;
  --muted: #5a6478;
  --accent: #2962ff;
  --accent-2: #00c2ff;
  --accent-deep: #1e4fe0;
  --accent-rgb: 41, 98, 255;
  --accent2-rgb: 0, 194, 255;
  --band-bg: #0c1322;
  --hairline: rgba(10, 16, 32, 0.08);
  --shadow: 0 1px 2px rgba(10, 16, 32, 0.04), 0 12px 40px rgba(10, 16, 32, 0.06);
  --shadow-lift: 0 2px 4px rgba(10, 16, 32, 0.05), 0 24px 64px rgba(var(--accent-rgb), 0.12);
  --radius: 20px;
  /* style-pack component tokens (defaults = Aurora glass) */
  --nav-bg: rgba(247, 249, 252, 0.78);
  --marquee-bg: rgba(255, 255, 255, 0.45);
  --footer-bg: rgba(255, 255, 255, 0.5);
  --surface-2: rgba(255, 255, 255, 0.7);
  --chip-bg: rgba(255, 255, 255, 0.72);
  --story-dim: rgba(10, 16, 32, 0.22);
  --glass-top: 0.55;
  --btn-radius: 999px;
  --display-case: none;
  --display-track: -0.02em;
  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(var(--accent-rgb), 0.18); }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: var(--display-track); text-transform: var(--display-case); }
a { color: inherit; text-decoration: none; }
img { display: block; }

/* ---------- aurora background ---------- */
.aurora {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  pointer-events: none;
}
.aurora__blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.5;
  will-change: transform;
  animation: drift 26s ease-in-out infinite alternate;
}
.aurora__blob--a {
  width: 60vw; height: 60vw; left: -18vw; top: -22vw;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.16), transparent 65%);
}
.aurora__blob--b {
  width: 50vw; height: 50vw; right: -16vw; top: 4vw;
  background: radial-gradient(circle, rgba(var(--accent2-rgb), 0.14), transparent 65%);
  animation-delay: -8s;
}
.aurora__blob--c {
  width: 46vw; height: 46vw; left: 24vw; bottom: -26vw;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.07), transparent 65%);
  animation-delay: -16s;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4vw, 3vw, 0) scale(1.12); }
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}
.nav.is-scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 var(--hairline);
}
.nav__inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
}
.nav__brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 19px;
  letter-spacing: -0.01em;
}
.nav__links { display: flex; gap: 30px; }
.nav__links a {
  font-size: 14.5px; font-weight: 500; color: var(--muted);
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 600; font-size: 15.5px;
  padding: 14px 28px; border-radius: var(--btn-radius);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, background 0.25s ease;
  will-change: transform;
  white-space: nowrap;
}
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep) 60%);
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn--primary:hover { box-shadow: 0 12px 36px rgba(var(--accent-rgb), 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn--ghost {
  color: var(--ink);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--hairline), 0 1px 2px rgba(10, 16, 32, 0.04);
}
.btn--ghost:hover { background: var(--surface); box-shadow: inset 0 0 0 1px rgba(10, 16, 32, 0.16), 0 4px 14px rgba(10, 16, 32, 0.08); }
.btn--invert { background: #fff; color: var(--ink); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); }
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--lg { padding: 18px 40px; font-size: 17px; }

/* ---------- hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center;
  gap: 48px; padding: 168px 28px 96px;
  min-height: 92vh;
}
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow--invert { color: var(--accent-2); }
.hero__title {
  font-size: clamp(44px, 5.6vw, 76px);
  font-weight: 700; line-height: 1.04;
  margin-bottom: 26px;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line span { display: inline-block; }
.hero__sub {
  font-size: clamp(17px, 1.4vw, 20px); color: var(--muted);
  max-width: 34em; margin-bottom: 34px;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.hero__note { font-size: 13.5px; color: var(--muted); opacity: 0.85; }

/* ---------- phone mockup ---------- */
.hero__device { position: relative; display: flex; justify-content: center; }
.hero__glow {
  position: absolute; inset: 8% 12%; z-index: -1; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(var(--accent-rgb), 0.18), rgba(var(--accent2-rgb), 0.08) 55%, transparent 75%);
  filter: blur(30px);
}
.phone {
  width: min(330px, 78vw); aspect-ratio: 9 / 19;
  background: linear-gradient(160deg, #fdfeff, #eef2f9);
  border-radius: 44px; position: relative;
  box-shadow:
    inset 0 0 0 1.5px rgba(10, 16, 32, 0.10),
    inset 0 0 0 7px #0c1322,
    0 30px 80px rgba(10, 16, 32, 0.22);
  overflow: hidden;
  transform: rotate(2.5deg);
}
.phone::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: 4;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.34) 50%, transparent 58%);
  transform: translateX(-130%);
  animation: phonesheen 5.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes phonesheen { 55%, 100% { transform: translateX(130%); } }
.phone__notch {
  position: absolute; top: 13px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 22px; border-radius: 999px; background: #0c1322; z-index: 3;
}
.phone__screen {
  position: absolute; inset: 7px; border-radius: 37px;
  background: #f7f9fc;
  display: flex; flex-direction: column;
  padding: 48px 14px 14px;
}
.phone__status { display: flex; gap: 6px; justify-content: center; margin-bottom: 12px; }
.pill {
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.04em;
  padding: 4px 9px; border-radius: 999px;
}
.pill--ok { background: rgba(var(--accent-rgb), 0.1); color: var(--accent); display: inline-flex; align-items: center; gap: 5px; }
.pill--ok .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: pulse 2.2s ease-in-out infinite; }
.pill--off { background: rgba(10, 16, 32, 0.05); color: var(--muted); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.chat { display: flex; flex-direction: column; gap: 9px; flex: 1; }
.chat__msg {
  max-width: 88%; padding: 10px 13px; border-radius: 16px;
  font-size: 11.5px; line-height: 1.5;
}
html.js .chat__msg { opacity: 0; transform: translateY(12px); }
.chat__msg--user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff; border-bottom-right-radius: 5px;
}
.chat__msg--ai {
  align-self: flex-start; background: #fff; color: var(--ink);
  border-bottom-left-radius: 5px;
  box-shadow: inset 0 0 0 1px var(--hairline), 0 2px 8px rgba(10, 16, 32, 0.05);
}
.chat__cite {
  display: block; margin-top: 7px; font-size: 9px; color: var(--muted);
  border-top: 1px solid var(--hairline); padding-top: 6px;
}
.chat__input {
  margin-top: 10px; height: 38px; border-radius: 999px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--hairline);
  display: flex; align-items: center; gap: 8px; padding: 0 14px;
}
.chat__caret { width: 1.5px; height: 14px; background: var(--accent); animation: blink 1.1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.chat__hint { font-size: 11px; color: var(--muted); flex: 1; }
.chat__mic {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  opacity: 0.9;
}

/* ---------- cinematic hero (home) ---------- */
.hero--cine {
  grid-template-columns: 1fr;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 8px;
  min-height: 100vh; padding: 150px 28px 0;
  overflow: visible;
}
.hero__copy--cine { max-width: 880px; }
.hero__copy--cine .hero__sub { margin-left: auto; margin-right: auto; }
.hero__copy--cine .hero__cta { justify-content: center; }
.hero__stage {
  position: relative; margin-top: 26px;
  width: min(940px, 94vw); height: min(560px, 64vh);
  display: grid; place-items: center;
  will-change: opacity;
}
.hero--cine .phone {
  transform: none; width: min(290px, 64vw);
  will-change: transform; z-index: 2;
}
.hero--cine .hero__glow { inset: 12% 22%; }
.chip {
  position: absolute; z-index: 3; will-change: transform, opacity;
}
.chip__inner {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 18px; border-radius: 999px;
  background: var(--chip-bg);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: inset 0 0 0 1px var(--hairline), 0 12px 32px rgba(10, 16, 32, 0.10);
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  white-space: nowrap;
}
.chip__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.chip--1 { left: 3%; top: 14%; }
.chip--2 { right: 4%; top: 8%; }
.chip--3 { left: 0; bottom: 30%; }
.chip--4 { right: 1%; bottom: 36%; }
.chip--5 { right: 16%; bottom: 6%; }
/* ambient constellation canvas (injected by ambient.js) */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* dive tunnel — rings that rush past during the hero zoom */
.dive { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 1; }
.dive__ring {
  position: absolute; width: 340px; height: 340px; border-radius: 50%;
  border: 1.5px solid rgba(var(--accent-rgb), 0.4);
  box-shadow: 0 0 40px rgba(var(--accent2-rgb), 0.12) inset;
  opacity: 0; transform: scale(0.18);
  will-change: transform, opacity;
}

/* velocity marquee */
.marquee {
  overflow: hidden; white-space: nowrap; padding: 26px 0;
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  background: var(--marquee-bg);
}
.marquee__track {
  display: inline-flex; align-items: center; gap: 38px; padding-right: 38px;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(18px, 2vw, 26px); letter-spacing: -0.01em;
  color: var(--ink); will-change: transform;
}
.marquee__track i {
  font-style: normal; font-size: 0.5em;
  background: linear-gradient(115deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.marquee--rev .marquee__track { color: var(--muted); }

/* laptop lid-open scene + screen shimmer */
.split__right { perspective: 1200px; }
.laptop__screen { transform-origin: 50% 100%; will-change: transform; }
.sk { position: relative; overflow: hidden; }
.sk::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.7) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shimmer 3.2s ease-in-out infinite;
}
@keyframes shimmer { 55%, 100% { transform: translateX(100%); } }

/* final title cinematic reveal */
.final__title { will-change: transform, opacity; }
html.js [data-final-title] { opacity: 0; transform: scale(1.18); clip-path: inset(0 38% 0 38%); }

.hero__scrollcue {
  position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
  display: grid; justify-items: center; gap: 8px;
}
.hero__scrollcue-line {
  width: 1.5px; height: 34px; border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0%, 100% { transform: scaleY(0.4); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }
@media (max-width: 1020px) {
  .chip { display: none; }
  .hero__scrollcue { display: none; }
  .hero__stage { height: auto; padding-bottom: 48px; }
  .hero--cine { min-height: 0; }
}

/* ---------- solo hero (enterprise + interior pages) ---------- */
.hero--solo { grid-template-columns: 1fr; min-height: 72vh; padding-bottom: 24px; }
.hero__copy--center { max-width: 800px; margin: 0 auto; text-align: center; }
.hero__copy--center .hero__sub { margin-left: auto; margin-right: auto; }
.hero__copy--center .hero__cta { justify-content: center; }

/* ---------- laptop mockup (hardware section, in-grid) ---------- */
.split__right { display: grid; gap: 22px; align-content: start; }
.laptop {
  width: 100%;
  filter: drop-shadow(0 24px 48px rgba(10, 16, 32, 0.16));
}
.laptop__screen {
  background: #0c1322; border-radius: 18px 18px 4px 4px; padding: 10px 10px 14px;
}
.laptop__bar { display: flex; gap: 5px; padding: 2px 4px 8px; }
.laptop__bar span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); }
.laptop__body {
  background: var(--bg); border-radius: 8px; aspect-ratio: 16 / 9.6;
  display: grid; grid-template-columns: 26% 1fr; overflow: hidden;
}
.laptop__side { background: var(--surface); border-right: 1px solid var(--hairline); padding: 12px 10px; display: grid; gap: 9px; align-content: start; }
.laptop__main { padding: 14px; display: grid; gap: 9px; align-content: start; }
.sk { border-radius: 6px; background: rgba(10, 16, 32, 0.07); height: 10px; }
.sk--logo { width: 38%; height: 12px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.sk--row { width: 100%; }
.sk--w80 { width: 80%; } .sk--w60 { width: 60%; } .sk--w50 { width: 50%; }
.sk--bubble-r { justify-self: end; width: 46%; height: 16px; border-radius: 9px 9px 3px 9px; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); opacity: 0.9; }
.sk--bubble-l { justify-self: start; width: 70%; height: 22px; border-radius: 9px 9px 9px 3px; background: #fff; box-shadow: inset 0 0 0 1px var(--hairline); }
.sk--input { margin-top: 8px; width: 100%; height: 18px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--hairline); }
.laptop__base {
  height: 13px; margin: 0 -5%;
  background: linear-gradient(180deg, #e8ecf3, #c9d1de);
  border-radius: 0 0 14px 14px;
}
.laptop__base::after {
  content: ''; display: block; width: 12%; height: 4px; margin: 0 auto;
  background: rgba(10, 16, 32, 0.12); border-radius: 0 0 6px 6px;
}

/* ---------- sections ---------- */
.section {
  max-width: var(--max); margin: 0 auto; padding: 110px 28px;
}
.section--tight { padding-top: 60px; }
.section--narrow { max-width: 880px; }
.section--final { text-align: center; padding-bottom: 140px; }
.section__title {
  font-size: clamp(32px, 4vw, 52px); font-weight: 700; line-height: 1.08;
  margin-bottom: 22px;
}
.section__lede { font-size: 18px; color: var(--muted); max-width: 40em; margin-bottom: 48px; }
.section__title--invert, .section__lede--invert { color: #fff; }
.section__lede--invert { opacity: 0.75; }

.final__title {
  font-size: clamp(48px, 7vw, 96px); font-weight: 700; letter-spacing: -0.03em;
  margin-bottom: 10px;
  background: linear-gradient(115deg, var(--ink) 35%, var(--accent) 70%, var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.section--final .section__lede { margin: 0 auto 36px; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface); border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(160deg, rgba(255, 255, 255, var(--glass-top)) 0%, rgba(255, 255, 255, 0) 36%);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.22), var(--shadow-lift);
}
.card__icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 20px;
  color: var(--accent);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.1), rgba(var(--accent2-rgb), 0.1));
}
.card__icon svg { width: 23px; height: 23px; }
.card h3 { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--muted); }

/* ---------- pinned story ---------- */
.story { position: relative; }
.story__pin {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 64px;
  padding: 60px 28px; text-align: center;
}
.story__stage { position: relative; width: 220px; height: 220px; display: grid; place-items: center; }
.story__device {
  position: relative; z-index: 2;
  width: 110px; height: 110px; border-radius: 30px; display: grid; place-items: center;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--hairline), 0 20px 60px rgba(var(--accent-rgb), 0.18);
}
.story__ring {
  position: absolute; border-radius: 50%;
  border: 1.5px solid rgba(var(--accent-rgb), 0.25);
  animation: ring 3.4s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
  width: 110px; height: 110px;
}
.story__ring--2 { animation-delay: 1.13s; }
.story__ring--3 { animation-delay: 2.26s; }
@keyframes ring {
  from { transform: scale(1); opacity: 0.9; }
  to   { transform: scale(2.4); opacity: 0; }
}
.story__cloud {
  position: absolute; right: -120px; top: 8px; width: 64px; color: rgba(10, 16, 32, 0.22);
}
.story__cloud svg { width: 100%; }
.story__slash { stroke: #e5484d; stroke-width: 1.8; }
.story__lines { display: grid; gap: 16px; }
.story__line {
  font-family: var(--font-display); font-size: clamp(22px, 3vw, 34px);
  font-weight: 600; line-height: 1.25; color: var(--story-dim);
  transition: color 0.4s ease;
}
.story__line em { font-style: normal; color: inherit; }
.story__line.is-active { color: var(--ink); }
.story__line.is-active em {
  background: linear-gradient(115deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ---------- split / tiers ---------- */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.tiers { list-style: none; display: grid; gap: 14px; }
.tiers li {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: var(--surface); border-radius: 16px; padding: 20px 24px;
  box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow);
  font-size: 15px; color: var(--muted);
}
.tiers__chip {
  font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--ink);
  white-space: nowrap;
}

/* ---------- institutions band ---------- */
.section--band { padding-top: 40px; padding-bottom: 40px; }
.band {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(var(--accent2-rgb), 0.22), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(var(--accent-rgb), 0.3), transparent 60%),
    var(--band-bg);
  border-radius: 32px; padding: 88px 64px;
  overflow: hidden; position: relative;
}
.band .btn { margin-top: 8px; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface); border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}
.faq details[open] { box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.25), var(--shadow-lift); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-display); font-weight: 600; font-size: 17px;
  padding: 22px 26px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq__x {
  position: relative; width: 18px; height: 18px; flex: none;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq__x::before, .faq__x::after {
  content: ''; position: absolute; inset: 0; margin: auto;
  background: var(--accent); border-radius: 2px;
}
.faq__x::before { width: 18px; height: 2px; }
.faq__x::after { width: 2px; height: 18px; }
.faq details[open] .faq__x { transform: rotate(45deg); }
.faq details p { padding: 0 26px 24px; color: var(--muted); font-size: 15.5px; }
.faq details a { color: var(--accent); font-weight: 600; }

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2.5px; z-index: 60;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin: 0 50%;
  pointer-events: none;
}
.st-word { will-change: transform; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--hairline); background: var(--footer-bg); }
.footer__inner {
  max-width: var(--max); margin: 0 auto; padding: 44px 28px;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.footer__brand {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 17px;
}
.footer__links { display: flex; gap: 24px; font-size: 14px; color: var(--muted); }
.footer__links a:hover { color: var(--ink); }
.footer__legal { margin-left: auto; font-size: 13px; color: var(--muted); opacity: 0.8; }

/* ---------- legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 160px 28px 100px; }
.legal h1 { font-size: clamp(34px, 4.5vw, 52px); margin-bottom: 8px; }
.legal .legal__date { color: var(--muted); font-size: 14px; margin-bottom: 44px; }
.legal h2 { font-size: 22px; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--muted); font-size: 16px; margin-bottom: 12px; }
.legal ul { padding-left: 22px; }

/* ---------- reveal defaults (only hidden when JS is present) ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(28px); }
html.reduced-motion [data-reveal] { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; padding-top: 140px; text-align: center; min-height: 0; }
  .hero__sub, .hero__cta { margin-left: auto; margin-right: auto; justify-content: center; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .story__cloud { right: -84px; }
}
@media (max-width: 640px) {
  .nav__links { display: none; }
  .grid--3 { grid-template-columns: 1fr; }
  .band { padding: 56px 28px; }
  .section { padding: 72px 22px; }
  .footer__legal { margin-left: 0; }
  .story__cloud { display: none; }
}

/* ============================================================
   STYLE PACKS — six different worlds, switched from the portal
   (html[data-style] is set by theme.js; palettes ride CSS vars)
   ============================================================ */

/* — obsidian: dark luxury, champagne gold — */
html[data-style="obsidian"] .aurora::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(1100px 700px at 50% -8%, rgba(var(--accent-rgb), 0.10), transparent 60%);
}
html[data-style="obsidian"] .phone { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.08), inset 0 0 0 7px #000, 0 30px 80px rgba(0,0,0,0.6); }
html[data-style="obsidian"] .card:hover { box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.45), 0 24px 64px rgba(0,0,0,0.5); }

/* — porcelain: ultra-minimal gallery white — */
html[data-style="porcelain"] .aurora,
html[data-style="porcelain"] .ambient,
html[data-style="porcelain"] .hero__glow { display: none; }
html[data-style="porcelain"] .card { box-shadow: inset 0 0 0 1px var(--hairline); }
html[data-style="porcelain"] .card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--ink); }
html[data-style="porcelain"] .scroll-progress { height: 1.5px; }
html[data-style="porcelain"] .btn--primary { background: var(--ink); box-shadow: none; }

/* — neon: midnight HUD, perspective grid floor — */
html[data-style="neon"] .aurora::after {
  content: ''; position: absolute; left: -20%; right: -20%; bottom: -10%; height: 56%;
  background:
    repeating-linear-gradient(90deg, rgba(var(--accent-rgb), 0.15) 0 1px, transparent 1px 54px),
    repeating-linear-gradient(0deg, rgba(var(--accent-rgb), 0.12) 0 1px, transparent 1px 42px);
  transform: perspective(440px) rotateX(58deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(transparent, #000 35%);
  mask-image: linear-gradient(transparent, #000 35%);
}
html[data-style="neon"] .btn--primary { box-shadow: 0 0 26px rgba(var(--accent-rgb), 0.55), inset 0 1px 0 rgba(255,255,255,0.25); }
html[data-style="neon"] .section__title { text-shadow: 0 0 30px rgba(var(--accent-rgb), 0.35); }
html[data-style="neon"] .dive__ring { box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.5); }
html[data-style="neon"] .phone { box-shadow: inset 0 0 0 1.5px rgba(var(--accent-rgb), 0.35), inset 0 0 0 7px #02040A, 0 0 60px rgba(var(--accent-rgb), 0.25); }

/* — clay: soft sculpted pastel — */
html[data-style="clay"] .ambient { display: none; }
html[data-style="clay"] .card {
  box-shadow: 9px 9px 22px rgba(67, 46, 38, 0.13), -7px -7px 18px #fff, inset 0 0 0 1px rgba(255,255,255,0.65);
}
html[data-style="clay"] .card:hover { box-shadow: 12px 12px 28px rgba(67, 46, 38, 0.18), -7px -7px 18px #fff; }
html[data-style="clay"] .btn--primary { box-shadow: 7px 7px 16px rgba(var(--accent-rgb), 0.35), -4px -4px 12px #fff; }
html[data-style="clay"] .tiers li, html[data-style="clay"] .faq details {
  box-shadow: 7px 7px 18px rgba(67, 46, 38, 0.10), -6px -6px 14px #fff;
}

/* — brutal: editorial ink-and-paper, one loud accent — */
html[data-style="brutal"] .aurora, html[data-style="brutal"] .ambient { display: none; }
html[data-style="brutal"] .card { border-radius: 0; border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
html[data-style="brutal"] .card::before { display: none; }
html[data-style="brutal"] .card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
html[data-style="brutal"] .btn { border-radius: 0; }
html[data-style="brutal"] .btn--primary { background: var(--accent); box-shadow: 5px 5px 0 var(--ink); }
html[data-style="brutal"] .btn--primary:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
html[data-style="brutal"] .btn--ghost { border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); }
html[data-style="brutal"] .tiers li, html[data-style="brutal"] .faq details { border-radius: 0; border: 2px solid var(--ink); box-shadow: none; }
html[data-style="brutal"] .band, html[data-style="brutal"] .phone__screen { border-radius: 0; }
html[data-style="brutal"] .phone { border-radius: 6px; }
html[data-style="brutal"] .marquee { border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
html[data-style="brutal"] .chip__inner { border-radius: 0; box-shadow: inset 0 0 0 2px var(--ink); }

/* ============================================================
   PER-STYLE DESIGNS — each world has its own LAYOUT, not just skin
   ============================================================ */

/* obsidian: split editorial hero — copy left, device right in a gold rim */
@media (min-width: 1020px) {
  html[data-style="obsidian"] .hero--cine { flex-direction: row; text-align: left; justify-content: space-between; align-items: center; gap: 44px; padding-top: 150px; }
  html[data-style="obsidian"] .hero__copy--cine { max-width: 560px; }
  html[data-style="obsidian"] .hero__copy--cine .hero__sub { margin-left: 0; }
  html[data-style="obsidian"] .hero__copy--cine .hero__cta { justify-content: flex-start; }
  html[data-style="obsidian"] .hero__stage { width: 40%; min-width: 360px; height: 560px; margin-top: 0; }
}
html[data-style="obsidian"] .chip, html[data-style="obsidian"] .dive, html[data-style="obsidian"] .hero__scrollcue { display: none !important; }
/* obsidian signature: the feature wall scrolls HORIZONTALLY under a pin */
@media (min-width: 1020px) {
  html[data-style="obsidian"] #features .grid--3 { display: flex; width: max-content; gap: 18px; }
  html[data-style="obsidian"] #features .card { width: 360px; flex: none; }
}

/* porcelain: no device, no scene — a typographic monument */
html[data-style="porcelain"] .hero__stage { display: none !important; }
html[data-style="porcelain"] .hero--cine { min-height: 80vh; justify-content: center; gap: 0; }
html[data-style="porcelain"] .hero__title { font-size: clamp(56px, 8.5vw, 118px); line-height: 0.98; }
html[data-style="porcelain"] .hero__sub { font-size: clamp(18px, 1.6vw, 22px); }

/* brutal: poster layout — flat device, hard offset, no theatrics */
html[data-style="brutal"] .chip, html[data-style="brutal"] .dive, html[data-style="brutal"] .hero__scrollcue { display: none !important; }
html[data-style="brutal"] .hero--cine { min-height: 0; }
html[data-style="brutal"] .hero__stage { height: auto; padding: 36px 0 80px; }
html[data-style="brutal"] .phone { box-shadow: 12px 12px 0 var(--ink); transform: none; }
html[data-style="brutal"] .hero__title { line-height: 1.02; }

/* clay: extra-round, bouncy world */
html[data-style="clay"] .phone { border-radius: 52px; }
html[data-style="clay"] .chip__inner { padding: 14px 22px; }

/* — portal motion switches (set pre-paint by theme.js) — */
html[data-fx-chips="off"] .chip { display: none !important; }
html[data-fx-dive="off"] .hero__scrollcue, html[data-fx-dive="off"] .dive { display: none !important; }
html[data-fx-marquee="off"] .marquee { display: none !important; }
html[data-fx-sheen="off"] .phone::after { display: none !important; }
html[data-fx-sheen="off"] .card::before { display: none !important; }
html[data-fx-sheen="off"] .sk::after { animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
