/* Launch - interface.
   Concept: a launch company's own studio. Each product is presented like a flagship on its own page: a full-width
   stage with its flight path (the logo's trail and dot) climbing through nine waypoints, spec-style numbers under
   it, and two clear actions. Dark by default, light available; one accent the user picks. Calm, large type, quiet
   chrome, motion that explains (things travel, draw and settle) rather than decorates. */
@font-face { font-family: "Archivo"; src: url("fonts/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrumentsans-var.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --bg: #0b0b0c; --bg-2: #111113; --panel: #161618; --panel-2: #1d1d20; --line: rgba(255, 255, 255, 0.08); --line-2: rgba(255, 255, 255, 0.14);
  --text: #f4f4f5; --soft: #a2a2a9; --faint: #6c6c74; --fill: rgba(255, 255, 255, 0.06); --fill-2: rgba(255, 255, 255, 0.1);
  --accent: #3e6ae1; --accent-rgb: 62, 106, 225; --on-accent: #fff; --spark: #ff5c4d; --ok: #34c77b; --warn: #f5a524; --bad: #ef4b4b;
  --primary-bg: #f4f4f5; --primary-fg: #0b0b0c; --glass: rgba(11, 11, 12, 0.72);
  --stage-glow: radial-gradient(70% 60% at 50% 38%, rgba(var(--accent-rgb), 0.18), transparent 70%), radial-gradient(60% 50% at 50% 110%, rgba(255, 255, 255, 0.06), transparent 70%);
  --display: "Archivo", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --body: "Instrument Sans", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f4f4f4; --bg-2: #ffffff; --panel: #ffffff; --panel-2: #f6f6f7; --line: rgba(23, 26, 32, 0.09); --line-2: rgba(23, 26, 32, 0.16);
  --text: #171a20; --soft: #5c5e62; --faint: #9a9ca0; --fill: rgba(23, 26, 32, 0.05); --fill-2: rgba(23, 26, 32, 0.09);
  --primary-bg: #171a20; --primary-fg: #ffffff; --glass: rgba(244, 244, 244, 0.78); --ok: #1f9d5c; --warn: #c27c0e; --bad: #d23b3b;
  --stage-glow: radial-gradient(70% 60% at 50% 38%, rgba(var(--accent-rgb), 0.12), transparent 70%), radial-gradient(60% 50% at 50% 110%, rgba(0, 0, 0, 0.05), transparent 70%);
  color-scheme: light;
}
@media (prefers-color-scheme: light) { :root:not([data-theme]) {
  --bg: #f4f4f4; --bg-2: #ffffff; --panel: #ffffff; --panel-2: #f6f6f7; --line: rgba(23, 26, 32, 0.09); --line-2: rgba(23, 26, 32, 0.16);
  --text: #171a20; --soft: #5c5e62; --faint: #9a9ca0; --fill: rgba(23, 26, 32, 0.05); --fill-2: rgba(23, 26, 32, 0.09);
  --primary-bg: #171a20; --primary-fg: #ffffff; --glass: rgba(244, 244, 244, 0.78); --ok: #1f9d5c; --warn: #c27c0e; --bad: #d23b3b;
  --stage-glow: radial-gradient(70% 60% at 50% 38%, rgba(var(--accent-rgb), 0.12), transparent 70%), radial-gradient(60% 50% at 50% 110%, rgba(0, 0, 0, 0.05), transparent 70%);
  color-scheme: light; } }

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--text); font: 400 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; overflow: hidden; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; } ol, ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid rgba(var(--accent-rgb), 0.9); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
::selection { background: rgba(var(--accent-rgb), 0.35); }

/* ---------------- top bar ---------------- */
.bar { position: fixed; inset: 0 0 auto 0; height: 60px; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 24px;
  background: var(--glass); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-bottom: 1px solid var(--line); transition: background-color 0.4s; }
