/* Robo-Insure Gap Scanner — prototype styles */
:root {
  --bg: #0A1218;
  --surface: #121D26;
  --surface-2: #16232E;
  --border: #24333E;
  --heading: #F2F5F7;
  --body: #C3CDD4;
  --muted: #8A97A1;
  --azure: #4DA6FF;
  --azure-dim: rgba(77, 166, 255, 0.12);
  --gold: #D9B45B;
  --gold-dim: rgba(217, 180, 91, 0.14);
  --covered: #4CAF7D;
  --partial: #D9B45B;
  --silent: #E08A4C;
  --excluded: #E05C5C;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --sp: 8px;
  --maxw: 1120px;
  --ease: cubic-bezier(0.22, 0.75, 0.25, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--body);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
h1, h2, h3, h4, .display {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  color: var(--heading);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  font-weight: 600;
}
h1 { font-size: clamp(1.75rem, 6vw, 2.75rem); }
h2 { font-size: clamp(1.3rem, 4.4vw, 1.85rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--azure); text-decoration: none; }
button { font-family: inherit; font-size: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--azure); outline-offset: 2px; border-radius: 4px; }
.mono { font-variant-numeric: tabular-nums; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }
.app-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 18, 24, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 12px; height: 60px; }
.lockup { display: flex; align-items: center; gap: 9px; background: none; border: 0; padding: 0; }
.lockup img { width: 26px; height: 29px; display: block; }
.lockup .wordmark {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.06rem;
  color: var(--heading); letter-spacing: -0.02em; white-space: nowrap;
}
.lockup .wordmark .hy { color: var(--azure); }
.header-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.header-nav button {
  background: none; border: 0; color: var(--muted); font-size: 0.82rem;
  padding: 8px 10px; border-radius: var(--r-sm); transition: color .2s; white-space: nowrap;
}
@media (max-width: 500px) { #nav-scanner { display: none; } }
.header-nav button:hover { color: var(--heading); }
.header-nav button.active { color: var(--azure); background: var(--azure-dim); }

main { padding: 26px 0 96px; }
.screen { display: none; animation: rise .45s var(--ease) both; }
.screen.is-active { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.eyebrow {
  font-family: 'Space Grotesk', sans-serif; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--azure); margin-bottom: 10px;
}
.lede { color: var(--body); font-size: 1.02rem; max-width: 56ch; }
.muted { color: var(--muted); }
.small { font-size: 0.8rem; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 18px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2);
  color: var(--heading); padding: 11px 18px; font-size: 0.9rem; font-weight: 500;
  transition: transform .18s var(--ease), background .2s, border-color .2s, opacity .2s;
  min-height: 44px;
}
.btn:hover { border-color: var(--azure); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--azure); border-color: var(--azure); color: #04121F; font-weight: 600; }
.btn-primary:hover { background: #6bb6ff; border-color: #6bb6ff; }
.btn-ghost { background: transparent; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 13px; font-size: 0.82rem; min-height: 38px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #1b1405; font-weight: 600; }

/* ---------- trust strip ---------- */
/* Film dock — landing, bottom right */
.film-dock { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 320px; }
.dock-frame { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 14px 44px rgba(0,0,0,.55); background: #000; }
.dock-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.dock-play { position: absolute; inset: 0 0 33px 0; margin: auto; width: 54px; height: 54px; border-radius: 50%;
  background: var(--azure); border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: #06121e; transition: transform .2s; box-shadow: 0 6px 22px rgba(0,0,0,.5); }
.dock-play svg { width: 24px; height: 24px; margin-left: 2px; }
.dock-play:hover { transform: scale(1.07); }
.film-dock.playing .dock-play { display: none; }
.film-dock.dock-hidden { display: none; }
.dock-label { font-size: .7rem; color: var(--muted); padding: 8px 12px; background: var(--surface-2);
  border-top: 1px solid var(--border); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) { .film-dock { width: 216px; right: 12px; bottom: 12px; }
  .dock-play { width: 44px; height: 44px; } .dock-play svg { width: 20px; height: 20px; }
  .dock-label { font-size: .64rem; padding: 7px 10px; } }

/* Enquire */
.enq-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; max-width: 760px; }
.enq-field { display: flex; flex-direction: column; gap: 7px; }
.enq-field.wide, .enq-foot.wide { grid-column: 1 / -1; }
.enq-field label { font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.enq-field input, .enq-field select, .enq-field textarea {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; color: var(--heading); font: inherit; font-size: .94rem; width: 100%; }
.enq-field textarea { resize: vertical; min-height: 110px; }
.enq-field input:focus, .enq-field select:focus, .enq-field textarea:focus { outline: none; border-color: var(--azure); }
.enq-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-status { font-size: .84rem; color: var(--covered); margin: 0; }
.form-status.err { color: var(--excluded); }
@media (max-width: 700px) { .enq-form { grid-template-columns: 1fr; } }

/* Founders */
.founders { margin-top: 44px; }
.founders-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.founders-head h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.05rem; color: var(--heading); margin: 0; }
.founders-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.founder-card { display: flex; gap: 14px; align-items: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.f-initials { flex: none; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: .92rem; color: var(--azure);
  background: var(--azure-dim); border: 1px solid rgba(77,166,255,.3); }
.f-name { font-family: 'Space Grotesk', sans-serif; font-weight: 600; color: var(--heading); font-size: .98rem; }
.f-role { font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); margin: 3px 0 8px; }
.founder-card p { font-size: .86rem; line-height: 1.55; color: var(--muted); margin: 0; }
@media (max-width: 760px) { .founders-grid { grid-template-columns: 1fr; } }

.trust {
  display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center;
  color: var(--muted); font-size: 0.76rem; margin-top: 22px;
}
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 13px; height: 13px; flex: none; color: var(--azure); }

/* ---------- landing ---------- */
.hero { padding: 22px 0 8px; position: relative; }
.hero-glow {
  position: absolute; inset: -30% 20% auto -10%; height: 340px; pointer-events: none;
  background: radial-gradient(50% 50% at 30% 40%, rgba(77,166,255,.16), transparent 70%);
  filter: blur(6px); z-index: -1;
}
.hero h1 { max-width: 20ch; }
.hero-mark { display: none; }
@media (min-width: 940px) {
  .hero-mark {
    display: block; position: absolute; right: 40px; top: -10px; width: 230px;
    opacity: .16; filter: drop-shadow(0 0 40px rgba(77,166,255,.35)); pointer-events: none;
  }
}
.hero h1 em { font-style: normal; color: var(--gold); }
.subline {
  font-family: 'Space Grotesk', sans-serif; color: var(--azure); font-size: clamp(1rem, 3.4vw, 1.22rem);
  font-weight: 500; letter-spacing: -0.01em; margin: 12px 0 0; max-width: 34ch;
}
.entry-grid { display: grid; gap: 14px; margin-top: 26px; grid-template-columns: 1fr; }
@media (min-width: 780px) { .entry-grid { grid-template-columns: 1.1fr 1fr; } }
.entry {
  text-align: left; width: 100%; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .2s, transform .2s var(--ease), background .2s;
}
.entry:hover { border-color: var(--azure); transform: translateY(-2px); }
#entry-sme { border-color: rgba(77,166,255,.4); background: linear-gradient(160deg, rgba(77,166,255,.10), var(--surface) 60%); }
#entry-sme:hover { border-color: var(--azure); }
.entry .tag {
  align-self: flex-start; font-size: 0.68rem; letter-spacing: .12em; text-transform: uppercase;
  font-family: 'Space Grotesk', sans-serif; padding: 4px 9px; border-radius: 999px;
  background: var(--azure-dim); color: var(--azure);
}
.entry .tag.pilot { background: var(--gold-dim); color: var(--gold); }
.entry h3 { font-size: 1.22rem; }
.entry p { color: var(--body); font-size: 0.9rem; }
.entry .go { color: var(--azure); font-size: 0.85rem; font-weight: 500; margin-top: auto; }
.how-strip { margin-top: 30px; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .how-strip { grid-template-columns: repeat(4, 1fr); } }
.how-step { border: 1px solid var(--border); border-radius: var(--r-md); padding: 13px 14px; background: rgba(18,29,38,.55); }
.how-step .n { font-family: 'Space Grotesk', sans-serif; color: var(--azure); font-size: .78rem; font-weight: 700; }
.how-step .t { color: var(--heading); font-size: .9rem; font-weight: 500; margin-top: 3px; }
.how-step .d { color: var(--muted); font-size: .78rem; }

/* portfolio teaser panel */
.teaser { margin-top: 14px; border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--surface-2); padding: 18px; display: none; }
.teaser.open { display: block; animation: rise .35s var(--ease) both; }
.teaser-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .teaser-grid { grid-template-columns: 190px 1fr; } }
.mini-map { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; }
.mini-map i { aspect-ratio: 1; border-radius: 2px; display: block; opacity: .85; }
.register { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.register input { flex: 1 1 190px; }

/* ---------- inputs ---------- */
input[type="text"], input[type="email"], input[type="url"] {
  background: #0D1720; border: 1px solid var(--border); color: var(--heading);
  border-radius: var(--r-sm); padding: 11px 12px; font-family: inherit; font-size: 0.9rem;
  min-height: 44px; width: 100%;
}
input::placeholder { color: #667580; }
input:focus { border-color: var(--azure); outline: none; }

/* ---------- progress dots ---------- */
.progress { display: flex; align-items: center; gap: 6px; margin-bottom: 20px; flex-wrap: nowrap; }
.progress .step { display: flex; align-items: center; gap: 6px; }
.progress .dot {
  width: 9px; height: 9px; border-radius: 50%; background: #24333E; flex: none;
  transition: background .3s, box-shadow .3s;
}
.progress .step.done .dot { background: var(--azure); }
.progress .step.current .dot { background: var(--azure); box-shadow: 0 0 0 4px var(--azure-dim); }
.progress .lbl { font-size: 0.74rem; color: var(--muted); white-space: nowrap; }
.progress .step.current .lbl { color: var(--heading); }
.progress .bar { width: 14px; height: 1px; background: var(--border); flex: none; }
@media (max-width: 430px) { .progress .lbl { font-size: 0.68rem; } .progress .bar { width: 8px; } }

/* ---------- chat ---------- */
.chat-shell { max-width: 720px; margin: 0 auto; }
.chat-log { display: flex; flex-direction: column; gap: 12px; padding-bottom: 8px; }
.bubble-row { display: flex; gap: 10px; align-items: flex-end; animation: rise .35s var(--ease) both; }
.bubble-row.me { justify-content: flex-end; }
.avatar {
  width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--azure-dim); border: 1px solid rgba(77,166,255,.35);
  font-family: 'Space Grotesk', sans-serif; font-size: .64rem; font-weight: 700; color: var(--azure);
}
.bubble {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px 16px 16px 4px;
  padding: 11px 14px; max-width: min(78%, 520px); color: var(--body); font-size: 0.92rem;
}
.bubble strong { color: var(--heading); font-weight: 600; }
.bubble-row.me .bubble {
  background: var(--azure-dim); border-color: rgba(77,166,255,.3); color: var(--heading);
  border-radius: 16px 16px 4px 16px;
}
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.1s infinite; }
.typing i:nth-child(2) { animation-delay: .18s; } .typing i:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%,60%,100% { opacity: .25; transform: translateY(0);} 30% { opacity: 1; transform: translateY(-2px);} }

