:root {
  color-scheme: light;
  --ink: #10213f;
  --muted: #5b667c;
  --line: rgba(16, 33, 63, 0.14);
  --surface: rgba(255, 255, 255, 0.94);
  --teal: #18dbc4;
  --teal-dark: #00695c;
  --blue: #276ef1;
  --purple: #7b4df4;
  --orange: #ff8f2e;
  --shadow: 0 28px 80px rgba(16, 33, 63, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 5% 8%, rgba(24, 219, 196, 0.34), transparent 30rem),
    radial-gradient(circle at 92% 12%, rgba(123, 77, 244, 0.2), transparent 25rem),
    linear-gradient(180deg, #f7fcff 0%, #eef7f4 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.page {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 42px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  object-fit: cover;
}

.brand span {
  font-size: 23px;
  font-weight: 900;
}

.header-link {
  color: var(--teal-dark);
  font-weight: 800;
  text-underline-offset: 3px;
}

.hero {
  max-width: 780px;
  margin: 56px auto 36px;
  text-align: center;
}

.eyebrow {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 10px 0 14px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}

.requirement-note {
  max-width: 720px;
  margin: 22px auto 0;
  border: 1px solid rgba(39, 110, 241, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  color: #31445f;
  padding: 14px 17px;
  font-size: 15px;
  text-align: left;
}

.requirement-note strong {
  color: var(--ink);
}

.guide-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.55fr);
  min-height: 550px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.guide-aside {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #05bba8 0%, #276ef1 58%, #7048ea 100%);
  color: #fff;
  padding: 52px 42px;
}

.aside-content {
  position: relative;
  z-index: 1;
}

.aside-kicker {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  opacity: 0.8;
  text-transform: uppercase;
}

.guide-aside h2 {
  margin: 12px 0 40px;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.12;
}

.guide-aside ul {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 800;
}

.guide-aside li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.guide-aside li span {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.aside-orb {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.aside-orb-one {
  width: 250px;
  height: 250px;
  right: -125px;
  top: -80px;
}

.aside-orb-two {
  width: 190px;
  height: 190px;
  bottom: -90px;
  left: -75px;
}

.guide-main {
  padding: clamp(30px, 5vw, 64px);
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 38px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.progress-track {
  flex: 1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eef2;
}

#progress-bar {
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  transition: width 180ms ease;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend,
.result-title {
  width: 100%;
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

legend:focus,
.result-title:focus {
  outline: none;
}

.question-help,
.result-intro {
  margin: 11px 0 26px;
  color: var(--muted);
  font-size: 17px;
}

.option-list {
  display: grid;
  gap: 13px;
}

.option-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 17px 18px;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.option-card:hover {
  transform: translateY(-1px);
  border-color: rgba(39, 110, 241, 0.42);
}

.option-card:has(input:checked) {
  border-color: var(--blue);
  background: rgba(39, 110, 241, 0.07);
}

.option-card:has(input:focus-visible) {
  outline: 3px solid rgba(39, 110, 241, 0.25);
  outline-offset: 2px;
}

.option-card input {
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  accent-color: var(--blue);
}

.option-title {
  display: block;
  font-size: 17px;
  font-weight: 900;
}

.option-description {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
}

.action-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 30px;
}

.button {
  min-height: 48px;
  border-radius: 14px;
  padding: 11px 22px;
  font-weight: 900;
  cursor: pointer;
}

.button:focus-visible,
.text-button:focus-visible,
.header-link:focus-visible,
a.button:focus-visible {
  outline: 3px solid rgba(39, 110, 241, 0.28);
  outline-offset: 3px;
}

.button-primary {
  border: 0;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  box-shadow: 0 12px 24px rgba(39, 110, 241, 0.2);
}

.button-primary:disabled {
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.45;
}

.button-secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.selection-error {
  min-height: 21px;
  margin: 12px 0 -16px;
  color: #a22b1d;
  font-size: 14px;
  font-weight: 700;
}

.summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}

.summary-chip {
  border-radius: 999px;
  background: #edf7f6;
  color: #075e54;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 800;
}

.checklist {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: setup-step;
}

.checklist li {
  position: relative;
  min-height: 48px;
  padding: 4px 0 0 58px;
  color: #273751;
  counter-increment: setup-step;
}

.checklist li::before {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(24, 219, 196, 0.2), rgba(39, 110, 241, 0.15));
  color: #075e54;
  content: counter(setup-step);
  font-weight: 900;
}

.notice {
  margin-top: 24px;
  border-left: 4px solid var(--orange);
  border-radius: 12px;
  background: #fff6e9;
  color: #61340d;
  padding: 14px 16px;
}

.safety-section {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

.safety-title {
  margin: 0 0 6px;
  font-size: 22px;
}

.safety-intro {
  margin: 0 0 14px;
  color: var(--muted);
}

.safety-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.safety-list li {
  position: relative;
  border-radius: 13px;
  background: #fff6e9;
  color: #61340d;
  padding: 13px 14px 13px 42px;
}

.safety-list li::before {
  position: absolute;
  left: 15px;
  top: 13px;
  content: "!";
  font-weight: 1000;
}

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

.result-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--teal-dark);
  padding: 11px 4px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.noscript {
  border-radius: 12px;
  background: #fff6e9;
  padding: 14px;
}

footer {
  color: var(--muted);
  padding: 34px 16px 0;
  text-align: center;
}

footer a {
  text-underline-offset: 3px;
}

@media (max-width: 800px) {
  .hero {
    margin-top: 42px;
  }

  .guide-shell {
    grid-template-columns: 1fr;
  }

  .guide-aside {
    padding: 28px;
  }

  .guide-aside h2 {
    max-width: 560px;
    margin-bottom: 0;
  }

  .guide-aside ul {
    display: none;
  }
}

@media (max-width: 520px) {
  .page {
    width: min(100% - 22px, 1180px);
    padding-top: 16px;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .hero {
    margin: 34px auto 28px;
  }

  .guide-shell {
    border-radius: 22px;
  }

  .guide-aside {
    padding: 24px 22px;
  }

  .guide-main {
    padding: 28px 20px 32px;
  }

  .progress-row {
    margin-bottom: 28px;
  }

  .option-card {
    padding: 15px;
  }

  .action-row .button {
    flex: 1;
    padding-inline: 14px;
  }

  footer span {
    display: none;
  }

  footer a {
    display: inline-block;
    margin: 5px 7px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .site-header,
  .hero,
  .guide-aside,
  .progress-row,
  #setup-form,
  .result-actions,
  footer {
    display: none !important;
  }

  .page {
    width: 100%;
    padding: 0;
  }

  .guide-shell {
    display: block;
    min-height: 0;
    border: 0;
    box-shadow: none;
  }

  .guide-main {
    padding: 0;
  }
}
