/* Pareto Talent visual system (from paretotalent.com styles.css), dark only. Sandbox mock, not an official asset. */
:root {
  /* Pareto tokens, exact */
  --bg-deep: #050a0e; --bg-surface: #0b1119; --bg-elevated: #0f1923;
  --bg-card: #ffffff06; --bg-card-hover: #ffffff0b;
  --border-glass: #ffffff0f; --border-glass-strong: #ffffff1a; --border-glass-hover: #ffffff29;
  --green: #10b981; --green-light: #34d399; --green-bright: #6ee7b7;
  --green-glow: #10b9814d; --green-muted: #10b98114; --green-subtle: #10b9810a;
  --indigo: #6366f1; --teal: #14b8a6;
  --text-primary: #f0f4f8; --text-secondary: #94a3b8; --text-muted: #64748b; --text-dim: #475569;
  --radius-xl: 20px; --radius-lg: 16px; --radius-md: 12px; --radius-sm: 8px;
  /* App roles mapped onto Pareto tokens */
  --ink: var(--text-primary);
  --ink-soft: var(--text-secondary);
  --muted: var(--text-secondary);
  --accent: var(--green);
  --accent-strong: var(--green-light);
  --bg: var(--bg-deep);
  --surface: var(--bg-surface);
  --line: var(--border-glass-strong);
  --error: #f87171;
  --ok-bg: var(--green-muted);
  --ok-ink: var(--green-bright);
  --font-head: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --r: var(--radius-lg);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.7 var(--font-body);
}
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 12px; }
h1 { font-size: clamp(31px, 6vw, 49px); letter-spacing: -0.02em; }
h2 { font-size: clamp(22px, 3.4vw, 28px); }
h3 { font-size: 18px; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 12px; }
a { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 16px; }

.demo-bar {
  display: flex; gap: 12px; align-items: center; justify-content: space-between;
  padding: 8px 16px; font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--surface);
}
.theme-toggle { min-height: 44px; min-width: 44px; border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 8px; font: inherit; cursor: pointer; padding: 0 12px; }

main { max-width: 760px; margin: 0 auto; padding: 32px 16px 64px; }
.hero { padding: 16px 0 24px; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-strong); margin-bottom: 8px; }
.lede { font-size: 19px; color: var(--ink-soft); max-width: 60ch; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; list-style: none; padding: 0; margin: 8px 0 24px; counter-reset: s; }
.steps li { counter-increment: s; font-size: 14px; color: var(--muted); border-top: 4px solid var(--line); padding-top: 8px; }
.steps li::before { content: counter(s) ". "; font-weight: 700; }
.steps li[aria-current="step"], .steps li.done { color: var(--ink); border-top-color: var(--accent); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 16px; }
@media (min-width: 640px) { .panel { padding: 32px; } }
.panel h2:focus { outline: none; }
.help, .hint { color: var(--muted); font-size: 16px; }
.hint { margin: -4px 0 8px; }

.group { margin: 24px 0 0; border: 0; padding: 0; }
.group legend { font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 8px; }
.task-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 560px) { .task-grid { grid-template-columns: 1fr 1fr; } }
.task-opt { display: flex; gap: 12px; align-items: center; min-height: 52px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--bg); }
.task-opt:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--surface); }
.task-opt input, .choices input, .consent input, .ease input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; margin: 0; }

.custom { margin-top: 24px; }
.custom label { font-weight: 600; display: block; margin-bottom: 8px; }
.row { display: flex; gap: 8px; }
input[type="text"], input[type="email"], input[type="tel"], input[inputmode] {
  font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  min-height: 48px; padding: 8px 12px; width: 100%; font-size: 17px;
}
input[aria-invalid="true"] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.chips { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 15px; }
.chips button { min-width: 44px; min-height: 36px; border: 0; background: transparent; color: var(--ink); font-size: 18px; cursor: pointer; border-radius: 999px; }

