/* ============================================================
   yielz.ai — production styles
   Design language: research-lab restrained. B&W primary, sparing
   teal/amber accent. Type-led, architectural, institutional.
   ============================================================ */

:root {
  /* Color */
  --paper: #ffffff;
  --paper-2: #f7f7f6;
  --paper-3: #efefee;
  --ink: #0a0b0d;
  --ink-2: #1a1b1d;
  --ink-3: #4a4b4d;
  --ink-4: #8a8b8e;
  --ink-5: #c8c8cb;
  --rule: #e6e6e8;

  --teal: #0FA38B;
  --teal-2: #097F6C;
  --teal-soft: rgba(15, 163, 139, 0.08);
  --teal-edge: rgba(15, 163, 139, 0.32);

  --amber: #D97706;
  --amber-2: #B5620A;
  --amber-soft: rgba(217, 119, 6, 0.10);
  --amber-edge: rgba(217, 119, 6, 0.30);

  --dark-bg: #0a0b0d;
  --dark-bg-2: #15171a;
  --dark-fg: #f4f3ef;
  --dark-fg-2: #b8b7b3;
  --dark-rule: rgba(255, 255, 255, 0.14);

  /* Type */
  --font-sans: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-serif: "Source Serif 4", "Times New Roman", Georgia, serif;

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Fluid section + container rhythm */
  --section-y: clamp(48px, 7.5vw, 112px);
  --container-pad: clamp(24px, 5vw, 56px);
  --gap-cards: clamp(12px, 1.4vw, 20px);

  /* Container */
  --container: 1240px;
  --container-narrow: 920px;
  --container-wide: 1440px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--ink); color: var(--paper); }

img, svg { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
}

/* ============================================================
   Type system
   ============================================================ */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow.accent { color: var(--teal-2); }
.eyebrow.amber  { color: var(--amber-2); }
.eyebrow.muted  { color: var(--ink-4); }