.answer-zone { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--surface-2); border: 1px solid var(--border); color: var(--heading);
  padding: 9px 14px; border-radius: 999px; font-size: 0.85rem; min-height: 40px;
  transition: border-color .2s, background .2s, transform .15s var(--ease);
}
.chip:hover { border-color: var(--azure); transform: translateY(-1px); }
.chip.selected { border-color: var(--azure); background: var(--azure-dim); color: var(--azure); }
.chip .tick { color: var(--azure); }

.use-cards { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .use-cards { grid-template-columns: 1fr 1fr; } }
.use-card {
  display: flex; gap: 11px; align-items: flex-start; text-align: left; padding: 13px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  transition: border-color .2s, background .2s, transform .15s var(--ease);
}
.use-card:hover { border-color: var(--azure); transform: translateY(-1px); }
.use-card.selected { border-color: var(--azure); background: rgba(77,166,255,.08); }
.use-card .ico { width: 34px; height: 34px; border-radius: 9px; background: var(--azure-dim); display: grid; place-items: center; flex: none; }
.use-card .ico svg { width: 18px; height: 18px; color: var(--azure); }
.use-card .t { color: var(--heading); font-size: 0.89rem; font-weight: 500; }
.use-card .s { color: var(--muted); font-size: 0.76rem; }
.use-card .state { margin-left: auto; color: var(--azure); font-size: .9rem; opacity: 0; transition: opacity .2s; }
.use-card.selected .state { opacity: 1; }

.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button {
  width: 42px; height: 42px; border-radius: 50%; background: var(--surface-2);
  border: 1px solid var(--border); color: var(--heading); font-size: 1.15rem; line-height: 1;
}
.stepper button:hover { border-color: var(--azure); }
.stepper .val { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; color: var(--heading); min-width: 2.4ch; text-align: center; }
.stepper input[type="range"] { flex: 1; accent-color: var(--azure); min-width: 100px; }

