/*
 * simvidence.com: built on the app's design tokens (frontend-next/src/design/tokens.css):
 * graphite surfaces, brand navy for the top bar and hero, IBM Plex Sans only,
 * blue only for interaction. Real, anonymised product screens carry the page.
 */
@font-face { font-family: "IBM Plex Sans"; font-weight: 300; font-style: normal; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 300; font-style: italic; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #0d1117; --surface: #151b23; --surface-2: #1c2430; --surface-3: #243041;
  --line: #2a3442; --line-strong: #3a4757;
  --text: #e6edf3; --text-2: #b9c4d0; --muted: #8b98a8; --faint: #808d9f;
  --navy: #000a2e; --navy-raised: #08163f; --navy-line: #18254f; --navy-line-strong: #2a3a6b;
  --accent: #4c8dff; --accent-hover: #6ba1ff; --accent-soft: rgba(76, 141, 255, 0.16); --accent-line: rgba(76, 141, 255, 0.55);
  --accent-fill: #2f6fe0; --accent-fill-hover: #2a66d4; --on-accent: #ffffff;
  --focus-ring: 0 0 0 2px var(--bg), 0 0 0 4px #8ab4ff;
  --role-fo: #38bdf8; --role-ins: #cbd5e1; --role-cpt: #f472b6; --role-top: #9aa6b4;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px; --gutter: clamp(16px, 4vw, 48px);
  --radius-sm: 4px; --radius: 6px; --radius-lg: 12px; --hit: 44px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 10px 14px; border-radius: var(--radius); background: var(--accent-fill); color: var(--on-accent); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--accent); }
.display { font-weight: 300; letter-spacing: -0.025em; line-height: 1.04; color: var(--text); }
.display em { font-style: italic; color: var(--text-2); }
h2.display { font-size: clamp(34px, 4.2vw, 56px); }
.lead { font-size: 18px; color: var(--text-2); max-width: 38em; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mb-40 { margin-bottom: 40px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--hit); padding: 0 20px; border-radius: var(--radius); font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; border: 1px solid transparent; transition: background 140ms, border-color 140ms; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--accent-fill); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-fill-hover); }
.btn:disabled { opacity: 0.5; cursor: default; pointer-events: none; }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--text-2); }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 16px; }
.link { color: var(--accent); font-weight: 600; text-decoration: none; }
.link:hover { color: var(--accent-hover); }

/* ---------- Brand lockup (as in the app: wordmark | powered by SIMNEST GROUP) ---------- */
.brand { --brand-h: 20px; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { width: auto; max-width: none; }
.brand .wm { height: var(--brand-h); }
.brand .pw { height: calc(var(--brand-h) * 0.9); }
.brand .div { width: 1px; height: calc(var(--brand-h) * 1.2); background: var(--navy-line-strong); }

/* ---------- Top bar (brand navy, as the app bar) ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--navy); border-bottom: 1px solid var(--navy-line); }
.topbar > .wrap { display: flex; align-items: center; gap: 24px; height: 64px; max-width: 1320px; }
.topnav { display: flex; gap: 2px; margin-right: auto; }
.topnav a { display: inline-flex; align-items: center; height: var(--hit); padding: 0 12px; border-radius: var(--radius); color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.topnav a:hover { color: var(--text); background: var(--navy-raised); }
.topnav a[aria-current="page"] { color: var(--text); }
.topbar .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
.menu-btn { display: none; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: var(--radius); border: 1px solid var(--navy-line-strong); background: transparent; color: var(--text); font-size: 14px; font-weight: 500; cursor: pointer; }
.menu-btn svg { width: 18px; height: 18px; }
.menu-btn[aria-expanded="true"] { background: var(--navy-raised); }
.menu { border-top: 1px solid var(--navy-line); background: var(--navy); }
.menu .wrap { display: grid; padding-top: 8px; padding-bottom: 16px; max-width: 1320px; }
.menu a { display: flex; align-items: center; min-height: var(--hit); color: var(--text-2); text-decoration: none; font-size: 16px; border-bottom: 1px solid var(--navy-line); }
.menu a:last-child { border-bottom: 0; }
.menu a:hover { color: var(--text); }

/* ---------- Quiet capacity line ---------- */
.quiet { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 14px; color: var(--muted); }
.quiet i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-2); flex: none; }
.quiet b { color: var(--text); font-weight: 500; }

/* ---------- Product screens ---------- */
.screen { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--navy-line-strong); background: var(--bg); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); }
.screen img { width: 100%; }
.screen.spot .spot-ring { position: absolute; left: 37.4%; top: 23.6%; width: 62.6%; height: 76.4%; border: 2px solid var(--accent); border-radius: 6px; box-shadow: 0 0 0 9999px rgba(4, 7, 13, 0.42); pointer-events: none; }
.caption { font-size: 13px; color: var(--muted); }
.caption b { color: var(--text-2); font-weight: 600; }

