/* onworkers: a clean product site. Light by default, dark on request. Schibsted Grotesk / Inter / JetBrains Mono. */

:root {
  --bg: #FFFFFF; --bg-alt: #F6F7F9; --surface: #FFFFFF; --surface-2: #F3F4F6; --surface-3: #EBEDF0;
  --line: #E5E7EB; --line-2: #D5D9DF;
  --text: #0B0D12; --text-2: #4A5160; --text-3: #8A909B;
  --brand: #1F4FE0; --brand-2: #1A43C2; --brand-soft: #EEF2FE; --on-brand: #FFFFFF;
  --dark-btn: #0B0D12; --on-dark-btn: #FFFFFF;
  --ok: #15803D; --ok-bg: #EAF7EF; --ok-dot: #22C55E;
  --setup: #5B3FD6; --setup-bg: #F1EEFD; --setup-dot: #7C5CFA;
  --change: #A35A04; --change-bg: #FEF4E2; --change-dot: #F59E0B;
  --no: #C42323; --no-bg: #FDEDED; --no-dot: #EF4444;
  --unknown: #6B7280; --unknown-bg: #F1F2F4; --unknown-dot: #9CA3AF;
  --code-bg: #F7F8FA; --code-k: #1F4FE0; --code-s: #0F7A4A;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 20px -6px rgba(16, 24, 40, .1);
  --shadow-lg: 0 2px 4px rgba(16, 24, 40, .04), 0 24px 60px -18px rgba(16, 24, 40, .22);
  --head: "Schibsted Grotesk", "Inter", system-ui, sans-serif; --sans: "Inter", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
  --r: 14px; --r-lg: 20px; --nav-h: 64px; --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0A0C10; --bg-alt: #0E1116; --surface: #12151B; --surface-2: #181C24; --surface-3: #20252F;
  --line: #222833; --line-2: #2E3541;
  --text: #ECEEF2; --text-2: #A3AAB6; --text-3: #6C7480;
  --brand: #6D8CFF; --brand-2: #8AA2FF; --brand-soft: rgba(109, 140, 255, .12); --on-brand: #0A0C10;
  --dark-btn: #ECEEF2; --on-dark-btn: #0A0C10;
  --ok: #4ADE80; --ok-bg: rgba(74, 222, 128, .1); --ok-dot: #4ADE80;
  --setup: #A996FF; --setup-bg: rgba(169, 150, 255, .12); --setup-dot: #A996FF;
  --change: #FBBF24; --change-bg: rgba(251, 191, 36, .1); --change-dot: #FBBF24;
  --no: #F87171; --no-bg: rgba(248, 113, 113, .11); --no-dot: #F87171;
  --unknown: #9CA3AF; --unknown-bg: rgba(156, 163, 175, .1); --unknown-dot: #6B7280;
  --code-bg: #0E1116; --code-k: #8AA2FF; --code-s: #5EE0A0;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -8px rgba(0, 0, 0, .5);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 30px 70px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); background: var(--bg); }
body { font: 16px/1.6 var(--sans); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; transition: background-color .3s, color .3s; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
code, kbd { font-family: var(--mono); font-size: .86em; }
p code, h2 code, li code { padding: 1px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); }
h1, h2, h3 { font-family: var(--head); color: var(--text); letter-spacing: -.025em; }
h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.1; font-weight: 700; }
h2 code { font-size: .78em; font-weight: 500; letter-spacing: -.02em; }
h3 { font-size: 18px; font-weight: 650; letter-spacing: -.01em; line-height: 1.3; }
::selection { background: var(--brand-soft); color: var(--text); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; } ::-webkit-scrollbar-track { background: transparent; }
.ptabs, .ev-tabs { scrollbar-width: none; } .ptabs::-webkit-scrollbar { display: none; }
.muted { color: var(--text-3); font-size: 14px; }
.wrap { width: min(1200px, 100% - 48px); margin: 0 auto; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 10px; font: 600 15px var(--sans); white-space: nowrap; transition: background-color .2s, border-color .2s, transform .15s, box-shadow .2s, color .2s; }
.btn:active { transform: translateY(1px); }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15.5px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 1px 2px rgba(16, 24, 40, .1), inset 0 1px 0 rgba(255, 255, 255, .14); }
.btn-primary:hover { background: var(--brand-2); }
.btn-dark { background: var(--dark-btn); color: var(--on-dark-btn); }
.btn-dark:hover { opacity: .88; }
.btn-ghost { background: var(--surface); border: 1px solid var(--line-2); color: var(--text); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { background: var(--surface-2); }
.btn:disabled { opacity: .55; cursor: progress; }
.link-btn { font-size: 13.5px; color: var(--text-3); } .link-btn:hover { color: var(--text); }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; color: var(--text-2); transition: background-color .2s, color .2s; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.i-sun { display: none; } [data-theme="dark"] .i-sun { display: block; } [data-theme="dark"] .i-moon { display: none; }

/* pills + dots */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font: 600 12px var(--sans); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { color: var(--ok); background: var(--ok-bg); } .pill.setup { color: var(--setup); background: var(--setup-bg); }
.pill.change { color: var(--change); background: var(--change-bg); } .pill.no { color: var(--no); background: var(--no-bg); }
.pill.unknown { color: var(--unknown); background: var(--unknown-bg); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.ok { background: var(--ok-dot); } .dot.setup { background: var(--setup-dot); } .dot.change { background: var(--change-dot); } .dot.no { background: var(--no-dot); } .dot.unknown { background: var(--unknown-dot); }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px) saturate(160%); border-bottom: 1px solid transparent; transition: border-color .25s, background-color .3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 18px var(--head); letter-spacing: -.02em; }
.mark { width: 28px; height: 28px; }
.mark-bg { fill: var(--dark-btn); } .mark-ln { fill: var(--on-dark-btn); opacity: .92; }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--text-2); padding: 7px 11px; border-radius: 8px; transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active { color: var(--text); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-actions .btn { margin-left: 6px; }

/* sections */
.sec { padding: clamp(52px, 8vh, 84px) 0; }
.sec-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.sec-head { max-width: 760px; margin-bottom: clamp(24px, 4vh, 36px); }
.sec-head.row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.sec-head.row .sec-sub { max-width: 460px; margin: 0; }
.eyebrow { font: 600 13px var(--sans); color: var(--brand); margin-bottom: 10px; letter-spacing: .01em; }
.sec-sub { color: var(--text-2); margin-top: 14px; font-size: 16px; }
.sec-sub a { color: var(--brand); font-weight: 500; }

/* hero */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 70%); opacity: .55; }
.hero-in { position: relative; min-height: min(calc(100svh - var(--nav-h)), 820px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 56px; padding: 48px 0 64px; }
.badge { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-2); padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: border-color .2s; }
.badge:hover { border-color: var(--line-2); }
.badge-tag { font-weight: 600; font-size: 12px; color: var(--brand); background: var(--brand-soft); padding: 3px 9px; border-radius: 999px; }
.hero h1 { font-size: clamp(40px, 5.2vw, 66px); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; margin-top: 22px; max-width: 640px; }
.lead { font-size: clamp(16.5px, 1.35vw, 18.5px); color: var(--text-2); margin-top: 22px; max-width: 560px; line-height: 1.6; }
.lead code { color: var(--text); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.assure { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; font-size: 14px; color: var(--text-2); }
.assure li { display: inline-flex; align-items: center; gap: 7px; }
.assure li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316A34A' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 10px no-repeat; }

/* hero demo */
.hero-demo { position: relative; }
.preview { position: relative; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.pv-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.pv-dots { display: flex; gap: 6px; } .pv-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.pv-file { font: 500 13px var(--mono); color: var(--text-2); }
.pv-status { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-3); }
.pv-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok-dot); }
.pv-status.busy i { background: var(--brand); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.pv-list { list-style: none; padding: 8px; }
.pv-list li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px; padding: 9px 10px; border-radius: 10px; font: 500 14px var(--mono); transition: background-color .3s; }
.pv-list li .pv-ver { color: var(--text-3); font-size: 12.5px; }
.pv-list li .pill { min-width: 118px; justify-content: center; }
.pv-list li.pv-hot { background: var(--no-bg); }
.pv-list li .pill.checking { color: var(--text-3); background: var(--surface-2); }
.pv-list li .pill.checking::before { animation: blink .8s infinite; }
.pv-fix { margin: 0 16px 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); font-size: 14px; color: var(--text-2); }
.pv-fix-h { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; } .pv-fix-h b { font: 600 14px var(--mono); color: var(--text); }
.pv-do { margin-top: 6px; color: var(--text); }
.pv-fix { position: relative; }
.pv-fix.wait > * { visibility: hidden; }
.pv-fix.wait::after { content: ""; position: absolute; inset: 16px; border-radius: 6px; background: linear-gradient(var(--surface-3) 0 0) 0 0 / 30% 12px no-repeat, linear-gradient(var(--surface-3) 0 0) 0 24px / 85% 10px no-repeat, linear-gradient(var(--surface-3) 0 0) 0 46px / 65% 10px no-repeat; animation: blink 1.2s ease-in-out infinite; }
.pv-do span { font: 600 11px var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--brand); margin-right: 8px; }
.pv-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--line); }
.pv-bar { flex: 1; max-width: 220px; height: 8px; border-radius: 99px; display: flex; gap: 3px; overflow: hidden; background: var(--surface-3); }
.pv-bar i { width: var(--w); height: 100%; border-radius: 99px; }
.pv-bar .ok { background: var(--ok-dot); } .pv-bar .setup { background: var(--setup-dot); } .pv-bar .change { background: var(--change-dot); } .pv-bar .no { background: var(--no-dot); }
.pv-plan { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ok); }