.task-row { border-top: 1px solid var(--line); padding: 16px 0; }
.task-row:first-child { border-top: 0; }
.task-row h3 { margin-bottom: 4px; }
.task-row .typical { font-size: 15px; color: var(--muted); margin-bottom: 8px; }
.task-row .hours { display: flex; align-items: center; gap: 8px; max-width: 220px; margin-bottom: 8px; }
.task-row .hours input { width: 110px; }
.ease { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ease legend { font-size: 15px; color: var(--muted); margin-bottom: 4px; }
.ease label, .choices label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; background: var(--bg); font-size: 16px; }
.ease label:has(input:checked), .choices label:has(input:checked) { border-color: var(--accent); background: var(--surface); }
.field-warn { color: var(--accent-strong); font-size: 15px; margin: 4px 0 0; }
.field-error { color: var(--error); font-size: 15px; margin: 8px 0 0; min-height: 0; }
.field-error:empty { display: none; }

fieldset { border: 0; padding: 0; margin: 0 0 24px; }
fieldset > legend { font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.contact { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 8px 0 16px; }
@media (min-width: 560px) { .contact { grid-template-columns: 1fr 1fr; } .consent { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; margin-bottom: 4px; }
.opt { font-weight: 400; color: var(--muted); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.demo-note { font-size: 15px; background: var(--bg); border-left: 4px solid var(--accent); padding: 8px 12px; border-radius: 4px; color: var(--ink-soft); }

.nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.nav .btn-primary:only-child { margin-left: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 10px; font: 600 17px var(--font-body); cursor: pointer; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { filter: brightness(1.15); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.is-disabled { opacity: 0.55; cursor: not-allowed; }

.route-banner { padding: 12px 16px; border-radius: 10px; background: var(--ok-bg); color: var(--ok-ink); font-weight: 600; }
.route-banner:empty { display: none; }

/* Plan (shared with PDF) */
.plan .plan-head { margin-bottom: 16px; }
.plan .meta { color: var(--muted); font-size: 15px; }
.summary dl { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 0 0 12px; }
@media (min-width: 560px) { .summary dl { grid-template-columns: repeat(3, 1fr); } }
.summary dl div { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.summary dt { font-size: 14px; color: var(--muted); }
.summary dd { margin: 4px 0 0; font-weight: 700; font-size: 18px; }
.cap-note, .warn { font-size: 15px; border-left: 4px solid var(--accent); padding: 8px 12px; background: var(--bg); border-radius: 4px; }
.plan section { margin: 24px 0; }
.rank { width: 100%; border-collapse: collapse; font-size: 15px; }
.rank th, .rank td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rank th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.rank td:first-child { font-weight: 700; }
.part { color: var(--muted); font-size: 13px; }
@media (max-width: 520px) {
  .rank thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rank, .rank tbody, .rank tr, .rank td { display: block; }
  .rank tr { border-bottom: 1px solid var(--line); padding: 8px 0; display: grid; grid-template-columns: 32px 1fr; column-gap: 8px; }
  .rank td { border: 0; padding: 2px 0; }
  .rank td:first-child { grid-row: span 5; }
  .rank td:nth-child(3)::before { content: "Hrs/week: "; color: var(--muted); }
  .rank td:nth-child(4)::before { content: "Hrs/month in plan: "; color: var(--muted); }
  .rank td:nth-child(6)::before { content: "Score: "; color: var(--muted); }
}
.own { padding-left: 24px; }
.own li { margin-bottom: 12px; }
.own h3 { margin-bottom: 2px; }
.later { padding-left: 20px; color: var(--ink-soft); }
.next { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.next-high { border-color: var(--accent); }
.gap-note { font-size: 14px; color: var(--muted); margin-top: 8px; }
.calc ul { padding-left: 20px; font-size: 15px; color: var(--ink-soft); }
.empty { color: var(--muted); }

.foot { max-width: 760px; margin: 0 auto; padding: 0 16px 48px; font-size: 14px; color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .panel:not([hidden]) { animation: rise 320ms cubic-bezier(0.16, 1, 0.3, 1); }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

@media print {
  html, body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: var(--bg-deep); font-size: 12pt; }
  .demo-bar, .hero, .steps, .no-print, .foot, .route-banner, .skip { display: none !important; }
  main { padding: 0; max-width: none; }
  .panel { border: 0; padding: 0; background: none; box-shadow: none; }
  .plan section, .own li, .rank tr { break-inside: avoid; }
}
