/* Warm Intro: one reading column, a sticky top bar, and five views switched by the URL hash. */
/* Design system: maroon and white, layout modeled on modern job-search product sites (floating UI panels, pill buttons, alternating feature rows). */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --tint: #faf6f6;
  --fg: #1a1414;
  --muted: #3d3434;
  --line: #d6c8c8;
  --accent: #500000;
  --accent-soft: #f6eded;
  --link: #6b0f1a;
  --cta: #500000;
  --on-cta: #ffffff;
  --good: #1f7a45;
  --bad: #b42318;
  --band: #500000;
  --on-band: #ffffff;
  --shadow: 0 1px 2px rgb(80 0 0 / 5%), 0 8px 24px rgb(80 0 0 / 7%);
  --display: "Outfit", system-ui, sans-serif;
  --body: "Work Sans", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --num: #500000; --hl: #500000; --hl-bar: #f6eded; --chip-bg: #f6eded; --chip-fg: #500000; --band-line: transparent;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0e10; --surface: #17171a; --tint: #131315; --fg: #f4f4f5; --muted: #c8c8d0; --line: #3f3f46;
    --accent: #d8a7ad; --accent-soft: #241a1c; --link: #e2b8bd; --cta: #8c1d2c; --on-cta: #ffffff;
    --good: #4ade80; --bad: #f87171; --band: #1c1517; --on-band: #f4f4f5; --shadow: 0 1px 0 rgb(255 255 255 / 3%) inset, 0 8px 24px rgb(0 0 0 / 35%);
    --num: #f4f4f5; --hl: #f4f4f5; --hl-bar: #8c1d2c; --chip-bg: #1f1f23; --chip-fg: #e4e4e7; --band-line: #3a2a2d; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e0e10; --surface: #17171a; --tint: #131315; --fg: #f4f4f5; --muted: #c8c8d0; --line: #3f3f46;
    --accent: #d8a7ad; --accent-soft: #241a1c; --link: #e2b8bd; --cta: #8c1d2c; --on-cta: #ffffff;
    --good: #4ade80; --bad: #f87171; --band: #1c1517; --on-band: #f4f4f5; --shadow: 0 1px 0 rgb(255 255 255 / 3%) inset, 0 8px 24px rgb(0 0 0 / 35%);
    --num: #f4f4f5; --hl: #f4f4f5; --hl-bar: #8c1d2c; --chip-bg: #1f1f23; --chip-fg: #e4e4e7; --band-line: #3a2a2d; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 72px; }
body { overflow-x: clip; margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 var(--body); }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2 { font-family: var(--display); line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 1.4rem; font-weight: 600; margin-top: 8px; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--accent-soft); padding: 1px 5px; border-radius: 4px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 12px; top: -48px; background: var(--fg); color: var(--bg); padding: 8px 12px; border-radius: 6px; z-index: 20; }
.skip:focus { top: 12px; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-inner { max-width: 960px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--fg); text-decoration: none; font: 600 1.2rem var(--display); }
nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
nav a { transition: color 200ms, background-color 200ms; color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 6px; font-weight: 500; font-size: 0.95rem; }
nav a:hover { color: var(--fg); background: var(--accent-soft); }
nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.theme { border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 6px; padding: 7px; cursor: pointer; line-height: 0; }

main { max-width: 960px; margin: 0 auto; padding: 40px 16px 64px; outline: none; }
.view { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.prose { max-width: 720px; }
.prose ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 10px; }
.eyebrow { font: 500 0.78rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.hero { display: grid; gap: 18px; padding-bottom: 8px; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.src { font-size: 0.85rem; color: var(--muted); }
.rule { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }

.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { transition: border-color 200ms, background-color 200ms, transform 200ms; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 600 0.95rem var(--body); color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 9px 20px; cursor: pointer; text-decoration: none; min-height: 44px; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--cta); border-color: var(--cta); color: var(--on-cta); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--bad); }
.btn.file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.btn.file:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.stat { background: var(--surface); padding: 18px 16px; display: grid; gap: 6px; align-content: start; }
.stat b { font: 700 2rem/1 var(--display); color: var(--num); font-variant-numeric: tabular-nums; }
.stat span { font-size: 0.9rem; color: var(--muted); }

ol.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
ol.steps li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
ol.steps .n { font: 500 0.9rem/1.6 var(--mono); color: var(--accent); }
ol.steps p { color: var(--muted); }

