/* CodeToCoin design system — "Price tag".
   The idea: every repository deserves a price tag. White paper, navy ink, one cobalt for action and colour blocks,
   a bubblegum pink for the tag and for actions on cobalt, an alarm red only for risk. No gradients, no grids, no glow.
   Type: Young Serif for headlines and the wordmark (warm, a little cheeky), Schibsted Grotesk for everything you read
   and every figure, DejaVu Sans Mono only on receipts and code.
   Legacy token names (--ink = page, --paper = text, --lime = action) are kept so every component re-themes from here. */

@font-face { font-family: 'Young Serif'; src: url('/assets/fonts/YoungSerif-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Schibsted Grotesk'; src: url('/assets/fonts/SchibstedGrotesk-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Schibsted Grotesk'; src: url('/assets/fonts/SchibstedGrotesk-500.woff2') format('woff2'); font-weight: 500 600; font-display: swap; }
@font-face { font-family: 'Schibsted Grotesk'; src: url('/assets/fonts/SchibstedGrotesk-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Schibsted Grotesk'; src: url('/assets/fonts/SchibstedGrotesk-800.woff2') format('woff2'); font-weight: 800 900; font-display: swap; }
@font-face { font-family: 'Receipt Mono'; src: url('/assets/fonts/DejaVuSansMono.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Receipt Mono'; src: url('/assets/fonts/DejaVuSansMono-Bold.woff') format('woff'); font-weight: 700; font-display: swap; }

:root {
  --ink: #ffffff;          /* page */
  --char: #ffffff;         /* raised surface (bordered) */
  --char-2: #f0f2fa;       /* mist: sunken, hover, alternate sections */
  --char-3: #e3e7f5;       /* tracks, wells */
  --line: rgba(11, 18, 56, 0.12);
  --line-2: rgba(11, 18, 56, 0.24);
  --paper: #0b1238;        /* text: navy ink (18:1 on white) */
  --paper-dim: #3a4166;    /* secondary text */
  --mute: #5a6080;         /* tertiary text (6:1) */
  --lime: #2238e3;         /* action / positive: cobalt (7.7:1) */
  --lime-2: #1a2bc0;
  --lime-ink: #ffffff;
  --lime-soft: rgba(34, 56, 227, 0.08);
  --pink: #ffb8d0;         /* the price tag; action colour on cobalt (ink on pink 11:1) */
  --pink-2: #ffd3e1;
  --orange: #d61f3c;       /* risk only (5.1:1) */
  --orange-soft: rgba(214, 31, 60, 0.08);
  --amber: #8a5300;        /* inference */
  --mint: var(--pink);
  --green-deep: #2238e3;   /* colour blocks */
  --navy: #0b1238;
  --hard: none;
  --receipt: #fffdfa;
  --receipt-ink: #0b1238;
  --receipt-mute: #5a6080;
  --radius: 18px;
  --radius-sm: 10px;
  --font: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --display: 'Young Serif', Georgia, 'Times New Roman', serif;
  --kicker: var(--font);
  --serif: var(--display);
  --mono: 'Receipt Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --shell-w: 1200px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-1: 0.15s; --dur-2: 0.3s; --dur-3: 0.6s;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
/* Anchors land just below the sticky header (69px public, 67px app) with breathing room, never under it. */
html { scroll-padding-top: 88px; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--paper); font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--lime); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 900; letter-spacing: -0.013em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.008em; line-height: 1.15; font-weight: 700; }
h4 { font-size: 1.02rem; letter-spacing: -0.004em; font-weight: 700; font-family: var(--font); }
code, kbd, pre, .mono { font-family: var(--mono); font-size: 0.88em; }
code { background: var(--char-3); padding: 0.1em 0.35em; border-radius: 4px; }
pre { background: var(--char); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; overflow-x: auto; line-height: 1.5; }
pre code { background: none; padding: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
::selection { background: var(--lime); color: var(--lime-ink); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--lime); color: var(--lime-ink); padding: 10px 14px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip:focus { top: 12px; }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--mute); }
.dim { color: var(--paper-dim); }
.small { font-size: 0.875rem; }
.tiny { font-size: 0.78rem; }
.nowrap { white-space: nowrap; }
.wrap { width: min(100% - 32px, var(--shell-w)); margin-inline: auto; }
.narrow { width: min(100% - 32px, 760px); margin-inline: auto; }
.stack > * + * { margin-top: var(--gap, 16px); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }

/* ---------- buttons ---------- */
.btn {
  --b: var(--char-3); --c: var(--paper); --bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px;
  background: var(--b); color: var(--c); border: 1px solid var(--bd); border-radius: 999px; font: 600 0.94rem/1 var(--font);
  text-decoration: none; cursor: pointer; transition: transform 0.12s var(--ease), background 0.15s, border-color 0.15s; white-space: nowrap;
}
.btn:hover { color: var(--c); border-color: var(--paper-dim); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { --b: var(--lime); --c: var(--lime-ink); --bd: var(--lime); }
.btn-primary:hover { --b: var(--lime-2); border-color: var(--lime-2); color: var(--lime-ink); }
.btn-ghost { --b: transparent; --bd: transparent; padding: 0 12px; }
.btn-ghost:hover { background: var(--char-3); }
.btn-danger { --b: transparent; --c: var(--orange); --bd: rgba(214, 31, 60, 0.45); }
.btn-danger:hover { --b: var(--orange-soft); border-color: var(--orange); color: var(--orange); }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 1.02rem; }
.btn-sm { min-height: 34px; padding: 0 13px; font-size: 0.85rem; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.45; pointer-events: none; }
.btn svg { width: 17px; height: 17px; }
.linkish { background: none; border: 0; padding: 0; color: var(--paper-dim); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkish:hover { color: var(--lime); }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; }
.field + .field { margin-top: 16px; }
/* Fields side by side in a grid are aligned by the grid gap, and a grid of fields keeps the rhythm with fields around it. */
.grid > .field + .field { margin-top: 0; }
.grid + .field, .field + .grid, .grid + .grid { margin-top: 16px; }
label, .label { font-weight: 600; font-size: 0.9rem; }
.hint { color: var(--mute); font-size: 0.82rem; }
.err { color: var(--orange); font-size: 0.84rem; font-weight: 500; }
input:not([type]), input[type='text'], input[type='email'], input[type='password'], input[type='url'], input[type='number'], input[type='search'], input[type='date'], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; background: var(--char); color: var(--paper); border: 1px solid var(--line-2);
  border-radius: 10px; font: 400 0.98rem/1.4 var(--font); transition: border-color 0.15s, background 0.15s;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
textarea.code { font-family: var(--mono); font-size: 0.86rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--lime); background: var(--char-2); }
input[aria-invalid='true'], textarea[aria-invalid='true'] { border-color: var(--orange); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23958d7c' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
input[type='checkbox'], input[type='radio'] { accent-color: var(--lime); width: 18px; height: 18px; margin: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 0.94rem; cursor: pointer; }
.check input { margin-top: 3px; flex: none; }
.choice-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.choice { position: relative; display: block; padding: 14px 16px 14px 44px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; font-weight: 500; background: var(--char); transition: border-color 0.15s, background 0.15s; }
.choice input { position: absolute; left: 16px; top: 17px; }
.choice small { display: block; color: var(--mute); font-weight: 400; margin-top: 2px; }
.choice:has(input:checked) { border-color: var(--lime); background: var(--lime-soft); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 24px; flex-wrap: wrap; }

/* ---------- surfaces ---------- */
.panel { background: var(--char); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel-tight { padding: 16px 18px; }
.panel-flush { padding: 0; overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.panel-head h2, .panel-head h3 { font-size: 1.2rem; letter-spacing: -0.008em; font-weight: 700; font-family: var(--display); }
.well { background: var(--char-2); border-radius: 10px; padding: 14px 16px; }
.divider-list > * + * { border-top: 1px solid var(--line); }
.list-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 14px 20px; flex-wrap: wrap; }
.list-row:hover { background: var(--char-2); }

/* ---------- badges & kinds ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 0.76rem; font-weight: 600; background: var(--char-3); color: var(--paper-dim); border: 1px solid var(--line-2); white-space: nowrap; }
.badge-lime { background: var(--lime-soft); color: var(--lime); border-color: rgba(34, 56, 227, 0.3); }
.badge-orange { background: var(--orange-soft); color: var(--orange); border-color: rgba(214, 31, 60, 0.35); }
.badge-amber { background: rgba(154, 98, 0, 0.12); color: var(--amber); border-color: rgba(154, 98, 0, 0.3); }
.badge-solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; flex: none; }
.kind { display: inline-flex; align-items: center; gap: 6px; font-size: 0.74rem; font-weight: 600; padding: 2px 9px; border-radius: 6px; border: 1px dashed var(--line-2); color: var(--paper-dim); }
.kind-verified { border-style: solid; border-color: rgba(34, 56, 227, 0.45); color: var(--lime); }
.kind-inference { border-color: rgba(154, 98, 0, 0.5); color: var(--amber); }
.kind-recommendation { border-color: var(--line-2); color: var(--paper); }
.kind-unknown { color: var(--mute); }
.kind-ai { border-color: #5b3fc7; color: #5b3fc7; }
.kind-guard { border-style: solid; border-color: rgba(154, 98, 0, 0.4); color: var(--amber); }
.sev-critical, .sev-high { color: var(--orange); }
.sev-medium { color: var(--amber); }
.sev-low, .sev-info { color: var(--paper-dim); }
.estimate-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; color: var(--amber); border: 1px solid rgba(154, 98, 0, 0.4); border-radius: 5px; padding: 1px 7px; letter-spacing: 0.02em; }
.test-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; color: #5b3fc7; border: 1px solid rgba(91, 63, 199, 0.45); border-radius: 5px; padding: 1px 7px; }

/* ---------- alerts / flash ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--char); font-size: 0.94rem; }
.alert p:last-child { margin: 0; }
.alert-success { border-color: rgba(34, 56, 227, 0.35); background: var(--lime-soft); }
.alert-error { border-color: rgba(214, 31, 60, 0.45); background: var(--orange-soft); }
.alert-warn { border-color: rgba(154, 98, 0, 0.4); background: rgba(154, 98, 0, 0.08); }
.alert-info { border-color: rgba(34, 56, 227, 0.3); background: var(--lime-soft); }
/* Support form honeypot: off-screen for people, visible to naive bots. */
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.support-form { position: relative; }
.cookie-note { position: fixed; left: 16px; bottom: 16px; z-index: 45; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); padding: 6px 6px 6px 12px; background: rgba(255, 255, 255, 0.72); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); color: var(--paper-dim); border: 1px solid var(--line); border-radius: 999px; font-size: 0.75rem; line-height: 1.3; animation: flash-in 0.35s var(--ease); }
.cookie-note[hidden] { display: none; }
.cookie-note p { margin: 0; white-space: nowrap; }
.cookie-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.cookie-note button { flex: none; border: 0; border-radius: 999px; padding: 4px 10px; background: var(--paper); color: #fff; font: 600 0.72rem/1.2 var(--font); cursor: pointer; }
.cookie-note button:hover { background: var(--lime); }
.cookie-note button:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.flash { position: fixed; right: 20px; bottom: 20px; z-index: 50; max-width: min(420px, calc(100vw - 40px)); box-shadow: 0 18px 50px rgba(11, 18, 56, 0.14); animation: flash-in 0.35s var(--ease); }
@keyframes flash-in { from { transform: translateY(12px); opacity: 0; } }

/* ---------- site header / footer ---------- */
.site-head { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; }
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 900; font-size: 1.22rem; letter-spacing: -0.015em; }
.brand:hover { color: var(--paper); }
.brand svg { width: 30px; height: 30px; }
.brand .to { color: var(--mute); font-weight: 700; }
.nav-main { display: flex; gap: 4px; margin-left: 12px; }
.nav-main a { text-decoration: none; padding: 8px 12px; border-radius: 999px; color: var(--paper-dim); font-weight: 500; font-size: 0.95rem; }
.nav-main a:hover, .nav-main a[aria-current='page'] { color: var(--paper); background: var(--char-3); }
.head-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.icon-btn.menu-toggle { display: none; }
@media (max-width: 860px) {
  .nav-main { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: var(--ink); border-bottom: 1px solid var(--line); padding: 12px 16px 20px; margin: 0; }
  .nav-main.open { display: flex; }
  .nav-main a { padding: 12px; }
  .icon-btn.menu-toggle { display: inline-flex; }
  .head-actions .btn-ghost { display: none; }
}
.site-foot { border-top: 1px solid var(--line); margin-top: 120px; padding: 56px 0 40px; color: var(--paper-dim); font-size: 0.92rem; }
.foot-grid { display: grid; gap: 32px; grid-template-columns: 1.6fr repeat(4, 1fr); }
.foot-grid h4 { color: var(--paper); margin-bottom: 12px; font-size: 0.92rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; }
.foot-legal { margin-top: 48px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--mute); font-size: 0.84rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- marketing ---------- */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(3rem, 8.2vw, 7.4rem); line-height: 0.9; letter-spacing: -0.019em; }
.hero h1 .strike { position: relative; color: var(--mute); white-space: nowrap; }
.hero h1 .strike::after { content: ''; position: absolute; left: -2%; right: -2%; top: 52%; height: 0.09em; background: var(--orange); transform: rotate(-3deg); }
.hero-sub { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--paper-dim); max-width: 34ch; margin: 28px 0 32px; line-height: 1.45; }
.hero-form { display: flex; gap: 8px; max-width: 540px; background: var(--char); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px; }
.hero-form input { border: 0; background: transparent; min-height: 46px; border-radius: 999px; padding-left: 18px; font-family: var(--mono); font-size: 0.92rem; }
.hero-form input:focus { background: transparent; }
.hero-form:focus-within { border-color: var(--lime); }
.hero-note { margin-top: 14px; font-size: 0.86rem; color: var(--mute); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } }
@media (max-width: 520px) { .hero-form { flex-direction: column; border-radius: 18px; } .hero-form .btn { width: 100%; } }

