/* ============================================================================
   Curelum — the autonomous operations layer for advanced-composite manufacturing
   Carbon-black instrument aesthetic. Aerospace-cyan primary + 6 product accents.
   Hand-authored design system. Same --bg on every page.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/archivo/v19/k3k6o8UDI-1M0wlSV9XAw6lQkqWY8Q82sJaRE-NWIDdgffTTNDNZ9xdp.woff2) format('woff2');
}
@font-face {
  font-family: 'Archivo Expanded';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 125%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/archivo/v19/k3k6o8UDI-1M0wlSV9XAw6lQkqWY8Q82sJaRE-NWIDdgffTTNDNZ9xdp.woff2) format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/jetbrainsmono/v18/tDbY2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKxjPVmUsaaDhw.woff2) format('woff2');
}

/* ---------- Design tokens ---------- */
:root {
  /* surfaces — identical across every page */
  --bg:          oklch(0.168 0.012 240);
  --bg-2:        oklch(0.195 0.013 240);
  --surface:     oklch(0.215 0.014 240);
  --surface-2:   oklch(0.255 0.016 240);
  --line:        oklch(0.31 0.014 240);
  --line-strong: oklch(0.42 0.015 240);

  /* ink */
  --ink:   oklch(0.975 0.004 240);
  --ink-2: oklch(0.865 0.008 240);
  --ink-3: oklch(0.70 0.012 240);
  --ink-4: oklch(0.60 0.013 240);

  /* aerospace-cyan primary */
  --cyan:        #17B2C4;
  --cyan-bright: #3ad6e6;
  --cyan-dim:    color-mix(in oklab, var(--cyan) 22%, var(--bg));
  --cyan-ink:    var(--bg);

  /* product accents */
  --plyoq:   #17B2C4;
  --voidra:  #F5A524;
  --curevo:  #F04E23;
  --strandix:#7C5CFF;
  --roboply: #22B07D;
  --yieldex: #E7B008;

  /* accent — per-page override; defaults to cyan */
  --accent:        var(--cyan);
  --accent-bright: var(--cyan-bright);
  --accent-ink:    var(--bg);
  --accent-dim:    color-mix(in oklab, var(--accent) 20%, var(--bg));
  --accent-glow:   color-mix(in oklab, var(--accent) 40%, transparent);

  /* type */
  --font-sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-disp: 'Archivo Expanded', 'Archivo', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* layout */
  --wrap:  1200px;
  --wrap-wide: 1320px;
  --pad:   clamp(1.25rem, 5vw, 3rem);
  --sect:  clamp(4.5rem, 9vw, 8rem);
  --radius: 12px;
  --radius-sm: 6px;
  --radius-lg: 18px;

  /* z-index scale */
  --z-base: 1;
  --z-nav: 100;
  --z-dropdown: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-feature-settings: 'ss01', 'cv01';
}