.input-bar {
  display: flex; gap: 8px; align-items: center; margin-top: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 6px 6px 14px;
}
.input-bar input { background: none; border: 0; flex: 1; min-height: 40px; padding: 0; }
.input-bar input:focus { outline: none; }
.mic {
  width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--muted); position: relative; flex: none;
}
.mic svg { width: 17px; height: 17px; }
.mic:hover { color: var(--azure); border-color: var(--azure); }
.tip {
  position: absolute; bottom: calc(100% + 8px); right: -4px; background: #0D1720; color: var(--body);
  border: 1px solid var(--border); border-radius: var(--r-sm); padding: 6px 9px; font-size: .72rem;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  transform: translateY(4px);
}
.mic:hover .tip, .mic:focus-visible .tip { opacity: 1; transform: none; }
.send { width: 40px; height: 40px; border-radius: 50%; background: var(--azure); border: 0; color: #04121F; display: grid; place-items: center; flex: none; }
.send svg { width: 17px; height: 17px; }

.demo-fab {
  position: sticky; bottom: 14px; z-index: 20; display: flex; justify-content: center; margin-top: 18px;
}
.demo-fab .btn { box-shadow: 0 10px 30px rgba(0,0,0,.45); }

/* ---------- connect ---------- */
.section-head { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 12px; }
.section-head h3 { font-size: 1.02rem; }
.section-head .idx { font-family: 'Space Grotesk', sans-serif; color: var(--azure); font-size: .8rem; font-weight: 700; }
.dropzone {
  border: 1.5px dashed var(--border); border-radius: var(--r-lg); padding: 26px 18px; text-align: center;
  background: rgba(18,29,38,.5); transition: border-color .2s, background .2s;
}
.dropzone.hot { border-color: var(--azure); background: rgba(77,166,255,.07); }
.dropzone svg { width: 26px; height: 26px; color: var(--azure); }
.dropzone .t { color: var(--heading); font-size: .95rem; margin-top: 8px; }
.dropzone .s { color: var(--muted); font-size: .8rem; }
.file-chips { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.file-chip {
  display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 10px 12px; animation: rise .3s var(--ease) both;
}
.file-chip .doc { width: 30px; height: 30px; border-radius: 7px; background: rgba(77,166,255,.13); display: grid; place-items: center; color: var(--azure); font-size: .6rem; font-weight: 700; font-family: 'Space Grotesk', sans-serif; flex: none; }
.file-chip .n { color: var(--heading); font-size: .86rem; display: block; }
.file-chip .m { color: var(--muted); font-size: .74rem; }
.file-chip .ok { margin-left: auto; align-self: flex-start; color: var(--covered); font-size: .74rem; display: inline-flex; align-items: center; gap: 5px; flex: none; }
.file-chip .ok svg { width: 13px; height: 13px; }
.file-chip { align-items: flex-start; }
.file-chip .m { font-size: .72rem; }

.tiles { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .tiles { grid-template-columns: 1fr 1fr; } }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 15px; display: flex; flex-direction: column; gap: 10px; transition: border-color .25s; }
.tile.connected { border-color: rgba(76,175,125,.45); }
.tile-top { display: flex; gap: 11px; align-items: flex-start; }
.tile .glyph { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--surface-2); border: 1px solid var(--border); color: var(--azure); }
.tile .glyph svg { width: 19px; height: 19px; }
.tile .name { color: var(--heading); font-size: .95rem; font-weight: 600; font-family: 'Space Grotesk', sans-serif; }
.tile .why { color: var(--muted); font-size: .8rem; }
.tile .priv { color: #6f7d87; font-size: .7rem; display: inline-flex; align-items: center; gap: 5px; }
.tile .priv svg { width: 11px; height: 11px; }
.tile-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); border-top-color: #04121F; animation: sp .7s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.connected-pill { display: inline-flex; align-items: center; gap: 6px; color: var(--covered); font-size: .82rem; font-weight: 500; }
.found { border-top: 1px dashed var(--border); padding-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.found-item { display: flex; gap: 8px; align-items: flex-start; font-size: .82rem; color: var(--body); animation: foundIn .4s var(--ease) both; }
.found-item .b { color: var(--gold); flex: none; line-height: 1.5; }
@keyframes foundIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

.footprint {
  position: sticky; bottom: 0; z-index: 25; margin-top: 24px;
  background: rgba(10,18,24,.94); backdrop-filter: blur(12px); border-top: 1px solid var(--border);
  padding: 12px 0; margin-left: -18px; margin-right: -18px; padding-left: 18px; padding-right: 18px;
}
.footprint-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; }
.footprint-inner .count { grid-column: 1; }
.footprint-inner .small { grid-column: 1; }
.footprint .btn { grid-column: 2; grid-row: 1 / span 2; margin-left: 0; }
@media (min-width: 700px) { .footprint-inner { grid-template-columns: auto auto 1fr; } .footprint .btn { grid-column: 3; grid-row: 1; justify-self: end; } .footprint-inner .small { grid-column: 2; } }
.footprint .count {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.05rem; color: var(--heading); font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
}
.footprint .count b { color: var(--azure); font-size: 1.3rem; }
.footprint .btn { margin-left: auto; }
.bump { animation: bump .5s var(--ease); }
@keyframes bump { 0% { transform: scale(1);} 35% { transform: scale(1.22); color: var(--gold);} 100% { transform: scale(1);} }

/* ---------- scan ---------- */
.scan-screen {
  position: fixed; inset: 0; z-index: 80; background: radial-gradient(70% 60% at 50% 35%, #10202C, #0A1218 70%);
  display: none; flex-direction: column; align-items: center; justify-content: center; padding: 28px 20px;
}
.scan-screen.is-active { display: flex; }
.pulse-wrap { position: relative; width: 132px; height: 132px; display: grid; place-items: center; }
.pulse-wrap img { width: 66px; position: relative; z-index: 2; filter: drop-shadow(0 0 14px rgba(77,166,255,.55)); }
.pulse-wrap .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(77,166,255,.45); animation: pulse 2.4s var(--ease) infinite; }
.pulse-wrap .ring:nth-child(2) { animation-delay: .8s; }
.pulse-wrap .ring:nth-child(3) { animation-delay: 1.6s; }
@keyframes pulse { from { transform: scale(.55); opacity: .9; } to { transform: scale(1.25); opacity: 0; } }
.scan-title { margin-top: 18px; text-align: center; }
.scan-log { margin-top: 22px; width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 10px; }
.log-line { display: flex; gap: 10px; align-items: center; font-size: .87rem; color: var(--muted); opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s, color .3s; }
.log-line.in { opacity: 1; transform: none; }
.log-line.done { color: var(--body); }
.log-line .mark { width: 16px; flex: none; text-align: center; color: var(--azure); }
.log-line.done .mark { color: var(--covered); }
.scan-bar { width: 100%; max-width: 460px; height: 3px; border-radius: 3px; background: var(--border); margin-top: 24px; overflow: hidden; }
.scan-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--azure), var(--gold)); transition: width .5s linear; }
.skip { margin-top: 22px; }

