/* Roll Call: rollcallsecurity.com */
:root {
  --ink: #0B0D12; --ink-2: #4A4F5C; --line: #E3E5EA; --soft: #F5F6F8; --white: #FFFFFF;
  --night: #0B0D12; --night-line: #252A35; --night-text: #F3F4F6; --night-muted: #B7BCC8; --night-dim: #9EA4B2;
  --accent: #3355FF; --accent-ink: #2442E6; --accent-light: #8FA2FF;
  --crit: #D93B3B; --high: #E8743B; --med: #E5A50A; --low: #8A8F99; --ok: #18A34A;
  --display: "Space Grotesk", Inter, system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; line-height: 1.5; }
img, svg { display: block; }
a { color: var(--accent-ink); }
a:hover { color: #1A33B8; }
:focus-visible { outline: 2px solid #5B7BFF; outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 900px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- type ---- */
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; }
.eyebrow { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-ink); }
.dark .eyebrow { color: var(--accent-light); }
.h2 { font-size: 48px; line-height: 1.06; letter-spacing: -0.025em; font-weight: 700; }
.lede { margin: 0; font-size: 19px; line-height: 1.6; color: var(--ink-2); }
.dark .lede { color: var(--night-muted); }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 820px; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 12px;
  font: 600 16px var(--body); text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: #2442E6; color: var(--white); }