/* how */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step { position: relative; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: box-shadow .3s, transform .3s var(--ease); }
.step:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.step-art { height: 148px; border-radius: 12px; background: var(--bg-alt); border: 1px solid var(--line); margin-bottom: 20px; display: grid; place-items: center; overflow: hidden; }
.step-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font: 700 13px var(--head); color: var(--brand); background: var(--brand-soft); margin-bottom: 12px; }
.step p { color: var(--text-2); font-size: 15px; margin-top: 6px; }
.code-mini, .file-mini { display: grid; gap: 6px; font: 500 12.5px var(--mono); color: var(--text-3); padding: 14px 18px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.code-mini b, .file-mini b { color: var(--code-k); font-weight: 500; }
.caret::after { content: ""; display: inline-block; width: 2px; height: 14px; margin-left: 2px; vertical-align: -2px; background: var(--brand); animation: blink 1s steps(1) infinite; }
.file-mini .fn { font-weight: 600; color: var(--text); border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 2px; }
.art-verdict { gap: 8px; align-content: center; }
.vrow { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 230px; padding: 7px 10px 7px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font: 500 13px var(--mono); box-shadow: var(--shadow-sm); }

/* scanner app */
.app { border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; height: clamp(480px, calc(100svh - var(--nav-h) - 236px), 700px); }
#scan { padding: clamp(40px, 6vh, 56px) 0; }
.app-input { display: grid; grid-template-columns: minmax(0, 1fr) 340px; height: 100%; }
.editor { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); }
.ed-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.tabs { position: relative; display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface-2); }
.tabs button { position: relative; z-index: 1; font: 500 13.5px var(--sans); padding: 6px 14px; border-radius: 8px; color: var(--text-2); transition: color .2s; }
.tabs button[aria-selected="true"] { color: var(--text); }
.tab-ind { position: absolute; top: 3px; bottom: 3px; left: 0; border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .35s var(--ease), width .35s var(--ease); }
.ed-body { position: relative; flex: 1; min-height: 0; background: var(--code-bg); }
.pane { height: 100%; }
.code-edit { display: grid; grid-template-columns: 46px minmax(0, 1fr); height: 100%; }
.gutter { font: 13px/1.75 var(--mono); color: var(--text-3); text-align: right; padding: 16px 12px 16px 0; border-right: 1px solid var(--line); overflow: hidden; user-select: none; white-space: pre; opacity: .8; }
textarea#pkg { width: 100%; height: 100%; resize: none; border: 0; outline: none; background: transparent; color: var(--text); font: 13px/1.75 var(--mono); padding: 16px; white-space: pre; overflow: auto; tab-size: 2; }
textarea#pkg::placeholder { color: var(--text-3); opacity: .7; }
.gh-pane { padding: 36px 32px; }
.gh-pane label { font-weight: 600; font-size: 14.5px; }
.gh-input { display: flex; align-items: center; gap: 10px; margin-top: 10px; height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-3); transition: border-color .2s, box-shadow .2s; }
.gh-input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.gh-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: 14.5px var(--mono); }
.gh-pane p { margin-top: 16px; font-size: 14px; color: var(--text-2); max-width: 600px; }
.scanning { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 22px; background: color-mix(in srgb, var(--code-bg) 88%, transparent); backdrop-filter: blur(3px); }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scan-steps { list-style: none; display: grid; gap: 8px; font-size: 14px; color: var(--text-3); min-width: 280px; }
.scan-steps li { display: flex; align-items: center; gap: 10px; transition: color .25s; }
.scan-steps li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; box-sizing: border-box; }
.scan-steps li.on { color: var(--text); } .scan-steps li.on::before { border-color: var(--brand); border-right-color: transparent; animation: spin .7s linear infinite; }
.scan-steps li.done { color: var(--text-2); } .scan-steps li.done::before { border: 0; background: var(--ok-dot) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 10px no-repeat; }
.ed-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); }
.hint { font-size: 13px; color: var(--text-3); }
kbd { padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--surface-2); font-size: 11.5px; color: var(--text-2); }
.samples-card { display: flex; flex-direction: column; padding: 22px; min-height: 0; overflow: auto; }
.samples-card > p { color: var(--text-2); font-size: 14px; margin-top: 4px; }
.samples { display: grid; gap: 8px; margin-top: 16px; }
.sample { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); transition: border-color .2s, background-color .2s, box-shadow .2s; }
.sample:hover { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.sample b { display: block; font-size: 14px; font-weight: 600; } .sample small { display: block; font-size: 12.5px; color: var(--text-3); margin-top: 1px; }
.sample svg { color: var(--text-3); flex: none; transition: transform .2s, color .2s; } .sample:hover svg { color: var(--brand); transform: translateX(2px); }
.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 18px; font-size: 13px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }

/* result */
.app-result { display: flex; flex-direction: column; height: 100%; }
.res-head { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.rtabs { display: flex; gap: 6px; } .rtabs:empty { display: none; }
.rtab { display: inline-flex; align-items: center; gap: 8px; font: 500 13px var(--mono); padding: 6px 11px; border-radius: 8px; color: var(--text-2); border: 1px solid var(--line); }
.rtab[aria-selected="true"] { color: var(--text); background: var(--surface-2); border-color: var(--line-2); }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.fchip { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--text-2); border: 1px solid var(--line); transition: all .2s; }
.fchip b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.fchip:hover { background: var(--surface-2); }
.fchip[aria-pressed="true"] { background: var(--dark-btn); color: var(--on-dark-btn); border-color: var(--dark-btn); } .fchip[aria-pressed="true"] b { color: var(--on-dark-btn); }
.res-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 280px minmax(0, 1fr) minmax(0, .95fr); }
.res-summary { padding: 22px; border-right: 1px solid var(--line); overflow: auto; }
.res-deps, .res-plan { min-height: 0; display: flex; flex-direction: column; }
.res-deps { border-right: 1px solid var(--line); }
.scroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
#deps { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.ring { position: relative; width: 168px; height: 168px; margin: 0 auto 18px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .c b { font: 800 46px/1 var(--head); letter-spacing: -.03em; }
.ring .c span { font-size: 12.5px; color: var(--text-3); margin-top: 4px; line-height: 1.35; }
.res-summary h3 { font-size: 19px; line-height: 1.3; margin-top: 12px; }
.res-summary .kind { font: 13px var(--mono); color: var(--text-2); margin-top: 10px; }
.res-summary .meta { font-size: 12.5px; color: var(--text-3); margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.counts { display: grid; gap: 6px; margin-top: 16px; }
.counts div { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); }
.counts b { margin-left: auto; color: var(--text); font-variant-numeric: tabular-nums; }
.dep { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.dep:hover { border-color: var(--line-2); }
.dep.open { box-shadow: var(--shadow); border-color: var(--line-2); }
.dep-h { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 11px 12px 11px 14px; text-align: left; }
.dep-h .nm { font: 600 13.5px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dep-h .nm small { font-weight: 400; color: var(--text-3); margin-left: 8px; }
.chev { color: var(--text-3); transition: transform .3s var(--ease); } .dep.open .chev { transform: rotate(180deg); }
.dep-b { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.dep.open .dep-b { grid-template-rows: 1fr; }
.dep-b > div { overflow: hidden; }
.dep-b .in { padding: 0 14px 14px; font-size: 14px; color: var(--text-2); }
.dep-b .fix { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--brand-soft); color: var(--text); }
.dep-b .fix span { font: 600 11px var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--brand); margin-right: 8px; }
.dep-b .src { font-size: 12.5px; color: var(--text-3); margin-top: 10px; }
.dep-b .src a { color: var(--brand); }
.okline { font-size: 13px; color: var(--text-2); padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line-2); line-height: 1.7; }
.okline b { color: var(--ok); font-weight: 600; }
.okline code { font-size: 12.5px; }
.ptabs { display: flex; gap: 2px; padding: 10px 12px 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.ptab { position: relative; font: 500 13px var(--sans); padding: 8px 10px 11px; color: var(--text-3); white-space: nowrap; }
.ptab:hover { color: var(--text); }
.ptab[aria-selected="true"] { color: var(--text); } .ptab[aria-selected="true"]::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--brand); }
.pbody { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.copy { position: absolute; top: 10px; right: 14px; z-index: 2; }
#pview pre { font: 12.5px/1.7 var(--mono); color: var(--text); background: var(--code-bg); padding: 16px 18px; white-space: pre; min-height: 100%; }
.timeline { list-style: none; counter-reset: s; padding: 18px 18px 8px; }
.timeline li { counter-increment: s; position: relative; padding: 0 0 18px 40px; font-size: 14px; color: var(--text-2); }
.timeline li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font: 700 12.5px var(--head); color: var(--brand); background: var(--brand-soft); }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 12.5px; top: 30px; bottom: 4px; width: 1px; background: var(--line-2); }
#ann-note { font-size: 12.5px; color: var(--text-3); padding: 0 18px 16px; }