/* ---------- results ---------- */
.score-card { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 700px) { .score-card { grid-template-columns: 150px 1fr; } }
.dial { position: relative; width: 140px; height: 140px; margin: 0 auto; }
.dial svg { transform: rotate(-90deg); width: 140px; height: 140px; }
.dial .val { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.dial .num { font-family: 'Space Grotesk', sans-serif; font-size: 2.1rem; font-weight: 700; color: var(--heading); line-height: 1; }
.dial .den { font-size: .74rem; color: var(--muted); }
.verdict { display: inline-flex; align-items: center; gap: 7px; background: rgba(224,138,76,.14); color: var(--silent);
  border: 1px solid rgba(224,138,76,.35); border-radius: 999px; padding: 5px 12px; font-size: .8rem; font-weight: 500; }
.counts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 14px; }
@media (min-width: 560px) { .counts { grid-template-columns: repeat(4, 1fr); } }
.count-box { border: 1px solid var(--border); border-radius: var(--r-md); padding: 10px 11px; background: var(--surface-2); }
.count-box .n { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; font-weight: 700; line-height: 1; }
.count-box .l { font-size: .74rem; color: var(--muted); display: flex; align-items: center; gap: 5px; margin-top: 4px; }
.swatch { width: 8px; height: 8px; border-radius: 2px; flex: none; display: inline-block; }

.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 18px 0 10px; font-size: .76rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* matrix (desktop) */
.matrix-wrap { display: none; }
@media (min-width: 860px) { .matrix-wrap { display: block; } .system-cards { display: none !important; } }
table.matrix { width: 100%; border-collapse: separate; border-spacing: 0; }
table.matrix th, table.matrix td { padding: 9px 8px; text-align: left; }
table.matrix thead th { font-family: 'Space Grotesk', sans-serif; font-size: .78rem; color: var(--body); font-weight: 600; letter-spacing: -0.01em; border-bottom: 1px solid var(--border); vertical-align: bottom; }
table.matrix tbody tr { border-bottom: 1px solid var(--border); }
table.matrix td.sys { border-bottom: 1px solid var(--border); }
table.matrix td.cell { border-bottom: 1px solid var(--border); width: 150px; }
.sys-name { color: var(--heading); font-size: .9rem; font-weight: 500; }
.sys-meta { color: var(--muted); font-size: .76rem; }

