﻿:root {
  --bg: #080b0f;
  --panel: rgba(17, 22, 29, 0.94);
  --panel-strong: rgba(24, 31, 40, 0.98);
  --text: #f2f6ff;
  --muted: #a9b5c5;
  --line: rgba(185, 200, 218, 0.18);
  --accent: #45d6b5;
  --accent-2: #f0b35a;
  --danger: #ff7a7a;
  --medium: #f0c35a;
  --safe: #7ee08f;
  --field: #0d131b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #101822 0%, var(--bg) 42rem);
  color: var(--text);
}

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

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.eyebrow.mini {
  font-size: 0.7rem;
  margin-bottom: 6px;
}

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

h1 {
  font-size: clamp(2.3rem, 8vw, 5rem);
  line-height: 0.92;
  margin-bottom: 14px;
}

h2 {
  font-size: 1.1rem;
  margin-bottom: 14px;
}

h3 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.subtitle,
.control-intro p,
.locked-panel p,
.selection-summary p {
  color: var(--muted);
}

.subtitle {
  font-size: 1.05rem;
  max-width: 720px;
}

.hero-card,
.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.hero-card {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--safe);
  box-shadow: 0 0 20px var(--safe);
}

.panel {
  border-radius: 8px;
  padding: 22px;
  margin-bottom: 20px;
}

.accent-panel {
  background: linear-gradient(135deg, rgba(69, 214, 181, 0.13), rgba(240, 179, 90, 0.1)), var(--panel-strong);
}

.controls {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(150px, 0.75fr) minmax(320px, 1.6fr) repeat(2, minmax(150px, 0.8fr));
  gap: 16px;
  align-items: end;
}

.control-intro h2,
.selection-summary h2,
.locked-panel h2 {
  margin-bottom: 8px;
}

.control-intro p,
.selection-summary p,
.locked-panel p {
  margin-bottom: 0;
}

.select-field,
.field-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

select {
  display: block;
  width: 100%;
  margin-top: 8px;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--text);
  font: inherit;
}

select:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.choice-field {
  min-width: 0;
}

.role-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.role-choices button {
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--field);
  color: var(--text);
  text-align: left;
  box-shadow: none;
}

.role-choices button:hover,
.role-choices button:focus-visible,
.role-choices button.selected {
  border-color: rgba(69, 214, 181, 0.7);
  background: rgba(69, 214, 181, 0.12);
}

.role-choices small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.locked-panel,
.selection-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.locked-panel {
  background: linear-gradient(135deg, rgba(69, 214, 181, 0.1), rgba(240, 179, 90, 0.08)), var(--panel);
}

.step-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.step-pills span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--muted);
  font-weight: 800;
}

.step-pills span.complete {
  border-color: rgba(129, 240, 161, 0.45);
  color: var(--safe);
  background: rgba(129, 240, 161, 0.08);
}

.step-pills span.complete::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.step-pills span.current {
  border-color: rgba(240, 179, 90, 0.58);
  color: var(--medium);
  background: rgba(240, 179, 90, 0.08);
}

.hidden {
  display: none !important;
}

.grid {
  display: grid;
  gap: 20px;
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stacked-list,
.check-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.stacked-list li,
.check-list li {
  margin-bottom: 10px;
}

.check-list li::marker {
  color: var(--accent);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 16px;
}

.section-heading p {
  color: var(--muted);
  margin-bottom: 0;
  max-width: 520px;
}

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

.mechanic-card {
  border: 1px solid var(--line);
  background: rgba(9, 15, 28, 0.78);
  border-radius: 8px;
  padding: 16px;
}

.mechanic-card p {
  color: var(--muted);
  font-size: 0.94rem;
}

.mechanic-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.badge.high {
  color: var(--danger);
}

.badge.medium {
  color: var(--medium);
}

.badge.heroic {
  color: var(--accent-2);
}

.callout {
  color: var(--accent);
  font-size: 0.9rem;
}

.phase-flow {
  display: grid;
  gap: 14px;
}

.phase-card {
  border-left: 4px solid var(--accent);
  padding-left: 14px;
}

.phase-card p,
.sources-panel p,
.sources-panel li,
.macro-header p,
.macro-list > p {
  color: var(--muted);
}

.phase-card span {
  display: inline-block;
  margin: 4px 6px 0 0;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
}

.macro-list {
  display: grid;
  gap: 14px;
}

.macro-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(9, 15, 28, 0.8);
}

.macro-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
}

button {
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06101f;
  font-weight: 900;
  cursor: pointer;
}

pre {
  margin: 0;
  padding: 14px;
  overflow-x: auto;
  background: #050914;
  color: #dce8ff;
}

code {
  font-family: "Cascadia Code", "Fira Code", Consolas, monospace;
  font-size: 0.86rem;
}

.sources-panel a {
  color: var(--accent);
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 32px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

@media (max-width: 1050px) {
  .controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .control-intro {
    grid-column: 1 / -1;
  }

  .choice-field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .hero,
  .section-heading,
  .locked-panel,
  .selection-summary {
    align-items: start;
    flex-direction: column;
  }

  .controls,
  .two-col,
  .mechanics-grid {
    grid-template-columns: 1fr;
  }

  .role-choices {
    grid-template-columns: 1fr;
  }

  .step-pills {
    justify-content: flex-start;
  }
}
