:root {
  color-scheme: light;
  --bg: #fbfaf6;
  --surface: #ffffff;
  --ink: #141414;
  --muted: #616967;
  --line: #e2e2dc;
  --accent: #1268ff;
  --accent-strong: #0646c9;
  --mint: #39d7c8;
  --yellow: #ffd84d;
  --coral: #ff7a59;
  --warm: #ff7a59;
  --shadow: 0 22px 58px rgba(20, 20, 20, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 4%, rgba(255, 216, 77, 0.22), transparent 24%),
    radial-gradient(circle at 92% 10%, rgba(57, 215, 200, 0.18), transparent 26%),
    var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
}

.site-header,
.footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 22px 20px;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand::before {
  background: var(--ink);
  border-radius: 50%;
  box-shadow: 10px 0 0 var(--yellow), 20px 0 0 var(--mint);
  content: "";
  height: 10px;
  width: 10px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.nav a:hover,
.footer-links a:hover {
  color: var(--accent-strong);
}

main {
  margin: 0 auto;
  max-width: 1180px;
  padding: 20px;
}

.hero {
  align-items: stretch;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  min-height: 640px;
}

.hero-copy {
  align-content: center;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 216, 77, 0.85), transparent 13%),
    radial-gradient(circle at 84% 70%, rgba(57, 215, 200, 0.85), transparent 16%),
    linear-gradient(135deg, #ffffff 0%, #f5fbff 54%, #e9f6ff 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  color: var(--ink);
  display: grid;
  min-height: 560px;
  padding: clamp(28px, 6vw, 72px);
  position: relative;
  overflow: hidden;
}

.hero-copy > :not(.shape) {
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  font-size: clamp(40px, 6vw, 76px);
  letter-spacing: 0;
  line-height: 1.03;
  margin: 0;
  max-width: 760px;
}

.hero-copy p {
  font-size: 17px;
  margin: 20px 0 0;
  max-width: 620px;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 12px;
}

