/* Terminal Velocity AI - Legal Technology
   Direction: deep ink + brass on warm paper, serif display type, generous rhythm.
   Mobile-first. Breakpoints: 480 / 768 / 1024. One section rhythm (--section-y) everywhere. */

:root {
  --ink: #0b1220;
  --ink-2: #121c33;
  --ink-3: #1b2846;
  --on-ink: #eef1f7;
  --on-ink-muted: #aab4c8;
  --line-ink: rgba(255, 255, 255, 0.14);

  --paper: #fbf8f2;
  --ivory: #f3eee3;
  --stone: #e2d9c6;
  --text: #19212f;
  --muted: #566075;
  --line: #ddd4c1;

  --brass: #c98a2b;
  --brass-bright: #f0b24d;
  --brass-deep: #82530c;      /* brass as text on light backgrounds (AA contrast) */
  --on-brass: #1d1204;
  --teal: #176d62;
  --danger: #a3341f;
  --ok: #1e7a4f;

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(56px, 8vw, 104px);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(11, 18, 32, 0.06), 0 12px 32px -12px rgba(11, 18, 32, 0.22);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.2), 0 30px 60px -20px rgba(0, 0, 0, 0.55);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1.0625rem/1.65 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--brass-deep); }
:focus-visible { outline: 3px solid var(--brass-bright); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--brass-bright); color: var(--on-brass); padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip:focus { top: 12px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.4vw + 0.4rem, 4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw + 0.6rem, 2.7rem); }
h3 { font-size: clamp(1.2rem, 1vw + 1rem, 1.5rem); line-height: 1.2; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 0.6vw + 1rem, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 62ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 0.78rem/1.45 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-deep); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; flex: none; }
.on-ink .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--brass-bright); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--ivory { background: var(--ivory); }
.section--ink { background: var(--ink); color: var(--on-ink); }
.section--ink .lead, .section--ink p { color: var(--on-ink-muted); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head .lead { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border-radius: 999px; font: 600 1rem/1.2 var(--font-body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, color .15s, border-color .15s, box-shadow .15s; text-align: center; }
.btn:hover { transform: translateY(-2px); }
.btn--brass { background: var(--brass-bright); color: var(--on-brass); box-shadow: 0 8px 24px -8px rgba(240, 178, 77, 0.6); }
.btn--brass:hover { background: #ffc766; color: var(--on-brass); }
.btn--ghost { border-color: var(--line-ink); color: var(--on-ink); background: rgba(255,255,255,0.04); }
.btn--ghost:hover { border-color: var(--brass-bright); color: var(--brass-bright); }
.btn--dark { background: var(--ink); color: var(--on-ink); }
.btn--dark:hover { background: var(--ink-3); color: #fff; }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }
.link-arrow::after { content: "\2192"; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 18, 32, 0.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-ink); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.brand, .footer-grid a.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; min-height: 44px; }
.brand:hover { color: #fff; }
.brand img { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font: 700 1.05rem/1.1 var(--font-display); letter-spacing: 0.01em; }
.brand-sub { font: 600 0.75rem/1.2 var(--font-body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass-bright); margin-top: 3px; }
.nav-toggle { display: none; min-width: 48px; min-height: 48px; background: transparent; border: 1px solid var(--line-ink); border-radius: 10px; color: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s, background .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { color: var(--on-ink-muted); text-decoration: none; padding: 10px 14px; border-radius: 999px; font-weight: 500; font-size: 0.97rem; min-height: 44px; display: inline-flex; align-items: center; }
.site-nav a:hover { color: #fff; background: rgba(255,255,255,0.07); }
.site-nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,0.1); }
.site-nav .btn { margin-left: 10px; min-height: 44px; padding: 8px 20px; color: var(--on-brass); }
.site-nav .btn:hover { color: var(--on-brass); background: #ffc766; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: var(--on-ink); overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(240,178,77,0.20), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(31,92,160,0.35), transparent 60%),
    linear-gradient(180deg, #0b1220, #0e1830); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--line-ink) 1px, transparent 1px), linear-gradient(90deg, var(--line-ink) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%); }
.hero .wrap { display: grid; gap: clamp(36px, 5vw, 72px); padding-block: clamp(48px, 7vw, 104px); align-items: center; }
.hero h1 { color: #fff; margin-bottom: 0.4em; }
.hero h1 em { font-style: italic; color: var(--brass-bright); }
.hero .lead { color: var(--on-ink-muted); margin-bottom: 30px; }
.hero-note { margin: 22px 0 0; font-size: 0.97rem; color: var(--on-ink-muted); }
.hero-note a { color: var(--brass-bright); font-weight: 600; }

/* Illustrative "deadline radar" panel */
.radar { background: linear-gradient(180deg, #16213d, #101a31); border: 1px solid var(--line-ink); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; width: 100%; }
.radar-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-ink); background: rgba(255,255,255,0.03); }
.radar-title { font: 600 0.8rem/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-ink); display: flex; align-items: center; gap: 10px; }
.radar-title::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #5be0a0; box-shadow: 0 0 0 4px rgba(91,224,160,0.2); animation: pulse 2.2s infinite; }
.radar-tag { font-size: 0.75rem; color: var(--on-ink-muted); border: 1px solid var(--line-ink); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.radar-list { list-style: none; margin: 0; padding: 8px 0; }
.radar-row { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,0.06); animation: rowIn .6s both; }
.radar-row:last-child { border-bottom: 0; }
.radar-row:nth-child(1) { animation-delay: .15s; } .radar-row:nth-child(2) { animation-delay: .3s; } .radar-row:nth-child(3) { animation-delay: .45s; } .radar-row:nth-child(4) { animation-delay: .6s; } .radar-row:nth-child(5) { animation-delay: .75s; }
.chip { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 10px; padding: 8px 0; font-weight: 700; line-height: 1; }
.chip b { font: 700 1.5rem/1 var(--font-display); }
.chip small { font: 600 0.75rem/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 4px; opacity: .85; }
.chip--red { background: rgba(255,107,87,0.16); color: #ff9a8a; border: 1px solid rgba(255,107,87,0.5); }
.chip--amber { background: rgba(240,178,77,0.16); color: #ffcf84; border: 1px solid rgba(240,178,77,0.5); }
.chip--green { background: rgba(91,224,160,0.12); color: #8ff0bd; border: 1px solid rgba(91,224,160,0.4); }
.radar-what { font-weight: 600; color: #fff; font-size: 0.98rem; line-height: 1.35; }
.radar-mod { display: block; font-weight: 500; font-size: 0.8rem; color: var(--on-ink-muted); margin-top: 3px; }
.radar-foot { padding: 14px 20px; border-top: 1px solid var(--line-ink); font-size: 0.8rem; color: var(--on-ink-muted); background: rgba(255,255,255,0.03); }
@keyframes rowIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(91,224,160,0.2); } 50% { box-shadow: 0 0 0 9px rgba(91,224,160,0); } }

/* ---------- Facts strip ---------- */
.facts { background: var(--ivory); border-bottom: 1px solid var(--line); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; }
.facts li { padding: 26px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts li:nth-child(2n) { border-right: 0; }
.facts li:nth-last-child(-n+2) { border-bottom: 0; }
.fact-num { font: 700 clamp(2rem, 4vw, 2.8rem)/1 var(--font-display); color: var(--ink); display: block; }
.fact-label { color: var(--muted); font-size: 0.95rem; line-height: 1.4; display: block; margin-top: 6px; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.grid--3 { grid-template-columns: 1fr; }
.grid--2 { grid-template-columns: 1fr; }
.grid--mods { grid-template-columns: 1fr; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 2.6vw, 34px); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card > :last-child { margin-bottom: 0; }
.card h3 { margin-bottom: 0.45em; }
.card p { color: var(--muted); }
.card .push { margin-top: auto; padding-top: 14px; }
.icon-badge { width: 52px; height: 52px; border-radius: 14px; background: var(--ink); color: var(--brass-bright); display: grid; place-items: center; margin-bottom: 20px; flex: none; }
.icon-badge svg { width: 26px; height: 26px; }
.checks { list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 28px; color: var(--text); font-size: 0.98rem; line-height: 1.5; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.38em; width: 16px; height: 16px; border-radius: 50%; background: var(--brass-bright) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.2 8.3l2.4 2.4 5-5.2' fill='none' stroke='%231d1204' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.section--ink .checks li { color: var(--on-ink); }

/* Module cards */
.mod-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.mod { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-decoration: none; color: inherit; transition: transform .18s, box-shadow .18s, border-color .18s; }
.mod:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brass); color: inherit; }
.mod-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mod-num { font: 700 1.9rem/1 var(--font-display); color: var(--brass); }
.mod-law { font: 600 0.75rem/1.3 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass-deep); text-align: right; }
.mod h3 { margin: 6px 0 0; font-size: 1.3rem; }
.mod p { margin: 0; color: var(--muted); font-size: 0.97rem; line-height: 1.5; }

.module-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow); display: flex; flex-direction: column; scroll-margin-top: calc(var(--header-h) + 20px); }
.module-card .mod-law { margin-bottom: 8px; display: block; }
.module-card h3 { font-size: 1.55rem; }
.module-card .mod-index { font: 700 0.9rem/1 var(--font-display); color: var(--brass-deep); margin-bottom: 10px; }
.module-card p { color: var(--muted); }
.module-card .push { margin-top: auto; padding-top: 12px; }

/* ---------- Buy models ---------- */
.model { position: relative; }
.model .tag { align-self: flex-start; font: 700 0.75rem/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; background: var(--ivory); color: var(--brass-deep); border-radius: 999px; padding: 7px 12px; margin-bottom: 18px; }
.model--feature { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.model--feature h3 { color: #fff; }
.model--feature p { color: var(--on-ink-muted); }
.model--feature .tag { background: var(--brass-bright); color: var(--on-brass); }
.model--feature .checks li { color: var(--on-ink); }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: step; grid-template-columns: 1fr; }
.step { position: relative; padding: 24px; border: 1px solid var(--line-ink); border-radius: var(--radius); background: rgba(255,255,255,0.04); counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); display: block; font: 700 2.2rem/1 var(--font-display); color: var(--brass-bright); margin-bottom: 14px; }
.step h3 { color: #fff; font-size: 1.25rem; }
.step p { color: var(--on-ink-muted); font-size: 0.98rem; margin: 0; }
.section--light .step, .steps--light .step { border-color: var(--line); background: #fff; }
.steps--light .step h3 { color: var(--text); }
.steps--light .step p { color: var(--muted); }
.steps--light .step::before { color: var(--brass); }

/* ---------- Split feature (credibility) ---------- */
.split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; grid-template-columns: 1fr; }
.video-card { position: relative; display: block; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line-ink); background: #000; aspect-ratio: 16 / 9; }
.video-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.video-card:hover img { transform: scale(1.03); }
.video-card .play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, rgba(11,18,32,0.05), rgba(11,18,32,0.55)); }
.video-card .play span { width: 76px; height: 76px; border-radius: 50%; background: var(--brass-bright); color: var(--on-brass); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(240,178,77,0.28); }
.video-card .play svg { width: 30px; height: 30px; margin-left: 4px; }
.video-card .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 18px; font-weight: 600; color: #fff; font-size: 0.95rem; background: linear-gradient(0deg, rgba(11,18,32,0.92), transparent); }

/* ---------- Audience routing ---------- */
.route { display: flex; flex-direction: column; border-radius: var(--radius); padding: clamp(26px, 3.4vw, 44px); text-decoration: none; position: relative; overflow: hidden; min-height: 280px; }
.route h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
.route p { max-width: 46ch; }
.route .link-arrow { margin-top: auto; padding-top: 16px; }
.route--sa { background: var(--ink); color: var(--on-ink); }
.route--sa h3, .route--sa .link-arrow { color: #fff; }
.route--sa p { color: var(--on-ink-muted); }
.route--intl { background: var(--brass-bright); color: var(--on-brass); }
.route--intl h3, .route--intl .link-arrow, .route--intl p { color: var(--on-brass); }
.route .kicker { font: 700 0.75rem/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 16px; opacity: .85; }
.route::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 2px solid currentColor; opacity: .12; }
.route::before { content: ""; position: absolute; right: -20px; top: -20px; width: 140px; height: 140px; border-radius: 50%; border: 2px solid currentColor; opacity: .12; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--ink); color: var(--on-ink); position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(800px 380px at 90% 0%, rgba(240,178,77,0.18), transparent 60%), linear-gradient(180deg, #0b1220, #0f1a33); }
.page-hero .wrap { padding-block: clamp(44px, 6vw, 88px); }
.page-hero h1 { color: #fff; max-width: 20ch; font-size: clamp(2rem, 4.6vw + 0.4rem, 3.4rem); }
.page-hero .lead { color: var(--on-ink-muted); margin-bottom: 0; }
.page-hero .btn-row { margin-top: 28px; }

/* International hero: four-beat headline */
.beats { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 4px; }
.beats li { font: 700 clamp(2rem, 5.6vw, 4rem)/1.08 var(--font-display); color: #fff; letter-spacing: -0.015em; }
.beats li:nth-child(odd) { color: var(--brass-bright); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: var(--on-ink); position: relative; overflow: hidden; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 320px at 15% 120%, rgba(240,178,77,0.25), transparent 60%); }
.cta-band .wrap { display: grid; gap: 26px; padding-block: clamp(48px, 6vw, 84px); align-items: center; }
.cta-band h2 { color: #fff; margin: 0; max-width: 22ch; }
.cta-band p { color: var(--on-ink-muted); margin: 14px 0 0; max-width: 56ch; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary { cursor: pointer; padding: 18px 56px 18px 20px; font-weight: 600; list-style: none; position: relative; min-height: 56px; display: flex; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font: 400 1.6rem/1 var(--font-body); color: var(--brass-deep); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 20px 20px; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Statute table-as-cards ---------- */
.law-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.law { display: grid; gap: 4px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brass); border-radius: var(--radius-sm); padding: 18px 20px; }
.law b { font: 700 1.1rem/1.25 var(--font-display); }
.law span { color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.law em { font-style: normal; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-deep); }

/* ---------- Demos ---------- */
.demo-feature { display: grid; gap: 22px; grid-template-columns: 1fr; margin-bottom: clamp(28px, 4vw, 48px); }
.demo { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.demo video { width: 100%; aspect-ratio: 16 / 9; background: #000; object-fit: cover; }
.demo-body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.demo-body h3 { margin: 0; font-size: 1.3rem; }
.demo-body p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.demo-meta a { display: inline-flex; align-items: center; min-height: 44px; }
.demo-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: auto; padding-top: 12px; font-size: 0.9rem; color: var(--muted); }
.pill { background: var(--ivory); color: var(--brass-deep); font-weight: 700; font-size: 0.75rem; letter-spacing: .06em; border-radius: 999px; padding: 5px 11px; }
.demo--feature .demo-body h3 { font-size: 1.6rem; }

/* ---------- Forms ---------- */
.form-shell { display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: 1fr; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 3.4vw, 40px); box-shadow: var(--shadow); }
.field { display: grid; gap: 7px; margin-bottom: 20px; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 0.95rem; color: var(--text); padding: 0; }
.field .hint { font-size: 0.85rem; color: var(--muted); font-weight: 400; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid #c9bfa8; border-radius: var(--radius-sm); font: inherit; font-size: 1rem; background: var(--paper); color: var(--text); }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(240,178,77,0.6); border-color: var(--brass); background: #fff; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); background: #fff8f6; }
.err { color: var(--danger); font-size: 0.9rem; font-weight: 600; }
fieldset.field { border: 0; margin: 0 0 20px; padding: 0; }
.row-2 { display: grid; gap: 0 18px; grid-template-columns: 1fr; }
.check-grid { display: grid; gap: 8px; grid-template-columns: 1fr; }
.check { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); cursor: pointer; font-size: 0.97rem; }
.check:hover { border-color: var(--brass); }
.check input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; margin: 0; }
.check:has(input:checked) { border-color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; color: var(--muted); margin-bottom: 22px; }
.consent input { width: 22px; height: 22px; accent-color: var(--ink); margin-top: 2px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 22px; font-weight: 600; }
.alert--error { background: #fdeeea; color: var(--danger); border: 1px solid #f0c2b8; }
.aside-card { background: var(--ink); color: var(--on-ink); border-radius: 18px; padding: clamp(24px, 3vw, 36px); }
.aside-card h3 { color: #fff; }
.aside-card p, .aside-card li { color: var(--on-ink-muted); }
.aside-card ol { padding-left: 20px; margin: 0 0 1.2em; display: grid; gap: 10px; }
.aside-card a { color: var(--brass-bright); }

/* ---------- Prose / legal ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose ul { padding-left: 22px; }
.banner { background: #fff4d9; border: 1px solid #ecd08b; border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 28px; font-size: 0.95rem; color: #5a4306; }

/* ---------- Admin ---------- */
.lead-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.lead-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 22px; margin-bottom: 14px; }
.lead-card h3 { margin: 0 0 4px; font-size: 1.15rem; }
.lead-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 12px 0 0; font-size: 0.95rem; }
.lead-card dt { color: var(--muted); font-weight: 600; }
.lead-card dd { margin: 0; overflow-wrap: anywhere; }
.lead-card .msg { white-space: pre-wrap; background: var(--paper); border-radius: 8px; padding: 12px 14px; margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink-muted); padding-top: clamp(44px, 6vw, 72px); border-top: 1px solid var(--line-ink); }
.footer-grid { display: grid; gap: 34px; grid-template-columns: 1fr; padding-bottom: 40px; }
.footer-grid h4 { font: 700 0.78rem/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer-grid a { color: var(--on-ink-muted); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.footer-grid a:hover { color: var(--brass-bright); }
.footer-grid .footer-brand a.brand { min-height: 48px; }
.footer-brand p { max-width: 38ch; margin-top: 16px; font-size: 0.97rem; }
.footer-bottom { border-top: 1px solid var(--line-ink); padding-block: 22px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 0.88rem; }
.footer-bottom a { color: var(--on-ink-muted); }

.not-found { text-align: left; }

/* ====================== Breakpoints ====================== */
@media (min-width: 480px) {
  .check-grid { grid-template-columns: 1fr 1fr; }
  .row-2 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .facts ul { grid-template-columns: repeat(4, 1fr); }
  .facts li { border-bottom: 0; padding: 30px 24px; }
  .facts li:nth-child(2n) { border-right: 1px solid var(--line); }
  .facts li:last-child { border-right: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .law-grid { grid-template-columns: 1fr 1fr; }
  .demo-feature { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .cta-band .wrap { grid-template-columns: 1fr auto; }
}

@media (min-width: 1024px) {
  .hero .wrap { grid-template-columns: 1.08fr 0.92fr; }
  .grid--3, .grid--mods, .mod-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
  .form-shell { grid-template-columns: 1.35fr 1fr; }
  .form-shell .aside-card { position: sticky; top: calc(var(--header-h) + 24px); }
  .law-grid { grid-template-columns: repeat(3, 1fr); }
  .demo-feature { grid-template-columns: 1.6fr 1fr; align-items: stretch; }
}

/* Mobile navigation: collapses into a full-width panel below the header */
@media (max-width: 920px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px var(--gutter) 22px; background: var(--ink); border-bottom: 1px solid var(--line-ink); display: none; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .js.nav-open .site-nav { display: flex; }
  .js .site-nav a { padding: 14px 16px; font-size: 1.05rem; border-radius: 12px; }
  .js .site-nav .btn { margin: 10px 0 0; justify-content: center; min-height: 52px; }
  /* No-JS fallback: nav wraps onto its own row instead of overflowing */
  html:not(.js) .site-header .wrap { flex-wrap: wrap; padding-block: 10px; }
  html:not(.js) .site-nav { flex-wrap: wrap; }
}

@media (max-width: 479px) {
  .btn-row .btn { width: 100%; }
  .radar-row { grid-template-columns: 64px 1fr; gap: 12px; padding: 12px 14px; }
  .radar-top, .radar-foot { padding-inline: 14px; }
  .radar-tag { display: none; }
  .brand-sub { letter-spacing: 0.14em; }
  .lead-card dl { grid-template-columns: 1fr; gap: 2px; }
  .lead-card dt { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Spacing/colour utilities (inline style attributes are blocked by the CSP) */
.mt-s { margin-top: 20px; }
.mt-m { margin-top: 28px; }
.mt-l { margin-top: clamp(28px, 4vw, 48px); }
.link-bright { color: var(--brass-bright); }
.link-bright:hover { color: #fff; }
.alert ul { margin: 8px 0 0; padding-left: 20px; font-weight: 500; }
.alert a { color: inherit; }
.hint { font-size: 0.85rem; color: var(--muted); }

/* International hero: promise on the left, project timeline on the right so neither side is barren */
.page-hero--split .wrap { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
.page-hero--split .beats li { font-size: clamp(1.9rem, 4.4vw, 3.3rem); }
.page-hero--split .radar-row { animation-delay: 0s; }
ol.radar-list { list-style: none; margin: 0; padding: 8px 0; }
@media (min-width: 1024px) { .page-hero--split .wrap { grid-template-columns: 1.1fr 0.9fr; } }