/* verdicts */
.vgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.vcard { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.vcard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; }
.vcard[data-v="ok"]::before { background: var(--ok-dot); } .vcard[data-v="setup"]::before { background: var(--setup-dot); } .vcard[data-v="change"]::before { background: var(--change-dot); } .vcard[data-v="no"]::before { background: var(--no-dot); }
.vcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.vcard .pill { align-self: start; }
.vcard p { font-size: 14.5px; color: var(--text-2); }
.eg { display: flex; flex-wrap: wrap; gap: 6px; }
.eg code { font-size: 12px; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); }
.vcard .todo { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; font-weight: 500; color: var(--text); }
.decide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; align-items: center; margin-top: 20px; padding: 22px 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.decide p { color: var(--text-2); font-size: 14.5px; margin-top: 4px; }
.signals { display: flex; flex-wrap: wrap; gap: 6px; }
.signals span { font: 500 12.5px var(--mono); padding: 5px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); }

/* results */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); margin-bottom: 16px; }
.stat { padding: 16px 20px; } .stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font: 800 32px/1 var(--head); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat > span { display: block; font-size: 13.5px; color: var(--text-2); margin-top: 6px; }
.stat em { font-style: normal; font-weight: 600; color: var(--text); }
.ev-layout { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 20px; align-items: stretch; }
.ev-left { display: flex; flex-direction: column; gap: 14px; }
.ev-left .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.ev-left .stat:nth-child(3) { border-left: 0; } .ev-left .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
.ev-left .caveat { margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.ev-panel { padding: 0; position: relative; }
.ev-tabs { display: flex; gap: 4px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.ev-tabs button { position: relative; padding: 14px 10px 13px; font: 600 15px var(--head); color: var(--text-3); letter-spacing: -.01em; }
.ev-tabs button span { font: 500 12.5px var(--sans); color: var(--text-3); margin-left: 6px; }
.ev-tabs button[aria-selected="true"] { color: var(--text); }
.ev-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--brand); }
.ev-pane { padding: 8px 20px 18px; }
.mlegend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: 13px; color: var(--text-2); }
.mlegend span { display: inline-flex; align-items: center; gap: 7px; } .mlegend .muted { margin-left: auto; font-size: 12.5px; }
.panel { padding: 16px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.panel-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.panel-h .muted { font-size: 13px; text-align: right; }
.api-table { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; }
.api-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.api-row .id { font: 600 13px var(--mono); }
.api-row .sw { display: flex; flex-wrap: wrap; gap: 5px; }
.api-row .sw code { font-size: 12px; padding: 2px 7px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); }
.api-row .sw .none { color: var(--text-3); font-size: 13px; }
.api-row .hit { font-size: 12.5px; font-weight: 600; color: var(--ok); white-space: nowrap; }
.matrix { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.cell { aspect-ratio: 2.3; border-radius: 9px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface-2); cursor: default; transition: transform .2s var(--ease), border-color .2s; }
.cell:hover { transform: translateY(-2px); border-color: var(--line-2); }
.cell i { width: 10px; height: 10px; border-radius: 50%; }
.cell.ok i { background: var(--ok-dot); } .cell.setup i { background: var(--setup-dot); } .cell.change i { background: var(--change-dot); } .cell.no i { background: var(--no-dot); } .cell.unknown i { background: var(--unknown-dot); }
.tip { position: fixed; z-index: 60; pointer-events: none; font-size: 13px; padding: 8px 11px; border-radius: 10px; background: var(--dark-btn); color: var(--on-dark-btn); box-shadow: var(--shadow); max-width: 280px; line-height: 1.5; }
.caveat { font-size: 13.5px; color: var(--text-2); line-height: 1.55; }
.caveat b { color: var(--text); }

