/* ==========================================================================
   HuxleyIQ — marketing site
   Rebuilt on the Huxley Design System (OKLCH forest green, cool-neutral
   surfaces) with a slim modern editorial serif for display.
   Dark cinematic hero -> clean light content.
   ========================================================================== */

:root {
  color-scheme: light;

  /* Fonts */
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-ui: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Ink */
  --ink: oklch(0.18 0.02 245);
  --ink-2: oklch(0.40 0.02 245);
  --ink-3: oklch(0.55 0.018 245);

  /* Brand — Huxley forest green. Hue is tweakable via --huxley-h. */
  --huxley-h: 155;
  --huxley: oklch(0.45 0.14 var(--huxley-h));
  --huxley-dark: oklch(0.32 0.12 var(--huxley-h));
  --huxley-vivid: oklch(0.56 0.17 var(--huxley-h));
  --huxley-light: oklch(0.96 0.025 var(--huxley-h));

  /* Accent for dark surfaces (brighter for legibility on near-black) */
  --huxley-on-dark: oklch(0.72 0.16 var(--huxley-h));

  --caution: oklch(0.72 0.15 75);

  /* Light surfaces */
  --surface: #ffffff;
  --raised: oklch(0.995 0.003 145);
  --sunken: oklch(0.981 0.004 150);
  --sunken-2: oklch(0.965 0.006 150);

  /* Dark surfaces (hero + dark bands) */
  --dark: oklch(0.18 0.018 220);
  --dark-2: oklch(0.215 0.02 200);
  --dark-elev: oklch(0.255 0.022 195);

  /* Borders */
  --line: oklch(0.91 0.005 150);
  --line-strong: oklch(0.83 0.008 150);
  --line-dark: oklch(1 0 0 / 0.10);
  --line-dark-strong: oklch(1 0 0 / 0.18);

  /* Shadows */
  --shadow-card: 0 1px 3px oklch(0.18 0.02 245 / 0.05), 0 1px 2px oklch(0.18 0.02 245 / 0.07);
  --shadow-hover: 0 12px 34px oklch(0.18 0.02 245 / 0.10), 0 3px 8px oklch(0.18 0.02 245 / 0.06);
  --shadow-elevated: 0 22px 60px oklch(0.18 0.05 200 / 0.18);

  /* Motion */
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.4, 0, 0.2, 1);

  --radius: 12px;
  --radius-sm: 8px;
  --shell: 1360px;
}

* { box-sizing: border-box; }

/* ============================ ACCESSIBILITY ============================ */

/* Visually hidden until keyboard focus (clip pattern — robust across browsers). */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  width: auto;
  height: auto;
  clip-path: none;
  white-space: normal;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--huxley-dark);
  color: #fff;
  font-weight: 600;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--huxley-vivid);
  outline-offset: 2px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

::selection { background: oklch(0.56 0.17 var(--huxley-h) / 0.22); }

/* ============================ TYPE ============================ */

h1, h2, h3, h4, p { margin: 0; overflow-wrap: break-word; }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.04;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.9rem, 6.2vw, 5.3rem);
  line-height: 1.0;
}

.section-heading h2,
.conversion-copy h2,
.memory-copy h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.7rem);
}

h3 {
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  font-size: 1.3rem;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--huxley);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

/* ============================ LAYOUT ============================ */

.section,
.workflow-band,
.proof-band,
.memory-band,
.pricing-band,
.conversion-band,
.signal-strip {
  padding-left: clamp(20px, 5vw, 64px);
  padding-right: clamp(20px, 5vw, 64px);
}

.section,
.workflow-band,
.proof-band,
.memory-band,
.pricing-band,
.conversion-band {
  padding-top: clamp(72px, 8vw, 132px);
  padding-bottom: clamp(72px, 8vw, 132px);
  scroll-margin-top: 80px;
}

.section > *,
.workflow-band > *,
.proof-band > *,
.pricing-band > *,
.signal-strip > * {
  max-width: var(--shell);
  margin-left: auto;
  margin-right: auto;
}

/* Full-bleed dark grid bands: background spans edge-to-edge while content
   stays centered within the shell width via symmetric gutter padding. */
.memory-band,
.conversion-band {
  padding-left: max(clamp(20px, 5vw, 64px), calc((100% - var(--shell)) / 2));
  padding-right: max(clamp(20px, 5vw, 64px), calc((100% - var(--shell)) / 2));
}

.section-heading { max-width: 760px; }
.section-heading p:not(.eyebrow) {
  margin-top: 22px;
  color: var(--ink-2);
  font-size: 1.12rem;
  line-height: 1.65;
}

/* ============================ HEADER ============================ */

.site-header {
  position: fixed;
  z-index: 60;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
  padding: 0 clamp(18px, 5vw, 48px);
  color: #fff;
  transition: background 280ms var(--ease-io), height 280ms var(--ease-io),
    border-color 280ms var(--ease-io), color 280ms var(--ease-io),
    backdrop-filter 280ms var(--ease-io);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  height: 62px;
  color: var(--ink);
  background: oklch(1 0 0 / 0.82);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}