/* subtle carbon-weave texture behind everything, same on every page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background: none;
  pointer-events: none;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.5;
  pointer-events: none;
  background-image: none;
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(1200px 800px at 50% 0%, #000 0%, transparent 70%);
          mask-image: radial-gradient(1200px 800px at 50% 0%, #000 0%, transparent 70%);
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  color: var(--ink);
  font-family: var(--font-disp);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 1.6rem + 4.4vw, 5.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.7vw, 3.4rem); letter-spacing: -0.018em; }
h3 { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.85rem); letter-spacing: -0.012em; }
h4 { font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.25rem); font-family: var(--font-sans); font-weight: 700; letter-spacing: -0.006em; }
p { text-wrap: pretty; }
strong { color: var(--ink); font-weight: 600; }

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.kicker::before {
  content: '';
  width: 1.6rem;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.lead {
  font-size: clamp(1.1rem, 1.02rem + 0.55vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 62ch;
}
.prose { max-width: 68ch; }
.prose p + p { margin-top: 1.1em; }

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.wrap-wide { max-width: var(--wrap-wide); }
.section { padding-block: var(--sect); position: relative; }
.section-tight { padding-block: clamp(3rem, 6vw, 5rem); }
.center { text-align: center; }
.center .lead, .center .kicker { margin-inline: auto; }
.stack > * + * { margin-top: 1.2rem; }
.stack-sm > * + * { margin-top: 0.6rem; }
.eyebrow-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.6rem); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.auto-fit { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.auto-fit-sm { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.auto-fit-lg { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split-7-5 { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }

.section-head { max-width: 60ch; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.section-head.center { margin-inline: auto; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: color-mix(in oklab, var(--bg) 82%, var(--bg));
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: color-mix(in oklab, var(--bg) 94%, var(--bg)); }
.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.4rem);
  height: 68px;
  max-width: var(--wrap-wide);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.brand svg { width: 30px; height: 30px; }
.brand-name {
  font-family: var(--font-disp);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.nav-links { display: flex; align-items: center; gap: 0.35rem; margin-left: 0.5rem; }
.nav-link {
  position: relative;
  padding: 0.5rem 0.75rem;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--ink-3);
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--ink); }
.nav-link[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0.75rem; right: 0.75rem; bottom: -1px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.nav-link .caret { width: 0.7em; transition: transform 0.25s; }
.nav-spacer { flex: 1; }
.nav-cta { display: flex; align-items: center; gap: 0.6rem; }

/* products mega panel via <details> */
.mega { position: relative; }
.mega > summary { list-style: none; cursor: pointer; }
.mega > summary::-webkit-details-marker { display: none; }
.mega[open] > summary .caret { transform: rotate(180deg); }
.mega[open] > summary .nav-link { color: var(--ink); }
.mega-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, 92vw);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: none;
  padding: 1rem;
  z-index: var(--z-dropdown);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  animation: mega-in 0.22s var(--ease-out);
}
@keyframes mega-in { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } }
.mega-item {
  display: flex;
  gap: 0.8rem;
  padding: 0.8rem;
  border-radius: var(--radius);
  transition: background 0.2s;
}
.mega-item:hover { background: var(--surface); }
.mega-ico { width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center; border: 1px solid var(--line); }
.mega-ico svg { width: 22px; height: 22px; }
.mega-item h5 { font-size: 0.95rem; color: var(--ink); font-weight: 600; margin-bottom: 0.15rem; }
.mega-item p { font-size: 0.82rem; color: var(--ink-3); line-height: 1.4; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.3rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: -0.005em;
  line-height: 1;
  transition: transform 0.18s var(--ease-out), background 0.2s, border-color 0.2s, box-shadow 0.25s, color 0.2s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: none;
}
.btn-primary:hover { background: var(--accent-bright); box-shadow: none; }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--ink); background: color-mix(in oklab, var(--accent) 8%, var(--bg)); }
.btn-quiet { color: var(--ink-2); padding-inline: 0.4rem; }
.btn-quiet:hover { color: var(--accent-bright); }
.btn .arr { transition: transform 0.2s var(--ease-out); }
.btn:hover .arr { transform: translateX(3px); }
.btn-lg { padding: 0.92rem 1.7rem; font-size: 1.02rem; }

/* ---------- Chips / tags / pills ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--surface) 60%, var(--bg));
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.tag-accent { border-color: color-mix(in oklab, var(--accent) 45%, var(--line)); color: var(--accent-bright); }

/* ---------- Panels & cards ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.5vw, 2rem);
  position: relative;
  transition: border-color 0.25s, transform 0.25s var(--ease-out);
}
.panel-hover:hover { border-color: color-mix(in oklab, var(--accent) 40%, var(--line)); transform: translateY(-3px); }
.panel-lg { padding: clamp(1.8rem, 3vw, 2.8rem); }
.panel-accent { border-top: 1px solid var(--accent); }
.panel h3, .panel h4 { margin-bottom: 0.5rem; }
.panel p { color: var(--ink-3); font-size: 0.95rem; }

.ico-badge {
  width: 46px; height: 46px;
  border-radius: 11px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.ico-badge svg { width: 24px; height: 24px; }

/* feature row (alternating) */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.feature-row + .feature-row { margin-top: clamp(3rem, 6vw, 6rem); }
.feature-row.flip .feature-media { order: -1; }
.feature-media {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  padding: clamp(1.2rem, 2.5vw, 2rem);
  overflow: hidden;
  position: relative;
}

