/* ==========================================================================
   ShieldAI — marketing site
   Light / minimal, ink + cyan, Space Grotesk display. Tokens mirror the
   product's brand palette (frontend/public/brand) so the site and the app
   read as one system.
   ========================================================================== */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  /* Navy/gray palette — mirrors frontend/tailwind.config.js (sky/navy cyan-*,
     gray-scale ink-*). The bright-cyan sample-b values live in git history. */
  --cyan-400: #7DD3FC;
  --cyan-500: #0C4A6E;
  --cyan-600: #082F49;
  --cyan-700: #0369A1;
  --cyan-800: #075985;
  --indigo-400: #818CF8;
  --indigo-500: #6366F1;
  --indigo-600: #4F46E5;
  --ink-900: #111827;
  --ink-800: #1F2937;
  --ink-700: #374151;
  --ink-600: #4B5563;
  --ink-500: #6B7280;
  --ink-400: #9CA3AF;
  --ink-300: #D1D5DB;
  --ink-200: #E5E7EB;
  --ink-100: #F3F4F6;
  --paper-50: #F9FAFB;
  --paper-0: #FFFFFF;
  --success: #16A34A;
  --success-bright: #4ADE80;
  --danger: #B91C1C;

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Fluid rhythm: 360px → 1440px */
  --gutter: clamp(20px, 5vw, 80px);
  --section-y: clamp(64px, 8vw, 104px);
  --measure: 1280px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 1px rgba(15, 23, 42, .04);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, .10), 0 2px 6px rgba(15, 23, 42, .05);
  --shadow-lg: 0 30px 80px rgba(15, 23, 42, .18);

  --header-h: 72px;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--paper-50);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern" 1, "calt" 1;
  overflow-x: hidden;
}

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

a { color: var(--cyan-800); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.1;
  text-wrap: balance;
}

p { text-wrap: pretty; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button, input, textarea, select { font: inherit; color: inherit; }

:where(a, button, input, textarea, summary):focus-visible {
  outline: 3px solid var(--cyan-700);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Utilities ──────────────────────────────────────────────────────────── */
.u-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Honeypot: off-screen, never focusable, never announced. */
.u-honeypot {
  position: absolute !important;
  left: -9999px;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 20px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  background: var(--ink-900);
  color: var(--paper-0);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.skip-link:focus-visible { top: 12px; }

[hidden] { display: none !important; }

/* ── Shared type ────────────────────────────────────────────────────────── */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-800);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 36px;
  height: 2px;
  background: currentColor;
}

.lead {
  font-size: clamp(17px, 0.98rem + 0.45vw, 22px);
  line-height: 1.55;
  color: var(--ink-600);
}

.accent { color: var(--cyan-800); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}
.btn--solid { background: var(--ink-900); color: var(--paper-0); }
.btn--solid:hover { background: var(--ink-800); }
.btn--solid:active { transform: translateY(1px); }
.btn--ghost { background: transparent; border-color: var(--ink-300); color: var(--ink-900); }
.btn--ghost:hover { border-color: var(--ink-900); background: var(--paper-0); }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 15px; border-radius: var(--radius-sm); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

/* ── Header / nav ───────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-200);
}
.site-header__inner {
  max-width: var(--measure);
  margin-inline: auto;
  padding: 12px var(--gutter);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink-900);
  flex: none;
}
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.028em;
}
.brand__accent { color: var(--cyan-700); }

.site-menu {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 30px);
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-600);
  text-decoration: none;
  white-space: nowrap;
  transition: color .16s ease;
}
.nav-links a:hover { color: var(--ink-900); }

.nav-signin {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-600);
  text-decoration: none;
  white-space: nowrap;
  transition: color .16s ease;
}
.nav-signin:hover { color: var(--ink-900); }

.lang-switch ul {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--ink-100);
  border-radius: var(--radius-pill);
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 38px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--ink-600);
  text-decoration: none;
  transition: background-color .16s ease, color .16s ease;
}
.lang-switch a:hover { color: var(--ink-900); background: var(--paper-0); }
.lang-switch a[aria-current="true"] {
  background: var(--paper-0);
  color: var(--ink-900);
  box-shadow: var(--shadow-sm);
}

/* Single-locale placeholder: shows which language you are reading, no links to
   translations that do not exist yet. Swaps back to .lang-switch automatically
   the moment a second locale is added to the build. */
.lang-static {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--ink-500);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 14px;
  background: var(--paper-0);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-900);
  cursor: pointer;
}
.nav-toggle__bars { display: grid; gap: 4px; width: 18px; }
.nav-toggle__bars span { display: block; height: 2px; background: currentColor; border-radius: 2px; }