.brand {
  display: inline-flex;
  align-items: center;
  height: 44px;
}
.brand-logo { height: 26px; width: auto; }
/* Logo swap: invert (white) wordmark on transparent dark header, dark on scrolled */
.brand-logo.logo-dark { display: none; }
.site-header.scrolled .brand-logo.logo-light { display: none; }
.site-header.scrolled .brand-logo.logo-dark { display: block; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  color: inherit;
  opacity: 0.86;
  transition: opacity 150ms, background 150ms, color 150ms;
}
.site-nav a:hover { opacity: 1; }
.site-nav a:not(.nav-cta):not(.login-link):hover {
  background: color-mix(in oklch, currentColor 10%, transparent);
}
.site-nav a.login-link {
  margin-left: 6px;
  border: 1px solid color-mix(in oklch, currentColor 32%, transparent);
  font-weight: 600;
  opacity: 1;
}
.site-nav a.login-link:hover {
  background: color-mix(in oklch, currentColor 10%, transparent);
}
.site-nav a.nav-cta {
  margin-left: 6px;
  color: #fff;
  background: var(--huxley);
  font-weight: 600;
  opacity: 1;
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.15) inset;
  transition: background 160ms, transform 160ms, box-shadow 160ms;
}
.site-nav a.nav-cta:hover {
  background: var(--huxley-dark);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid color-mix(in oklch, currentColor 34%, transparent);
  border-radius: var(--radius-sm);
  color: inherit;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 18px; height: 1.5px;
  margin: 4px auto; background: currentColor;
  transition: transform 200ms var(--ease-io), opacity 200ms;
}

/* ============================ BUTTONS ============================ */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.96rem;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background 160ms, color 160ms, border-color 160ms,
    transform 160ms var(--ease-io), box-shadow 160ms;
}
.button:active { transform: scale(0.98); }
.button svg { width: 17px; height: 17px; }

.button-primary {
  color: #fff;
  background: var(--huxley);
  box-shadow: 0 1px 2px oklch(0.32 0.12 var(--huxley-h) / 0.4), 0 1px 0 oklch(1 0 0 / 0.16) inset;
}
.button-primary:hover {
  background: var(--huxley-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px oklch(0.32 0.12 var(--huxley-h) / 0.3);
}
.button-secondary {
  color: #fff;
  border-color: oklch(1 0 0 / 0.3);
  background: oklch(1 0 0 / 0.06);
}
.button-secondary:hover {
  background: oklch(1 0 0 / 0.13);
  border-color: oklch(1 0 0 / 0.5);
}
.light-button {
  color: var(--huxley);
  border-color: var(--line-strong);
  background: var(--surface);
}
.light-button:hover {
  background: var(--huxley-light);
  border-color: var(--huxley);
  transform: translateY(-1px);
}

/* ============================ HERO ============================ */

.hero {
  position: relative;
  min-height: min(100svh, 880px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--dark);
}
.hero-image {
  position: absolute;
  inset: -8% 0 -8% 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
  will-change: transform;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  opacity: var(--hero-overlay-opacity, 1);
  transition: opacity 220ms var(--ease-io);
  background:
    linear-gradient(96deg, oklch(0.16 0.02 220 / 0.95) 0%, oklch(0.16 0.02 220 / 0.82) 34%, oklch(0.16 0.02 220 / 0.22) 70%, transparent 100%),
    linear-gradient(180deg, oklch(0.16 0.02 220 / 0.55), oklch(0.14 0.02 220 / 0.5));
}
/* subtle huxley wash so dark reads green-tinted, not flat black */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 90% at 12% 60%, oklch(0.45 0.14 var(--huxley-h) / 0.16), transparent 55%);
  mix-blend-mode: screen;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 112px clamp(20px, 5vw, 64px) 64px;
}
.hero-content .eyebrow { color: var(--huxley-on-dark); }
.hero h1 {
  max-width: 16ch;
  color: #fff;
}
.hero h1 .accent {
  font-style: italic;
  font-weight: 300;
  color: var(--huxley-on-dark);
}
.hero-copy {
  max-width: 56ch;
  margin-top: 26px;
  color: oklch(1 0 0 / 0.78);
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
  line-height: 1.62;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  max-width: 920px;
  margin-top: 52px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: oklch(1 0 0 / 0.04);
  backdrop-filter: blur(8px);
  overflow: hidden;
}
.hero-proof article {
  padding: 22px 22px 24px;
  border-left: 1px solid var(--line-dark);
}
.hero-proof article:first-child { border-left: 0; }
.hero-proof strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  color: #fff;
}
.hero-proof span {
  display: block;
  margin-top: 8px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: oklch(1 0 0 / 0.66);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: oklch(1 0 0 / 0.5);
}
.scroll-cue .line {
  width: 1px; height: 34px;
  background: linear-gradient(oklch(1 0 0 / 0.5), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue .line::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--huxley-on-dark);
  animation: scrollPulse 2.2s var(--ease-io) infinite;
}
@keyframes scrollPulse {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* ============================ SIGNAL STRIP ============================ */

.signal-strip {
  display: grid;
  gap: 20px;
  padding-top: 30px;
  padding-bottom: 30px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.signal-strip > * {
  max-width: var(--shell);
  margin-inline: auto;
  width: 100%;
}
.signal-strip p {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.team-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-items: center;
}
.team-row span {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}

/* ============================ CARDS / GRIDS ============================ */

.problem { background: var(--surface); }
.problem .section-heading { max-width: 880px; }
.problem .section-heading p:not(.eyebrow) { font-size: 1.32rem; color: var(--ink); }

.intro { background: var(--sunken); }
.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 52px;
}
.feature-card {
  position: relative;
  padding: 30px 28px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: transform 240ms var(--ease-expo), box-shadow 240ms var(--ease-expo), border-color 240ms;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--huxley), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--ease-expo);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--line-strong);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--huxley);
  background: var(--huxley-light);
  border: 1px solid color-mix(in oklch, var(--huxley) 18%, transparent);
}
.feature-card h3 { margin: 22px 0 12px; }
.feature-card p { color: var(--ink-2); line-height: 1.62; }