/* Setup */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { box-shadow: var(--shadow); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; display: grid; gap: 6px; }
.checklist label { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.checklist input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.checklist p { color: var(--muted); padding-left: 30px; }
.checklist li:has(input:checked) { border-color: var(--good); }

/* Run */
.card { box-shadow: var(--shadow); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px; display: grid; gap: 14px; }
.card p { color: var(--muted); }
.run-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.run-steps li { box-shadow: var(--shadow); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; display: grid; gap: 10px; }
.run-steps li.done { border-color: var(--good); }
.run-steps .head { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.run-steps h3 { margin: 0; font: 600 1.05rem var(--body); }
.run-steps .say { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.run-steps .say q { font-family: var(--mono); font-size: 0.9rem; background: var(--accent-soft); padding: 6px 10px; border-radius: 6px; quotes: none; }
.run-steps p { color: var(--muted); }
.run-steps label { display: flex; gap: 8px; align-items: center; font-size: 0.9rem; color: var(--muted); cursor: pointer; }
.run-steps input { width: 18px; height: 18px; accent-color: var(--accent); }
.small { padding: 6px 12px; min-height: 44px; font-size: 0.85rem; }
details.peek summary { cursor: pointer; font-weight: 600; color: var(--accent); }
pre { margin: 12px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 18px; overflow: auto; max-height: 480px; font: 13px/1.55 var(--mono); white-space: pre-wrap; word-break: break-word; }

/* Tracker */
.label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.funnels { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; }
.funnel { box-shadow: var(--shadow); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px; display: grid; gap: 10px; min-width: 0; }
.fsteps { display: flex; gap: 6px; }
.fstep { flex: 1; min-width: 0; display: grid; gap: 2px; padding: 10px 12px; border-radius: 8px; background: var(--accent-soft); font-size: 0.85rem; color: var(--muted); }
.fstep .num { font: 500 1.8rem/1.1 var(--mono); color: var(--num); font-variant-numeric: tabular-nums; }
.arrow { align-self: center; color: var(--muted); }
.post { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 4px 0; }
.post p { flex: 1 1 320px; min-width: 0; }
.count { font: 400 0.9rem var(--body); color: var(--muted); }
.table { box-shadow: var(--shadow); position: relative; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th { text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); }
td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.who { font-weight: 600; }
.who a { color: inherit; }
.detail { color: var(--muted); font-size: 0.85rem; }
.date { font: 0.85rem var(--mono); color: var(--muted); white-space: nowrap; }
.empty { color: var(--muted); padding: 18px 12px; }
select.status { font: 500 0.85rem var(--body); color: var(--fg); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; background: var(--surface); }
select.status[data-tone="good"] { color: var(--good); border-color: var(--good); }
select.status[data-tone="bad"] { color: var(--bad); border-color: var(--bad); }
select.status[data-tone="accent"] { color: var(--accent); border-color: var(--accent); }
.del { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1.1rem; padding: 4px 8px; border-radius: 4px; }
.del:hover { color: var(--bad); }
details.add { background: var(--surface); border: 1px dashed var(--line); border-radius: 10px; padding: 12px 16px; }
details.add summary { cursor: pointer; font-weight: 600; color: var(--accent); }
form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 12px; align-items: end; }
form label { display: grid; gap: 4px; font-size: 0.85rem; color: var(--muted); }
form input, form select { font: inherit; color: var(--fg); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; background: var(--bg); min-width: 0; }
.tools { display: flex; gap: 8px; flex-wrap: wrap; }

/* About diagram */
.diagram { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.diagram svg { width: 100%; height: auto; display: block; }
.dg-box rect { fill: var(--bg); stroke: var(--line); stroke-width: 1.5; }
.dg-box.accent rect { fill: var(--accent-soft); stroke: var(--accent); }
.dg-box text { fill: var(--fg); font: 600 15px var(--body); text-anchor: middle; }
.dg-box text.sm { fill: var(--muted); font: 400 12px var(--body); }
.dg-arrow { stroke: var(--accent); stroke-width: 2; fill: none; marker-end: none; }

.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--fg); color: var(--bg); padding: 8px 14px; border-radius: 6px; font-size: 0.9rem; z-index: 30; }

@media (max-width: 720px) {
  .stats, .funnels { grid-template-columns: 1fr; }
  nav { order: 3; flex-basis: 100%; }
  .brand { flex: 1; }
}
@media (max-width: 600px) {
  table { min-width: 0; }
  thead { display: none; }
  tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who x" "co x" "st date"; gap: 4px 12px; padding: 12px; border-bottom: 1px solid var(--line); }
  tbody tr:last-child { border-bottom: 0; }
  tbody td { padding: 0; border: 0; }
  .c-who { grid-area: who; } .c-co { grid-area: co; color: var(--muted); } .c-st { grid-area: st; } .c-date { grid-area: date; align-self: center; text-align: right; } .c-x { grid-area: x; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
main:focus, main:focus-visible { outline: none; }
.dg-head { fill: var(--accent); }
.foot a { color: inherit; }


/* Home */
.home { gap: 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 16px; }
.hero { display: grid; gap: 20px; }
.hero h1 { isolation: isolate; font-size: clamp(2.4rem, 6vw, 3.9rem); line-height: 1.05; }
.hl { color: var(--hl); position: relative; white-space: nowrap; }
.hl::after { content: ""; position: absolute; left: -0.06em; right: -0.08em; bottom: -0.1em; height: 0.3em; background: var(--cta); z-index: -1; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'%3E%3Cpath d='M4 16 C 40 6, 90 4, 130 9 S 185 14, 196 7' fill='none' stroke='black' stroke-width='7' stroke-linecap='round'/%3E%3Cpath d='M22 20 C 70 13, 120 13, 170 16' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' opacity='.85'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'%3E%3Cpath d='M4 16 C 40 6, 90 4, 130 9 S 185 14, 196 7' fill='none' stroke='black' stroke-width='7' stroke-linecap='round'/%3E%3Cpath d='M22 20 C 70 13, 120 13, 170 16' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' opacity='.85'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.badge { justify-self: start; font-size: 0.85rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 6px 14px; border-radius: 999px; }
.btn.lg { min-height: 52px; padding: 12px 26px; font-size: 1.02rem; }
.trust { display: flex; align-items: center; gap: 6px 16px; flex-wrap: wrap; color: var(--muted); font-size: 0.9rem; }
.trust svg { color: var(--good); }
.preview { isolation: isolate; position: relative; display: grid; gap: 14px; padding: 24px 0; }
.rings { position: absolute; left: 50%; top: 50%; width: min(118%, 620px, 100vw); aspect-ratio: 1; transform: translate(-50%, -50%); z-index: -1; border-radius: 50%; pointer-events: none; background:
  radial-gradient(circle closest-side, transparent 0 54%, var(--line) 54% 54.6%, transparent 55% 76%, var(--line) 76% 76.6%, transparent 77% 98%, var(--line) 98% 98.6%, transparent 99%),
  radial-gradient(circle closest-side, var(--accent-soft), transparent 80%); }
/* Hide the browser's datalist arrow; suggestions still appear as you type. */
input[list]::-webkit-calendar-picker-indicator { display: none !important; }
.pv-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); display: grid; gap: 10px; }
.pv-a { margin-right: 32px; }
.pv-b { margin-left: 48px; }
.pv-row { display: flex; align-items: center; gap: 10px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font: 600 0.85rem var(--display); flex: none; }
.pv-name { font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.pv-sub { color: var(--muted); font-size: 0.85rem; line-height: 1.3; overflow-wrap: anywhere; }
.pv-row > div:nth-child(2) { flex: 1; min-width: 0; }
.pv-msg { background: var(--tint); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 0.92rem; }
.pv-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.8rem; }
.pv-note { text-align: right; }
.chip { font-size: 0.78rem; font-weight: 600; color: var(--chip-fg); background: var(--chip-bg); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.chip.hm { color: var(--on-cta); background: var(--cta); }
.find-hm { display: inline-block; margin-top: 10px; font-size: 0.85rem; color: var(--muted); }
.chip.ghost { color: var(--muted); background: transparent; border: 1px solid var(--line); }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 0.78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; color: var(--good); background: color-mix(in srgb, var(--good) 12%, transparent); white-space: nowrap; }
.pv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pv-stats div { background: var(--tint); border-radius: 10px; padding: 8px 10px; font-size: 0.8rem; color: var(--muted); }
.pv-stats b { display: block; font: 600 1.5rem/1.1 var(--display); color: var(--num); }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.muted-row { opacity: 0.7; }

.statband { background: var(--tint); border: 1px solid var(--line); border-radius: 24px; padding: 40px 32px; display: grid; gap: 28px; text-align: center; }
.statband h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
.bigstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.bigstats b { display: block; font: 700 clamp(2.2rem, 5vw, 3rem)/1 var(--display); color: var(--num); margin-bottom: 8px; }
.bigstats span { color: var(--muted); font-size: 0.95rem; }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.feature.flip .f-text { order: 2; }
.f-text { display: grid; gap: 14px; justify-items: start; }
.f-text h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 700; margin: 0; }
.f-text p { color: var(--muted); font-size: 1.05rem; }
.kicker { font-size: 0.85rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.f-visual { background: var(--tint); border-radius: 24px; padding: 32px; }

.minis { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.minis li { border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: grid; gap: 8px; align-content: start; background: var(--surface); }
.minis .ico, .features .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.minis strong { font: 600 1.05rem var(--display); }
.minis p { color: var(--muted); font-size: 0.95rem; }

.faq { display: grid; gap: 10px; max-width: 760px; width: 100%; justify-self: center; }
.faq h2 { text-align: center; font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 8px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; background: var(--surface); }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font: 500 1.3rem/1 var(--display); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 14px; }

.band { border: 1px solid var(--band-line); background: var(--band); color: var(--on-band); border-radius: 24px; padding: 48px 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.band h2 { margin: 0; color: inherit; font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
.band p { opacity: 0.85; margin-top: 6px; }
.btn.onband { background: var(--on-band); color: var(--band); border-color: var(--on-band); }

.foot-inner { max-width: 960px; margin: 0 auto; padding: 32px 16px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.foot-inner p { padding: 8px 0 0; margin: 0; }
.foot-inner nav { display: grid; gap: 8px; align-content: start; flex: none; }
.foot-inner nav a { color: var(--muted); text-decoration: none; }
.foot-inner nav a:hover { color: var(--fg); }

@media (max-width: 820px) {
  .hero-grid, .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip .f-text { order: 0; }
  .minis, .bigstats { grid-template-columns: 1fr; }
  .pv-a, .pv-b { margin: 0; }
  .f-visual { padding: 20px; }
  .home { gap: 56px; }
  .foot-inner { grid-template-columns: 1fr 1fr; }
  .foot-inner > div:first-child { grid-column: 1 / -1; }
}
.trust span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

/* Dark mode refinements: neutral charcoal, maroon used only for actions and small accents */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.onband { background: var(--cta); color: #fff; border-color: var(--cta); } :root:not([data-theme="light"]) .badge { color: var(--chip-fg); background: var(--chip-bg); border: 1px solid var(--line); } :root:not([data-theme="light"]) .avatar { color: var(--chip-fg); background: var(--chip-bg); } :root:not([data-theme="light"]) nav a[aria-current="page"] { color: var(--fg); background: var(--chip-bg); } }
:root[data-theme="dark"] .btn.onband { background: var(--cta); color: #fff; border-color: var(--cta); }
:root[data-theme="dark"] .badge { color: var(--chip-fg); background: var(--chip-bg); border: 1px solid var(--line); }
:root[data-theme="dark"] .avatar { color: var(--chip-fg); background: var(--chip-bg); }
:root[data-theme="dark"] nav a[aria-current="page"] { color: var(--fg); background: var(--chip-bg); }

/* Try it: one form, live progress, then results */
.try-form { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 0; align-items: stretch; }
.try-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.try-grid .wide { grid-column: 1 / -1; }
.try-form input { padding: 11px 12px; font-size: 1rem; }
.try-form label { font-weight: 500; color: var(--fg); }
details.more summary { cursor: pointer; font-weight: 600; color: var(--accent); margin-bottom: 4px; }
details.more[open] summary { margin-bottom: 12px; }
.try-form .actions { align-items: center; }
.btn:disabled { opacity: 0.6; cursor: default; }

.progress { gap: 10px; }
.pg-head { display: flex; align-items: center; gap: 10px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--cta); animation: spin 0.8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }
.pg-log { margin: 0; padding-left: 28px; color: var(--muted); font-size: 0.9rem; display: grid; gap: 2px; max-height: 180px; overflow-y: auto; overflow-wrap: anywhere; }
.t-error { border-color: var(--line); }
.t-error p { color: var(--bad); font-weight: 600; margin: 0; }

.res-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--accent-soft); border-radius: 10px; padding: 16px 20px; margin-bottom: 8px; }
.res-head .summary { flex: 1 1 320px; }
#t-results h2 { margin-top: 28px; }
#t-results > .src { margin: 4px 0 12px; }
.res-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.res-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 16px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.res-top { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.res-top > div { flex: 1; min-width: 0; }
.res-card .chip { justify-self: start; white-space: normal; }
.res-card .why { color: var(--fg); font-size: 0.95rem; line-height: 1.55; }
.res-card .pv-name { font-size: 1.05rem; }
.res-card .chip { font-size: 0.82rem; }
.res-card .actions { gap: 8px; }
.note { font: 0.97rem/1.55 var(--body); color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px; resize: vertical; width: 100%; }
.note-meta { font-size: 0.8rem; color: var(--muted); text-align: right; margin-top: -6px; }
.note-meta.over { color: var(--bad); font-weight: 600; }
.res-list .empty { color: var(--muted); grid-column: 1 / -1; }
#t-results > .src:last-child { margin-top: 24px; }

@media (max-width: 720px) {
  .try-grid, .res-list { grid-template-columns: minmax(0, 1fr); }
}
.sample-note { background: var(--chip-bg); color: var(--chip-fg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 0.9rem; font-weight: 500; margin-bottom: 10px; }
.t-error p { color: var(--fg); }
.t-error .btn { justify-self: start; }
.recruit { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 24px; }
.recruit p:not(.kicker) { color: var(--muted); max-width: 62ch; margin-top: 8px; }
.recruit .actions { gap: 8px; }
.code-row { max-width: 320px; font-weight: 500; color: var(--fg); }
.stepper { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.stepper li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9rem; padding: 10px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.stepper b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--cta); color: var(--on-cta); font-size: 0.8rem; flex: none; }
.btn.ghost { border-style: dashed; }
.track-step { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-top: 8px; }
.track-step p { flex: 1 1 280px; color: var(--muted); }
#t-prep { margin-top: 12px; }
.prep-sheet { gap: 16px; }
.prep-sec { display: grid; gap: 6px; }
.prep-sec p, .prep-sec li { color: var(--fg); }
.prep-sec ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.say-it { background: var(--tint); padding: 10px 12px; border-radius: 6px; }
@media (max-width: 720px) { .stepper { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Applied-jobs form and grouped results */
.try-form .school { max-width: 420px; }
fieldset.apps { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; min-width: 0; }
fieldset.apps legend { font-weight: 600; font-size: 0.95rem; padding: 0; margin-bottom: 8px; }
#t-apps { display: grid; gap: 10px; }
.app-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr) 44px; gap: 10px; align-items: end; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--tint); }
.app-row .del { min-height: 44px; }
.app-tools { display: flex; gap: 8px; flex-wrap: wrap; }
#t-groups { display: grid; gap: 22px; margin-top: 8px; }
.app-group { display: grid; gap: 12px; }
.app-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 10px; background: var(--accent-soft); }
.app-head .pv-name { font-family: var(--display); font-size: 1.1rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.prep-sec .btn { justify-self: start; }
@media (max-width: 720px) {
  .app-row { grid-template-columns: minmax(0, 1fr) 44px; }
  .app-row label { grid-column: 1; }
  .app-row .del { grid-column: 2; grid-row: 1; }
}


/* Free runs through the visitor's own AI, and pasting results back */
.run-with { display: grid; gap: 8px; }
.run-with .actions { gap: 10px; }
details.code-box summary { cursor: pointer; font-size: 0.9rem; color: var(--muted); }
details.code-box[open] summary { margin-bottom: 10px; }
.code-inner { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.code-inner .code-row { flex: 0 1 260px; }
.paste-box { gap: 10px; }
.paste-box h2 { margin: 0; font-size: 1.2rem; }
.paste-box textarea { font: 0.88rem/1.5 var(--mono); color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px; width: 100%; resize: vertical; }

input[aria-invalid="true"] { border-color: var(--bad) !important; box-shadow: 0 0 0 2px color-mix(in srgb, var(--bad) 25%, transparent); }
.btn.primary.linkedin { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.btn.primary.linkedin:hover { background: #004182; border-color: #004182; }