@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .site-menu {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px var(--gutter) 24px;
    background: var(--paper-0);
    border-bottom: 1px solid var(--ink-200);
    box-shadow: var(--shadow-md);
  }
  [data-nav][data-nav-open="true"] .site-menu { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a {
    min-height: 52px;
    font-size: 17px;
    border-bottom: 1px solid var(--ink-100);
  }
  .lang-switch { margin-top: 12px; }
  .lang-switch ul { justify-content: flex-start; align-self: flex-start; width: fit-content; }
  .lang-switch a { min-width: 48px; min-height: 44px; font-size: 13px; }
  .lang-static { align-self: flex-start; margin-top: 12px; min-height: 36px; }
  .nav-cta { margin-top: 4px; justify-content: center; min-height: 52px; }
}

/* ── Layout primitives ──────────────────────────────────────────────────── */
.section { padding-block: var(--section-y); }
.section__inner,
.hero__inner,
.site-header__inner,
.site-footer__inner,
.legal__inner {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section--tint { background: var(--paper-0); border-block: 1px solid var(--ink-200); }
.section h2 { font-size: clamp(29px, 1.3rem + 2.6vw, 54px); margin-bottom: 16px; max-width: 20ch; }
.section__lead { margin-bottom: clamp(36px, 5vw, 56px); max-width: 68ch; font-size: clamp(17px, 0.98rem + 0.45vw, 21px); line-height: 1.55; color: var(--ink-600); }

.cards { display: grid; gap: clamp(16px, 2vw, 28px); }
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.cards--auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  padding-block: clamp(48px, 6vw, 88px) clamp(64px, 8vw, 104px);
  /* Top linear layer fades the tint back to paper so the section boundary
     below is a colour match, not a visible seam. */
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0) 62%, var(--paper-50) 100%),
    radial-gradient(900px 700px at 88% 4%, rgba(125, 211, 252, .14), transparent 62%),
    radial-gradient(700px 520px at 2% 76%, rgba(129, 140, 248, .11), transparent 62%),
    var(--paper-50);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(36px, 1.4rem + 3.9vw, 74px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero .lead { max-width: 56ch; margin-bottom: 32px; }

.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__meta {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--ink-600);
}
.hero__meta li { display: flex; align-items: baseline; gap: 8px; }
.hero__meta strong { color: var(--ink-900); font-weight: 600; }

/* Below ~1060px the right column gets too narrow for a 16:9 card to hold both
   the play button and the caption, so the hero goes single-column early. */
@media (max-width: 1060px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
}

/* ── Video preview card ─────────────────────────────────────────────────── */
.hero__media { min-width: 0; }

.video-card {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  background:
    radial-gradient(700px 500px at 78% 18%, rgba(125, 211, 252, .34), transparent 62%),
    radial-gradient(520px 420px at 12% 84%, rgba(99, 102, 241, .24), transparent 62%),
    var(--ink-900);
  transition: transform .2s ease, box-shadow .2s ease;
}
.video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 38%, rgba(15, 23, 42, .82) 100%);
}
.video-card:hover { transform: translateY(-3px); }
.video-card:hover .video-card__play { transform: translate(-50%, -50%) scale(1.05); }

.video-card__badge {
  position: absolute;
  z-index: 2;
  top: clamp(14px, 2.2vw, 24px);
  left: clamp(14px, 2.2vw, 24px);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px;
  background: rgba(15, 23, 42, .62);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--paper-0);
}
.video-card__badge::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 0 4px rgba(125, 211, 252, .2);
}

/* Sits above the caption block rather than dead centre, so the two never
   collide on a short 16:9 card. */
.video-card__play {
  position: absolute;
  z-index: 2;
  top: 36%; left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(50px, 7vw, 78px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .3);
  transition: transform .2s ease;
}
.video-card__play::before {
  content: "";
  position: absolute;
  top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-left: clamp(15px, 2vw, 22px) solid var(--ink-900);
  border-top: clamp(9px, 1.3vw, 14px) solid transparent;
  border-bottom: clamp(9px, 1.3vw, 14px) solid transparent;
}

.video-card__body {
  position: absolute;
  z-index: 2;
  inset-inline: clamp(16px, 2.4vw, 26px);
  bottom: clamp(16px, 2.4vw, 24px);
  display: grid;
  gap: 4px;
  color: var(--paper-0);
}
.video-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 0.95rem + 0.6vw, 25px);
  line-height: 1.16;
  letter-spacing: -0.016em;
}
.video-card__sub { font-size: 15px; color: var(--ink-300); }
/* A 16:9 card is only ~180px tall on a phone — drop the second line there. */
@media (max-width: 520px) { .video-card__sub { display: none; } }
.video-card__action {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan-400);
}

