/* ════════════════════════════════════════════════════════════════
   CodexWinBar — site styles
   1. tokens & base      5. widget + taskbar rail (reconstruction)
   2. header & buttons   6. sections
   3. hero stage         7. motion
   4. flyout (recon.)    8. responsive
   ════════════════════════════════════════════════════════════════ */

/* ── 1. tokens & base ─────────────────────────────────────────── */
:root {
  --ink: #0f1319;
  --ink-2: #4a545f;
  --ink-3: #77828e;
  --paper: #f1f4f7;
  --surface: #ffffff;
  --hairline: #dbe1e8;
  --rule: #c3ccd6;

  --night: #070b10;
  --night-2: #0d141c;
  --night-line: #1f2b37;
  --night-ink: #eef3f8;
  --night-muted: #9dabb9;

  --blue: #2f8bff;
  --blue-soft: #6fb4ff;
  --claude: #d97757;
  --pace-under: #2f8f52;
  --pace-over: #c9483b;
  --amber: #e8a33d;

  --shell: 1280px;
  --r-sm: 6px;
  --r: 10px;

  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--paper);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; transform: translateY(-160%); padding: 10px 14px; border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font-weight: 700; }
.skip-link:focus { transform: none; }
:focus-visible { outline: 2px solid var(--blue-soft); outline-offset: 3px; }