.h-display {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(34px, 6.2vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

.h1 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(26px, 3.8vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

.h2 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.012em;
  margin: 0;
}

.h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin: 0;
}

.body { font-size: clamp(15px, 1.1vw, 17px); line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.body.lg { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; }
.body.sm { font-size: 14px; line-height: 1.55; color: var(--ink-3); }
.body.xs { font-size: 13px; line-height: 1.5; color: var(--ink-3); }

.mono { font-family: var(--font-mono); }
.serif { font-family: var(--font-serif); }

.num {
  font-family: var(--font-sans);
  font-feature-settings: "tnum", "ss01";
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.num .u { font-size: 0.55em; font-weight: 500; color: var(--ink-3); }

/* ============================================================
   Layout
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.container.narrow { max-width: var(--container-narrow); }
.container.wide { max-width: var(--container-wide); }

.section {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--rule);
}
.section.dark {
  background: var(--dark-bg);
  color: var(--dark-fg);
  border-color: transparent;
}
.section.dark .eyebrow { color: var(--dark-fg-2); }
.section.dark .h-display,
.section.dark .h1, .section.dark .h2, .section.dark .h3 { color: var(--dark-fg); }
.section.dark .body { color: var(--dark-fg-2); }

.section-head { margin-bottom: clamp(28px, 4vw, 56px); max-width: 720px; }
.section-head .h1 { margin-top: var(--s-3); }
.section-head .body { margin-top: var(--s-4); }

.section-rule {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.section-rule .line {
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.section-rule .marker {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-4);
  letter-spacing: 0.1em;
}

/* ============================================================
   Navigation
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--dark-bg);
  color: var(--dark-fg);
  border-bottom: none;
  transition: background 0.25s, backdrop-filter 0.25s, border-color 0.25s;
}
.nav.is-scrolled {
  background: rgba(10, 11, 13, 0.78);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: var(--s-6);
}
.nav-logo {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: #F8F9FB;
  opacity: 1;
}
.nav-logo .dot { color: #0FA38B; }
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}
@media (max-width: 1024px) {
  .nav-links { gap: var(--s-4); }
}
.nav-links li { margin: 0; padding: 0; }
.nav-link {
  font-size: 14px;
  font-weight: 400;
  color: #C8CDD3;
  letter-spacing: 0;
  white-space: nowrap;
  transition: color 0.15s;
}
.nav-link:hover { color: #F8F9FB; }
.nav-cta {
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  white-space: nowrap;
  border: 1px solid rgba(61, 77, 92, 0.5);
  border-radius: 999px;
  color: #C8CDD3;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.nav-cta:hover { border-color: #0FA38B; color: #F8F9FB; }

.nav-mobile-toggle {
  display: none;
  margin-left: auto;
  width: 36px;
  height: 36px;
  position: relative;
}
.nav-mobile-toggle .bar {
  position: absolute;
  left: 6px; right: 6px;
  height: 2px;
  background: var(--dark-fg);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-mobile-toggle .bar:nth-child(1) { top: 12px; }
.nav-mobile-toggle .bar:nth-child(2) { top: 18px; }
.nav-mobile-toggle .bar:nth-child(3) { top: 24px; }
.nav-mobile-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-mobile-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-mobile-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
}

.mobile-menu {
  position: fixed;
  inset: 64px 0 0 0;
  background: var(--dark-bg);
  z-index: 49;
  padding: var(--s-6) var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  transform: translateY(-110%);
  transition: transform 0.25s ease;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  font-size: 18px;
  color: var(--dark-fg);
  padding: var(--s-3) 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* ============================================================
   Hero — dark, B&W, restrained, typographic
   ============================================================ */

.hero {
  background: var(--dark-bg);
  color: var(--dark-fg);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  padding-top: clamp(64px, 10vw, 140px);
  padding-bottom: clamp(48px, 7vw, 96px);
  position: relative;
  z-index: 1;
}

.hero .eyebrow { color: var(--dark-fg-2); margin-bottom: var(--s-4); }
.hero .h-display { color: var(--dark-fg); max-width: 18ch; }
.hero .h-display .accent-dot { color: var(--teal); }
.hero .sub {
  margin-top: var(--s-4);
  max-width: 56ch;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.55;
  color: var(--dark-fg-2);
}

.hero-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(28px, 4.5vw, 48px);
  padding: var(--s-5) 0;
  border-top: 1px solid var(--dark-rule);
  border-bottom: 1px solid var(--dark-rule);
}
.hero-badge {
  padding: 0 clamp(12px, 2vw, 24px);
  border-left: 1px solid var(--dark-rule);
  min-width: 0;
}
.hero-badge:first-child { padding-left: 0; border-left: none; }
.hero-badge .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark-fg-2);
}
.hero-badge .v {
  margin-top: var(--s-2);
  font-size: 14px;
  color: var(--dark-fg);
  line-height: 1.35;
}
@media (max-width: 720px) {
  .hero-badges { grid-template-columns: 1fr; padding: 0; border: none; }
  .hero-badge { padding: var(--s-4) 0; border-left: none; border-top: 1px solid var(--dark-rule); }
  .hero-badge:first-child { border-top: 1px solid var(--dark-rule); padding-top: var(--s-4); }
}

/* Hero CTAs */
.hero-cta {
  margin-top: clamp(40px, 5vw, 56px);
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-link {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: #0FA38B;
  letter-spacing: 0;
  text-decoration: underline;
  text-decoration-color: #0FA38B;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: text-decoration-thickness 0.15s, color 0.15s;
}
.cta-link .arrow { text-decoration: none; }
.cta-link:hover {
  text-decoration-thickness: 2.5px;
  color: #5DC4B0;
}
.cta-outline {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: #C8CDD3;
  background: transparent;
  border: 1px solid rgba(61, 77, 92, 0.6);
  border-radius: 4px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.15s, color 0.15s;
}
.cta-outline:hover { border-color: #0FA38B; color: #F8F9FB; }

/* Hero validation coda */
.hero-validation {
  margin-top: clamp(28px, 4vw, 42px);
  padding-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0FA38B;
  border-bottom: 1px solid rgba(255, 255, 255, 0.20);
}
/* Hero proof points */
.hero-proof {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 56px);
}
.hp-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hp-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #8A95A3;
}
.hp-body {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: #C8CDD3;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 720px) {
  .hero-proof { grid-template-columns: 1fr; gap: 18px; }
}