.video-card__unavailable {
  margin-top: 16px;
  padding: 14px 18px;
  background: var(--paper-0);
  border: 1px solid var(--ink-200);
  border-left: 3px solid var(--cyan-700);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--ink-600);
}

/* Preview endpoint unavailable → the card stops pretending to be playable. */
[data-preview="unavailable"] .video-card { pointer-events: none; box-shadow: var(--shadow-md); }
[data-preview="unavailable"] .video-card__play { display: none; }
[data-preview="unavailable"] .video-card__action { display: none; }
[data-preview="unavailable"] .video-card__badge { opacity: .7; }

/* ── Personas ───────────────────────────────────────────────────────────── */
.persona {
  background: var(--paper-0);
  border: 1px solid var(--ink-200);
  border-top: 4px solid var(--cyan-500);
  border-radius: var(--radius-md);
  padding: clamp(24px, 3vw, 34px);
}
.persona--2 { border-top-color: var(--indigo-500); }
.persona--3 { border-top-color: var(--success); }
.persona__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 16px;
}
.persona__title {
  font-size: clamp(21px, 1rem + 1vw, 27px);
  line-height: 1.2;
  margin-bottom: 12px;
}
.persona__body { font-size: 17px; line-height: 1.55; color: var(--ink-600); }
.persona__body strong { color: var(--ink-900); font-weight: 600; }

/* ── Features ───────────────────────────────────────────────────────────── */
.feature {
  position: relative;
  padding: clamp(22px, 2.6vw, 30px);
  background: var(--paper-50);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-md);
}
.feature__index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--cyan-700);
  margin-bottom: 12px;
}
.feature__title { font-size: 21px; line-height: 1.25; margin-bottom: 10px; }
.feature__body { font-size: 16px; line-height: 1.55; color: var(--ink-600); }
.feature__body strong { color: var(--ink-900); font-weight: 600; }

/* ── Curriculum (dark) ──────────────────────────────────────────────────── */
.section--dark { background: var(--ink-900); }
.section--dark h2, .section--dark h3 { color: var(--paper-0); }
.section--dark .eyebrow { color: var(--cyan-400); }
.section--dark .accent { color: var(--cyan-400); }
.section--dark .section__lead { color: var(--ink-300); }
.section--dark a { color: var(--cyan-400); }
.section--dark :where(a, button):focus-visible { outline-color: var(--cyan-400); }

.modules {
  display: grid;
  gap: clamp(14px, 1.6vw, 20px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 258px), 1fr));
}
.module {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(22px, 2.4vw, 28px);
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-radius: var(--radius-md);
}
.module--free { border-color: rgba(125, 211, 252, .45); background: linear-gradient(180deg, rgba(125, 211, 252, .08), rgba(30, 41, 59, 0) 55%), var(--ink-800); }
.module__code {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.module--free .module__code { color: var(--cyan-400); }
.module__title { font-size: 21px; line-height: 1.22; letter-spacing: -0.014em; }
.module__body { font-size: 15px; line-height: 1.5; color: var(--ink-300); flex: 1; }
.module__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.module__free {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  min-height: 44px;
  margin-top: 2px;
  padding: 8px 14px;
  border: 1px solid rgba(125, 211, 252, .45);
  border-radius: var(--radius-sm);
  background: rgba(125, 211, 252, .1);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .16s ease;
}
.module__free:hover { background: rgba(125, 211, 252, .2); }
[data-preview="unavailable"] .module__free { display: none; }

.modules__note {
  margin-top: clamp(22px, 2.6vw, 30px);
  font-size: 15px;
  color: var(--ink-400);
  max-width: 76ch;
}

/* ── Why now / stats ────────────────────────────────────────────────────── */
.stats {
  display: grid;
  gap: clamp(24px, 3vw, 44px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.stat { display: flex; flex-direction: column; gap: 6px; padding-top: 22px; border-top: 3px solid var(--cyan-500); }
.stat--2 { border-top-color: var(--indigo-500); }
.stat--3 { border-top-color: var(--success); }
.stat__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 1.6rem + 2.6vw, 58px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--cyan-800);
}
.stat--2 .stat__value { color: var(--indigo-600); }
.stat--3 .stat__value { color: #047857; }
.stat__label { font-size: 20px; letter-spacing: -0.014em; margin-top: 4px; }
.stat__body { font-size: 16px; line-height: 1.55; color: var(--ink-600); }

.stats__note {
  margin-top: clamp(28px, 3vw, 40px);
  padding-top: 18px;
  border-top: 1px solid var(--ink-200);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: .04em;
  color: var(--ink-500);
  max-width: 90ch;
}

/* ── Contact ────────────────────────────────────────────────────────────── */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 48px);
  align-items: start;
}
@media (max-width: 880px) { .contact { grid-template-columns: minmax(0, 1fr); } }

