/* ==========================================================================
   Avanzza · Automatización e IA
   Dirección: "Sala de máquinas a medianoche" (ver DESIGN.md)
   Base de arquitectura: AuthKit (frosted glass cathedral at midnight)
   Homologado con el sistema Avanzza: Newsreader + Geist Mono, acento #139595.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-body: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-digital: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-brand: "Sora", ui-sans-serif, system-ui, sans-serif;

  --fs-display: clamp(3rem, 7vw, 7rem);
  --fs-hero-lead: clamp(1.375rem, 2.2vw, 2rem);
  --fs-h2: clamp(2.25rem, 4.2vw, 3.75rem);
  --fs-h3: clamp(1.25rem, 1.7vw, 1.625rem);
  --fs-lead: clamp(1.0625rem, 1.3vw, 1.3125rem);
  --fs-body: 15.5px;
  --fs-small: 0.875rem;
  --fs-label: 0.75rem;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;
  --section-pad: clamp(6rem, 12vw, 14rem);
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 56px;

  --radius-pill: 999px;
  --radius-card: 16px;
  --radius-shell: 20px;
  --radius-input: 8px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.36, 0.64, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
  --dur-micro: 0.18s;
  --dur-fast: 0.28s;
  --dur-slow: 0.6s;

  --z-base: 1;
  --z-cta-bar: 40;
  --z-header: 50;
  --z-menu: 45;
  --z-intro: 100;
}

:root,
[data-theme="dark"] {
  color-scheme: dark;
  --color-canvas: #05060f;
  --color-surface: #0b0e1c;
  --color-text: #d1e4fa;
  --color-text-muted: #9da7ba;
  --color-line: rgba(186, 215, 247, 0.12);
  --color-glow: #98c0ef;
  --color-accent: #139595;
  --accent-text: #3cc4c0;

  --text-strong: color-mix(in oklab, var(--color-text) 45%, #ffffff);
  --glass: color-mix(in oklab, var(--color-glow) 4%, transparent);
  --glass-2: color-mix(in oklab, var(--color-glow) 8%, transparent);
  --glass-3: color-mix(in oklab, var(--color-glow) 14%, transparent);
  --line-strong: color-mix(in oklab, var(--color-glow) 26%, transparent);
  --line-faint: color-mix(in oklab, var(--color-glow) 7%, transparent);
  --trace: color-mix(in oklab, var(--color-glow) 24%, transparent);
  --accent-glow: color-mix(in oklab, #3cc4c0 50%, transparent);
  --accent-soft: color-mix(in oklab, var(--color-accent) 18%, transparent);
  --accent-ink: #05060f;
  --heading-gradient: linear-gradient(180deg, #f3f8fe 0%, #d8ecf8 42%, #98c0ef 100%);
  --heading-glow: drop-shadow(0 2px 16px rgba(174, 207, 242, 0.24));
  --beam-core: rgba(124, 145, 182, 0.42);
  --beam-soft: rgba(124, 145, 182, 0.14);
  --elev-float: inset 0 1px 1px rgba(216, 236, 248, 0.2), inset 0 24px 48px rgba(168, 216, 245, 0.06), 0 16px 32px rgba(0, 0, 0, 0.3);
  --elev-card: inset 0 1px 1px rgba(199, 211, 234, 0.12), inset 0 24px 48px rgba(199, 211, 234, 0.05), 0 24px 32px rgba(6, 6, 14, 0.7);
  --hairline: inset 0 0 0 1px var(--color-line);
  --scrim: rgba(3, 4, 10, 0.72);
  --header-bg: rgba(5, 6, 15, 0.7);
  --spot: color-mix(in oklab, var(--color-glow) 11%, transparent);
}

[data-theme="light"] {
  color-scheme: light;
  --color-canvas: #edf1f7;
  --color-surface: #ffffff;
  --color-text: #1b2438;
  --color-text-muted: #56617a;
  --color-line: rgba(20, 36, 70, 0.12);
  --color-glow: #3d5f94;
  --color-accent: #139595;
  --accent-text: #0e7373;

  --text-strong: #0b1222;
  --glass: rgba(255, 255, 255, 0.58);
  --glass-2: rgba(255, 255, 255, 0.82);
  --glass-3: rgba(61, 95, 148, 0.1);
  --line-strong: rgba(20, 36, 70, 0.22);
  --line-faint: rgba(20, 36, 70, 0.06);
  --trace: rgba(61, 95, 148, 0.3);
  --accent-glow: color-mix(in oklab, var(--color-accent) 34%, transparent);
  --accent-soft: color-mix(in oklab, var(--color-accent) 12%, transparent);
  --accent-ink: #05060f;
  --heading-gradient: linear-gradient(180deg, #0b1222 0%, #1d2c4b 55%, #3d5f94 100%);
  --heading-glow: none;
  --beam-core: rgba(61, 95, 148, 0.16);
  --beam-soft: rgba(61, 95, 148, 0.06);
  --elev-float: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(20, 36, 70, 0.06), 0 24px 48px -16px rgba(20, 36, 70, 0.22);
  --elev-card: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(20, 36, 70, 0.05), 0 18px 40px -20px rgba(20, 36, 70, 0.2);
  --scrim: rgba(12, 18, 34, 0.42);
  --header-bg: rgba(237, 241, 247, 0.72);
  --spot: rgba(61, 95, 148, 0.08);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 96px;
  scroll-behavior: smooth;
}
html.modal-open,
html.menu-open { overflow: hidden; }

::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }

body {
  margin: 0;
  min-height: 100dvh;
  background-color: var(--color-canvas);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-feature-settings: "ss01" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color 0.5s var(--ease-out), color 0.5s var(--ease-out);
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; }
p, li, dd, figcaption { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

::selection { background: var(--accent-soft); color: var(--text-strong); }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[tabindex="-1"]:focus { outline: none; }

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: calc(var(--z-intro) + 1);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--accent-ink);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus-visible { transform: translateY(0); }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--section-pad);
}

.section + .section::before,
.circuit + .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-line) 18%, var(--color-line) 82%, transparent);
}

.section-head {
  display: grid;
  justify-items: center;
  gap: var(--space-5);
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.section-head--start {
  justify-items: start;
  margin-inline: 0;
  text-align: left;
  max-width: 880px;
}

h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1.06;
  letter-spacing: -0.028em;
  color: var(--text-strong);
}

h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h3);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text-strong);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--color-text-muted);
  max-width: 62ch;
}

/* Luminous gradient text (light from behind the glass). */
.grad {
  background-image: var(--heading-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: var(--heading-glow);
}
/* When SplitText wraps lines/chars, the gradient moves to the pieces. */
.grad.is-split {
  background-image: none;
  -webkit-text-fill-color: currentColor;
  color: var(--text-strong);
}
.grad.is-split .split-line,
.grad.is-split .split-char {
  background-image: var(--heading-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.split-line-mask { padding-bottom: 0.1em; margin-bottom: -0.1em; }

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: clamp(40px, 7vw, 112px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong));
  transform-origin: right center;
  scale: var(--line-scale, 1) 1;
}
.eyebrow::after {
  background: linear-gradient(90deg, var(--line-strong), transparent);
  transform-origin: left center;
}
.eyebrow span {
  background-image: var(--heading-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.section-head--start .eyebrow { justify-content: flex-start; }

/* Blueprint grammar: frames with corner markers that organize real content. */
.frame { position: relative; }
.corner {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-glow);
  opacity: 0.75;
  box-shadow: 0 0 0 3px var(--color-canvas), 0 0 10px color-mix(in oklab, var(--color-glow) 60%, transparent);
  pointer-events: none;
}
.corner--tl { top: -2.5px; left: -2.5px; }
.corner--tr { top: -2.5px; right: -2.5px; }
.corner--bl { bottom: -2.5px; left: -2.5px; }
.corner--br { bottom: -2.5px; right: -2.5px; }

.page-guides {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(var(--line-faint), var(--line-faint)) calc(50% - var(--container) / 2) 0 / 1px 100% no-repeat,
    linear-gradient(var(--line-faint), var(--line-faint)) calc(50% + var(--container) / 2) 0 / 1px 100% no-repeat;
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}

main, .site-footer { position: relative; z-index: var(--z-base); }

/* --------------------------------------------------------------------------
   4. Buttons and links
   -------------------------------------------------------------------------- */
.btn {
  --btn-h: 52px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: var(--btn-h);
  padding: 0 8px 0 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition:
    scale var(--dur-micro) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}
.btn:active { scale: 0.97; }

.btn-primary {
  background-color: var(--color-accent);
  color: var(--accent-ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 0 0 1px color-mix(in oklab, var(--color-accent) 70%, #ffffff),
    0 10px 28px -10px var(--accent-glow);
}
.btn-primary:hover {
  background-color: color-mix(in oklab, var(--color-accent) 90%, #ffffff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 0 0 1px color-mix(in oklab, var(--color-accent) 60%, #ffffff),
    0 16px 40px -10px var(--accent-glow);
}

.btn-ghost {
  background-color: var(--glass-2);
  color: var(--text-strong);
  box-shadow: var(--elev-float), var(--hairline);
}
.btn-ghost:hover { background-color: var(--glass-3); }

.btn-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(5, 6, 15, 0.14);
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.btn-ghost .btn-icon { background-color: var(--glass-2); box-shadow: var(--hairline); }
.btn:hover .btn-icon { transform: translate(2px, -2px) scale(1.06); }
.btn .icon { width: 18px; height: 18px; stroke-width: 1.75; }

.btn-sm { --btn-h: 40px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; justify-content: space-between; }

.link-quiet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--dur-fast) var(--ease-out);
}
.link-quiet .icon { width: 18px; height: 18px; transition: transform var(--dur-fast) var(--ease-out); }
.link-quiet:hover { color: var(--text-strong); }
.link-quiet:hover .icon { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   5. Header, mobile menu, mobile CTA bar
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  padding: 14px var(--gutter);
  pointer-events: none;
}
.header-inner {
  position: relative;
  pointer-events: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: calc(var(--container) + 24px);
  height: var(--header-h);
  margin-inline: auto;
  padding: 0 8px 0 16px;
  border-radius: var(--radius-pill);
  background-color: transparent;
  box-shadow: inset 0 0 0 1px transparent;
  transition:
    max-width 0.7s var(--ease-out),
    background-color 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out);
}
.site-header[data-state="scrolled"] .header-inner {
  max-width: 900px;
  background-color: var(--header-bg);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: var(--lg-refract, blur(0px)) blur(18px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), var(--hairline), 0 18px 40px -20px rgba(0, 0, 0, 0.55);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  color: var(--text-strong);
  min-height: 44px;
}
.brand-mark {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand-spark { fill: var(--color-accent); stroke: none; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.nav { display: flex; gap: 4px; }
.nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.nav a:hover { color: var(--text-strong); background-color: var(--glass-2); }

.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  place-items: center;
  background-color: var(--glass-2);
  box-shadow: var(--hairline);
}
.menu-btn-lines { position: relative; display: block; width: 18px; height: 10px; }
.menu-btn-lines i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text-strong);
  transition: transform var(--dur-fast) var(--ease-out), top var(--dur-fast) var(--ease-out);
}
.menu-btn-lines i:first-child { top: 0; }
.menu-btn-lines i:last-child { top: 8.5px; }
.menu-btn[aria-expanded="true"] .menu-btn-lines i:first-child { top: 4.25px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn-lines i:last-child { top: 4.25px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-7);
  padding: calc(var(--header-h) + 64px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background-color: color-mix(in oklab, var(--color-canvas) 92%, transparent);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu-nav { display: grid; gap: 4px; }
.mobile-menu-nav a {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 8vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--text-strong);
  padding-block: 6px;
}

/* Mobile CTA: a liquid-glass tray (material in liquid-glass.css). */
.cta-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: var(--z-cta-bar);
  display: none;
  padding: 6px;
  border-radius: var(--radius-pill);
  transform: translateY(calc(100% + 40px));
  transition: transform 0.45s var(--ease-out);
}
.cta-bar.is-visible { transform: translateY(0); }

/* --------------------------------------------------------------------------
   6. Intro curtain (page entry)
   -------------------------------------------------------------------------- */
.intro { display: none; }
.js .intro {
  position: fixed;
  inset: 0;
  z-index: var(--z-intro);
  display: grid;
  place-items: center;
  background-color: var(--color-canvas);
  animation: intro-fallback 0.5s ease 3.2s forwards;
}
@keyframes intro-fallback { to { opacity: 0; visibility: hidden; } }
.intro-core { position: relative; display: grid; place-items: center; }
.intro-mark {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  fill: none;
  stroke: var(--text-strong);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.intro-line {
  position: absolute;
  top: calc(50% + 7px);
  left: 50%;
  width: min(56vw, 720px);
  height: 1px;
  margin-left: calc(min(56vw, 720px) / -2);
  background: linear-gradient(90deg, transparent, var(--color-accent) 30%, #a6ece6 50%, var(--color-accent) 70%, transparent);
  box-shadow: 0 0 18px var(--accent-glow);
  transform: scaleX(0);
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(7.5rem, 15vh, 9.5rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  overflow: clip;
  isolation: isolate;
}

.hero-beam {
  position: absolute;
  inset: 0 0 auto;
  height: min(1200px, 130vh);
  z-index: -1;
  pointer-events: none;
  background:
    conic-gradient(from 180deg at 50% -6%, transparent 0deg, var(--beam-soft) 13deg, var(--beam-core) 18deg, var(--beam-soft) 23deg, transparent 36deg, transparent 324deg, var(--beam-soft) 337deg, var(--beam-core) 342deg, var(--beam-soft) 347deg, transparent 360deg),
    radial-gradient(46% 36% at 50% 0%, var(--beam-soft), transparent 72%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 38%, transparent 82%);
  mask-image: linear-gradient(180deg, #000 0%, #000 38%, transparent 82%);
}
.hero-beam::after {
  content: "";
  position: absolute;
  inset: 0;
  background: conic-gradient(from 180deg at 50% -6%, transparent 0deg, var(--beam-soft) 8deg, transparent 20deg, transparent 340deg, var(--beam-soft) 352deg, transparent 360deg);
}

.hero-inner {
  display: grid;
  justify-items: center;
  text-align: center;
}

.hero .eyebrow { margin-bottom: var(--space-6); }

.hero-frame {
  padding: clamp(14px, 1.6vw, 22px) clamp(18px, 2.4vw, 36px);
}
.frame-rule {
  position: absolute;
  left: 50%;
  width: 100vw;
  height: 1px;
  margin-left: -50vw;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 4%, var(--line-faint) 22%, var(--color-line) 40%, var(--color-line) 60%, var(--line-faint) 78%, transparent 96%);
}
.frame-rule--top { top: 0; }
.frame-rule--bottom { bottom: 0; }

.hero-title { display: grid; justify-items: center; gap: 6px; }
.hero-lead {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-hero-lead);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
.hero-display {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-display);
  line-height: 1.02;
  letter-spacing: -0.035em;
  padding-bottom: 0.06em;
  font-kerning: normal;
}

.hero-sub {
  margin-top: var(--space-6);
  max-width: 34ch;
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--color-text-muted);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-3) var(--space-5);
  margin-top: var(--space-6);
}

/* Fan of live product components */
.fan {
  position: relative;
  height: clamp(420px, 42vw, 520px);
  margin-top: clamp(3rem, 6vw, 4.5rem);
  perspective: 1800px;
}
.fan-stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.fan-slot { position: absolute; top: 0; left: 50%; }
.fan-slot--center { --w: min(380px, 88vw); width: var(--w); margin-left: calc(var(--w) / -2); z-index: 3; }
.fan-slot--left { --w: 312px; width: var(--w); top: 56px; margin-left: calc(var(--w) / -2 - 332px); z-index: 2; }
.fan-slot--right { --w: 312px; width: var(--w); top: 56px; margin-left: calc(var(--w) / -2 + 332px); z-index: 2; }
.fan-slot--left .fan-card { transform: rotate(-5deg); transform-origin: 100% 100%; }
.fan-slot--right .fan-card { transform: rotate(5deg); transform-origin: 0% 100%; }

.fan-card { position: relative; will-change: auto; }

.mock {
  border-radius: var(--radius-card);
  background-color: color-mix(in oklab, var(--color-surface) 94%, transparent);
  box-shadow: var(--elev-float), var(--hairline);
  padding: 18px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--color-text);
  text-align: left;
}
.mock-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}
.mock-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--glass-2);
  box-shadow: var(--hairline);
  color: var(--color-glow);
}
.mock-icon .icon { width: 18px; height: 18px; }
.mock-title { display: grid; line-height: 1.3; }
.mock-title strong { font-size: 14px; font-weight: 600; color: var(--text-strong); }
.mock-title span { font-size: 12px; color: var(--color-text-muted); }
.mock-time { font-family: var(--font-mono); font-size: 11px; color: var(--color-text-muted); letter-spacing: 0.02em; }

.avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-strong);
  background: linear-gradient(145deg, color-mix(in oklab, var(--color-glow) 34%, transparent), color-mix(in oklab, var(--color-glow) 10%, transparent));
  box-shadow: var(--hairline);
}

.lead-person {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 12px;
  border-radius: 12px;
  background-color: var(--glass);
  box-shadow: var(--hairline);
}
.lead-name { display: grid; line-height: 1.3; }
.lead-name strong { font-size: 14px; font-weight: 600; color: var(--text-strong); }
.lead-name span { font-size: 12px; color: var(--color-text-muted); }
.lead-ping {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.lead-quote {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--color-text);
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; list-style: none; }
.tags li {
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--color-text);
  background-color: var(--glass-2);
  box-shadow: var(--hairline);
}

/* Chat */
.mock-chat { padding: 0; overflow: hidden; background-color: var(--color-surface); }
.chat-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  box-shadow: inset 0 -1px 0 var(--color-line);
}
.chat-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--glass-2);
  box-shadow: var(--hairline);
}
.chat-avatar svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--text-strong);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chat-id { display: grid; line-height: 1.3; }
.chat-id strong { font-size: 14px; font-weight: 600; color: var(--text-strong); }
.chat-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--color-text-muted); }
.chat-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #4cc38a;
  box-shadow: 0 0 0 3px rgba(76, 195, 138, 0.18);
}
.chat-badge {
  padding: 3px 8px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-glow);
  background-color: var(--glass-2);
  box-shadow: var(--hairline);
}
.chat-body {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 300px;
  padding: 16px;
}
.msg { display: grid; max-width: 86%; gap: 4px; }
.msg p {
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.45;
}
.msg time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--color-text-muted);
}
.msg time .icon { width: 14px; height: 14px; color: var(--color-glow); }
.msg-in { justify-self: start; }
.msg-in p {
  border-bottom-left-radius: 4px;
  background-color: var(--glass-2);
  box-shadow: var(--hairline);
  color: var(--color-text);
}
.msg-out { justify-self: end; justify-items: end; }
.msg-out p {
  border-bottom-right-radius: 4px;
  background-color: color-mix(in oklab, var(--color-glow) 20%, var(--color-surface));
  color: var(--text-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
[data-theme="light"] .msg-out p { background-color: #dfe8f5; }
.typing {
  justify-self: end;
  display: inline-flex;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  border-bottom-right-radius: 4px;
  background-color: color-mix(in oklab, var(--color-glow) 14%, var(--color-surface));
}
.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-text-muted);
  animation: typing 1s var(--ease-out) infinite;
}
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-3px); opacity: 1; }
}
.chat-event {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-ink);
  background-color: var(--color-accent);
  box-shadow: 0 8px 24px -8px var(--accent-glow);
}
.chat-event .icon { width: 16px; height: 16px; stroke-width: 1.75; }
.chat-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 12.5px;
  color: var(--color-text-muted);
  box-shadow: inset 0 1px 0 var(--color-line);
}
.chat-foot .icon { width: 16px; height: 16px; color: var(--color-glow); }
.chat-foot strong { color: var(--text-strong); font-weight: 600; }