.mark { color: var(--text); text-decoration: none; justify-self: start; display: block; font: 700 20px var(--display); }
.mark svg { display: block; height: 30px; width: auto; overflow: visible; }
.mark .trail { stroke-dasharray: 3000; stroke-dashoffset: 3000; animation: draw 1.6s var(--ease) 0.25s forwards; }
.mark .spark { transform-box: fill-box; transform-origin: center; animation: pop 0.5s cubic-bezier(.3, 1.6, .5, 1) 1.5s both; }
.mark:hover .trail { animation: draw 1.1s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.tabs { display: flex; gap: 2px; }
.tabs a { text-decoration: none; padding: 7px 14px; border-radius: 4px; font: 500 14px var(--body); color: var(--text); opacity: 0.82; transition: background-color 0.25s, opacity 0.2s; display: inline-flex; gap: 6px; align-items: center; }
.tabs a:hover { background: var(--fill-2); opacity: 1; }
.tabs a.on { background: var(--fill-2); opacity: 1; }
.tabs b { background: var(--spark); color: #fff; font: 600 11px/17px var(--body); min-width: 17px; padding: 0 5px; border-radius: 9px; text-align: center; }
.bar-right { justify-self: end; display: flex; align-items: center; gap: 10px; }
.status { font-size: 12.5px; color: var(--soft); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(52, 199, 123, 0.18); }
.status.off i { background: var(--warn); box-shadow: 0 0 0 3px rgba(245, 165, 36, 0.18); }
.ghost-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--fill); border: 1px solid var(--line); border-radius: 4px; padding: 7px 12px; font: 500 13.5px var(--body); cursor: pointer; transition: background-color 0.2s; }
.ghost-btn:hover { background: var(--fill-2); }
.m-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--spark); }
.icon-btn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 4px; border: 0; background: none; cursor: pointer; color: var(--text); font-size: 22px; line-height: 1; text-decoration: none; }
.icon-btn:hover, .icon-btn.on { background: var(--fill-2); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------------- main canvas ---------------- */
main { position: fixed; inset: 60px 0 0 0; overflow-y: auto; overflow-x: hidden; scroll-behavior: smooth; outline: none; }
main.snap { scroll-snap-type: y mandatory; }
.page { max-width: 1180px; margin: 0 auto; padding: 56px clamp(18px, 4vw, 48px) 110px; }
.page.enter > * { animation: rise 0.7s var(--ease) both; }
.page.enter > *:nth-child(2) { animation-delay: 0.05s; } .page.enter > *:nth-child(3) { animation-delay: 0.1s; } .page.enter > *:nth-child(4) { animation-delay: 0.15s; } .page.enter > *:nth-child(n+5) { animation-delay: 0.2s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.eyebrow { font: 600 11.5px/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft); }
.title { font: 600 clamp(34px, 4.4vw, 52px)/1.04 var(--display); letter-spacing: -0.025em; margin-top: 12px; }
.lede { font-size: 17px; color: var(--soft); margin-top: 12px; max-width: 62ch; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.head-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.section { margin-top: 56px; }
.section > h2, .sec-title { font: 600 24px/1.15 var(--display); letter-spacing: -0.015em; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.section > h2 small, .sec-title small { font: 400 13.5px var(--body); color: var(--soft); letter-spacing: 0; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 22px; }
.panel + .panel { margin-top: 14px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.empty { color: var(--soft); padding: 6px 0; }
.hint { color: var(--soft); font-size: 13.5px; }
.notice { display: flex; justify-content: space-between; align-items: center; gap: 14px; border: 1px solid rgba(245, 165, 36, 0.35); background: rgba(245, 165, 36, 0.08); border-radius: 6px; padding: 12px 16px; margin-bottom: 26px; font-size: 14px; }

/* ---------------- buttons, fields ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 22px; border-radius: 4px; border: 0; cursor: pointer;
  background: var(--primary-bg); color: var(--primary-fg); font: 500 14px var(--body); text-decoration: none; white-space: nowrap; transition: transform 0.15s, filter 0.2s, background-color 0.2s; }
.btn:hover { filter: brightness(0.92); } .btn:active { transform: scale(0.98); }
.btn.wide { min-width: 240px; }
.btn.alt { background: var(--fill-2); color: var(--text); }
.btn.alt:hover { background: var(--line-2); filter: none; }
.btn.accent { background: var(--accent); color: var(--on-accent); }
.btn.small { min-height: 32px; padding: 0 14px; font-size: 13px; }
.btn.danger { background: transparent; color: var(--bad); box-shadow: inset 0 0 0 1px rgba(239, 75, 75, 0.45); }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.link { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font-weight: 500; text-decoration: none; }
.link:hover { text-decoration: underline; }
input, select, textarea { width: 100%; background: var(--fill); border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; transition: border-color 0.2s, background-color 0.2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: rgba(var(--accent-rgb), 0.9); background: var(--bg-2); }
textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
select option { background: var(--bg-2); color: var(--text); }
label.f { display: grid; gap: 6px; font-size: 13px; color: var(--soft); font-weight: 500; }
.form { display: grid; gap: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.seg { display: inline-flex; background: var(--fill); border-radius: 6px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 6px 14px; border-radius: 4px; cursor: pointer; font: 500 13px var(--body); color: var(--soft); transition: background-color 0.2s, color 0.2s; }
.seg button.on { background: var(--panel-2); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); }
:root[data-theme="light"] .seg button.on { background: #fff; }

/* chips + avatars */
.chip { display: inline-flex; align-items: center; gap: 6px; font: 600 11.5px/1 var(--body); padding: 5px 9px; border-radius: 20px; background: var(--fill-2); color: var(--soft); white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.9; }
.chip.ok, .chip.approved, .chip.done, .chip.posted, .chip.released, .chip.active { color: var(--ok); background: rgba(52, 199, 123, 0.12); }
.chip.review, .chip.doing, .chip.soon, .chip.scheduled, .chip.testing, .chip.due { color: var(--warn); background: rgba(245, 165, 36, 0.12); }
.chip.running, .chip.queued, .chip.new, .chip.ready { color: var(--accent); background: rgba(var(--accent-rgb), 0.14); }
.chip.failed, .chip.blocked, .chip.ended, .chip.lost, .chip.expired, .chip.revoked, .chip.bad { color: var(--bad); background: rgba(239, 75, 75, 0.12); }
.av { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; font: 700 11.5px var(--display); color: #fff; flex: none; }
.av.sm { width: 22px; height: 22px; font-size: 10px; }
.a-director { background: #ff5c4d; } .a-analyst { background: #3e6ae1; } .a-brand { background: #e04c95; } .a-studio { background: #e69a17; } .a-publisher { background: #12a4b6; } .a-quality { background: #7b61ff; } .a-concierge { background: #2fb36d; }

/* the "?" */
.q { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; border: 1px solid var(--faint); background: none; color: var(--soft);
  font: 600 10.5px/1 var(--body); cursor: pointer; padding: 0; vertical-align: middle; opacity: 0.7; transition: all 0.2s; margin-left: 2px; flex: none; }
.q:hover { opacity: 1; border-color: var(--accent); color: var(--accent); }
.pop { position: fixed; z-index: 60; width: min(340px, calc(100vw - 24px)); background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 16px 18px;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.6); font-size: 14px; line-height: 1.5; animation: rise 0.2s var(--ease) both; }
.pop h4 { font: 600 15px var(--display); margin-bottom: 6px; } .pop p { color: var(--soft); } .pop .goal { color: var(--text); margin-top: 10px; } .pop .goal b { color: var(--accent); }

/* ---------------- home: one stage per product ---------------- */
.stage { position: relative; min-height: calc(100vh - 60px); scroll-snap-align: start; display: grid; grid-template-rows: auto 1fr auto; padding: 46px clamp(18px, 4vw, 48px) 40px;
  background: var(--stage-glow); overflow: hidden; border-bottom: 1px solid var(--line); }
.stage-floor { position: absolute; inset: auto 0 0 0; height: 46%; pointer-events: none; opacity: 0.55; }
.stage-top { text-align: center; position: relative; z-index: 2; }
.stage-top h1 { font: 600 clamp(40px, 5.6vw, 64px)/1 var(--display); letter-spacing: -0.03em; }
.stage-top p { color: var(--soft); margin-top: 12px; font-size: 16.5px; max-width: 60ch; margin-inline: auto; }
.stage-top .eyebrow { margin-bottom: 14px; }
.stage-viz { position: relative; z-index: 1; display: grid; place-items: center; min-height: 260px; }
.stage-viz svg { width: min(1180px, 100%); height: auto; overflow: visible; }
.stage-bottom { position: relative; z-index: 2; display: grid; gap: 26px; justify-items: center; }
.specs { display: flex; gap: clamp(22px, 4.5vw, 64px); flex-wrap: wrap; justify-content: center; }
.spec { text-align: center; min-width: 92px; }
.spec b { display: block; font: 500 clamp(26px, 2.6vw, 34px)/1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.spec b small { font-size: 0.55em; color: var(--soft); margin-left: 2px; font-weight: 500; }
.spec span { display: block; margin-top: 7px; font-size: 12.5px; color: var(--soft); }
.stage-acts { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.scroll-cue { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); width: 22px; height: 34px; border: 1.5px solid var(--line-2); border-radius: 12px; z-index: 2; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--soft); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 50% { transform: translateY(8px); opacity: 0.2; } }
.stage.add { min-height: 70vh; place-content: center; text-align: center; grid-template-rows: auto; gap: 22px; }

/* the trajectory */
.traj .rail { fill: none; stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; }
.traj .flown { fill: none; stroke-width: 5; stroke-linecap: round; }
.traj .wp { transition: r 0.4s; }
.traj .wp.done { fill: var(--accent); }
.traj .wp.next { fill: var(--bg); stroke: var(--line-2); stroke-width: 2; }
.traj .wp.now { fill: var(--bg); stroke: var(--spark); stroke-width: 3; }
.traj .wl { font: 500 12.5px var(--body); fill: var(--soft); text-anchor: middle; cursor: help; }
.traj .wl.now { fill: var(--text); font-weight: 600; }
.traj .wn { font: 600 10px var(--body); fill: var(--faint); text-anchor: middle; letter-spacing: 0.08em; }
.traj .halo { fill: var(--spark); opacity: 0.22; transform-box: fill-box; transform-origin: center; animation: halo 2.4s ease-out infinite; }
.traj .dot { fill: var(--spark); }
@keyframes halo { 0% { transform: scale(0.6); opacity: 0.45; } 100% { transform: scale(2.4); opacity: 0; } }
.traj .sat circle { stroke: var(--bg); stroke-width: 2; }
.traj .sat text { font: 700 10px var(--display); fill: #fff; text-anchor: middle; dominant-baseline: central; }
.traj .sat { animation: bob 3.2s ease-in-out infinite; transform-box: fill-box; }
.traj .sat.queued { opacity: 0.55; }
@keyframes bob { 50% { transform: translateY(-5px); } }
.traj .tick { fill: var(--accent); opacity: 0.85; }
.traj .tick.review { fill: var(--warn); } .traj .tick.plan { fill: var(--line-2); } .traj .tick.running { fill: var(--accent); animation: blink 1.1s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

/* ---------------- product page ---------------- */
.p-hero { position: relative; padding: 48px clamp(18px, 4vw, 48px) 26px; background: var(--stage-glow); border-bottom: 1px solid var(--line); overflow: hidden; }
.p-hero .stage-top { text-align: left; max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.p-hero .stage-top p { margin-inline: 0; }
.p-hero .stage-viz { max-width: 1180px; margin: 6px auto 0; min-height: 0; }
.p-hero .specs { max-width: 1180px; margin: 10px auto 0; justify-content: flex-start; }
.subnav { position: sticky; top: 0; z-index: 20; background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.subnav-in { max-width: 1180px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 48px); display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.subnav a { text-decoration: none; padding: 14px 12px 13px; font: 500 13.5px var(--body); color: var(--soft); border-bottom: 2px solid transparent; white-space: nowrap; transition: color 0.2s, border-color 0.3s; display: inline-flex; gap: 6px; align-items: center; }
.subnav a:hover { color: var(--text); } .subnav a.on { color: var(--text); border-bottom-color: var(--text); }
.subnav a b { font: 600 10.5px/16px var(--body); background: var(--spark); color: #fff; min-width: 16px; border-radius: 8px; padding: 0 5px; text-align: center; }

/* Marge's briefing */
.brief-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; }
.say { font: 500 clamp(21px, 2.1vw, 27px)/1.3 var(--display); letter-spacing: -0.015em; }
.who { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--soft); font-size: 13.5px; }
.needs li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); align-items: start; }
.needs li:first-child { border-top: 0; padding-top: 0; }
.needs li i { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--warn); margin-top: 1px; }
.then { margin-top: 16px; color: var(--soft); font-size: 14.5px; }
.plan-list li { display: grid; grid-template-columns: 26px 92px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--soft); align-items: baseline; }
.plan-list li:first-child { border-top: 0; }
.plan-list li i { font: 600 11px var(--body); font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--fill-2); color: var(--soft); align-self: start; }
.plan-list li b { color: var(--text); font-weight: 600; }
.plan-list li.done i { background: var(--accent); color: #fff; } .plan-list li.now i { background: var(--spark); color: #fff; } .plan-list li.now { color: var(--text); }

/* work by stage */
.lane { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); align-items: start; }
.lane:first-child { border-top: 0; }
.lane-name { display: flex; align-items: center; gap: 10px; font: 600 15px var(--display); }
.lane-name i { font: 600 10.5px var(--body); font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--fill-2); color: var(--soft); }
.lane.done .lane-name i { background: var(--accent); color: #fff; } .lane.now .lane-name i { background: var(--spark); color: #fff; }
.lane-sub { font-size: 12.5px; color: var(--soft); margin: 4px 0 0 32px; }
.cards { display: flex; flex-wrap: wrap; gap: 10px; }
.wcard { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel); min-width: 230px; cursor: default; text-align: left; transition: border-color 0.2s, transform 0.2s; }
.wcard.has { cursor: pointer; } .wcard.has:hover { border-color: var(--line-2); transform: translateY(-1px); }
.wcard .t { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 4px; }
.wcard .s { font-size: 12px; color: var(--soft); display: flex; gap: 8px; align-items: center; margin-top: 2px; }
.wcard.plan { opacity: 0.55; }
.wcard.review { border-color: rgba(245, 165, 36, 0.5); }

/* readiness */
.ready-wrap { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 26px; align-items: start; }
.gauge { display: grid; place-items: center; text-align: center; position: relative; }
.gauge svg { width: 220px; height: 220px; }
.gauge .g-track { fill: none; stroke: var(--fill-2); stroke-width: 12; }
.gauge .g-val { fill: none; stroke: var(--accent); stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--ease); }
.gauge .g-in { position: absolute; display: grid; gap: 4px; }
.gauge .g-in b { font: 600 46px/1 var(--display); letter-spacing: -0.03em; }
.gauge .g-in span { color: var(--soft); font-size: 13px; }
.checks h4 { font: 600 12px var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); margin: 20px 0 6px; }
.checks h4:first-child { margin-top: 0; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); align-items: center; }
.check i { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--faint); display: grid; place-items: center; font-style: normal; font-size: 12px; color: #fff; }
.check.ok i { background: var(--ok); border-color: var(--ok); }
.check.ok .l { color: var(--soft); }
.check .fix { font-size: 12.5px; color: var(--soft); }