/* ── 2. header & buttons ──────────────────────────────────────── */
.site-header { position: absolute; inset: 0 0 auto; z-index: 30; color: var(--night-ink); }
.header-inner { min-height: 74px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 34px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: "Segoe UI Variable Display", "Segoe UI", sans-serif; font-size: 15px; font-weight: 740; letter-spacing: -0.02em; text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.primary-nav { justify-self: end; display: flex; align-items: center; gap: 26px; font-size: 13px; color: #c1cad3; }
.primary-nav a { text-decoration: none; padding-block: 4px; transition: color 150ms ease; }
.primary-nav a:hover { color: #fff; }

.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--r-sm); font-size: 14px; font-weight: 700; text-decoration: none; transition: transform 150ms ease, background 150ms ease, border-color 150ms ease; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: none; }
.button-primary { background: var(--blue); color: #04101f; }
.button-primary:hover { background: #55a3ff; }
.button-dark { color: var(--night-ink); border-color: #46525f; background: rgba(255, 255, 255, 0.03); }
.button-dark:hover { border-color: #7b8998; background: rgba(255, 255, 255, 0.07); }
.button-light { color: var(--ink); border-color: var(--rule); background: transparent; }
.button-light:hover { border-color: #8d99a5; }
.button-small { min-height: 36px; padding-inline: 14px; font-size: 13px; }

/* ── 3. hero + exploded stage ─────────────────────────────────── */
.hero { position: relative; min-height: 760px; padding: 124px 0 96px; overflow-x: clip; overflow-y: visible; background: var(--night); color: var(--night-ink); }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto -20%; height: 620px; background: radial-gradient(60% 60% at 30% 40%, rgba(47, 139, 255, 0.16), transparent 70%); pointer-events: none; }
.hero-layout { position: relative; display: grid; grid-template-columns: minmax(360px, 440px) 840px; justify-content: space-between; gap: 44px; align-items: center; }
.hero-copy { padding-bottom: 18px; }
.kicker, .eyebrow { margin: 0 0 18px; color: var(--blue-soft); font: 700 11px/1.2 "Cascadia Mono", "SFMono-Regular", Consolas, monospace; letter-spacing: 0.12em; text-transform: uppercase; }
.kicker span { margin: 0 8px; color: #5c6875; }
h1, h2 { margin: 0; font-family: "Segoe UI Variable Display", "Segoe UI", sans-serif; letter-spacing: -0.045em; }
.hero h1 { max-width: 12ch; font-size: clamp(48px, 4.6vw, 72px); line-height: 0.97; font-weight: 760; }
.hero h1 em { color: var(--blue-soft); font-style: normal; }
.hero-lead { max-width: 46ch; margin: 26px 0 22px; color: #bbc6d1; font-size: 17px; line-height: 1.6; }
.hero-trust { display: grid; gap: 7px; margin: 0 0 28px; padding: 0; list-style: none; color: #d5dde5; font-size: 13px; }
.hero-trust li::before { content: "✓"; margin-right: 9px; color: var(--blue-soft); font-weight: 800; }

.hero-stage { margin: 0; position: relative; width: 840px; min-width: 840px; height: 500px; }
.stage-frame { position: relative; width: 840px; min-width: 840px; height: 500px; }
.stage { position: absolute; inset: 0; width: 840px; height: 500px; transform: none; }
.hero-stage figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* dimension marks */
.dim { position: absolute; color: #8d9aa8; font: 10px/1 "Cascadia Mono", Consolas, monospace; }
.dim::before, .dim::after { content: ""; position: absolute; background: #5c6b7a; }
.dim-flyout, .dim-rail { width: 1px; border-left: 1px solid #55636f; }
.dim-flyout::before, .dim-flyout::after, .dim-rail::before, .dim-rail::after { left: -4px; width: 9px; height: 1px; }
.dim-flyout::before, .dim-rail::before { top: 0; }
.dim-flyout::after, .dim-rail::after { bottom: 0; }
.dim-flyout span, .dim-rail span { position: absolute; top: 50%; right: 12px; transform: translateY(-50%) rotate(-90deg); white-space: nowrap; }
.dim-flyout { left: 48px; top: 6px; height: 302px; }
.dim-rail { left: 0; top: 330px; height: 48px; }
.dim-widget { left: 16px; top: 400px; width: 234px; height: 1px; border-top: 1px solid #55636f; }
.dim-widget::before, .dim-widget::after { top: -4px; width: 1px; height: 9px; }
.dim-widget::before { left: 0; }
.dim-widget::after { right: 0; }
.dim-widget span { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); }

.stage-flyout { position: absolute; left: 76px; top: 6px; width: 348px; z-index: 4; }
.flyout-tail { position: absolute; left: 115px; top: 100%; width: 22px; height: 12px; background: #f3f3f3; border: 1px solid #d5d5d5; border-top: 0; clip-path: polygon(0 0, 100% 0, 50% 100%); filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.18)); }
.stage-rail { position: absolute; left: 8px; top: 330px; width: 560px; z-index: 2; }

/* leaders */
.lead { position: absolute; z-index: 5; }
.lead::before { content: ""; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-soft); box-shadow: 0 0 0 3px rgba(47, 139, 255, 0.22); }
.lead-3 { left: 424px; top: 100px; width: 198px; border-top: 1px solid #5f6d7b; }
.lead-3::before { left: -3px; top: -3px; }
.lead-2 { left: 250px; top: 300px; width: 348px; height: 54px; border-right: 1px solid #5f6d7b; border-bottom: 1px solid #5f6d7b; }
.lead-2::before { left: -3px; bottom: -3px; }
.lead-2::after { content: ""; position: absolute; left: 100%; top: 0; width: 24px; border-top: 1px solid #5f6d7b; }
.lead-1 { left: 520px; top: 378px; width: 102px; height: 62px; border-left: 1px solid #5f6d7b; border-bottom: 1px solid #5f6d7b; }
.lead-1::before { left: -3px; top: -3px; }

.stage-notes { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; z-index: 6; pointer-events: none; }
.note { position: absolute; left: 622px; display: grid; grid-template-columns: 24px 1fr; align-items: start; gap: 12px; width: 176px; color: #9fadbb; font: 10px/1.45 "Cascadia Mono", Consolas, monospace; }
.note b { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid #8794a2; border-radius: 50%; color: #fff; font-size: 11px; }
.note strong { display: block; margin-bottom: 5px; color: #fff; font-size: 10px; letter-spacing: 0.09em; text-transform: uppercase; }
.note-3 { top: 88px; }
.note-2 { top: 288px; }
.note-1 { top: 428px; }

/* ── 4. flyout reconstruction ─────────────────────────────────── */
.flyout {
  width: 348px; height: 297px; max-width: 100%;
  display: flex; flex-direction: column;
  border: 1px solid #d5d5d5; border-radius: 10px;
  background: #f3f3f3; color: #1a1a1a;
  font-size: 12px; line-height: 1.35;
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.34), 0 2px 8px rgba(0, 0, 0, 0.16);
}
.section-light .flyout { box-shadow: 0 18px 44px rgba(15, 25, 38, 0.16), 0 1px 3px rgba(15, 25, 38, 0.1); }
.flyout-body { flex: 1; min-height: 0; margin: 12px; padding: 12px 12px 8px; border-radius: 9px; background: #fff; }

.fl-head { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.fl-logo { width: 18px; height: 18px; }
.fl-name { font-size: 14px; font-weight: 640; letter-spacing: -0.01em; }
.fl-plan { margin-left: auto; color: #6b6b6b; font-size: 12px; }

.fl-row { display: grid; grid-template-columns: 64px 137px 1fr; column-gap: 10px; row-gap: 3px; align-items: center; padding: 8px 0 7px; }
.fl-label { grid-column: 1; grid-row: 1 / span 2; align-self: center; font-size: 12px; font-weight: 400; }
.fl-meter { grid-column: 2; grid-row: 1; width: 137px; height: 6px; border-radius: 3px; background: #d7d7d7; overflow: hidden; }
.fl-meter i { display: block; width: var(--v); height: 100%; min-width: 3px; border-radius: 3px; background: var(--claude); }
.fl-pct { grid-column: 3; grid-row: 1; justify-self: end; text-align: right; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fl-sub { grid-column: 2; grid-row: 2; justify-self: end; color: #767676; font-size: 11px; white-space: nowrap; }
.fl-pace { grid-column: 3; grid-row: 2; justify-self: end; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-variant-numeric: tabular-nums; }
.fl-pace.is-under { color: var(--pace-under); }
.fl-pace.is-over { color: var(--pace-over); }
.fl-pace .glyph { font-size: 9px; line-height: 1; }
.fl-pace.is-under .glyph { width: 9px; height: 2px; border-radius: 1px; background: currentColor; }

.fl-row-credits { grid-template-columns: 64px 1fr; padding: 6px 0 4px; }
.fl-credits { grid-column: 2; grid-row: 1; justify-self: end; text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; }
.fl-updated { margin: 4px 0 2px; color: #7c7f95; font-size: 11px; }

.fl-actions { flex: 0 0 51px; height: 51px; display: flex; align-items: center; gap: 2px; padding: 0 10px; background: #f3f3f3; }
.fl-actions-spacer { flex: 1; }
.fl-btn { width: 30px; height: 26px; display: grid; place-items: center; border-radius: 4px; color: #3d3d3d; }
.fl-btn svg { width: 15px; height: 15px; }

/* ── 5. widget seated in the Windows 11 taskbar rail ──────────── */
.taskbar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 48px; min-height: 48px; padding: 0 6px;
  background: rgba(222, 224, 228, 0.92);
  color: #1b1b1b;
}
.stage-rail .taskbar { border: 1px solid #b6bbc2; border-radius: 8px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.36); }
.stage-rail .widget-full { gap: 22px; padding-inline: 0; }
.tb-slot { display: flex; align-items: center; gap: 4px; min-width: 0; }
.tb-slot-center { justify-content: center; gap: 6px; }
.tb-slot-tray { justify-content: flex-end; gap: 8px; padding-right: 6px; }

.tb-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 5px; color: #262626; }
.tb-icon svg { width: 19px; height: 19px; }
.tb-icon-sm svg { width: 17px; height: 17px; }
.tb-start { display: grid; grid-template-columns: 8px 8px; grid-template-rows: 8px 8px; gap: 2px; place-content: center; }
.tb-start i { display: block; width: 8px; height: 8px; background: #0f7ad6; }
.tb-app { position: relative; background: rgba(255, 255, 255, 0.55); }
.tb-app::after { content: ""; position: absolute; bottom: 2px; left: 50%; width: 12px; height: 3px; border-radius: 2px; background: #0f7ad6; transform: translateX(-50%); }
.tb-tray-chev { color: #303030; font-size: 12px; }
.tb-clock { display: grid; line-height: 1.25; color: #1e1e1e; font-size: 11px; text-align: right; font-variant-numeric: tabular-nums; }

.widget { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 8px; background: none; border: 0; border-radius: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; }
.chip img { width: 16px; height: 16px; }
.chip-text { font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chip-sep { width: 1px; height: 18px; background: rgba(0, 0, 0, 0.16); }
.chip-mini { display: grid; gap: 3px; width: 22px; }
.mini { display: block; width: var(--v); height: 3px; min-width: 2px; border-radius: 2px; background: var(--claude); box-shadow: 0 0 0 0 transparent; }
.chip-mini { position: relative; }
.chip-mini::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.14) 0 3px, transparent 3px 6px); border-radius: 2px; opacity: 0.55; }
.mini { position: relative; z-index: 1; }
.mini-ink { background: #3b3b3b; }
.chip-trend { font-size: 9px; line-height: 1; }
.chip-trend.is-over { color: var(--pace-over); }
.chip-trend.is-under { width: 9px; height: 2px; border-radius: 1px; background: var(--pace-under); }
.chip-compact { gap: 5px; }

/* ── 6. sections ──────────────────────────────────────────────── */
.section { padding-block: clamp(72px, 9vw, 128px); }
.section-light { background: var(--paper); }
.section-dark { background: var(--night); color: var(--night-ink); }
.section-dark .eyebrow { color: var(--blue-soft); }

.section-head { max-width: 1080px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(36px, 4.1vw, 60px); line-height: 1.01; font-weight: 740; }
.lede { max-width: 54ch; margin: 24px 0 0; color: var(--ink-2); font-size: 17px; }
.section-dark .lede { color: var(--night-muted); }
.section-head-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 460px); gap: 24px 70px; align-items: end; max-width: none; }
.section-head-row .lede { margin: 0; }
.section-head-wide { max-width: none; }

/* density */
.density-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.density-card { margin: 0; padding: 0; }
.density-card figcaption { display: grid; gap: 3px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); margin-bottom: 18px; }
.density-card figcaption b { font: 700 11px/1.3 "Cascadia Mono", Consolas, monospace; letter-spacing: 0.1em; text-transform: uppercase; }
.density-card figcaption span { color: var(--ink-3); font-size: 13px; }
.rail-mini { overflow: hidden; border: 1px solid #b9bec6; border-radius: 8px; box-shadow: 0 14px 30px rgba(15, 25, 38, 0.12); }
.taskbar-mini { grid-template-columns: 1fr auto; padding-right: 10px; }
.density-foot { max-width: 62ch; margin: 46px 0 0; color: var(--ink-2); font-size: 15px; }

/* anatomy */
.anatomy-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 46px; align-items: center; }
.anatomy-piece { display: grid; justify-items: center; }
.anno { margin: 0; padding: 0; list-style: none; display: grid; gap: 30px; }
.anno li { position: relative; }
.anno b { display: block; font-size: 14px; color: var(--night-ink); }
.anno span { display: block; margin-top: 4px; color: var(--night-muted); font-size: 13px; }
.anno-left { text-align: right; }
.anno-left li { padding-right: 30px; }
.anno-right li { padding-left: 30px; }
.anno li::after { content: ""; position: absolute; top: 10px; width: 22px; border-top: 1px dashed #4a5a6a; }
.anno-left li::after { right: 0; }
.anno-right li::after { left: 0; }

.reset-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 64px 0 0; border-top: 1px solid var(--night-line); }
.reset-notes > div { padding: 22px 26px 0 0; border-right: 1px solid var(--night-line); }
.reset-notes > div:last-child { border-right: 0; }
.reset-notes dt { font: 700 11px/1.4 "Cascadia Mono", Consolas, monospace; letter-spacing: 0.09em; text-transform: uppercase; color: var(--blue-soft); }
.reset-notes dd { margin: 10px 0 0; color: var(--night-muted); font-size: 14px; }

/* providers */
.provider-table-wrap { overflow-x: auto; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.provider-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14px; }
.provider-table th, .provider-table td { padding: 15px 14px; border-bottom: 1px solid var(--hairline); text-align: left; vertical-align: middle; }
.provider-table thead th { color: var(--ink-3); font: 700 10px/1.3 "Cascadia Mono", Consolas, monospace; letter-spacing: 0.1em; text-transform: uppercase; }
.provider-table tbody tr:last-child > * { border-bottom: 0; }
.provider-table tbody th { display: flex; align-items: center; gap: 11px; font-weight: 700; }
.provider-table tbody th img { width: 22px; height: 22px; object-fit: contain; }
.provider-table tbody td { color: var(--ink-2); }
.dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #33a86a; }
.dot-warn { background: var(--amber); }
.fine-print { margin: 18px 0 0; color: var(--ink-3); font-size: 12px; max-width: 80ch; }

/* settings & notifications */
.controls-layout { display: grid; grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr); gap: 70px; align-items: center; }
.signal-list { margin: 34px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--night-line); }
.signal-list li { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--night-line); }
.signal-list strong { font-size: 13px; }
.signal-list span { color: var(--night-muted); font-size: 13px; }

.settings-panel { display: grid; grid-template-columns: 168px 1fr; overflow: hidden; border: 1px solid #d4d4d4; border-radius: 10px; background: #fbfbfb; color: #1c1c1c; box-shadow: 0 30px 66px rgba(0, 0, 0, 0.4); }
.sp-side { display: grid; align-content: start; gap: 2px; padding: 16px 10px; background: #f0f1f3; border-right: 1px solid #e2e3e6; }
.sp-tab { padding: 8px 12px; border-radius: 5px; color: #3d3d3d; font-size: 13px; }
.sp-tab.is-active { background: #e2e4e8; font-weight: 640; }
.sp-main { padding: 18px 20px 20px; }
.sp-title { margin: 0 0 14px; font-size: 15px; font-weight: 660; }
.sp-rows { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.sp-rows li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid #e6e6e6; border-radius: 7px; background: #fff; }
.sp-rows li.is-nested { margin-left: 26px; background: #f7f7f7; }
.sp-rows b { display: block; font-size: 13px; font-weight: 620; }
.sp-rows small { display: block; margin-top: 2px; color: #6d6d6d; font-size: 11.5px; }
.sp-state { min-width: 24px; color: #4b4b4b; font-size: 12px; text-align: right; order: -1; }
.sw { width: 38px; height: 20px; border-radius: 10px; background: #cfd0d3; position: relative; }
.sw::after { content: ""; position: absolute; top: 4px; left: 5px; width: 12px; height: 12px; border-radius: 50%; background: #5c5c5c; }
.sw[data-state="on"] { background: #0f7ad6; }
.sw[data-state="on"]::after { left: 21px; background: #fff; }
.sp-select { display: inline-flex; align-items: center; gap: 10px; padding: 5px 10px; border: 1px solid #d2d2d2; border-radius: 5px; background: #fdfdfd; font-size: 12px; }
.sp-select i { font-style: normal; color: #666; }
.sp-pill { padding: 5px 12px; border-radius: 5px; background: #1d1d1d; color: #fff; font-size: 12px; font-weight: 600; }

/* privacy */
.network-map { display: grid; grid-template-columns: minmax(220px, 1fr) 190px minmax(240px, 1.35fr); align-items: stretch; gap: 18px; }
.net-node { display: flex; align-items: center; gap: 16px; min-height: 150px; padding: 24px; border: 1px solid var(--rule); border-radius: var(--r); background: rgba(255, 255, 255, 0.72); }
.net-node span { display: flex; flex-direction: column; color: var(--ink-3); font-size: 12px; }
.net-node b { color: var(--ink); font-size: 15px; }
.net-node-wide { display: grid; align-content: center; }
.net-logos { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.net-logos img { width: 24px; height: 24px; object-fit: contain; }
.net-path { display: grid; align-content: center; justify-items: center; gap: 8px; color: var(--ink-3); font: 10px/1.4 "Cascadia Mono", Consolas, monospace; text-align: center; }
.net-path i { position: relative; width: 100%; border-top: 1px dashed #8c98a5; }
.net-path i::after { content: ""; position: absolute; right: -1px; top: -4px; border: 4px solid transparent; border-left-color: #8c98a5; }
.privacy-links { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 40px; border-top: 1px solid var(--rule); }
.privacy-links a { display: flex; justify-content: space-between; gap: 12px; padding: 18px 20px 0 0; color: var(--ink-2); font-size: 13px; text-decoration: none; }
.privacy-links a:hover { color: #0b62c9; }

/* install */
.command-panel { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; min-height: 88px; padding: 16px 18px; border: 1px solid #34404c; border-radius: 9px; background: var(--night-2); }
.command-shell { align-self: stretch; display: grid; place-items: center; padding-right: 18px; border-right: 1px solid #2d3944; color: var(--blue-soft); font: 700 12px/1 "Cascadia Mono", Consolas, monospace; }
.command-panel code { overflow-x: auto; color: #e9eef4; font: 15px/1.5 "Cascadia Mono", Consolas, monospace; white-space: nowrap; }
.copy-button { min-height: 38px; padding: 0 15px; border: 1px solid #4e5d6d; border-radius: 5px; background: transparent; color: #f2f5f8; cursor: pointer; transition: background 150ms ease, border-color 150ms ease; }
.copy-button:hover { border-color: #7e8d9e; background: #1a232d; }
.live-status { min-height: 1.3em; margin-top: 10px; color: var(--blue-soft); font-size: 12px; }
.install-links { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); margin-top: 24px; border-top: 1px solid var(--night-line); }
.install-links a { min-height: 104px; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 18px 22px; border-right: 1px solid var(--night-line); text-decoration: none; transition: background 150ms ease; }
.install-links a:last-child { border-right: 0; }
.install-links a:hover { background: var(--night-2); }
.install-links strong { font-size: 14px; }
.install-links span { color: var(--night-muted); font-size: 12px; }
.install-links .inspect-link strong { color: var(--blue-soft); }
.smart-screen { max-width: 78ch; margin: 30px 0 0; color: var(--night-muted); font-size: 13px; }
.smart-screen strong { color: #e6edf3; }

/* open source */
.source-layout { display: grid; grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr); gap: 80px; align-items: center; }
.source-copy .lede a { color: #0b62c9; }
.source-copy .button-row { margin-top: 28px; }
.source-facts { margin: 0; border-top: 1px solid var(--rule); }
.source-facts div { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 17px 0; border-bottom: 1px solid var(--hairline); }
.source-facts dt { color: var(--ink-3); font: 700 11px/1.6 "Cascadia Mono", Consolas, monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.source-facts dd { margin: 0; font-weight: 640; }

/* closing */
.closing { background: var(--night); color: var(--night-ink); overflow: hidden; }
.closing-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 60px; padding-block: clamp(72px, 9vw, 118px) clamp(60px, 7vw, 96px); }
.closing h2 { max-width: 18ch; font-size: clamp(38px, 4.4vw, 64px); line-height: 1; font-weight: 750; }
.closing p:not(.eyebrow) { max-width: 46ch; margin: 20px 0 0; color: var(--night-muted); }
.closing-rail { border-top: 1px solid #2a3542; }
.closing-rail .taskbar { width: min(1280px, 100%); margin-inline: auto; }

/* footer */
.site-footer { padding-block: 30px; border-top: 1px solid var(--hairline); background: var(--paper); }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.footer-inner p { margin: 0; color: var(--ink-3); font-size: 12px; }
.footer-inner nav { display: flex; gap: 20px; font-size: 12px; }
.footer-inner nav a { color: var(--ink-2); }

/* ── 7. motion (finite, purposeful) ───────────────────────────── */
.reveal { opacity: 1; transform: none; }
html.motion-ready .reveal { opacity: 0; transform: translateY(16px); transition: opacity 560ms cubic-bezier(0.16, 0.9, 0.24, 1), transform 560ms cubic-bezier(0.16, 0.9, 0.24, 1); }
html.motion-ready .reveal.is-visible { opacity: 1; transform: none; }
html.motion-ready .reveal .fl-meter i,
html.motion-ready .reveal .mini { width: 0; transition: width 820ms cubic-bezier(0.2, 0.8, 0.2, 1) 220ms; }
html.motion-ready .reveal.is-visible .fl-meter i,
html.motion-ready .reveal.is-visible .mini { width: var(--v); }
html.motion-ready .hero-stage.is-visible .stage-flyout { animation: flyout-open 620ms 160ms cubic-bezier(0.16, 0.9, 0.24, 1) both; transform-origin: 25% 100%; }
@keyframes flyout-open {
  from { opacity: 0; transform: translateY(14px) scale(0.975); }
  to { opacity: 1; transform: none; }
}

/* ── 8. responsive ────────────────────────────────────────────── */
/* two-column composition held at normal desktop widths via fixed paired scales */
@media (max-width: 1300.75px) {
  .hero-layout { grid-template-columns: minmax(340px, 1fr) 672px; gap: 32px; align-items: center; }
  .hero-stage { width: 672px; min-width: 672px; height: 400px; }
  .stage-frame { width: 672px; min-width: 672px; height: 400px; }
  .stage { width: 840px; height: 500px; transform: scale(0.8); transform-origin: top left; }
}

@media (max-width: 1100.75px) {
  .hero-layout { grid-template-columns: minmax(300px, 1fr) 546px; gap: 24px; align-items: center; }
  .hero-stage { width: 546px; min-width: 546px; height: 325px; }
  .stage-frame { width: 546px; min-width: 546px; height: 325px; }
  .stage { width: 840px; height: 500px; transform: scale(0.65); transform-origin: top left; }
}

@media (max-width: 1180px) {
  .controls-layout, .source-layout { gap: 48px; }
  .anatomy-layout { gap: 28px; }
  .network-map { grid-template-columns: 1fr 140px 1.2fr; }
}

@media (max-width: 980px) {
  .controls-layout, .source-layout { grid-template-columns: 1fr; }
  .density-grid { grid-template-columns: 1fr; gap: 34px; }
  .anatomy-layout { grid-template-columns: 1fr; justify-items: center; gap: 40px; }
  .anno { grid-template-columns: 1fr 1fr; width: min(100%, 620px); gap: 24px 34px; text-align: left; }
  .anno-left li, .anno-right li { padding: 0; }
  .anno li::after { display: none; }
  .reset-notes { grid-template-columns: 1fr; }
  .reset-notes > div { padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--night-line); }
  .reset-notes > div:last-child { border-bottom: 0; }
}

@media (max-width: 920.75px) {
  .header-inner { grid-template-columns: auto 1fr; }
  .primary-nav { display: none; }
  .header-cta { justify-self: end; }
  .hero-layout { grid-template-columns: 1fr; align-items: start; gap: 56px; }
  .section-head-row { grid-template-columns: 1fr; align-items: start; }
  .install-links { grid-template-columns: 1fr 1fr; }
  .install-links a:nth-child(2n) { border-right: 0; }
  .install-links a { border-bottom: 1px solid var(--night-line); }
  .closing-inner { flex-direction: column; align-items: flex-start; gap: 34px; }
}

/* below this width the exploded stage becomes a stacked diagram */
@media (max-width: 920.75px) {
  .hero { min-height: 0; }
  .hero-stage { width: 100%; min-width: 0; height: auto; }
  .stage-frame { width: 100%; min-width: 0; height: auto; }
  .stage { position: static; inset: auto; width: 100%; height: auto; transform: none; display: grid; gap: 0; }
  .dim, .lead { display: none; }
  .stage-flyout { position: relative; left: auto; top: auto; width: min(348px, 100%); margin: 0 auto; }
  .flyout { height: auto; }
  .flyout-tail { left: 40%; }
  .stage-rail { position: relative; left: auto; top: auto; width: 100%; margin-top: 12px; overflow: hidden; }
  .stage-rail .taskbar { grid-template-columns: 1fr; padding-right: 10px; }
  .stage-rail .tb-slot-center, .stage-rail .tb-slot-tray { display: none; }
  .stage-notes { position: static; display: grid; gap: 14px; margin-top: 30px; }
  .note { position: static; width: auto; }
}

@media (max-width: 700px) {
  .shell { width: min(calc(100% - 32px), var(--shell)); }
  .header-inner { min-height: 64px; }
  .header-cta { display: none; }
  .hero { padding-top: 108px; }
  .hero h1 { font-size: clamp(40px, 12vw, 58px); }
  .hero-lead { font-size: 16px; }
  .section-head { margin-bottom: 40px; }
  .anno { grid-template-columns: 1fr; }
  .taskbar .tb-slot-center .tb-icon:nth-child(2), .taskbar .tb-slot-center .tb-icon:nth-child(3) { display: none; }
  .chip-text { font-size: 11px; }
  .settings-panel { grid-template-columns: 1fr; }
  .sp-side { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid #e2e3e6; padding: 10px; }
  .sp-rows li { grid-template-columns: 1fr auto; }
  .sp-rows li.is-nested { margin-left: 12px; }
  .sp-state { order: 0; }
  .network-map { grid-template-columns: 1fr; }
  .net-path { padding: 10px 0; }
  .net-path i { width: 1px; height: 46px; border-top: 0; border-left: 1px dashed #8c98a5; }
  .net-path i::after { right: auto; left: -4px; top: auto; bottom: -1px; border-left-color: transparent; border-top-color: #8c98a5; }
  .privacy-links { grid-template-columns: 1fr; }
  .privacy-links a { padding: 15px 0; border-bottom: 1px solid var(--hairline); }
  .command-panel { grid-template-columns: 1fr auto; gap: 12px; }
  .command-shell { grid-column: 1 / -1; justify-items: start; place-items: center start; padding: 0 0 10px; border-right: 0; border-bottom: 1px solid #2d3944; }
  .command-panel code { font-size: 12.5px; }
  .install-links { grid-template-columns: 1fr; }
  .install-links a { border-right: 0; }
  .source-facts div { grid-template-columns: 120px 1fr; gap: 16px; }
  .footer-inner { grid-template-columns: 1fr; gap: 16px; }
  .footer-inner nav { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html.motion-ready .reveal { opacity: 1; transform: none; }
  html.motion-ready .reveal .fl-meter i,
  html.motion-ready .reveal .mini { width: var(--v); }
}

@media (forced-colors: active) {
  .flyout, .taskbar, .settings-panel, .net-node, .command-panel, .rail-mini { border: 1px solid CanvasText; }
  .fl-meter, .fl-meter i, .mini, .sw, .dot { forced-color-adjust: none; }
  .lead, .dim { border-color: CanvasText; }
}


/* Hero cleanup v6 - product truth over diagram noise */
.hero-stage,
.stage-frame,
.stage { height: 460px; }

.hero-stage { filter: drop-shadow(0 30px 70px rgba(0, 0, 0, 0.18)); }
.dim { display: none; }

.stage-flyout {
  left: 24px;
  top: 20px;
}

.flyout-tail {
  left: 153px;
}

.stage-rail {
  left: 0;
  top: 329px;
  width: 620px;
}

.stage-rail .taskbar {
  grid-template-columns: auto 1fr;
  padding-inline: 12px;
  border-color: #aeb6c0;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.3);
}

.stage-rail .widget-full {
  gap: 22px;
  padding-inline: 0;
}

.stage-rail .tb-slot-center,
.stage-rail .tb-slot-tray {
  display: none;
}

.lead {
  border: 0;
  border-color: #5f6d7b;
}

.lead-3 {
  left: 372px;
  top: 116px;
  width: 278px;
  height: 0;
  border-top: 1px solid #5f6d7b;
}

.lead-3::before {
  left: -3px;
  top: -3px;
}

.lead-2 {
  left: 250px;
  top: 304px;
  width: 400px;
  height: 25px;
  border-top: 1px solid #5f6d7b;
  border-left: 1px solid #5f6d7b;
}

.lead-2::before {
  left: -3px;
  top: auto;
  bottom: -3px;
}

.lead-2::after {
  display: none;
}

.lead-1 {
  left: 620px;
  top: 377px;
  width: 30px;
  height: 35px;
  border-left: 1px solid #5f6d7b;
  border-bottom: 1px solid #5f6d7b;
}

.lead-1::before {
  left: -3px;
  top: -3px;
}

.note {
  left: 650px;
}

.note-3 { top: 104px; }
.note-2 { top: 292px; }
.note-1 { top: 400px; }

@media (max-width: 1300.75px) {
  .hero-stage,
  .stage-frame {
    width: 672px;
    min-width: 672px;
    height: 368px;
  }

  .stage {
    width: 840px;
    height: 460px;
    transform: scale(0.8);
    transform-origin: top left;
  }
}

@media (max-width: 1100.75px) {
  .hero-stage,
  .stage-frame {
    width: 546px;
    min-width: 546px;
    height: 299px;
  }

  .stage {
    width: 840px;
    height: 460px;
    transform: scale(0.65);
    transform-origin: top left;
  }
}

@media (max-width: 920.75px) {
  .hero-stage,
  .stage-frame {
    width: 100%;
    min-width: 0;
    height: auto;
  }

  .stage {
    position: static;
    inset: auto;
    width: 100%;
    height: auto;
    transform: none;
    display: grid;
    gap: 0;
  }

  .stage-flyout {
    position: relative;
    left: auto;
    top: auto;
    width: min(348px, 100%);
    margin-inline: auto;
  }

  .flyout-tail {
    left: calc(50% - 11px);
  }

  .stage-rail {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    margin-top: 12px;
    overflow: hidden;
  }

  .stage-rail .taskbar {
    grid-template-columns: 1fr;
    padding-inline: 10px;
  }

  .lead {
    display: none;
  }

  .stage-notes {
    position: static;
    display: grid;
    gap: 14px;
    margin-top: 30px;
  }

  .note {
    position: static;
    width: auto;
  }
}


/* Hero simplify v8 - remove diagram chrome */
.hero-stage,
.stage-frame,
.stage {
  height: 400px;
}

.hero-stage {
  filter: none;
}

.stage-flyout {
  left: 100px;
  top: 20px;
}

.flyout-tail {
  left: 163px;
}

.stage-rail {
  left: 80px;
  top: 329px;
  width: 560px;
}

.stage-rail .taskbar {
  grid-template-columns: auto 1fr !important;
  padding-inline: 12px;
  border-radius: 10px;
}

.stage-rail .tb-slot-center,
.stage-rail .tb-slot-tray,
.stage-notes,
.lead,
.dim {
  display: none !important;
}

@media (max-width: 1300.75px) {
  .hero-stage,
  .stage-frame {
    width: 672px;
    min-width: 672px;
    height: 320px;
  }

  .stage {
    width: 840px;
    height: 400px;
    transform: scale(0.8);
    transform-origin: top left;
  }
}

@media (max-width: 1100.75px) {
  .hero-stage,
  .stage-frame {
    width: 546px;
    min-width: 546px;
    height: 260px;
  }

  .stage {
    width: 840px;
    height: 400px;
    transform: scale(0.65);
    transform-origin: top left;
  }
}

@media (max-width: 920.75px) {
  .hero-stage,
  .stage-frame {
    width: 100%;
    min-width: 0;
    height: auto;
  }

  .stage {
    position: static;
    inset: auto;
    width: 100%;
    height: auto;
    transform: none;
    display: grid;
    gap: 0;
  }

  .stage-flyout {
    position: relative;
    left: auto;
    top: auto;
    width: min(348px, 100%);
    margin-inline: auto;
  }

  .flyout-tail {
    left: calc(50% - 11px);
  }

  .stage-rail {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    margin-top: 12px;
    overflow: hidden;
  }
}


/* Hero annotations v9 - three precise product callouts */
.hero-stage,
.stage-frame,
.stage {
  height: 430px;
}

.stage-notes {
  display: block !important;
}

.lead {
  display: block !important;
  border: 0;
}

.note {
  left: 660px;
}

.note-3 { top: 80px; }
.note-2 { top: 268px; }
.note-1 { top: 341px; }

.lead-3 {
  left: 448px;
  top: 92px;
  width: 212px;
  height: 0;
  border-top: 1px solid #5f6d7b;
}

.lead-3::before {
  left: -3px;
  top: -3px;
}

.lead-2 {
  left: 350px;
  top: 280px;
  width: 310px;
  height: 49px;
  border-top: 1px solid #5f6d7b;
  border-left: 1px solid #5f6d7b;
}

.lead-2::before {
  left: -3px;
  top: auto;
  bottom: -3px;
}

.lead-2::after {
  display: none;
}

.lead-1 {
  left: 640px;
  top: 353px;
  width: 20px;
  height: 0;
  border-top: 1px solid #5f6d7b;
}

.lead-1::before {
  left: -3px;
  top: -3px;
}

@media (max-width: 1300.75px) {
  .hero-stage,
  .stage-frame {
    width: 672px;
    min-width: 672px;
    height: 344px;
  }

  .stage {
    width: 840px;
    height: 430px;
    transform: scale(0.8);
    transform-origin: top left;
  }
}

@media (max-width: 1100.75px) {
  .hero-stage,
  .stage-frame {
    width: 546px;
    min-width: 546px;
    height: 280px;
  }

  .stage {
    width: 840px;
    height: 430px;
    transform: scale(0.65);
    transform-origin: top left;
  }
}

@media (max-width: 920.75px) {
  .hero-stage,
  .stage-frame {
    width: 100%;
    min-width: 0;
    height: auto;
  }

  .stage {
    position: static;
    inset: auto;
    width: 100%;
    height: auto;
    transform: none;
    display: grid;
    gap: 0;
  }

  .stage-notes,
  .lead {
    display: none !important;
  }
}

/* Flyout and taskbar fidelity v10 */
.fl-label {
  grid-row: 1;
  align-self: center;
}

.stage-rail .chip + .chip .chip-mini .mini:nth-child(n+2) {
  display: none;
}

.flyout-tail {
  display: none !important;
}

.hero-stage,
.stage-frame,
.stage {
  height: 400px;
}

.stage-flyout {
  z-index: 2;
}

.stage-rail {
  top: 311px;
  z-index: 4;
}

.note-2 {
  top: 268px;
}

.note-1 {
  top: 323px;
}

.lead-2 {
  left: 350px;
  top: 280px;
  width: 310px;
  height: 31px;
  border: 0;
  border-top: 1px solid #5f6d7b;
  border-left: 1px solid #5f6d7b;
}

.lead-2::before {
  left: -3px;
  top: auto;
  bottom: -3px;
}

.lead-2::after {
  display: none;
}

.lead-1 {
  left: 640px;
  top: 335px;
  width: 20px;
  height: 0;
  border: 0;
  border-top: 1px solid #5f6d7b;
}

.lead-1::before {
  left: -3px;
  top: -3px;
}

@media (max-width: 1300.75px) {
  .hero-stage,
  .stage-frame {
    width: 672px;
    height: 320px;
  }

  .stage {
    width: 840px;
    height: 400px;
    transform: scale(.8);
  }
}

@media (max-width: 1100.75px) {
  .hero-stage,
  .stage-frame {
    width: 546px;
    height: 260px;
  }

  .stage {
    width: 840px;
    height: 400px;
    transform: scale(.65);
  }
}

@media (max-width: 920.75px) {
  .hero-stage,
  .stage-frame {
    width: auto;
    height: auto;
  }

  .stage {
    width: auto;
    height: auto;
    transform: none;
  }

  .stage-flyout {
    z-index: 2;
  }

  .stage-rail {
    top: auto;
    margin-top: -6px;
    z-index: 4;
  }
}

/* Opaque hero taskbar v11 */
.stage-rail .taskbar {
  background: #cdcfd3;
}


/* Text card spacing and source-faithful settings UI v12 */
.reset-notes > div {
  min-width: 0;
  padding: 22px 26px 20px;
}

.reset-notes dt,
.reset-notes dd {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.settings-panel {
  display: block;
  width: 100%;
  aspect-ratio: 980 / 700;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 11px;
  background: #f3f3f3;
  color: inherit;
  box-shadow: 0 30px 66px rgba(0, 0, 0, .4);
}

.settings-panel > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
}

@media (max-width: 980px) {
  .reset-notes > div {
    padding: 20px 0;
  }
}


/* Keep the full Winget command visible instead of hiding it in a horizontal scroller. */
.command-panel code {
  overflow-x: visible;
  white-space: normal;
  overflow-wrap: anywhere;
}
