/* PDFUA.io landing — shared stylesheet for /, /fr/, /validator/, /fr/validateur/.
   Page-specific rules stay inline in each page (see the HOME-SPECIFIC block
   in index.html and fr/index.html). Edit here once; every page picks it up. */

/* ════════════════════════════════════════════════════════════════════
   Midnight SRE console — dark-only design system.
   Depth comes from surface tones (#0f101a → #151621 → #1f2433) and
   hairline borders; no drop shadows. One PDFUA.io-teal gradient, reserved
   for the primary CTA (dark ink text on bright teal in dark mode, white
   on deep teal in light — the site's approved contrast pattern). Inset
   rim-lights replace elevation.
   ════════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* All text/background pairs hold WCAG 2.1 AA (4.5:1 text, 3:1 UI
   boundaries) in both themes — verified, don't eyeball-tweak. */
:root {
  --canvas:   #0f101a;
  --surface:  #151621;
  --raised:   #1f2433;
  --steel:    #939db8;
  --muted:    #7a84a2;
  --frost:    #c9d3ee;
  --ink:      #ffffff;
  --accent:   #00b4a6;
  --brand:    linear-gradient(353deg, #00a294, #17ccbc);
  --on-brand: #0f101a;
  --hairline: rgba(147, 157, 184, 0.16);
  --hairline-strong: rgba(147, 157, 184, 0.32);
  --ctl-border: rgba(147, 157, 184, 0.55);
  --accent-border: rgba(0, 180, 166, 0.5);
  --nav-bg:   rgba(15, 16, 26, 0.82);
  --badge-bg: rgba(21, 22, 33, 0.6);
  --glow:     rgba(0, 180, 166, 0.14);
  --glow-dim: rgba(0, 180, 166, 0.11);
  --rim:      inset 0 1px 3px rgba(255, 255, 255, 0.25);
  --rim-soft: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --mono:     'JetBrains Mono', ui-monospace, monospace;
  --sans:     'Inter', 'Helvetica Neue', sans-serif;
}

/* ── LIGHT MODE ──────────────────────────────────────────────────── */
[data-theme="light"] {
  --canvas:   #f7f8fc;
  --surface:  #ffffff;
  --raised:   #e4e7f2;
  --steel:    #4c5570;
  --muted:    #5f6885;
  --frost:    #2b3152;
  --ink:      #14162a;
  --accent:   #007a71;
  --brand:    linear-gradient(353deg, #006c62, #008278);
  --on-brand: #ffffff;
  --hairline: rgba(76, 85, 112, 0.16);
  --hairline-strong: rgba(76, 85, 112, 0.34);
  --ctl-border: #767fa0;
  --accent-border: rgba(0, 122, 113, 0.5);
  --nav-bg:   rgba(255, 255, 255, 0.85);
  --badge-bg: rgba(255, 255, 255, 0.7);
  --glow:     rgba(0, 122, 113, 0.09);
  --glow-dim: rgba(0, 122, 113, 0.07);
  --rim-soft: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* The product console and code chips stay midnight in both themes —
   a dark screenshot on a light page, not a re-themed mock. */
[data-theme="light"] .console,
[data-theme="light"] .step-code,
[data-theme="light"] .ev-excerpt {
  --canvas:   #0f101a;
  --surface:  #151621;
  --raised:   #1f2433;
  --steel:    #939db8;
  --muted:    #7a84a2;
  --frost:    #c9d3ee;
  --ink:      #ffffff;
  --accent:   #00b4a6;
  --hairline: rgba(147, 157, 184, 0.16);
  --hairline-strong: rgba(147, 157, 184, 0.32);
  --rim-soft: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
[data-theme="light"] .console { border-color: #d5d9e8; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  background: var(--canvas);
  color: var(--steel);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  font-feature-settings: 'ss01', 'ss03', 'cv05';
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s ease, color 0.25s ease;
}

::selection { background: rgba(0, 180, 166, 0.3); color: var(--ink); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── BUTTONS ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  padding: 12px 22px;
  border-radius: 9999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s ease, border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.btn-brand {
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: var(--rim);
}
.btn-brand:hover { filter: brightness(0.92); }
.btn-ghost {
  background: transparent;
  color: var(--frost);
  border-color: var(--ctl-border);
}
.btn-ghost:hover { border-color: var(--steel); color: var(--ink); }
.btn-lg { padding: 15px 28px; font-size: 15px; }

/* ── NAV ─────────────────────────────────────────────────────────── */
.nav-shell {
  position: fixed;
  top: 16px; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
}
nav {
  max-width: 1200px;
  margin: 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 12px 0 20px;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--raised);
  border-radius: 10px;
  box-shadow: var(--rim-soft);
}
.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.nav-logo .ua, .footer-logo .ua { color: var(--accent); }
.wordmark {
  font-family: 'Syne', var(--sans);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
  display: inline-block;
  transform: scaleY(1.16);
  transform-origin: 0 62%;
}
.nav-logo .product {
  color: var(--muted);
  font-weight: 400;
  font-family: var(--mono);
  font-size: 12px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  color: var(--steel);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--frost); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-right .btn-ghost { padding: 9px 18px; }
.nav-right .btn-brand { padding: 10px 18px; }
.lang-toggle {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  transition: color 0.15s ease;
}
.lang-toggle:hover { color: var(--frost); }

.theme-toggle {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--ctl-border);
  border-radius: 8px;
  cursor: pointer;
  color: var(--steel);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--steel); }
.theme-toggle svg {
  width: 16px; height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-moon { display: none; }
[data-theme="light"] .icon-moon { display: block; }
[data-theme="light"] .icon-sun { display: none; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 0 9px;
  background: transparent;
  border: 1px solid var(--ctl-border);
  border-radius: 8px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  height: 1.5px;
  background: var(--frost);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 84px; left: 24px; right: 24px;
  z-index: 99;
  display: none;
  flex-direction: column;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--raised);
  border-radius: 16px;
  box-shadow: var(--rim-soft);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--frost);
  text-decoration: none;
  font-size: 15px;
  padding: 12px 16px;
  border-radius: 10px;
}
.mobile-menu a:hover { background: var(--raised); }
.mobile-menu .mobile-lang { display: none; }
.mobile-menu .mobile-cta {
  margin-top: 6px;
  text-align: center;
  background: var(--brand);
  color: var(--on-brand);
  border-radius: 9999px;
  box-shadow: var(--rim);
  font-weight: 500;
}

/* ── HERO ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 168px 24px 0;
  text-align: center;
}
.hero::before {
  /* Brand teal used decoratively: one soft glow anchoring the console. */
  content: '';
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: min(900px, 100vw); height: 520px;
  background: radial-gradient(ellipse at center, var(--glow), transparent 65%);
  pointer-events: none;
}
.hero-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--frost);
  padding: 7px 16px;
  border: 1px solid var(--hairline-strong);
  border-radius: 9999px;
  background: var(--badge-bg);
  box-shadow: var(--rim-soft);
  margin-bottom: 32px;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.hero h1 {
  position: relative;
  font-size: 64px;
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 820px;
  margin: 0 auto 24px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub {
  position: relative;
  font-size: 18px;
  line-height: 1.65;
  color: var(--steel);
  max-width: 640px;
  margin: 0 auto 40px;
}
.hero-sub strong { color: var(--frost); font-weight: 500; }

.hero-form {
  position: relative;
  display: flex;
  gap: 10px;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto 14px;
}
.field {
  flex: 1;
  min-width: 0;
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--frost);
  background: var(--canvas);
  border: 1px solid var(--ctl-border);
  border-radius: 10px;
  padding: 13px 18px;
  outline: none;
  transition: border-color 0.15s ease;
}
.field::placeholder { color: var(--muted); }
.field:focus { border-color: var(--accent); }