/* connections */
.conn-group { margin-top: 26px; } .conn-group:first-child { margin-top: 0; }
.conn-group h4 { font: 600 12px var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); margin-bottom: 10px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.tile { position: relative; text-align: left; padding: 16px; align-content: start; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; transition: border-color 0.2s, transform 0.2s, background-color 0.2s; display: grid; gap: 8px; }
.tile:hover { border-color: var(--line-2); transform: translateY(-2px); }
.tile .tt { display: flex; justify-content: space-between; align-items: center; gap: 8px; font: 600 15px var(--display); }
.tile .td { font-size: 13px; color: var(--soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile .tn { font-size: 12px; color: var(--soft); }
.tile .tn.ok { color: var(--ok); } .tile .tn.bad { color: var(--bad); }
.steps-list { counter-reset: s; display: grid; gap: 12px; margin: 6px 0 20px; }
.steps-list li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.steps-list li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 12px var(--display); background: var(--fill-2); }

/* posting kit: three columns */
.kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.col { background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px; min-height: 120px; }
.col h4 { display: flex; justify-content: space-between; font: 600 13px var(--body); color: var(--soft); padding: 2px 4px 10px; }
.kcard { display: block; width: 100%; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 12px; margin-top: 8px; cursor: pointer; transition: transform 0.2s, border-color 0.2s; }
.kcard:hover { transform: translateY(-2px); border-color: var(--line-2); }
.kcard .kt { font-weight: 600; font-size: 14px; margin: 6px 0 4px; }
.kcard .kb { font-size: 12.5px; color: var(--soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kcard .km { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 12px; color: var(--soft); }

/* stats */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.kpi { background: var(--panel); padding: 18px 18px 16px; }
.kpi b { display: block; font: 500 30px/1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi span { display: flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 12.5px; color: var(--soft); }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .axis { stroke: var(--line); } .chart .lbl { font: 11px var(--body); fill: var(--faint); }
.chart .ln { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.chart .ar { opacity: 0.12; }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--soft); flex-wrap: wrap; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; }
.funnel { display: grid; gap: 8px; }
.funnel .fr { display: grid; grid-template-columns: 90px 1fr 70px; gap: 12px; align-items: center; font-size: 13.5px; }
.funnel .fb { height: 26px; border-radius: 4px; background: rgba(var(--accent-rgb), 0.85); transition: width 1s var(--ease); min-width: 3px; }
.funnel .fv { text-align: right; font-variant-numeric: tabular-nums; color: var(--soft); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font: 600 11.5px var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); padding: 0 12px 10px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t td.n { font-variant-numeric: tabular-nums; }
.scroll-x { overflow-x: auto; }
.acts-inline { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* timeline of renewals */
.tl { position: relative; height: 88px; margin: 10px 4px 4px; }
.tl .axis { position: absolute; left: 0; right: 0; top: 44px; height: 2px; background: var(--line-2); border-radius: 2px; }
.tl .tk { position: absolute; top: 52px; font-size: 11px; color: var(--faint); transform: translateX(-50%); }
.tl .pin { position: absolute; top: 34px; width: 20px; height: 20px; border-radius: 50%; transform: translateX(-50%); border: 3px solid var(--bg); cursor: default; }
.tl .pin span { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 11.5px; color: var(--soft); }
.tl .today { position: absolute; top: 18px; bottom: 18px; width: 2px; background: var(--spark); }

/* lists */
.list > * { border-top: 1px solid var(--line); } .list > *:first-child { border-top: 0; }
.li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; padding: 14px 0; align-items: center; }
.li .t { font-weight: 600; } .li .s { font-size: 13px; color: var(--soft); margin-top: 2px; }
.todo-box { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--faint); background: none; cursor: pointer; display: grid; place-items: center; color: #fff; font-size: 12px; padding: 0; transition: all 0.2s; }
.todo-box:hover { border-color: var(--accent); }
.li.done .todo-box { background: var(--accent); border-color: var(--accent); } .li.done .t { color: var(--faint); text-decoration: line-through; } .li.done .s { display: none; }
.meter { height: 6px; background: var(--fill-2); border-radius: 3px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.8s var(--ease); }
.meter i.hot { background: var(--bad); }

/* legal */
.lg-group { margin-top: 30px; } .lg-group:first-child { margin-top: 0; }
.lg-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.lg-head h4 { font: 600 12px var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); }
.lg { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); align-items: start; }
.lg .t { font: 600 15.5px var(--display); display: flex; align-items: center; gap: 8px; }
.lg .w { font-size: 13.5px; color: var(--soft); margin-top: 4px; max-width: 68ch; }
.lg .who-does { font-size: 12.5px; color: var(--faint); margin-top: 6px; }
.lg details { margin-top: 8px; } .lg summary { cursor: pointer; font-size: 13px; color: var(--accent); list-style: none; } .lg summary::-webkit-details-marker { display: none; }
.lg .why { font-size: 13.5px; margin-top: 6px; max-width: 68ch; }
.lg .note-in { margin-top: 10px; max-width: 520px; }
.lg.done .t { color: var(--soft); }

/* folder shelves */
.shelves { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.shelf { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; min-width: 0; }
.shelf h4 { display: flex; justify-content: space-between; font: 600 14px var(--display); margin-bottom: 8px; } .shelf h4 small { color: var(--faint); font-weight: 500; }
.shelf li { font-size: 13px; padding: 3px 0; overflow-wrap: anywhere; } .shelf a { text-decoration: none; color: var(--soft); } .shelf a:hover { color: var(--text); }

/* documents */
.doc { font-size: 15px; line-height: 1.65; }
.doc h1, .doc h2, .doc h3 { font-family: var(--display); letter-spacing: -0.01em; margin: 22px 0 8px; line-height: 1.25; }
.doc h1 { font-size: 24px; } .doc h2 { font-size: 19px; } .doc h3 { font-size: 16px; }
.doc p { margin: 9px 0; } .doc ul { list-style: disc; padding-left: 22px; margin: 9px 0; } .doc ol { list-style: decimal; padding-left: 24px; margin: 9px 0; }
.doc blockquote { margin: 10px 0; padding: 10px 14px; border-left: 3px solid var(--warn); background: rgba(245, 165, 36, 0.08); border-radius: 0 6px 6px 0; }
.doc pre { font: 12.5px/1.55 var(--mono); white-space: pre; overflow-x: auto; background: var(--fill); padding: 12px; border-radius: 6px; }
.doc code { font: 0.88em var(--mono); background: var(--fill-2); padding: 1px 5px; border-radius: 4px; }
.talk { display: grid; gap: 8px; margin: 14px 0; }
.talk p { padding: 10px 14px; border-radius: 14px; background: var(--fill-2); white-space: pre-wrap; justify-self: start; max-width: 86%; font-size: 14.5px; }
.talk p.you { background: var(--accent); color: var(--on-accent); justify-self: end; }
.talk p.typing { color: var(--soft); font-style: italic; background: none; }

/* ---------------- side sheet (documents, wizards) ---------------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(3px); animation: fade 0.3s both; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: fixed; z-index: 50; top: 0; right: 0; bottom: 0; width: min(760px, 100vw); background: var(--bg-2); border-left: 1px solid var(--line); overflow-y: auto;
  box-shadow: -30px 0 80px -30px rgba(0, 0, 0, 0.6); animation: slide 0.45s var(--ease) both; }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.sheet-in { padding: 30px clamp(20px, 3vw, 40px) 60px; }
.sheet-top { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px clamp(20px, 3vw, 40px);
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.sheet h2.sh { font: 600 28px/1.1 var(--display); letter-spacing: -0.02em; margin: 8px 0 10px; display: flex; align-items: center; gap: 8px; }
.sheet .sub { color: var(--soft); margin-bottom: 22px; }
.sheet .acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; align-items: center; }
.result-note { margin-top: 12px; font-size: 13.5px; padding: 10px 12px; border-radius: 6px; background: var(--fill); }
.result-note.ok { color: var(--ok); } .result-note.bad { color: var(--bad); }

/* ---------------- Marge drawer ---------------- */
.drawer { position: fixed; z-index: 45; top: 60px; right: 0; bottom: 0; width: min(420px, 100vw); background: var(--bg-2); border-left: 1px solid var(--line); display: flex; flex-direction: column;
  box-shadow: -30px 0 70px -30px rgba(0, 0, 0, 0.55); animation: slide 0.4s var(--ease) both; }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 22px 22px 14px; }
.drawer-head h2 { font: 600 26px var(--display); margin-top: 6px; }
.drawer .seg { margin: 0 22px 12px; align-self: flex-start; }
.drawer-body { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 0 22px 22px; }
#chatAbout { margin-bottom: 12px; }
#chatLog { flex: 1; overflow-y: auto; display: grid; gap: 8px; align-content: start; padding-bottom: 12px; }
#chatLog p { padding: 10px 14px; border-radius: 14px; background: var(--fill-2); white-space: pre-wrap; justify-self: start; max-width: 92%; font-size: 14.5px; }
#chatLog p.you { background: var(--accent); color: var(--on-accent); justify-self: end; }
#chatForm { display: flex; gap: 8px; }
#feed { overflow-y: auto; display: grid; gap: 14px; align-content: start; }
#feed li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 13.5px; line-height: 1.45; animation: rise 0.4s var(--ease) both; }
#feed time { display: block; font-size: 11.5px; color: var(--faint); margin-top: 2px; }
#feed li.ev-alert p { color: var(--bad); }

/* ---------------- guide + tour ---------------- */
.g-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.g-step { padding: 22px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); }
.g-step b { display: block; font: 600 40px/1 var(--display); color: var(--accent); margin-bottom: 14px; }
.g-step h3 { font: 600 18px var(--display); margin-bottom: 6px; } .g-step p { color: var(--soft); font-size: 14px; }
.crew { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.crew-m { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 16px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); align-items: start; }
.crew-m .av { width: 40px; height: 40px; font-size: 15px; } .crew-m b { display: block; font: 600 15px var(--display); } .crew-m span { font-size: 13px; color: var(--soft); }
.crew-m em { display: block; font-style: normal; font-size: 12.5px; color: var(--accent); margin-top: 4px; }
.tour { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(5, 5, 6, 0.82); backdrop-filter: blur(8px); padding: 20px; animation: fade 0.4s both; }
.tour-card { width: min(760px, 100%); background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.7); }
.tour-art { height: 260px; background: var(--stage-glow), var(--bg); display: grid; place-items: center; border-bottom: 1px solid var(--line); overflow: hidden; }
.tour-art svg { width: 92%; height: auto; overflow: visible; }
.tour-body { padding: 28px 32px 26px; }
.tour-body h2 { font: 600 30px/1.1 var(--display); letter-spacing: -0.02em; margin: 10px 0 10px; }
.tour-body p { color: var(--soft); font-size: 15.5px; max-width: 58ch; }
.tour-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; }
.dots { display: flex; gap: 7px; } .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); transition: all 0.3s; } .dots i.on { background: var(--text); width: 22px; border-radius: 4px; }

