/* Endeem — site styles. Type follows the marketing deck: Zalando Sans SemiExpanded for headings, Inter for text, JetBrains Mono for code. */

:root {
  --bg: #FFFFFF;
  --bg-2: #F5F6F8;
  --ink: #101828;
  --ink-2: #344054;
  --slate: #475467;
  --muted: #667085;
  --line: #E4E7EC;
  --line-2: #D0D5DD;
  --blue: #2D5BD7;
  --blue-ink: #1E46B8;
  --pale: #E6ECFF;
  --rust: #9A3412;
  --peach: #FDEBDD;
  --red: #B42318;
  --navy: #101828;
  --navy-2: #172033;
  --navy-line: #2A3448;
  --on-navy: #FFFFFF;
  --on-navy-2: #B7BFCD;
  --sky: #86A8FF;

  --display: "Zalando Sans SemiExpanded", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1200px;
  --gut: 48px;
  --sec: clamp(96px, 12vw, 152px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-screen: 0 1px 2px rgba(16, 24, 40, .06), 0 32px 64px -24px rgba(16, 24, 40, .20), 0 80px 140px -70px rgba(16, 24, 40, .28);
  --shadow-ui: 0 1px 2px rgba(16, 24, 40, .05), 0 12px 28px -16px rgba(16, 24, 40, .16);
}
@media (max-width: 1080px) { :root { --gut: 32px; } }
@media (max-width: 720px)  { :root { --gut: 20px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
p, h1, h2, h3, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
code { font-family: var(--mono); font-size: .9em; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1em; height: 1em; flex: none; fill: currentColor; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; color: var(--ink); text-wrap: balance; }
/* No single-word last lines: body text wraps "pretty", centred intros balance their lines. */
p, li, dd, figcaption, label { text-wrap: pretty; }
.lead, .hero-sub, .ww-title { text-wrap: balance; }
h1 { font-size: clamp(46px, 7.4vw, 104px); line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.08; letter-spacing: -0.025em; }
h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.015em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--slate); max-width: 52ch; }
/* Small mono label above a heading, as in the product's page headers. */
.eyebrow { margin-bottom: 18px; font: 500 12.5px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }

.wrap { max-width: calc(var(--wrap) + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
  font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-ink); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-quiet:hover { border-color: var(--ink); }
.btn .ic { font-size: 18px; transition: transform .2s var(--ease); }
.btn:hover .ic { transform: translateX(2px); }

/* Agent marks: vendor colour behind a white glyph, as on the product's Agents map. */
.mark { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; color: #fff; }
.mark .ic { font-size: 18px; }
.mark-sm { width: 20px; height: 20px; }
.mark-sm .ic { font-size: 12px; }
.mark-lg { width: 44px; height: 44px; }
.mark-lg .ic { font-size: 24px; }
.m-anthropic { background: #D97757; }
.m-openai { background: #10A37F; }
.m-microsoft { background: #0078D4; }
.m-microsoft .ic { font-size: 15px; }
.m-mcp { background: var(--ink); }
.m-mcp .ic { font-size: 16px; }
.m-own { background: var(--blue); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(16, 24, 40, .9); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid var(--navy-line); }
.nav-in { display: flex; align-items: center; gap: 36px; height: 64px; }
.brand img { height: 20px; width: auto; }
.nav-links { display: flex; gap: 30px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--on-navy-2); }
.nav-links a:hover { color: #fff; }

/* ---------- sections ---------- */
.sec { padding-block: var(--sec); }
.sec-head { margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head .lead { margin-top: 18px; }
.sec-head.center { text-align: center; }
.sec-head.center h2 { margin-inline: auto; max-width: 18ch; }
.sec-head.center .lead { margin-inline: auto; }

/* ---------- product screens ---------- */
.screen { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-screen); }
.screen img { width: 100%; }

/* ---------- hero: navy, with the request map ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 6vw, 84px) clamp(64px, 7vw, 96px); background: var(--navy); color: #fff; }
/* A faint dot grid behind the dark sections, fading out towards the edges. */
.hero::before, .how::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 45%, #000, transparent); mask-image: radial-gradient(70% 60% at 50% 45%, #000, transparent);
}
.hero > *, .how > * { position: relative; }
.hero-copy { text-align: center; }
.hero h1 { margin-inline: auto; color: #fff; }
.hero-sub { margin: 28px auto 0; max-width: 32ch; font-size: clamp(20px, 2vw, 24px); line-height: 1.45; color: var(--on-navy-2); }
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero .btn-quiet { color: #fff; border-color: #3A465C; }
.hero .btn-quiet:hover { border-color: #fff; }

.map { margin: clamp(24px, 3vw, 40px) auto 0; max-width: 1080px; }
.map svg { display: block; width: 100%; height: auto; overflow: visible; }
.map-stage { position: relative; }
.map-caps { position: relative; height: 14px; margin-top: 22px; }
.map-tall { display: none; max-width: 420px; margin-inline: auto; padding-top: 32px; }
.map-text { font: 500 15px var(--sans); fill: #E4E9F2; }
.map-req { font: 400 13.5px var(--sans); fill: #8390A6; }
.map-verdict { font: 600 12.5px var(--sans); }
.map-name-c { font: 500 11.5px var(--sans); fill: #E4E9F2; }
.map-req-c { font: 400 10px var(--sans); fill: #8390A6; }
.map-legend { font: 600 10.5px var(--sans); }
.map-cap-svg { font: 500 10.5px var(--mono); letter-spacing: .12em; fill: #8390A6; }
.map-cap-svg.map-cap-e { fill: var(--sky); }

.map-cap { position: absolute; top: 0; transform: translateX(-50%); font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #8390A6; white-space: nowrap; }
.map-cap-e { color: var(--sky); }

/* ---------- works with ---------- */
.works-with { margin-top: clamp(56px, 7vw, 88px); display: grid; justify-items: center; gap: 22px; text-align: center; }
.ww-title { font-size: 15px; font-weight: 500; line-height: 1.45; color: #8390A6; }
.ww-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ww-list li {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px;
  background: var(--navy-2); border: 1px solid var(--navy-line); border-radius: 999px;
  font-weight: 500; font-size: 15.5px; color: #fff; white-space: nowrap;
}

/* ---------- why: what current controls miss, each with a small diagram ---------- */
.hook { background: var(--bg-2); }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.why-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 2.4vw, 32px); display: grid; gap: 12px; align-content: start; }
.why-art { margin-bottom: 14px; }
.why-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.why-card h3 { font-size: clamp(21px, 1.8vw, 24px); line-height: 1.2; letter-spacing: -0.02em; max-width: 20ch; }
.why-card p { color: var(--slate); font-size: 16.5px; max-width: 40ch; }
.why-card code { font-size: .92em; color: var(--ink-2); }
.why-label { font: 500 12px var(--sans); fill: #475467; }
.why-mono { font: 500 12px var(--mono); fill: #344054; }
.why-mono-sm { font: 500 11px var(--mono); fill: #475467; }
.why-cap-l { font: 500 10px var(--mono); letter-spacing: .12em; fill: #667085; }
.why-verdict { font: 600 11.5px var(--sans); }

/* ---------- product bento ---------- */
.product { background: var(--bg); }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.tile { background: var(--bg-2); border-radius: 24px; padding: clamp(24px, 2.6vw, 36px); display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.tile-copy p { margin-top: 10px; font-size: 16px; color: var(--slate); max-width: 44ch; }
.tile-decide { grid-column: span 4; }
.tile-id { grid-column: span 2; }
.tile-keys, .tile-rules, .tile-kill { grid-column: span 2; }
.ui { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-ui); padding: 18px 20px; font-size: 14.5px; }

/* verdict chips */
.v { display: inline-flex; align-items: center; justify-self: start; padding: 5px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.v-allow { background: var(--pale); color: var(--blue-ink); }
.v-ask { background: var(--blue); color: #fff; }
.v-rule { background: var(--peach); color: var(--rust); }
.v-sense { background: var(--rust); color: #FFF3EA; }

/* decide */
.ui-decide { padding: 0; overflow: hidden; }
.ui-intent { padding: 16px 20px 15px; border-bottom: 1px solid var(--line); background: #FBFBFC; }
.ui-who { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.ui-ask { margin-top: 6px; font-size: 17px; font-weight: 500; color: var(--ink); }
.ui-reqs li { display: grid; grid-template-columns: minmax(0, 1.15fr) 176px minmax(0, 1.2fr); gap: 8px 16px; align-items: center; padding: 12px 20px; }
.ui-reqs li + li { border-top: 1px solid var(--line); }
.req { display: flex; align-items: center; gap: 12px; min-width: 0; font-weight: 500; color: var(--ink); line-height: 1.35; }
.req em { display: block; font-style: normal; font-weight: 400; font-size: 13px; color: var(--muted); }
.sys { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-2); }
.sys .ic { font-size: 18px; }
.why { color: var(--slate); font-size: 14px; line-height: 1.4; }

/* identity */
.id-top { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; }
.id-top b { display: block; font-size: 17px; font-weight: 600; }
.id-top span { font-size: 13.5px; color: var(--muted); }
.ui-id dl div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.ui-id dt { color: var(--muted); }
.ui-id dd { font-weight: 500; text-align: right; }
.id-ok { display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--blue-ink); font-weight: 500; }
.id-ok .ic { font-size: 18px; color: var(--blue); }

/* keys */
.ui-keys { display: grid; gap: 4px; padding: 10px; }
.k-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 2px 12px; padding: 9px 10px; border-radius: 10px; align-items: baseline; }
.k-row span { color: var(--muted); font-size: 13.5px; }
.k-row code { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink); }
.k-add code { color: var(--blue-ink); }
.k-add code .ic { font-size: 15px; }
.k-row em { grid-column: 2; font-style: normal; font-size: 12.5px; color: var(--muted); }
.k-add { background: var(--pale); }
.k-add em, .k-add span { color: var(--blue-ink); }

/* rules */
.rule-label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--blue-ink); }
.rule-label .ic { font-size: 15px; }
.rule-text { margin-top: 6px; font-size: 16px; font-weight: 500; line-height: 1.5; }
.rule-text code { white-space: nowrap; font-size: 13.5px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
.rule-actions { margin-top: 14px; display: flex; gap: 8px; }
.fake-btn { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 500; }
.fake-btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }

/* kill switch */
.kill-state { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 8px; border-radius: 999px; background: var(--peach); color: var(--rust); font-size: 13px; font-weight: 600; }
.kill-state .ic { font-size: 16px; }
.ui-kill ul { margin-top: 12px; display: grid; }
.ui-kill li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.ui-kill li:first-child { border-top: 0; }
.ui-kill li::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }

/* ---------- trace (part of Product) ---------- */
.trace { margin-top: clamp(96px, 11vw, 144px); }
.sub-h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; letter-spacing: -0.025em; margin-inline: auto; max-width: 18ch; }

/* ---------- how ---------- */
.how { position: relative; overflow: hidden; background: var(--navy); color: var(--on-navy); }
.how h2, .how h3 { color: #fff; }
.how .lead { color: var(--on-navy-2); }
.how .eyebrow { color: var(--sky); }
.sec-head.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px 64px; align-items: end; }
.sec-head.split .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.sec-head.split h2 { max-width: 14ch; }
.sec-head.split .lead { margin-top: 0; padding-bottom: 8px; }
.places { margin-top: clamp(48px, 6vw, 72px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.place { border-top: 1px solid var(--navy-line); padding-top: 28px; }
.place-ic { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 20px; border-radius: 12px; background: var(--navy-2); border: 1px solid var(--navy-line); color: var(--sky); }
.place-ic .ic { font-size: 22px; }
.place h3 { font-size: 20px; }
.place p { margin-top: 8px; color: var(--on-navy-2); font-size: 16px; max-width: 34ch; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; }
.faq .sec-head { position: sticky; top: 112px; }
.faq .sec-head h2 { font-size: clamp(32px, 3.6vw, 46px); max-width: 12ch; }
.faq-list { border-top: 1px solid var(--line-2); }
.qa { border-bottom: 1px solid var(--line-2); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { font-family: var(--sans); font-size: 19px; line-height: 1.35; letter-spacing: -0.01em; }
.qa-icon { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; transition: border-color .2s var(--ease); }
.qa-icon::before, .qa-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); }
.qa-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .25s var(--ease); }
.qa[open] .qa-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.qa summary:hover .qa-icon { border-color: var(--ink); }
.qa p { padding: 0 56px 26px 0; color: var(--slate); font-size: 17px; max-width: 62ch; }

/* ---------- demo form ---------- */
.demo { background: var(--bg-2); }
.demo-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.demo h2 { font-size: clamp(34px, 4.2vw, 56px); max-width: 12ch; }
.demo .lead { margin-top: 20px; max-width: 34ch; }
.demo-points { margin-top: 36px; display: grid; gap: 16px; }
.demo-points li { display: flex; align-items: flex-start; gap: 12px; font-size: 17px; color: var(--ink-2); max-width: 36ch; }
.tick { display: grid; place-items: center; flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: var(--pale); color: var(--blue-ink); }
.tick .ic { font-size: 15px; }
.demo-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-ui); }
.demo-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: grid; gap: 7px; align-content: start; }
.field-wide, .form-foot, .form-error { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink); display: flex; justify-content: space-between; gap: 8px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--sans); color: var(--ink);
  background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select { appearance: none; padding-right: 40px; background-repeat: no-repeat; background-position: right 14px center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23667085' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.field ::placeholder { color: #98A2B3; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(45, 91, 215, .18); }
.field [aria-invalid="true"] { border-color: var(--red); }
.field-err, .form-error { font-size: 14px; color: var(--red); }
.field-err:empty, .form-error:empty { display: none; }
.hpot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 16px 22px; flex-wrap: wrap; margin-top: 6px; }
.form-note { font-size: 14px; color: var(--muted); max-width: 34ch; }
.demo-form button[disabled] { opacity: .7; cursor: progress; }
.demo-done { display: grid; gap: 10px; justify-items: start; padding-block: 8px; }
.demo-done:focus { outline: none; }
.done-mark { width: 44px; height: 44px; border-radius: 50%; background: var(--pale); color: var(--blue-ink); display: grid; place-items: center; margin-bottom: 6px; }
.demo-done h3 { font-size: 26px; }
.demo-done p { color: var(--slate); font-size: 17px; max-width: 42ch; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-block: 32px 36px; font-size: 14px; color: var(--muted); }
.foot img { height: 18px; width: auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-left: auto; }
.foot a { color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- privacy policy ---------- */
.kicker { font-size: 14px; font-weight: 500; color: var(--blue-ink); margin-bottom: 14px; }
.legal-hero { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(32px, 4vw, 48px); }
.legal-hero h1 { font-size: clamp(40px, 5.6vw, 72px); }
.legal-hero .lead { margin-top: 22px; }
.legal-meta { margin-top: 20px; font-size: 14.5px; color: var(--muted); }
.legal { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: clamp(40px, 7vw, 96px); align-items: start; padding-bottom: clamp(80px, 10vw, 128px); }
.legal-toc { position: sticky; top: 88px; display: grid; gap: 8px; font-size: 14px; }
.legal-toc a { color: var(--slate); text-decoration: none; display: grid; grid-template-columns: 26px 1fr; gap: 6px; line-height: 1.35; }
.legal-toc a:hover, .legal-toc a[aria-current="true"] { color: var(--ink); }
.legal-toc a span:first-child { font-variant-numeric: tabular-nums; color: var(--muted); }
.legal-body { font-size: 17px; line-height: 1.65; }
.legal-body .intro { padding-bottom: 32px; margin-bottom: 40px; border-bottom: 1px solid var(--line-2); }
.legal-body .intro p:first-child { font-size: 20px; line-height: 1.5; color: var(--ink); }
.legal-body p { margin: 0 0 18px; color: var(--slate); }
.legal-body p strong { color: var(--ink); }
.legal-body section + section { margin-top: 56px; }
.legal-body h2 { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 18px; }
.legal-body h3 { font-family: var(--sans); font-size: 18px; margin: 28px 0 10px; }
.legal-body ul { list-style: disc; padding-left: 22px; margin: 0 0 20px; color: var(--slate); }
.legal-body li { margin: 6px 0; }
.legal-body li strong { color: var(--ink); }
.legal-body .contact { margin-top: 24px; padding: 24px 26px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; }
.legal-body .contact address { font-style: normal; color: var(--ink); line-height: 1.6; }
.legal-body .contact p { margin: 16px 0 0; }
.mobile-toc { display: none; margin-bottom: 36px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.mobile-toc summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; }
.mobile-toc summary::-webkit-details-marker { display: none; }
.mobile-toc .legal-toc { position: static; padding-bottom: 16px; }

/* ---------- motion ----------
   Content never waits for the scroll: everything is in place when you arrive. The only motion is what explains
   something: the hero map (SMIL), and the decision list playing out once, in about a quarter of a second. */
.motion [data-play] .ui-reqs li { opacity: 0; transform: translateY(4px); }
.motion [data-play].play .ui-reqs li { opacity: 1; transform: none; transition: opacity .25s ease-out, transform .25s ease-out; }
.motion [data-play].play .ui-reqs li:nth-child(2) { transition-delay: .08s; }
.motion [data-play].play .ui-reqs li:nth-child(3) { transition-delay: .16s; }
.motion [data-play].play .ui-reqs li:nth-child(4) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .qa-icon, .qa-icon::after { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-decide { grid-column: 1 / -1; }
  .tile-id, .tile-keys, .tile-rules, .tile-kill { grid-column: span 1; }
  .faq-grid, .demo-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .faq .sec-head { position: static; }
  .why-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
  .legal { grid-template-columns: minmax(0, 1fr); }
  .legal > .legal-toc { display: none; }
  .mobile-toc { display: block; }
}
@media (max-width: 900px) {
  .map-wide { display: none; }
  .map-tall { display: block; }
}
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .screen { border-radius: 12px; }
  .bento { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .tile-decide, .tile-id, .tile-keys, .tile-rules, .tile-kill { grid-column: auto; }
  .ui-reqs li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 14px 16px; }
  .ui-reqs .req { flex: 1 1 100%; }
  .ui-reqs .v { margin-left: 42px; }
  .ui-reqs .why { flex: 1 1 100%; margin-left: 42px; font-size: 13.5px; }
  .ui-intent { padding-inline: 16px; }
        .places { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ww-list { gap: 8px; }
  .ww-list li { font-size: 14.5px; padding-right: 13px; gap: 8px; }
  .ww-list .mark { width: 28px; height: 28px; }
  .ww-list .mark .ic { font-size: 16px; }
  .sec-head.split { grid-template-columns: minmax(0, 1fr); }
  .sys { width: 30px; height: 30px; }
  .foot-in { flex-direction: column; align-items: flex-start; }
  .foot-links { margin-left: 0; }
  .qa p { padding-right: 0; }
  .demo-form { grid-template-columns: minmax(0, 1fr); }
  .form-foot .btn { width: 100%; }
}