/* ============================ DARK BANDS (memory + workflows + pricing) ============================ */

.memory-band,
.workflow-band,
.pricing-band {
  position: relative;
  color: #fff;
  background: var(--dark-2);
  overflow: hidden;
}
.memory-band::before,
.workflow-band::before,
.pricing-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
/* Each dark band gets its own light source so the page doesn't repeat one move. */
.memory-band::before {
  background: radial-gradient(75% 110% at 8% 100%, oklch(0.45 0.14 var(--huxley-h) / 0.2), transparent 58%);
}
.workflow-band::before {
  background: radial-gradient(90% 80% at 100% 92%, oklch(0.45 0.14 var(--huxley-h) / 0.16), transparent 60%);
}
.pricing-band::before {
  background: radial-gradient(50% 42% at 50% 0%, oklch(0.45 0.14 var(--huxley-h) / 0.26), transparent 70%);
}
.memory-band .eyebrow,
.workflow-band .eyebrow,
.pricing-band .eyebrow,
.proof-band .eyebrow { color: var(--huxley-on-dark); }

/* Film grain on every dark surface: keeps large color fields from reading flat.
   Inline SVG turbulence — no asset, tiles at 160px, sits under content (z-index 1). */
.hero::before,
.memory-band::after,
.workflow-band::after,
.pricing-band::after,
.proof-band::after,
.metrics::after,
.conversion-band::after,
.resource-hero::after,
.guide-hero::after,
.legal-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  opacity: 0.05;
  mix-blend-mode: overlay;
}
/* Hero grain must clear the absolutely-positioned hero image (z-auto, later in tree). */
.hero::before { z-index: 1; }
.workflow-band > * { position: relative; z-index: 1; }

