:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #f5f7fb;
  background: #07110f;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --bg: #07110f;
  --surface: #0d1a17;
  --surface-2: #12231f;
  --line: rgba(218, 255, 237, 0.13);
  --text: #f5f7fb;
  --muted: #a7b8b1;
  --accent: #72f2b1;
  --accent-dark: #0e6b4b;
  --warning: #ffce74;
  --danger: #ff8d8d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 10%, rgba(114, 242, 177, 0.1), transparent 31rem),
    linear-gradient(180deg, #07110f 0%, #081512 100%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(114, 242, 177, 0.5);
  border-radius: 12px;
  background: rgba(114, 242, 177, 0.1);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.95rem;
}

.brand small {
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.77rem;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.48rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
}

.privacy-dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0.75rem rgba(114, 242, 177, 0.85);
}

main {
  min-height: calc(100vh - 174px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
  padding: clamp(4.5rem, 10vw, 8rem) 0;
}

.eyebrow,
.card-kicker,
.panel-label {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.17em;
}

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

h1 {
  max-width: 11ch;
  margin-bottom: 1.6rem;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

h2 {
  margin-bottom: 0.55rem;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 0;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.lede,
.results-summary {
  max-width: 42rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.7;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 0.8rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
.option-card:focus-within,
input:focus-visible {
  outline: 3px solid rgba(114, 242, 177, 0.28);
  outline-offset: 2px;
}

.button-primary {
  background: var(--accent);
  color: #07110f;
}

.button-primary:hover {
  background: #91f7c5;
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
}

.time-note {
  margin: 0.85rem 0 0;
  color: #799087;
  font-size: 0.78rem;
}

.intro-panel,
.result-card,
.assessment {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(13, 26, 23, 0.88);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.intro-panel {
  padding: clamp(1.5rem, 5vw, 2.25rem);
}

.preview-score {
  display: grid;
  gap: 0.3rem;
  padding: 1.4rem 0 1.6rem;
  border-bottom: 1px solid var(--line);
}

.preview-number {
  color: var(--text);
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 850;
  letter-spacing: -0.06em;
}

.preview-score > span:last-child {
  color: var(--muted);
  font-size: 0.84rem;
}

.preview-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.preview-list li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.8rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  color: #dbe6e1;
  font-size: 0.9rem;
}

.preview-list li:last-child {
  border-bottom: 0;
}

.preview-list span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
}

.assessment {
  max-width: 920px;
  margin: clamp(2.5rem, 6vw, 5rem) auto;
  padding: clamp(1.4rem, 5vw, 3rem);
}

.assessment-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.assessment-header p:last-child {
  margin: 0;
  color: var(--muted);
}

.progress-wrap {
  width: min(220px, 34vw);
  text-align: right;
}

.progress-wrap > span {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-fill {
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 220ms ease;
}

.question-block {
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.question-block:last-child {
  border-bottom: 0;
}

.question-number {
  display: block;
  margin-bottom: 0.55rem;
  color: #70877e;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.question-block fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.question-block legend {
  max-width: 45rem;
  margin-bottom: 1.1rem;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 740;
  line-height: 1.45;
}

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

.option-card {
  position: relative;
  display: flex;
  min-height: 62px;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--muted);
  cursor: pointer;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    color 140ms ease;
}

.option-card:hover {
  border-color: rgba(114, 242, 177, 0.35);
}

.option-card:has(input:checked) {
  border-color: rgba(114, 242, 177, 0.7);
  background: rgba(114, 242, 177, 0.1);
  color: var(--text);
}

.option-card input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--accent);
}

.option-card span {
  font-size: 0.87rem;
  line-height: 1.35;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
}

.form-error {
  margin: 1.25rem 0 0;
  color: var(--danger);
  font-size: 0.84rem;
  font-weight: 700;
}

.results {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.results-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 2rem;
}

.score-ring {
  display: grid;
  flex: 0 0 auto;
  width: 190px;
  height: 190px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0deg, rgba(255, 255, 255, 0.08) 0deg);
  box-shadow: 0 0 4rem rgba(114, 242, 177, 0.08);
}

.score-ring::before {
  grid-area: 1 / 1;
  width: 156px;
  height: 156px;
  border-radius: 50%;
  background: var(--bg);
  content: "";
}

.score-ring > div {
  z-index: 1;
  display: flex;
  grid-area: 1 / 1;
  align-items: baseline;
}

.score-ring strong {
  font-size: 3.5rem;
  letter-spacing: -0.07em;
}

.score-ring span {
  color: var(--muted);
  font-size: 0.85rem;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.result-card {
  margin-bottom: 1rem;
  padding: clamp(1.35rem, 4vw, 2rem);
}

.card-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.7rem;
}

.card-kicker {
  margin-bottom: 0.55rem;
}

.pillar-results {
  display: grid;
  gap: 1.2rem;
}

.pillar-row {
  display: grid;
  gap: 0.55rem;
}

.pillar-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.83rem;
}