/* The receipt */
.receipt {
  --notch: 9px;
  position: relative; background: var(--receipt); color: var(--receipt-ink); font-family: var(--mono); font-size: 0.84rem; line-height: 1.55;
  padding: 30px 26px 34px; max-width: 400px; width: 100%; margin-inline: auto;
  -webkit-mask: radial-gradient(circle at 50% 0, transparent calc(var(--notch) - 0.5px), #000 var(--notch)) 50% 0 / calc(var(--notch) * 2.4) 51% repeat-x,
                radial-gradient(circle at 50% 100%, transparent calc(var(--notch) - 0.5px), #000 var(--notch)) 50% 100% / calc(var(--notch) * 2.4) 51% repeat-x;
          mask: radial-gradient(circle at 50% 0, transparent calc(var(--notch) - 0.5px), #000 var(--notch)) 50% 0 / calc(var(--notch) * 2.4) 51% repeat-x,
                radial-gradient(circle at 50% 100%, transparent calc(var(--notch) - 0.5px), #000 var(--notch)) 50% 100% / calc(var(--notch) * 2.4) 51% repeat-x;
  filter: drop-shadow(0 30px 40px rgba(11, 18, 56, 0.14));
}
.receipt-tilt { transform: rotate(2.2deg); }
.receipt .r-center { text-align: center; }
.receipt .r-title { font-weight: 700; font-size: 1.05rem; letter-spacing: 0.04em; }
.receipt .r-mute { color: var(--receipt-mute); }
.receipt .r-rule { border: 0; border-top: 1.5px dashed rgba(11, 18, 56, 0.35); margin: 12px 0; }
.receipt .r-line { display: flex; justify-content: space-between; gap: 12px; }
.receipt .r-line span:first-child { flex: none; white-space: nowrap; }
.receipt .r-line span:last-child { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.receipt .r-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.15rem; }
.receipt .r-big { font-family: var(--display); font-weight: 900; font-size: 3.4rem; letter-spacing: -0.019em; line-height: 1; }
.receipt .r-bar { height: 34px; background: repeating-linear-gradient(90deg, var(--receipt-ink) 0 2px, transparent 2px 4px, var(--receipt-ink) 4px 5px, transparent 5px 8px, var(--receipt-ink) 8px 11px, transparent 11px 12px); margin-top: 14px; }
.receipt .r-x { color: #d61f3c; font-weight: 700; }
.receipt .r-ok { color: #0b1238; font-weight: 700; }
.receipt-print { animation: print 1.6s var(--ease) both 0.25s; }
@keyframes print { from { clip-path: inset(0 0 100% 0); transform: rotate(2.2deg) translateY(-18px); } to { clip-path: inset(0 0 0 0); } }

.marquee { border-block: 1px solid var(--line); overflow: hidden; white-space: nowrap; padding: 18px 0; margin-top: 64px; }
.marquee-track { display: inline-flex; gap: 48px; animation: marquee 48s linear infinite; font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.008em; color: var(--paper-dim); }
.marquee-track span::before { content: '●'; color: var(--lime); font-size: 0.6em; vertical-align: middle; margin-right: 48px; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section { padding: 112px 0 0; }
.section-lead { max-width: 60ch; color: var(--paper-dim); font-size: 1.12rem; margin-top: 18px; }
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 56px; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.flow > div { padding: 32px 28px 36px; border-right: 1px solid var(--line); position: relative; }
.flow > div:last-child { border-right: 0; }
.flow .word { font-family: var(--display); font-weight: 900; font-size: clamp(2.4rem, 4.6vw, 4.2rem); letter-spacing: -0.019em; line-height: 1; margin-bottom: 18px; }
.flow > div:nth-child(3) .word { color: var(--lime); }
.flow p { color: var(--paper-dim); margin: 0; }
.flow ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 0.94rem; }
.flow li { padding-left: 20px; position: relative; }
.flow li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 10px; height: 2px; background: var(--lime); }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr; } .flow > div { border-right: 0; border-bottom: 1px solid var(--line); } .flow > div:last-child { border-bottom: 0; } }

.billboard { margin-top: 112px; background: var(--lime); color: var(--lime-ink); border-radius: 28px; padding: clamp(36px, 6vw, 80px); position: relative; overflow: hidden; }
.billboard h2 { font-size: clamp(2.6rem, 7vw, 6.2rem); letter-spacing: -0.021em; line-height: 0.92; max-width: 13ch; }
.billboard p { font-size: 1.15rem; max-width: 46ch; margin: 24px 0 0; }
.billboard .btn { --b: var(--ink); --c: var(--paper); --bd: var(--ink); margin-top: 32px; }
.billboard .btn:hover { color: var(--lime); }
.billboard .coin-bg { position: absolute; right: -60px; bottom: -80px; width: 380px; opacity: 0.16; }

.feature-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; margin-top: 96px; }
.feature-split.flip { grid-template-columns: 1.1fr 0.9fr; }
.feature-split.flip > :first-child { order: 2; }
.feature-split h3 { font-family: var(--display); font-weight: 900; font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -0.015em; line-height: 1.02; }
.feature-split p { color: var(--paper-dim); font-size: 1.05rem; margin-top: 16px; }
@media (max-width: 900px) { .feature-split, .feature-split.flip { grid-template-columns: 1fr; gap: 28px; } .feature-split.flip > :first-child { order: 0; } }
.mock { background: var(--char); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.mock-label { font-size: 0.8rem; color: var(--mute); margin-bottom: 10px; }

.quip { font-family: var(--display); font-weight: 900; font-size: clamp(1.6rem, 3.4vw, 2.8rem); letter-spacing: -0.015em; line-height: 1.05; max-width: 22ch; }
.quips { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 0; border-top: 1px solid var(--line); margin-top: 56px; }
.quips > div { padding: 32px 28px 32px 0; border-bottom: 1px solid var(--line); }
.quips .quip { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.quips p:not(.quip) { color: var(--mute); margin: 12px 0 0; }

/* pricing */
/* Plan cards: separate cards, about 10% more compact than before; the recommended plan is raised, outlined and badged. */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 28px; align-items: stretch; }
.plan { padding: 24px 21px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--char); display: flex; flex-direction: column; gap: 14px; position: relative; transition: border-color var(--dur-1), box-shadow var(--dur-1); }
.plan:hover { border-color: var(--line-2); }
.plan.highlight { border: 2px solid var(--lime); padding: 23px 20px 21px; background: linear-gradient(180deg, rgba(34, 56, 227, 0.07), var(--char) 46%); box-shadow: 0 22px 44px -24px rgba(34, 56, 227, 0.55); }
.plans-public .plan.highlight { transform: translateY(-8px); }
.plan-badge { position: absolute; top: -12px; left: 20px; background: var(--lime); color: #fff; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; box-shadow: 0 0 0 3px #fff; }
.plan h3 { font-size: 1.35rem; font-family: var(--display); font-weight: 900; }
.plan-tagline { margin: 5px 0 0; font-size: 0.86rem; line-height: 1.45; color: var(--mute); min-height: 2.9em; }
.plan .price { font-family: var(--display); font-weight: 900; font-size: 2.85rem; letter-spacing: -0.019em; line-height: 1; }
.plan .price small { font-size: 0.92rem; color: var(--mute); font-family: var(--font); font-weight: 500; letter-spacing: 0; }
.plan-terms { margin: 8px 0 0; font-size: 0.8rem; color: var(--mute); line-height: 1.4; }
.plan.highlight .plan-terms { color: var(--lime); font-weight: 600; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.86rem; line-height: 1.45; color: var(--paper-dim); }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: ''; position: absolute; left: 2px; top: 0.42em; width: 10px; height: 5px; border-left: 2px solid var(--lime); border-bottom: 2px solid var(--lime); transform: rotate(-45deg); }
.plan li.plan-incl { padding-left: 0; font-weight: 600; color: var(--paper); }
.plan li.plan-incl::before { content: none; }
.plan .btn { width: 100%; }
.plan form .btn, .plan > .btn:last-child { margin-top: auto; }
.plan > .badge { align-self: flex-start; }
.plans-wrap { padding-top: 14px; scroll-margin-top: -18px; } /* lands with the cards right under the sticky header */
.plan-assure { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin: 26px 0 0; padding: 0; font-size: 0.86rem; color: var(--paper-dim); }
.plan-assure li { position: relative; padding-left: 20px; }
.plan-assure li::before { content: ''; position: absolute; left: 2px; top: 0.42em; width: 10px; height: 5px; border-left: 2px solid var(--lime); border-bottom: 2px solid var(--lime); transform: rotate(-45deg); }
.plans-more { text-align: center; margin: 14px 0 0; font-size: 0.9rem; }
.pricing-hero { padding-top: clamp(28px, 4vw, 52px); }
.pricing-hero h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1; letter-spacing: -0.02em; max-width: 22ch; }
.pricing-hero p { margin: 12px 0 0; color: var(--paper-dim); max-width: 60ch; }
/* Comparison table */
.compare-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; -webkit-overflow-scrolling: touch; }
.compare-scroll:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.compare { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 0.9rem; }
.compare th, .compare td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.compare th[scope="row"] { text-align: left; font-weight: 500; color: var(--paper-dim); width: 30%; }
.compare th[scope="row"] a { color: inherit; text-decoration-color: var(--line-2); }
.compare thead th { padding-top: 20px; padding-bottom: 16px; }
.compare .cmp-name { display: block; font-family: var(--display); font-size: 1.15rem; }
.compare .cmp-price { display: block; font-weight: 700; margin-top: 2px; }
.compare .cmp-price small { font-weight: 500; color: var(--mute); }
.compare .is-hl { background: rgba(34, 56, 227, 0.06); }
.compare thead .is-hl { box-shadow: inset 0 3px 0 var(--lime); }
.compare .cmp-group th { text-align: left; background: var(--char-2); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); padding: 9px 16px; }
.compare .cmp-yes { color: var(--lime); font-weight: 800; }
.compare .cmp-no { color: var(--mute); }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
.compare .cmp-cta td { padding-top: 14px; padding-bottom: 16px; }
.depth-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.depth-grid h3 { font-size: 1.1rem; margin: 4px 0 8px; }
.depth-grid p { margin: 0; }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; } .plans-public .plan.highlight { transform: none; } }
@media (max-width: 800px) { .depth-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .plans { grid-template-columns: minmax(0, 1fr); gap: 22px; } .plan-tagline { min-height: 0; } .plans-public .plan.highlight { order: -1; } }