.memory-band {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.memory-band > * { position: relative; z-index: 1; }
.memory-copy h2 { color: #fff; }
.memory-copy p:not(.eyebrow) {
  margin-top: 22px;
  color: oklch(1 0 0 / 0.74);
  font-size: 1.12rem;
  line-height: 1.65;
}
.memory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.memory-grid article {
  padding: 24px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: oklch(1 0 0 / 0.04);
  transition: background 240ms, border-color 240ms;
}
.memory-grid article:hover {
  background: oklch(1 0 0 / 0.07);
  border-color: var(--line-dark-strong);
}
.memory-grid h3 { color: #fff; margin-bottom: 10px; }
.memory-grid p { color: oklch(1 0 0 / 0.66); font-size: 0.95rem; }

/* ============================ PROOF / BENCHMARK ============================ */

.proof-band {
  position: relative;
  color: #fff;
  background:
    linear-gradient(180deg, var(--huxley-dark), oklch(0.26 0.1 var(--huxley-h)));
  overflow: hidden;
}
.proof-band::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 80% at 90% 10%, oklch(0.56 0.17 var(--huxley-h) / 0.35), transparent 60%);
}
.proof-band > * { position: relative; z-index: 1; }
.proof-band .section-heading { max-width: 880px; }
.proof-band .section-heading p:not(.eyebrow) { color: oklch(1 0 0 / 0.82); }
.proof-band .eyebrow { color: oklch(0.92 0.06 var(--huxley-h)); }

.benchmark-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.93fr 0.93fr;
  gap: 16px;
  margin-top: 52px;
}
.score-card {
  position: relative;
  padding: 30px;
  border: 1px solid oklch(1 0 0 / 0.16);
  border-radius: var(--radius);
  background: oklch(1 0 0 / 0.07);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
}
.score-card > span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: oklch(1 0 0 / 0.72);
}
.score-card strong {
  display: block;
  margin: 14px 0 14px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.score-card p { margin: 0; color: oklch(1 0 0 / 0.72); font-size: 0.94rem; line-height: 1.55; }
.score-card.highlight {
  background: oklch(1 0 0 / 0.97);
  border-color: transparent;
  color: var(--ink);
}
.score-card.highlight > span { color: var(--huxley); }
.score-card.highlight strong { color: var(--huxley); }
.score-card.highlight p { color: var(--ink-2); }

/* radial gauge that "draws in" */
.gauge {
  --val: 0;
  position: relative;
  width: 92px; height: 92px;
  margin-bottom: 6px;
}
.gauge svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.gauge circle { fill: none; stroke-width: 7; }
.gauge .track { stroke: oklch(0.45 0.14 var(--huxley-h) / 0.15); }
.gauge .bar {
  stroke: var(--huxley);
  stroke-linecap: round;
  stroke-dasharray: var(--circ);
  stroke-dashoffset: var(--circ);
  transition: stroke-dashoffset 1.4s var(--ease-expo);
}
.gauge.is-visible .bar { stroke-dashoffset: calc(var(--circ) - var(--circ) * var(--val) / 100); }
.gauge .iq {
  position: absolute; inset: 0;
  display: grid; place-items: center;
}
.gauge .iq img { width: 30px; height: 30px; border-radius: 7px; }

.accuracy-findings {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: center;
  margin-top: 16px;
  padding: 32px;
  border: 1px solid oklch(1 0 0 / 0.16);
  border-radius: var(--radius);
  background: oklch(0 0 0 / 0.2);
}
.accuracy-findings .eyebrow { color: oklch(0.92 0.06 var(--huxley-h)); }
.accuracy-findings h3 {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 2.6vw, 2.5rem);
  line-height: 1.08;
  color: #fff;
}
.accuracy-findings ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0; padding: 0; list-style: none;
}
.accuracy-findings li {
  position: relative;
  padding: 13px 14px 13px 34px;
  border: 1px solid oklch(1 0 0 / 0.14);
  border-radius: var(--radius-sm);
  background: oklch(1 0 0 / 0.05);
  color: oklch(1 0 0 / 0.86);
  font-size: 0.92rem;
  line-height: 1.35;
}
.accuracy-findings li::before {
  content: "";
  position: absolute;
  left: 14px; top: 50%;
  width: 7px; height: 7px; margin-top: -3.5px;
  border-radius: 50%;
  background: var(--huxley-on-dark);
  box-shadow: 0 0 0 4px oklch(0.56 0.17 var(--huxley-h) / 0.18);
}
.proof-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-top: 28px;
}
.proof-actions .button-primary {
  background: #fff; color: var(--huxley-dark);
}
.proof-actions .button-primary:hover { background: oklch(0.96 0.02 150); color: var(--huxley-dark); }
.proof-actions p { max-width: 560px; margin: 0; color: oklch(1 0 0 / 0.78); line-height: 1.5; }

/* ============================ WORKFLOWS ============================ */

.workflow-layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 28px;
  margin-top: 52px;
}
.workflow-list { display: grid; align-content: start; gap: 10px; }
.workflow-tab {
  position: relative;
  padding: 19px 20px 19px 24px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  color: oklch(1 0 0 / 0.74);
  background: oklch(1 0 0 / 0.03);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: background 180ms, color 180ms, border-color 180ms;
}
.workflow-tab::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 3px; height: 0;
  background: var(--huxley-on-dark);
  border-radius: 0 3px 3px 0;
  transform: translateY(-50%);
  transition: height 220ms var(--ease-expo);
}
.workflow-tab:hover { color: #fff; background: oklch(1 0 0 / 0.06); }
.workflow-tab.active {
  color: #fff;
  background: oklch(1 0 0 / 0.08);
  border-color: var(--line-dark-strong);
}
.workflow-tab.active::before { height: 60%; }
.workflow-panel {
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 120% at 100% 0%, oklch(0.45 0.14 var(--huxley-h) / 0.18), transparent 55%),
    oklch(1 0 0 / 0.03);
}
.workflow-panel.swap { animation: panelSwap 420ms var(--ease-expo); }
@keyframes panelSwap {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.workflow-panel h3 {
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1.06;
  color: #fff;
}
.workflow-panel > p { margin-top: 16px; max-width: 64ch; color: oklch(1 0 0 / 0.76); font-size: 1.05rem; }
.workflow-panel ul { display: grid; gap: 11px; margin: 26px 0 0; padding: 0; list-style: none; }
.workflow-panel li {
  position: relative;
  padding-left: 28px;
  color: oklch(1 0 0 / 0.82);
  line-height: 1.5;
}
.workflow-panel li::before {
  content: "";
  position: absolute;
  left: 4px; top: 0.55em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--huxley-on-dark);
  box-shadow: 0 0 0 4px oklch(0.56 0.17 var(--huxley-h) / 0.16);
}

/* ============================ RESOURCE PREVIEW ============================ */

.resource-preview { background: var(--surface); }
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 52px;
}
.preview-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sunken);
  min-height: 280px;
}
.preview-card .eyebrow { margin-bottom: 16px; }
.preview-card h3 { margin: 0 0 14px; font-size: 1.22rem; }
.preview-card p:not(.eyebrow) { color: var(--ink-2); line-height: 1.6; }
.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--huxley);
  font-weight: 600;
  font-size: 0.92rem;
}
.card-cta::after { content: "→"; transition: transform 200ms var(--ease-expo); }
.card-link { transition: transform 220ms var(--ease-expo), box-shadow 220ms var(--ease-expo), border-color 220ms; }
.card-link:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}
.card-link:hover .card-cta::after { transform: translateX(4px); }
.preview-actions, .security-actions {
  display: flex;
  margin-top: 34px;
}

