/* szyma.co/compliance, design V2. Self-contained: no theme.css, base.css or app.js.
   Progressive enhancement: html.js and html.js-motion are set by compliance.js.
   Without JS (or with prefers-reduced-motion) everything is visible and static. */

/* ===== tokens ===== */
:root, [data-theme="light"] {
  --font-sans: "Geist", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --bg: #fafafa; --surface: #ffffff; --surface-2: #f4f4f5;
  --border: #e7e7e9; --border-strong: #d4d4d8;
  --text: #161618; --text-2: #44444a; --muted: #8e8e93;
  --accent: #e8500f; --accent-soft: rgba(232,80,15,.09); --mark: rgba(232,80,15,.18);
  --glow: 0 0 0 1px var(--border-strong), 0 10px 24px rgba(0,0,0,.08);
  --tier-a: #2f7a5b; --tier-a-soft: rgba(47,122,91,.10);
  --tier-b: #3f6593; --tier-b-soft: rgba(63,101,147,.10);
  --tier-c: #7a6898; --tier-c-soft: rgba(122,104,152,.11);
  --state-missing: #8e8e93;
  --state-contested: #a8466a; --state-contested-soft: rgba(168,70,106,.10);
  --danger: #b4233c; --danger-soft: rgba(180,35,60,.07);
}
[data-theme="dark"] {
  --bg: #131211; --surface: #1c1a18; --surface-2: #221f1c;
  --border: #2c2925; --border-strong: #443e36;
  --text: #f8f6f3; --text-2: #c6beb3; --muted: #97907f;
  --accent: #ff6a3d; --accent-soft: rgba(255,106,61,.14); --mark: rgba(255,106,61,.30);
  --glow: 0 0 0 1px var(--border-strong), 0 8px 24px rgba(0,0,0,.4);
  --tier-a: #7cc0a0; --tier-a-soft: rgba(124,192,160,.13);
  --tier-b: #8eaedb; --tier-b-soft: rgba(142,174,219,.13);
  --tier-c: #b7a6d6; --tier-c-soft: rgba(183,166,214,.13);
  --state-missing: #97907f;
  --state-contested: #e08aa9; --state-contested-soft: rgba(224,138,169,.13);
  --danger: #ff8597; --danger-soft: rgba(255,133,151,.09);
}