/* ---------- Hero ---------- */
.hero { position: relative; background: radial-gradient(1100px 520px at 70% 100%, rgba(47, 111, 224, 0.22), transparent 65%), var(--navy); overflow: hidden; }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: end; padding-top: 88px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(42px, 5.4vw, 76px); margin-top: 18px; }
.hero .lead { margin-bottom: 28px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-shot { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.hero-shot .screen { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; }
.hero-caption { max-width: 1320px; margin: 0 auto; padding: 14px var(--gutter) 0; }
.numbers-cap { background: var(--bg); }

/* ---------- Numbers ---------- */
.numbers { background: var(--bg); border-top: 1px solid var(--line); }
.numbers ul { display: grid; grid-template-columns: repeat(5, 1fr); }
.numbers li { padding: 34px 24px 34px 0; }
.numbers li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.numbers b { display: block; font-size: clamp(34px, 3.6vw, 50px); font-weight: 300; letter-spacing: -0.02em; line-height: 1; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.numbers li > span { display: block; font-size: 14px; color: var(--muted); line-height: 1.4; }
.chips { display: flex; gap: 4px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 4px; font-size: 11px; font-weight: 600; border: 1px solid; }
.chip-fo { color: var(--role-fo); border-color: rgba(56, 189, 248, 0.5); }
.chip-ins { color: var(--role-ins); border-color: rgba(203, 213, 225, 0.4); }
.chip-cpt { color: var(--role-cpt); border-color: rgba(244, 114, 182, 0.5); }
.chip-top { color: var(--role-top); border-color: rgba(154, 166, 180, 0.4); }

/* ---------- Sections ---------- */
.sec { padding: clamp(80px, 10vw, 136px) 0; border-top: 1px solid var(--line); }
.sec-alt { background: var(--surface); }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: end; margin-bottom: 64px; }

.feature + .feature { margin-top: 112px; }
.feature-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; margin-bottom: 28px; }
.feature-head h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 300; letter-spacing: -0.015em; line-height: 1.15; margin-top: 12px; }
.feature-head p { color: var(--text-2); }
.feature-head .eyebrow { color: var(--accent); }
.feature-head ul { margin-top: 14px; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.feature-head li { display: grid; grid-template-columns: 18px 1fr; }
.feature-head li::before { content: ""; width: 5px; height: 5px; margin-top: 0.62em; border-radius: 50%; background: var(--line-strong); }

.contrast { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contrast article { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); }
.contrast .not { font-size: 14px; color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.contrast h3 { font-size: 22px; font-weight: 500; margin: 10px 0; letter-spacing: -0.01em; }
.contrast p { font-size: 15px; color: var(--text-2); }

.founding { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.launch { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--accent-line); background: color-mix(in srgb, var(--accent) 7%, var(--bg)); margin-top: 32px; }
.launch img { height: 44px; width: auto; }
.launch .no { display: block; font-size: 13px; font-weight: 600; color: var(--accent); }
.launch b { display: block; font-size: 18px; font-weight: 600; }
.launch .live { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 14px; color: var(--text-2); }
.launch .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--text); }
.perks li { display: grid; grid-template-columns: 32px 1fr; padding: 18px 0; border-top: 1px solid var(--line); }
.perks li:first-child { border-top: 0; padding-top: 0; }
.perks li > span { color: var(--accent); font-weight: 600; font-size: 14px; }
.perks b { display: block; font-weight: 600; }
.perks p { font-size: 15px; color: var(--muted); margin-top: 2px; }
.note { margin-top: 20px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface-2); font-size: 14px; color: var(--text-2); }
.note b { color: var(--text); }
.poc { font-size: 16px; color: var(--text-2); max-width: 38em; }
.poc b { font-weight: 600; color: var(--text); }

.wunder { display: grid; grid-template-columns: 130px minmax(0, 52em); gap: 40px; align-items: center; }
.wunder img { width: 130px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); filter: grayscale(1); }
.wunder blockquote { margin: 10px 0 12px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 300; line-height: 1.3; }
.wunder p { color: var(--muted); font-size: 15px; }
.wunder .eyebrow { color: var(--accent); }

.partners { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.partner { display: grid; grid-template-columns: 120px 1fr; gap: 22px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); }
.partner img { height: 40px; width: auto; }
.partner h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.partner p { font-size: 14px; color: var(--muted); }