/* ============================ USE CASES ============================ */

/* Editorial numbered index — a deliberate break from the card grids around it.
   The mono counters continue the 01/02/03 language from the platform section. */
.use-cases { background: var(--sunken); }
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(44px, 6vw, 96px);
  margin-top: 44px;
  counter-reset: usecase;
  border-bottom: 1px solid var(--line-strong);
}
.use-case-grid article {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  column-gap: 16px;
  align-content: start;
  padding: 26px 0 28px;
  border-top: 1px solid var(--line-strong);
  counter-increment: usecase;
}
.use-case-grid article::before {
  content: counter(usecase, decimal-leading-zero);
  grid-row: 1 / span 2;
  padding-top: 5px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--huxley);
  opacity: 0.55;
  transition: opacity 200ms;
}
.use-case-grid h3 { grid-column: 2; margin-bottom: 8px; font-size: 1.18rem; transition: color 200ms; }
.use-case-grid p { grid-column: 2; color: var(--ink-2); font-size: 0.96rem; }
.use-case-grid article:hover::before { opacity: 1; }
.use-case-grid article:hover h3 { color: var(--huxley); }

/* ============================ METRICS ============================ */

/* Deep-green stat band — echoes the proof band so the page's two "numbers"
   moments share a voice and break up the light mid-page run. */
.metrics {
  position: relative;
  color: #fff;
  background: linear-gradient(180deg, oklch(0.26 0.1 var(--huxley-h)), var(--huxley-dark));
  overflow: hidden;
}
.metrics::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 90% at 8% 0%, oklch(0.56 0.17 var(--huxley-h) / 0.28), transparent 60%);
}
.metrics > * { position: relative; z-index: 1; }
.metrics .eyebrow { color: oklch(0.92 0.06 var(--huxley-h)); }
.metric-heading { max-width: 880px; }
.metric-heading h2 { color: #fff; }
.metric-heading p:not(.eyebrow) { color: oklch(1 0 0 / 0.82); }
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 52px;
  border: 1px solid oklch(1 0 0 / 0.16);
  border-radius: var(--radius);
  overflow: hidden;
}
.metric-block {
  padding: 30px 26px;
  border-left: 1px solid oklch(1 0 0 / 0.16);
  background: oklch(1 0 0 / 0.05);
}
.metric-block:first-child { border-left: 0; }
.metric-block strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 3.4vw, 3.1rem);
  letter-spacing: -0.02em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.metric-block span {
  display: block;
  margin-top: 10px;
  color: oklch(1 0 0 / 0.72);
  font-size: 0.94rem;
  line-height: 1.45;
}
/* The punchline stat gets the same inverted treatment as the winning score card. */
.metric-block.highlight { background: oklch(1 0 0 / 0.97); }
.metric-block.highlight strong { color: var(--huxley); }
.metric-block.highlight span { color: var(--ink-2); }

/* ============================ COMPARISON ============================ */

.comparison { background: var(--sunken); }
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 52px;
}
.comparison-grid article {
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.comparison-grid h3 { margin-bottom: 14px; color: var(--ink); }
.comparison-grid h3 span { color: var(--huxley); }
.comparison-grid p { color: var(--ink-2); line-height: 1.62; }

/* ============================ PRICING ============================ */

.pricing-band > * { position: relative; z-index: 1; }
.pricing-band .section-heading p:not(.eyebrow) { color: oklch(1 0 0 / 0.74); }
.pricing-note {
  margin-top: 18px !important;
  color: #fff !important;
  font-weight: 600;
}
.trial-steps {
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1.4fr);
  gap: 28px;
  align-items: center;
  margin-top: 48px;
  padding: 32px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: oklch(1 0 0 / 0.04);
}
.trial-steps-copy h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  line-height: 1.1;
  color: #fff;
}
.trial-steps ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0; padding: 0; list-style: none;
  counter-reset: step;
}
.trial-steps li {
  padding: 22px 20px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  background: oklch(0 0 0 / 0.18);
  counter-increment: step;
}
.trial-steps li::before {
  content: counter(step, decimal-leading-zero);
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  margin-bottom: 16px;
  border-radius: 9px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--huxley-on-dark);
  background: oklch(0.56 0.17 var(--huxley-h) / 0.16);
  border: 1px solid oklch(0.56 0.17 var(--huxley-h) / 0.3);
}
.trial-steps strong { display: block; color: #fff; }
.trial-steps span { display: block; margin-top: 8px; color: oklch(1 0 0 / 0.66); font-size: 0.92rem; line-height: 1.45; }

.pricing-includes-head {
  margin: 36px 0 0;
  justify-content: center;
  color: var(--huxley-on-dark);
}
.pricing-includes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.pricing-includes article {
  padding: 24px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: oklch(1 0 0 / 0.04);
}
.pricing-includes strong { display: block; color: #fff; font-size: 1.04rem; }
.pricing-includes span { display: block; margin-top: 10px; color: oklch(1 0 0 / 0.66); font-size: 0.92rem; line-height: 1.5; }

.stripe-pricing-shell {
  margin-top: 24px;
  padding: 8px;
}
.pricing-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  color: oklch(1 0 0 / 0.74);
}
.pricing-secondary a { color: var(--huxley-on-dark); font-weight: 600; }
.pricing-secondary a:hover { text-decoration: underline; }

/* ============================ SECURITY ============================ */

.split { background: var(--surface); }
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 52px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.security-grid article {
  padding: 30px 28px;
  background: var(--surface);
  transition: background 200ms;
}
.security-grid article:hover { background: var(--sunken); }
.security-grid h3 { margin-bottom: 12px; font-size: 1.12rem; }
.security-grid p { color: var(--ink-2); font-size: 0.95rem; line-height: 1.6; }

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

.faq { background: var(--sunken); }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 52px;
}
.faq-grid article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.faq-grid h3 { margin-bottom: 12px; font-size: 1.12rem; }
.faq-grid p { color: var(--ink-2); line-height: 1.62; }