.contact__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(22px, 3vw, 32px);
  background: var(--paper-50);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-md);
}
@media (max-width: 640px) { .contact__form { grid-template-columns: minmax(0, 1fr); } }
.field--wide, .contact__submit, .form-note { grid-column: 1 / -1; }

.field { display: grid; gap: 7px; min-width: 0; }
.field label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-800);
}
.field__req { color: var(--cyan-700); }
.field input, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--paper-0);
  border: 1px solid var(--ink-300);
  border-radius: var(--radius-sm);
  font-size: 16px;
  color: var(--ink-900);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { min-height: 132px; resize: vertical; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-400); }
.field input:hover, .field textarea:hover { border-color: var(--ink-400); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cyan-700);
  box-shadow: 0 0 0 3px rgba(14, 116, 144, .18);
}
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--cyan-700); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__error { font-size: 14px; font-weight: 500; color: var(--danger); }

.contact__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.contact__required { font-size: 14px; color: var(--ink-500); }

.form-note {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  line-height: 1.55;
  display: grid;
  gap: 4px;
}
.form-note--error { background: #FEF2F2; border: 1px solid #FECACA; color: #7F1D1D; }
.form-note--error a { color: #7F1D1D; }

.contact__success {
  grid-column: 1;
  padding: clamp(26px, 3.4vw, 40px);
  background: var(--paper-50);
  border: 1px solid rgba(16, 185, 129, .4);
  border-left: 4px solid var(--success);
  border-radius: var(--radius-md);
}
@media (max-width: 880px) { .contact__success { grid-column: 1 / -1; } }
.contact__success-mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--success);
  color: var(--paper-0);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}
.contact__success h3 { font-size: 24px; margin-bottom: 8px; }
.contact__success p { color: var(--ink-600); }

.contact__aside {
  padding: clamp(22px, 3vw, 30px);
  background: var(--ink-900);
  border-radius: var(--radius-md);
  color: var(--ink-300);
}
.contact__aside h3 { color: var(--paper-0); font-size: 20px; margin-bottom: 18px; }
.contact__aside dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan-400);
  margin-top: 18px;
}
.contact__aside dt:first-of-type { margin-top: 0; }
.contact__aside dd { margin: 6px 0 0; }
.contact__aside dd a {
  color: var(--paper-0);
  font-family: var(--font-mono);
  font-size: 15px;
  word-break: break-word;
}
.contact__aside-note { font-size: 15px; line-height: 1.5; color: var(--ink-400); }
.contact__aside :where(a):focus-visible { outline-color: var(--cyan-400); }
.contact__privacy {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--ink-700);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-400);
}
.contact__privacy a { color: var(--cyan-400); }

/* ── Video modal ────────────────────────────────────────────────────────── */
.video-modal {
  /* The global `* { margin: 0 }` reset kills the UA's `margin: auto` that
     centers <dialog>, pinning it to the top-left — restore it. */
  margin: auto;
  width: min(980px, 94vw);
  max-width: 94vw;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--ink-900);
  color: var(--paper-0);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.video-modal::backdrop { background: rgba(15, 23, 42, .78); backdrop-filter: blur(3px); }