.hero-copy .eyebrow {
  color: var(--accent);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-badges span,
.form-label,
.section-kicker {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero-badges span {
  background: var(--ink);
  border-radius: 999px;
  color: #fff;
  padding: 8px 12px;
}

.shape {
  border-radius: 999px;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.shape-blue {
  background: var(--accent);
  height: 86px;
  right: 56px;
  top: 76px;
  width: 86px;
}

.shape-yellow {
  background: var(--yellow);
  bottom: 72px;
  height: 46px;
  right: 210px;
  transform: rotate(-12deg);
  width: 138px;
}

.shape-coral {
  background: var(--coral);
  border-radius: 24px;
  height: 74px;
  right: 36px;
  bottom: 132px;
  transform: rotate(13deg);
  width: 74px;
}

.diagnosis,
.result,
.notice,
.article,
.related {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.diagnosis {
  align-self: center;
  padding: 26px;
  position: relative;
}

.diagnosis::before {
  background: var(--yellow);
  border-radius: 18px;
  content: "";
  height: 44px;
  position: absolute;
  right: -10px;
  top: -14px;
  transform: rotate(10deg);
  width: 96px;
  z-index: -1;
}

.form-label {
  color: var(--coral);
  margin: 0 0 6px;
}

.navigator-card {
  background: #f6fbff;
  border: 1px solid #d8ebff;
  border-radius: 18px;
  margin: 14px 0 18px;
  padding: 16px;
}

.navigator-card strong,
.navigator-note strong,
.navigator-rules strong {
  display: block;
  font-weight: 900;
}

.navigator-card p,
.navigator-note p,
.navigator-rules p {
  color: var(--muted);
  margin: 6px 0 0;
}

.step-progress {
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 13px;
  font-weight: 800;
  justify-content: space-between;
  padding-bottom: 12px;
}

fieldset {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 20px 0;
}

fieldset:first-child {
  border-top: 0;
  padding-top: 0;
}

legend {
  font-weight: 800;
  padding: 0 0 8px;
}

label {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
}

input[type="radio"] {
  accent-color: var(--accent);
}

label:hover {
  background: #f4f8ff;
  border-color: var(--accent);
}

label:has(input[type="radio"]:checked) {
  background: #eaf3ff;
  border-color: var(--accent);
  font-weight: 600;
}

.progress-bar {
  background: var(--line);
  border-radius: 999px;
  height: 4px;
  margin: 12px 0 4px;
  overflow: hidden;
}

.progress-fill {
  background: var(--accent);
  border-radius: 999px;
  height: 100%;
  transition: width 300ms ease;
}

.primary-button,
.secondary-button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  text-decoration: none;
}

.primary-button {
  background: var(--accent);
  color: #fff;
  width: 100%;
}

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

.secondary-button {
  background: #ecf4ff;
  color: var(--accent-strong);
}

.form-controls {
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
}

.form-controls .primary-button {
  grid-column: 2;
}

.form-controls .secondary-button {
  grid-column: 1;
}

.form-controls .primary-button:first-child,
.form-controls .primary-button:last-child {
  width: 100%;
}

.disabled-link {
  cursor: default;
  opacity: 0.78;
}

.result,
.topics,
.choice-section,
.checklist-band,
.notice,
.final-cta,
.article,
.related {
  margin-top: 34px;
}

.result {
  scroll-margin-top: 24px;
}

.result,
.choice-section,
.notice,
.final-cta,
.article,
.related {
  padding: 34px;
}

.result h2,
.topics h2,
.choice-section h2,
.checklist-band h2,
.final-cta h2,
.notice h2,
.article h1,
.article h2,
.navigator-section h2,
.related h2 {
  letter-spacing: 0;
  line-height: 1.22;
  margin: 0 0 14px;
}

.section-kicker {
  color: var(--accent);
  margin: 0 0 12px;
}

.section-heading {
  align-items: end;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  margin-bottom: 22px;
}

.section-heading h2,
.topics h2,
.checklist-band h2,
.final-cta h2 {
  font-size: clamp(30px, 4vw, 52px);
}

.section-heading p {
  color: var(--muted);
  margin: 0;
}

.navigator-section {
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  margin-top: 34px;
  padding: 34px;
}

.navigator-section h2 {
  font-size: clamp(28px, 4vw, 48px);
}

.navigator-section > div > p {
  color: var(--muted);
  margin: 0;
}

.navigator-rules {
  display: grid;
  gap: 14px;
}

.navigator-rules article {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
}

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

.choice-card {
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: 24px;
  min-height: 210px;
  padding: 22px;
}

.choice-card span {
  color: var(--accent);
  font-size: 34px;
  font-weight: 900;
}

.choice-card h3 {
  font-size: 21px;
  line-height: 1.3;
  margin: 22px 0 8px;
}

.choice-card p {
  color: var(--muted);
  margin: 0;
}

.blue-card {
  background: #eaf3ff;
}

.yellow-card {
  background: #fff4bd;
}

.mint-card {
  background: #dff9f5;
}

.coral-card {
  background: #ffe8df;
}

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

.result-actions .primary-button,
.result-actions .secondary-button {
  width: auto;
}

.result-points {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 1.2em;
}

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

.topic-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.94)),
    var(--accent);
  border: 1px solid var(--line);
  border-radius: 24px;
  display: grid;
  gap: 10px;
  min-height: 190px;
  padding: 26px;
  position: relative;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.topic-card::after {
  background: var(--yellow);
  border-radius: 999px;
  bottom: 22px;
  content: "";
  height: 16px;
  position: absolute;
  right: 22px;
  width: 56px;
}

.topic-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.topic-card span {
  color: var(--warm);
  font-size: 13px;
  font-weight: 800;
}

.topic-card strong {
  font-size: 22px;
  line-height: 1.45;
}

.checklist-band {
  align-items: start;
  background: #111;
  border-radius: 28px;
  color: #fff;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  overflow: hidden;
  padding: 42px;
  position: relative;
}

.checklist-band::after {
  background: var(--mint);
  border-radius: 999px;
  content: "";
  height: 120px;
  position: absolute;
  right: -34px;
  top: -34px;
  width: 120px;
}

.checklist-band .section-kicker {
  color: var(--yellow);
}

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

.checklist li {
  align-items: center;
  background: #fff;
  border-radius: 18px;
  color: var(--ink);
  display: flex;
  gap: 16px;
  min-height: 68px;
  padding: 16px;
}

.checklist span {
  color: var(--accent);
  font-size: 26px;
  font-weight: 900;
}

.final-cta {
  background: var(--accent);
  border-radius: 28px;
  color: #fff;
  overflow: hidden;
  position: relative;
}

.final-cta > * {
  position: relative;
  z-index: 1;
}

.final-cta::after {
  background: var(--yellow);
  border-radius: 999px;
  content: "";
  height: 160px;
  position: absolute;
  right: 36px;
  top: -54px;
  width: 160px;
  z-index: 0;
}

.final-cta .section-kicker {
  color: #dff9f5;
}

.cta-button {
  background: #fff;
  color: var(--accent-strong);
  margin-top: 8px;
  max-width: 240px;
}

.article {
  max-width: 820px;
}

.article h1 {
  font-size: clamp(32px, 5vw, 52px);
}

.article p,
.article li,
.notice p,
.legal-page p,
.legal-page li,
.legal-page dd {
  color: var(--muted);
}

.article ul {
  padding-left: 1.4em;
}

.article h3 {
  line-height: 1.3;
  margin: 0 0 10px;
}

.navigator-note {
  background: #fff7db;
  border: 1px solid #f2dc93;
  border-radius: 20px;
  margin: 24px 0;
  padding: 18px;
}

.decision-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0 6px;
}

.decision-grid section {
  background: #f9faf7;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
}

.action-steps {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 1.4em;
}

.offer-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.offer {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
}

.offer strong {
  display: block;
}

.article-cta {
  background:
    radial-gradient(circle at 88% 16%, rgba(255, 216, 77, 0.55), transparent 24%),
    linear-gradient(135deg, #eaf3ff 0%, #f5fbff 100%);
  border: 1px solid #d8ebff;
  border-radius: 22px;
  margin-top: 26px;
  padding: 26px;
  text-align: center;
}

.article-cta strong {
  display: block;
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 6px;
}

.article-cta p {
  margin: 0 auto 16px;
  max-width: 520px;
}

.article-cta .primary-button {
  margin: 0 auto;
  max-width: 320px;
}

.result-reset {
  border-top: 1px solid var(--line);
  margin: 20px 0 0;
  padding-top: 16px;
  text-align: center;
}

.result-reset button {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  text-decoration: underline;
}

.result-reset button:hover {
  color: var(--ink);
}

.footer {
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.legal-page {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  margin-top: 28px;
  max-width: 860px;
  padding: 28px;
}

.legal-page h1 {
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0 0 18px;
}

.legal-page h2 {
  border-top: 1px solid var(--line);
  letter-spacing: 0;
  margin: 28px 0 10px;
  padding-top: 22px;
}

.legal-page dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.legal-page dt {
  font-weight: 800;
}

.legal-page dd {
  margin: 0;
}

@media (max-width: 840px) {
  .site-header,
  .footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .hero,
  .topic-grid,
  .choice-grid,
  .section-heading,
  .checklist-band,
  .navigator-section,
  .decision-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero-copy {
    min-height: 480px;
  }

  .shape {
    opacity: 0.38;
  }
}