.faq > h2 { margin-bottom: 18px; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; color: var(--lime); font-size: 1.4rem; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--paper-dim); margin: 12px 0 0; max-width: 70ch; }

.prose { max-width: 70ch; }
.social-auth { display: grid; gap: 10px; margin: 4px 0 0; }
.social-btn { width: 100%; justify-content: center; font-weight: 700; }
.social-google { background: #fff; color: #1f1f1f; border: 1px solid #c7c9d1; }
.social-google:hover { background: #f6f7fb; color: #1f1f1f; }
.social-apple { background: #000; color: #fff; border: 1px solid #000; }
.social-apple:hover { background: #1d1d1f; color: #fff; }
.or-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 6px; color: var(--mute); font-size: 0.86rem; }
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.related-guides { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.related-guides li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.related-guides a { font-family: var(--display); font-size: 1.15rem; text-decoration: none; }
.related-guides a:hover { text-decoration: underline; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 48px 0 16px; }
.prose h3 { margin: 32px 0 10px; }
.prose p, .prose li { color: var(--paper-dim); font-size: 1.04rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 6px; }
.prose table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 0.94rem; }
.prose th, .prose td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.page-hero { padding: 72px 0 32px; }
.page-hero p { color: var(--paper-dim); font-size: 1.15rem; max-width: 58ch; margin-top: 20px; }

/* ---------- app shell ---------- */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 6px; background: var(--ink); }
.sidebar .brand { padding: 4px 10px 14px; font-size: 1.1rem; }
.side-group { display: grid; gap: 2px; margin-top: 10px; }
.side-label { font-size: 0.74rem; color: var(--mute); padding: 6px 12px; font-weight: 500; }
.side-link { display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-radius: 9px; text-decoration: none; color: var(--paper-dim); font-size: 0.93rem; font-weight: 500; }
.side-link svg { width: 18px; height: 18px; flex: none; opacity: 0.85; }
.side-link:hover { background: var(--char-2); color: var(--paper); }
.side-link[aria-current='page'] { background: var(--char-3); color: var(--paper); }
.side-link[aria-current='page'] svg { color: var(--lime); opacity: 1; }
.side-link .count { margin-left: auto; background: var(--lime); color: var(--lime-ink); font-size: 0.72rem; font-weight: 700; border-radius: 999px; padding: 1px 7px; }
.side-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.plan-chip { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--char); border: 1px solid var(--line); font-size: 0.86rem; text-decoration: none; }
.plan-chip strong { font-family: var(--display); }
.main { min-width: 0; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 14px 32px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); z-index: 20; }
.topbar .crumbs { display: flex; gap: 8px; align-items: center; color: var(--mute); font-size: 0.9rem; min-width: 0; }
.topbar .crumbs a { text-decoration: none; color: var(--paper-dim); }
.topbar .crumbs span[aria-hidden] { opacity: 0.5; }
.topbar-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--paper-dim); cursor: pointer; text-decoration: none; }
.icon-btn:hover { color: var(--paper); background: var(--char-2); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .pip { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); border: 2px solid var(--ink); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--char-3); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.82rem; color: var(--paper); border: 1px solid var(--line-2); }
.content { padding: 36px 32px 96px; max-width: 1280px; }
.page-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.page-title h1 { font-size: clamp(2rem, 3.4vw, 2.9rem); letter-spacing: -0.017em; }
.page-title p { color: var(--paper-dim); margin: 10px 0 0; max-width: 62ch; }
.icon-btn.mobile-nav-toggle { display: none; }
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 40; transform: translateX(-100%); transition: transform 0.25s var(--ease); }
  .sidebar.open { transform: none; box-shadow: 20px 0 60px rgba(11, 18, 56, 0.14); }
  .icon-btn.mobile-nav-toggle { display: inline-flex; }
  .content { padding: 24px 16px 80px; }
  .topbar { padding: 12px 16px; }
}
.scrim { display: none; }
.scrim.show { display: block; position: fixed; inset: 0; background: rgba(11, 18, 56, 0.14); z-index: 35; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 28px; overflow-x: auto; }
.tabs a { text-decoration: none; padding: 10px 14px; color: var(--mute); font-weight: 500; font-size: 0.94rem; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--paper); }
.tabs a[aria-current='page'] { color: var(--paper); border-bottom-color: var(--lime); }

/* ---------- data ---------- */
.stat { display: grid; gap: 4px; }
.stat .v { font-family: var(--display); font-weight: 900; font-size: 2.3rem; letter-spacing: -0.017em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .k { color: var(--mute); font-size: 0.86rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stats > .stat { padding: 20px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.score { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; }
.score .n { font-family: var(--display); font-weight: 900; font-size: 1.6rem; letter-spacing: -0.015em; width: 2.6ch; text-align: right; font-variant-numeric: tabular-nums; }
.meter { height: 8px; background: var(--char-3); border-radius: 99px; overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--lime); border-radius: 99px; width: var(--w, 0%); }
.meter.warn > i { background: var(--amber); }
.meter.bad > i { background: var(--orange); }
.lang-bar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; gap: 2px; }
.lang-bar i { display: block; height: 100%; width: var(--w); background: var(--c); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.84rem; color: var(--paper-dim); margin-top: 10px; }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); display: inline-block; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.data th { text-align: left; font-weight: 500; color: var(--mute); font-size: 0.82rem; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; position: relative; }
/* Long URLs, keys and code never push the page sideways on small screens. */
p, li, dd, td, .hint, .alert { overflow-wrap: break-word; }
.prose code, p .mono, li .mono { overflow-wrap: anywhere; }
.chart { width: 100%; height: auto; }
.chart text { fill: var(--mute); font: 11px var(--font); }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .series-a { stroke: var(--lime); fill: none; stroke-width: 2.4; }
.chart .series-b { stroke: var(--orange); fill: none; stroke-width: 2; stroke-dasharray: 5 4; }
.chart .series-c { stroke: var(--paper-dim); fill: none; stroke-width: 1.6; }
.chart .area-a { fill: url(#limeFade); }
.chart .bar { fill: var(--lime); }
.chart .zero { stroke: var(--line-2); }

/* findings */
.finding { padding: 18px 20px; display: grid; grid-template-columns: 22px 1fr; gap: 4px 14px; }
.finding .sev { margin-top: 3px; }
.finding h4 { font-size: 1rem; }
.finding .meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 0; }
.finding p { color: var(--paper-dim); margin: 8px 0 0; font-size: 0.93rem; }
.evidence { grid-column: 2; margin-top: 10px; display: grid; gap: 6px; }
.evidence code { display: block; white-space: pre-wrap; word-break: break-all; padding: 8px 10px; background: var(--ink); border: 1px solid var(--line); border-radius: 8px; font-size: 0.8rem; color: var(--paper-dim); }
.evidence .path { color: var(--lime); }

/* progress / scan */
.scan-progress { display: grid; gap: 16px; }
.scan-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.scan-steps li { display: flex; gap: 12px; align-items: center; color: var(--mute); }
.scan-steps li.done { color: var(--paper-dim); }
.scan-steps li.now { color: var(--paper); font-weight: 600; }
.scan-steps li::before { content: ''; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; }
.scan-steps li.done::before { background: var(--lime); border-color: var(--lime); }
.scan-steps li.now::before { border-color: var(--lime); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px var(--lime-soft); } }
.big-progress { height: 10px; background: var(--char-3); border-radius: 99px; overflow: hidden; }
.big-progress i { display: block; height: 100%; background: var(--lime); width: var(--w); transition: width 0.6s var(--ease); }

/* empty states */
.empty { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: clamp(32px, 6vw, 64px); text-align: left; display: grid; gap: 14px; justify-items: start; }
.empty .quip { font-size: clamp(1.5rem, 3vw, 2.3rem); }
.empty p { color: var(--paper-dim); max-width: 52ch; margin: 0; }

/* project cards */
.project-card { display: grid; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--char); text-decoration: none; transition: border-color 0.15s; }
.project-card:hover { border-color: var(--line-2); color: var(--paper); }
.project-card h3 { font-size: 1.25rem; }
.project-card .score-big { font-family: var(--display); font-weight: 900; font-size: 2.6rem; letter-spacing: -0.019em; line-height: 0.9; }

/* product cards (marketplace) */
.product-card { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--char); text-decoration: none; }
.product-card:hover { border-color: var(--line-2); color: var(--paper); }
.product-card .cover { aspect-ratio: 16 / 9; background: var(--char-3); display: flex; align-items: flex-end; padding: 16px; position: relative; overflow: hidden; }
.product-card .cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-card .cover .initial { font-family: var(--display); font-weight: 900; font-size: 4rem; letter-spacing: -0.023em; color: var(--line-2); line-height: 0.8; }
.product-card .body { padding: 16px 18px 18px; display: grid; gap: 8px; align-content: start; }
.product-card h3 { font-size: 1.1rem; }