.video-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--ink-700);
}
.video-modal__title { font-size: 18px; color: var(--paper-0); }
.video-modal__close {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid var(--ink-700);
  border-radius: var(--radius-sm);
  color: var(--paper-0);
  font-size: 16px;
  cursor: pointer;
}
.video-modal__close:hover { background: var(--ink-800); }
.video-modal__close:focus-visible { outline-color: var(--cyan-400); }
.video-modal__frame { background: #000; }
.video-modal__frame video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video-modal__foot {
  padding: 14px 18px;
  font-size: 14px;
  color: var(--ink-400);
  border-top: 1px solid var(--ink-700);
}

/* ── Legal pages ────────────────────────────────────────────────────────── */
.legal { padding-block: clamp(40px, 5vw, 72px) clamp(56px, 7vw, 96px); }
.legal__inner { max-width: 940px; }

.legal__draft {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
  padding: 14px 18px;
  margin-bottom: clamp(28px, 4vw, 48px);
  background: #FFFBEB;
  border: 1px solid #FCD34D;
  border-radius: var(--radius-sm);
  font-size: 15px;
  line-height: 1.55;
  color: #78350F;
}
.legal__draft-pill {
  flex: none;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: #B45309;
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.legal__head { margin-bottom: clamp(32px, 4vw, 48px); }
.legal__head h1 {
  font-size: clamp(32px, 1.4rem + 2.6vw, 54px);
  line-height: 1.06;
  margin-bottom: 12px;
}
.legal__updated {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 20px;
}
.legal__head .lead { max-width: 70ch; }

.legal__glance { margin-bottom: clamp(32px, 4vw, 48px); }
.legal__glance h2 { font-size: 22px; margin-bottom: 16px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--ink-200); border-radius: var(--radius-md); background: var(--paper-0); }
.table-scroll:focus-visible { outline: 3px solid var(--cyan-700); outline-offset: 2px; }
.legal table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td { padding: 13px 16px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--ink-200); }
.legal thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-600);
  background: var(--paper-50);
  white-space: nowrap;
}
.legal tbody th { font-weight: 600; color: var(--ink-900); }
.legal tbody td { color: var(--ink-600); }
.legal tbody tr:last-child :where(th, td) { border-bottom: 0; }

.legal__toc {
  padding: clamp(20px, 2.6vw, 28px);
  margin-bottom: clamp(32px, 4vw, 48px);
  background: var(--paper-0);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-md);
}
.legal__toc h2 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 12px;
}
.legal__toc ol { counter-reset: toc; display: grid; gap: 2px; }
.legal__toc li { counter-increment: toc; }
.legal__toc a {
  display: flex;
  gap: 12px;
  align-items: baseline;
  min-height: 40px;
  padding: 8px 0;
  font-size: 16px;
  color: var(--ink-700);
  text-decoration: none;
}
.legal__toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan-700);
}
.legal__toc a:hover { color: var(--ink-900); text-decoration: underline; }

.legal__section { margin-bottom: clamp(28px, 3.4vw, 40px); }
.legal__section h2 {
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-size: clamp(21px, 1rem + 0.8vw, 26px);
  line-height: 1.25;
  margin-bottom: 12px;
}
.legal__num { font-family: var(--font-mono); font-size: 13px; color: var(--cyan-700); flex: none; }
.legal__section p { margin-bottom: 12px; max-width: 76ch; color: var(--ink-700); }
.legal__section p:last-child { margin-bottom: 0; }
.legal__section strong { color: var(--ink-900); font-weight: 600; }

.legal__foot {
  margin-top: clamp(36px, 4vw, 56px);
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--ink-200);
}
.legal__foot h2 { font-size: 22px; margin-bottom: 10px; }
.legal__foot p { margin-bottom: 12px; max-width: 76ch; }
.legal__emails { font-family: var(--font-mono); font-size: 15px; word-break: break-word; }
.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
}
.legal__back:hover { text-decoration: underline; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--paper-0);
  border-top: 1px solid var(--ink-200);
  padding-block: clamp(40px, 5vw, 64px) 32px;
}
.site-footer__inner {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}
@media (max-width: 860px) { .site-footer__inner { grid-template-columns: minmax(0, 1fr); } }

.site-footer__tagline {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--ink-500);
}
/* Flex, not auto-fit grid: the column count follows the number of columns that
   actually exist (two today, three once the language switcher returns) instead
   of leaving an empty track. */
.site-footer__cols {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 3vw, 48px);
}
.site-footer__col { flex: 1 1 190px; min-width: 190px; }
.site-footer__heading {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 10px;
}
.site-footer__col ul { display: grid; gap: 10px; }
/* Label sits on its own line above the value so long addresses never push
   the label into a ragged second line. */
.site-footer__col li { display: flex; flex-direction: column; gap: 1px; }
.site-footer__col a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  color: var(--ink-700);
  text-decoration: none;
  word-break: break-word;
}
.site-footer__col a:hover { color: var(--ink-900); text-decoration: underline; }
.site-footer__col a[aria-current="true"] { color: var(--cyan-800); font-weight: 600; }
.site-footer__note { font-size: 13px; color: var(--ink-500); }

.site-footer__legal {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid var(--ink-200);
  font-size: 14px;
  color: var(--ink-500);
}

/* ── Motion preferences ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .video-card:hover { transform: none; }
  .video-card:hover .video-card__play { transform: translate(-50%, -50%); }
}

/* ── Forced colors ──────────────────────────────────────────────────────── */
@media (forced-colors: active) {
  .btn, .persona, .feature, .module, .contact__form, .video-card { border: 1px solid; }
}