.hero-note {
  position: relative;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.hero-note a { color: var(--accent); text-decoration: none; }
.hero-note a:hover { text-decoration: underline; }

/* ── CONSOLE (hero product mock) ─────────────────────────────────── */
.console-frame {
  position: relative;
  max-width: 1120px;
  margin: 72px auto 0;
  padding: 0 24px;
}
.console-frame::before {
  content: '';
  position: absolute;
  inset: 40px 0 -60px;
  background: radial-gradient(ellipse at 50% 0%, var(--glow-dim), transparent 60%);
  pointer-events: none;
}
.console {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--raised);
  border-radius: 16px;
  box-shadow: var(--rim-soft);
  overflow: hidden;
  text-align: left;
}
.console-chrome {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 44px;
  padding: 0 18px;
  border-bottom: 1px solid var(--hairline);
}
.console-dots { display: flex; gap: 6px; }
.console-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--raised);
}
.console-url {
  flex: 1;
  min-width: 0;
  max-width: 420px;
  margin: 0 auto;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  background: var(--canvas);
  border: 1px solid var(--raised);
  border-radius: 8px;
  padding: 5px 14px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.console-body { display: flex; min-height: 460px; }

.console-side {
  width: 208px;
  flex-shrink: 0;
  border-right: 1px solid var(--hairline);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.side-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 8px;
}
.side-item.active {
  color: var(--frost);
  background: var(--raised);
  box-shadow: var(--rim-soft);
}
.side-item .count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.side-item.active .count { color: var(--accent); }
.side-sep {
  height: 1px;
  background: var(--hairline);
  margin: 12px 8px;
}
.side-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 12px 6px;
}