/* Pipeline */
.pipe-list { list-style: none; display: grid; gap: 2px; margin-top: 16px; }
.pipe-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
}
.pipe-list li b { font-family: var(--font-mono); font-weight: 500; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.pipe-list li.is-target { background-color: var(--glass-2); box-shadow: var(--hairline); color: var(--color-text); }
.pipe-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px;
  border-radius: 12px;
  background-color: var(--glass);
  box-shadow: var(--hairline);
  font-size: 13px;
}
.pipe-row strong { flex: 1; font-weight: 600; color: var(--text-strong); }
.stage-chip {
  display: inline-block;
  min-width: 78px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
  color: var(--color-text);
  background-color: var(--glass-2);
  box-shadow: var(--hairline);
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.stage-chip.is-hot { color: var(--accent-ink); background-color: var(--color-accent); box-shadow: none; }
.pipe-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 16px;
  padding-top: 14px;
  box-shadow: inset 0 1px 0 var(--color-line);
  font-size: 12.5px;
  color: var(--color-text-muted);
}
.pipe-total strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

/* Day / night */
.daynight {
  display: grid;
  justify-items: center;
  gap: var(--space-4);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
}
.daynight-toggle {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: var(--radius-pill);
  background-color: var(--glass);
  box-shadow: var(--hairline);
}
.daynight-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: var(--radius-pill);
  background-color: var(--glass-3);
  box-shadow: var(--elev-float), inset 0 0 0 1px var(--line-strong);
  transform: translateX(100%);
  transition: transform 0.45s var(--ease-spring);
}
[data-theme="light"] .daynight-pill { transform: translateX(0); background-color: #ffffff; }
.daynight-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 112px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--dur-fast) var(--ease-out);
}
.daynight-btn[aria-pressed="true"] { color: var(--text-strong); }
.daynight-btn .icon { width: 18px; height: 18px; }
.daynight-caption { font-size: var(--fs-small); color: var(--color-text-muted); }
.daynight-caption [data-daynight-caption] { color: var(--color-text); display: inline-block; }
.daynight-note { color: var(--color-text-muted); }

/* --------------------------------------------------------------------------
   8. Four strokes
   -------------------------------------------------------------------------- */
.strokes-track { position: relative; margin-top: clamp(3.5rem, 7vw, 6rem); }
.strokes-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-6);
  list-style: none;
}
.stroke {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: var(--space-3);
  text-align: center;
}
.stroke-node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: var(--space-3);
  border-radius: 50%;
  color: var(--color-glow);
  background-color: var(--color-surface);
  box-shadow: var(--elev-card), var(--hairline);
  transition: box-shadow 0.5s var(--ease-out), color 0.5s var(--ease-out);
}
.stroke-node::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--color-accent), 0 0 28px -2px var(--accent-glow);
  opacity: 0;
  scale: 0.9;
  transition: opacity 0.5s var(--ease-out), scale 0.5s var(--ease-out);
}
.stroke-node .icon { width: 28px; height: 28px; stroke-width: 1.4; }
.stroke.is-lit .stroke-node { color: var(--text-strong); }
.stroke.is-lit .stroke-node::after { opacity: 1; scale: 1; }
.stroke h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); }
.stroke p { max-width: 26ch; font-size: 15px; line-height: 1.55; color: var(--color-text-muted); }

.strokes-line {
  position: absolute;
  top: 36px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background-color: var(--color-line);
}
.strokes-line-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--line-strong), var(--color-glow) 50%, var(--line-strong));
  transform-origin: left center;
}
.strokes-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background-color: var(--color-accent);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 0 24px 6px var(--accent-glow);
  opacity: 0;
}

/* --------------------------------------------------------------------------
   9. Circuit (pinned storytelling)
   -------------------------------------------------------------------------- */