/* Hero atmospheric multi-asset flow lines */
.hero-flow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}
.hero-flow .flow-g { animation: heroFlow 32s linear infinite; }
.hero-flow .flow-2 { animation-duration: 38s; animation-direction: reverse; }
.hero-flow .flow-3 { animation-duration: 28s; }
.hero-flow .flow-4 { animation-duration: 34s; animation-direction: reverse; }
.hero-flow .flow-5 { animation-duration: 40s; }
@keyframes heroFlow {
  from { transform: translateX(-12%); }
  to   { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-flow .flow-g { animation: none; }
}

/* ============================================================
   CTA buttons
   ============================================================ */

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.005em;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
  cursor: pointer;
}
.cta:active { transform: translateY(1px); }
.cta.primary { background: var(--teal); color: white; border-color: var(--teal); }
.cta.primary:hover { background: var(--teal-2); border-color: var(--teal-2); }
.cta.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.cta.ghost:hover { background: var(--ink); color: var(--paper); }
.cta.dark-primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cta.dark-primary:hover { background: var(--dark-fg); }
.cta.dark-ghost { background: transparent; color: var(--paper); border-color: rgba(255,255,255,0.35); }
.cta.dark-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.7); }
.cta.sm { padding: 8px 14px; font-size: 13px; }

/* ============================================================
   Trust strip (under hero)
   ============================================================ */

.trust {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: var(--s-5) 0;
}
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}
.trust-inner strong { color: var(--ink); font-weight: 600; }
.trust-inner .sep { color: var(--ink-5); padding: 0 var(--s-2); }

/* ============================================================
   Card grids
   ============================================================ */

.card-grid {
  display: grid;
  gap: var(--gap-cards);
}
.card-grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.card-grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.card-grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }

.card {
  padding: clamp(18px, 2.2vw, 28px);
  border: 1px solid var(--rule);
  background: var(--paper);
  border-radius: 4px;
  transition: border-color 0.15s, transform 0.15s;
  min-width: 0;
}
.card.flat { background: var(--paper-2); }
.card.thick-top { border-top: 2px solid var(--ink); border-radius: 0 0 4px 4px; }
.card-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.card .h3 { margin-top: var(--s-3); }
.card .body { margin-top: var(--s-3); font-size: 15px; }

/* Numbered card variant */
.card.numbered .num-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--teal-2);
  letter-spacing: 0.04em;
}

/* ============================================================
   Compute & training callout (amber, sparingly used)
   ============================================================ */

.callout-compute {
  margin-top: var(--s-5);
  padding: var(--s-4) var(--s-5);
  background: var(--amber-soft);
  border-left: 3px solid var(--amber);
  border-radius: 0 4px 4px 0;
}
.callout-compute .eyebrow { color: var(--amber-2); margin-bottom: var(--s-2); }
.callout-compute .body { color: var(--ink-2); font-size: 15px; }

/* ============================================================
   Chart figures
   ============================================================ */

.chart-figure {
  margin: var(--s-5) 0 0;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--paper);
  overflow: hidden;
}
.chart-figure img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--paper);
}
.chart-figure figcaption {
  padding: var(--s-3) var(--s-4);
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.5;
  background: var(--paper-2);
}

/* Chart row — 2 figures side-by-side, stacking on mobile */
.chart-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: var(--gap-cards);
}
.chart-row .chart-figure { margin: 0; }