.cta { background: radial-gradient(900px 400px at 20% 0%, rgba(47, 111, 224, 0.2), transparent 60%), var(--navy); border-top: 1px solid var(--navy-line); }
.cta .wrap { padding-top: 96px; padding-bottom: 96px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.cta h2 { font-size: clamp(32px, 3.8vw, 52px); }
.cta p { margin-top: 14px; color: var(--text-2); }

/* ---------- Footer ---------- */
.footer { background: var(--navy); border-top: 1px solid var(--navy-line); padding: 36px 0 48px; font-size: 14px; color: var(--muted); }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 20px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer .footer-legal { flex-basis: 100%; margin: 0; font-size: 12px; line-height: 1.5; color: var(--faint); }

/* ---------- Simple pages (privacy, 404) ---------- */
.page-head { background: var(--navy); border-bottom: 1px solid var(--navy-line); padding: 56px 0 40px; }
.page-head h1 { font-size: clamp(40px, 4.8vw, 64px); margin: 14px 0 18px; }
.page-404 { min-height: calc(100svh - 64px - 160px); display: flex; align-items: center; }
.legal-body > * { max-width: 760px; }
.legal-body h2 { font-size: 20px; font-weight: 600; margin: 36px 0 10px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { color: var(--text-2); }

/* ---------- Briefing request (the app's sign-in pattern: hero | one-task panel) ---------- */
.apply { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1fr); min-height: calc(100svh - 64px); }
.apply-hero { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; padding: 48px var(--gutter); overflow: hidden; background: var(--navy); }
.apply-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("/assets/img/runway.webp") center 70% / cover no-repeat; }
.apply-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,10,46,0.55) 0%, rgba(0,10,46,0.15) 30%, rgba(0,10,46,0.75) 60%, rgba(0,10,46,0.96) 100%); }
.apply-hero h1 { font-size: clamp(34px, 3.6vw, 48px); margin: 12px 0 14px; max-width: 12em; }
.apply-hero .lead { font-size: 16px; }
.receive { margin-top: 28px; max-width: 460px; padding: 18px 20px; border-radius: var(--radius-lg); background: rgba(8, 22, 63, 0.78); border: 1px solid var(--navy-line-strong); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.receive .k { font-size: 12px; font-weight: 600; color: var(--muted); }
.receive ul { margin-top: 10px; display: grid; gap: 8px; font-size: 14px; color: var(--text-2); }
.receive li { display: grid; grid-template-columns: 20px 1fr; }
.receive li::before { content: ""; width: 5px; height: 5px; margin-top: 0.62em; border-radius: 50%; background: var(--muted); }

.apply-panel { background: var(--bg); display: flex; justify-content: center; padding: 56px var(--gutter) 96px; }
.apply-panel form { width: 100%; max-width: 480px; }
.progress { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 26px; }
.progress .bars { display: flex; gap: 6px; }
.progress .bars i { width: 28px; height: 3px; border-radius: 2px; background: var(--line-strong); }
.progress .bars i.on { background: var(--accent); }
.apply-panel h2 { font-size: 28px; font-weight: 600; letter-spacing: -0.01em; }
.apply-panel .sub { color: var(--text-2); font-size: 15px; margin: 6px 0 28px; }
fieldset.form-step { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.form-step legend { padding: 0; }
.form-step[hidden] { display: none; }
.field { margin-bottom: 20px; }
.field > label, .field > .lbl { display: block; font-size: 14px; font-weight: 500; color: var(--text-2); margin-bottom: 8px; }
.field .opt { color: var(--muted); font-weight: 400; }
.input, .select { width: 100%; height: var(--hit); padding: 0 12px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: 400 16px var(--font); appearance: none; }
.input::placeholder { color: var(--faint); }
.input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(-45deg, transparent 50%, var(--muted) 50%); background-position: right 18px top 19px, right 13px top 19px; background-size: 5px 5px; background-repeat: no-repeat; }
.field.is-invalid .input { border-color: #ff7583; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.seg button { flex: 1; min-height: 36px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text-2); font-size: 14px; font-weight: 500; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 8px; font-size: 14px; color: var(--text-2); margin: 8px 0 4px; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent-fill); }
.form-actions { display: flex; gap: 12px; margin-top: 8px; }
.form-actions .btn-primary { flex: 1; }
.form-status { margin-top: 16px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2); color: var(--text-2); font-size: 14px; }
.form-status.is-error { background: rgba(239, 70, 88, 0.12); color: #ff7583; }
.form-note { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); display: grid; gap: 6px; }
.nojs { color: var(--text-2); }
.page-request .footer { padding-bottom: 40px; }

/* ---------- /card: where the business card QR lands ---------- */
.card-page { display: grid; justify-items: center; }
/* the page has its own two buttons; the top bar's "Request a briefing" (to /request) would be a third, so it keeps its place but is not shown */
.page-card .btn-top { visibility: hidden; }
.card-who { width: 100%; max-width: calc(480px + 2 * var(--gutter)); padding: 56px var(--gutter); }
.card-who h1 { margin: 12px 0 4px; font-size: clamp(30px, 6vw, 40px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
.card-who .role { font-size: 17px; color: var(--text-2); }
.card-actions { display: grid; gap: 12px; margin-top: 32px; }
.card-actions .hint { margin: -2px 0 10px; font-size: 13px; color: var(--muted); text-align: center; }
.card-brief { width: 100%; padding-top: 0; }
.card-brief[hidden] { display: none; }
.textarea { height: auto; min-height: 112px; padding: 10px 12px; line-height: 1.5; resize: vertical; }

/* ---------- Tablet ---------- */
@media (max-width: 1240px) {
  .topnav { display: none; }
  .menu-btn:not([hidden]) { display: inline-flex; }
  .topbar .btn-top { margin-left: auto; }
}
@media (min-width: 1241px) { .menu { display: none; } }
@media (max-width: 1180px) {
  .hero-copy, .sec-head, .founding { grid-template-columns: 1fr; gap: 28px; }
  .numbers ul { grid-template-columns: repeat(3, 1fr); }
  .numbers li:nth-child(4) { padding-left: 0; border-left: 0; }
  .numbers li:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .feature-head { grid-template-columns: 1fr; gap: 12px; }
  .contrast, .partners { grid-template-columns: 1fr; }
  .apply { grid-template-columns: 1fr; }
  .apply-hero { min-height: 420px; }
}
/* ---------- Phone ---------- */
@media (max-width: 640px) {
  body { font-size: 15px; }
  .topbar > .wrap { height: 56px; gap: 12px; }
  .brand { --brand-h: 16px; }
  .brand .div, .brand .pw { display: none; }
  .menu-btn span { display: none; }
  .menu-btn { padding: 0 10px; }
  .lead { font-size: 16px; }
  .hero-copy { padding-top: 56px; padding-bottom: 36px; }
  .ctas .btn { width: 100%; }
  .numbers ul { grid-template-columns: 1fr 1fr; }
  .numbers li { padding: 24px 16px 24px 0; }
  .numbers li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .numbers li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .numbers li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .launch { grid-template-columns: 1fr; }
  .wunder { grid-template-columns: 1fr; gap: 20px; }
  .wunder img { width: 110px; }
  .partner { grid-template-columns: 1fr; }
  .cta .wrap { grid-template-columns: 1fr; padding-top: 72px; padding-bottom: 72px; }
  .cta .btn { width: 100%; }
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .apply-hero { min-height: 380px; padding: 32px var(--gutter); }
  .apply-panel { padding: 36px var(--gutter) 96px; }
  .card-who { padding: 36px var(--gutter) 40px; }
  .card-brief { padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Spotlight variants (percentages of the 1568×726 screen) ---------- */
.screen.spot .spot-ring { left: var(--l, 37.4%); top: var(--t, 23.6%); width: var(--w, 62.6%); height: var(--h, 76.4%); }
.spot-recovery { --l: 41.3%; --t: 60.3%; --w: 57.6%; --h: 39.7%; }
.spot-cbta { --l: 37.5%; --t: 55.8%; --w: 62.5%; --h: 44.2%; }
.spot-table-i { --l: 13.2%; --t: 50.8%; --w: 73.1%; --h: 43.4%; }
.spot-table-c { --l: 13.2%; --t: 62%; --w: 73.1%; --h: 38%; }
.fig-cap { margin-top: 12px; }

/* ---------- Installation ---------- */
.install { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.facts article { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); }
.facts h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.facts p { font-size: 15px; color: var(--muted); }
.facts .chips { margin: 0 0 10px; }

/* ---------- Audiences + customised reports ---------- */
.audiences { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.audiences article { padding: 26px; border-top: 2px solid var(--accent-line); background: var(--surface); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.audiences h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.audiences p { font-size: 15px; color: var(--text-2); }
.custom { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 24px; padding: 22px 26px; border-radius: var(--radius-lg); border: 1px solid var(--accent-line); background: color-mix(in srgb, var(--accent) 7%, var(--bg)); }
.custom b { display: block; font-size: 18px; font-weight: 600; }
.custom span { color: var(--text-2); font-size: 15px; }

/* ---------- Narrative rail (wide screens) ---------- */
.rail { display: none; }
@media (min-width: 1440px) {
  .rail { display: block; position: fixed; left: 28px; top: 50%; transform: translateY(-50%); z-index: 20; }
  .rail ol { position: relative; display: grid; gap: 16px; }
  .rail ol::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1px; background: var(--line-strong); }
  .rail a { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 500; color: var(--faint); text-decoration: none; transition: color 160ms; }
  .rail a:hover { color: var(--text-2); }
  .rail i { position: relative; z-index: 1; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--line-strong); flex: none; transition: background 160ms, border-color 160ms, box-shadow 160ms; }
  .rail b { font-weight: 600; font-variant-numeric: tabular-nums; color: inherit; opacity: 0.7; }
  .rail a[aria-current="true"] { color: var(--text); }
  .rail a[aria-current="true"] i { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
  .rail { transition: opacity 200ms; }
  .rail.is-away { opacity: 0; pointer-events: none; }
  main .wrap, main .hero-shot, main .hero-caption { margin-left: max(184px, calc((100vw - var(--wrap)) / 2)); }
}
@media (max-width: 1180px) {
  .install { grid-template-columns: 1fr; gap: 28px; }
  .audiences { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr; }
}

/* =====================================================================================
 * v4 · Evidence: hero + scroll-to-debrief (a replica of the frontend-next workspace,
 * driven by scroll through a real go-around, AI-crew footage) + the glimpse of the tools.
 * Amber marks moments and cautions only; red marks warnings only.
 * ===================================================================================== */
:root { --moment: #f5a524; --warn: #ff5a4f; }

/* ---------- Hero ---------- */
.h4 { position: relative; min-height: calc(100svh - 64px); padding: 56px 0 48px; display: flex; flex-direction: column; justify-content: center; overflow: hidden;
  background: radial-gradient(120% 70% at 50% 0%, #0b1426 0%, #04070d 62%); }
.h4-eyebrow { margin-bottom: 18px; font-size: 14px; font-weight: 600; color: var(--accent); }
.h4-eyebrow span { color: var(--muted); margin: 0 4px; }
.h4-rec { position: absolute; left: 50%; top: 12px; z-index: 2; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(4, 7, 13, 0.6); font-size: 12px; font-weight: 500; letter-spacing: 0.18em; color: var(--text-2); }
.h4-rec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 4px rgba(255, 90, 79, 0.16); animation: h4-blink 1.6s steps(1) infinite; }
.h4-tc { letter-spacing: 0.08em; color: var(--text); font-variant-numeric: tabular-nums; }
@keyframes h4-blink { 50% { opacity: 0.25; } }
.h4-title { max-width: 20ch; font-weight: 300; font-size: clamp(2.4rem, 0.9rem + 4.4vw, 5.6rem); line-height: 1; letter-spacing: -0.03em; text-wrap: balance; }
.h4-ev { color: #fff; background: linear-gradient(var(--moment), var(--moment)) 0 94% / 0% 0.075em no-repeat; animation: h4-draw 1.1s 0.5s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes h4-draw { to { background-size: 100% 0.075em; } }
.h4-band { position: relative; margin-top: clamp(24px, 3vw, 40px); aspect-ratio: 1280 / 480; width: 100%; max-height: 42svh; background: #000; }
.h4-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: contrast(1.04); }
.h4-shade { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(90deg, #04070d 0%, transparent 9%, transparent 91%, #04070d 100%),
  linear-gradient(#04070d 0%, transparent 14%, transparent 80%, rgba(4, 7, 13, 0.85) 100%); }
.h4-tags { position: absolute; inset: 14px 0 auto; }
.h4-tags .vtag-cpt { position: absolute; left: 17%; } .h4-tags .vtag-fo { position: absolute; right: 19%; }
.vtag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 3px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: #04070d; }
.vtag-fo { background: var(--role-fo); } .vtag-cpt { background: var(--role-cpt); }
.h4-play { position: absolute; right: calc(var(--gutter) + 2%); bottom: 26px; z-index: 2; display: grid; place-items: center; width: var(--hit); height: var(--hit); border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(4, 7, 13, 0.55); color: #fff; cursor: pointer; }
.h4-play svg { width: 14px; height: 14px; }
.h4-play .i-pause { display: none; } .h4-play.is-playing .i-pause { display: inline; } .h4-play.is-playing .i-play { display: none; }
.h4-line { position: absolute; left: var(--gutter); right: calc(var(--gutter) + 2% + 56px); bottom: 14px; height: 2px; background: rgba(255, 255, 255, 0.18); }
.h4-flag { position: absolute; left: 65%; bottom: -5px; width: 2px; height: 12px; background: var(--moment); box-shadow: 0 0 10px var(--moment); }
.h4-flag::after { content: ""; position: absolute; left: 2px; top: 0; width: 8px; height: 6px; background: var(--moment); clip-path: polygon(0 0, 100% 0, 70% 50%, 100% 100%, 0 100%); }
.h4-head-dot { position: absolute; left: 0; top: -3px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15); }
.h4-foot { display: grid; grid-template-columns: minmax(0, 1.25fr) auto; gap: 20px 48px; align-items: end; margin-top: clamp(24px, 3vw, 40px); }
.h4-foot .lead { font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem); line-height: 1.5; max-width: 54ch; }
.h4-foot .quiet { grid-column: 1 / -1; margin-top: 4px; }
.h4-cue { display: none; position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); flex-direction: column; align-items: center; gap: 10px; text-decoration: none; font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.h4-cue i { width: 1px; height: 34px; background: linear-gradient(var(--text-2), transparent); animation: h4-cue 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes h4-cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (min-height: 940px) and (min-width: 1181px) { .h4-cue { display: flex; } }

/* debrief: focus ring on the element that changes, progress, skip */
.d-focus { position: absolute; z-index: 6; border: 2px solid var(--moment); border-radius: 10px; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 4px rgba(245, 165, 36, 0.16), 0 0 28px rgba(245, 165, 36, 0.35);
  transition: left 0.3s cubic-bezier(.2, .7, .2, 1), top 0.3s cubic-bezier(.2, .7, .2, 1), width 0.3s cubic-bezier(.2, .7, .2, 1), height 0.3s cubic-bezier(.2, .7, .2, 1), opacity 0.3s; }
.d-focus.on { opacity: 1; }
.dbf-foot { display: flex; align-items: center; gap: 18px; min-height: 24px; }
.dbf-progress { flex: 1; height: 3px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.dbf-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, rgba(245, 165, 36, 0.5), var(--moment)); }
html:not(.dbf-on) .dbf-progress { visibility: hidden; }
.dbf-skip { font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; }
.dbf-skip:hover { color: var(--text); }
.dbf-skip::after { content: " ↓"; }

/* ---------- A user's voice (after the debrief) ---------- */
.voice { background: radial-gradient(900px 420px at 80% 0%, rgba(245, 165, 36, 0.07), transparent 60%), #04070d; border-top: 1px solid var(--line); }
.voice-in { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(72px, 9vw, 120px); }
.voice-head h2 { font-size: clamp(30px, 3.4vw, 46px); }
.voice-quote { margin: 0; padding-left: 28px; border-left: 2px solid var(--moment); }
.voice-quote blockquote { margin: 0; }
.voice-big { font-size: clamp(22px, 2.3vw, 32px); font-weight: 300; line-height: 1.3; letter-spacing: -0.01em; color: #fff; }
.voice-more { margin-top: 20px; font-size: 16px; line-height: 1.6; color: var(--text-2); }
.voice-quote figcaption { margin-top: 18px; font-size: 14px; font-weight: 500; color: var(--muted); }
.voice-full { margin-top: 16px; }
.voice-full summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 500; color: var(--text-2); }
.voice-full summary::-webkit-details-marker { display: none; }
.voice-full summary::after { content: "+"; font-weight: 600; color: var(--moment); }
.voice-full[open] summary::after { content: "\2212"; }
.voice-full summary:hover { color: var(--text); }
.voice-full .voice-more { margin-top: 12px; }
.voice-cecil { margin-top: 32px; padding-left: 30px; max-width: 36em; font-size: 16px; line-height: 1.6; color: var(--text-2); }
.voice-cecil b { font-weight: 600; color: var(--text); }
.inst-quote { max-width: 920px; margin-top: 64px; }
@media (max-width: 900px) { .inst-quote { margin-top: 40px; } }
.voice-cta { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.voice-cta span { font-size: 15px; color: var(--text-2); }
@media (max-width: 1180px) { .voice-in { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 640px) { .voice-quote { padding-left: 18px; } .voice-more { font-size: 15px; } .voice-cecil { padding-left: 20px; font-size: 15px; } }

/* ---------- Scroll to debrief ---------- */
.dbf { position: relative; background: #04070d; border-top: 1px solid var(--line); }
html.dbf-on .dbf { height: 950vh; }
.dbf-stage { padding: 24px var(--gutter); display: flex; flex-direction: column; gap: 14px; max-width: 1760px; margin: 0 auto; }
html.dbf-on .dbf-stage { position: sticky; top: 64px; height: calc(100svh - 64px); padding-top: 18px; padding-bottom: 18px; }
.dbf-kicker { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.dbf-kicker span { width: 7px; height: 7px; border-radius: 50%; background: var(--moment); flex: none; }
.dbf-cap { margin-top: 8px; min-height: 2.5em; font-weight: 300; font-size: clamp(1.4rem, 0.9rem + 1.5vw, 2.5rem); line-height: 1.12; letter-spacing: -0.02em; }
.dbf-cap small { display: block; margin-top: 6px; font-size: clamp(0.95rem, 0.85rem + 0.3vw, 1.1rem); font-weight: 400; letter-spacing: 0; color: var(--text-2); }
.dbf-cap span, .dbf-cap small { transition: opacity 0.25s ease; }
.dbf-cap.swap span, .dbf-cap.swap small { opacity: 0; }
.dash-fit { position: relative; flex: 1; min-height: 0; }
html:not(.dbf-on) .dash-fit { height: 56vw; max-height: 900px; }

.dash { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; transform-origin: 0 0;
  display: grid; grid-template-rows: 52px 150px 1fr; background: var(--bg); color: var(--text); font: 400 14px/1.4 var(--font);
  border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --d-red: #ef4658; --d-amber: #f0b400; --d-neutral: #9aa6b4;
  --m-aircraft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cmask id='m'%3E%3Crect width='16' height='16' fill='white'/%3E%3Cpath d='M8 4.2v4.6' stroke='black' stroke-width='1.9' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='11.4' r='1.05' fill='black'/%3E%3C/mask%3E%3Cpath d='M8 .8 15.2 8 8 15.2.8 8Z' mask='url(%23m)'/%3E%3C/svg%3E");
  --m-ai: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 2.2 13.8 8 8 13.8 2.2 8Z' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.dash .ic { width: 18px; height: 18px; flex: none; }
.d-src { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.d-head { display: flex; align-items: center; gap: 14px; padding: 0 14px; background: var(--navy); border-bottom: 1px solid var(--navy-line); }
.d-wm { height: 15px; width: auto; max-width: none; } .d-pw { height: 11px; width: auto; max-width: none; }
.d-div { width: 1px; height: 24px; background: var(--navy-line); }
.d-back { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); font-weight: 500; }
.d-title { display: flex; flex-direction: column; line-height: 1.2; margin-left: 6px; }
.d-title b { font-size: 17px; font-weight: 600; } .d-title small { color: var(--muted); font-size: 12px; }
.d-crew { display: inline-flex; gap: 3px; margin-left: 16px; }
.d-role { --r: var(--role-top); display: inline-grid; place-items: center; min-width: 36px; height: 22px; padding: 0 5px; border-radius: 5px; font-size: 12px; font-weight: 600;
  color: var(--r); background: color-mix(in srgb, var(--r) 15%, transparent); border: 1px solid color-mix(in srgb, var(--r) 45%, transparent); }
.d-role.fo { --r: var(--role-fo); } .d-role.ins { --r: var(--role-ins); } .d-role.cpt { --r: var(--role-cpt); }
.d-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; color: var(--text-2); }
.d-local { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; } .d-local .ic { width: 14px; height: 14px; }
.d-ic { display: inline-grid; place-items: center; color: var(--text-2); }
.d-btn { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 6px; font-weight: 500; border: 1px solid var(--line-strong); color: var(--text); }
.d-btn .ic { width: 16px; height: 16px; }
.d-btn-primary { background: var(--accent-fill); border-color: transparent; color: #fff; }

.d-tl { display: grid; grid-template-columns: 1fr 300px; border-bottom: 1px solid var(--line); }
.d-tl-main { position: relative; padding: 0 14px; }
.d-scale { position: relative; height: 24px; }
.d-scale span { position: absolute; top: 6px; padding-left: 5px; border-left: 1px solid var(--line-strong); height: 18px; font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.d-phase { position: relative; height: 26px; background: repeating-linear-gradient(-45deg, rgba(154, 166, 180, 0.16) 0 2px, transparent 2px 7px); }
.d-phase span { position: absolute; top: 2px; bottom: 2px; padding: 0 6px; display: flex; align-items: center; overflow: hidden; white-space: nowrap; border-radius: 3px; font-size: 12px; font-weight: 600; color: #c9d3de; background: #2a3646; border-bottom: 2px solid rgba(255, 255, 255, 0.12); }
.d-phase span.mid { background: #354459; } .d-phase span.high { background: #43546d; }
.d-lane { position: relative; height: 32px; border-top: 1px solid var(--line); }
.d-mk { position: absolute; top: 50%; display: flex; align-items: center; gap: 5px; height: 26px; margin-left: -13px; padding: 0 5px; transform: translateY(-50%); border-radius: 13px; font-size: 12px; color: var(--text-2); white-space: nowrap; transition: opacity 0.25s; }
.d-mk.is-left { flex-direction: row-reverse; transform: translate(calc(-100% + 26px), -50%); }
.d-mk.is-selected { color: var(--text); }
.d-mk.is-selected .dg { border-radius: 50%; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px #fff; }
.d-mk.is-hidden { opacity: 0; }
.d-playhead { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 8px rgba(255, 255, 255, 0.45); }
.d-playhead::before { content: ""; position: absolute; left: -4px; top: 0; border: 5px solid transparent; border-top: 7px solid #fff; }
.d-playhead.jump { transition: left 0.6s cubic-bezier(.6, 0, .2, 1); }
.d-legend { display: flex; flex-direction: column; margin: 8px 8px 8px 0; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.d-zoom { display: flex; align-items: center; gap: 12px; height: 36px; color: var(--muted); font-size: 13px; }
.d-zoom b { color: var(--text); font-weight: 500; } .d-zoom .ic { width: 15px; height: 15px; }
.d-pill { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.d-pill .ic { width: 13px; height: 13px; }
.d-leg-row { display: flex; gap: 6px; align-items: center; height: 32px; border-top: 1px solid var(--line); }
.d-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: 13px; white-space: nowrap; }
.d-chip em { font-style: normal; color: var(--muted); font-size: 12px; }
.d-chip.is-on { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }

/* glyphs: shape = source, colour = severity (frontend-next ui/Glyph.tsx) */
.dg { --g: var(--d-neutral); display: inline-block; flex: none; width: 16px; height: 16px; background: var(--g); }
.dg.red { --g: var(--d-red); } .dg.amber { --g: var(--d-amber); } .dg.neutral { --g: var(--d-neutral); }
.dg-aircraft { -webkit-mask: var(--m-aircraft) center / contain no-repeat; mask: var(--m-aircraft) center / contain no-repeat; }
.dg-instructor { border-radius: 50%; transform: scale(0.8); }
.dg-ai { -webkit-mask: var(--m-ai) center / contain no-repeat; mask: var(--m-ai) center / contain no-repeat; }

.d-body { display: grid; grid-template-columns: 624px 1fr; min-height: 0; }
.d-video { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-right: 1px solid var(--line); min-height: 0; }
.d-main { position: relative; height: 330px; border-radius: 6px; overflow: hidden; background: #000; }
.d-main canvas, .d-thumb canvas { display: block; width: 100%; height: 100%; object-fit: cover; }
.d-vlabel { position: absolute; left: 8px; bottom: 8px; display: inline-grid; place-items: center; min-width: 36px; height: 22px; padding: 0 6px; border-radius: 5px; font-size: 12px; font-weight: 600;
  background: rgba(13, 17, 23, 0.82); border: 1px solid var(--line-strong); }
.d-main .d-vlabel { top: 8px; bottom: auto; }
.d-vlabel.fo { color: var(--role-fo); } .d-vlabel.cpt { color: var(--role-cpt); } .d-vlabel.ins { color: var(--role-ins); } .d-vlabel.top { color: var(--role-top); }
.d-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.d-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 5px; overflow: hidden; background: #000; border: 2px solid transparent; }
.d-thumb.is-selected { border-color: #fff; }
.d-thumb .d-vlabel { left: 6px; bottom: 6px; min-width: 30px; height: 20px; font-size: 11px; }
.d-pending { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 8px;
  background: radial-gradient(70% 70% at 50% 50%, #111823, #070a10); color: var(--muted); font-size: 11px; }
.d-pending::before { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-strong); border-top-color: var(--text-2); animation: d-spin 1.4s linear infinite; }
.d-main .d-pending { font-size: 14px; }
@keyframes d-spin { to { transform: rotate(360deg); } }
.is-pending > .d-pending { display: flex; }
.d-transport { display: flex; align-items: center; gap: 12px; height: 48px; padding-top: 4px; }
.d-play { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 6px; background: var(--accent-fill); color: #fff; }
.d-play .ic { fill: currentColor; stroke: none; }
.d-time { font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; } .d-time b { color: var(--text); font-weight: 500; }
.d-slider { position: relative; flex: 1; height: 4px; border-radius: 2px; background: var(--surface-3); }
.d-slider i { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; }
.d-audio { height: 32px; color: var(--muted); font-size: 13px; } .d-audio b { color: var(--text); font-weight: 500; }
.d-mark { height: 34px; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.d-mark.is-pressed { background: rgba(240, 180, 0, 0.16); border-color: var(--d-amber); color: #ffd666; }
.d-h { margin: 6px 0; font-size: 13px; font-weight: 600; line-height: 1; color: var(--text-2); }
.d-atph li { display: grid; grid-template-columns: 64px 42px 1fr; gap: 10px; align-items: center; height: 32px; font-size: 14px; color: var(--text-2); }
.d-atph li .t { color: var(--muted); font-variant-numeric: tabular-nums; }
.d-atph li.now, .d-atph li.now .t { color: var(--text); }
.d-atph li .d-role { min-width: 38px; height: 22px; font-size: 11px; }

.d-panel { position: relative; display: flex; flex-direction: column; min-height: 0; }
.d-tabs { display: flex; justify-content: flex-end; gap: 10px; padding: 8px 12px 0; border-bottom: 1px solid var(--line); }
.d-tabgroup { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.d-tabgroup small { font-size: 12px; font-weight: 600; line-height: 1; color: var(--muted); }
.d-tabgroup > div { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; background: var(--surface); }
.d-tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 70px; padding: 8px 8px 7px; border-radius: 6px; font-size: 13px; color: var(--text-2); transition: background 0.25s, color 0.25s, box-shadow 0.25s; }
.d-tab .ic { width: 19px; height: 19px; }
.d-tab.is-active { background: var(--surface-3); color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.d-tab sup { position: absolute; top: 3px; right: 10px; font-size: 11px; font-weight: 600; }
.d-filter { display: flex; align-items: center; gap: 8px; padding: 14px 16px 10px; }
.d-filter .d-chip { height: 30px; padding: 0 12px; background: transparent; border: 1px solid var(--line-strong); }
.d-filter .d-chip.is-on { background: var(--accent-soft); border-color: transparent; }
.d-sort { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); font-size: 13px; }
.d-sort b { color: var(--text); font-weight: 500; } .d-sort .ic { width: 14px; height: 14px; }
.d-events { padding: 0 16px; }
.d-events li { display: grid; grid-template-columns: 72px 28px 1fr auto; align-items: center; gap: 8px; min-height: 52px; border-radius: 6px; padding: 0 8px; transition: background 0.2s; }
.d-events li b { display: block; font-size: 15px; font-weight: 600; } .d-events li small { display: block; color: var(--muted); font-size: 12.5px; }
.d-events li .t { color: var(--text-2); font-variant-numeric: tabular-nums; font-size: 14px; } .d-events li .st { color: var(--muted); font-size: 12.5px; }
.d-events li.is-current { background: var(--surface-2); }
.d-events li.is-new { animation: d-rowin 0.5s ease; }
@keyframes d-rowin { from { opacity: 0; transform: translateY(-6px); } }

/* sidestick + rudder overlay over the TOP view (frontend-next workspace/ControlsOverlay, telemetry add-on; demo data) */
.d-ctl { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity 0.35s; }
.d-ctl.on { opacity: 1; }
.d-ctl-stick { position: absolute; bottom: 3%; display: grid; justify-items: center; gap: 3px; width: 15%; padding: 5px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 8px; background: rgba(6, 9, 13, 0.72); }
.d-ctl-stick.is-cpt { left: 2%; } .d-ctl-stick.is-fo { right: 2%; }
.d-ctl-stick svg { width: 100%; aspect-ratio: 1; }
.d-ctl-who { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; }
.d-ctl-stick.is-cpt .d-ctl-who { color: var(--role-cpt); } .d-ctl-stick.is-fo .d-ctl-who { color: var(--role-fo); }
.d-ctl-stick.is-cpt .d-ctl-dot { fill: var(--role-cpt); } .d-ctl-stick.is-fo .d-ctl-dot { fill: var(--role-fo); }
.d-ctl-stick.is-cpt .d-ctl-trail { stroke: var(--role-cpt); } .d-ctl-stick.is-fo .d-ctl-trail { stroke: var(--role-fo); }
.d-ctl-trail { stroke-opacity: 0.45; }
.d-ctl-pill { padding: 1px 6px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; background: rgba(6, 9, 13, 0.62); color: var(--muted); font-size: 11px; white-space: nowrap; }
.d-ctl-center { position: absolute; bottom: 3%; left: 50%; display: grid; justify-items: center; gap: 4px; width: 38%; transform: translateX(-50%); }
.d-ctl-rudder { display: flex; align-items: center; gap: 6px; width: 100%; padding: 3px 8px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 6px; background: rgba(6, 9, 13, 0.72); }
.d-ctl-rudder svg { flex: 1; min-width: 0; height: auto; }
.d-ctl-small { color: var(--text-2); font-size: 11px; letter-spacing: 0.04em; white-space: nowrap; }
.d-num { font-variant-numeric: tabular-nums; min-width: 4.2em; text-align: right; }
.d-ctl-surface { stroke: #00b876; } .d-ctl-trim { stroke: #f0b400; }
.d-ctl-source { padding: 0 6px; border-radius: 4px; background: rgba(6, 9, 13, 0.72); color: #f0b400; font-size: 11px; font-weight: 600; }

/* the glimpse */
.d-glimpse { position: absolute; left: 0; right: 0; top: 72px; bottom: 0; opacity: 0; pointer-events: none; transition: opacity 0.35s; background: var(--bg); }
.d-glimpse.on { opacity: 1; }
.d-glimpse > img, .d-gtranscript { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity 0.2s; filter: blur(1.5px) saturate(0.9); }
.d-glimpse > .on { opacity: 1; transition: opacity 0.3s 0.12s; }
.d-gtranscript { padding: 16px 20px; filter: blur(3.2px); }
.d-gtranscript li { display: grid; grid-template-columns: 70px 44px 1fr; gap: 10px; align-items: center; height: 40px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--text-2); }
.d-gcard { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -44%); display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: start; width: 560px; padding: 22px 24px; border-radius: 10px;
  background: rgba(13, 17, 23, 0.92); border: 1px solid var(--line-strong); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6); opacity: 0; transition: opacity 0.15s, transform 0.2s; }
.d-gcard.on { opacity: 1; transform: translate(-50%, -50%); transition: opacity 0.25s 0.15s, transform 0.3s 0.15s; }
.d-gcard b { display: block; font-size: 22px; font-weight: 600; } .d-gcard p { margin-top: 6px; font-size: 17px; line-height: 1.45; color: var(--text-2); }
.d-gicon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); }
.d-gicon .ic { width: 22px; height: 22px; }
.d-glock { grid-column: 2; margin-top: 8px; font-size: 13px; color: var(--moment); letter-spacing: 0.02em; }
.d-glock::before { content: ""; display: inline-block; width: 9px; height: 10px; margin-right: 7px; vertical-align: -1px; border: 1.6px solid currentColor; border-top-width: 4px; border-radius: 2px; }
.d-weekly { position: absolute; inset: 0; z-index: 5; opacity: 0; pointer-events: none; transition: opacity 0.45s; background: var(--bg); }
.d-weekly.on { opacity: 1; }
.d-weekly img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: blur(2px); }

/* portrait (phones, iPad portrait): a narrower canvas, the video column; the tool panel appears for the glimpse */
.dash.is-portrait { width: 640px; height: 840px; }
.dash.is-portrait .d-pw, .dash.is-portrait .d-div, .dash.is-portrait .d-back, .dash.is-portrait .d-local, .dash.is-portrait .d-actions .d-ic, .dash.is-portrait .d-legend,
.dash.is-portrait .d-audio, .dash.is-portrait .d-full { display: none; }
.dash.is-portrait .d-tl { grid-template-columns: 1fr; }
.dash.is-portrait .d-scale span:nth-child(even) { display: none; }
.dash.is-portrait .d-body { grid-template-columns: 1fr; }
.dash.is-portrait .d-video { border-right: 0; }
.dash.is-portrait .d-main { height: 340px; }
.dash.is-portrait .d-gcard { width: 520px; }
.dash.is-portrait .d-panel { position: absolute; left: 0; right: 0; top: 202px; bottom: 0; z-index: 4; background: var(--bg); opacity: 0; pointer-events: none; transition: opacity 0.35s; }
.dash.is-portrait.tools-on .d-panel { opacity: 1; }
.dash.is-portrait .d-tabs { justify-content: center; gap: 4px; padding: 8px 6px 0; }
.dash.is-portrait .d-tab { min-width: 52px; padding: 7px 4px 6px; font-size: 11px; }
.dash.is-portrait .d-tabgroup small { font-size: 10px; }

@media (min-width: 1440px) { main .h4 .wrap { margin-left: max(184px, calc((100vw - var(--wrap)) / 2)); } html.dbf-on .dbf-stage { padding-left: 184px; } }
@media (max-width: 1180px) { .h4-foot { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .h4 { padding-top: 40px; }
  .h4-play { width: 32px; height: 32px; right: 8px; bottom: 22px; }
  .h4-rec { top: 8px; gap: 6px; padding: 2px 8px; font-size: 10px; letter-spacing: 0.12em; }
  .h4-tags { inset: 8px 0 auto; }
  .h4-eyebrow { font-size: 13px; }
  .h4-line { right: 48px; }
  html.dbf-on .dbf-stage { top: 56px; height: calc(100svh - 56px); }
}
@media (prefers-reduced-motion: reduce) {
  .h4-ev { animation: none; background-size: 100% 0.075em; }
  .h4-rec-dot, .h4-cue i, .d-pending::before { animation: none; }
  .d-playhead.jump { transition: none; }
}

/* ---------- Installation: the four real views ---------- */
.install-shot { grid-column: 1 / -1; position: relative; margin-top: 16px; }
/* the instructor's panel: flagging live, in the Instructors chapter */
.flagpanel { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-top: 56px; }
.flag-shot { margin: 0; }
.flag-shot img { width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--line-strong); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.flag-shot figcaption { margin-top: 12px; font-size: 13px; color: var(--faint); }
.flag-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.flag-facts article { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.flag-facts h3 { margin-bottom: 8px; font-size: 17px; font-weight: 600; }
.flag-facts p { font-size: 15px; color: var(--muted); }
.flag-facts .flag-auto { grid-column: 1 / -1; padding: 16px 22px; border-left: 2px solid var(--accent); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; background: color-mix(in srgb, var(--accent) 7%, transparent); color: var(--text-2); }
@media (max-width: 900px) { .flagpanel { grid-template-columns: 1fr; gap: 28px; margin-top: 36px; } }
@media (max-width: 560px) { .flag-facts { grid-template-columns: 1fr; } }
/* data and trust, closing the installation chapter */
.trust { grid-column: 1 / -1; margin-top: 24px; padding-top: 40px; border-top: 1px solid var(--line); }
.trust-head h3 { margin-top: 12px; max-width: 30em; font-size: clamp(22px, 2.2vw, 30px); font-weight: 300; line-height: 1.25; }
.trust-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.trust-cards article { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); }
.trust-cards h4 { margin-bottom: 8px; font-size: 17px; font-weight: 600; }
.trust-cards p { font-size: 15px; color: var(--muted); }
/* who builds Simvidence */
.about { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.about-body > p:not(.lead) { margin-top: 16px; font-size: 16px; color: var(--text-2); }
.about-body .about-principle { margin-top: 24px; padding-left: 16px; border-left: 2px solid var(--accent-line); font-size: 20px; font-weight: 300; color: #fff; }
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.about-tags li { padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13px; color: var(--text-2); }
@media (max-width: 900px) { .trust-cards { grid-template-columns: 1fr; } .about { grid-template-columns: 1fr; gap: 24px; } }
.install-shot img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--line-strong); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.vtag2 { position: absolute; display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; background: rgba(13, 17, 23, 0.82); border: 1px solid var(--line-strong); }
.t-fo { left: 1.2%; top: 2.2%; color: var(--role-fo); } .t-cpt { left: 51.2%; top: 2.2%; color: var(--role-cpt); }
.t-ins { left: 1.2%; top: 52.2%; color: var(--role-ins); } .t-top { left: 51.2%; top: 52.2%; color: var(--role-top); }
.install-shot figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); }
.sec-head:last-child { margin-bottom: 0; }
.audiences-who { margin-top: 0; }
@media (max-width: 640px) { .vtag2 { height: 16px; font-size: 9px; padding: 0 4px; } }

/* ---------- Wunderlich: what the sample is for ---------- */
.wunder-goals { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.wunder-goals li { display: grid; grid-template-columns: 32px 1fr; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); }
.wunder-goals li > span { color: var(--accent); font-weight: 600; font-size: 14px; }
.wunder-goals b { display: block; font-weight: 600; }
.wunder-goals p { margin-top: 4px; font-size: 15px; color: var(--text-2); }
@media (max-width: 1180px) { .wunder-goals { grid-template-columns: 1fr; } }
.wunder-why { grid-column: 1 / -1; margin-top: 8px; }
.why-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 14px; }
/* one card per finding, each with its own source at the foot, so the two never run together */
.why-card { display: flex; flex-direction: column; padding: 26px 24px 20px; border-radius: var(--radius-lg); border: 1px solid var(--accent-line); background: color-mix(in srgb, var(--accent) 6%, var(--bg)); }
.why-stats .why-src { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.5; color: var(--faint); }
.why-src span { display: block; margin-bottom: 2px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.why-stats b { display: block; font-size: clamp(32px, 3vw, 42px); font-weight: 300; letter-spacing: -0.02em; line-height: 1; color: #fff; }
.why-stats .why-lead { margin-top: 12px; font-size: 18px; line-height: 1.4; color: #fff; }
.why-stats .why-proof { margin: 8px 0 18px; font-size: 13px; color: var(--faint); }
.why-stats p { margin-top: 10px; font-size: 15px; color: var(--text-2); }
@media (max-width: 900px) { .why-stats { grid-template-columns: 1fr; } }