.circuit { position: relative; }
.circuit-pin {
  display: flex;
  align-items: center;
  min-height: 100dvh;
  padding-block: calc(var(--header-h) + 56px) 56px;
}
.circuit-inner {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  grid-template-areas:
    "head diagram"
    "clock diagram"
    "steps diagram";
  grid-template-rows: auto auto 1fr;
  column-gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.circuit-copy { display: contents; }
.circuit-head { grid-area: head; display: grid; gap: var(--space-4); }
.circuit-head h2 { font-size: clamp(2rem, 3.3vw, 3.25rem); }
.circuit-lead { font-size: clamp(1rem, 1.15vw, 1.125rem); }
.circuit-stage { display: contents; }
.circuit-clock {
  grid-area: clock;
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: var(--space-6);
  color: var(--text-strong);
}
.circuit-clock-digits {
  font-family: var(--font-digital);
  font-weight: 700;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.circuit-clock-meridiem {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.circuit-steps {
  grid-area: steps;
  display: grid;
  gap: 6px;
  margin-top: var(--space-5);
  list-style: none;
}
.circuit-step {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 8px 0 8px 18px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--color-text);
  opacity: 0.36;
  transition: opacity 0.4s var(--ease-out);
}
.circuit-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 2px;
  background-color: var(--color-line);
  transition: background-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.circuit-step time {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
}
.circuit-step.is-active { opacity: 1; }
.circuit-step.is-active::before { background-color: var(--color-accent); box-shadow: 0 0 12px var(--accent-glow); }

.circuit-diagram { grid-area: diagram; align-self: center; }
.circuit-svg { width: 100%; height: auto; overflow: visible; }
.circuit-svg--tall { display: none; }

.c-trace { fill: none; stroke: var(--trace); stroke-width: 1.5; stroke-linecap: round; }
.c-live-path { fill: none; stroke: var(--color-accent); stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 0 4px var(--accent-glow)); }
.c-node-box { fill: var(--color-surface); stroke: var(--color-line); stroke-width: 1; }
.c-node-ring { fill: none; stroke: var(--color-accent); stroke-width: 1.5; opacity: 0; }
.c-icon {
  fill: none;
  stroke: var(--color-glow);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.c-label { fill: var(--text-strong); font-family: var(--font-body); font-size: 15px; font-weight: 500; }
.c-label--sm { font-size: 13px; }
.c-sub { fill: var(--color-text-muted); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.01em; }
.c-chip-body { fill: var(--color-surface); stroke: var(--line-strong); stroke-width: 1; }
.c-chip-inner { fill: var(--glass-2); stroke: var(--color-line); stroke-width: 1; }
.c-chip-halo { opacity: 0.25; }
.c-chip-mark path { fill: none; stroke: var(--text-strong); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.c-chip-label { fill: var(--color-text-muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.24em; }
.c-pins path { fill: none; stroke: var(--line-strong); stroke-width: 2; stroke-linecap: round; }
.c-board { fill: none; stroke: var(--line-faint); stroke-width: 1; }
.c-particle { opacity: 0; }
.c-particle-core { fill: var(--color-accent); }
.stop-accent { stop-color: var(--color-accent); }

/* --------------------------------------------------------------------------
   10. Your voice (workspace)
   -------------------------------------------------------------------------- */
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px) minmax(0, 1fr);
  grid-template-rows: repeat(3, auto);
  align-items: center;
  gap: 28px 56px;
  margin-top: clamp(3.5rem, 7vw, 6rem);
  padding: clamp(28px, 4vw, 56px);
  border-radius: var(--radius-card);
  background:
    radial-gradient(60% 70% at 50% 50%, color-mix(in oklab, var(--color-glow) 7%, transparent), transparent 70%),
    linear-gradient(var(--line-faint) 1px, transparent 1px) 0 0 / 100% 48px,
    linear-gradient(90deg, var(--line-faint) 1px, transparent 1px) 0 0 / 48px 100%;
  box-shadow: var(--hairline);
}
.ws-window {
  grid-column: 2;
  grid-row: 1 / span 3;
  border-radius: var(--radius-card);
  background-color: var(--color-surface);
  box-shadow: var(--elev-float), var(--hairline);
  overflow: hidden;
}
.ws-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  box-shadow: inset 0 -1px 0 var(--color-line);
}
.ws-bar i { width: 9px; height: 9px; border-radius: 50%; background-color: var(--line-strong); }
.ws-bar span { margin-left: auto; font-family: var(--font-mono); font-size: 11.5px; color: var(--color-text-muted); letter-spacing: 0.02em; }
.ws-chat { display: grid; gap: 12px; min-height: 250px; padding: 22px 18px; align-content: start; }
.ws-chat .msg { max-width: 90%; }
.ws-chat .msg p { font-size: 14.5px; }
.ws-compose {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 16px 16px;
  padding: 10px 10px 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  color: var(--color-text-muted);
  background-color: var(--glass);
  box-shadow: var(--hairline);
}
.ws-compose .icon { width: 18px; height: 18px; color: var(--color-glow); }

.ws-panel {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  background-color: color-mix(in oklab, var(--color-surface) 90%, transparent);
  box-shadow: var(--elev-card), var(--hairline);
  font-size: 13.5px;
}
.ws-panel::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}
.ws-panel--tone,
.ws-panel--hours,
.ws-panel--files { grid-column: 1; }
.ws-panel--tone::after,
.ws-panel--hours::after,
.ws-panel--files::after { left: 100%; background: linear-gradient(90deg, var(--line-strong), transparent); }
.ws-panel--channels,
.ws-panel--goal,
.ws-panel--handoff { grid-column: 3; }
.ws-panel--channels::after,
.ws-panel--goal::after,
.ws-panel--handoff::after { right: 100%; background: linear-gradient(270deg, var(--line-strong), transparent); }
.ws-panel--tone { grid-row: 1; }
.ws-panel--hours { grid-row: 2; }
.ws-panel--files { grid-row: 3; }
.ws-panel--channels { grid-row: 1; }
.ws-panel--goal { grid-row: 2; }
.ws-panel--handoff { grid-row: 3; }

.ws-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.ws-panel-title .icon { width: 16px; height: 16px; color: var(--color-glow); }
.ws-hint { font-size: 12.5px; color: var(--color-text-muted); }
.ws-goal { font-family: var(--font-display); font-size: 17px; font-weight: 500; letter-spacing: -0.01em; color: var(--text-strong); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-text);
  background-color: var(--glass);
  box-shadow: var(--hairline);
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), scale var(--dur-micro) var(--ease-out);
}
.chip:hover { background-color: var(--glass-3); }
.chip:active { scale: 0.96; }
.chip.is-on {
  color: var(--accent-ink);
  background-color: var(--color-accent);
  box-shadow: 0 6px 18px -6px var(--accent-glow);
}

.ws-switch-row,
.ws-channels li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--color-text);
}
.ws-channels { display: grid; gap: 8px; list-style: none; }
.ws-channels li span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.ws-channels .icon { width: 16px; height: 16px; color: var(--color-glow); }
.switch {
  position: relative;
  width: 32px;
  height: 18px;
  flex: none;
  border-radius: var(--radius-pill);
  background-color: var(--glass-3);
  box-shadow: var(--hairline);
}
.switch i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--color-text-muted);
  transition: transform var(--dur-fast) var(--ease-out);
}
.switch.is-on { background-color: color-mix(in oklab, var(--color-accent) 80%, transparent); box-shadow: none; }
.switch.is-on i { transform: translateX(14px); background-color: #ffffff; }
.ws-files, .ws-rules { display: grid; gap: 6px; list-style: none; }
.ws-files li {
  padding: 7px 10px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text);
  background-color: var(--glass);
  box-shadow: var(--hairline);
}
.ws-rules li {
  position: relative;
  padding-left: 16px;
  color: var(--color-text);
}
.ws-rules li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 1.5px;
  background-color: var(--color-glow);
}