/* ---------- Stat readouts ---------- */
.readouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.readout { background: var(--bg-2); padding: clamp(1.3rem, 2.5vw, 1.9rem); }
.readout .num { font-family: var(--font-disp); font-weight: 800; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); color: var(--ink); letter-spacing: -0.03em; line-height: 1; }
.readout .num .unit { color: var(--accent); font-size: 0.6em; margin-left: 0.05em; }
.readout .lbl { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; color: var(--ink-3); margin-top: 0.6rem; text-transform: uppercase; }
.readout .sub { font-size: 0.85rem; color: var(--ink-4); margin-top: 0.35rem; }

/* ---------- Spec table ---------- */
.spec { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 0.86rem; }
.spec th, .spec td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); }
.spec th { color: var(--ink-3); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.72rem; width: 38%; vertical-align: top; }
.spec td { color: var(--ink-2); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: none; }

/* ---------- Loop diagram list ---------- */
.loop-stage { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.loop-stage:last-child { border-bottom: none; }
.loop-idx { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); padding-top: 0.15rem; min-width: 2.2rem; }
.loop-stage h4 { color: var(--ink); }
.loop-stage p { color: var(--ink-3); font-size: 0.9rem; margin-top: 0.2rem; }

/* ---------- Steps / process ---------- */
.steps { counter-reset: step; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.step { background: var(--bg-2); padding: clamp(1.4rem, 2.5vw, 2rem); position: relative; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.step h4 { margin: 0.7rem 0 0.4rem; color: var(--ink); }
.step p { color: var(--ink-3); font-size: 0.92rem; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 1.6rem; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--line-strong); }
.tl-item { position: relative; padding-bottom: 2.2rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ''; position: absolute; left: -1.6rem; top: 4px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.tl-item .tl-when { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--accent); text-transform: uppercase; }
.tl-item h4 { margin: 0.35rem 0 0.5rem; color: var(--ink); }
.tl-item p { color: var(--ink-3); font-size: 0.92rem; }

/* ---------- List checks ---------- */
.checks { display: grid; gap: 0.75rem; }
.checks li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--ink-2); font-size: 0.96rem; }
.checks li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 0.2rem; color: var(--accent); }

/* ---------- Logo / marquee strip ---------- */
.strip { display: flex; flex-wrap: wrap; gap: clamp(1.2rem, 4vw, 3rem); align-items: center; justify-content: center; }
.strip .item { font-family: var(--font-mono); font-size: 0.9rem; letter-spacing: 0.08em; color: var(--ink-4); text-transform: uppercase; }