/* ============================ CONVERSION ============================ */

.conversion-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  color: #fff;
  background: var(--dark-2);
  position: relative;
  overflow: hidden;
}
.conversion-band::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 80% at 80% 50%, oklch(0.45 0.14 var(--huxley-h) / 0.22), transparent 60%);
}
.conversion-band > * { position: relative; z-index: 1; }
.conversion-copy .eyebrow { color: var(--huxley-on-dark); }
.conversion-copy h2 { color: #fff; }
.conversion-copy p { margin-top: 20px; max-width: 56ch; color: oklch(1 0 0 / 0.76); font-size: 1.08rem; }

.booking-card {
  padding: 32px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: oklch(1 0 0 / 0.05);
  backdrop-filter: blur(6px);
}
.booking-card h3 { color: #fff; font-size: 1.3rem; }
.booking-card p { margin-top: 12px; color: oklch(1 0 0 / 0.7); }
.booking-card .button { margin-top: 22px; }
.booking-card .button-primary { background: #fff; color: var(--huxley-dark); }
.booking-card .button-primary:hover { background: oklch(0.96 0.02 150); }
.form-note { margin-top: 12px; color: oklch(1 0 0 / 0.68); font-size: 0.86rem; }
.guide-email { display: inline-block; margin-top: 8px; color: var(--huxley-on-dark); font-weight: 600; }

/* ============================ FOOTER ============================ */

.site-footer {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 28px;
  align-items: center;
  padding: 40px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.site-footer > * { max-width: var(--shell); }
.site-footer .brand-logo { height: 24px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: flex-end;
}
.footer-links a {
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 150ms;
}
.footer-links a:hover { color: var(--huxley); }
.footer-disclaimer {
  grid-column: 1 / -1;
  max-width: 980px;
  margin: 0;
  color: var(--ink-3);
  font-size: 0.8rem;
  line-height: 1.6;
}

/* ============================ RESOURCES PAGE ============================ */

.resource-page { padding-top: 0; }
.resource-hero {
  position: relative;
  color: #fff;
  background: var(--dark-2);
  overflow: hidden;
  padding-top: clamp(140px, 16vh, 200px);
}
.resource-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, oklch(0.16 0.02 220 / 0.92), oklch(0.16 0.02 220 / 0.5)),
    radial-gradient(70% 90% at 88% 10%, oklch(0.45 0.14 var(--huxley-h) / 0.3), transparent 60%);
}
.resource-hero .section-heading { position: relative; z-index: 1; max-width: 880px; }
.resource-hero h1 { color: #fff; font-size: clamp(2.6rem, 5.4vw, 4.6rem); }
.resource-hero .eyebrow { color: var(--huxley-on-dark); }
.resource-hero p:not(.eyebrow) { color: oklch(1 0 0 / 0.78); }

.resource-list { background: var(--sunken); }
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: var(--shell);
  margin: 0 auto;
}
.resource-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  min-height: 300px;
}
.resource-card .eyebrow { margin-bottom: 18px; }
.resource-card h2 {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.12;
}
.resource-card p:not(.eyebrow) { color: var(--ink-2); line-height: 1.62; }
.resource-card .button { margin-top: auto; align-self: flex-start; }
.resource-card.featured-resource {
  grid-column: span 2;
  color: #fff;
  background:
    radial-gradient(80% 120% at 100% 0%, oklch(0.45 0.14 var(--huxley-h) / 0.4), transparent 55%),
    var(--huxley-dark);
  border-color: transparent;
}
.resource-card.featured-resource .eyebrow { color: oklch(0.92 0.06 var(--huxley-h)); }
.resource-card.featured-resource p:not(.eyebrow) { color: oklch(1 0 0 / 0.8); }
.resource-card.featured-resource .button-primary { background: #fff; color: var(--huxley-dark); }
.resource-card.featured-resource .button-primary:hover { background: oklch(0.96 0.02 150); }
.resource-status {
  display: inline-flex;
  margin-top: auto;
  padding-top: 18px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* ============================ GUIDE / ARTICLE PAGES ============================ */

.guide-page { background: var(--surface); }
.guide-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 540px;
  color: #fff;
  background: var(--dark-2);
  overflow: hidden;
  padding: clamp(140px, 16vh, 200px) clamp(20px, 5vw, 64px) clamp(72px, 9vw, 110px);
}
.guide-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, oklch(0.15 0.02 220 / 0.95), oklch(0.16 0.02 220 / 0.55)),
    radial-gradient(60% 100% at 85% 20%, oklch(0.45 0.14 var(--huxley-h) / 0.32), transparent 58%);
}
.guide-hero-inner { position: relative; z-index: 1; max-width: var(--shell); margin: 0 auto; width: 100%; }
.guide-hero h1 { max-width: 18ch; color: #fff; font-size: clamp(2.4rem, 5vw, 4.3rem); }
.guide-hero p:not(.eyebrow) {
  max-width: 60ch;
  margin-top: 22px;
  color: oklch(1 0 0 / 0.8);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.6;
}
.guide-hero .eyebrow { color: var(--huxley-on-dark); }
.guide-hero .hero-actions { margin-top: 30px; }

.guide-layout {
  display: grid;
  grid-template-columns: minmax(180px, 230px) minmax(0, 760px);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
  justify-content: center;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 104px) clamp(20px, 5vw, 64px);
}
.guide-toc {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 2px;
}
.guide-toc::before {
  content: "On this page";
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.guide-toc a {
  padding: 8px 14px;
  border-left: 2px solid var(--line);
  color: var(--ink-3);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 160ms, border-color 160ms;
}
.guide-toc a:hover { color: var(--huxley); }
.guide-toc a.active {
  color: var(--huxley);
  border-left-color: var(--huxley);
}

.guide-article { display: grid; gap: 56px; }
.guide-article section { display: grid; gap: 18px; scroll-margin-top: 90px; }
.guide-article h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  line-height: 1.1;
}
.guide-article p, .guide-article li {
  color: var(--ink-2);
  font-size: 1.08rem;
  line-height: 1.78;
}
/* Key takeaways — extractable TL;DR at the top of each article */
.key-takeaways {
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--huxley);
  border-radius: var(--radius);
  background: var(--sunken);
}
.key-takeaways .eyebrow { margin-bottom: 4px; }
.key-takeaways ul { display: grid; gap: 8px; margin: 0; padding-left: 1.2em; }
.key-takeaways li { color: var(--ink); font-size: 1rem; line-height: 1.6; }