/* chat */
.chat { display: grid; grid-template-columns: 260px 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-height: 70vh; }
.chat-list { border-right: 1px solid var(--line); background: var(--char); padding: 12px; display: grid; align-content: start; gap: 4px; }
.chat-list a { display: block; padding: 10px 12px; border-radius: 9px; text-decoration: none; color: var(--paper-dim); font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-list a[aria-current='page'], .chat-list a:hover { background: var(--char-3); color: var(--paper); }
.chat-main { display: grid; grid-template-rows: 1fr auto; min-width: 0; }
.messages { padding: 24px; display: grid; gap: 18px; align-content: start; overflow-y: auto; max-height: 64vh; }
.msg { max-width: 72ch; }
.msg-user { justify-self: end; background: var(--char-3); padding: 12px 16px; border-radius: 16px 16px 4px 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-declined { background: transparent; border: 1px dashed var(--line-2); color: var(--mute); }
.chat-foot { margin: 0; padding: 0 14px 12px; background: var(--char); display: flex; gap: 8px; align-items: flex-start; }
.chat-foot svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.msg-assistant .who { display: flex; gap: 8px; align-items: center; font-size: 0.82rem; color: var(--mute); margin-bottom: 6px; }
.msg-assistant .body p, .msg-assistant .body li { color: var(--paper); }
.composer { border-top: 1px solid var(--line); padding: 14px; display: flex; gap: 10px; align-items: flex-end; background: var(--char); }
.composer textarea { min-height: 48px; max-height: 200px; }
@media (max-width: 860px) { .chat { grid-template-columns: 1fr; } .chat-list { display: none; } }

/* auth */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--lime); color: var(--lime-ink); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side .quip { font-size: clamp(2.2rem, 4.2vw, 4rem); letter-spacing: -0.019em; max-width: 12ch; }
.auth-side .brand:hover { color: var(--lime-ink); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-card { width: min(100%, 420px); }
.auth-card h1 { font-size: 2.4rem; margin-bottom: 8px; }
.auth-card .sub { color: var(--paper-dim); margin-bottom: 28px; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-side { padding: 28px 24px; min-height: auto; } .auth-side .quip { font-size: 2rem; margin-top: 24px; } }

/* onboarding */
.onboard { min-height: 100vh; display: grid; place-items: center; padding: 48px 16px; }
.onboard-card { width: min(100%, 720px); }
.steps-dots { display: flex; gap: 6px; margin-bottom: 28px; }
.steps-dots i { height: 4px; flex: 1; background: var(--line-2); border-radius: 4px; }
.steps-dots i.on { background: var(--lime); }

/* kanban-ish task board */
.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; align-items: start; }
.col { background: var(--char); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 10px; }
.col h3 { font-size: 0.98rem; font-family: var(--font); font-weight: 600; display: flex; justify-content: space-between; padding: 4px 4px 6px; }
.task { background: var(--char-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 8px; }
.task h4 { font-size: 0.96rem; word-spacing: normal; }
.task > .badge, .task > .row { justify-self: start; }
.task details summary { cursor: pointer; color: var(--mute); font-size: 0.84rem; }
.task ul { margin: 6px 0 0; padding-left: 18px; font-size: 0.86rem; color: var(--paper-dim); }

/* scenario editor */
.scenario { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }
.scenario .assumptions { display: grid; gap: 14px; }
.scenario .assumptions .field + .field { margin-top: 0; }
.range-row { display: grid; grid-template-columns: 1fr 110px; gap: 10px; align-items: center; }
input[type='range'] { width: 100%; accent-color: var(--lime); }
@media (max-width: 1000px) { .scenario { grid-template-columns: 1fr; } }

.kbd-hint { font-size: 0.78rem; color: var(--mute); }
.inline-form { display: inline; }
.callout-receipt { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .callout-receipt { grid-template-columns: 1fr; } }
.gh-repo { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 18px; }
.mark-inline { width: 22px; height: 22px; display: inline-block; vertical-align: -5px; }
.cookie-free { font-size: 0.82rem; color: var(--mute); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; }
}
html[data-reduced-motion='true'] *, html[data-reduced-motion='true'] *::before { animation: none !important; transition: none !important; }

@media print {
  body { background: #fff; color: #000; }
  .sidebar, .topbar, .site-head, .site-foot, .no-print, .flash { display: none !important; }
  .app { display: block; }
  .panel { border-color: #ccc; background: #fff; }
  .prose p, .prose li { color: #222; }
}

/* layout safety: grid children may shrink below their content (long code, URLs) */
.feature-split > *, .grid > *, .callout-receipt > *, .scenario > *, .hero-grid > * { min-width: 0; }
.filter-bar { display: grid; grid-template-columns: 2fr repeat(4, 1fr) auto; gap: 10px; align-items: end; }
@media (max-width: 1000px) { .filter-bar { grid-template-columns: 1fr 1fr; } .filter-bar > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .filter-bar { gap: 8px; padding: 14px; } .filter-bar label { font-size: 0.8rem; } }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 900px) { .product-layout { grid-template-columns: 1fr; gap: 28px; } .product-layout aside.panel { position: static !important; } }
.board > *, .task { min-width: 0; }
.page-hero .panel p { font-size: 0.94rem; max-width: none; margin-top: 6px; }

/* polish */
.report-cards { align-items: start; }
.stat-link { color: var(--lime); text-decoration: none; font-size: 1.6rem; }
.stat-link:hover, .stat-link:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.competitor-form { display: grid; gap: 8px; margin-top: 12px; }
.competitor-form .btn { justify-self: start; }
.stage-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.stage-head > :last-child { white-space: nowrap; color: var(--paper-dim); }
@media (max-width: 860px) {
  .tabs { margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); }
  .tabs::-webkit-scrollbar { display: none; }
}
@media (max-width: 1000px) { .filter-bar > button, .filter-bar > .btn { grid-column: 1 / -1; } }
@media (max-width: 560px) { .score-hint { display: none; } }
input[type='file'] { font: inherit; font-size: 0.9rem; color: var(--paper-dim); max-width: 100%; }
input[type='file']::file-selector-button { font: inherit; font-weight: 600; font-size: 0.86rem; margin-right: 12px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--char-3); color: var(--paper); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
input[type='file']::file-selector-button:hover { border-color: var(--lime); }
input[type='file']:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 999px; }

/* ===== Journey navigation ===== */
.tabs.journey { align-items: flex-end; gap: 0; }
.tab-group { display: flex; flex-direction: column; gap: 2px; padding-right: 4px; margin-right: 4px; border-right: 1px solid var(--line); flex: none; }
.tabs.journey a { padding-inline: 11px; }
.tab-group-label { padding-inline: 11px !important; }
.tab-group:last-of-type { border-right: 0; }
.tab-group-label { font-family: var(--kicker); font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mute); padding: 0 14px; white-space: nowrap; }
.tab-group-label b { color: var(--lime); font-weight: 700; margin-right: 4px; }
.tab-group-links { display: flex; }
.tab-settings { margin-left: auto; display: inline-flex; align-items: center; padding: 10px 12px !important; color: var(--mute); }
.tab-settings svg { width: 18px; height: 18px; }

