:root {
  color-scheme: dark;
  --ink: #edf4ff;
  --muted: #9fb0c5;
  --line: rgba(151, 170, 197, 0.22);
  --panel: rgba(12, 19, 33, 0.88);
  --panel-strong: rgba(17, 27, 46, 0.95);
  --soft: rgba(34, 47, 70, 0.72);
  --accent: #20c7aa;
  --accent-strong: #74f0d6;
  --accent-soft: rgba(32, 199, 170, 0.14);
  --blue: #66a6ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

body[data-theme="developer_command_center"] {
  --accent: #38bdf8;
  --accent-strong: #a5f3fc;
  --accent-soft: rgba(56, 189, 248, 0.16);
  --blue: #6366f1;
}

body[data-theme="creator_desk"] {
  --accent: #f472b6;
  --accent-strong: #fbcfe8;
  --accent-soft: rgba(244, 114, 182, 0.16);
  --blue: #fb923c;
}

body[data-theme="focus_operator"] {
  --accent: #34d399;
  --accent-strong: #bbf7d0;
  --accent-soft: rgba(52, 211, 153, 0.16);
  --blue: #22c55e;
}

body[data-theme="video_call_pro"] {
  --accent: #60a5fa;
  --accent-strong: #bfdbfe;
  --accent-soft: rgba(96, 165, 250, 0.16);
  --blue: #a78bfa;
}

body[data-theme="executive_minimalist"] {
  --accent: #f5c76b;
  --accent-strong: #fde68a;
  --accent-soft: rgba(245, 199, 107, 0.16);
  --blue: #94a3b8;
}

body[data-theme="budget_remote_worker"] {
  --accent: #2dd4bf;
  --accent-strong: #99f6e4;
  --accent-soft: rgba(45, 212, 191, 0.16);
  --blue: #4ade80;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(32, 199, 170, 0.18), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(102, 166, 255, 0.14), transparent 32%),
    linear-gradient(180deg, #07111f 0%, #0d1625 46%, #101827 100%);
  -webkit-text-size-adjust: 100%;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 56px;
}

.top-nav, .site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.site-footer {
  margin-top: 22px;
}

.top-nav a, .site-footer a {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 700;
}

.hero {
  min-height: 300px;
  display: grid;
  grid-template-columns: 1fr 260px;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 0.95;
}

h2 {
  margin-bottom: 8px;
  font-size: 1.45rem;
}

h3 {
  margin-bottom: 8px;
}

.lede {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.6;
}

.diagnostic-card, .panel, .results, .kits {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.diagnostic-card {
  min-height: 220px;
  padding: 28px;
  display: grid;
  gap: 10px;
  align-content: center;
  text-align: center;
}

.diagnostic-card strong {
  font-size: 2.25rem;
  line-height: 1.05;
  color: var(--accent);
}

.diagnostic-card span {
  color: var(--muted);
  font-weight: 700;
}

.diagnostic-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.panel, .results, .kits {
  margin-top: 28px;
  padding: 24px;
}

.compact {
  margin-top: 20px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
  margin-bottom: 18px;
}

.panel-head p {
  color: var(--muted);
  margin-bottom: 0;
}

.progress-copy {
  flex: 0 0 auto;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 800;
  font-size: 0.88rem;
}

.progress-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
  margin-bottom: 22px;
}

.progress-track > div {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--blue));
  transition: width 180ms ease;
}

.quiz-step {
  display: block;
}