/* ===== base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-sans); font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background-color 300ms var(--ease), color 300ms var(--ease);
}
h1, h2, h3, p, blockquote, figure, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { font-family: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
input::placeholder, textarea::placeholder { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.nowrap { white-space: nowrap; }
.min0 { min-width: 0; }

@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 var(--accent-soft); opacity: 1; } 50% { box-shadow: 0 0 0 6px var(--accent-soft); opacity: .7; } }
@keyframes travel { 0% { left: 0%; opacity: 0; } 6% { opacity: 1; } 94% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes caret { 50% { opacity: 0; } }
@keyframes spinIn { from { transform: rotate(-120deg) scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bar { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }

/* ===== nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-in { max-width: 1080px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; color: var(--text); white-space: nowrap; }
.brand span { color: var(--muted); font-weight: 400; }
.nav-r { display: flex; align-items: center; gap: 4px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { white-space: nowrap; padding: 6px 12px; border-radius: 9999px; font-size: 13.5px; color: var(--muted); transition: all 150ms var(--ease); }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.on { color: var(--text); background: var(--surface-2); }
.theme-btn, .menu-btn { display: grid; place-items: center; border: 1px solid transparent; border-radius: 9999px; background: none; cursor: pointer; padding: 0; }
.theme-btn { width: 32px; height: 32px; margin-left: 4px; color: var(--muted); transition: all 150ms var(--ease); }
.theme-btn:hover { color: var(--text); border-color: var(--border-strong); }
.theme-btn svg { grid-area: 1 / 1; }
.ico-sun { animation: spinIn 380ms var(--ease); }
.ico-moon { animation: spinIn 380ms var(--ease); }
html[data-theme="light"] .ico-sun, html[data-theme="dark"] .ico-moon { display: none; }
.nav-cta { white-space: nowrap; margin-left: 8px; padding: 6px 14px; border: 1px solid var(--border-strong); border-radius: 9999px; font-size: 13.5px; font-weight: 500; color: var(--text); transition: all 150ms var(--ease); }
.nav-cta:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.menu-btn { display: none; width: 36px; height: 36px; margin-left: 2px; color: var(--text); }
.menu-btn svg { grid-area: 1 / 1; }
.ico-close { display: none; }
.nav.open .ico-burger { display: none; }
.nav.open .ico-close { display: block; }
.mobile-menu { display: none; flex-direction: column; gap: 2px; padding: 8px 24px 16px; border-top: 1px solid var(--border); background: var(--bg); }
.mobile-menu a { padding: 12px 4px; font-size: 16px; font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-menu a.mm-cta { margin-top: 10px; border: 0; text-align: center; padding: 12px 18px; border-radius: 9999px; background: var(--accent); color: #fff; }
.progress { position: absolute; left: 0; bottom: -1px; right: 0; height: 2px; pointer-events: none; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 120ms linear; }

/* ===== layout ===== */
.sec { max-width: 1080px; margin: 0 auto; padding: clamp(64px, 9vw, 112px) 24px; }
.band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.band-top { border-bottom: 0; }
.sec-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px 56px; align-items: end; margin-bottom: 40px; }
.sec-head.wide { margin-bottom: 48px; }
.sec-sub { font-size: 16px; line-height: 1.65; color: var(--text-2); max-width: 440px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.eyebrow .num { padding: 2px 9px; border: 1px solid var(--accent); border-radius: 9999px; }
h2 { margin-top: 16px; font-size: clamp(28px, 4vw, 42px); font-weight: 500; line-height: 1.1; letter-spacing: -0.022em; text-wrap: balance; }
h3 { font-weight: 500; }
.badge-ill { flex-shrink: 0; padding: 2px 9px; border-radius: 9999px; border: 1px dashed var(--border-strong); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.tag { padding: 3px 10px; border-radius: 9999px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); }

/* ===== hero ===== */
.hero { overflow: hidden; max-width: 1080px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) 24px clamp(56px, 8vw, 104px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border: 1px solid var(--border); border-radius: 9999px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; transition: color 150ms, border-color 150ms; }
.pill:hover { color: var(--accent); border-color: var(--accent); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s var(--ease) infinite; flex-shrink: 0; display: inline-block; }
.hero h1 { margin-top: 26px; font-size: clamp(38px, 6vw, 64px); font-weight: 500; line-height: 1.05; letter-spacing: -0.028em; text-wrap: balance; }
.hero mark { color: inherit; background: linear-gradient(0deg, var(--mark), var(--mark)) no-repeat left bottom; background-size: 100% 42%; padding: 0 2px; transition: background-size .8s var(--ease) .7s; }
.lead { margin-top: 24px; max-width: 560px; font-size: 17px; line-height: 1.65; color: var(--text-2); text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.btn { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 9999px; font-size: 15px; font-weight: 500; transition: transform 150ms var(--ease), box-shadow 150ms var(--ease), all 150ms var(--ease); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px -8px var(--accent); }
.btn-primary:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 12px 28px -8px var(--accent); }
.btn-primary .mono { font-size: 13px; }
.btn-outline { gap: 8px; border: 1px solid var(--border-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 28px; }
.chip { padding: 3px 11px; border: 1px solid var(--border); border-radius: 9999px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); transition: all 300ms var(--ease); }
.chip.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.hero-card-wrap { position: relative; min-width: 0; }
.dotgrid { position: absolute; inset: -28px -20px; z-index: 0; pointer-events: none; background-image: radial-gradient(var(--border-strong) 1px, transparent 1.3px); background-size: 20px 20px; -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 0%, transparent 100%); mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 0%, transparent 100%); opacity: .7; }
.hcard { position: relative; z-index: 1; border: 1px solid var(--border-strong); border-radius: 14px; background: var(--surface); box-shadow: var(--glow); overflow: hidden; }
.hhead { padding: 14px 22px 12px; border-bottom: 1px solid var(--border); }
.mono-cap { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); overflow-wrap: anywhere; }
.hsteps { list-style: none; margin: 0; padding: 10px 22px 14px; display: grid; }
.hstep { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px 0; }
.hstep + .hstep::before { content: ""; position: absolute; left: 21px; top: -14px; height: 28px; width: 2px; border-radius: 2px; background: var(--border); transition: background-color 500ms var(--ease); }
.hico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 9999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--muted); transition: all 500ms var(--ease); }
.hico svg { width: 20px; height: 20px; }
.ht { font-size: 18px; font-weight: 500; letter-spacing: -0.012em; line-height: 1.3; color: var(--text); }
.hd { margin-top: 2px; font-size: 14.5px; line-height: 1.45; color: var(--text-2); }
.hstep .min0 { transition: opacity 500ms var(--ease); }
.hstep.on .hico { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.hstep.on + .hstep.on::before { background: var(--accent); }
.hstep.on:last-child .hico { border-color: var(--tier-a); background: var(--tier-a-soft); color: var(--tier-a); }
.js-motion .hstep:not(.on) .min0 { opacity: .35; }

/* ===== 01 gap ===== */
.actors { position: relative; display: grid; grid-template-columns: 1fr 1.4fr 1fr 1fr; gap: 16px; align-items: stretch; }
.actors-line { position: absolute; left: 8%; right: 8%; top: 50%; height: 1px; background: var(--border-strong); z-index: 0; }
.actors-line i { position: absolute; left: 16%; right: 46%; top: 0; height: 1px; background: var(--accent); }
.pulse-dot { position: absolute; top: -4px; width: 9px; height: 9px; margin-left: -4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); animation: travel 5s var(--ease) infinite; }
.actor { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 18px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg); transition: transform 200ms var(--ease); min-width: 0; }
.actor:hover { transform: translateY(-4px); }
.actor.me { padding: 22px; border-color: var(--accent); background: linear-gradient(180deg, var(--accent-soft), transparent 80%), var(--surface); box-shadow: 0 16px 40px -16px var(--accent); }
.a-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.a-kind { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.a-n { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.a-name { font-size: 16px; font-weight: 500; letter-spacing: -0.012em; line-height: 1.2; }
.a-role { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.a-out { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--muted); }
.actor.me .a-kind, .actor.me .a-out { color: var(--accent); }
.actor.me .a-name { font-size: 22px; }

.duo { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; align-items: stretch; }
.arrives { padding: 22px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); min-width: 0; }
.leaves { padding: 22px; border: 1px solid var(--accent); border-radius: 14px; background: linear-gradient(180deg, var(--accent-soft), var(--surface) 70%); min-width: 0; }
.cap-row { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.leaves .cap-row { color: var(--accent); }
.quote-p { margin-top: 14px; font-size: 15px; line-height: 1.7; color: var(--text-2); }
.quote-p .hl { background: var(--mark); color: var(--text); padding: 0 2px; }
.src { margin-top: 12px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.tickets { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.ticket { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); font-size: 13.5px; }
.t-id { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.t-ready { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tier-a); }
.note { margin-top: 12px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* ===== 02 implement ===== */
.trig { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; align-items: stretch; }
.trig-list { display: flex; flex-direction: column; gap: 6px; }
.trig-btn { display: grid; grid-template-columns: 28px minmax(0, 1fr) 16px; gap: 12px; align-items: center; width: 100%; padding: 14px 16px; text-align: left; cursor: pointer; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); transition: all 200ms var(--ease); }
.trig-btn .tn, .trig-btn .tt, .trig-btn .ta { color: var(--muted); }
.tn { font-family: var(--font-mono); font-size: 11px; }
.tt { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.ts { display: block; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.ta { font-family: var(--font-mono); transition: transform 200ms var(--ease); }
.trig-btn.on { border-color: var(--accent); background: var(--accent-soft); }
.trig-btn.on .tn, .trig-btn.on .tt, .trig-btn.on .ta { color: var(--accent); }
.trig-btn.on .ta { transform: translateX(3px); }
.trig-cards { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.trig-card { position: relative; flex: 1; padding: 28px; border: 1px solid var(--border-strong); border-radius: 14px; background: var(--surface); box-shadow: var(--glow); display: flex; flex-direction: column; gap: 20px; min-height: 360px; }
.trig-card[hidden] { display: none; }
.tc-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tc-tag { padding: 3px 10px; border-radius: 9999px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); }
.tc-tag.sm { font-size: 10px; padding: 2px 9px; }
.tc-n { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.trig-card h3 { font-size: clamp(22px, 2.8vw, 28px); line-height: 1.2; letter-spacing: -0.018em; text-wrap: balance; }
.gets { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.get { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; color: var(--text-2); }
.tick { color: var(--tier-a); font-family: var(--font-mono); }
.tc-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tc-where { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.ulink { font-size: 14px; font-weight: 500; color: var(--text); border-bottom: 1px solid var(--border-strong); }
.ulink:hover { color: var(--accent); border-color: var(--accent); }

/* ===== 03 trace ===== */
.trace { border: 1px solid var(--border-strong); border-radius: 14px; background: var(--bg); overflow: hidden; }
.trace-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.trace-id { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--text-2); flex-wrap: wrap; }
.trace-id b { color: var(--text); font-weight: 500; }
.trace-id i { font-style: normal; color: var(--muted); }
.trace-ctl { display: flex; align-items: center; gap: 8px; }
.play { display: none; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 9999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.play:hover { border-color: var(--accent); color: var(--accent); }
.js-motion .play { display: inline-flex; }
.trace-bar { height: 2px; background: var(--border); }
.trace-bar i { display: block; height: 100%; background: var(--accent); transition: width 700ms var(--ease); }
.trace-cells { display: grid; grid-template-columns: repeat(auto-fit, minmax(156px, 1fr)); }
.tcell { all: unset; box-sizing: border-box; display: block; text-align: left; cursor: default; padding: 18px 16px 20px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); min-width: 0; margin: 0 -1px -1px 0; transition: background-color 400ms var(--ease), opacity 400ms var(--ease); }
.js .tcell { cursor: pointer; }
.tcell:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.tc-l { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tc-h { display: block; margin-top: 12px; font-family: var(--font-mono); font-size: 12.5px; color: var(--text); line-height: 1.5; word-break: break-word; }
.tc-b { display: block; margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.tcell.act { background: var(--accent-soft); }
.tcell.act .tc-l { color: var(--accent); }
.tcell.pend { opacity: .42; }

/* ===== 04 proof ===== */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden; }
.stat { padding: 28px 24px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 0 -1px -1px 0; }
.stat-n { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: clamp(40px, 5vw, 52px); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.stat-n small { font-size: 18px; color: var(--accent); letter-spacing: 0; }
.stat p { margin-top: 12px; font-size: 14px; color: var(--muted); max-width: 260px; }
.proof-duo { margin-top: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.case { padding: 24px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); min-width: 0; }
.case-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.case h3 { font-size: 19px; letter-spacing: -0.012em; }
.case-list { margin-top: 14px; display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.case-i { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; line-height: 1.55; color: var(--text-2); }
.ci-n { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.quote-card { padding: 28px; border-radius: 14px; background: var(--text); color: var(--bg); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-width: 0; }
.qmark { font-size: 44px; line-height: .8; color: var(--accent); font-weight: 600; }
.quote-card blockquote { font-size: clamp(20px, 2.6vw, 26px); line-height: 1.35; font-weight: 500; letter-spacing: -0.015em; text-wrap: balance; }
.quote-card figcaption { font-size: 13px; opacity: .7; }
.quote-card figcaption b { display: block; font-weight: 500; font-size: 14px; }

/* ===== 05 engagements ===== */
.ladder { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 228px), 1fr)); gap: 12px; align-items: end; }
.lcard { position: relative; display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); transition: box-shadow 200ms; }
.lcard:hover { box-shadow: var(--glow); }
.lcard:nth-child(1) { min-height: 250px; }
.lcard:nth-child(2) { min-height: 284px; }
.lcard:nth-child(3) { min-height: 318px; }
.lcard:nth-child(4) { min-height: 352px; }
.lcard.start { border-color: var(--accent); background: linear-gradient(180deg, var(--accent-soft), var(--bg) 70%); box-shadow: 0 16px 40px -18px var(--accent); }
.start-tag { position: absolute; top: -11px; left: 20px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 9999px; background: var(--accent); color: #fff; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.l-top { display: flex; justify-content: space-between; gap: 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lcard.start .l-top { color: var(--accent); }
.lcard h3 { margin-top: 18px; font-size: 19px; letter-spacing: -0.012em; }
.lcard p { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--text-2); flex: 1; }
.l-price { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 14px; color: var(--text); }
.price-note { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* ===== 06 terminal ===== */
.term { border: 1px solid var(--border-strong); border-radius: 14px; background: var(--surface); overflow: hidden; box-shadow: var(--glow); }
.term-bar { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.lights { display: flex; gap: 5px; }
.lights span { width: 9px; height: 9px; border-radius: 9999px; background: var(--border-strong); }
.term-url { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.replay { display: none; padding: 3px 10px; border-radius: 9999px; border: 1px solid var(--border-strong); background: transparent; color: var(--muted); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.replay:hover { color: var(--accent); border-color: var(--accent); }
.js-motion .replay { display: inline-block; }
.term-body { padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.term-q { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid var(--accent); border-radius: 9999px; background: var(--bg); min-width: 0; }
.q-mark { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.q-text { font-size: 16px; min-width: 0; }
.caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--accent); animation: caret 1s steps(1) infinite; }
.caret[hidden] { display: none; }
.answers { display: flex; flex-direction: column; gap: 12px; }
.ans { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: baseline; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.an { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.ans p { font-size: 15px; line-height: 1.65; color: var(--text); }
.ans.missing p { color: var(--muted); }
.ref { display: inline-flex; align-items: center; gap: 5px; margin-left: 2px; padding: 0 8px; border: 1px solid currentColor; border-radius: 9999px; font-family: var(--font-mono); font-size: 10.5px; vertical-align: 1px; }
.tier-a { color: var(--tier-a); }
.tier-b { color: var(--tier-b); }
.tier-m { color: var(--state-missing); border-style: dotted; }
.term-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--border); transition: opacity .5s var(--ease); }
.term-count { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.btn-dark { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 9999px; background: var(--text); color: var(--bg); font-size: 14px; font-weight: 500; transition: transform 150ms var(--ease); }
.btn-dark:hover { transform: translateY(-2px); color: var(--bg); }

/* ===== 07 faq ===== */
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 32px 56px; align-items: start; }
.faq-grid h2 { text-wrap: wrap; }
.faq-intro { margin-top: 16px; font-size: 15px; color: var(--text-2); max-width: 340px; }
.faq-list { border-top: 1px solid var(--border); min-width: 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item h3 { font-size: inherit; }
.faq-q { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 4px; font-size: 16px; font-weight: 500; color: var(--text); transition: color 150ms; font-family: var(--font-sans); }
.faq-q:hover { color: var(--accent); }
.faq-q:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.faq-i { flex-shrink: 0; width: 26px; height: 26px; border-radius: 9999px; display: grid; place-items: center; border: 1px solid var(--border-strong); font-family: var(--font-mono); font-size: 15px; color: var(--muted); transition: all 250ms var(--ease); }
.faq-item.open .faq-i { border-color: var(--accent); color: var(--accent); transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 320ms var(--ease), visibility 0s; }
.faq-a > div { overflow: hidden; min-height: 0; }
.faq-a p { padding: 0 4px 20px; font-size: 15px; line-height: 1.65; color: var(--text-2); max-width: 600px; }
.js .faq-item:not(.open) .faq-a { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 320ms var(--ease), visibility 0s 320ms; }

/* ===== 08 contact ===== */
.contact { background: var(--bg); color: var(--text); }
.contact .sec { padding-top: clamp(72px, 10vw, 120px); padding-bottom: clamp(72px, 10vw, 120px); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 40px 56px; align-items: start; }
.contact-grid > * { min-width: 0; }
.contact-h { font-size: clamp(34px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.025em; }
.contact-p { margin-top: 18px; font-size: 16.5px; line-height: 1.65; color: var(--text-2); max-width: 420px; }
.next { margin-top: 28px; display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.next-i { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; color: var(--text-2); }
.next-i b { color: var(--text); font-weight: 500; }
.nx-n { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.alt { margin-top: 20px; font-size: 14px; color: var(--muted); }
.sel { font-family: var(--font-mono); font-size: 13px; color: var(--text); user-select: all; -webkit-user-select: all; }
.foot { max-width: 1080px; margin: 0 auto; padding: 24px 24px 48px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a:hover { color: var(--text); }

/* ===== lead form (V1 logic, V2 tokens) ===== */
.lead-form { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; text-align: left; }
.lf-bar { position: absolute; left: 0; right: 0; top: 0; height: 2px; overflow: hidden; background: var(--accent-soft); }
.lf-bar i { display: block; width: 40%; height: 100%; background: var(--accent); animation: bar 1.1s var(--ease) infinite; }
.lead-form fieldset { border: 0; margin: 0; padding: 24px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.lf-alert { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: var(--danger-soft); color: var(--danger); font-size: 13.5px; }
.lf-alert::before { content: ""; width: 6px; height: 6px; border-radius: 9999px; background: var(--danger); flex-shrink: 0; }
.lf-ctx { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 14px; border: 1px dashed var(--border-strong); border-radius: 10px; background: var(--surface-2); }
.lf-ctx > span { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.02em; color: var(--text-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lf-ctx > span em { font-style: normal; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 10.5px; margin-right: 8px; }
.lf-ctx button { width: 26px; height: 26px; flex-shrink: 0; border-radius: 9999px; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 14px; }
.lf-ctx button:hover { color: var(--text); background: var(--surface); }
.lf-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.lf-row.wide { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.lf-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lf-field > span:first-child, .lf-topics > span:first-child, .lf-lbl { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lead-form input, .lead-form textarea {
  width: 100%; padding: 0 14px; border-radius: 10px; background: var(--bg);
  border: 1px solid var(--border-strong); color: var(--text);
  font-family: var(--font-sans); font-size: 14px; outline: none;
  transition: border-color 150ms var(--ease);
}
.lead-form input { height: 42px; }
.lead-form input[type="month"] { flex: 1; min-width: 0; padding: 0 12px; font-family: var(--font-mono); font-size: 13px; }
.lead-form input:disabled { opacity: .4; }
.lead-form textarea { min-height: 110px; resize: vertical; padding: 12px 14px; border-radius: 12px; line-height: 1.55; }
.lead-form input:focus, .lead-form textarea:focus { border-color: var(--accent); }
.lead-form [aria-invalid="true"] { border-color: var(--danger); }
.lf-err { font-size: 12.5px; color: var(--danger); }
.lf-topics { display: flex; flex-direction: column; gap: 8px; }
.lf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lf-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: 9999px; border: 1px solid var(--border-strong);
  background: transparent; color: var(--text-2); cursor: pointer;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  transition: all 150ms var(--ease);
}
.lf-chip:hover { border-color: var(--accent); color: var(--accent); }
.lf-chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.lf-chip[aria-pressed="true"]::before { content: "✓"; }
.lf-when { display: flex; gap: 6px; align-items: center; }
.lf-nodl {
  height: 42px; padding: 0 14px; border-radius: 9999px; border: 1px solid var(--border-strong);
  background: transparent; color: var(--text-2); cursor: pointer; white-space: nowrap;
  font-family: var(--font-sans); font-size: 13px; font-weight: 500;
}
.lf-nodl:hover { border-color: var(--accent); color: var(--accent); }
.lf-nodl[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.lf-nodl[aria-pressed="true"]::after { content: " ✓"; }
.lf-fail { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--danger); background: var(--danger-soft); }
.lf-fail b { font-size: 14px; font-weight: 500; color: var(--danger); }
.lf-fail span { font-size: 13.5px; color: var(--text-2); }
.lf-fail .sel { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 6px; padding: 1px 7px; }
.lf-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 2px; }
.lf-foot > span { font-size: 12.5px; color: var(--muted); }
.lf-submit {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 9999px; border: 0;
  background: var(--accent); color: #fff; cursor: pointer;
  font-family: var(--font-sans); font-size: 14px; font-weight: 500;
  transition: transform 150ms var(--ease), opacity 150ms var(--ease);
}
.lf-submit:hover { transform: translateY(-2px); opacity: .92; }
.lf-spin { width: 13px; height: 13px; border-radius: 9999px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }
.lf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lf-ok { padding: 40px 28px 36px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.lf-ok .tick { width: 36px; height: 36px; border-radius: 9999px; display: grid; place-items: center; background: var(--tier-a-soft); color: var(--tier-a); }
.lf-ok .tick svg { width: 16px; height: 16px; }
.lf-ok h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; }
.lf-ok p { font-size: 14px; color: var(--text-2); max-width: 460px; }
.lf-ok .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.lf-ok .chips span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--border); border-radius: 9999px; padding: 3px 11px; }
.lf-again { margin-top: 8px; padding: 0; background: none; border: 0; border-bottom: 1px solid var(--border-strong); font-family: var(--font-sans); font-size: 13.5px; color: var(--muted); cursor: pointer; }
.lf-again:hover { color: var(--accent); border-color: var(--accent); }

/* ===== reveal and motion (only with JS and no reduced-motion) ===== */
.js-motion .rv, .js-motion .rv-h, .js-motion .rv-hc, .js-motion .rv-t, .js-motion .rv-l { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js-motion .rv:not(.in), .js-motion [data-reveal]:not(.in) .rv { opacity: 0; transform: translateY(24px); }
.js-motion [data-reveal]:not(.in) .rv-t { opacity: 0; transform: translateX(16px); }
.js-motion [data-reveal]:not(.in) .rv-l { opacity: 0; transform: translateY(32px); }
.js-motion .rv-t:nth-child(1) { transition-delay: .5s; }
.js-motion .rv-t:nth-child(2) { transition-delay: .68s; }
.js-motion .rv-t:nth-child(3) { transition-delay: .86s; }
.js-motion .rv-t:nth-child(4) { transition-delay: 1.04s; }
.js-motion .rv-l:nth-child(2) { transition-delay: .12s; }
.js-motion .rv-l:nth-child(3) { transition-delay: .24s; }
.js-motion .rv-l:nth-child(4) { transition-delay: .36s; }
.js-motion .hero:not(.in) .rv-h { opacity: 0; transform: translateY(18px); }
.js-motion .hero:not(.in) .rv-hc { opacity: 0; transform: translateY(28px) scale(.98); }
.js-motion .hero:not(.in) mark { background-size: 0% 42%; }
.js-motion .rv-h { transition-duration: .7s; }
.js-motion .rv-hc { transition-duration: .8s; transition-delay: .3s; }
.js-motion .h1d { transition-delay: 0s; }
.js-motion .h2d { transition-delay: .08s; }
.js-motion .h3d { transition-delay: .18s; }
.js-motion .h4d { transition-delay: .28s; }
.js-motion .h5d { transition-delay: .38s; }
.js-motion .ans:not(.show) { opacity: 0; transform: translateY(8px); }
.js-motion .term-foot:not(.done) { opacity: .25; }

/* ===== responsive ===== */
@media (max-width: 919px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: grid; }
  .nav.open .mobile-menu { display: flex; }
  .actors { grid-template-columns: 1fr; gap: 8px; }
  .actors-line { display: none; }
  .actor, .actor.me { padding: 14px 16px; gap: 6px; border-radius: 12px; }
  .actor:hover { transform: none; }
  .actor.me .a-name { font-size: 18px; }
  .a-top { order: 2; justify-content: flex-start; gap: 12px; }
  .a-top .a-n { display: none; }
  .actor { flex-direction: column; }
  .actor .a-name { font-size: 15px; }
  .a-out::before { content: "↓ "; }
  .trig-cards { gap: 12px; }
  .trig-card { padding: 22px; min-height: 0; }
  .lcard:nth-child(n) { min-height: 0; }
}
@media (max-width: 520px) {
  .hsteps { padding: 6px 16px 10px; }
  .hhead { padding-left: 16px; padding-right: 16px; }
  .ht { font-size: 16.5px; }
  .ticket { grid-template-columns: 58px minmax(0, 1fr); }
  .ticket .t-ready { grid-column: 2; }
  .term-body { padding: 16px; }
  .lead-form fieldset { padding: 18px; }
  .stat { padding: 22px 20px; }
  .cap-row { flex-direction: column; gap: 2px; }
}

/* ===== no JS: show all trigger cards, no tab list ===== */
html:not(.js) .trig { grid-template-columns: 1fr; }
html:not(.js) .trig-list { display: none; }
html:not(.js) .trig-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
html:not(.js) .trig-card { min-height: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pulse-dot { display: none; }
}