.guide-article > section:not(.key-takeaways) > p:first-of-type:first-child::first-letter,
.guide-article #thesis > p:first-child::first-letter {
  font-family: var(--font-display);
  font-size: 3.4em;
  font-weight: 400;
  float: left;
  line-height: 0.78;
  margin: 0.06em 0.12em 0 0;
  color: var(--huxley);
}
.guide-article blockquote {
  margin: 16px 0;
  padding: 8px 0 8px 28px;
  border-left: 3px solid var(--huxley);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.3;
  font-style: italic;
}
.guide-card-grid, .requirement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 6px;
}
.guide-card-grid article, .requirement-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sunken);
  transition: background 200ms, border-color 200ms;
}
.guide-card-grid article:hover, .requirement-grid article:hover {
  background: var(--surface);
  border-color: var(--huxley);
}
.guide-card-grid h3, .requirement-grid h3 { margin-bottom: 10px; font-size: 1.1rem; }
.guide-card-grid p, .requirement-grid p { font-size: 0.96rem; line-height: 1.6; }

.guide-huxley {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(70% 120% at 0% 0%, var(--huxley-light), transparent 55%),
    var(--surface);
  box-shadow: var(--shadow-card);
}
.guide-huxley ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.guide-huxley li {
  position: relative;
  padding: 13px 16px 13px 38px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 500;
}
.guide-huxley li::before {
  content: "";
  position: absolute;
  left: 15px; top: 50%;
  width: 7px; height: 7px; margin-top: -3.5px;
  border-radius: 50%;
  background: var(--huxley);
}
.guide-cta { scroll-margin-top: 86px; }

/* ============================ LEGAL / EMBED PAGES ============================ */

.legal-hero {
  position: relative;
  color: #fff;
  background: var(--dark-2);
  overflow: hidden;
  padding: clamp(120px, 14vh, 170px) clamp(20px, 5vw, 64px) clamp(48px, 6vw, 72px);
}
.legal-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, oklch(0.15 0.02 220 / 0.95), oklch(0.16 0.02 220 / 0.55)),
    radial-gradient(60% 100% at 90% 0%, oklch(0.45 0.14 var(--huxley-h) / 0.28), transparent 58%);
}
.legal-hero-inner { position: relative; z-index: 1; max-width: var(--shell); margin: 0 auto; }
.legal-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.legal-hero .eyebrow { color: var(--huxley-on-dark); }
.legal-hero p:not(.eyebrow) {
  margin-top: 16px;
  max-width: 62ch;
  color: oklch(1 0 0 / 0.78);
  font-size: 1.05rem;
  line-height: 1.6;
}