/* --------------------------------------------------------------------------
   11. Control (bento)
   -------------------------------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-areas:
    "a a a a a a a a b b b b"
    "a a a a a a a a c c c c"
    "d d d d d d e e e e e e";
  gap: 16px;
  margin-top: clamp(3rem, 6vw, 5rem);
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 250px;
  padding: clamp(22px, 2.4vw, 32px);
  border-radius: var(--radius-card);
  background-color: var(--glass);
  box-shadow: var(--elev-card), var(--hairline);
  overflow: hidden;
  isolation: isolate;
}
.tile::before,
[data-spotlight]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -30%), var(--spot), transparent 62%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  pointer-events: none;
}
.tile:hover::before,
[data-spotlight]:hover::before { opacity: 1; }
.tile-head { display: grid; gap: 4px; }
.tile-head h3 { font-size: clamp(1.125rem, 1.4vw, 1.3125rem); }
.tile-head p { font-size: 14px; color: var(--color-text-muted); }
.tile-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; font-size: 13.5px; color: var(--color-text-muted); }
.tile-foot b { color: var(--text-strong); font-weight: 600; }
.tile-foot .icon { width: 16px; height: 16px; color: var(--color-accent); }

.tile--sources {
  grid-area: a;
  background:
    radial-gradient(70% 60% at 100% 0%, color-mix(in oklab, var(--color-glow) 9%, transparent), transparent 70%),
    var(--glass);
}
.tile--speed {
  grid-area: b;
  background:
    radial-gradient(60% 80% at 50% 110%, var(--accent-soft), transparent 70%),
    var(--glass);
}
.tile--return { grid-area: c; }
.tile--pipeline { grid-area: d; }
.tile--agenda { grid-area: e; }

.tile-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: var(--space-5); box-shadow: inset 0 -1px 0 var(--color-line); }
.tile-total span { font-size: 13px; color: var(--color-text-muted); }
.tile-total strong {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}

.bars { display: grid; gap: 22px; margin-top: auto; padding-top: var(--space-5); }
.bar-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 88px;
  align-items: center;
  gap: 14px;
  font-size: 13.5px;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.bars:hover .bar-row { opacity: 0.5; }
.bars:hover .bar-row:hover { opacity: 1; }
.bar-label { color: var(--color-text); }
.bar { position: relative; height: 16px; }
.bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--v) * 100%);
  border-radius: 0 4px 4px 0;
  background: linear-gradient(90deg, color-mix(in oklab, var(--color-glow) 55%, transparent), var(--color-glow));
  transform-origin: left center;
}
.bar-row:first-child .bar i { background: linear-gradient(90deg, color-mix(in oklab, var(--color-glow) 70%, transparent), var(--text-strong)); }
.bar-value { text-align: right; font-family: var(--font-mono); font-size: 13px; color: var(--text-strong); font-variant-numeric: tabular-nums; }

.speed-readout {
  display: grid;
  place-items: center;
  flex: 1;
  font-family: var(--font-digital);
  font-weight: 700;
  font-size: clamp(3.5rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--text-strong);
  text-shadow: 0 0 24px color-mix(in oklab, var(--color-glow) 40%, transparent);
  font-variant-numeric: tabular-nums;
}
[data-theme="light"] .speed-readout { text-shadow: none; }

.return-number { display: flex; align-items: baseline; gap: 12px; }
.return-number strong {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.25rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-strong);
}
.return-number span { font-size: 14px; color: var(--color-text-muted); }
.return-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: auto;
  list-style: none;
  font-size: 13px;
  color: var(--color-text-muted);
}
.return-steps li { display: inline-flex; align-items: center; gap: 6px; }
.return-steps li + li::before {
  content: "";
  width: 12px;
  height: 1px;
  margin-right: 8px;
  background-color: var(--line-strong);
}
.return-steps b { color: var(--text-strong); font-weight: 600; font-variant-numeric: tabular-nums; }

.kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
}
.kb-col {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 132px;
  padding: 8px;
  border-radius: 10px;
  background-color: var(--glass);
  box-shadow: var(--hairline);
}
.kb-h {
  display: flex;
  justify-content: space-between;
  padding: 2px 2px 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}
.kb-h b { color: var(--text-strong); font-weight: 500; }
.kb-card {
  display: block;
  padding: 7px 8px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text);
  background-color: var(--color-surface);
  box-shadow: var(--hairline);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kb-card.is-hot { box-shadow: inset 0 0 0 1px var(--color-accent), 0 6px 16px -8px var(--accent-glow); color: var(--text-strong); }

.week {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
}
.day {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 6px;
  min-height: 132px;
  padding: 10px 4px;
  border-radius: 10px;
  background-color: var(--glass);
  box-shadow: var(--hairline);
}
.day span {
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.day.is-today { box-shadow: inset 0 0 0 1px var(--line-strong); background-color: var(--glass-2); }
.day.is-today span { color: var(--text-strong); }
.slot { display: block; width: 70%; height: 8px; border-radius: 3px; }
.slot.is-ok { background-color: color-mix(in oklab, var(--color-glow) 60%, transparent); }
.slot.is-wait { background-color: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }
.slot.is-hot { background-color: var(--color-accent); box-shadow: 0 0 10px var(--accent-glow); }
.legend { display: inline-block; width: 14px; height: 6px; border-radius: 2px; margin-left: 4px; }
.legend--ok { background-color: color-mix(in oklab, var(--color-glow) 60%, transparent); }
.legend--wait { box-shadow: inset 0 0 0 1px var(--line-strong); margin-left: 12px; }

.bento-note { margin-top: var(--space-4); font-size: 13px; color: var(--color-text-muted); text-align: right; }

/* --------------------------------------------------------------------------
   12. Leak (calculator)
   -------------------------------------------------------------------------- */
.leak-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.leak-copy { display: grid; gap: var(--space-7); }
.leak-copy h2 { max-width: 14ch; }
.leak-stat {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-5) 0;
  box-shadow: inset 0 1px 0 var(--color-line), inset 0 -1px 0 var(--color-line);
}
.leak-stat-number {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6vw, 5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--text-strong);
}
.leak-stat-text { max-width: 44ch; font-size: 15.5px; color: var(--color-text); }
.leak-stat-text cite {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.calc { display: grid; gap: var(--space-6); }
.calc-field { display: grid; gap: 8px; }
.calc-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.calc-label-row label { font-size: 15.5px; font-weight: 500; color: var(--text-strong); }
.calc-label-row output {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}
.calc-help { font-size: 13.5px; color: var(--color-text-muted); }

input[type="range"] {
  --fill: 50%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 32px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  touch-action: pan-y;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-glow) var(--fill), var(--color-line) var(--fill));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -11px;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-accent) 0 3.5px, var(--color-surface) 4px);
  box-shadow: 0 0 0 1px var(--line-strong), inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 6px 14px rgba(0, 0, 0, 0.35);
  transition: transform var(--dur-micro) var(--ease-out);
}
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.14); }
input[type="range"]::-moz-range-track { height: 2px; border-radius: 2px; background: var(--color-line); }
input[type="range"]::-moz-range-progress { height: 2px; border-radius: 2px; background: var(--color-glow); }
input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-accent) 0 3.5px, var(--color-surface) 4px);
  box-shadow: 0 0 0 1px var(--line-strong), 0 6px 14px rgba(0, 0, 0, 0.35);
}
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--color-canvas), 0 0 0 4px var(--color-accent); }
input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 2px var(--color-canvas), 0 0 0 4px var(--color-accent); }

.leak-result { position: sticky; top: calc(var(--header-h) + 48px); }
.leak-card {
  display: grid;
  gap: var(--space-4);
  padding: clamp(28px, 3vw, 40px);
  border-radius: var(--radius-shell);
  background:
    radial-gradient(90% 70% at 50% 0%, var(--accent-soft), transparent 70%),
    var(--color-surface);
  box-shadow: var(--elev-float), var(--hairline);
}
.leak-result-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-muted); }
.leak-result-number {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 4.6vw, 4.25rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}
.leak-result-number small { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.06em; color: var(--color-text-muted); }
.leak-result-year { font-size: 15px; color: var(--color-text-muted); }
.leak-result-year strong { color: var(--text-strong); font-weight: 600; font-variant-numeric: tabular-nums; }
.leak-method {
  padding-top: var(--space-4);
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-text-muted);
  box-shadow: inset 0 1px 0 var(--color-line);
}
.leak-card .btn { margin-top: var(--space-2); }

/* --------------------------------------------------------------------------
   13. Plans
   -------------------------------------------------------------------------- */
.plan-switch {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  width: max-content;
  max-width: 100%;
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
  padding: 5px;
  border-radius: var(--radius-pill);
  background-color: var(--glass);
  box-shadow: var(--hairline);
}
/* Selection lens: liquid glass on top of the labels (bends, never blurs). */
.plan-switch-pill {
  position: absolute;
  top: 5px;
  left: 0;
  z-index: 2;
  height: calc(100% - 10px);
  width: var(--pill-w, 0px);
  border-radius: var(--radius-pill);
  pointer-events: none;
  transform: translateX(var(--pill-x, 0px));
  transition: transform 0.5s var(--ease-spring), width 0.5s var(--ease-spring);
}
.plan-tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-muted);
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out);
}
.plan-tab:hover { color: var(--color-text); }
.plan-tab[aria-selected="true"] { color: var(--text-strong); }
.plan-tab-badge {
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent-ink);
  background-color: var(--color-accent);
}