/* ============================================================
   Live in Production — metrics
   ============================================================ */

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  margin-top: var(--s-5);
  background: var(--paper);
}
.metrics-grid .metric {
  padding: clamp(16px, 2vw, 28px);
  border-left: 1px solid var(--rule);
  min-width: 0;
}
.metrics-grid .metric:first-child { border-left: none; }
.metric .num { font-size: clamp(26px, 3vw, 38px); line-height: 1; color: var(--teal-2); }
.metric .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: var(--s-3);
}
.metric .sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-4);
  margin-top: 4px;
}
@media (max-width: 1080px) {
  .metrics-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metrics-grid .metric { border-left: 1px solid var(--rule); }
  .metrics-grid .metric:nth-child(3n+1) { border-left: none; }
  .metrics-grid .metric:nth-child(n+4) { border-top: 1px solid var(--rule); }
}
@media (max-width: 720px) {
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics-grid .metric { border-left: 1px solid var(--rule); border-top: 1px solid var(--rule); }
  .metrics-grid .metric:nth-child(odd) { border-left: none; }
  .metrics-grid .metric:nth-child(1),
  .metrics-grid .metric:nth-child(2) { border-top: none; }
}
@media (max-width: 440px) {
  .metrics-grid { grid-template-columns: 1fr; }
  .metrics-grid .metric { border-left: none; border-top: 1px solid var(--rule); }
  .metrics-grid .metric:first-child { border-top: none; }
}

/* "What this is vs what it isn't" callout */
.live-clarification {
  margin-top: var(--s-5);
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--rule);
  background: var(--paper-2);
  border-radius: 4px;
  font-size: 14px;
  color: var(--ink-2);
}
.live-clarification strong { color: var(--ink); font-weight: 600; }

/* Engine strip */
.engine-strip {
  margin-top: var(--s-7);
}
.engine-strip-head {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.engine-strip-head .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.engine-strip-head .h3 { color: var(--ink); }
.engine-strip-head .line { flex: 1; height: 1px; background: var(--rule); }

.engine-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.engine-row .engine {
  padding: clamp(18px, 2.2vw, 28px);
  border-left: 1px solid var(--rule);
  min-width: 0;
}
.engine-row .engine:first-child { border-left: none; }
.engine .name { font-weight: 600; font-size: 15px; color: var(--ink); }
.engine .role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-2);
  margin-top: var(--s-1);
}
.engine .desc { font-size: 13px; color: var(--ink-3); margin-top: var(--s-3); line-height: 1.5; }
@media (max-width: 820px) {
  .engine-row .engine { border-left: none; border-top: 1px solid var(--rule); }
  .engine-row .engine:first-child { border-top: none; }
}

.live-caveat {
  margin-top: var(--s-5);
  font-size: 13px;
  color: var(--ink-4);
  font-style: italic;
  max-width: 70ch;
}

/* ============================================================
   FAQ accordion
   ============================================================ */

.faq-list { border-top: 1px solid var(--rule); margin-top: var(--s-5); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-q {
  width: 100%;
  text-align: left;
  padding: var(--s-4) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
}
.faq-q .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  position: relative;
}
.faq-q .icon::before, .faq-q .icon::after {
  content: ""; position: absolute; background: var(--ink-3);
  left: 50%; top: 50%; transform: translate(-50%, -50%);
}
.faq-q .icon::before { width: 14px; height: 1.5px; }
.faq-q .icon::after { width: 1.5px; height: 14px; transition: transform 0.2s; }
.faq-item.open .faq-q .icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner {
  padding: 0 0 var(--s-5);
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.6;
  max-width: 70ch;
}

/* ============================================================
   Apply CTAs
   ============================================================ */