/* faq */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 14px; background: var(--surface); border: 1px solid var(--line); transition: box-shadow .2s, border-color .2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; font: 600 16px var(--head); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px/1 var(--sans); color: var(--text-3); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 18px 16px; color: var(--text-2); font-size: 15px; }

/* hire */
.hire { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: center; padding: 48px; border-radius: 24px; background: var(--dark-btn); color: var(--on-dark-btn); position: relative; overflow: hidden; }
.hire::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(color-mix(in srgb, var(--on-dark-btn) 7%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--on-dark-btn) 7%, transparent) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(ellipse at 100% 0%, #000, transparent 65%); pointer-events: none; }
.hire h2 { color: var(--on-dark-btn); max-width: 620px; }
.hire .eyebrow { color: color-mix(in srgb, var(--brand) 60%, var(--on-dark-btn)); }
[data-theme="dark"] .hire .eyebrow { color: var(--brand-2); }
[data-theme="dark"] .hire { --dark-btn: #121A33; --on-dark-btn: #ECEEF2; background: linear-gradient(135deg, #18245A 0%, #111830 45%, #0E121C 100%); border: 1px solid var(--line-2); }
.hire-copy > p:not(.eyebrow) { margin-top: 16px; max-width: 560px; color: color-mix(in srgb, var(--on-dark-btn) 72%, transparent); }
.hire .btn-ghost { background: transparent; color: var(--on-dark-btn); border-color: color-mix(in srgb, var(--on-dark-btn) 25%, transparent); box-shadow: none; }
.hire .btn-ghost:hover { background: color-mix(in srgb, var(--on-dark-btn) 10%, transparent); }
.hire-list { list-style: none; display: grid; gap: 12px; position: relative; }
.hire-list li { padding: 16px 18px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--on-dark-btn) 14%, transparent); background: color-mix(in srgb, var(--on-dark-btn) 4%, transparent); }
.hire-list b { display: block; font: 600 15.5px var(--head); }
.hire-list span { font-size: 14px; color: color-mix(in srgb, var(--on-dark-btn) 65%, transparent); }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0; }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot .brand { font-size: 16px; } .foot .mark { width: 24px; height: 24px; }
.foot-links { display: flex; gap: 18px; font-size: 14px; color: var(--text-2); } .foot-links a:hover { color: var(--text); }