/* ===== Shared chips ===== */
.eyebrow { font-family: var(--kicker); font-size: 0.86rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mute); margin: 0 0 8px; font-weight: 700; }
.conf, .diff, .imp, .cls { display: inline-flex; align-items: center; gap: 6px; font-size: 0.74rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); white-space: nowrap; }
.conf::before, .diff::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.conf-high, .diff-low { color: var(--lime); border-color: rgba(34, 56, 227, 0.4); }
.conf-medium, .diff-moderate { color: var(--amber); border-color: rgba(154, 98, 0, 0.4); }
.conf-low, .diff-high { color: var(--orange); border-color: rgba(214, 31, 60, 0.45); }
.imp-critical { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.imp-high { color: var(--orange); border-color: rgba(214, 31, 60, 0.5); }
.imp-medium { color: var(--amber); border-color: rgba(154, 98, 0, 0.45); }
.imp-low { color: var(--paper-dim); }
.cls { text-transform: none; }
.cls-identified { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.cls-prospect { color: var(--lime); border-color: rgba(34, 56, 227, 0.45); }
.cls-hypothesis { color: var(--paper-dim); border-style: dashed; }
.cls-closed { color: var(--mute); }
.neg { color: var(--orange) !important; }

/* ===== Revenue Potential ===== */
.potential-hero { display: grid; grid-template-columns: minmax(200px, 280px) 1fr; gap: 28px; align-items: center; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(120% 140% at 0% 0%, rgba(34, 56, 227, 0.07), transparent 55%), var(--char); }
.dial { position: relative; width: 100%; max-width: 260px; aspect-ratio: 1; }
.dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dial circle { fill: none; stroke-width: 9; }
.dial-track { stroke: var(--char-3); }
.dial-value { stroke: var(--lime); stroke-linecap: round; transition: stroke-dasharray 1.2s var(--ease); }
.dial-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.dial-n { font-family: var(--display); font-weight: 900; font-size: clamp(3.4rem, 7vw, 4.8rem); letter-spacing: -0.023em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.dial-k { font-size: 0.78rem; color: var(--mute); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 8px; }
.verdict h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -0.015em; max-width: 22ch; }
.verdict ul { margin: 12px 0 0; padding-left: 18px; color: var(--paper-dim); display: grid; gap: 4px; max-width: 70ch; }
.verdict-park h2 { color: var(--paper-dim); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.drivers { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 12px; }
.driver-bar { display: block; height: 4px; border-radius: 4px; background: var(--char-3); margin: 6px 0 4px; position: relative; overflow: hidden; }
.driver-bar::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--lime); border-radius: 4px; }
.driver-bar.neg::after { background: var(--orange); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.facts li { display: grid; gap: 2px; }
.facts li > span:last-child { font-size: 0.8rem; color: var(--mute); }
.panel-sub { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.panel-sub h3 { font-size: 1rem; margin-bottom: 6px; text-transform: none; }
@media (max-width: 760px) { .potential-hero { grid-template-columns: 1fr; padding: 20px; } .dial { max-width: 200px; margin: 0 auto; } }

/* ===== Revenue Gap Analyzer ===== */
.gap-summary { display: grid; grid-template-columns: repeat(3, auto) 1fr; gap: 12px 36px; align-items: end; padding: 22px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--char); margin-bottom: 20px; }
.gap-summary > div { display: grid; }
.gap-summary .big { font-family: var(--display); font-weight: 900; font-size: 2.6rem; letter-spacing: -0.019em; line-height: 1; }
.gap-summary > div > span:last-child { font-size: 0.82rem; color: var(--mute); }
.gap-summary p { margin: 0; justify-self: end; max-width: 46ch; text-align: right; }
.gap-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: gap; }
.gap { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--char); position: relative; }
.gap::before { content: ''; position: absolute; left: -1px; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: var(--line-2); }
.gap-critical::before { background: var(--orange); } .gap-high::before { background: rgba(214, 31, 60, 0.6); } .gap-medium::before { background: var(--amber); }
.gap-rank { font-family: var(--display); font-weight: 900; font-size: 1.6rem; color: var(--line-2); letter-spacing: -0.015em; }
.gap-head { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-bottom: 8px; }
.gap-head h3 { font-size: 1.15rem; margin-right: 6px; }
.gap-impact { margin: 0 0 6px; font-weight: 500; }
.gap-files { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.gap-files li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.gap-files code { font-family: var(--mono); font-size: 0.82rem; color: var(--lime); background: var(--ink); border: 1px solid var(--line); padding: 2px 8px; border-radius: 6px; overflow-wrap: anywhere; }
.fa { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.fa-create { color: var(--lime); } .fa-modify { color: var(--amber); } .fa-review { color: var(--orange); }
@media (max-width: 760px) { .gap-summary { grid-template-columns: repeat(3, 1fr); } .gap-summary p { grid-column: 1 / -1; justify-self: start; text-align: left; } .gap { grid-template-columns: 1fr; } .gap-rank { font-size: 1.1rem; } }

/* ===== Blueprint ===== */
.bp-hero { padding: 30px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(135deg, rgba(34, 56, 227, 0.09), transparent 45%), var(--char); display: grid; gap: 12px; }
.bp-hero h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -0.019em; line-height: 0.95; }
.bp-hero .lede { font-size: 1.08rem; color: var(--paper-dim); max-width: 64ch; margin: 0; }
.bp-hero .row { flex-wrap: wrap; }
.bp-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; margin-top: 20px; align-items: start; }
.bp-price { font-family: var(--display); font-weight: 900; font-size: 1.5rem; letter-spacing: -0.011em; margin: 0 0 8px; }
.bp-who { font-family: var(--display); font-weight: 900; font-size: 1.5rem; letter-spacing: -0.011em; margin: 0 0 6px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { padding: 0 0 18px 26px; position: relative; border-left: 1px solid var(--line-2); margin-left: 6px; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before { content: ''; position: absolute; left: -6px; top: 3px; width: 11px; height: 11px; border-radius: 50%; background: var(--ink); border: 2px solid var(--lime); }
.timeline p { margin: 4px 0 0; }
.fit { display: inline-block; min-width: 64px; padding-left: 4px; position: relative; font-weight: 700; z-index: 0; }
.fit::before { content: ''; position: absolute; left: 0; top: 50%; height: 18px; transform: translateY(-50%); width: calc(var(--w) * 0.9); max-width: 64px; background: var(--lime-soft); border-radius: 4px; z-index: -1; }
.models-table td { vertical-align: middle; }
@media (max-width: 900px) { .bp-grid { grid-template-columns: 1fr; } }

/* ===== Buyer Discovery ===== */
.discovery-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
.discovery-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -0.017em; margin-bottom: 10px; }
.cls-legend { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; font-size: 0.86rem; color: var(--paper-dim); }
.cls-legend li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.discovery-form { display: grid; gap: 8px; }
.discovery-form label { font-weight: 600; }
.discovery-form p { margin: 0; }
.signals { list-style: none; margin: 0; padding: 0; display: grid; }
.signals li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.signals li > div { min-width: 0; }
.signals a { color: var(--paper); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.signals a svg { width: 13px; height: 13px; color: var(--mute); flex: none; }
.signals a:hover { color: var(--lime); }
.signals p { margin: 2px 0 0; }
.lead-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.lead-form select { width: auto; min-height: 34px; padding-block: 4px; }
.lead-form input { flex: 1 1 160px; min-height: 34px; padding-block: 4px; }
.add-lead { margin-top: 14px; }
.add-lead summary { cursor: pointer; color: var(--paper-dim); display: inline-flex; gap: 6px; align-items: center; font-weight: 600; font-size: 0.9rem; }
.add-lead summary svg { width: 15px; height: 15px; }
@media (max-width: 900px) { .discovery-head { grid-template-columns: 1fr; } }
.check { display: flex; gap: 8px; align-items: center; font-size: 0.9rem; color: var(--paper-dim); }
.potential-hero > * { min-width: 0; }
.verdict-next { margin: 14px 0 0; color: var(--paper-dim); max-width: 70ch; }
.driver-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.driver-head strong { white-space: nowrap; }
.vp { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.vp dt { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mute); padding-top: 3px; }
.vp dd { margin: 0; }


/* ===== Command center ===== */
.cc-hero { margin: 4px 0 24px; }
.cc-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); letter-spacing: -0.019em; line-height: 0.95; margin-bottom: 10px; max-width: 22ch; }
.cc-hero p { margin: 0; max-width: 62ch; }
.cc-hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.cc-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--char); margin-bottom: 28px; overflow: hidden; }
.cc-kpis > div { padding: 18px 20px; display: grid; gap: 4px; border-right: 1px solid var(--line); min-width: 0; }
.cc-kpis > div:last-child { border-right: 0; }
.cc-kpis b { font-family: var(--display); font-weight: 900; font-size: clamp(1.9rem, 3vw, 2.6rem); letter-spacing: -0.019em; line-height: 1; }
.cc-kpis b small { font-size: 1rem; color: var(--mute); font-family: var(--font); font-weight: 500; letter-spacing: 0; }
.cc-k { font-family: var(--kicker); font-size: 0.86rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mute); }
.cc-s { font-size: 0.8rem; color: var(--paper-dim); }
.cc-assets h2 { font-size: 1.3rem; letter-spacing: -0.008em; }
.asset-list { list-style: none; margin: 14px 0 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.asset { display: grid; grid-template-columns: minmax(0, 2.2fr) auto auto minmax(0, 0.9fr) minmax(0, 1.6fr); gap: 18px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--char); transition: background var(--dur-1); }
.asset:last-child { border-bottom: 0; }
.asset:hover { background: var(--char-2); }
.asset-main { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--paper); min-width: 0; }
.asset-id { display: grid; min-width: 0; }
.asset-id strong { font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-dial { --c: var(--lime); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none; font-family: var(--display); font-weight: 900; font-size: 1.15rem; letter-spacing: -0.015em;
  background: radial-gradient(closest-side, var(--char) 78%, transparent 80% 100%), conic-gradient(var(--c) calc(var(--v) * 1%), var(--char-3) 0); }
.vchip { display: inline-flex; font-size: 0.74rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--paper-dim); white-space: nowrap; }
.vchip-sell_now { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.vchip-sell_code { color: var(--lime); border-color: rgba(34, 56, 227, 0.5); }
.vchip-close_gaps { color: var(--amber); border-color: rgba(154, 98, 0, 0.5); }
.vchip-validate_first { color: var(--paper); }
.vchip-park, .vchip-failed { color: var(--orange); border-color: rgba(214, 31, 60, 0.45); }
.vchip-running { color: var(--lime); border-style: dashed; }
.asset-journey { list-style: none; margin: 0; padding: 0; display: flex; gap: 5px; }
.asset-journey li { width: 18px; height: 6px; border-radius: 6px; background: var(--char-3); }
.asset-journey li.is-done { background: var(--lime); }
.asset-next { justify-self: end; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.88rem; color: var(--paper); text-decoration: none; text-align: right; }
.asset-next svg { width: 15px; height: 15px; color: var(--lime); flex: none; transition: transform var(--dur-1); }
.asset-next:hover { color: var(--lime); }
.asset-next:hover svg { transform: translateX(3px); }
.cc-legend { margin-top: 10px; }
.cc-start { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cc-start li { display: flex; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--char); }
.cc-start li.is-next { border-color: var(--lime); box-shadow: inset 0 3px 0 var(--lime); }
.cc-start li.is-done { opacity: 0.75; }
.cc-start h3 { font-size: 1.2rem; margin-bottom: 6px; }
.cc-start p { margin: 0 0 14px; }
.cc-n { font-family: var(--display); font-weight: 900; font-size: 1.6rem; color: var(--lime); letter-spacing: -0.015em; }
@media (max-width: 1100px) { .cc-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cc-kpis > div:nth-child(3) { border-right: 0; } .cc-kpis > div:nth-child(-n + 3) { border-bottom: 1px solid var(--line); } }
@media (max-width: 900px) { .asset { grid-template-columns: minmax(0, 1fr) auto; } .asset-journey, .asset-stats { display: none; } .asset-next { grid-column: 1 / -1; justify-self: start; } .cc-start { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .cc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cc-kpis > div { border-right: 0; border-bottom: 1px solid var(--line); } }

/* ===== Analysis in progress ===== */
.scan-stage { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 28px; align-items: start; }
.scan-pct { font-family: var(--display); font-weight: 900; font-size: 2rem; letter-spacing: -0.015em; color: var(--lime); }
.scan-receipt { transform: rotate(1.4deg); font-size: 0.8rem; }
.scan-line { transition: opacity var(--dur-2), transform var(--dur-2) var(--ease-out); }
.scan-line:not(.is-done) { opacity: 0.18; }
.scan-line:not(.is-done) .r-ok { visibility: hidden; }
html.motion .scan-line.is-done { animation: print 0.45s var(--ease-out) both; }
html.motion .scan-wait { animation: blink 1.2s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
@media (max-width: 860px) { .scan-stage { grid-template-columns: 1fr; } .scan-receipt { max-width: 420px; } }
.teaser { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 14px 20px; margin-bottom: 20px; border: 1px solid rgba(34, 56, 227, 0.35); border-radius: var(--radius); background: linear-gradient(90deg, rgba(34, 56, 227, 0.08), transparent 60%), var(--char); text-decoration: none; color: var(--paper); transition: border-color var(--dur-2), transform var(--dur-2) var(--ease-out); }
.teaser:hover { border-color: var(--lime); transform: translateY(-1px); }
.teaser-body { display: grid; gap: 4px; min-width: 0; }
.teaser-body .eyebrow { margin: 0; }
.teaser-body strong { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-weight: 600; }
.teaser-cta { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; color: var(--lime); white-space: nowrap; }
.teaser-cta svg { width: 16px; height: 16px; }
@media (max-width: 640px) { .teaser { grid-template-columns: auto 1fr; } .teaser-cta { grid-column: 1 / -1; } }

input[type='date']::-webkit-calendar-picker-indicator { filter: invert(0.85); cursor: pointer; }
.tf-card > .imp { align-self: flex-start; justify-self: start; width: max-content; }
/* QA fixes: mobile breadcrumbs never run under the top-bar actions; dial label fits its ring */
.topbar .crumbs { overflow: hidden; white-space: nowrap; flex: 1 1 auto; }
.topbar .crumbs > * { flex: none; }
.topbar .crumbs > [aria-current] { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) {
  .topbar .crumbs > :not(:last-child) { display: none; }
}
.dial-label { padding-inline: 17%; } .dial-k { line-height: 1.3; text-wrap: balance; }


/* =====================================================================
   IDENTITY — type, actions, labels, colour blocks
   ===================================================================== */
body { font: 400 17px/1.55 var(--font); letter-spacing: -0.003em; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -0.012em; line-height: 1.02; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.8rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); }
h3, h4 { font-family: var(--font); font-weight: 700; letter-spacing: -0.012em; }
h3 { font-size: 1.22rem; line-height: 1.25; }
a:hover { color: var(--lime); }
::selection { background: var(--pink); color: var(--navy); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.32rem); line-height: 1.45; color: var(--paper); }
code { background: var(--char-2); border-radius: 5px; }

/* brand: a price tag with the code sign on it */
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--paper); font: 400 1.42rem/1 var(--display); letter-spacing: -0.015em; }
.brand:hover { color: var(--paper); }
.brand .mark { width: 34px; height: 34px; flex: none; transition: transform 0.4s var(--ease-out); transform-origin: 30% 50%; }
.brand:hover .mark { transform: rotate(-8deg); }

/* actions: solid cobalt, 10px corners, no shadows */
.btn { --b: var(--char); --c: var(--paper); --bd: var(--line-2); min-height: 46px; padding: 0 20px; border-radius: 10px; border: 1.5px solid var(--bd); background: var(--b); color: var(--c);
  font: 700 0.98rem/1 var(--font); letter-spacing: -0.005em; box-shadow: none; transform: none; transition: background var(--dur-1), border-color var(--dur-1), color var(--dur-1); }
.btn:hover { --b: var(--char-2); border-color: var(--paper); color: var(--c); transform: none; box-shadow: none; }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn-primary { --b: var(--lime); --c: var(--lime-ink); --bd: var(--lime); box-shadow: none; }
.btn-primary:hover { --b: var(--lime-2); border-color: var(--lime-2); color: var(--lime-ink); box-shadow: none; transform: none; }
.btn-primary:active { transform: translateY(1px); box-shadow: none; }
.btn-ghost { --b: transparent; --bd: transparent; }
.btn-ghost:hover { --b: var(--char-2); border-color: transparent; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 0.9rem; border-radius: 9px; border-width: 1.5px; box-shadow: none; }
.btn-sm.btn-primary { box-shadow: none; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 1.05rem; }
.btn svg { width: 17px; height: 17px; }
.btn:hover svg:last-child { transform: none; }