.plan-stage { display: grid; margin-top: var(--space-5); }
.plan-panel {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  padding: 8px;
  border-radius: var(--radius-shell);
  background-color: var(--glass);
  box-shadow: var(--hairline);
}
.plan-panel[hidden] { display: none; }
.plan-main { display: grid; align-content: start; gap: var(--space-5); padding: clamp(24px, 3.5vw, 48px); }
.plan-name {
  font-size: clamp(2rem, 3.4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.plan-for { max-width: 46ch; font-size: var(--fs-lead); line-height: 1.5; color: var(--color-text); }
.plan-list { display: grid; gap: 12px; list-style: none; margin-top: var(--space-2); }
.plan-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 15.5px; color: var(--color-text); }
.plan-list .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--color-glow); stroke-width: 1.75; }
.plan-start {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  margin-top: var(--space-2);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-strong);
  background-color: var(--glass-2);
  box-shadow: var(--hairline);
}
.plan-start .icon { width: 16px; height: 16px; color: var(--color-accent); }

.plan-price {
  position: relative;
  display: grid;
  align-content: start;
  gap: var(--space-5);
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius-card);
  background-color: var(--color-surface);
  box-shadow: var(--elev-float), var(--hairline);
  overflow: hidden;
  isolation: isolate;
}
.tacho-wrap { display: grid; justify-items: center; }
.tacho { width: min(200px, 100%); overflow: visible; }
.tacho-track { fill: none; stroke: var(--color-line); stroke-width: 8; stroke-linecap: round; }
.tacho-fill {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: calc(var(--level, 0.5) * 100) 100;
  filter: drop-shadow(0 0 6px var(--accent-glow));
}
.tacho-ticks path { fill: none; stroke: var(--line-strong); stroke-width: 2; stroke-linecap: round; }
.tacho-needle { transform-box: view-box; transform-origin: 100px 106px; rotate: calc(-90deg + 180deg * var(--level, 0.5)); }
.tacho-needle path { fill: none; stroke: var(--text-strong); stroke-width: 3; stroke-linecap: round; }
.tacho-needle circle { fill: var(--text-strong); }

.price { display: grid; gap: var(--space-3); }
.price > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: var(--space-3);
  box-shadow: inset 0 -1px 0 var(--color-line);
}
.price dt { font-size: 14px; color: var(--color-text-muted); }
.price dd {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 2.4vw, 2.125rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.price dd small { font-family: var(--font-mono); font-size: 11.5px; font-weight: 400; letter-spacing: 0.04em; color: var(--color-text-muted); }
.price-from { margin-right: 6px; font-family: var(--font-body); font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--color-text-muted); }
.plan-note { font-size: 13px; text-align: center; color: var(--color-text-muted); }
.price-quote { display: grid; gap: 10px; padding-bottom: var(--space-5); box-shadow: inset 0 -1px 0 var(--color-line); text-align: left; }
.price-quote-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); }
.price-quote-title { font-family: var(--font-display); font-size: clamp(1.625rem, 2.4vw, 2.125rem); font-weight: 400; line-height: 1.08; letter-spacing: -0.02em; color: var(--text-strong); }
.price-quote-text { font-size: 14px; line-height: 1.6; color: var(--color-text-muted); }

.plans-adnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-5);
  font-size: 14px;
  color: var(--color-text-muted);
  text-align: center;
}
.plans-adnote .icon { width: 18px; height: 18px; color: var(--color-glow); }

.compare { margin-top: var(--space-7); border-radius: var(--radius-card); box-shadow: var(--hairline); }
.compare-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 60px;
  padding: 0 24px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text-strong);
}
.compare-toggle .icon { transition: transform var(--dur-fast) var(--ease-out); }
.compare-toggle[aria-expanded="true"] .icon { transform: scaleY(-1); }
.compare-panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.45s var(--ease-out), visibility 0s linear 0.45s;
}
.compare-panel.is-open {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.45s var(--ease-out), visibility 0s linear 0s;
}
.compare-inner { overflow: hidden; min-height: 0; }
.compare-table { width: 100%; margin: 0 0 12px; font-size: 14.5px; }
.compare-table th,
.compare-table td { padding: 12px 24px; text-align: left; font-weight: 400; }
.compare-table thead th {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-strong);
  box-shadow: inset 0 -1px 0 var(--color-line);
}
.compare-table tbody th[scope="row"] { color: var(--color-text); width: 34%; }
.compare-table td { color: var(--color-text-muted); }
.compare-group th {
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-glow) !important;
}
.yes, .no {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 22px;
  overflow: hidden;
  white-space: nowrap;
  text-indent: 120%;
  vertical-align: middle;
}
.yes::before, .no::before {
  content: "";
  position: absolute;
  inset: 0;
  -webkit-mask: var(--glyph) center / 20px 20px no-repeat;
  mask: var(--glyph) center / 20px 20px no-repeat;
}
.yes::before {
  --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5l10 -10'/%3E%3C/svg%3E");
  background-color: var(--color-glow);
}
.no::before {
  --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M7 12h10'/%3E%3C/svg%3E");
  background-color: var(--line-strong);
}

/* --------------------------------------------------------------------------
   14. Fit
   -------------------------------------------------------------------------- */
.fit-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  margin-top: clamp(3rem, 6vw, 4.5rem);
  box-shadow: var(--hairline);
  border-radius: 2px;
}
.fit-col { display: grid; align-content: start; gap: var(--space-6); padding: clamp(28px, 4vw, 56px); }
.fit-col--no { box-shadow: inset 1px 0 0 var(--color-line); }
.fit-col h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); }
.fit-col--no h3 { color: var(--color-text-muted); }
.fit-list { display: grid; gap: var(--space-5); list-style: none; }
.fit-list li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; font-size: 16.5px; line-height: 1.5; color: var(--color-text); }
.fit-list .icon { width: 22px; height: 22px; margin-top: 1px; }
.fit-col--yes .icon { color: var(--color-accent); stroke-width: 1.8; }
.fit-col--no li { color: var(--color-text-muted); }
.fit-col--no .icon { color: var(--color-text-muted); }

/* --------------------------------------------------------------------------
   15. FAQ
   -------------------------------------------------------------------------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.faq-intro { position: sticky; top: calc(var(--header-h) + 48px); display: grid; gap: var(--space-5); }
.faq-intro h2 { font-size: clamp(2rem, 3.4vw, 3rem); }
.faq-list { box-shadow: inset 0 1px 0 var(--color-line); }
.acc { box-shadow: inset 0 -1px 0 var(--color-line); }
.acc-h { font: inherit; }
.acc-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 72px;
  padding: 20px 0;
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.012em;
  text-align: left;
  color: var(--text-strong);
  transition: color var(--dur-fast) var(--ease-out);
}
.acc-btn:hover { color: var(--color-glow); }
.acc-btn .icon { width: 22px; height: 22px; color: var(--color-text-muted); transition: transform 0.35s var(--ease-out); }
.acc-btn[aria-expanded="true"] .icon { transform: scaleY(-1); color: var(--color-accent); }
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.4s var(--ease-out), visibility 0s linear 0.4s;
}
.acc-panel.is-open {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.4s var(--ease-out), visibility 0s linear 0s;
}
.acc-inner { overflow: hidden; min-height: 0; }
.acc-inner p { max-width: 62ch; padding-bottom: 24px; font-size: 16px; line-height: 1.65; color: var(--color-text-muted); }

/* --------------------------------------------------------------------------
   16. Final CTA
   -------------------------------------------------------------------------- */