.console-main {
  flex: 1;
  min-width: 0;
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.report-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.file-glyph {
  width: 30px; height: 30px;
  flex-shrink: 0;
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.file-glyph svg { width: 14px; height: 14px; stroke: var(--steel); }
.verdict {
  font-family: var(--mono);
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid var(--hairline-strong);
  color: var(--muted);
  transition: color 0.4s ease, border-color 0.4s ease;
}
.verdict.pass { color: var(--accent); border-color: rgba(0, 180, 166, 0.55); }
.report-meta {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.8;
}
.report-meta b { color: var(--steel); font-weight: 400; }

.tile-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.tile {
  background: var(--canvas);
  border: 1px solid var(--raised);
  border-radius: 10px;
  padding: 12px 16px;
}
.tile .v {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}
.tile .k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.console-cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 12px;
  flex: 1;
}
.console-cols > * { min-width: 0; }
.checks, .trend {
  background: var(--canvas);
  border: 1px solid var(--raised);
  border-radius: 10px;
  padding: 16px 18px;
}
.panel-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--steel);
}
.check-row:first-of-type { border-top: none; }
.check-mark {
  width: 18px; height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--hairline-strong);
  display: grid;
  place-items: center;
  font-size: 10px;
  color: var(--accent);
  font-family: var(--mono);
}
.check-row .cite {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.check-row.advisory .check-mark { color: var(--steel); }
.check-row.advisory .cite { color: var(--steel); }

.trend { display: flex; flex-direction: column; }
.trend-value {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}
.trend-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
}
.trend svg { width: 100%; height: 92px; margin-top: auto; }
.spark-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw 1.6s ease-out 0.6s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ── SECTOR STRIP ────────────────────────────────────────────────── */
.sectors {
  max-width: 1200px;
  margin: 88px auto 0;
  padding: 28px 24px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}
.sectors-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.sector {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
}

