/* Attestorian.com design system
   Typography: HK Grotesk (SIL OFL) and DejaVu Sans Mono (Bitstream Vera licence),
   inspected from D:\REPOJIN\Fonts. No external requests. */

@font-face { font-family: "HK Grotesk"; src: url("/assets/fonts/HKGrotesk-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "HK Grotesk"; src: url("/assets/fonts/HKGrotesk-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "HK Grotesk"; src: url("/assets/fonts/HKGrotesk-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "HK Grotesk"; src: url("/assets/fonts/HKGrotesk-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "DejaVu Sans Mono"; src: url("/assets/fonts/DejaVuSansMono.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --ink-950: #070b16;
  --ink-900: #0c1222;
  --ink-800: #141c31;
  --ink-700: #26304a;
  --ink-500: #8a93a8;
  --ink-300: #c3c9d6;
  --paper: #ffffff;
  --mist: #f4f6fb;
  --line: #e3e7ef;
  --text: #0e1424;
  --muted: #5b6478;
  --seal: #10b981;
  --seal-deep: #047857;
  --seal-soft: #e7f8f1;
  --signal: #6d5ef6;
  --signal-soft: #efedff;
  --tamper: #e11d48;
  --tamper-soft: #fdecef;
  --amber: #f59e0b;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(14, 20, 36, .06), 0 8px 24px rgba(14, 20, 36, .06);
  --shadow-lg: 0 24px 64px rgba(7, 11, 22, .35);
  --sans: "HK Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DejaVu Sans Mono", ui-monospace, monospace;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
img, svg { max-width: 100%; display: block; }
a { color: var(--seal-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre, .mono { font-family: var(--mono); font-size: .86em; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: .35em; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); color: var(--text); padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 12px; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section.tight { padding: 64px 0; }
.section.mist { background: var(--mist); }
.section.dark { background: var(--ink-950); color: #e8ebf3; }
.section.dark p, .section.dark li { color: var(--ink-300); }
.section.dark h2, .section.dark h3, .section.dark h4 { color: #fff; }
.center { text-align: center; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 720px; }
.center .lede { margin-left: auto; margin-right: auto; }
.dark .lede { color: var(--ink-300); }
.section-head { margin-bottom: 48px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--seal-deep); background: var(--seal-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.dark .eyebrow, .hero .eyebrow { color: #7ee7c2; background: rgba(16, 185, 129, .12); border: 1px solid rgba(16, 185, 129, .25); }
.eyebrow.violet { color: var(--signal); background: var(--signal-soft); }
.eyebrow.amber { color: #92400e; background: #fef3c7; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 .98rem/1 var(--sans); padding: 14px 22px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; text-decoration: none !important; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--seal); color: #04261a; box-shadow: 0 6px 20px rgba(16, 185, 129, .35); }
.btn-primary:hover { background: #22c993; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--mist); }
.dark .btn-ghost, .hero .btn-ghost, .site-header .btn-ghost, .cta-band .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .26); }
.dark .btn-ghost:hover, .hero .btn-ghost:hover, .site-header .btn-ghost:hover, .cta-band .btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-sm { padding: 10px 16px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.center .btn-row { justify-content: center; }
.link-arrow { font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow::after { content: "\2192"; transition: transform .15s ease; }
.link-arrow:hover::after { transform: translateX(3px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(7, 11, 22, .82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .07); color: #fff; }
.nav { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; text-decoration: none !important; }
.logo svg { width: 28px; height: 28px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; flex: 1; }
.nav-links > li { position: relative; margin: 0; }
.nav-links > li > a, .nav-links > li > button { display: inline-flex; align-items: center; gap: 6px; color: #d7dbe6; font: 500 .95rem var(--sans); padding: 10px 12px; border-radius: 8px; background: none; border: 0; cursor: pointer; text-decoration: none; }
.nav-links > li > a:hover, .nav-links > li > button:hover, .nav-links > li > a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .06); text-decoration: none; }
.nav-links button::after { content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .7; }
.dropdown { position: absolute; top: calc(100% + 8px); left: -8px; min-width: 320px; background: var(--paper); color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 10px; list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s ease, transform .15s ease, visibility .15s; }
.has-dd.open .dropdown, .has-dd:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
@media (hover: hover) { .has-dd:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); } }
.dropdown li { margin: 0; }
.dropdown a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; }
.dropdown a:hover, .dropdown a[aria-current="page"] { background: var(--mist); text-decoration: none; }
.dropdown strong { display: block; font-weight: 600; font-size: .96rem; }
.dropdown span { display: block; color: var(--muted); font-size: .86rem; line-height: 1.4; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.menu-toggle { display: none; background: none; border: 1px solid rgba(255, 255, 255, .2); color: #fff; border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1020px) {
  .nav { gap: 12px; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .nav-links, .nav-cta { display: none; }
  .site-header.menu-open .nav-links { display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 68px; left: 0; right: 0; background: var(--ink-950); padding: 12px 20px 8px; border-bottom: 1px solid rgba(255, 255, 255, .08); max-height: calc(100vh - 140px); overflow-y: auto; }
  .site-header.menu-open .nav-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; padding: 14px 20px; background: var(--ink-950); border-top: 1px solid rgba(255, 255, 255, .08); }
  .site-header.menu-open .nav-cta .btn { flex: 1; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; padding: 0 0 6px 12px; min-width: 0; display: none; }
  .has-dd.open .dropdown { display: block; }
  .dropdown a { color: #d7dbe6; }
  .dropdown a:hover { background: rgba(255, 255, 255, .06); }
  .dropdown span { color: var(--ink-500); }
}

/* Hero */
.hero { position: relative; background: var(--ink-950); color: #fff; overflow: hidden; padding: 96px 0 112px; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 900px; height: 900px; background: radial-gradient(closest-side, rgba(16, 185, 129, .22), transparent 70%), radial-gradient(closest-side at 30% 70%, rgba(109, 94, 246, .25), transparent 70%); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 75%); pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #34d399, #a5b4fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lede { color: #b9c0d0; }
.hero.page-hero { padding: 80px 0 72px; }
.hero.page-hero .lede { max-width: 760px; }
.hero.hero-404 { min-height: 52vh; display: flex; align-items: center; }
.hero.hero-404 .container { width: 100%; }
.hero-note { margin-top: 18px; font-size: .9rem; color: var(--ink-500); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

/* Evidence card */
.evidence { background: linear-gradient(180deg, #111a30, #0b1224); border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; box-shadow: var(--shadow-lg); font-family: var(--mono); font-size: .82rem; color: #c9d1e2; overflow: hidden; }
.evidence-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .02); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a3450; display: block; }
.evidence-body { padding: 16px 18px 18px; }
.ev-row { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: start; padding: 9px 0; border-bottom: 1px dashed rgba(255, 255, 255, .07); }
.ev-row:last-child { border-bottom: 0; }
.ev-step { color: var(--ink-500); }
.ev-k { color: #e7ebf5; }
.ev-k small { display: block; color: var(--ink-500); font-size: .92em; margin-top: 2px; word-break: break-all; }
.tag { font-size: .72rem; padding: 3px 8px; border-radius: 999px; font-family: var(--sans); font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.tag.ok { background: rgba(16, 185, 129, .15); color: #6ee7b7; }
.tag.block { background: rgba(225, 29, 72, .16); color: #fda4af; }
.tag.wait { background: rgba(245, 158, 11, .16); color: #fcd34d; }
.tag.hide { background: rgba(109, 94, 246, .18); color: #c4b5fd; }
.seal-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: rgba(16, 185, 129, .08); border-top: 1px solid rgba(16, 185, 129, .25); color: #a7f3d0; font-family: var(--sans); font-weight: 600; }
.seal-bar .mono { color: #6ee7b7; font-weight: 400; font-size: .78rem; }

/* Status badges */
.badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .86rem; padding: 7px 13px; border-radius: 999px; letter-spacing: .01em; white-space: nowrap; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.badge.valid { background: var(--seal-soft); color: var(--seal-deep); }
.badge.tamper { background: var(--tamper-soft); color: var(--tamper); }
.badge.pending { background: #fef3c7; color: #92400e; }

/* Grids and cards */
.hero-grid > *, .split > *, .demo-body > *, .grid > *, .cta-band > * { min-width: 0; }
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1020px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .section { padding: 64px 0; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
a.card { display: block; color: inherit; text-decoration: none; }
a.card:hover { transform: translateY(-3px); border-color: #cfd6e4; box-shadow: 0 16px 40px rgba(14, 20, 36, .1); }
.dark .card { background: var(--ink-900); border-color: var(--ink-700); box-shadow: none; }
.dark .card p { color: var(--ink-300); }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--seal-soft); color: var(--seal-deep); margin-bottom: 18px; }
.icon svg { width: 22px; height: 22px; }
.icon.violet { background: var(--signal-soft); color: var(--signal); }
.icon.red { background: var(--tamper-soft); color: var(--tamper); }
.icon.amber { background: #fef3c7; color: #b45309; }
.dark .icon { background: rgba(16, 185, 129, .12); color: #6ee7b7; }
.card-kicker { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.pillar-card h3 { display: flex; align-items: center; justify-content: space-between; }

/* Trust strip */
.trust-strip { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 72px; padding-top: 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust-strip div { display: flex; gap: 12px; align-items: flex-start; color: #c3c9d6; font-size: .93rem; line-height: 1.45; }
.trust-strip svg { width: 20px; height: 20px; flex: none; color: #34d399; margin-top: 2px; }
.trust-strip strong { color: #fff; display: block; font-weight: 600; }
@media (max-width: 900px) { .trust-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .trust-strip { grid-template-columns: 1fr; } }

/* Stages */
.stages { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; counter-reset: stage; }
.stage { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; }
.stage::before { counter-increment: stage; content: "0" counter(stage); font-family: var(--mono); font-size: .8rem; color: var(--seal-deep); display: block; margin-bottom: 12px; }
.stage h3, .stage h4 { margin-bottom: 6px; font-size: 1.05rem; }
.stage p { font-size: .9rem; color: var(--muted); margin: 0; line-height: 1.5; }
.stage:not(:last-child)::after { content: ""; position: absolute; right: -11px; top: 30px; width: 8px; height: 8px; border-top: 2px solid #b8c1d3; border-right: 2px solid #b8c1d3; transform: rotate(45deg); }
@media (max-width: 1020px) { .stages { grid-template-columns: repeat(3, 1fr); } .stage::after { display: none; } }
@media (max-width: 600px) { .stages { grid-template-columns: 1fr; } }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--mist); font-weight: 600; font-size: .85rem; letter-spacing: .02em; color: #2b3348; }
tr:last-child td { border-bottom: 0; }
td.yes { color: var(--seal-deep); font-weight: 600; }
td.no { color: #98a1b3; }
th.us, td.us { background: rgba(16, 185, 129, .06); }
.dark .table-wrap { background: var(--ink-900); border-color: var(--ink-700); }
.dark th { background: var(--ink-800); color: #dfe4ee; }
.dark td { border-color: var(--ink-700); color: var(--ink-300); }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } .split.flip > :first-child { order: 0; } }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--seal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }
.dark .checklist li::before { background-color: rgba(16, 185, 129, .15); }
.xlist li::before { background: var(--tamper-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e11d48' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center/11px no-repeat; }

/* Code block */
.code { background: var(--ink-950); color: #d6dcea; border-radius: var(--radius); padding: 22px 24px; overflow-x: auto; font-family: var(--mono); font-size: .84rem; line-height: 1.7; border: 1px solid var(--ink-700); }
.code .c { color: #6b7590; }
.code .k { color: #c4b5fd; }
.code .s { color: #6ee7b7; }
.code .f { color: #93c5fd; }

/* Callouts */
.callout { border-radius: var(--radius); padding: 20px 22px; border: 1px solid; display: flex; gap: 14px; }
.callout svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.callout p:last-child { margin-bottom: 0; }
.callout.note { background: var(--signal-soft); border-color: #d9d4ff; color: #2c2475; }
.callout.warn { background: #fff8eb; border-color: #fde4b0; color: #6b4206; }
.callout.ok { background: var(--seal-soft); border-color: #bdeed9; color: #064e3b; }

/* Demo */
.demo { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 60px rgba(14, 20, 36, .12); overflow: hidden; }
.demo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); background: var(--mist); flex-wrap: wrap; }
.demo-head h3 { margin: 0; font-size: 1.05rem; }
.demo-body { display: grid; grid-template-columns: 1.1fr .9fr; }
@media (max-width: 860px) { .demo-body { grid-template-columns: 1fr; } }
.demo-fields { padding: 22px; border-right: 1px solid var(--line); }
@media (max-width: 860px) { .demo-fields { border-right: 0; border-bottom: 1px solid var(--line); } }
.field { display: grid; grid-template-columns: 150px 1fr auto; gap: 12px; align-items: center; margin-bottom: 12px; }
@media (max-width: 520px) { .field { grid-template-columns: 1fr; gap: 6px; } }
.field label { font-size: .85rem; font-weight: 600; color: #39425a; }
.field input { width: 100%; font: .9rem var(--mono); padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: #fbfcfe; color: var(--text); }
.field input:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px rgba(109, 94, 246, .15); }
.field input[readonly] { color: var(--signal); background: var(--signal-soft); border-color: #d9d4ff; }
.toggle { font: 600 .78rem var(--sans); padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; color: #39425a; }
.toggle[aria-pressed="true"] { background: var(--signal); border-color: var(--signal); color: #fff; }
.demo-result { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.digest { font-family: var(--mono); font-size: .76rem; word-break: break-all; background: var(--mist); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; color: #39425a; }
.digest-label { font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.verdict { border-radius: 12px; padding: 16px 18px; font-weight: 700; display: flex; align-items: center; gap: 12px; transition: background .25s ease, color .25s ease; }
.verdict svg { width: 26px; height: 26px; flex: none; }
.verdict.valid { background: var(--seal-soft); color: var(--seal-deep); }
.verdict.tamper { background: var(--tamper-soft); color: var(--tamper); animation: shake .35s ease; }
.verdict small { display: block; font-weight: 500; font-size: .85rem; opacity: .85; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.demo-foot { padding: 14px 22px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--muted); background: #fbfcfe; }

/* Timeline */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .timeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .timeline { grid-template-columns: 1fr; } }
.week { border-top: 3px solid var(--seal); padding-top: 18px; }
.week .wk { font-family: var(--mono); font-size: .8rem; color: var(--seal-deep); margin-bottom: 6px; }
.week p { color: var(--muted); font-size: .95rem; }

/* Stats */
.stat { padding: 8px 0; }
.stat .n { font-size: 2.4rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--text); }
.dark .stat .n { color: #fff; }
.stat .l { color: var(--muted); font-size: .95rem; margin-top: 8px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 600; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 1.5rem; font-weight: 400; color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 14px; margin: 0; max-width: 820px; }

/* Glossary */
.glossary dt { font-weight: 700; font-size: 1.05rem; margin-top: 28px; scroll-margin-top: 90px; }
.glossary dd { margin: 6px 0 0; color: var(--muted); max-width: 820px; }

/* Prose */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.6rem; margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: #343c52; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: var(--ink-950); color: #fff; border-radius: 24px; padding: 64px 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.cta-band::before { content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; background: radial-gradient(closest-side, rgba(16, 185, 129, .3), transparent 70%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: var(--ink-300); margin: 0; }
.cta-band .btn-row { margin-top: 0; justify-content: flex-end; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; padding: 44px 28px; } .cta-band .btn-row { justify-content: flex-start; } }

/* Contact form */
.form { display: grid; gap: 16px; }
.form label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: 6px; color: #2b3348; }
.form input, .form select, .form textarea { width: 100%; font: 1rem var(--sans); padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--text); }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px rgba(109, 94, 246, .15); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: .86rem; color: var(--muted); }

/* Footer */
.site-footer { background: var(--ink-950); color: var(--ink-300); padding: 72px 0 36px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } .footer-brand { grid-column: 1 / -1; } }
.footer-brand p { color: var(--ink-500); font-size: .94rem; max-width: 300px; margin-top: 14px; }
.site-footer h3, .site-footer h4, .footer-title { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--ink-300); font-size: .94rem; }
.site-footer a:hover { color: #fff; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 56px; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; font-size: .86rem; color: var(--ink-500); }
.footer-legal nav { display: flex; gap: 22px; }

/* Breadcrumb */
.crumbs { font-size: .86rem; color: var(--ink-500); margin-bottom: 18px; }
.crumbs a { color: #9aa3b8; }
.crumbs span { margin: 0 8px; opacity: .6; }

/* Reveal (only active when site.js confirms IntersectionObserver support) */
.js-reveal .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js-reveal .reveal.in { opacity: 1; transform: none; }
.js-reveal .grid > .reveal:nth-child(1) { transition-delay: 0ms; }
.js-reveal .grid > .reveal:nth-child(2) { transition-delay: 80ms; }
.js-reveal .grid > .reveal:nth-child(3) { transition-delay: 160ms; }
.js-reveal .grid > .reveal:nth-child(4) { transition-delay: 240ms; }
.js-reveal .grid > .reveal:nth-child(5) { transition-delay: 320ms; }
.js-reveal .grid > .reveal:nth-child(6) { transition-delay: 400ms; }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.16s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js-reveal .reveal, .js-reveal .grid > .reveal { opacity: 1 !important; transform: none !important; transition: none !important; transition-delay: 0ms !important; }
  .btn, .card, a.card, .verdict { transition: none !important; animation: none !important; transform: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}

/* Utilities */
.mt0 { margin-top: 0; } .mt1 { margin-top: 12px; } .mt2 { margin-top: 24px; } .mt3 { margin-top: 40px; } .mt4 { margin-top: 64px; }
.mb0 { margin-bottom: 0; } .mb2 { margin-bottom: 24px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { font-size: .86rem; font-weight: 500; padding: 8px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: #39425a; }
.dark .pill { background: var(--ink-900); border-color: var(--ink-700); color: var(--ink-300); }
.label-illustrative { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; color: #92400e; background: #fef3c7; border-radius: 999px; padding: 5px 12px; }

.diagram-box {
  margin: 32px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-dark, #070b16);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.diagram-box img,
.diagram-box svg {
  width: 100%;
  height: auto;
  display: block;
}
.diagram-caption {
  padding: 10px 18px;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.4);
  font-family: var(--font-mono, monospace);
}

.footer-meta {
  color: var(--ink-500);
  font-size: 0.84rem;
  margin-top: 6px;
}
.footer-meta a {
  color: var(--ink-400);
}
.footer-meta a:hover {
  color: #fff;
}
.footer-social-row {
  margin-top: 10px;
  font-size: 0.84rem;
  color: var(--ink-500);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
}
.footer-social-row a {
  color: var(--ink-400);
  text-decoration: none;
}
.footer-social-row a:hover {
  color: #fff;
  text-decoration: underline;
}
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 840px;
  margin: 32px auto 0;
}
.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: border-color 0.2s ease;
}
.faq-item[open] {
  border-color: var(--seal);
}
.faq-item summary {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink-950);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--seal);
}
.faq-item[open] summary::after {
  content: "-";
}
.faq-item p {
  margin: 12px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}
[data-verify-badge] {
  position: relative;
  cursor: help;
}
[data-verify-badge]::after {
  content: attr(data-verify-badge);
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  transform: translateY(4px);
  background: var(--ink-950);
  color: #22d3ee;
  border: 1px solid rgba(34, 211, 238, 0.45);
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 40;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
[data-verify-badge]:hover::after,
[data-verify-badge]:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}