.legal-body {
  background: var(--surface);
  padding: clamp(48px, 6vw, 88px) clamp(20px, 5vw, 64px) clamp(72px, 8vw, 120px);
}
.legal-shell { max-width: 860px; margin: 0 auto; }

/* Reformat injected Termageddon policy markup to the site's editorial type. */
.legal-shell { color: var(--ink-2); font-size: 1.02rem; line-height: 1.75; }
.legal-shell .policy_embed_div { width: 100% !important; }
.legal-shell h1, .legal-shell h2 {
  margin: 1.6em 0 0.55em;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.014em;
  line-height: 1.15;
  color: var(--ink);
}
.legal-shell h1 { margin-top: 0; font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.legal-shell h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.legal-shell h3, .legal-shell h4 {
  margin: 1.5em 0 0.5em;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--ink);
}
.legal-shell p { margin: 0 0 1em; }
.legal-shell ul, .legal-shell ol { margin: 0 0 1.2em; padding-left: 1.5em; }
.legal-shell li { margin: 0.35em 0; }
.legal-shell a {
  color: var(--huxley);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-shell a:hover { color: var(--huxley-dark); }
.legal-shell strong { color: var(--ink); }
.legal-shell hr { margin: 2em 0; border: 0; border-top: 1px solid var(--line); }
.legal-shell table {
  width: 100%;
  margin: 1.2em 0;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.legal-shell th, .legal-shell td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.legal-shell th { background: var(--sunken); color: var(--ink); }

/* Microsoft Forms embed (whistleblower) */
.form-shell iframe {
  display: block;
  width: 100%;
  height: 920px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

/* ============================ MOTION: SCROLL REVEAL ============================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-expo), transform 0.7s var(--ease-expo);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-image { transform: none !important; }
  .scroll-cue .line::after { animation: none; }
  .gauge .bar { transition: none; }
}

/* ============================ RESPONSIVE ============================ */

@media (max-width: 940px) {
  .nav-toggle { display: grid; place-items: center; }
  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 14px; right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: oklch(1 0 0 / 0.97);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-elevated);
    color: var(--ink);
  }
  .site-nav.open { display: flex; }
  .site-nav.static-nav {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }
  .site-nav a { justify-content: flex-start; height: 42px; }
  .site-nav a.nav-cta, .site-nav a.login-link { justify-content: center; }

  .memory-band,
  .conversion-band,
  .intro-grid,
  .memory-grid,
  .benchmark-grid,
  .accuracy-findings,
  .workflow-layout,
  .metric-grid,
  .preview-grid,
  .use-case-grid,
  .comparison-grid,
  .trial-steps,
  .pricing-includes,
  .security-grid,
  .faq-grid,
  .resource-grid,
  .guide-layout,
  .guide-card-grid,
  .requirement-grid,
  .guide-huxley ul,
  .trial-steps ol {
    grid-template-columns: 1fr;
  }
  .hero-proof { grid-template-columns: repeat(2, 1fr); }
  .hero-proof article:nth-child(2) { border-left: 0; }
  .hero-proof article { border-top: 1px solid var(--line-dark); }
  .hero-proof article:nth-child(-n+2) { border-top: 0; }
  .resource-card.featured-resource { grid-column: auto; }
  .metric-block { border-left: 0; border-top: 1px solid oklch(1 0 0 / 0.16); }
  .security-grid article { border-left: 0; border-top: 1px solid var(--line); }
  .metric-block:first-child, .security-grid article:first-child { border-top: 0; }
  .guide-toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .guide-toc a { border-left: 0; border: 1px solid var(--line); border-radius: 999px; }
  .guide-article > section > p:first-child::first-letter,
  .guide-article #thesis > p:first-child::first-letter { font-size: 1em; float: none; margin: 0; color: inherit; }
}

@media (max-width: 560px) {
  .hero-proof { grid-template-columns: 1fr; }
  .hero-proof article { border-left: 0 !important; border-top: 1px solid var(--line-dark); }
  .hero-proof article:first-child { border-top: 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .team-row { gap: 8px 18px; }
  .site-footer { grid-template-columns: 1fr; align-items: start; }
  .footer-links { justify-content: flex-start; }
}

/* ============================ MOTION MODES (Tweaks) ============================ */

/* Subtle: keep fades but shorten travel, drop the looping scroll cue + parallax. */
html[data-motion="subtle"] [data-reveal] { transform: translateY(10px); transition-duration: 0.5s; }
html[data-motion="subtle"] .scroll-cue .line::after { animation: none; }

/* Off: everything lands in its end-state immediately, no transitions. */
html[data-motion="off"] [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
html[data-motion="off"] .scroll-cue .line::after { animation: none; }
html[data-motion="off"] .gauge .bar { transition: none; }
html[data-motion="off"] .hero-image { transform: none !important; }
html[data-motion="off"] .feature-card:hover,
html[data-motion="off"] .card-link:hover,
html[data-motion="off"] .button:hover { transform: none; }