/* ── SECTIONS ────────────────────────────────────────────────────── */
section { position: relative; padding: 120px 24px 0; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.section-title {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 18px;
}
.section-sub { font-size: 16.5px; color: var(--steel); }
.section-sub strong { color: var(--frost); font-weight: 500; }

/* ── EVIDENCE ────────────────────────────────────────────────────── */
.evidence-grid {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 16px;
  align-items: stretch;
}
.ev-card {
  background: var(--surface);
  border: 1px solid var(--raised);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.ev-card.good { border-color: var(--accent-border); box-shadow: var(--rim-soft); }
.ev-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.ev-card.good .ev-label { color: var(--accent); }
.ev-card h3 {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 10px;
}
.ev-card p { font-size: 14.5px; color: var(--steel); }
.ev-card p strong { color: var(--frost); font-weight: 500; }
.ev-excerpt {
  margin-top: 22px;
  background: var(--canvas);
  border: 1px solid var(--raised);
  border-radius: 10px;
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
  overflow-x: auto;
}
.ev-excerpt .k { color: var(--steel); }
.ev-excerpt .a { color: var(--accent); }
.ev-strike {
  margin-top: 22px;
  background: var(--canvas);
  border: 1px dashed var(--hairline-strong);
  border-radius: 10px;
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
}

/* ── HOW IT WORKS ────────────────────────────────────────────────── */
.steps {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.step {
  min-width: 0; /* let the nowrap code block scroll inside, not widen the card */
  background: var(--surface);
  border: 1px solid var(--raised);
  border-radius: 16px;
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.step-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 16px;
}
.step h3 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 10px;
}
.step p { font-size: 14px; color: var(--steel); margin-bottom: 20px; }
.step p strong { color: var(--frost); font-weight: 500; }
.step-code {
  margin-top: auto;
  background: var(--canvas);
  border: 1px solid var(--raised);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
  overflow-x: auto;
  white-space: nowrap;
}
.step-code .hl { color: var(--accent); }
.step-code .s { color: var(--steel); }

/* ── FEATURES ────────────────────────────────────────────────────── */
.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--raised);
  border-radius: 16px;
  padding: 26px;
  transition: border-color 0.2s ease;
}
.feature:hover { border-color: var(--accent-border); }
.feature-icon {
  width: 40px; height: 40px;
  border: 1px solid var(--hairline-strong);
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.feature-icon svg {
  width: 19px; height: 19px;
  stroke: var(--steel);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature h4 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 8px;
}
.feature p { font-size: 13.5px; color: var(--steel); margin-bottom: 16px; }
.feature-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

/* ── PRICING ─────────────────────────────────────────────────────── */
.plans {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}
.plans.cols-4 { grid-template-columns: repeat(4, 1fr); max-width: 1200px; }
@media (max-width: 1180px) {
  .plans.cols-4 { grid-template-columns: 1fr 1fr; max-width: 720px; }
}
@media (max-width: 680px) {
  .plans.cols-4 { grid-template-columns: 1fr; max-width: 560px; }
}
.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--raised);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.plan.featured { border-color: var(--accent-border); box-shadow: var(--rim-soft); }
.plan-flag {
  position: absolute;
  top: -11px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-brand);
  background: var(--brand);
  border-radius: 9999px;
  padding: 4px 14px;
  box-shadow: var(--rim);
  white-space: nowrap;
}
.plan-name {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.plan-price {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 6px;
}
.plan-price span {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}
.plan-desc { font-size: 13.5px; color: var(--steel); margin-bottom: 20px; }
.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 20px 0;
  margin-bottom: 24px;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  color: var(--steel);
}
.plan-features li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.plan-features li::before {
  content: '✓';
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
}
.plan .btn { margin-top: auto; justify-content: center; }

.enterprise {
  max-width: 1040px;
  margin: 16px auto 0;
  background: var(--surface);
  border: 1px solid var(--raised);
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.enterprise-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}
.enterprise h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 8px;
}
.enterprise p { font-size: 14px; color: var(--steel); max-width: 640px; }
.pricing-note {
  max-width: 1040px;
  margin: 20px auto 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--steel);
}

/* ── CTA / EARLY ACCESS ──────────────────────────────────────────── */
.cta-section { padding-bottom: 40px; }
.cta-card {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--raised);
  border-radius: 16px;
  box-shadow: var(--rim-soft);
  padding: 64px 48px;
  text-align: center;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -180px; left: 50%;
  transform: translateX(-50%);
  width: 640px; height: 320px;
  background: radial-gradient(ellipse at center, var(--glow), transparent 65%);
  pointer-events: none;
}
.cta-card h2 {
  position: relative;
  font-size: 38px;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 16px;
}
.cta-card > p {
  position: relative;
  font-size: 15.5px;
  color: var(--steel);
  max-width: 540px;
  margin: 0 auto 36px;
}