.final-head {
  display: grid;
  justify-items: center;
  gap: var(--space-5);
  max-width: 860px;
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 56px);
  text-align: center;
  box-shadow: var(--hairline);
}
.final-title { font-size: clamp(3rem, 6.4vw, 6rem); line-height: 1.02; letter-spacing: -0.04em; }
.final-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 980px;
  margin: var(--space-7) auto 0;
}
.final-card {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: var(--space-4);
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius-shell);
  background-color: var(--glass);
  box-shadow: var(--elev-card), var(--hairline);
  overflow: hidden;
  isolation: isolate;
}
.final-card h3 { margin-top: var(--space-3); font-size: clamp(1.5rem, 2.2vw, 1.875rem); letter-spacing: -0.025em; }
.final-card p { max-width: 38ch; color: var(--color-text-muted); }
.final-card .btn { margin-top: var(--space-4); }
.final-illus {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 112px;
  padding: 18px;
  border-radius: var(--radius-card);
  background-color: var(--color-surface);
  box-shadow: var(--elev-float), var(--hairline);
}
.slot-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text);
  background-color: var(--glass);
  box-shadow: var(--hairline);
}
.slot-pill small { font-family: var(--font-body); font-size: 11.5px; color: var(--accent-ink); opacity: 0.8; }
.slot-pill.is-picked { color: var(--accent-ink); background-color: var(--color-accent); box-shadow: 0 8px 20px -8px var(--accent-glow); }
.final-illus--quiz { flex-direction: column; align-items: flex-start; }
.quiz-bubble {
  padding: 9px 12px;
  border-radius: 12px;
  border-bottom-left-radius: 4px;
  font-size: 13px;
  color: var(--color-text);
  background-color: var(--glass-2);
  box-shadow: var(--hairline);
}
.quiz-opts { display: flex; gap: 6px; }
.quiz-opts i {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-style: normal;
  color: var(--color-text);
  box-shadow: var(--hairline);
}
.quiz-opts i.is-picked { color: var(--text-strong); background-color: var(--glass-3); box-shadow: inset 0 0 0 1px var(--line-strong); }

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  padding-top: clamp(4rem, 8vw, 6rem);
  overflow: clip;
  box-shadow: inset 0 1px 0 var(--color-line);
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 2fr);
  gap: var(--space-7);
  align-items: start;
}
.footer-brand { display: grid; gap: var(--space-3); }
.footer-brand p { max-width: 32ch; color: var(--color-text-muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14.5px; color: var(--color-text-muted); transition: color var(--dur-fast) var(--ease-out); }
.footer-nav a:hover { color: var(--text-strong); }
.footer-legal { font-size: 13.5px; color: var(--color-text-muted); text-align: right; padding-top: 12px; }
.footer-wordmark {
  margin-top: clamp(2rem, 5vw, 4rem);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(5.5rem, 23vw, 22rem);
  line-height: 0.78;
  letter-spacing: -0.065em;
  text-align: center;
  white-space: nowrap;
  background: linear-gradient(180deg, var(--line-strong), transparent 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  user-select: none;
  position: relative;
  top: 0.14em;
}

/* --------------------------------------------------------------------------
   18. Modals, forms, quiz
   -------------------------------------------------------------------------- */
.modal {
  width: min(560px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-text);
  overflow: visible;
}
.modal::backdrop {
  background-color: var(--scrim);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.modal[open]::backdrop { animation: backdrop-in 0.35s var(--ease-out); }
.modal.is-closing::backdrop { animation: backdrop-out 0.2s ease forwards; }
.modal[open] .modal-card { animation: modal-in 0.5s var(--ease-out); }
.modal.is-closing .modal-card { animation: modal-out 0.2s var(--ease-in) forwards; }
@keyframes backdrop-in { from { opacity: 0; } }
@keyframes backdrop-out { to { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(0.96); } }
@keyframes modal-out { to { opacity: 0; transform: translateY(6px) scale(0.98); } }

.modal-card {
  position: relative;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-shell);
  background-color: var(--color-surface);
  box-shadow: var(--elev-float), var(--hairline), 0 40px 80px -24px rgba(0, 0, 0, 0.55);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--color-text-muted);
  background-color: var(--glass);
  box-shadow: var(--hairline);
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.modal-close:hover { color: var(--text-strong); background-color: var(--glass-2); }
.modal-title {
  padding-right: 48px;
  font-size: clamp(1.625rem, 3vw, 2.125rem);
  letter-spacing: -0.03em;
}
.modal-sub { margin-top: 8px; color: var(--color-text-muted); }

.dx-form { display: grid; gap: var(--space-5); margin-top: var(--space-6); }
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field label,
.field legend { padding: 0; font-size: 14.5px; font-weight: 500; color: var(--text-strong); }
.field input[type="text"],
.field input[type="tel"],
.field select {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-input);
  font-size: 16px;
  color: var(--text-strong);
  background-color: var(--glass);
  box-shadow: var(--hairline);
  transition: box-shadow var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239da7ba' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6 -6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
}
.field select option { color: #0b1222; }
.field input:hover,
.field select:hover { background-color: var(--glass-2); }
.field input:focus-visible,
.field select:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--color-accent), 0 0 0 4px var(--accent-soft);
}
.field-help { font-size: 13px; color: var(--color-text-muted); }
.field-error { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--text-strong); }
.field-error[hidden] { display: none; }
.field-error .icon { width: 16px; height: 16px; color: var(--color-accent); }
.field.is-invalid input { box-shadow: inset 0 0 0 1px var(--color-accent); }
.field.is-shaking { animation: shake 0.42s var(--ease-out); }
@keyframes shake {
  20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

.check-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.check-chip { position: relative; cursor: pointer; }
.check-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  color: var(--color-text);
  background-color: var(--glass);
  box-shadow: var(--hairline);
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.check-chip input:checked + span { color: var(--text-strong); background-color: var(--glass-3); box-shadow: inset 0 0 0 1px var(--color-glow); }
.check-chip input:focus-visible + span { box-shadow: 0 0 0 2px var(--color-canvas), 0 0 0 4px var(--color-accent); }

.dx-submit { margin-top: var(--space-2); }
.dx-submit[aria-busy="true"] { pointer-events: none; }
.dx-submit[aria-busy="true"] .btn-icon .icon { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { min-height: 1.4em; font-size: 14px; color: var(--text-strong); }
.form-privacy { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--color-text-muted); }
.form-privacy .icon { width: 15px; height: 15px; }

.modal-success { display: grid; justify-items: center; gap: var(--space-4); padding: var(--space-6) 0 var(--space-3); text-align: center; }
.modal-success[hidden] { display: none; }
.modal-success .modal-title { padding-right: 0; }
.modal-success .btn { margin-top: var(--space-4); }
.success-check { width: 72px; height: 72px; }
.success-ring { fill: var(--accent-soft); stroke: var(--color-accent); stroke-width: 2; }
.success-tick { fill: none; stroke: var(--text-strong); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 36; stroke-dashoffset: 36; }
.modal-success.is-shown .success-tick { animation: tick 0.5s var(--ease-out) 0.2s forwards; }
@keyframes tick { to { stroke-dashoffset: 0; } }

.modal-card--quiz { display: grid; gap: var(--space-4); }
.quiz-thread { display: grid; gap: 10px; min-height: 220px; align-content: start; margin-top: var(--space-4); }
.quiz-thread .msg p { font-size: 15px; }
.quiz-options { display: flex; flex-wrap: wrap; gap: 8px; }
.quiz-options .chip { min-height: 44px; font-size: 14.5px; }
.quiz-result {
  display: grid;
  gap: var(--space-3);
  margin-top: 6px;
  padding: var(--space-5);
  border-radius: var(--radius-card);
  background:
    radial-gradient(90% 90% at 0% 0%, var(--accent-soft), transparent 70%),
    var(--glass);
  box-shadow: var(--elev-card), inset 0 0 0 1px var(--line-strong);
}
.quiz-result-label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-muted); }
.quiz-result-name { font-family: var(--font-display); font-size: 1.75rem; font-weight: 500; letter-spacing: -0.03em; color: var(--text-strong); }
.quiz-result p { color: var(--color-text); }
.quiz-result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--space-2); }