/* settings */
.set-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); align-items: center; }
.set-row:first-child { border-top: 0; padding-top: 0; }
.set-row > span { font-weight: 500; }
.swatches { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.swatches button { width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer; position: relative; padding: 0; transition: transform 0.15s; }
.swatches button:hover { transform: scale(1.12); } .swatches button.on::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--text); }
input[type="color"] { width: 46px; height: 32px; padding: 2px; cursor: pointer; }
.prov { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.prov button { text-align: left; padding: 16px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; display: grid; gap: 6px; transition: border-color 0.2s; }
.prov button.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.prov b { font: 600 15px var(--display); } .prov span { font-size: 12.5px; color: var(--soft); }
.kv { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 8px 16px; font-size: 14px; } .kv dt { color: var(--soft); } .kv dd { overflow-wrap: anywhere; }

/* toast */
.toast { position: fixed; z-index: 80; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 11px 18px; border-radius: 6px; font-weight: 500; font-size: 14px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5); animation: rise 0.3s var(--ease) both; max-width: 80vw; }
.toast.bad { background: var(--bad); color: #fff; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* motion off */
:root[data-motion="reduced"] *, :root[data-motion="reduced"] *::before, :root[data-motion="reduced"] *::after { animation-duration: 0.001s !important; animation-delay: 0s !important; transition-duration: 0.001s !important; }
:root[data-motion="reduced"] .rv { opacity: 1; transform: none; }
:root[data-motion="reduced"] main { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-delay: 0s !important; transition-duration: 0.001s !important; }
  .rv { opacity: 1; transform: none; } main { scroll-behavior: auto; }
}