.apply-cta-block {
  margin-top: var(--s-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--s-4);
  padding: clamp(32px, 5vw, 64px) clamp(16px, 4vw, 48px);
}
.apply-cta-block .h1 { max-width: 22ch; }
.apply-cta-block .body { max-width: 52ch; color: var(--ink-2); }
.apply-cta-block .apply-actions { margin-top: var(--s-3); }
.apply-cta-block .apply-secondary {
  margin-top: var(--s-2);
  font-size: 12.5px;
  color: var(--ink-4);
  letter-spacing: 0.02em;
}
.apply-cta-block .apply-secondary a { color: var(--teal-2); border-bottom: 1px solid var(--teal-edge); }
.apply-cta-block .apply-secondary a:hover { color: var(--teal); }

/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: var(--dark-bg);
  color: var(--dark-fg-2);
  padding: var(--s-8) 0 var(--s-6);
  font-size: 13px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 2fr;
  gap: clamp(24px, 3vw, 48px);
}
@media (max-width: 1100px) {
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer-inner .disclaimer { grid-column: 1 / -1; max-width: 80ch; }
}
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-inner > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .footer-inner { grid-template-columns: 1fr; }
}
.footer-logo {
  font-weight: 700;
  font-size: 18px;
  color: #0FA38B;
  opacity: 1;
  letter-spacing: -0.01em;
}
.footer-logo .dot { color: #5DC4B0; }
.footer-tagline {
  font-size: 13px;
  color: var(--dark-fg-2);
  margin-top: var(--s-3);
  line-height: 1.5;
}
.footer .group-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #8A95A3;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  margin-bottom: var(--s-4);
}
.footer .group a {
  display: block;
  padding: 5px 0;
  color: #E0E4E8;
  font-size: 13px;
  font-weight: 400;
  opacity: 1;
  transition: color 0.15s;
}
.footer .group a:hover { color: #FFFFFF; }
.footer .disclaimer {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--dark-fg-2);
  opacity: 0.7;
}
.footer-bottom {
  margin-top: var(--s-7);
  padding-top: var(--s-4);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dark-fg-2);
  opacity: 0.55;
  letter-spacing: 0.04em;
}

/* ============================================================
   Modals
   ============================================================ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,11,13,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: var(--s-5);
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--paper);
  border-radius: 6px;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  padding: var(--s-6);
}
.modal h2 { font-size: 22px; font-weight: 600; margin: 0; }
.modal .modal-sub { font-size: 14px; color: var(--ink-3); margin-top: var(--s-3); }
.modal-form { margin-top: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.modal-form label { font-size: 12px; font-weight: 500; color: var(--ink-3); letter-spacing: 0.04em; text-transform: uppercase; }
.modal-form input,
.modal-form select,
.modal-form textarea {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  margin-top: 4px;
}
.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus { outline: 2px solid var(--teal-edge); outline-offset: 1px; border-color: var(--teal); }
.modal-form textarea { min-height: 80px; resize: vertical; }
.modal-form .consent { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--ink-3); }
.modal-form .consent input { width: auto; margin: 2px 0 0; }
.modal-actions { display: flex; gap: var(--s-3); justify-content: flex-end; margin-top: var(--s-3); }
.modal-close { position: absolute; top: 14px; right: 14px; padding: 6px; }

/* ============================================================
   Scroll-in animations
   ============================================================ */

.fade-in {}
.js-anim .fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.js-anim .fade-in.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-anim .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Misc
   ============================================================ */

.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper);
  z-index: 100;
  border-radius: 4px;
  text-decoration: none;
  font-size: 13px;
}
.skip-link:focus { top: 8px; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 2px; }

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-2);
}
.live-dot::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--teal-soft); }
  50% { box-shadow: 0 0 0 5px rgba(15,163,139,0.04); }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot::before { animation: none; }
}

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

/* Modal disclaimer */
.modal-disclaimer {
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid var(--rule);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-4);
  font-style: italic;
}

