/* DomKnox DLP – landing page */
:root {
  --night: #06121F;
  --navy: #0B2036;
  --navy-2: #14324F;
  --brass: #C89A3C;
  --brass-hi: #E2B85A;
  --brass-soft: rgba(200, 154, 60, .14);
  --paper: #E9EDF1;
  --paper-2: #F6F8FA;
  --ink: #0E1B2A;
  --ink-2: #3A4A5C;
  --mist: #8C9BAD;
  --signal: #C2412D;
  --line-dark: rgba(255, 255, 255, .10);
  --line-light: #D3DAE2;
  --sans: "Familjen Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--sans); font-size: 18px; line-height: 1.55; color: var(--ink); background: var(--paper-2); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.02em; }
h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; max-width: 18ch; }
h3 { font-size: 21px; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; }
code { font-family: var(--mono); font-size: .86em; background: var(--brass-soft); color: #7A5A17; padding: .08em .35em; border-radius: 5px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brass); color: var(--navy); padding: 10px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--brass-hi); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; }
.narrow { width: min(820px, calc(100% - 48px)); }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; border-radius: 999px; padding: 10px 18px; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn.lg { font-size: 17px; padding: 14px 24px; }
.btn.brass { background: var(--brass); color: var(--navy); }
.btn.brass:hover { background: var(--brass-hi); }
.btn.line { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn.line:hover { border-color: #fff; }
.btn.ghost { color: #DDE5EE; }
.btn.ghost:hover { color: #fff; border-color: rgba(255, 255, 255, .3); }

/* ---------------------------------------------------------------- nav */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px max(24px, calc((100% - var(--wrap)) / 2)); background: rgba(6, 18, 31, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-dark); color: #fff; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 19px; font-weight: 500; color: #fff; }
.brand b { color: var(--brass); font-weight: 700; }
.nav nav { display: flex; gap: 26px; }
.nav nav a { text-decoration: none; color: #B8C4D2; font-size: 15px; }
.nav nav a:hover { color: #fff; }
.nav-cta { display: flex; gap: 8px; align-items: center; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(56px, 8vw, 104px) max(24px, calc((100% - var(--wrap)) / 2)) clamp(72px, 9vw, 120px); background: var(--night); color: #fff; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line-dark) 1px, transparent 1px); background-size: 100% 34px; mask-image: linear-gradient(100deg, transparent 35%, #000 60%, transparent 100%); -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 60%, transparent 100%); opacity: .55; pointer-events: none; }
.hero-copy, .stage { position: relative; }
.hero h1 { font-size: clamp(40px, 5vw, 68px); line-height: 1; letter-spacing: -.035em; font-weight: 600; max-width: 15ch; }
.lede { margin-top: 26px; font-size: clamp(18px, 1.5vw, 21px); color: #C3CEDA; max-width: 34em; }
.hero-actions { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 22px; font-size: 15px; color: var(--mist); }

/* the chat stage */
.stage { margin: 0; }
.chat { position: relative; background: #0E1E30; border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(200, 154, 60, .06); overflow: hidden; }
.chat-bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-dark); font-size: 14px; color: #9FB0C2; }
.dots { display: inline-flex; gap: 6px; } .dots i { width: 10px; height: 10px; border-radius: 50%; background: #2A3D52; }
.chat-body { padding: 26px 22px 22px; min-height: 380px; display: flex; flex-direction: column; gap: 18px; }
.chat-body .bubble { margin-bottom: auto; }
.bubble.ai { align-self: flex-start; background: #17304A; color: #DCE5EE; padding: 11px 16px; border-radius: 16px 16px 16px 4px; font-size: 16px; }
.composer { position: relative; border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px; padding: 16px 60px 16px 18px; background: #0A1828; min-height: 132px; transition: border-color .3s; }
.composer.alert { border-color: var(--brass); box-shadow: 0 0 0 4px rgba(200, 154, 60, .14); }
.typed { font-family: var(--mono); font-size: 14.5px; line-height: 1.7; color: #E6EDF4; white-space: pre-wrap; min-height: 3.4em; }
.typed .caret { display: inline-block; width: 8px; height: 1.1em; vertical-align: -3px; background: var(--brass); margin-left: 1px; animation: blink 1s steps(1) infinite; }
.typed mark { background: rgba(194, 65, 45, .22); color: #FFB4A6; border-radius: 4px; padding: 1px 2px; transition: background .4s, color .4s; }
.typed mark.tok { background: var(--brass); color: var(--navy); font-weight: 600; }
.send { position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #2A3D52; color: #fff; font-weight: 700; transition: background .3s, transform .3s; }
.send.ok { background: var(--brass); color: var(--navy); }
.send.go { transform: translateY(-4px); }
.guard { display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: #F6F8FA; color: var(--ink); border-radius: 14px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .55); transform: translateY(14px); opacity: 0; transition: transform .45s cubic-bezier(.2, .9, .25, 1.1), opacity .3s; }
.guard.show { transform: none; opacity: 1; }
.guard b { display: block; font-size: 15px; }
.guard span { font-size: 14px; color: var(--ink-2); }
@keyframes blink { 50% { opacity: 0; } }

/* ---------------------------------------------------------------- problem */
.problem { padding: clamp(80px, 10vw, 140px) 0; background: var(--paper); }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split-head p { margin-top: 22px; color: var(--ink-2); max-width: 32em; }
.split-head { position: sticky; top: 110px; }
.stories { display: grid; gap: 18px; }
.story { background: #fff; border: 1px solid var(--line-light); border-left: 4px solid var(--signal); border-radius: 0 14px 14px 0; padding: 22px 26px; }
.story .who { font-size: 14px; font-weight: 600; color: var(--signal); margin-bottom: 8px; }
.story p:last-child { color: var(--ink); }
.story q { font-style: italic; }

/* ---------------------------------------------------------------- stakes */
.stakes { background: var(--navy); color: #fff; padding: clamp(64px, 8vw, 104px) 0; }
.stakes .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.stake { border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 22px; }
.stake .figure { font-size: clamp(64px, 7vw, 104px); font-weight: 600; letter-spacing: -.04em; line-height: .9; color: var(--brass); margin-bottom: 20px; }
.stake p:last-child { color: #C3CEDA; font-size: 16.5px; }
.stake b { color: #fff; }

/* ---------------------------------------------------------------- solution */
.solution { padding: clamp(80px, 10vw, 140px) 0; background: var(--paper-2); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head p { color: var(--ink-2); max-width: 34em; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.steps li { counter-increment: s; padding: 26px 28px 8px 0; position: relative; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line-light); }
.steps li::before { content: counter(s); display: block; font-size: 15px; font-weight: 700; color: var(--brass); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.steps p { margin-top: 10px; color: var(--ink-2); font-size: 17px; }
.modes { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mode { padding: 22px 24px; border-radius: 16px; background: #fff; border: 1px solid var(--line-light); }
.mode h3 { display: flex; align-items: center; gap: 10px; }
.mode h3::before { content: ""; width: 12px; height: 12px; border-radius: 50%; }
.mode.block h3::before { background: var(--signal); }
.mode.redact h3::before { background: var(--brass); }
.mode.warn h3::before { background: #3D7CC9; }
.mode p { margin-top: 10px; color: var(--ink-2); font-size: 16.5px; }

/* ---------------------------------------------------------------- try it */
.try { padding: clamp(80px, 10vw, 140px) 0; background: var(--night); color: #fff; }
.try .section-head p { color: #AFBCCB; }
.tester { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid rgba(255, 255, 255, .14); border-radius: 22px; overflow: hidden; background: #0C1B2C; }
.tester-in, .tester-out { padding: 24px; }
.tester-in { border-right: 1px solid rgba(255, 255, 255, .1); display: flex; flex-direction: column; }
.tester label, .out-label { display: block; font-size: 14px; font-weight: 600; color: #9FB0C2; margin-bottom: 10px; }
.tester textarea { flex: 1; min-height: 240px; width: 100%; resize: vertical; font-family: var(--mono); font-size: 14.5px; line-height: 1.7; color: #E6EDF4; background: #081523; border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; padding: 16px; }
.tester textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 4px rgba(200, 154, 60, .18); }
.samples { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.samples button { font: inherit; font-size: 14px; color: #C9D4E0; background: transparent; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.samples button:hover, .samples button[aria-pressed="true"] { border-color: var(--brass); color: #fff; }
.verdict { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; margin-bottom: 20px; font-weight: 600; }
.verdict small { display: block; font-weight: 400; font-size: 14.5px; opacity: .85; }
.verdict .dot { flex: none; width: 14px; height: 14px; border-radius: 50%; }
.verdict.block { background: rgba(194, 65, 45, .16); color: #FFB8AB; } .verdict.block .dot { background: var(--signal); }
.verdict.redact { background: var(--brass-soft); color: #F1D594; } .verdict.redact .dot { background: var(--brass); }
.verdict.warn { background: rgba(61, 124, 201, .16); color: #B7D2F3; } .verdict.warn .dot { background: #3D7CC9; }
.verdict.allow, .verdict.log { background: rgba(70, 170, 120, .14); color: #A9E2C4; } .verdict.allow .dot, .verdict.log .dot { background: #46AA78; }
.redacted { font-family: var(--mono); font-size: 14.5px; line-height: 1.75; color: #DCE5EE; background: #081523; border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; padding: 16px; min-height: 120px; white-space: pre-wrap; word-break: break-word; }
.redacted .tok { background: var(--brass); color: var(--navy); font-weight: 600; border-radius: 4px; padding: 0 3px; }
.redacted .hit { background: rgba(194, 65, 45, .3); color: #FFC2B6; border-radius: 4px; padding: 0 2px; }
.redacted.blocked { color: #6E8196; }
.found { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 6px; font-size: 15px; color: #C3CEDA; }
.found li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(255, 255, 255, .07); padding-bottom: 6px; }
.found li span:last-child { color: #8EA0B4; white-space: nowrap; }

/* ---------------------------------------------------------------- coverage */
.coverage { padding: clamp(80px, 10vw, 140px) 0; background: var(--paper); }
.cov-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 40px; }
.cov-cols h3 { padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 14px; }
.cov-cols p { color: var(--ink-2); font-size: 17px; }

/* ---------------------------------------------------------------- IT */
.it { padding: clamp(80px, 10vw, 140px) 0; background: var(--paper-2); }
.it-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.it-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 18px; }
.it-list li { padding-left: 22px; position: relative; color: var(--ink-2); font-size: 17px; }
.it-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--brass); }
.it-list b { color: var(--ink); }
.shot { margin: 0; }
.shot img { display: block; border-radius: 16px; border: 1px solid var(--line-light); box-shadow: 0 30px 70px -30px rgba(11, 32, 54, .45); }
.shot figcaption { margin-top: 12px; font-size: 14px; color: var(--mist); }

/* ---------------------------------------------------------------- demo */
.demo { padding: clamp(80px, 10vw, 140px) 0; background: var(--navy); color: #fff; }
.demo-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.demo-copy p { margin-top: 20px; color: #C3CEDA; max-width: 30em; }
.lead { display: grid; gap: 14px; background: #0E2742; border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px; padding: clamp(20px, 3vw, 32px); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead label { display: block; font-size: 15px; font-weight: 600; color: #DCE5EE; }
.lead label input, .lead label select, .lead label textarea { display: block; width: 100%; margin-top: 6px; }
.lead label span { font-weight: 400; color: var(--mist); }
.lead input, .lead select, .lead textarea { font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1.5px solid transparent; border-radius: 10px; padding: 11px 12px; }
.lead input:focus, .lead select:focus, .lead textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 4px rgba(200, 154, 60, .25); }
.lead input[aria-invalid="true"] { border-color: #F08A78; }
.lead .btn { justify-self: start; margin-top: 4px; }
.hp { position: absolute; left: -9999px; }
.form-msg { font-size: 15.5px; min-height: 1.4em; }
.form-msg.ok { color: #A9E2C4; } .form-msg.err { color: #FFB8AB; }

/* ---------------------------------------------------------------- faq */
.faq { padding: clamp(80px, 10vw, 140px) 0; background: var(--paper-2); }
.faq h2 { margin-bottom: 30px; }
.faq details { border-top: 1px solid var(--line-light); }
.faq details:last-of-type { border-bottom: 1px solid var(--line-light); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-size: 19px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 26px; font-weight: 400; color: var(--brass); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 22px 0; color: var(--ink-2); }

/* ---------------------------------------------------------------- footer */
.foot { background: var(--night); color: #9FB0C2; padding: 36px 0; }
.foot-grid { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 22px; }
.foot nav a { text-decoration: none; font-size: 15px; } .foot nav a:hover { color: #fff; }
.small { font-size: 14px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1020px) {
  .nav nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .split, .it-grid, .demo-grid, .section-head { grid-template-columns: 1fr; }
  .split-head { position: static; }
  .stakes .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .nav { padding: 12px 18px; }
  .nav .btn { font-size: 14px; padding: 8px 12px; }
  .brand { font-size: 17px; }
  .steps, .modes, .cov-cols, .tester, .row2 { grid-template-columns: 1fr; }
  .steps li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-light); }
  .tester-in { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .chat-body { min-height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------------------------------------------------------------- document focus */
.composer { min-height: 118px; display: flex; align-items: center; }
.filecard { display: flex; gap: 14px; align-items: center; width: 100%; padding: 12px 14px; border-radius: 12px; background: #13283F; border: 1px solid rgba(255, 255, 255, .12); opacity: 0; transform: translateY(-26px) rotate(-2deg); transition: transform .5s cubic-bezier(.2, .9, .25, 1.15), opacity .3s, border-color .3s, background .3s; }
.filecard.in { opacity: 1; transform: none; }
.ficon { flex: none; width: 46px; height: 54px; border-radius: 7px; display: grid; place-items: center; font-family: var(--mono); font-size: 11px; font-weight: 600; color: #fff; background: #1F7A4D; }
.ficon.pdf { background: #B3372A; }
.fbody { min-width: 0; flex: 1; }
.fbody b { display: block; font-size: 15.5px; color: #F2F5F8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fbody span { font-size: 13.5px; color: #9FB0C2; }
.bar { margin-top: 8px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--brass); transition: width 1.1s linear; }
.filecard.blocked { border-color: var(--signal); background: rgba(194, 65, 45, .14); }
.filecard.blocked b { text-decoration: line-through; color: #FFB8AB; }
.filecard.redacted { border-color: var(--brass); background: var(--brass-soft); }
.drop { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; min-height: 200px; border: 2px dashed rgba(255, 255, 255, .28); border-radius: 16px; cursor: pointer; color: #C9D4E0; margin: 0 !important; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over, .drop:focus-within { border-color: var(--brass); background: rgba(200, 154, 60, .08); }
.drop b { font-size: 19px; color: #fff; }
.drop span { font-weight: 400; }
.drop-icon { font-size: 34px; color: var(--brass); line-height: 1; margin-bottom: 6px; }
.paste { margin-top: 18px; }
.paste summary { cursor: pointer; font-size: 14.5px; color: #9FB0C2; }
.tester .paste textarea { min-height: 120px; margin-top: 10px; }
.docname { font-family: var(--mono); font-size: 14px; color: #E6EDF4; margin-bottom: 12px; }
.redacted { max-height: 300px; overflow: auto; }

/* ---------------------------------------------------------------- v3: document scanner hero + gate flow */
.hero { grid-template-columns: .92fr 1.08fr; padding-bottom: clamp(40px, 5vw, 64px); }
.hero::after { content: ""; position: absolute; right: -10%; top: 4%; width: 62%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(200, 154, 60, .2), transparent 70%); pointer-events: none; }
.stage { perspective: 1500px; z-index: 1; }
.doc { background: #FBFCFD; color: var(--ink); border-radius: 14px; overflow: hidden; transform: rotateY(-13deg) rotateX(6deg) rotate(1.2deg); transform-origin: 60% 50%; box-shadow: -40px 60px 120px -30px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .08), 0 0 90px -20px rgba(200, 154, 60, .35); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.doc:hover { transform: rotateY(-5deg) rotateX(2deg); }
.doc-bar { display: flex; align-items: center; gap: 10px; padding: 12px 18px; background: #EEF1F4; border-bottom: 1px solid #DCE2E8; font-size: 14px; font-weight: 600; }
.xl { font-family: var(--mono); font-size: 10.5px; color: #fff; background: #1F7A4D; padding: 3px 6px; border-radius: 4px; }
.doc-body { position: relative; --y: 60%; cursor: ns-resize; touch-action: none; user-select: none; }
.layer { padding: 6px 18px 16px; background: #FBFCFD; }
.layer.safe { position: absolute; inset: 0; clip-path: inset(0 0 calc(100% - var(--y)) 0); }
.layer table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.layer th { text-align: left; font-size: 12.5px; color: #6B7A8C; font-weight: 600; padding: 10px 8px; border-bottom: 2px solid #DCE2E8; }
.layer td { padding: 0 8px; height: 44px; border-bottom: 1px solid #E8ECF0; white-space: nowrap; }
.layer .r { text-align: right; font-variant-numeric: tabular-nums; }
.raw-v { font-family: var(--mono); font-size: 13px; background: rgba(194, 65, 45, .12); color: #9B2C1C; padding: 3px 6px; border-radius: 4px; }
.tokv { font-family: var(--mono); font-size: 12.5px; font-weight: 600; background: var(--brass); color: var(--navy); padding: 3px 6px; border-radius: 4px; }
.beam { position: absolute; left: 0; right: 0; top: var(--y); height: 0; border-top: 2px solid var(--brass); box-shadow: 0 0 22px 3px rgba(200, 154, 60, .75); pointer-events: none; }
.beam-pill { position: absolute; right: 14px; top: -17px; display: inline-flex; align-items: center; gap: 7px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 600; padding: 6px 12px 6px 7px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.beam-tag { position: absolute; left: 14px; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.beam-tag.up { bottom: 6px; background: var(--brass); color: var(--navy); }
.beam-tag.down { top: 6px; background: var(--signal); color: #fff; }
.stage figcaption { margin-top: 26px; font-size: 14.5px; color: var(--mist); text-align: center; }
.services { grid-column: 1 / -1; position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: clamp(16px, 3vw, 40px); padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: 15px; color: var(--mist); }
.services b { font-weight: 500; color: #E6EDF4; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: 5px 14px; }

.flow { display: grid; grid-template-columns: 170px 1fr 170px; gap: 18px; align-items: center; margin-bottom: clamp(44px, 6vw, 72px); padding: 26px; border-radius: 22px; background: var(--night); color: #fff; }
.flow-end b { display: block; font-size: 16px; } .flow-end span { font-size: 13.5px; color: var(--mist); }
.flow-end:last-child { text-align: right; }
.track { position: relative; height: 168px; overflow: hidden; }
.lane { position: absolute; left: 0; right: 0; border-top: 1px dashed rgba(255, 255, 255, .16); }
.lane:nth-child(1) { top: 31px; } .lane:nth-child(2) { top: 84px; } .lane:nth-child(3) { top: 137px; }
.gate { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--brass); box-shadow: 0 0 26px 4px rgba(200, 154, 60, .55); }
.gate img { position: absolute; left: -22px; top: calc(50% - 22px); border-radius: 12px; box-shadow: 0 0 0 6px var(--night); }
.chip { position: absolute; left: 0; width: 176px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 9px; font-family: var(--mono); font-size: 12.5px; background: #1A3350; color: #E6EDF4; border: 1px solid rgba(255, 255, 255, .16); white-space: nowrap; }
.chip.ok { top: 13px; } .chip.mask { top: 66px; } .chip.stop { top: 119px; }
.chip em { font-style: normal; position: absolute; }
.chip .b { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .chip.ok { animation: pass 7s linear infinite; }
  .chip.mask { animation: pass 7s linear infinite 2.2s, tint 7s linear infinite 2.2s; }
  .chip.mask .a { animation: swapA 7s linear infinite 2.2s; } .chip.mask .b { animation: swapB 7s linear infinite 2.2s; }
  .chip.stop { animation: halt 7s linear infinite 4.2s; }
  .chip.mask, .chip.stop { opacity: 0; }
}
@keyframes pass { 0% { left: -180px; opacity: 1; } 100% { left: 100%; opacity: 1; } }
@keyframes tint { 0%, 49% { background: #1A3350; color: #E6EDF4; border-color: rgba(255,255,255,.16); } 52%, 100% { background: var(--brass); color: var(--navy); border-color: var(--brass); } }
@keyframes swapA { 0%, 49% { opacity: 1; } 52%, 100% { opacity: 0; } }
@keyframes swapB { 0%, 49% { opacity: 0; } 52%, 100% { opacity: 1; } }
@keyframes halt { 0% { left: -180px; opacity: 1; background: #1A3350; } 36% { left: calc(50% - 200px); opacity: 1; background: #1A3350; border-color: rgba(255,255,255,.16); } 42%, 70% { left: calc(50% - 200px); opacity: 1; background: rgba(194, 65, 45, .3); border-color: var(--signal); color: #FFB8AB; } 82%, 100% { left: calc(50% - 200px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .chip.ok { left: calc(100% - 190px); } .chip.mask { left: calc(100% - 190px); background: var(--brass); color: var(--navy); } .chip.mask .a { opacity: 0; } .chip.mask .b { opacity: 1; }
  .chip.stop { left: calc(50% - 200px); background: rgba(194, 65, 45, .3); border-color: var(--signal); }
}
@media (max-width: 1020px) { .doc, .doc:hover { transform: none; } .hero::after { display: none; } }
@media (max-width: 760px) {
  .flow { grid-template-columns: 1fr; } .flow-end:last-child { text-align: left; }
  .chip { width: 150px; font-size: 11px; } @keyframes halt { 0% { left: -180px; opacity: 1; } 36%, 70% { left: calc(50% - 165px); opacity: 1; background: rgba(194, 65, 45, .3); border-color: var(--signal); } 82%, 100% { left: calc(50% - 165px); opacity: 0; } }
  .layer th:nth-child(3), .layer td:nth-child(3) { display: none; }
  .layer { padding: 6px 10px 12px; } .layer table { font-size: 13px; }
}

.legend { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: #5B6B7D; white-space: nowrap; }
.legend i { width: 10px; height: 10px; border-radius: 3px; margin-left: 8px; } .lg-safe { background: var(--brass); } .lg-raw { background: var(--signal); }
.gate img { max-width: none; width: 44px; height: 44px; }
.hero > * { min-width: 0; }
.btn, .brand { white-space: nowrap; }
@media (max-width: 760px) {
  .legend { display: none; }
  .nav { gap: 10px; } .nav .btn { padding: 8px 11px; } .nav-cta { gap: 2px; } .brand img { width: 28px; height: 28px; } .brand { font-size: 16px; gap: 7px; }
  .layer td { white-space: normal; height: 46px; } .raw-v, .tokv { font-size: 11px; padding: 2px 4px; }
}
@media (max-width: 1020px) { .hero { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .layer td { white-space: nowrap; } .doc-bar span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; } }

/* ---------------------------------------------------------------- v4: richer sections */
.problem { background: linear-gradient(180deg, var(--paper) 0%, #DDE3EA 100%); }
.story { border: 0; border-radius: 18px; padding: 0; overflow: hidden; box-shadow: 0 24px 50px -30px rgba(11, 32, 54, .45); }
.story-file { display: flex; align-items: center; gap: 12px; padding: 14px 22px; background: var(--navy); color: #fff; }
.fi { font-family: var(--mono); font-size: 10.5px; font-weight: 600; color: #fff; padding: 4px 7px; border-radius: 5px; background: #5B6B7D; }
.fi.xlsx { background: #1F7A4D; } .fi.pdf { background: #B3372A; } .fi.env { background: #6C5BB7; }
.fn { font-family: var(--mono); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.out { margin-left: auto; font-size: 12.5px; font-weight: 600; color: #FFB8AB; white-space: nowrap; padding-left: 18px; position: relative; }
.out::before { content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px rgba(194, 65, 45, .28); }
.story .who { padding: 18px 22px 0; margin: 0 0 6px; color: var(--ink-2); }
.story p:last-child { padding: 0 22px 22px; }

.stakes { background: radial-gradient(120% 140% at 85% 0%, #14324F 0%, var(--navy) 45%, var(--night) 100%); }
.stake { border-top: 2px solid var(--brass); }
.stake .figure { font-size: clamp(84px, 9.5vw, 148px); font-variant-numeric: tabular-nums; }
.stake .figure small { font-size: .28em; letter-spacing: 0; font-weight: 500; color: #E6EDF4; }

.steps { border-top: 0; gap: 16px; }
.steps li, .steps li + li { background: #fff; border: 1px solid var(--line-light); border-radius: 18px; padding: 22px 24px 26px; }
.steps li::before { position: absolute; top: 22px; right: 24px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--brass); font-size: 14px; margin: 0; }
.mini { height: 92px; margin: 0 44px 18px 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mini-btn { background: #1A73E8; color: #fff; font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 999px; box-shadow: 0 8px 18px -8px rgba(26, 115, 232, .7); }
.mini-code { font-family: var(--mono); font-weight: 600; font-size: 15px; letter-spacing: .05em; background: #F6EEDC; color: var(--navy); padding: 8px 12px; border-radius: 8px; }
.mini-ok { font-size: 12.5px; font-weight: 600; color: #1F7A4D; background: #E3F4EA; padding: 4px 10px; border-radius: 999px; }
.mini-dlg { display: inline-flex; align-items: center; gap: 8px; background: #FEF3F2; color: #9B2C1C; font-size: 14px; font-weight: 600; padding: 9px 14px 9px 9px; border-radius: 10px; border: 1px solid #F6CFC9; }
.modes { margin-top: 16px; }
.mode { border-radius: 18px; }
.mode.block { border-top: 4px solid var(--signal); } .mode.redact { border-top: 4px solid var(--brass); } .mode.warn { border-top: 4px solid #3D7CC9; }
.ex { margin-top: 16px !important; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-family: var(--mono); font-size: 12.5px !important; }
.ex span { padding: 4px 8px; border-radius: 6px; background: #EEF1F4; color: var(--ink); }
.ex .x-stop { background: var(--signal); color: #fff; } .ex .x-tok { background: var(--brass); color: var(--navy); font-weight: 600; }
.ex .x-raw { background: rgba(194, 65, 45, .12); color: #9B2C1C; } .ex .x-warn { background: #E1ECFA; color: #1F4E8C; } .ex .x-arrow { background: none; padding: 0; color: var(--mist); font-family: var(--sans); }

.cover { padding: clamp(80px, 10vw, 140px) 0; background: var(--night); color: #fff; }
.cover .section-head p { color: #AFBCCB; }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { grid-column: span 2; position: relative; padding: 26px 26px 54px; border-radius: 20px; background: linear-gradient(160deg, #10263E, #0A1A2B); border: 1px solid rgba(255, 255, 255, .1); }
.tile.wide { grid-column: span 4; display: grid; grid-template-columns: 1fr 1.1fr; column-gap: 40px; align-items: center; padding-bottom: 26px; }
.tile.wide h3, .tile.wide > p:not(.law) { grid-column: 1; }
.tile.wide .chips, .tile.wide .badges { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
.tile h3 { font-size: 23px; }
.tile > p { margin-top: 10px; color: #AFBCCB; font-size: 16.5px; }
.chips { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-family: var(--mono); font-size: 13px; padding: 6px 10px; border-radius: 7px; background: var(--brass-soft); color: #F1D594; border: 1px solid rgba(200, 154, 60, .35); }
.chips.red span { background: rgba(194, 65, 45, .16); color: #FFB8AB; border-color: rgba(194, 65, 45, .4); }
.law { position: absolute; right: 22px; bottom: 18px; margin: 0 !important; font-size: 13px !important; font-weight: 600; color: var(--brass) !important; }
.tile.wide .law { top: 22px; bottom: auto; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badges b { font-family: var(--mono); font-size: 14px; padding: 14px 16px; border-radius: 10px; background: #2A3D52; color: #fff; }
.badges .docx { background: #2B579A; } .badges .xlsx { background: #1F7A4D; } .badges .pptx { background: #C4502B; } .badges .pdf { background: #B3372A; }

.browser { border-radius: 16px; overflow: hidden; border: 1px solid var(--line-light); box-shadow: 0 50px 90px -40px rgba(11, 32, 54, .6); transform: perspective(1400px) rotateY(-7deg) rotateX(2deg); transform-origin: 0 50%; background: #fff; }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #EEF1F4; border-bottom: 1px solid var(--line-light); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #CBD3DC; }
.browser-bar span { margin-left: 12px; flex: 1; font-size: 12.5px; color: #6B7A8C; background: #fff; border-radius: 999px; padding: 4px 14px; }
.shot img { border: 0; border-radius: 0; box-shadow: none; }

.demo { background: radial-gradient(110% 130% at 10% 0%, #14324F 0%, var(--navy) 50%, var(--night) 100%); }
.incl { list-style: none; padding: 0; margin: 26px 0 6px; display: grid; gap: 12px; }
.incl li { position: relative; padding-left: 34px; color: #E6EDF4; }
.incl li::before { content: ""; position: absolute; left: 0; top: .12em; width: 22px; height: 22px; border-radius: 50%; background: var(--brass); }
.incl li::after { content: ""; position: absolute; left: 7px; top: .42em; width: 8px; height: 4px; border-left: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(-45deg); }
.lead { box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
@media (max-width: 1020px) { .browser { transform: none; } .tile.wide { display: block; padding-bottom: 54px; } .tile.wide .chips, .tile.wide .badges { margin-top: 20px; } .tile.wide .law { top: auto; bottom: 18px; } }
@media (max-width: 760px) { .bento { grid-template-columns: 1fr; } .tile, .tile.wide { grid-column: auto; } .steps li + li { border: 1px solid var(--line-light); padding: 22px 24px 26px; } .out { display: none; } }
.tile.types { padding-bottom: 26px; } .tile.types .badges { margin-top: 20px; }