/* fields */
input:not([type]), input[type='text'], input[type='email'], input[type='password'], input[type='url'], input[type='number'], input[type='search'], input[type='date'], textarea, select {
  background-color: #fff; border: 1.5px solid var(--line-2); border-radius: 10px; font-family: var(--font); }
input:focus, textarea:focus, select:focus { border-color: var(--lime); box-shadow: 0 0 0 3px var(--lime-soft); outline: none; }
select { background-repeat: no-repeat; background-position: right 14px center; }

/* labels: sentence case, no tracking, no ornaments */
.eyebrow, .act-label, .tab-group-label, .cc-k, .dial-k, .vp dt, .fa { font-family: var(--font); text-transform: none; letter-spacing: 0; font-weight: 600; }
.eyebrow, .act-label { color: var(--lime); font-size: 0.95rem; margin: 0 0 8px; }
.act-label::before, .act-n { content: none; display: none; }
.tab-group-label, .cc-k { font-size: 0.82rem; color: var(--mute); }
.dial-k { font-size: 0.82rem; }
.badge { border-radius: 6px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.badge-solid { background: var(--navy); color: #fff; border-color: var(--navy); }
.imp { text-transform: none; letter-spacing: 0; border-radius: 6px; }
.kind { border-radius: 6px; }

/* surfaces: one radius per level, a hairline, no drop shadows */
.panel, .project-card, .product-card, .col, .chat, .gap, .gap-summary, .asset-list, .bp-hero, .teaser, .cc-kpis { border-width: 1px; box-shadow: none; }
.bp-hero { background: var(--char-2); }
.stat .v, .cc-kpis b, .score .n, .gap-summary .big, .dial-n, .plan .price, .project-card .score-big, .bp-price, .bp-who, .scan-pct, .cc-n, .gap-rank, .asset-dial, .ui-big {
  font-family: var(--font); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.feature-split h3, .plan h3, .quip, .flow .word, .es-t { font-family: var(--display); font-weight: 400; letter-spacing: -0.012em; }
.feature-split h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.panel-head h2, .panel-head h3 { font-family: var(--font); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; }

/* header + footer */
.site-head { background: rgba(255, 255, 255, 0.94); border-bottom: 1px solid transparent; }
.site-head.scrolled { border-bottom-color: var(--line); box-shadow: none; }
.nav-main a { border-radius: 8px; font-weight: 500; color: var(--paper-dim); }
.nav-main a:hover, .nav-main a[aria-current='page'] { background: var(--char-2); color: var(--paper); }
.site-foot { border-top: 1px solid var(--line); background: var(--char-2); }
.site-foot h4 { font-size: 0.95rem; }

/* colour blocks: cobalt, white type, pink actions */
.blk, .billboard, .auth-side, .potential-hero, .final {
  --paper: #ffffff; --paper-dim: rgba(255, 255, 255, 0.86); --mute: rgba(255, 255, 255, 0.74);
  --line: rgba(255, 255, 255, 0.2); --line-2: rgba(255, 255, 255, 0.4);
  --char: rgba(255, 255, 255, 0.08); --char-2: rgba(255, 255, 255, 0.12); --char-3: rgba(255, 255, 255, 0.18);
  --lime: var(--pink); --lime-2: var(--pink-2); --lime-ink: var(--navy); --lime-soft: rgba(255, 184, 208, 0.2);
  --amber: #ffd59a; --orange: #ffb3bf; --mark-bg: var(--pink); --mark-hole: #2238e3; --mark-ink: var(--navy);
  background: #2238e3; color: #ffffff; }
.blk a:not(.btn), .billboard a:not(.btn), .auth-side a:not(.btn), .potential-hero a:not(.btn) { color: #fff; }
.billboard { border-radius: 24px; }
.billboard .btn { --b: var(--pink); --c: var(--navy); --bd: var(--pink); }
.billboard .btn:hover { --b: #fff; color: var(--navy); }
.auth-side .quip { font-size: clamp(2.2rem, 3.8vw, 3.6rem); line-height: 1.04; max-width: 13ch; }
.potential-hero { border: 0; }
.potential-hero h2 { color: #fff; }
.dial { --c: var(--pink); }

/* app shell: navy sidebar */
.sidebar { --paper: #ffffff; --paper-dim: rgba(255, 255, 255, 0.8); --mute: rgba(255, 255, 255, 0.6);
  --line: rgba(255, 255, 255, 0.12); --line-2: rgba(255, 255, 255, 0.26); --char: rgba(255, 255, 255, 0.06); --char-2: rgba(255, 255, 255, 0.1); --char-3: rgba(255, 255, 255, 0.14);
  --lime: var(--pink); --lime-ink: var(--navy); --lime-soft: rgba(255, 184, 208, 0.14); --mark-bg: var(--pink); --mark-hole: var(--navy); --mark-ink: var(--navy);
  background: var(--navy); color: #fff; border-right: 0; }
.sidebar .brand { color: #fff; font-size: 1.3rem; }

/* receipts stay receipts: mono, paper, torn edge */
.receipt .r-ok { color: var(--lime); }
.receipt .r-x { color: #d61f3c; }
.r-stamp { margin: 14px auto 0; width: fit-content; padding: 6px 12px; border: 2.5px solid #d61f3c; color: #d61f3c; font-weight: 700; letter-spacing: 0.04em; transform: rotate(-3deg); }

/* =====================================================================
   HOMEPAGE — the price tag
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }
.home { overflow-x: clip; }
/* (anchor offset is handled globally by html { scroll-padding-top }) */

/* hero: a cobalt block, the repository card on the right with its tag */
.home .hero { padding: clamp(48px, 7vw, 104px) 0 0; overflow: hidden; }
.home .hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.home .hero .hero-title { font-size: clamp(2.7rem, 4.9vw, 4.6rem); line-height: 0.98; letter-spacing: -0.022em; margin: 0 0 26px; color: #fff; }
.hero-title span { display: block; }
.home .hero-sub { font-size: clamp(1.1rem, 1.45vw, 1.27rem); line-height: 1.5; color: rgba(255, 255, 255, 0.9); max-width: 36ch; margin: 0 0 32px; }
.home .hero-note { color: rgba(255, 255, 255, 0.8); font-size: 0.93rem; margin: 14px 0 0; max-width: 46ch; }
.hero-caption { color: rgba(255, 255, 255, 0.72); font-size: 0.86rem; text-align: right; margin-top: 18px; padding-bottom: 22px; }

.repo-form { display: flex; align-items: center; max-width: 580px; background: #fff; border-radius: 14px; padding: 6px 6px 6px 18px; }
.repo-form:focus-within { outline: 3px solid var(--pink); outline-offset: 3px; }
.repo-form-prefix { color: #5a6080; font-weight: 500; white-space: nowrap; }
.repo-form input, .repo-form input[type='text'] { flex: 1; min-width: 0; border: 0; background: transparent; box-shadow: none; color: #0b1238; font: 500 1.02rem var(--font); padding: 13px 8px 13px 1px; border-radius: 0; }
.repo-form input:focus { box-shadow: none; outline: none; }
.repo-form input::placeholder { color: #8a8fa8; }
.repo-form .btn { flex: none; min-height: 50px; }

.stage { position: relative; min-height: 470px; perspective: 1400px; display: flex; align-items: center; justify-content: center; }
.stage-rig { position: relative; width: min(100%, 430px); transform-style: preserve-3d; transform: rotateX(var(--rx, 7deg)) rotateY(var(--ry, -16deg)); transition: transform 0.6s var(--ease-out); }
.repo-card { position: relative; background: #fff; color: #0b1238; border-radius: 18px; padding: 24px 24px 20px;
  box-shadow: 0 50px 70px -40px rgba(4, 8, 40, 0.75), 0 1px 0 rgba(4, 8, 40, 0.06); }
.rc-head { display: flex; align-items: baseline; gap: 3px; font-size: 1.12rem; padding-right: 40px; min-width: 0; }
.rc-owner { color: #5a6080; }
.rc-slash { color: #a0a5bd; margin: 0 2px; }
.rc-name { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-branch { flex: none; margin-left: 10px; font-size: 0.75rem; font-weight: 600; color: #3a4166; border: 1px solid rgba(11, 18, 56, 0.18); border-radius: 6px; padding: 2px 7px; }
.rc-meta { color: #5a6080; font-size: 0.92rem; margin: 6px 0 16px; }
.rc-files { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(11, 18, 56, 0.1); max-width: 64%; }
.rc-files li { display: flex; gap: 9px; align-items: center; font: 0.8rem/1 var(--mono); color: #3a4166; padding: 10px 0; border-bottom: 1px solid rgba(11, 18, 56, 0.07); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-files li::before { content: ''; flex: none; width: 9px; height: 11px; border: 1.5px solid #a0a5bd; border-radius: 2px; }
.rc-ready { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-top: 16px; font-size: 0.86rem; font-weight: 600; }
.rc-track { height: 6px; border-radius: 3px; background: #e3e7f5; overflow: hidden; }
.rc-track i { display: block; height: 100%; width: var(--v); background: #2238e3; border-radius: 3px; }
.rc-eyelet { position: absolute; right: 24px; top: 22px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3.5px solid #c8cce0; }
.stage.is-yours .rc-files, .stage.is-yours .rc-ready { opacity: 0.25; filter: blur(1px); transition: opacity 0.4s, filter 0.4s; }

.price-tag { position: absolute; top: 30px; right: -50px; width: 160px; transform-origin: 50% 0; transform-style: preserve-3d;
  transform: translateZ(50px) rotateZ(4deg) rotateY(-12deg); filter: drop-shadow(0 22px 22px rgba(4, 8, 40, 0.35)); }
html.motion .price-tag { animation: sway 3.8s ease-in-out infinite alternate; }
@keyframes sway { from { transform: translateZ(50px) rotateZ(6deg) rotateY(-26deg); } to { transform: translateZ(50px) rotateZ(-3deg) rotateY(20deg); } }
.pt-string { display: block; width: 2px; height: 64px; margin: 0 auto; background: #0b1238; border-radius: 1px; }
.pt-body { position: relative; height: 216px; transform-style: preserve-3d; transition: transform 0.9s var(--ease-out); cursor: default; }
.stage.is-yours .pt-body { transform: rotateY(180deg); }
.pt-face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 56px 12px 16px; text-align: center;
  background: var(--pink); color: #0b1238; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  clip-path: polygon(50% 0, 100% 18%, 100% 100%, 0 100%, 0 18%); border-radius: 0 0 12px 12px; }
.pt-back { transform: rotateY(180deg); background: #fff; }
.pt-face > * { flex: none; }
.pt-hole { position: absolute; top: 15px; left: 50%; width: 15px; height: 15px; margin-left: -7.5px; border-radius: 50%; background: #2238e3; box-shadow: inset 0 0 0 2.5px rgba(11, 18, 56, 0.2); }
.pt-k { font-size: 0.8rem; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-n { font: 400 4.2rem/1 var(--display); letter-spacing: -0.03em; margin-top: 6px; }
.pt-of { font-size: 0.86rem; font-weight: 700; }
.pt-c { font-size: 0.78rem; margin-top: 6px; color: #3a4166; line-height: 1.3; }

/* promises */
.promises ul { list-style: none; margin: 0 auto; padding: clamp(40px, 5vw, 64px) 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.promises li { border-top: 2px solid var(--lime); padding-top: 16px; }
.promises h3 { font-size: 1.08rem; margin: 0 0 6px; }
.promises p { margin: 0; color: var(--paper-dim); font-size: 0.97rem; }

/* the awkward truth */
.truth { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 100px); align-items: center; padding: clamp(80px, 10vw, 140px) 0; }
.truth h2 { font-size: clamp(2.8rem, 5.6vw, 4.8rem); margin: 0 0 24px; }
.truth .lead { margin-bottom: 14px; }
.truth-copy p:last-child { color: var(--paper-dim); max-width: 52ch; }
.statement { margin: 0; border: 1px solid var(--line); border-radius: 20px; padding: 28px 30px; background: #fff; }
.statement figcaption { font-weight: 700; margin-bottom: 10px; }
.statement dl { margin: 0; }
.statement dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.statement dt { color: var(--paper-dim); }
.statement dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.statement .st-total { border-bottom: 0; border-top: 2px solid var(--navy); margin-top: 8px; padding-top: 18px; align-items: baseline; }
.statement .st-total dt { color: var(--paper); font-weight: 700; }
.statement .st-total dd { font-variant-numeric: normal; font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; color: var(--orange); line-height: 1; }
.statement-note { margin: 14px 0 0; font-size: 0.82rem; color: var(--mute); }

/* how it works */
.how { background: var(--char-2); }
.how-pin { padding: clamp(80px, 10vw, 130px) 0; }
.how-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.how-copy h2 { max-width: 16ch; margin: 0 0 18px; }
.how-live { color: var(--paper-dim); max-width: 44ch; margin: 0 0 26px; }
.how-steps { list-style: none; margin: 0; padding: 0; }
.how-steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 15px 0; border-top: 1px solid var(--line); }
.how-steps li:last-child { border-bottom: 1px solid var(--line); }
.hs-n { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; font-variant-numeric: tabular-nums; transition: background var(--dur-2), color var(--dur-2), border-color var(--dur-2); }
.how-steps h3 { margin: 2px 0 4px; font-size: 1.15rem; }
.how-steps p { margin: 0; color: var(--paper-dim); font-size: 0.97rem; max-width: 46ch; }
.how-steps li.is-active .hs-n { background: var(--lime); border-color: var(--lime); color: #fff; }
.sheets { display: grid; gap: 16px; }
.sheet { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 3vw, 34px); }
.sh-title { font: 400 1.6rem/1.15 var(--display); margin: 0 0 20px; }
.sh-checks { list-style: none; margin: 0; padding: 0; }
.sh-checks li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.sh-checks b { font-weight: 500; }
.sh-checks span { font-weight: 700; color: var(--lime); }
.sh-checks .sh-no { color: var(--paper); }
.sh-bars { display: grid; gap: 6px; }
.sh-bar { display: grid; grid-template-columns: 128px minmax(0, 1fr) 40px; gap: 14px; align-items: center; padding: 8px 0; }
.sh-bar span:first-child { color: var(--paper-dim); }
.sh-track { height: 10px; border-radius: 5px; background: var(--char-3); overflow: hidden; }
.sh-track i { display: block; height: 100%; width: var(--v); background: var(--lime); border-radius: 5px; transform-origin: 0 50%; }
.sh-bar b { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.sh-score { display: flex; align-items: baseline; gap: 12px; }
.sh-big { font: 400 clamp(5rem, 9vw, 7.4rem)/0.9 var(--display); color: var(--lime); letter-spacing: -0.03em; }
.sh-of { font-weight: 700; color: var(--paper-dim); }
.sh-verdict { font-size: 1.25rem; font-weight: 700; margin: 18px 0 0; }
.sh-model { font: 400 clamp(2rem, 3.4vw, 2.7rem)/1.05 var(--display); color: var(--lime); margin: 0 0 8px; }
.sh-sub { color: var(--paper-dim); margin: 0; }
.sh-gap { margin-top: 24px; padding: 16px 18px; border-radius: 12px; background: var(--orange-soft); display: grid; gap: 3px; }
.sh-gap span { font-size: 0.86rem; color: var(--orange); font-weight: 600; }
.sh-gap b { font-size: 1.1rem; }
.sh-sources { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.sh-sources li::marker { color: var(--lime); }
.sh-pipe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 22px; }
.sh-pipe span { border: 1.5px dashed var(--line-2); border-radius: 10px; padding: 30px 10px 10px; font-size: 0.82rem; font-weight: 600; color: var(--mute); }
.sh-foot { color: var(--mute); font-size: 0.88rem; margin: 18px 0 0; }

/* pinned: a stack of report sheets; the front one is torn off as you scroll */
.how.is-pinned { height: 520vh; }
.how.is-pinned .how-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding: 72px 0 24px; }
.how.is-pinned .how-pin > .wrap { flex: none; }
.how.is-pinned .how-grid { align-items: center; }
.how.is-pinned .how-steps li { cursor: pointer; }
.how.is-pinned .how-steps li:not(.is-active) h3 { color: var(--mute); }
.how.is-pinned .how-steps li:not(.is-active) p { max-height: 0; opacity: 0; }
.how.is-pinned .how-steps p { max-height: 7em; overflow: hidden; transition: max-height 0.5s var(--ease-out), opacity 0.4s; }
.how.is-pinned .sheets { display: block; position: relative; height: 430px; perspective: 1600px; transform-style: preserve-3d; }
.how.is-pinned .sheet { position: absolute; inset: 0 0 auto 0; min-height: 360px; transform-origin: 50% 0;
  transform: translate3d(calc(var(--d, 0) * 18px), calc(var(--d, 0) * 16px), calc(var(--d, 0) * -70px));
  opacity: calc(1 - var(--d, 0) * 0.22); z-index: calc(10 - var(--d, 0));
  box-shadow: 0 40px 60px -40px rgba(11, 18, 56, 0.45); transition: transform 0.85s var(--ease-out), opacity 0.6s var(--ease-out); }
.how.is-pinned .sheet:not(.is-front) > * { opacity: 0.35; }
.how.is-pinned .sheet.is-gone { transform: translate3d(0, -18%, 120px) rotateX(-78deg); opacity: 0; pointer-events: none; }
.how.is-pinned .sheet.is-front .sh-track i { animation: fill 0.9s var(--ease-out) both 0.2s; }
@keyframes fill { from { transform: scaleX(0); } }

/* the part where it ships */
.ships { padding: clamp(80px, 10vw, 140px) 0; }
.ships h2 { max-width: 17ch; margin: 0; }
.ships-lead { color: var(--paper-dim); max-width: 54ch; margin: 18px 0 40px; }
.ships-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 1.3fr); gap: 18px; align-items: stretch; }
.ships-flow > li { border-radius: 20px; padding: 26px; display: grid; gap: 10px; align-content: start; }
.ships-flow h3 { margin: 0; font-size: 1.3rem; }
.sf-k { margin: 0 0 6px; font-size: 0.88rem; font-weight: 600; }
.sf-gap { border: 1px solid var(--line); }
.sf-gap .sf-k { color: var(--mute); }
.sf-gap .imp { justify-self: start; }
.sf-ok { background: var(--lime); color: #fff; }
.sf-ok p { color: rgba(255, 255, 255, 0.88); margin: 0; }
.sf-diff { background: var(--navy); color: #e6e9f7; }
.sf-diff .sf-k { color: rgba(255, 255, 255, 0.7); }
.sf-diff pre { background: transparent; border: 0; padding: 0; margin: 0; color: #e6e9f7; font-size: 0.86rem; }
.sf-diff .d-a { color: var(--pink); }
.sf-diff .d-h { color: rgba(255, 255, 255, 0.6); }

/* proof: the receipt */
.proof { background: var(--char-2); padding: clamp(80px, 10vw, 140px) 0; }
.proof-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 100px); align-items: center; }
.proof-copy h2 { margin: 0 0 20px; max-width: 13ch; }
.proof-copy p:not(.lead) { color: var(--paper-dim); max-width: 50ch; }
.printer { position: relative; max-width: 400px; width: 100%; margin-inline: auto; }
.printer-body { position: relative; z-index: 2; height: 60px; border-radius: 16px 16px 8px 8px; background: var(--navy); }
.printer-slot { position: absolute; left: 7%; right: 7%; bottom: 13px; height: 6px; border-radius: 3px; background: #02041a; }
.printer .receipt { position: relative; z-index: 1; width: 88%; margin: -22px auto 0; padding-top: 42px; box-shadow: 0 40px 50px -40px rgba(11, 18, 56, 0.5);
  -webkit-mask: linear-gradient(#000 0 0) 0 0 / 100% 51% no-repeat, radial-gradient(circle at 50% 100%, transparent calc(var(--notch) - 0.5px), #000 var(--notch)) 50% 100% / calc(var(--notch) * 2.4) 51% repeat-x;
          mask: linear-gradient(#000 0 0) 0 0 / 100% 51% no-repeat, radial-gradient(circle at 50% 100%, transparent calc(var(--notch) - 0.5px), #000 var(--notch)) 50% 100% / calc(var(--notch) * 2.4) 51% repeat-x;
  filter: none; }
.printer.is-waiting .receipt { transform: translateY(-100%); clip-path: inset(100% 0 0 0); }
.printer.is-printing .receipt { animation: print-out 2.6s steps(26, end) both; }
.printer.is-printing .r-stamp { animation: stamp 0.45s var(--ease-snap) 2.7s both; }
@keyframes print-out { from { transform: translateY(-100%); clip-path: inset(100% 0 0 0); } to { transform: none; clip-path: inset(0 0 0 0); } }
@keyframes stamp { from { opacity: 0; transform: rotate(-3deg) scale(1.5); } to { opacity: 1; transform: rotate(-3deg) scale(1); } }

/* the menu */
.menu { padding: clamp(80px, 10vw, 140px) 0; }
.menu h2 { margin: 0 0 40px; max-width: 16ch; }
.plans3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.plan3 { display: grid; gap: 10px; align-content: start; padding: 30px; border: 1px solid var(--line); border-radius: 20px; text-decoration: none; color: var(--paper); background: #fff; transition: border-color var(--dur-1); }
.plan3:hover { border-color: var(--paper); color: var(--paper); }
.plan3.is-hl { background: var(--lime); border-color: var(--lime); color: #fff; }
.plan3.is-hl:hover { color: #fff; border-color: var(--navy); }
.p3-name { font-weight: 700; font-size: 1.05rem; }
.p3-price { font: 800 3.4rem/1 var(--font); letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.p3-price small { font-size: 1rem; font-weight: 500; letter-spacing: 0; margin-left: 8px; color: var(--mute); }
.p3-tag { color: var(--paper-dim); }
.plan3 ul { margin: 6px 0 4px; padding-left: 18px; color: var(--paper-dim); font-size: 0.94rem; display: grid; gap: 6px; }
.plan3.is-hl .p3-price small, .plan3.is-hl .p3-tag, .plan3.is-hl ul { color: rgba(255, 255, 255, 0.86); }
.p3-cta { margin-top: 8px; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.plan3.is-hl .p3-cta { text-decoration-color: var(--pink); }
.menu-note { margin: 28px 0 0; color: var(--paper-dim); }

/* last call */
.home .last { padding: clamp(80px, 10vw, 140px) 0; }
.last h2 { font-size: clamp(2.8rem, 6vw, 5.4rem); line-height: 1; max-width: 13ch; margin: 0 0 34px; color: #fff; }

@media (max-width: 1000px) {
  .promises ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ships-flow { grid-template-columns: minmax(0, 1fr); }
  .plans3 { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
}
@media (max-width: 900px) {
  .home .hero-grid, .truth, .how-grid, .proof-grid { grid-template-columns: minmax(0, 1fr); }
  .stage { min-height: 400px; }
  .stage-rig { width: min(100% - 40px, 340px); margin-right: 50px; }
  .price-tag { right: -44px; top: 26px; width: 132px; }
  .pt-body { height: 172px; }
  .pt-face { padding-top: 48px; }
  .pt-n { font-size: 3.6rem; }
  .pt-k { font-size: 0.7rem; white-space: normal; line-height: 1.15; }
  .hero-caption { text-align: left; }
  .rc-files { max-width: 58%; }
  .rc-branch { display: none; }
}
@media (max-width: 560px) {
  .promises ul { grid-template-columns: minmax(0, 1fr); }
  .repo-form { flex-wrap: wrap; padding: 8px; gap: 4px; }
  .repo-form-prefix { padding-left: 10px; }
  .repo-form .btn { width: 100%; justify-content: center; }
  .sh-bar { grid-template-columns: 104px minmax(0, 1fr) 34px; gap: 10px; }
  .sh-pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 440px) {
  .site-head .wrap { gap: 10px; }
  .brand { font-size: 1.24rem; gap: 7px; }
  .brand .mark { width: 30px; height: 30px; }
  .site-head .btn-sm { padding: 0 11px; }
}

/* Sign-up with a paid plan picked: what was chosen, what it costs, when the first charge happens. */
.picked-plan { border: 2px solid var(--lime); border-radius: 16px; padding: 16px 18px; margin: 18px 0 22px; background: linear-gradient(180deg, rgba(34, 56, 227, 0.06), var(--char) 70%); }
.picked-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.picked-head h2 { font-family: var(--display); font-size: 1.35rem; margin: 0; }
.picked-head b { font-size: 1.15rem; }
.picked-steps { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 0.88rem; color: var(--paper-dim); line-height: 1.45; }
.picked-steps b { color: var(--paper); }

/* Home: import methods and data note under the hero form; plan badge and terms shared with the pricing page. */
.hero-ways { margin: 16px 0 0; font-size: 0.93rem; color: var(--paper-dim); max-width: 50ch; }
.home .hero-ways { color: rgba(255, 255, 255, 0.9); }
.home .hero-ways b { color: #fff; font-weight: 600; }
.home .hero-note a { color: #fff; text-decoration-color: var(--pink); }
.plan3 { position: relative; }
.p3-badge { position: absolute; top: -12px; left: 26px; background: var(--pink); color: var(--navy); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.p3-terms { font-size: 0.82rem; color: var(--mute); margin-top: -2px; }
.plan3.is-hl .p3-terms { color: rgba(255, 255, 255, 0.86); }
.plan3 ul li.p3-incl { list-style: none; margin-left: -18px; font-weight: 600; color: var(--paper); }
.plan3.is-hl ul li.p3-incl { color: #fff; }
.guide-cta .repo-form { border: 1px solid var(--line-2); max-width: none; }
.guide-cta h3 { font-size: 1.25rem; }
/* Icons placed inline in a heading (e.g. "GitHub repositories", "What happens to your code") stay at text size. */
h1 > svg, h2 > svg, h3 > svg, h4 > svg { display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; margin-right: 0.35em; flex: none; }
.alert > svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }

/* Sample report (/sample-report): a real report laid out as a document, numbered sections, no decoration. */
.spl-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); max-width: 16ch; }
.spl-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--paper); border-bottom: 1px solid var(--line); }
.spl-summary > div { padding: 18px 18px 20px 0; display: grid; gap: 4px; align-content: start; }
.spl-summary > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.spl-k { font-size: 0.78rem; font-weight: 600; color: var(--mute); }
.spl-summary b { font-family: var(--display); font-size: 2.6rem; line-height: 1; font-weight: 400; }
.spl-summary b small { font-size: 1rem; color: var(--mute); font-family: var(--font); }
.spl-summary b.spl-text { font-size: 1.35rem; line-height: 1.2; }
.spl-s { font-size: 0.84rem; color: var(--paper-dim); }
.spl-section { margin-top: 72px; }
.spl-head { display: flex; align-items: baseline; gap: 14px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 20px; }
.spl-head h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0; }
.spl-n { font: 600 0.85rem/1 var(--font); color: var(--lime); font-variant-numeric: tabular-nums; }
.spl-intro { margin: -6px 0 18px; max-width: 62ch; }
.spl-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.spl-facts { display: grid; gap: 8px; margin: 18px 0 0; }
.spl-facts div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; font-size: 0.92rem; }
.spl-facts dt { color: var(--mute); }
.spl-facts dd { margin: 0; }
.spl-scores { display: grid; gap: 12px; }
.spl-score { display: grid; grid-template-columns: 150px 1fr 36px; align-items: center; gap: 12px; font-size: 0.9rem; }
.spl-score b { text-align: right; }
.spl-track { height: 6px; background: var(--char-3); border-radius: 3px; overflow: hidden; }
.spl-track i { display: block; height: 100%; width: var(--v); background: var(--lime); }
.spl-checks { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; }
.spl-checks li { break-inside: avoid; display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.spl-checks code { font-size: 0.78rem; color: var(--mute); background: none; padding: 0; overflow-wrap: anywhere; text-align: right; }
.spl-mark { font-weight: 800; color: var(--lime); }
.spl-checks .is-missing .spl-mark { color: var(--orange); }
.spl-drivers { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.spl-drivers li { display: grid; grid-template-columns: 48px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spl-drivers b { font-family: var(--display); font-size: 1.5rem; font-weight: 400; color: var(--lime); }
.spl-drivers p { margin: 2px 0 0; }
.spl-verdict p { margin: 6px 0 0; }
.spl-verdict .spl-k { margin: 0; font-size: 0.85rem; color: var(--lime); }
.spl-gap h3 { font-size: 1.15rem; }
.spl-gap p { margin: 8px 0 0; }
@media (max-width: 900px) { .spl-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } .spl-summary > div:nth-child(3) { padding-left: 0; border-left: 0; } .spl-grid { grid-template-columns: 1fr; gap: 24px; } .spl-checks { columns: 1; } .spl-drivers { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .spl-score { grid-template-columns: 120px 1fr 30px; } .spl-checks li { grid-template-columns: 20px 1fr; } .spl-checks code { grid-column: 2; text-align: left; } }

/* Home: three starting points, set as an editorial list rather than cards. */
.paths { margin-top: 120px; }
.paths h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 16ch; }
.paths-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 36px; border-top: 2px solid var(--paper); }
.paths-grid article { padding: 24px 28px 8px 0; display: flex; flex-direction: column; gap: 10px; }
.paths-grid article + article { padding-left: 28px; border-left: 1px solid var(--line); }
.paths-k { font-family: var(--display); font-size: 1.45rem; line-height: 1.2; margin: 0; }
.paths-grid p { margin: 0; color: var(--paper-dim); }
.paths-plan { font-size: 0.9rem; }
.paths-plan b { color: var(--paper); }
.paths-grid a { margin-top: auto; padding-top: 8px; font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.plans3.plans4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.plans4 .plan3 { padding: 26px 22px; }
.plans4 .p3-price { font-size: 2.9rem; }
@media (max-width: 1100px) { .plans3.plans4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; max-width: none; } }
@media (max-width: 860px) { .paths-grid { grid-template-columns: 1fr; } .paths-grid article, .paths-grid article + article { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); } }
@media (max-width: 600px) { .plans3.plans4 { grid-template-columns: minmax(0, 1fr); max-width: 520px; } }

/* Pricing: line under each button, price note, plan fit. */
.plan-action { display: grid; gap: 7px; }
.plan-micro { margin: 0; font-size: 0.74rem; color: var(--mute); text-align: center; }
.plans-note { text-align: center; margin: 14px auto 0; font-size: 0.82rem; color: var(--mute); max-width: 70ch; }
.fit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 28px; border-top: 2px solid var(--paper); }
.fit-grid article { padding: 20px 22px 4px 0; }
.fit-grid article + article { padding-left: 22px; border-left: 1px solid var(--line); }
.fit-grid h3 { font-family: var(--display); font-size: 1.35rem; margin: 0 0 12px; }
.fit-grid .is-hl h3 { color: var(--lime); }
.fit-grid p { margin: 0 0 12px; font-size: 0.9rem; color: var(--paper-dim); line-height: 1.5; }
.fit-k { display: block; font-size: 0.74rem; font-weight: 600; color: var(--mute); margin-bottom: 2px; }
@media (max-width: 1000px) { .fit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fit-grid article:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 600px) { .fit-grid { grid-template-columns: 1fr; } .fit-grid article, .fit-grid article + article { padding: 18px 0 6px; border-left: 0; border-bottom: 1px solid var(--line); } }
.compare .cmp-hint { display: block; font-size: 0.78rem; color: var(--mute); margin-top: 2px; line-height: 1.35; }

/* Project upload progress */
.upload-progress { display: grid; gap: 6px; margin: 4px 0 12px; }
.upload-bar { height: 6px; border-radius: 3px; background: var(--char-3); overflow: hidden; }
.upload-bar i { display: block; height: 100%; width: 0; background: var(--lime); transition: width 0.2s linear; }
.upload-progress p { margin: 0; }
.upload-progress.is-error .upload-bar { display: none; }
.upload-progress.is-error p { color: var(--orange); font-weight: 600; }

/* Admin › Traffic */
.tr-range { margin-bottom: 16px; }
.tr-alerts ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 0.9rem; }
.tr-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--paper); border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tr-kpis > div { padding: 14px 16px 16px; display: grid; gap: 3px; align-content: start; border-bottom: 1px solid var(--line); }
.tr-kpis > div:not(:nth-child(4n + 1)) { border-left: 1px solid var(--line); }
.tr-kpis > div:nth-last-child(-n + 4) { border-bottom: 0; }
.tr-k { font-size: 0.76rem; font-weight: 600; color: var(--mute); }
.tr-kpis b { font-family: var(--display); font-weight: 400; font-size: 2rem; line-height: 1.05; }
.tr-s { font-size: 0.78rem; color: var(--paper-dim); }
.tr-delta { font-size: 0.74rem; font-weight: 600; }
.tr-delta.is-up { color: #12805c; }
.tr-delta.is-down { color: var(--orange); }
.tr-panel { margin-bottom: 20px; }
.tr-grid2 { align-items: start; }
.tr-chart { margin: 8px 0 0; }
.tr-chart svg { width: 100%; height: auto; display: block; }
.tr-grid { stroke: var(--line); stroke-width: 1; }
.tr-axis { font-size: 11px; fill: var(--mute); font-family: var(--font); }
.tr-bar { fill: var(--pink); }
.tr-line { fill: none; stroke: var(--lime); stroke-width: 2.2; stroke-linejoin: round; }
.tr-line-mail { stroke: var(--mute); stroke-width: 1.5; stroke-dasharray: 4 4; }
.tr-hit { fill: transparent; }
.tr-legend { display: flex; gap: 18px; font-size: 0.78rem; color: var(--paper-dim); margin-top: 6px; }
.tr-legend i { display: inline-block; width: 12px; height: 3px; vertical-align: middle; margin-right: 6px; }
.tr-legend .k-vis { background: var(--lime); }
.tr-legend .k-sign { background: var(--pink); height: 10px; }
.tr-legend .k-mail { border-top: 2px dashed var(--mute); height: 0; }
.tr-table td { position: relative; }
.tr-barcell { position: absolute; left: 0; top: 4px; bottom: 4px; width: var(--w); background: rgba(34, 56, 227, 0.08); border-radius: 3px; z-index: 0; }
.tr-table td > :not(.tr-barcell) { position: relative; }
@media (max-width: 900px) { .tr-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tr-kpis > div:not(:nth-child(4n + 1)) { border-left: 0; } .tr-kpis > div:nth-child(even) { border-left: 1px solid var(--line); } }