/* narrow screens */
@media (max-width: 1060px) {
  .bar { grid-template-columns: auto 1fr auto; gap: 10px; } .tabs { overflow-x: auto; scrollbar-width: none; } .status { display: none; }
  .brief-grid, .ready-wrap, .grid2 { grid-template-columns: minmax(0, 1fr); } .grid3, .g-steps, .prov { grid-template-columns: minmax(0, 1fr); }
  .kanban { grid-template-columns: minmax(0, 1fr); } .lane { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
@media (max-width: 720px) {
  .bar { padding: 0 12px; } .ghost-btn span + * { display: none; } .mark svg { height: 24px; }
  .set-row, .kv { grid-template-columns: minmax(0, 1fr); gap: 8px; } .row2, .row3 { grid-template-columns: minmax(0, 1fr); }
  .stage-viz { min-height: 180px; }
}

/* drawing the flight path and gauges when a page first appears */
.traj .flown.anim, .gauge .g-val.anim { animation: flow 1.8s var(--ease) 0.15s both; }
@keyframes flow { from { stroke-dashoffset: var(--len); } }
.traj .arrive { animation: pop 0.6s cubic-bezier(.3, 1.6, .5, 1) 1.55s both; transform-box: fill-box; transform-origin: center; }
.traj .sat circle { color: inherit; }
.traj .sat .a-director { color: #ff5c4d; } .traj .sat .a-analyst { color: #3e6ae1; } .traj .sat .a-brand { color: #e04c95; } .traj .sat .a-studio { color: #e69a17; }
.traj .sat .a-publisher { color: #12a4b6; } .traj .sat .a-quality { color: #7b61ff; } .traj .sat .a-concierge { color: #2fb36d; }

/* tables inside documents */
.tbl{overflow-x:auto;margin:14px 0;border:1px solid var(--line);border-radius:10px}
.tbl table{border-collapse:collapse;width:100%;font-size:14px}
.tbl th,.tbl td{text-align:left;vertical-align:top;padding:9px 12px;border-bottom:1px solid var(--line)}
.tbl tr:last-child td{border-bottom:0}
.tbl th{font-weight:600;background:rgba(var(--accent-rgb),.08)}

/* pictures */
.pics{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}
.pic{margin:0;background:var(--panel);border:1px solid var(--line);border-radius:12px;overflow:hidden;display:flex;flex-direction:column}
.pic img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;background:var(--bg-2,#111)}
.pic figcaption{padding:12px 14px 14px;display:flex;flex-direction:column;gap:10px;font-size:13.5px;color:var(--soft)}
.pic figcaption span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pic figcaption .acts{display:flex;gap:8px;align-items:center;margin:0}
.pic.review{border-color:rgba(var(--accent-rgb),.55)}
.notice.checks ul{margin:8px 0 0;padding-left:18px}
.notice.checks li{margin:2px 0}
.btn[disabled]{opacity:.45;pointer-events:none}