/* nudge + toast */
.nudge { position: fixed; right: 20px; bottom: 20px; z-index: 70; width: 320px; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: rise .5s var(--ease); }
.nudge b { font: 700 16px var(--head); }
.nudge p { font-size: 14px; color: var(--text-2); margin-top: 4px; }
.nudge-a { display: flex; gap: 8px; margin-top: 14px; }
.nudge-x { position: absolute; top: 8px; right: 10px; width: 28px; height: 28px; border-radius: 8px; font-size: 18px; color: var(--text-3); }
.nudge-x:hover { background: var(--surface-2); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.toast { position: fixed; bottom: 24px; left: 50%; z-index: 80; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; font-size: 14px; font-weight: 500; padding: 10px 16px; border-radius: 10px; background: var(--dark-btn); color: var(--on-dark-btn); box-shadow: var(--shadow-lg); transition: all .3s var(--ease); }
.toast.on { transform: translate(-50%, 0); opacity: 1; }

/* theme switch animation */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* responsive */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .res-grid { grid-template-columns: 240px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
  .res-summary { grid-row: 1 / 3; }
  .res-deps { border-right: 0; border-bottom: 1px solid var(--line); }
  .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 40px; padding: 40px 0 56px; }
  .sec { padding: 64px 0; }
  .sec-head.row { display: block; } .sec-head.row .sec-sub { margin-top: 12px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step { display: grid; grid-template-columns: 120px minmax(0, 1fr); column-gap: 18px; align-items: start; }
  .step-art { grid-row: 1 / 4; height: 100%; min-height: 120px; margin: 0; }
  .step-art > * { transform: scale(.62); }
  .app { height: auto; }
  .app-input { grid-template-columns: minmax(0, 1fr); }
  .editor { border-right: 0; border-bottom: 1px solid var(--line); }
  .ed-body { height: 360px; flex: none; }
  .res-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .res-summary { grid-row: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .res-deps .scroll { max-height: 480px; } .res-plan .scroll { max-height: 440px; }
  .filters { margin-left: 0; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ev-layout, .faq-grid, .hire, .decide { grid-template-columns: minmax(0, 1fr); }
  .faq-grid { gap: 8px; }
  .hire { padding: 32px 24px; gap: 28px; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .nav-actions .btn { display: none; }
  .hero h1 { font-size: 38px; }
  .hero-cta .btn { flex: 1; }
  .pv-list li { grid-template-columns: minmax(0, 1fr) auto; } .pv-list li .pv-ver { display: none; } .pv-list li .pill { min-width: 0; }
  .pv-foot { flex-direction: column; align-items: stretch; } .pv-bar { max-width: none; }
  .vgrid { grid-template-columns: minmax(0, 1fr); }
  .step { display: block; } .step-art { height: 128px; margin-bottom: 16px; } .step-art > * { transform: none; }
  .api-table { grid-template-columns: minmax(0, 1fr); }
  .api-row { grid-template-columns: 56px minmax(0, 1fr); } .api-row .hit { grid-column: 2; }
  .hint { display: none; } .ed-foot .btn { flex: 1; }
  .nudge { left: 16px; right: 16px; width: auto; bottom: 16px; }
  .stat b { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}