fieldset {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

legend {
  padding: 0 6px;
  font-weight: 800;
  font-size: 1.05rem;
}

.question-help {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

label {
  display: block;
  margin-top: 10px;
  color: var(--ink);
}

input, textarea, select {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  color: var(--ink);
  background: rgba(7, 17, 31, 0.72);
}

.question-card {
  padding: 18px;
}

.question-layout {
  margin-top: 12px;
}

.question-layout-grouped {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.option-group {
  min-width: 0;
}

.option-group-title {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.option-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.option-card {
  min-height: 58px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 24, 40, 0.72);
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.option-card:hover {
  border-color: color-mix(in srgb, var(--accent) 72%, white 0%);
  background: rgba(24, 36, 58, 0.88);
}

.option-card:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.option-card input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.option-indicator {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #8190a8;
  background: rgba(7, 17, 31, 0.9);
  box-shadow: inset 0 0 0 5px rgba(7, 17, 31, 0.9);
  position: relative;
}

.option-card:has(input:checked) .option-indicator {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: none;
}

.option-card:has(input:checked) .option-indicator::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 12px;
  border: solid #06111f;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.option-label {
  min-width: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

button {
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  min-height: 42px;
  padding: 0 16px;
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  background: var(--accent-strong);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.ghost {
  background: rgba(148, 163, 184, 0.16);
  color: var(--ink);
}

.result-grid, .kit-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.result-card, .kit-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(15, 24, 40, 0.72);
}

.result-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.result-hero h2 {
  margin-top: 12px;
}

.result-hero p {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
}

.result-state-bar {
  margin: 10px 0 12px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(15, 24, 40, 0.66);
  font-size: 0.9rem;
}

.result-state-bar strong {
  color: var(--ink);
}

.result-state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.state-action-button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.86rem;
}

.result-brief {
  display: grid;
  align-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--accent-soft);
  padding: 16px;
}

.result-brief span {
  color: var(--accent-strong);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.result-brief strong {
  font-size: 1.35rem;
}

.result-principles {
  margin-bottom: 18px;
}

.card-kicker {
  color: var(--accent-strong);
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.recommended-kit {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}

.active-kit {
  border-color: var(--accent-strong);
}

.kit-select-button {
  margin-top: 10px;
  width: 100%;
}

.kit-path-detail {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(15, 24, 40, 0.68);
}

.kit-path-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 16px;
  margin-bottom: 14px;
}

.kit-path-header p {
  margin: 10px 0 0;
  color: var(--muted);
}

.kit-compare {
  margin-top: 18px;
}

.kit-compare h3 {
  margin-bottom: 12px;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.compare-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(15, 24, 40, 0.42);
}

.compare-card h3 {
  margin-bottom: 8px;
}

.compare-card .card-kicker {
  margin-bottom: 6px;
}

.compare-delta {
  margin: 8px 0;
  color: var(--ink);
  font-size: 0.92rem;
}

.compare-diff-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.compare-focus-button {
  width: 100%;
  margin-top: 8px;
  min-height: 38px;
  font-size: 0.88rem;
}

.compare-hint {
  margin-top: 8px;
  font-size: 0.84rem;
}

.compare-recommended {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.compare-viewing {
  border-color: color-mix(in srgb, var(--accent-strong) 28%, var(--line));
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 800;
  font-size: 0.82rem;
}

.muted {
  color: var(--muted);
}

.request-preview {
  margin-top: 16px;
  padding: 16px;
  overflow: auto;
  background: #101828;
  color: #f8fafc;
  border-radius: 8px;
}

.interest-form {
  margin-top: 12px;
}

.action-toggle {
  width: 100%;
  margin-top: 6px;
}

.hidden {
  display: none;
}

@media (max-width: 780px) {
  .hero,
  .result-grid,
  .action-grid,
  .compare-grid,
  .kit-list,
  .kit-path-header,
  .result-hero,
  .panel-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero {
    padding: 28px 0;
  }

  .panel, .results, .kits {
    padding: 18px;
  }

  .diagnostic-card {
    min-height: 160px;
  }

  .diagnostic-card strong {
    font-size: 2rem;
  }

  .option-list {
    grid-template-columns: 1fr;
  }

  .question-layout-grouped {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .shell {
    width: min(100% - 20px, 1120px);
    padding: 22px 0 40px;
  }

  h1 {
    font-size: 2.35rem;
  }

  .lede {
    font-size: 1rem;
  }

  .actions button {
    flex: 1 1 100%;
  }
}