/* --------------------------------------------------------------------------
   19. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .fan-slot--left { --w: 288px; top: 60px; margin-left: calc(var(--w) / -2 - 290px); }
  .fan-slot--right { --w: 288px; top: 60px; margin-left: calc(var(--w) / -2 + 290px); }
  .workspace { grid-template-columns: minmax(0, 1fr) minmax(0, 440px) minmax(0, 1fr); gap: 24px 32px; }
  .ws-panel::after { width: 32px; }
}

@media (max-width: 1023px) {
  .nav { display: none; }
  .fan-slot--left { --w: 270px; top: 48px; margin-left: calc(var(--w) / -2 - 236px); }
  .fan-slot--right { --w: 270px; top: 48px; margin-left: calc(var(--w) / -2 + 236px); }
  .header-inner { grid-template-columns: 1fr auto; }

  /* Circuit: compact mode, only the stage is pinned */
  .circuit-pin { display: block; min-height: 0; padding-block: var(--section-pad) 0; }
  .circuit-inner { display: block; }
  .circuit-copy { display: block; }
  .circuit-head { max-width: 640px; }
  .circuit-stage {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: var(--space-4);
    min-height: 100dvh;
    padding-block: calc(var(--header-h) + 40px) 32px;
  }
  .circuit-clock,
  .circuit-diagram,
  .circuit-steps { grid-area: auto; }
  .circuit-clock { margin-top: 0; }
  .circuit-diagram { align-self: center; max-width: 720px; width: 100%; margin-inline: auto; }
  .circuit-steps { position: relative; display: grid; margin-top: 0; min-height: 3.4em; }
  .circuit-step { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease-out), visibility 0s linear 0.35s; }
  .circuit-step.is-active { opacity: 1; visibility: visible; transition: opacity 0.35s var(--ease-out), visibility 0s linear 0s; }

  .workspace {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    gap: 16px;
  }
  .ws-window { grid-column: 1 / -1; grid-row: 1; max-width: 560px; width: 100%; justify-self: center; margin-bottom: 8px; }
  .ws-panel { grid-column: auto !important; grid-row: auto !important; }
  .ws-panel::after { display: none; }
  .ws-panel--tone { grid-column: 1 / -1 !important; }

  .bento {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-areas:
      "a a a a a a"
      "b b b c c c"
      "d d d d d d"
      "e e e e e e";
  }

  .leak-grid { grid-template-columns: minmax(0, 1fr); }
  .leak-result { position: static; }

  .plan-panel { grid-template-columns: minmax(0, 1fr); }

  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-intro { position: static; }

  .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-legal { grid-column: 1 / -1; text-align: left; padding-top: 0; }
}

@media (max-width: 767px) {
  :root { --header-h: 52px; }
  .site-header { padding: 10px var(--gutter); }
  .header-inner { padding: 0 6px 0 12px; }
  .header-actions .btn { display: none; }
  .menu-btn { display: grid; }
  .cta-bar { display: block; }

  .hero { padding-top: 6.5rem; }
  .hero .eyebrow { margin-bottom: var(--space-5); }
  .hero-frame { padding: 12px 10px; }
  .hero-display { font-size: clamp(2.75rem, 12.4vw, 3.5rem); }
  .hero-sub { font-size: 1.0625rem; max-width: 30ch; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; max-width: 360px; justify-content: space-between; }

  .fan { height: 470px; margin-top: var(--space-7); }
  .fan-slot--center { --w: min(340px, calc(100vw - 2 * var(--gutter))); }
  .fan-slot--left { --w: 260px; top: 36px; margin-left: calc(var(--w) / -2 - 64px); opacity: 0.55; }
  .fan-slot--right { --w: 260px; top: 36px; margin-left: calc(var(--w) / -2 + 64px); opacity: 0.55; }
  .fan-slot--left .fan-card { transform: rotate(-5deg) scale(0.92); }
  .fan-slot--right .fan-card { transform: rotate(5deg) scale(0.92); }
  .chat-body { min-height: 290px; }

  .strokes-line {
    top: 36px;
    bottom: 36px;
    left: 35px;
    right: auto;
    width: 1px;
    height: auto;
  }
  .strokes-line-fill {
    background: linear-gradient(180deg, var(--line-strong), var(--color-glow) 50%, var(--line-strong));
    transform-origin: center top;
  }
  .strokes-row { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .stroke {
    grid-template-columns: 72px 1fr;
    grid-template-rows: auto auto;
    justify-items: start;
    column-gap: var(--space-5);
    row-gap: 4px;
    text-align: left;
  }
  .stroke-node { grid-row: 1 / span 2; margin-bottom: 0; }
  .stroke h3 { align-self: end; }
  .stroke p { max-width: none; }

  .circuit-svg--wide { display: none; }
  .circuit-svg--tall { display: block; max-height: 58dvh; width: auto; max-width: 100%; margin-inline: auto; }
  .circuit-stage { padding-block: calc(var(--header-h) + 24px) 24px; gap: var(--space-3); }
  .circuit-clock-digits { font-size: 2.25rem; }
  .circuit-step { grid-template-columns: 64px 1fr; font-size: 14.5px; }

  .workspace { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .ws-panel--tone { grid-column: auto !important; }

  .bento {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "a" "b" "c" "d" "e";
  }
  .tile { min-height: 0; }
  .bar-row { grid-template-columns: 96px minmax(0, 1fr) 74px; gap: 10px; font-size: 13px; }
  .speed-readout { min-height: 120px; }
  .kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kb-col { min-height: 0; }
  .week { gap: 5px; }
  .bento-note { text-align: left; }

  .leak-stat { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }

  .plan-switch { width: 100%; grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 18px; }
  .plan-switch-pill { border-radius: 14px; }
  .plan-tab { justify-content: center; height: 52px; padding: 0 8px; border-radius: 14px; font-size: 13.5px; white-space: normal; text-align: center; line-height: 1.15; }
  .plan-tab-badge { display: none; }
  .plan-main { padding: 20px 16px 28px; }
  .plan-price { padding: 24px 20px; }

  .compare { overflow-x: auto; }
  .compare-table { min-width: 560px; }
  .compare-table th,
  .compare-table td { padding: 10px 14px; }

  .fit-grid { grid-template-columns: minmax(0, 1fr); }
  .fit-col--no { box-shadow: inset 0 1px 0 var(--color-line); }

  .final-cards { grid-template-columns: minmax(0, 1fr); }
  .final-card .btn { width: 100%; justify-content: space-between; }

  .footer-inner { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .site-footer { padding-bottom: 88px; }
}

@media (max-width: 380px) {
  .daynight-btn { min-width: 96px; }
  .bar-row { grid-template-columns: 84px minmax(0, 1fr) 70px; }
}

/* --------------------------------------------------------------------------
   20. Motion preferences, transparency, forced colors
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .js .intro { display: none; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .circuit-step { opacity: 1 !important; visibility: visible !important; grid-area: auto !important; }
  .c-particle { display: none; }
  html { scroll-behavior: auto; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header[data-state="scrolled"] .header-inner,
  .mobile-menu { background-color: var(--color-canvas); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .modal::backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (forced-colors: active) {
  .grad,
  .eyebrow span,
  .grad.is-split .split-line,
  .grad.is-split .split-char { -webkit-text-fill-color: CanvasText; color: CanvasText; background: none; filter: none; }
  .btn-primary { border: 1px solid ButtonText; }
  .footer-wordmark { display: none; }
}

.no-gsap .typing { display: none; }

/* --------------------------------------------------------------------------
   21. Cross-page transition + inline links
   -------------------------------------------------------------------------- */
.page-veil { position: fixed; inset: 0; z-index: 300; pointer-events: none; }
.inline-link {
  color: var(--text-strong);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease-out);
}
.inline-link:hover { color: var(--accent-text); }

/* --------------------------------------------------------------------------
   20. Homologación con el sistema Avanzza
   Misma voz que el resto del sitio: serif de un solo peso para hablar,
   mono para la interfaz, wordmark en Sora.
   -------------------------------------------------------------------------- */
body { letter-spacing: -0.01em; }
h2, h3,
.hero-lead,
.hero-display,
.mobile-menu-nav a,
.pipe-total strong,
.tile-total strong,
.return-number strong,
.leak-stat-number,
.leak-result-number,
.price dd,
.compare-table thead th,
.acc-btn,
.quiz-result-name,
.ws-goal { font-weight: 400; }
h2 { letter-spacing: -0.028em; line-height: 1.02; }
.brand-word,
.footer-wordmark { font-family: var(--font-brand); font-weight: 600; }
.circuit-clock-digits,
.speed-readout { font-weight: 500; letter-spacing: -0.02em; }
.btn {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav a { font-size: 12.5px; letter-spacing: 0.07em; text-transform: uppercase; }
.nav a[aria-current="page"] { color: var(--text-strong); background-color: var(--glass-2); }
.mobile-menu { justify-content: flex-start; }
.mobile-menu > .btn { margin-top: auto; }
.mobile-menu-nav a[aria-current="page"] { color: var(--accent-text); }
.mobile-menu-sub { display: flex; flex-wrap: wrap; gap: 8px; margin-top: calc(-1 * var(--space-4)); }
.mobile-menu-sub a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-text);
  box-shadow: var(--hairline);
}
.site-header[data-state="scrolled"] .header-inner { max-width: 1060px; }