.qual-step { position: relative; }
.qual-hidden { display: none; }
.qual-entering { opacity: 0; transform: translateY(10px); }
.qual-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.email-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto 14px;
}
.form-note { font-family: var(--mono); font-size: 12px; color: var(--muted); }

.qual-intro { font-size: 15px; color: var(--frost); margin-bottom: 28px; }
.qual-step-label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.qual-q {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 22px;
}
.qual-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 560px;
  margin: 0 auto;
}
.qual-pill {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--frost);
  background: transparent;
  border: 1px solid var(--ctl-border);
  border-radius: 9999px;
  padding: 10px 20px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.qual-pill:hover { border-color: var(--steel); color: var(--ink); }
.qual-pill.selected {
  border-color: var(--accent);
  color: var(--ink);
  background: rgba(0, 180, 166, 0.14);
}
.qual-done-icon {
  width: 52px; height: 52px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: var(--rim);
  display: grid;
  place-items: center;
  color: var(--on-brand);
  font-size: 20px;
}
.qual-done-title {
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}
.qual-done-sub { font-size: 14.5px; color: var(--steel); max-width: 460px; margin: 0 auto; }

/* ── FOOTER ──────────────────────────────────────────────────────── */
footer {
  margin-top: 120px;
  border-top: 1px solid var(--hairline);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.footer-logo .product { color: var(--muted); font-weight: 400; font-family: var(--mono); font-size: 12px; margin-left: 8px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  color: var(--muted);
  font-size: 13.5px;
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-links a:hover { color: var(--frost); }
.footer-copy { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ── FADE-IN ─────────────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fade-in { opacity: 1; transform: none; }
  .spark-line { stroke-dashoffset: 0; }
}

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero h1 { font-size: 48px; }
  .console-side { display: none; }
  .steps, .features-grid, .plans { grid-template-columns: 1fr; max-width: 560px; }
  .evidence-grid { grid-template-columns: 1fr; max-width: 560px; }
  .enterprise { flex-direction: column; align-items: flex-start; max-width: 560px; }
  .console-cols { grid-template-columns: 1fr; }
  .tile-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  /* Keep Sign in reachable on phones; only the CTA folds into the
     menu, and the product suffix makes room for it. */
  .nav-right .btn-brand { display: none; }
  .nav-logo .product { display: none; }
  .hamburger { display: flex; width: 36px; height: 36px; padding: 0 8px; }
  .nav-shell { padding: 0 12px; }
  nav { gap: 10px; padding: 0 8px 0 14px; }
  .wordmark { font-size: 15px; }
  .nav-right { gap: 6px; }
  .nav-right .btn-ghost { padding: 8px 12px; font-size: 13px; }
  .lang-toggle { padding: 8px 6px; }
  .mobile-menu { left: 12px; right: 12px; }
  /* Code samples wrap instead of forcing a horizontal scroll strip. */
  .step-code { white-space: normal; overflow-wrap: anywhere; }
  .hero { padding-top: 140px; }
  .hero h1 { font-size: 37px; }
  .hero-sub { font-size: 16px; }
  .hero-form, .email-form { flex-direction: column; }
  .hero-badge {
    white-space: normal;
    max-width: min(92%, 420px);
    line-height: 1.7;
    justify-content: center;
  }
  .section-title { font-size: 30px; }
  .cta-card { padding: 48px 24px; }
  .cta-card h2 { font-size: 29px; }
  .console-frame { padding: 0 12px; }
  .console-chrome .spacer { display: none; }
  .console-main { padding: 18px 16px; }
  .check-row .cite { display: none; }
  .report-meta { overflow-wrap: anywhere; }
  .sectors { gap: 20px; }
}

@media (max-width: 480px) {
  .nav-right .lang-toggle { display: none; }
  .mobile-menu .mobile-lang { display: block; }
}