/* ---------- Persona tabs ---------- */
.tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.tab {
  padding: 0.7rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.tabpanel[hidden] { display: none; }
.tabpanel { animation: fade-up 0.4s var(--ease-out); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(3.5rem, 8vw, 7rem); overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; z-index: -1; opacity: 0.85; }
.hero-grad { position: absolute; inset: 0; z-index: -1; background: none; pointer-events: none; }
.hero-inner { position: relative; }
.hero h1 { max-width: 16ch; }
.hero .lead { margin-top: 1.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.hero-meta .m { }
.hero-meta .m .k { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--ink-4); text-transform: uppercase; }
.hero-meta .m .v { font-family: var(--font-disp); font-weight: 700; font-size: 1.3rem; color: var(--ink); margin-top: 0.2rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(2.2rem, 5vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band .lead { margin: 1rem auto 0; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Product accent theming (per page) ---------- */
[data-accent="plyoq"]    { --accent: var(--plyoq);   --accent-bright: #4fd3e2; --accent-ink: #04181b; }
[data-accent="voidra"]   { --accent: var(--voidra);  --accent-bright: #ffbf52; --accent-ink: #1c1200; }
[data-accent="curevo"]   { --accent: var(--curevo);  --accent-bright: #ff714f; --accent-ink: #200600; }
[data-accent="strandix"] { --accent: var(--strandix);--accent-bright: #9d84ff; --accent-ink: #0c0730; }
[data-accent="roboply"]  { --accent: var(--roboply); --accent-bright: #43cf9c; --accent-ink: #03170f; }
[data-accent="yieldex"]  { --accent: var(--yieldex); --accent-bright: #ffcf2e; --accent-ink: #1a1400; }

/* ---------- SVG data-viz scenes ---------- */
.viz { width: 100%; height: auto; }
.viz .grid-l { stroke: var(--line); stroke-width: 1; }
.viz .axis { stroke: var(--line-strong); stroke-width: 1.2; }
.viz .lbl { fill: var(--ink-4); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; }
.viz .lbl-a { fill: var(--accent); }
.viz .tow { stroke: var(--accent); fill: none; stroke-width: 6; stroke-linecap: round; }
.viz .plot { stroke: var(--accent); fill: none; stroke-width: 2.5; }
.viz .plot-fill { fill: color-mix(in oklab, var(--accent) 16%, transparent); }
.viz .node { fill: var(--accent); }
.viz .ink { fill: var(--ink-2); }
.viz .dim { fill: var(--ink-4); }

/* draw-in animation for hero viz strokes */
.viz .draw { stroke-dasharray: var(--len, 400); stroke-dashoffset: var(--len, 400); }
.is-in .viz .draw, .no-motion .viz .draw { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s var(--ease-out-expo); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: clamp(4rem, 8vw, 7rem); padding-block: clamp(3rem, 6vw, 5rem) 2.5rem; background: none; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.footer-brand p { color: var(--ink-3); font-size: 0.9rem; max-width: 30ch; margin-top: 1rem; }
.footer-col h5 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 1rem; }
.footer-col a { display: block; padding: 0.32rem 0; font-size: 0.9rem; color: var(--ink-3); transition: color 0.2s; }
.footer-col a:hover { color: var(--accent-bright); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.8rem; border-top: 1px solid var(--line); }
.footer-bottom p, .footer-bottom a { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-4); }
.footer-legal { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-legal a:hover { color: var(--accent-bright); }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); position: relative; overflow: hidden; }
.page-hero .hero-grad { opacity: 0.8; }
.page-hero h1 { font-size: clamp(2.3rem, 1.6rem + 3.4vw, 4.2rem); max-width: 18ch; }
.breadcrumb { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.05em; color: var(--ink-4); margin-bottom: 1.4rem; display: flex; gap: 0.5rem; align-items: center; }
.breadcrumb a:hover { color: var(--accent-bright); }
.breadcrumb .sep { opacity: 0.5; }

/* ---------- Callout ---------- */
.callout { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); background: color-mix(in oklab, var(--accent) 6%, var(--bg-2)); }
.callout .mono { color: var(--accent); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.callout blockquote { font-family: var(--font-disp); font-weight: 600; font-size: clamp(1.3rem, 1rem + 1.5vw, 2rem); color: var(--ink); line-height: 1.25; margin: 0.8rem 0; letter-spacing: -0.01em; }
.callout cite { font-style: normal; font-size: 0.9rem; color: var(--ink-3); }

/* quote big */
.pull { font-family: var(--font-disp); font-weight: 600; font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.9rem); line-height: 1.18; color: var(--ink); letter-spacing: -0.02em; max-width: 22ch; }
.pull .hl { color: var(--accent); }

/* ---------- FAQ (details) ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.25rem 0; display: flex; justify-content: space-between; gap: 1rem; align-items: center; color: var(--ink); font-family: var(--font-sans); font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 20px; height: 20px; flex-shrink: 0; position: relative; }
.faq summary .pm::before, .faq summary .pm::after { content: ''; position: absolute; background: var(--accent); transition: transform 0.25s; }
.faq summary .pm::before { top: 9px; left: 2px; right: 2px; height: 2px; }
.faq summary .pm::after { left: 9px; top: 2px; bottom: 2px; width: 2px; }
.faq details[open] summary .pm::after { transform: scaleY(0); }
.faq details p { padding: 0 0 1.4rem; color: var(--ink-3); max-width: 70ch; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; align-items: start; }
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--accent); box-shadow: none; }
.price-card .plan { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.price-card .amt { font-family: var(--font-disp); font-weight: 800; font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem); color: var(--ink); letter-spacing: -0.03em; margin: 0.6rem 0 0.2rem; }
.price-card .per { font-size: 0.85rem; color: var(--ink-4); }
.price-card .desc { font-size: 0.9rem; color: var(--ink-3); margin: 0.9rem 0 1.4rem; }
.price-card .checks { margin-bottom: 1.6rem; }
.price-card .checks li { font-size: 0.9rem; }
.price-card .btn { margin-top: auto; }

/* ---------- Form ---------- */
.field { display: block; margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.45rem; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-4); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: none; }
.field textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ---------- Mobile nav ---------- */
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: var(--radius-sm); border: 1px solid var(--line); align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; color: var(--ink); }
.mobile-drawer { display: none; }

/* ---------- Reveal (progressive enhancement over visible content) ---------- */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
.js .reveal-stagger.is-in > * { opacity: 1; transform: none; }
.js .reveal-stagger.is-in > *:nth-child(2) { transition-delay: 0.06s; }
.js .reveal-stagger.is-in > *:nth-child(3) { transition-delay: 0.12s; }
.js .reveal-stagger.is-in > *:nth-child(4) { transition-delay: 0.18s; }
.js .reveal-stagger.is-in > *:nth-child(5) { transition-delay: 0.24s; }
.js .reveal-stagger.is-in > *:nth-child(6) { transition-delay: 0.30s; }
.js .reveal-stagger.is-in > *:nth-child(7) { transition-delay: 0.36s; }
.js .reveal-stagger.is-in > *:nth-child(8) { transition-delay: 0.42s; }

@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .split, .split-7-5, .feature-row, .feature-row.flip { grid-template-columns: 1fr; }
  .feature-row.flip .feature-media { order: 0; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .mega-panel { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-meta { gap: 1.2rem; }
  .nav { height: 60px; }
}

/* mobile drawer active */
.mobile-drawer.open {
  display: block;
  position: fixed;
  inset: 60px 0 0;
  z-index: var(--z-overlay);
  background: var(--bg);
  padding: 1.5rem var(--pad) 3rem;
  overflow-y: auto;
  animation: fade-up 0.25s var(--ease-out);
}
.mobile-drawer .m-link { display: block; padding: 0.9rem 0; font-size: 1.15rem; color: var(--ink); border-bottom: 1px solid var(--line); font-weight: 600; }
.mobile-drawer .m-sub { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-4); margin: 1.6rem 0 0.4rem; }
.mobile-drawer .m-prod { display: flex; gap: 0.7rem; align-items: center; padding: 0.7rem 0; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.mobile-drawer .m-prod svg { width: 20px; height: 20px; }
.mobile-drawer .btn { width: 100%; margin-top: 1.6rem; }
body.drawer-open { overflow: hidden; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
  .viz .draw { stroke-dashoffset: 0 !important; }
}

/* utilities */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.muted { color: var(--ink-3); }
.accent-text { color: var(--accent); }
.hairline { height: 1px; background: var(--line); border: none; margin-block: clamp(3rem, 6vw, 5rem); }
.max-60 { max-width: 60ch; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