.state-chip {
  display: inline-flex; align-items: center; gap: 6px; width: 100%; justify-content: flex-start;
  border-radius: var(--r-sm); padding: 8px 10px; font-size: .78rem; font-weight: 500;
  border: 1px solid transparent; background: var(--surface-2); color: var(--body); min-height: 40px;
  transition: transform .15s var(--ease), filter .2s;
}
.state-chip:hover { transform: translateY(-1px); filter: brightness(1.15); }
.state-chip svg { width: 13px; height: 13px; flex: none; }
.state-chip.covered { background: rgba(76,175,125,.13); border-color: rgba(76,175,125,.4); color: #7fd3a8; }
.state-chip.partial { background: rgba(217,180,91,.13); border-color: rgba(217,180,91,.4); color: #e6cd93; }
.state-chip.silent  { background: rgba(224,138,76,.13); border-color: rgba(224,138,76,.42); color: #efab77; }
.state-chip.excluded{ background: rgba(224,92,92,.15); border-color: rgba(224,92,92,.45); color: #f08c8c; }
.state-chip.na { background: transparent; border-color: transparent; color: #5b6771; font-size: .74rem; }
.state-chip.na:hover { transform: none; }

/* mobile stacked system cards */
.system-cards { display: flex; flex-direction: column; gap: 12px; }
.sys-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px; }
.sys-card-head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 11px; }
.sys-card-head .glyph { width: 32px; height: 32px; border-radius: 9px; background: var(--azure-dim); color: var(--azure); display: grid; place-items: center; flex: none; }
.sys-card-head .glyph svg { width: 16px; height: 16px; }
.sev-tag { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; font-family: 'Space Grotesk', sans-serif; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); flex: none; }
.sev-tag.high { color: #f08c8c; border-color: rgba(224,92,92,.45); background: rgba(224,92,92,.1); }
.sev-tag.medium { color: #efab77; border-color: rgba(224,138,76,.4); background: rgba(224,138,76,.1); }
.sev-tag.low { color: #7fd3a8; border-color: rgba(76,175,125,.35); background: rgba(76,175,125,.1); }
.chip-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 520px) { .chip-row { grid-template-columns: repeat(4, 1fr); } }
.chip-row .lbl { font-size: .66rem; color: var(--muted); letter-spacing: .09em; text-transform: uppercase; margin-bottom: 4px; }

.disclaimer { margin-top: 24px; border-left: 2px solid var(--azure); padding: 10px 0 10px 13px; color: var(--muted); font-size: .8rem; }

/* ---------- bottom sheet ---------- */
.sheet-backdrop {
  position: fixed; inset: 0; background: rgba(4,10,14,.68); backdrop-filter: blur(3px);
  z-index: 90; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.sheet {
  visibility: hidden;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; background: var(--surface);
  border-top: 1px solid var(--border); border-radius: 20px 20px 0 0; padding: 8px 18px 26px;
  transform: translateY(101%); transition: transform .38s var(--ease);
  max-height: 88vh; overflow-y: auto; max-width: 620px; margin: 0 auto;
  box-shadow: 0 -20px 50px rgba(0,0,0,.5);
}
.sheet.open { transform: none; visibility: visible; }
.grabber { width: 42px; height: 4px; border-radius: 3px; background: #33434f; margin: 6px auto 14px; }
.sheet-head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
.sheet-head h3 { font-size: 1.1rem; }
.sheet-close { margin-left: auto; background: var(--surface-2); border: 1px solid var(--border); color: var(--body); width: 34px; height: 34px; border-radius: 50%; flex: none; }
.sheet-block { border-top: 1px solid var(--border); padding-top: 13px; margin-top: 13px; }
.sheet-block .k { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--azure); font-family: 'Space Grotesk', sans-serif; margin-bottom: 6px; }
.sheet-block p { font-size: .89rem; }
.clause { background: #0D1720; border: 1px solid var(--border); border-radius: var(--r-md); padding: 11px 12px; font-size: .84rem; color: var(--body); }
.clause b { color: var(--heading); font-family: 'Space Grotesk', sans-serif; }

/* ---------- action pack ---------- */
.action-list { display: flex; flex-direction: column; gap: 12px; }
.action { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 15px; }
.action-head { display: flex; gap: 10px; align-items: flex-start; }
.p-tag { font-family: 'Space Grotesk', sans-serif; font-size: .7rem; font-weight: 700; padding: 4px 9px; border-radius: 6px; flex: none; letter-spacing: .04em; }
.p-tag.p1 { background: rgba(224,92,92,.16); color: #f08c8c; }
.p-tag.p2 { background: rgba(224,138,76,.16); color: #efab77; }
.p-tag.p3 { background: rgba(77,166,255,.14); color: var(--azure); }
.action h3 { font-size: .98rem; }
.action .body { color: var(--body); font-size: .86rem; margin-top: 7px; }
.action ul { margin: 8px 0 0; padding-left: 18px; color: var(--body); font-size: .86rem; }
.action li { margin-bottom: 5px; }
.note { background: var(--gold-dim); border: 1px solid rgba(217,180,91,.3); border-radius: var(--r-sm); padding: 9px 11px; color: #e6cd93; font-size: .8rem; margin-top: 9px; }
.toggle-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.switch { width: 46px; height: 26px; border-radius: 999px; background: #263543; border: 1px solid var(--border); position: relative; flex: none; transition: background .25s; }
.switch i { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #8A97A1; transition: transform .25s var(--ease), background .25s; }
.switch[aria-checked="true"] { background: rgba(77,166,255,.3); border-color: var(--azure); }
.switch[aria-checked="true"] i { transform: translateX(20px); background: var(--azure); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.phase2 { display: none; margin-top: 12px; }
.phase2.open { display: block; animation: rise .3s var(--ease) both; }
.toast {
  position: fixed; left: 50%; top: 72px; transform: translate(-50%, -14px); z-index: 120;
  background: var(--surface); border: 1px solid var(--azure); color: var(--heading);
  border-radius: 999px; padding: 11px 20px; font-size: .85rem; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s var(--ease); box-shadow: 0 12px 30px rgba(0,0,0,.5); max-width: 88vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }


/* ---------- how it connects ---------- */
.arch { width: 100%; margin-top: 20px; }
.arch svg { display: block; width: 100%; height: auto; }
.arch-h { display: none; }
.arch-v { max-width: 360px; margin: 0 auto; }
@media (min-width: 820px) { .arch-h { display: block; } .arch-v { display: none; } }
.node-notes { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 22px; }
@media (min-width: 780px) { .node-notes { grid-template-columns: repeat(3, 1fr); } }
.node-group h4 { font-family: 'Space Grotesk', sans-serif; color: var(--heading); font-size: .92rem; margin: 0 0 8px; }
.node-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.node-group li { font-size: .82rem; color: var(--muted); border-left: 2px solid var(--border); padding-left: 10px; }
.node-group li b { color: var(--body); font-weight: 500; display: block; }

.footer { border-top: 1px solid var(--border); margin-top: 46px; padding: 18px 0 8px; color: #6f7d87; font-size: .76rem; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.footer .pill { border: 1px solid var(--border); border-radius: 999px; padding: 3px 9px; }
.footer .foot-mail { color: var(--azure); text-decoration: none; }
.footer .foot-mail:hover { text-decoration: underline; }

.nav-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* attribute-hidden elements must win over display rules */
[hidden] { display: none !important; }

/* icon sizing safety net — inline SVGs are injected without width/height */
.connected-pill svg, .found-item .b svg, .legend svg, .verdict svg,
.sheet-head .state-chip svg, .toast svg { width: 14px; height: 14px; flex: none; }
.found-item .b { display: inline-flex; align-items: center; height: 20px; }

.na-note { margin-top: 10px; font-size: .74rem; color: #6f7d87; }
.log-line .mark svg { width: 14px; height: 14px; }

/* desktop: the drawer becomes a centred modal */
@media (min-width: 760px) {
  .sheet { bottom: 5vh; border-radius: 20px; max-height: 84vh; padding: 8px 26px 26px; }
  .sheet:not(.open) { transform: translateY(115%); }
}

/* ---------- savings card (results) ---------- */
.savings-card { margin-top: 12px; border-color: rgba(217,180,91,.34);
  background: linear-gradient(180deg, rgba(217,180,91,.08), rgba(217,180,91,.02)); }
.savings-inner { display: grid; gap: 14px; align-items: center; }
@media (min-width: 700px) { .savings-inner { grid-template-columns: 215px 1fr; gap: 24px; } }
.savings-figure .tag { display: inline-flex; align-items: center; gap: 6px; font-family: 'Space Grotesk', sans-serif;
  font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); background: var(--gold-dim); border-radius: 6px; padding: 4px 9px; }
.savings-figure .amt { display: block; margin-top: 9px; font-family: 'Space Grotesk', sans-serif;
  font-size: 2.1rem; font-weight: 700; line-height: 1; color: var(--gold); }
.savings-figure .per { font-size: .74rem; color: var(--muted); margin-top: 5px; }
.savings-head { color: var(--heading); font-size: .92rem; line-height: 1.55; }

/* ---------- action pack: total line + gold saving item ---------- */
.total-line { margin-top: 10px; font-size: .95rem; color: var(--heading); }
.total-line .sep { color: var(--muted); margin: 0 4px; }
.total-line .gold { color: var(--gold); }
.action.gold { border-color: rgba(217,180,91,.34);
  background: linear-gradient(180deg, rgba(217,180,91,.07), rgba(217,180,91,.015)); }
.p-tag.gold { background: var(--gold-dim); color: var(--gold); }

/* ---------- always-on monitoring feed ---------- */
.feed { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.feed-item { display: flex; align-items: flex-start; gap: 11px; padding: 12px 13px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  border-left: 3px solid var(--border); }
.feed-item.saving { border-left-color: var(--gold); }
.feed-item.gap { border-left-color: var(--azure); }
.feed-item.renewal { border-left-color: var(--muted); }
.feed-item .f-ico { flex: none; width: 18px; height: 18px; color: var(--muted); margin-top: 1px; }
.feed-item.saving .f-ico { color: var(--gold); }
.feed-item.gap .f-ico { color: var(--azure); }
.feed-item .f-body { flex: 1; min-width: 0; }
.feed-item .f-text { display: block; color: var(--heading); font-size: .88rem; }
.feed-item .f-tail { display: block; font-size: .8rem; color: var(--muted); margin-top: 3px; }
.feed-item.saving .f-tail { color: #e6cd93; }
.feed-item .f-when { flex: none; font-size: .72rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 420px) { .feed-item .f-when { display: none; } }
.always-on .section-head .idx { font-size: 1rem; line-height: 1; }

/* ============================================================
   Worked example — Professional Indemnity
   ============================================================ */
.nav-long { display: none; }
@media (min-width: 900px) { .nav-long { display: inline; } }
@media (max-width: 620px) { #nav-pi { padding-left: 8px; padding-right: 8px; } }

.chapter { margin-top: 34px; }
.ch-head { display: flex; align-items: baseline; gap: 11px; padding-bottom: 10px; margin-bottom: 14px;
  border-bottom: 1px solid var(--border); }
.ch-n { font-family: 'Space Grotesk', sans-serif; font-size: .8rem; font-weight: 700; color: var(--azure);
  letter-spacing: .08em; }
.ch-head h3 { font-size: 1.12rem; }
.sub-h { margin: 22px 0 8px; font-size: .95rem; color: var(--heading); }
.pull { font-family: 'Space Grotesk', sans-serif; font-size: 1.22rem; font-weight: 600; color: var(--heading);
  line-height: 1.35; margin: 4px 0 18px; padding-left: 14px; border-left: 3px solid var(--gold); }

/* video panel */
.video-panel { margin-top: 22px; }
#landing-video { margin-top: 30px; }
@media (min-width: 900px) { #landing-video { max-width: 880px; margin-left: auto; margin-right: auto; } }
.vp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-bottom: 10px; }
.vp-head h3 { font-size: 1.02rem; }
.vp-frame { position: relative; aspect-ratio: 16 / 9; width: 100%; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: radial-gradient(120% 120% at 78% 8%, rgba(77,166,255,.16), transparent 58%), #0C1620; }
.vp-frame video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.vp-frame .poster { position: absolute; inset: 0; display: flex; align-items: center; gap: 18px;
  padding: 6% 7%; transition: opacity .3s var(--ease); }
.vp-frame.playing .poster { opacity: 0; pointer-events: none; }
.poster-mark { width: 62px; height: auto; opacity: .9; flex: none; }
@media (max-width: 560px) { .poster-mark { width: 42px; } .vp-frame .poster { gap: 12px; } }
.poster-kicker { font-family: 'Space Grotesk', sans-serif; font-size: .64rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--azure); }
.poster-title { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.1rem, 3.4vw, 1.9rem);
  font-weight: 700; color: var(--heading); margin-top: 7px; line-height: 1.15; }
.poster-tag { font-family: 'Space Grotesk', sans-serif; font-size: clamp(.8rem, 2vw, 1rem); color: var(--body); margin-top: 8px; }
.poster-tag em { font-style: normal; color: var(--gold); }
.play-btn { position: absolute; right: 6%; bottom: 8%; width: 58px; height: 58px; border-radius: 50%;
  border: 1px solid rgba(77,166,255,.5); background: var(--azure); color: #06121e; display: grid; place-items: center;
  cursor: pointer; transition: transform .2s var(--ease); }
.play-btn svg { width: 26px; height: 26px; }
.play-btn:hover { transform: scale(1.06); }
.soon-chip { position: absolute; right: 6%; bottom: 8%; font-size: .76rem; color: var(--gold);
  background: var(--gold-dim); border: 1px solid rgba(217,180,91,.34); border-radius: 999px; padding: 6px 12px; }
@media (max-width: 560px) { .play-btn { width: 46px; height: 46px; right: 4%; bottom: 5%; } .play-btn svg { width: 20px; height: 20px; }
  .vp-frame .poster-copy { padding-right: 58px; }
  .soon-chip { font-size: .7rem; padding: 5px 10px; } }

/* 01 profile + timeline */
.profile-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pc-name { font-family: 'Space Grotesk', sans-serif; font-size: 1.05rem; font-weight: 600; color: var(--heading); }
.demo-pill { font-size: .7rem; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; }
.fact-grid { display: grid; gap: 10px; margin-top: 14px; grid-template-columns: 1fr 1fr; }
@media (min-width: 760px) { .fact-grid { grid-template-columns: repeat(4, 1fr); } }
.fact { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 10px 11px; }
.fact .k { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.fact .v { color: var(--heading); font-size: .88rem; margin-top: 4px; }
.timeline { display: flex; flex-direction: column; gap: 0; border-left: 1px solid var(--border); margin-left: 6px; }
.tl-item { position: relative; padding: 0 0 16px 18px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ''; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--azure); box-shadow: 0 0 0 3px var(--bg); }
.tl-item:last-child::before { background: var(--muted); }
.tl-when { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.tl-what { color: var(--heading); font-size: .92rem; margin-top: 2px; }
.tl-detail { font-size: .85rem; margin-top: 3px; }

/* 02 discovery steps */
.steps { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 13px; }
.step-card .sc-n { font-size: .78rem; color: var(--azure); font-weight: 700; }
.step-card .sc-t { color: var(--heading); font-size: .9rem; margin-top: 6px; }
.step-card .sc-d { font-size: .83rem; margin-top: 5px; }

/* 03 claim */
.claim-card { border-color: rgba(224,92,92,.28); background: linear-gradient(180deg, rgba(224,92,92,.07), rgba(224,92,92,.015)); }
.claim-figure { border-bottom: 1px solid var(--border); padding-bottom: 13px; margin-bottom: 13px; }
.claim-figure .amt { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700; color: var(--excluded); line-height: 1; }
.claim-figure .per { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.beats { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 9px; font-size: .88rem; }
.beats li::marker { color: var(--muted); font-family: 'Space Grotesk', sans-serif; }
.beats li:last-child { color: var(--heading); }

/* 04 deliverables as document cards */
.docs { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .docs { grid-template-columns: 1fr 1fr; } }
.doc-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 18px; box-shadow: 0 14px 30px rgba(0,0,0,.28); }
.doc-card::after { content: ''; position: absolute; inset: 0; border-radius: var(--r-lg); pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.035), transparent 34%); }
.doc-card.tech { border-top: 3px solid var(--azure); }
.doc-card.plain { border-top: 3px solid var(--gold); }
.doc-tab { display: inline-flex; align-items: center; gap: 7px; font-family: 'Space Grotesk', sans-serif;
  font-size: .66rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  border-radius: 6px; padding: 4px 9px; }
.doc-card.tech .doc-tab { color: var(--azure); background: var(--azure-dim); }
.doc-card.plain .doc-tab { color: var(--gold); background: var(--gold-dim); }
.doc-tab svg { width: 14px; height: 14px; }
.doc-card h4 { font-size: 1.06rem; margin-top: 11px; }
.doc-for { font-size: .78rem; color: var(--muted); margin-top: 3px; }
.doc-rows { margin: 14px 0 0; display: flex; flex-direction: column; gap: 11px; }
.doc-rows > div { border-top: 1px solid var(--border); padding-top: 10px; }
.doc-rows dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.doc-rows dd { margin: 4px 0 0; font-size: .84rem; }
.doc-quote { margin: 15px 0 0; padding: 14px 15px; border: 1px solid rgba(217,180,91,.3); border-radius: var(--r-md);
  background: var(--gold-dim); color: #f0dcae; font-family: 'Space Grotesk', sans-serif;
  font-size: 1.02rem; font-weight: 600; line-height: 1.4; }
.doc-points { margin: 14px 0 0; padding-left: 18px; font-size: .86rem; display: flex; flex-direction: column; gap: 7px; }

/* 05 product */
.product-card { margin-top: 4px; }
.prod-head { display: flex; align-items: flex-start; gap: 12px; }
.prod-head .glyph { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center;
  background: var(--azure-dim); color: var(--azure); border: 1px solid rgba(77,166,255,.28); }
.prod-head .glyph svg { width: 20px; height: 20px; }
.prod-name { font-family: 'Space Grotesk', sans-serif; font-size: 1.02rem; font-weight: 600; color: var(--heading); }
.routes { display: grid; gap: 10px; margin-top: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .routes { grid-template-columns: 1fr 1fr; } }
.route { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 13px; }
.route .rt { color: var(--heading); font-size: .9rem; }
.route .rd { font-size: .84rem; margin-top: 5px; }

/* 06 before / after */
.ba-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .ba-grid { grid-template-columns: 1fr 1fr; } }
.ba { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 15px; background: var(--surface); }
.ba.before { border-left: 3px solid var(--excluded); }
.ba.after { border-left: 3px solid var(--covered); }
.ba-h { font-family: 'Space Grotesk', sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; }
.ba.before .ba-h { color: var(--excluded); }
.ba.after .ba-h { color: var(--covered); }
.ba ul { margin: 10px 0 0; padding-left: 18px; font-size: .86rem; display: flex; flex-direction: column; gap: 7px; }
.benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .benefits { grid-template-columns: 1fr 1fr; } }
.benefits li { display: flex; align-items: flex-start; gap: 9px; font-size: .88rem; }
.benefits li svg { width: 16px; height: 16px; flex: none; color: var(--covered); margin-top: 3px; }

/* closing CTA */
.cta-band { margin-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; padding: 20px; border: 1px solid rgba(77,166,255,.3); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(77,166,255,.1), rgba(77,166,255,.02)); }
.cta-band h3 { font-size: 1.08rem; }

/* header fits on small phones */
@media (max-width: 620px) {
  .header-nav button { font-size: .76rem; padding: 7px 8px; }
  .nav-mid { display: none; }
}
@media (max-width: 430px) {
  .lockup .wordmark { display: none; }
  .header-nav button { font-size: .74rem; padding: 7px 7px; }
}
@media (min-width: 900px) { .video-panel { max-width: 880px; } }
.doc-card { align-content: start; }
.vp-frame .poster { background: radial-gradient(120% 130% at 80% 6%, rgba(77,166,255,.18), transparent 58%), #0C1620; }

/* ============================================================
   "Why now" strip (PI worked example)
   ============================================================ */
.whynow { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--border); }
.stat-grid { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 14px; }
@media (min-width: 720px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
.stat-card {
  position: relative; overflow: hidden; padding: 18px 17px 15px;
  background: linear-gradient(168deg, rgba(77,166,255,.07), var(--surface) 62%);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.stat-card::before {
  content: ''; position: absolute; left: 0; top: 0; width: 34px; height: 2px; background: var(--azure);
  box-shadow: 0 0 18px rgba(77,166,255,.7);
}
.stat-card.gold { background: linear-gradient(168deg, rgba(217,180,91,.08), var(--surface) 62%); }
.stat-card.gold::before { background: var(--gold); box-shadow: 0 0 18px rgba(217,180,91,.6); }
.stat-n {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; line-height: .95;
  font-size: clamp(2.1rem, 7vw, 2.7rem); color: var(--heading); letter-spacing: -0.03em;
}
.stat-card.gold .stat-n { color: var(--gold); }
.stat-l { font-size: .88rem; color: var(--body); margin-top: 9px; max-width: 30ch; }
.stat-src { font-size: .7rem; color: var(--muted); margin-top: 11px; letter-spacing: .01em; }
.precedent {
  margin-top: 12px; padding: 17px; border-radius: var(--r-lg);
  border: 1px solid var(--border); border-left: 3px solid var(--azure);
  background: linear-gradient(100deg, rgba(77,166,255,.09), rgba(18,29,38,.6) 55%);
}
.pre-tag {
  display: inline-block; font-family: 'Space Grotesk', sans-serif; font-size: .64rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--azure);
  background: var(--azure-dim); border-radius: 5px; padding: 3px 8px;
}
.precedent p {
  margin: 10px 0 0; color: var(--heading); font-size: .96rem; line-height: 1.5;
  font-family: 'Space Grotesk', sans-serif; font-weight: 500; letter-spacing: -0.01em;
}
.whynow-close {
  margin: 16px 0 0; color: var(--gold); font-family: 'Space Grotesk', sans-serif; font-weight: 600;
  font-size: clamp(1.02rem, 3.6vw, 1.28rem); letter-spacing: -0.015em; line-height: 1.35;
}

/* ============================================================
   Visual polish pass
   ============================================================ */

/* nav: clearer active state + blur on scroll */
.app-header { transition: background .3s, box-shadow .3s, border-color .3s; }
.app-header.scrolled {
  background: rgba(10,18,24,.82); backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.header-nav button { position: relative; transition: color .2s, background .2s; }
.header-nav button.active { box-shadow: inset 0 0 0 1px rgba(77,166,255,.28); }
.header-nav button:not(.active)::after {
  content: ''; position: absolute; left: 50%; right: 50%; bottom: 3px; height: 1px;
  background: var(--azure); opacity: 0; transition: left .25s var(--ease), right .25s var(--ease), opacity .2s;
}
@media (hover: hover) and (pointer: fine) {
  .header-nav button:not(.active):hover::after { left: 10px; right: 10px; opacity: .7; }
}

/* hero: slow-drifting glow behind the shield */
.hero-glow { animation: drift 22s ease-in-out infinite alternate; }
.hero::after {
  content: ''; position: absolute; right: -6%; top: -22%; width: 460px; height: 460px;
  pointer-events: none; z-index: -1; border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(217,180,91,.10), transparent 70%);
  animation: drift2 28s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(-14px, -8px, 0) scale(1); }
  to   { transform: translate3d(26px, 18px, 0) scale(1.08); }
}
@keyframes drift2 {
  from { transform: translate3d(10px, 0, 0) scale(.92); opacity: .75; }
  to   { transform: translate3d(-24px, 26px, 0) scale(1.06); opacity: 1; }
}
@media (min-width: 940px) { .hero-mark { animation: breathe 9s ease-in-out infinite alternate; } }
@keyframes breathe { from { opacity: .12; transform: translateY(0); } to { opacity: .2; transform: translateY(-10px); } }
.hero { padding-bottom: 14px; }
.hero .lede { max-width: 62ch; }

/* consistent kicker treatment */
.eyebrow { font-family: 'Space Grotesk', sans-serif; }

/* softer, consistent card language + azure glow on hover */
.card, .entry, .doc-card, .sys-card, .step-card, .stat-card, .route, .ba, .fact, .how-step, .feed-item {
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease), background .25s;
}
@media (hover: none) { .entry:hover, .doc-card:hover, .stat-card:hover, .step-card:hover, .ba:hover, .sys-card:hover { transform: none; } }
.entry:hover, .doc-card:hover, .sys-card:hover, .stat-card:hover, .step-card:hover, .ba:hover {
  border-color: rgba(77,166,255,.45);
  box-shadow: 0 0 0 1px rgba(77,166,255,.12), 0 16px 36px rgba(4,12,20,.5);
}
.stat-card:hover, .step-card:hover { transform: translateY(-2px); }
.doc-card.plain:hover { border-color: rgba(217,180,91,.5); box-shadow: 0 0 0 1px rgba(217,180,91,.14), 0 16px 36px rgba(4,12,20,.5); }
.how-step:hover, .fact:hover, .route:hover { border-color: rgba(77,166,255,.32); }
.state-chip:focus-visible, .btn:focus-visible, .header-nav button:focus-visible {
  outline: 2px solid var(--azure); outline-offset: 2px;
}

/* more generous section rhythm */
.chapter { margin-top: 42px; }
.ch-head { padding-bottom: 12px; margin-bottom: 18px; }
main { padding-bottom: 110px; }

/* film frame polish */
.vp-frame {
  box-shadow: 0 26px 60px rgba(3,10,17,.6), inset 0 1px 0 rgba(255,255,255,.05);
  border-color: rgba(77,166,255,.22);
}
.vp-frame::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.05), transparent 26%, rgba(0,0,0,.25));
}
.vp-frame .poster { z-index: 1; }
.play-btn { z-index: 2; box-shadow: 0 0 0 8px rgba(77,166,255,.12), 0 12px 30px rgba(0,0,0,.45); }
.play-btn:hover { box-shadow: 0 0 0 12px rgba(77,166,255,.16), 0 14px 34px rgba(0,0,0,.5); }
.soon-chip { z-index: 2; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.stagger > .reveal.in { transition-delay: var(--d, 0ms); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-glow, .hero::after, .hero-mark { animation: none !important; }
  .screen { animation: none !important; }
}
.stat-card { display: flex; flex-direction: column; }
.stat-card .stat-src { margin-top: auto; padding-top: 11px; }
table.matrix tbody tr.reveal { opacity: 0; transform: translateY(10px); }
table.matrix tbody tr.reveal.in { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }

/* ============================================================
   Simplification pass — promise hero, connect gallery, modal
   ============================================================ */

/* hero problem statement */
.promise { margin-top: 22px; display: flex; flex-direction: column; gap: 8px; }
.promise p {
  font-family: 'Space Grotesk', sans-serif; font-weight: 500; letter-spacing: -0.015em;
  font-size: clamp(1.08rem, 2.6vw, 1.42rem); line-height: 1.4; color: var(--heading); margin: 0;
}
.promise p.gold { color: var(--gold); }
.watch-film { margin-top: 22px; display: inline-flex; align-items: center; gap: 9px; }
.watch-film svg { width: 15px; height: 15px; color: var(--azure); }

/* connect search */
.conn-search {
  display: flex; align-items: center; gap: 11px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; margin: 4px 0 6px;
}
.conn-search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.conn-search input { flex: 1; background: none; border: 0; outline: none; color: var(--heading); font: inherit; font-size: .95rem; }
.conn-search input::placeholder { color: var(--muted); }
.conn-search:focus-within { border-color: var(--azure); }

/* gallery */
.conn-cat {
  font-family: 'Space Grotesk', sans-serif; font-size: .7rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin: 20px 0 10px;
}
.conn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.crow { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; transition: border-color .2s; }
.crow.connected { border-color: rgba(76,175,125,.35); }
.crow-main { display: flex; align-items: center; gap: 12px; }
.crow .glyph { width: 36px; height: 36px; border-radius: 9px; background: var(--azure-dim); color: var(--azure); display: flex; align-items: center; justify-content: center; flex: none; }
.crow .glyph svg { width: 18px; height: 18px; }
.crow .grow { flex: 1; min-width: 0; }
.crow .name { color: var(--heading); font-weight: 600; font-size: .92rem; }
.crow .why { color: var(--muted); font-size: .78rem; margin-top: 2px; }
.crow-url { display: block; width: 100%; margin-top: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 11px; color: var(--heading); font-size: .8rem; }
.crow-url:focus { outline: none; border-color: var(--azure); }
.cbtn {
  background: transparent; border: 1px solid var(--azure); color: var(--azure); border-radius: 8px;
  padding: 7px 15px; font-size: .82rem; font-weight: 600; cursor: pointer; flex: none;
  font-family: inherit; transition: background .2s, color .2s; white-space: nowrap;
}
.cbtn:hover { background: var(--azure-dim); }
.cbtn.ghost { border-color: var(--border); color: var(--body); }
.cbtn.gold { border-color: var(--gold); color: var(--gold); }
.cbtn.gold:hover { background: var(--gold-dim); }
.crow.custom { border: 1px dashed rgba(217,180,91,.5); background: var(--gold-dim); grid-column: 1 / -1; }
.crow.custom .glyph { background: transparent; border: 1px dashed rgba(217,180,91,.5); color: var(--gold); }
.crow .found { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.crow .connected-pill { flex: none; }

/* custom-system modal */
.modal {
  position: fixed; inset: 0; z-index: 90; background: rgba(4,10,15,.72);
  backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-card {
  width: min(460px, 100%); background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 26px 28px; box-shadow: 0 30px 80px rgba(0,0,0,.6);
  animation: rise .35s var(--ease, ease) both;
}
.modal-card h3 { font-size: 1.18rem; color: var(--heading); }
.modal-card .sub { color: var(--muted); font-size: .85rem; margin: 4px 0 18px; }
.modal-card input[type="text"] {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px;
  padding: 13px 15px; color: var(--heading); font: inherit; font-size: .95rem; margin-bottom: 12px;
}
.modal-card input[type="text"]:focus { outline: none; border-color: var(--azure); }
.cs-opts { display: flex; flex-direction: column; gap: 9px; }
.cs-opt {
  display: flex; align-items: center; gap: 12px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 13px 15px; cursor: pointer; font-family: inherit; text-align: left;
  color: var(--body); transition: border-color .2s, background .2s; width: 100%;
}
.cs-opt svg { width: 17px; height: 17px; color: var(--azure); flex: none; }
.cs-opt .ot { color: var(--heading); font-size: .9rem; font-weight: 600; }
.cs-opt .os { color: var(--muted); font-size: .76rem; margin-left: auto; }
.cs-opt.selected { border-color: var(--azure); background: var(--azure-dim); }
.cs-foot { display: flex; align-items: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.cs-foot .priv { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--muted); margin-left: auto; }
.cs-foot .priv svg { width: 13px; height: 13px; }

@media (max-width: 680px) {
  .conn-grid { grid-template-columns: 1fr; }
}