.btn-ghost { border-color: #343A47; color: var(--white); background: transparent; }
.btn-ghost:hover { border-color: #5A6070; color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); min-height: 44px; padding: 0 18px; border-radius: 10px; font-size: 15px; }
.btn-light:hover { color: var(--ink); background: #E8EAEE; }

/* ---- dark sections ---- */
.dark { background: var(--night); color: var(--night-text); }
.dark h1, .dark h2 { color: var(--white); }

/* ---- nav ---- */
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.brand:hover { color: var(--white); }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; }
.nav-links a:not(.btn) { color: #C9CDD6; text-decoration: none; }
.nav-links a:not(.btn):hover { color: var(--white); }

/* ---- hero ---- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 96px; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border: 1px solid #2A2F3A; border-radius: 999px; font-size: 14px; color: #C9CDD6; }
.badge b { padding: 3px 9px; border-radius: 999px; background: var(--accent); color: var(--white); font-size: 12px; font-weight: 600; }
.hero h1 { font-size: 64px; line-height: 1.02; letter-spacing: -0.03em; font-weight: 700; }
.hero .lede { font-size: 20px; max-width: 560px; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--night-dim); list-style: none; margin: 0; padding: 0; }
.checks li { display: inline-flex; align-items: center; gap: 8px; }
.works { border-top: 1px solid #1C2029; }
.works .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 40px; padding-top: 26px; padding-bottom: 26px; }
.works .label { font-size: 13px; color: var(--night-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.works span:not(.label) { font-family: var(--display); font-weight: 600; font-size: 17px; color: #D9DCE3; }

/* ---- product window ---- */
.window { flex: 1 1 560px; min-width: 0; margin: 0; border-radius: 16px; background: var(--white); color: var(--ink); overflow: hidden; border: 1px solid #2A2F3A; box-shadow: 0 30px 80px rgba(0,0,0,0.45); }
.window-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #F3F4F6; border-bottom: 1px solid var(--line); font-size: 12px; color: #5A6070; }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #D5D8DE; }
.window-bar span { margin-left: 12px; }
.window-body { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.verdict { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.verdict b { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 19px; }
.verdict small { font-size: 12px; color: #5A6070; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.tile { border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.tile b { display: block; font-family: var(--display); font-size: 28px; }
.tile span { display: block; font-size: 12px; line-height: 1.4; color: var(--ink-2); }
.list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.row-item { display: flex; gap: 12px; padding: 14px 16px; border-top: 1px solid #EEF0F3; }
.row-item:first-child { border-top: 0; }
.row-item b { display: block; font-size: 14px; }
.row-item small { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 3px; }

/* severity dots: colour is backed by a text label everywhere it matters */
.dot { flex: none; width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; background: var(--low); }
.dot.crit { background: var(--crit); } .dot.high { background: var(--high); } .dot.med { background: var(--med); }
.sev { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.sev .dot { margin-top: 0; }

/* ---- problem ---- */
.section { padding-top: 112px; padding-bottom: 104px; }
.stack { display: flex; flex-direction: column; gap: 56px; }
.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-weight: 600; font-size: 22px; }
.card p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.exposure { border-radius: 20px; background: var(--soft); padding: 40px; display: flex; flex-direction: column; gap: 28px; }
.exposure h3 { font-size: 28px; font-weight: 700; letter-spacing: -0.015em; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.grid4 b { font-size: 17px; }
.grid4 p { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }

/* ---- demo ---- */
.tablist { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px; border: 1px solid var(--night-line); border-radius: 14px; align-self: flex-start; }
.tab { min-height: 44px; padding: 0 18px; border-radius: 10px; font: 600 15px var(--body); cursor: pointer; border: 0; background: transparent; color: #C9CDD6; }
.tab:hover { color: var(--white); }
.tab[aria-selected="true"] { background: var(--white); color: var(--ink); }
.demo { border-radius: 18px; background: var(--white); color: var(--ink); border: 1px solid #2A2F3A; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.4); }
.panel { padding: 28px; display: flex; flex-wrap: wrap; gap: 28px; }
.panel[hidden] { display: none; }
.main-col { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.side-col { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.panel h3 { font-size: 22px; }
.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.panel-head small { font-size: 13px; color: var(--ink-2); }
.finding { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.finding b { font-size: 16px; line-height: 1.4; }
.finding p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.finding p strong { color: var(--ink); }
.box { border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.box h4 { margin: 0 0 10px; font-size: 15px; }
.box ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.box p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--ink-2); padding: 4px 0; }
.kv b { color: var(--ink); }
.note-box { border-radius: 12px; background: var(--soft); padding: 18px; }
.note-box h4 { margin: 0 0 8px; font-size: 15px; }
.note-box p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--ink-2); font-size: 12.5px; font-weight: 600; padding: 12px 16px; }
td { padding: 12px 16px; border-top: 1px solid #EEF0F3; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.law { color: var(--ink-2); font-size: 13px; }
.rule { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 3px 10px; border-radius: 999px; background: #F3F4F6; font-size: 12.5px; font-weight: 600; }
.rule::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--low); }
.rule.all::before { background: var(--high); } .rule.notice::before { background: var(--med); }
.small-print { font-size: 12.5px; line-height: 1.5; color: var(--ink-2); margin: 0; }
.live-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #0E7A36; }
.live-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.alert { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.alert time { flex: none; width: 64px; padding-top: 2px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); }
.alert div { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.alert b { font-size: 15px; line-height: 1.4; }
.alert small { font-size: 13px; color: var(--ink-2); }
.app-row { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.app-row b { display: block; font-size: 15px; }
.app-row small { display: block; font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.app-row .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-btn { min-height: 40px; padding: 0 14px; border-radius: 9px; border: 1px solid #D5D8DE; background: var(--white); color: var(--ink); font: 600 13px var(--body); cursor: pointer; }
.mini-btn:hover { background: var(--soft); }
.mini-btn.danger { color: #B42318; }
.mini-btn.primary { background: var(--accent); border-color: var(--accent); color: var(--white); }
.confirm { border: 2px solid var(--accent); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: #F7F8FF; }
.confirm[hidden], .done[hidden] { display: none; }
.confirm b { font-size: 15px; }
.confirm p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.confirm .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.confirm label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--ink-2); }
.confirm input { min-height: 40px; padding: 0 12px; border: 1px solid #D5D8DE; border-radius: 9px; font: 14px var(--body); width: 240px; max-width: 100%; }
.done { border-radius: 12px; padding: 14px 18px; background: #ECFDF3; color: #0B5A2A; font-size: 14px; font-weight: 600; }

/* ---- how ---- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.steps li { border-top: 2px solid var(--ink); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.steps .n { font-family: var(--mono); font-size: 14px; color: var(--accent-ink); }
.steps h3 { font-weight: 600; font-size: 24px; }
.steps p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.feature { border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.feature b { font-size: 16px; }
.feature p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }

/* ---- security ---- */
.soft { background: var(--soft); }
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.split > .section-head { flex: 1 1 400px; min-width: 0; }
.sec-grid { flex: 1 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.sec-grid div { background: var(--white); border-radius: 14px; padding: 24px; }
.sec-grid b { font-size: 16px; }
.sec-grid p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }

/* ---- pilot ---- */
.pilot { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.pilot-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.pilot-copy h2 { font-size: 52px; line-height: 1.04; letter-spacing: -0.025em; }
.includes { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.includes li { display: flex; gap: 12px; font-size: 15.5px; line-height: 1.5; color: #C9CDD6; }
.includes svg { flex: none; margin-top: 2px; }
.form { flex: 1 1 460px; min-width: 0; background: var(--white); color: var(--ink); border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.form h3 { font-size: 24px; }
.form .two { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field .hint { font-weight: 400; font-size: 13px; color: var(--ink-2); }
.field input, .field select, .field textarea { font: 400 15px var(--body); color: var(--ink); background: var(--white); border: 1px solid #C9CDD6; border-radius: 10px; padding: 0 12px; min-height: 46px; width: 100%; }
.field textarea { padding: 10px 12px; min-height: 96px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
fieldset { border: 0; margin: 0; padding: 0; }
legend { font-size: 14px; font-weight: 600; padding: 0; margin-bottom: 8px; }
.checkgrid { display: flex; flex-wrap: wrap; gap: 8px; }
.checkgrid label { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid #D5D8DE; border-radius: 9px; font-size: 14px; cursor: pointer; }
.checkgrid input { width: 16px; height: 16px; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; }
.form .fine { font-size: 13px; line-height: 1.5; color: var(--ink-2); margin: 0; }
.form .btn { align-self: flex-start; }

/* ---- faq ---- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 18px 0; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 24px; font-weight: 400; color: var(--ink-2); }
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin: 0 0 22px; font-size: 16px; line-height: 1.65; color: var(--ink-2); max-width: 760px; }

/* ---- footer ---- */
.footer { color: var(--night-dim); }
.footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-top: 56px; padding-bottom: 48px; }
.footer p { margin: 12px 0 0; font-size: 14px; line-height: 1.6; max-width: 380px; }
.footer .cols { display: flex; flex-wrap: wrap; gap: 48px; font-size: 14px; }
.footer .cols div { display: flex; flex-direction: column; gap: 10px; }
.footer .cols strong { color: var(--white); }
.footer a { color: var(--night-dim); text-decoration: none; }
.footer a:hover { color: var(--white); }
.footer .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 40px; border-top: 1px solid #1C2029; font-size: 13px; }

/* ---- simple pages (thanks, privacy, 404) ---- */
.page { min-height: 100vh; display: flex; flex-direction: column; }
.page main { flex: 1; }
.page-body { padding-top: 96px; padding-bottom: 112px; display: flex; flex-direction: column; gap: 20px; max-width: 760px; }
.page-body h1 { font-size: 48px; line-height: 1.06; }
.page-body h2 { font-size: 22px; margin-top: 16px; }
.page-body p, .page-body li { font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.page-body ul { margin: 0; padding-left: 22px; }

/* ---- phones ---- */
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .hero { padding-top: 40px; padding-bottom: 64px; gap: 40px; }
  .hero h1 { font-size: 42px; }
  .hero .lede { font-size: 18px; }
  .h2, .pilot-copy h2, .page-body h1 { font-size: 34px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .exposure, .form { padding: 24px; }
  .panel { padding: 18px; }
  .nav-links { gap: 8px 18px; font-size: 14px; }
  .nav-links .opt { display: none; }
  .tab { padding: 0 12px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---- self-hosted fonts (SIL Open Font License; no third-party requests) ---- */
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
.mt10 { margin-top: 10px !important; }
.gap32 { gap: 32px; }
legend .hint { font-weight: 400; font-size: 13px; color: var(--ink-2); }

/* ==== Motion layer (v2.1). Everything below degrades to the static page without JS or with reduced motion. ==== */

/* Hero window: audit scan, live toast */
.window { position: relative; }
.window-bar { position: relative; }
.scan-line { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; opacity: 0; transition: opacity .4s ease; }
.scan-line i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s ease; }
.js .window.scanning .scan-line { opacity: 1; }
.js .window.scanning .verdict, .js .window.scanning .tiles, .js .window.scanning .list { opacity: .35; }
.verdict, .tiles, .list { transition: opacity .4s ease; }
.js .window .row-item.pending { opacity: 0; transform: translateX(-10px); }
.row-item { transition: opacity .45s ease, transform .45s ease, background-color .6s ease; }
.row-item.flash { background: #FFF6F2; }
.tile b { font-variant-numeric: tabular-nums; }

.toast {
  position: absolute; right: 18px; bottom: 18px; max-width: 330px; z-index: 2;
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px;
  background: var(--night); color: var(--night-text); border-radius: 12px; border: 1px solid #2A2F3A;
  box-shadow: 0 18px 40px rgba(11, 13, 18, .35);
  opacity: 0; transform: translateY(16px) scale(.98); pointer-events: none;
  transition: opacity .35s ease, transform .35s cubic-bezier(.2, .9, .3, 1.2);
}
.toast.show { opacity: 1; transform: none; }
.toast b { display: block; font-size: 13.5px; line-height: 1.4; color: var(--white); }
.toast small { display: block; font-size: 12px; color: var(--night-muted); margin-top: 4px; }
.pulse { flex: none; position: relative; width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; background: var(--crit); }
.pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--crit); animation: ping 1.6s ease-out infinite; }
@keyframes ping { from { transform: scale(.5); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }

/* Works-across marquee */
.works .wrap { flex-wrap: nowrap; }
.marquee { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.set { display: flex; gap: 48px; padding-right: 48px; }
.set span { font-family: var(--display); font-weight: 600; font-size: 17px; color: #D9DCE3; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Hero entrance */
.js .hero-copy > * { opacity: 0; transform: translateY(14px); animation: rise .7s cubic-bezier(.2, .7, .2, 1) forwards; }
.js .hero-copy > *:nth-child(2) { animation-delay: .08s; }
.js .hero-copy > *:nth-child(3) { animation-delay: .16s; }
.js .hero-copy > *:nth-child(4) { animation-delay: .24s; }
.js .hero-copy > *:nth-child(5) { animation-delay: .32s; }
.js .hero .window { opacity: 0; transform: translateY(24px); animation: rise .9s cubic-bezier(.2, .7, .2, 1) .2s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Scroll reveals */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js [data-reveal].shown { opacity: 1; transform: none; }

/* Cards respond to the pointer */
.card, .feature, .sec-grid div { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.card:hover, .feature:hover { transform: translateY(-4px); border-color: #C9D2FF; box-shadow: 0 14px 30px -18px rgba(36, 66, 230, .45); }
.sec-grid div:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -20px rgba(11, 13, 18, .3); }
.card svg { transition: transform .35s ease; }
.card:hover svg { transform: rotate(-6deg) scale(1.08); }

/* How it works: the line draws across */
.steps li { border-top-color: transparent; position: relative; }
.steps li::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--ink); transform-origin: left; transform: scaleX(1); }
.js .steps li[data-reveal]::before { transform: scaleX(0); transition: transform .9s cubic-bezier(.5, 0, .2, 1); transition-delay: calc(var(--d, 0s) + .15s); }
.js .steps li[data-reveal].shown::before { transform: scaleX(1); }

/* Product tabs: auto-advance with a progress line until someone clicks */
.tab { position: relative; overflow: hidden; }
.tablist.autoplay .tab[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--accent); transform-origin: left; animation: tabfill var(--tab-ms, 7000ms) linear forwards; }
.tablist.autoplay.held .tab[aria-selected="true"]::after { animation-play-state: paused; }
@keyframes tabfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.panel.showing { animation: panel-in .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.live-status::before { animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.alert.new { animation: alert-in .55s cubic-bezier(.2, .9, .3, 1.15), alert-glow 5s ease forwards; }
@keyframes alert-in { from { opacity: 0; transform: translateY(-14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes alert-glow { 0%, 35% { background: #FFF4F0; border-color: #F5C2B5; } 100% { background: transparent; } }
.app-row.removed b { text-decoration: line-through; color: var(--ink-2); }

/* Sticky bar after the hero */
.stickybar { position: fixed; top: 0; left: 0; right: 0; z-index: 40; background: rgba(11, 13, 18, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--night-line); transform: translateY(-100%); transition: transform .3s ease; }
.stickybar.on { transform: none; }
.stickybar-in { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.btn-sm { min-height: 40px; padding: 0 16px; border-radius: 10px; font-size: 14.5px; }

@media (max-width: 720px) {
  .toast { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .works .label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .hero-copy > *, .js .hero .window, .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .track { flex-wrap: wrap; width: auto; }
  .set[aria-hidden="true"] { display: none; }
  .set { flex-wrap: wrap; gap: 14px 40px; }
}

/* ==== Problem section (v3.1): timeline, ways table, cited risks, court cases ==== */
.problem .stack { gap: 72px; }
.problem h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.015em; }

.spread { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; }
.spread-head { display: flex; flex-direction: column; gap: 12px; }
.spread-head p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding: 0 0 26px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -27px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 2px solid #A9B0BE; }
.timeline li.hot::before { border-color: var(--crit); background: var(--crit); box-shadow: 0 0 0 4px #FBE3E3; }
.timeline time { font-family: var(--mono); font-size: 13px; color: var(--ink-2); padding-top: 3px; }
.timeline p { margin: 0; font-size: 17px; line-height: 1.55; }
.timeline li.hot p { font-weight: 600; }
.js .timeline[data-reveal]::before { transform-origin: top; transform: scaleY(0); transition: transform 1.4s cubic-bezier(.5, 0, .2, 1) .1s; }
.js .timeline[data-reveal].shown::before { transform: scaleY(1); }
.js .timeline[data-reveal] li { opacity: 0; transform: translateX(-8px); transition: opacity .5s ease, transform .5s ease; }
.js .timeline[data-reveal].shown li { opacity: 1; transform: none; }
.js .timeline[data-reveal].shown li:nth-child(2) { transition-delay: .25s; }
.js .timeline[data-reveal].shown li:nth-child(3) { transition-delay: .5s; }
.js .timeline[data-reveal].shown li:nth-child(4) { transition-delay: .75s; }
.js .timeline[data-reveal].shown li:nth-child(5) { transition-delay: 1s; }

.ways-title { margin-bottom: 18px; }
.ways-table { border-top: 2px solid var(--ink); }
.ways-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr); gap: 32px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; }
.ways-row b { font-family: var(--display); font-size: 19px; letter-spacing: -0.01em; }
.ways-row p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.ways-row .where { color: var(--ink); padding-left: 16px; border-left: 2px solid var(--accent); }
.ways-labels { padding: 10px 0; }
.ways-labels span { font-size: 13px; font-weight: 600; color: var(--ink-2); }

.risks { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
.risks dt { font-family: var(--display); font-weight: 700; font-size: 18px; }
.risks dd { margin: 8px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.risks dd.cite { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #CDD1D9; font-size: 13.5px; color: #5A6070; }

.court h3 { margin-bottom: 20px; font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; }
.case { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.case:hover { transform: translateY(-4px); border-color: #C9D2FF; box-shadow: 0 14px 30px -18px rgba(36, 66, 230, .45); }
.cases-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.case { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; gap: 8px; }
.case-meta { margin: 0; font-size: 13px; color: var(--ink-2); }
.case h4 { margin: 0; font-family: var(--display); font-size: 20px; letter-spacing: -0.01em; }
.case p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.case a { font-size: 14px; font-weight: 600; margin-top: 4px; align-self: flex-start; }
.court-note { margin: 16px 0 0; font-size: 14px; color: var(--ink-2); max-width: 760px; }

@media (max-width: 900px) {
  .spread { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ways-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ways-labels { display: none; }
  .ways-row .where { margin-top: 6px; }
  .risks { grid-template-columns: minmax(0, 1fr); }
  .cases-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* ---------- App mockups: match the Roll Call app (navy sidebar, blue wash) ---------- */
.app-frame { display: flex; min-width: 0; }
.app-rail { flex: none; width: 178px; display: flex; flex-direction: column; gap: 2px; padding: 16px 10px; color: #B7BCC8;
  background: radial-gradient(260px 200px at 0 0, rgba(51, 85, 255, .24), transparent 70%), linear-gradient(180deg, #111628 0%, #0B0D12 55%); }
.app-rail em { font-style: normal; }
.app-rail .rb { display: flex; align-items: center; gap: 9px; padding: 2px 8px 14px; font-family: var(--display); font-weight: 700; font-size: 14.5px; color: var(--white); }
.app-rail .rl { width: 24px; height: 24px; flex: none; filter: drop-shadow(0 3px 8px rgba(51, 85, 255, .45)); }
.app-rail .ri { position: relative; display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 8px; font-size: 12.5px; font-weight: 500; white-space: nowrap; transition: background-color .25s ease, color .25s ease; }
.app-rail .ri svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.app-rail .ri.on { background: linear-gradient(90deg, rgba(51, 85, 255, .32), rgba(51, 85, 255, .10)); color: var(--white); }
.app-rail .ri.on svg { color: var(--accent-light); }
.app-rail .ri.on::before { content: ""; position: absolute; left: -10px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.app-rail.compact { width: 54px; align-items: center; padding: 14px 7px; }
.app-rail.compact .rb { padding: 2px 0 12px; }
.app-rail.compact em { display: none; }
.app-rail.compact .ri { padding: 8px; justify-content: center; }
.app-rail.compact .ri.on::before { left: -7px; }
.window-body, .app-main { flex: 1; min-width: 0;
  background: radial-gradient(700px 220px at 85% -25%, rgba(51, 85, 255, .09), transparent 70%), #F5F6F8; }
.app-main .panel { background: transparent; }
.window .tile, .window .list, .demo .finding, .demo .box, .demo .table-wrap, .demo .alert, .demo .app-row { background: var(--white); }
.window .tile, .window .list, .demo .finding, .demo .box { border-color: #E3E5EA; box-shadow: 0 1px 2px rgba(11, 13, 18, .04), 0 6px 18px rgba(11, 13, 18, .04); }
.window .verdict b, .panel h3 { letter-spacing: -.01em; }
.mini-btn.primary { background: linear-gradient(180deg, #4766FF 0%, #2F4EF5 100%); border-color: #2F4EF5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 4px 12px rgba(51, 85, 255, .28); }
@media (max-width: 900px) { .app-rail:not(.compact) { width: 54px; align-items: center; padding: 14px 7px; }
  .app-rail:not(.compact) em { display: none; } .app-rail:not(.compact) .rb { padding: 2px 0 12px; }
  .app-rail:not(.compact) .ri { padding: 8px; justify-content: center; } .app-rail:not(.compact) .ri.on::before { left: -7px; } }
@media (max-width: 560px) { .app-rail { display: none; } }
@media (prefers-reduced-motion: reduce) { .app-rail .ri { transition: none; } }
.demo .note-box { background: var(--white); border: 1px solid #E3E5EA; }
.report-head { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border-radius: 14px; color: #F3F4F6;
  background: radial-gradient(420px 200px at 0% 0%, rgba(51, 85, 255, .32), transparent 70%), linear-gradient(135deg, #131A33 0%, #0B0D12 60%); }
.report-head span { font-size: 12.5px; font-weight: 600; color: var(--accent-light); }
.report-head b { font-family: var(--display); font-size: 22px; letter-spacing: -.02em; color: var(--white); }
.report-head small { font-size: 12.5px; color: var(--night-muted); }