.pillar-meta span:last-child {
  color: var(--muted);
  font-weight: 750;
}

.pillar-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.pillar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
}

.priority-results {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: priorities;
}

.priority-results li {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.85rem;
  counter-increment: priorities;
}

.priority-results li::before {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid rgba(255, 206, 116, 0.35);
  border-radius: 9px;
  background: rgba(255, 206, 116, 0.08);
  color: var(--warning);
  content: counter(priorities, decimal-leading-zero);
  font-size: 0.68rem;
  font-weight: 850;
}

.priority-results strong,
.priority-results span {
  display: block;
}

.priority-results strong {
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.priority-results span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.scope-count {
  flex: 0 0 auto;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
}

.scope-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.scope-item {
  min-height: 120px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.018);
}

.scope-item span {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.scope-item strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
}

.scope-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.roadmap-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--line);
}

.roadmap-phase {
  padding: 1.25rem;
  background: var(--surface);
}

.roadmap-phase > span {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.roadmap-phase h4 {
  margin: 0.55rem 0 0.8rem;
  font-size: 1rem;
}

.roadmap-phase ul {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.4;
}

.savings-card {
  display: grid;
  grid-template-columns: 1fr 1.3fr auto;
  gap: 2rem;
  align-items: center;
}

.savings-copy p:not(.card-kicker) {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.savings-inputs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.savings-inputs label {
  position: relative;
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
}

.savings-inputs input[type="number"] {
  width: 100%;
  min-height: 42px;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.savings-inputs input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.range-value {
  position: absolute;
  top: 0;
  right: 0;
  color: var(--accent);
}

.savings-output {
  display: grid;
  gap: 0.8rem;
  min-width: 130px;
}

.savings-output div {
  display: grid;
}

.savings-output strong {
  color: var(--accent);
  font-size: 1.8rem;
  letter-spacing: -0.04em;
}

.savings-output span {
  color: var(--muted);
  font-size: 0.7rem;
}

.results-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.disclaimer {
  max-width: 60rem;
  margin: 2rem 0 0;
  color: #71867d;
  font-size: 0.7rem;
  line-height: 1.55;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 0 2.25rem;
  border-top: 1px solid var(--line);
  color: #6f837a;
  font-size: 0.7rem;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .intro,
  .results-grid,
  .savings-card {
    grid-template-columns: 1fr;
  }

  .intro {
    gap: 3rem;
  }

  .scope-results {
    grid-template-columns: repeat(2, 1fr);
  }

  .savings-output {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .site-header,
  main,
  footer {
    width: min(100% - 1.25rem, 1180px);
  }

  .site-header {
    min-height: 76px;
  }

  .privacy-badge {
    max-width: 140px;
    justify-content: center;
    text-align: center;
  }

  .intro {
    padding: 3.5rem 0;
  }

  .assessment {
    margin: 0.75rem auto 2rem;
    border-radius: 18px;
  }

  .assessment-header,
  .results-hero {
    align-items: start;
    flex-direction: column;
  }

  .progress-wrap {
    width: 100%;
  }

  .option-grid,
  .scope-results,
  .roadmap-results,
  .savings-inputs {
    grid-template-columns: 1fr;
  }

  .roadmap-results {
    gap: 1px;
  }

  .score-ring {
    width: 150px;
    height: 150px;
  }

  .score-ring::before {
    width: 122px;
    height: 122px;
  }

  .score-ring strong {
    font-size: 2.8rem;
  }

  .form-actions,
  .results-actions,
  footer {
    flex-direction: column;
  }

  .form-actions .button,
  .results-actions .button {
    width: 100%;
  }

  footer {
    gap: 0.5rem;
  }
}

@media print {
  :root {
    color-scheme: light;
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-2: #f5f7f6;
    --line: #d8dfdc;
    --text: #12201b;
    --muted: #52615b;
    --accent: #08744d;
    --accent-dark: #08744d;
  }

  body {
    background: #fff;
    color: var(--text);
  }

  .site-header,
  footer,
  .results-actions,
  .savings-inputs,
  .disclaimer {
    display: none !important;
  }

  main,
  .results {
    width: 100%;
    padding: 0;
  }

  .results-hero {
    margin-bottom: 1rem;
  }

  .score-ring {
    box-shadow: none;
    print-color-adjust: exact;
  }

  .result-card {
    break-inside: avoid;
    box-shadow: none;
  }

  .savings-card {
    grid-template-columns: 1fr auto;
  }
}