/* ============================================================
   Cookie consent banner
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: var(--s-4);
  right: var(--s-4);
  bottom: var(--s-4);
  z-index: 80;
  background: var(--ink);
  color: var(--dark-fg);
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  padding: var(--s-4) var(--s-5);
}
.cookie-banner[hidden] { display: none !important; }
.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  max-width: var(--container);
  margin: 0 auto;
}
.cookie-text { flex: 1; min-width: 0; }
.cookie-text strong { display: block; font-size: 14px; }
.cookie-text p { margin: 4px 0 0; font-size: 13px; color: var(--dark-fg-2); line-height: 1.4; }
.cookie-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; flex-shrink: 0; }
.cookie-actions .cta.ghost { border-color: rgba(255,255,255,0.4); color: var(--dark-fg); }
.cookie-actions .cta.ghost:hover { background: rgba(255,255,255,0.08); }
.cookie-actions .cta.primary { background: var(--teal); border-color: var(--teal); }
@media (max-width: 720px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; gap: var(--s-3); }
  .cookie-actions { justify-content: flex-end; }
}

/* Cookie settings modal categories */
.cookie-category {
  border-top: 1px solid var(--rule);
  padding: var(--s-4) 0;
}
.cookie-category:last-of-type { border-bottom: 1px solid var(--rule); margin-bottom: var(--s-4); }
.cookie-cat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
}
.cookie-cat-head h3 { font-size: 14px; font-weight: 600; margin: 0; color: var(--ink); }
.cookie-cat-head p { font-size: 12.5px; line-height: 1.5; color: var(--ink-3); margin: 4px 0 0; }
.toggle {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}
.toggle.disabled {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
  width: auto;
  height: auto;
}
.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.toggle span {
  position: absolute;
  inset: 0;
  background: var(--ink-5);
  border-radius: 22px;
  transition: background 0.15s;
}
.toggle span::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: var(--paper);
  border-radius: 50%;
  transition: transform 0.15s;
}
.toggle input:checked + span { background: var(--teal); }
.toggle input:checked + span::before { transform: translateX(16px); }
.toggle input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }

/* ============================================================
   Responsive refinements
   ============================================================ */

@media (max-width: 880px) {
  .section-rule .marker { display: none; }
}

@media (max-width: 640px) {
  .nav-inner { height: 56px; gap: var(--s-3); }
  .nav-logo { font-size: 16px; }
  .trust-inner { gap: var(--s-2) var(--s-3); justify-content: flex-start; }
  .trust-inner .sep { display: none; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .cta { justify-content: center; padding: 14px 18px; }
  .section-rule { flex-wrap: wrap; }
  .section-rule .line { min-width: 24px; }
  .modal { padding: var(--s-5); border-radius: 6px; max-height: 100dvh; }
  .modal h2 { font-size: 20px; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .cta { width: 100%; justify-content: center; }
  .cookie-banner { left: var(--s-3); right: var(--s-3); bottom: var(--s-3); padding: var(--s-4); }
  .faq-q { font-size: 16px; gap: var(--s-3); }
}

@media (max-width: 480px) {
  :root { --container-pad: 18px; }
  .h-display { letter-spacing: -0.025em; }
  .nav-link { font-size: 12px; }
  .nav-cta { padding: 7px 12px; font-size: 12px; }
  .hero .sub { max-width: none; }
  .hero-badge .v { font-size: 13px; }
  .live-clarification { padding: var(--s-4); font-size: 13.5px; }
  .callout-compute { padding: var(--s-4); }
  .footer-bottom { font-size: 10.5px; }
}

@media (max-width: 360px) {
  :root { --container-pad: 14px; }
  .nav-inner { gap: var(--s-2); }
  .nav-mobile-toggle { width: 32px; height: 32px; }
}

@media (min-width: 1440px) {
  :root { --container: 1280px; }
}
@media (min-width: 1680px) {
  :root { --container: 1360px; --container-pad: 48px; }
}

@media (max-height: 560px) and (orientation: landscape) {
  .hero-inner { padding-top: var(--s-7); padding-bottom: var(--s-6); }
  .hero-badges { margin-top: var(--s-5); }
  .mobile-menu { inset: 56px 0 0 0; overflow-y: auto; }
}

img, svg, video, table { max-width: 100%; }
body { overflow-x: hidden; }
