:root {
  font-family: Geist, Inter, "Segoe UI", sans-serif;
  color: #201b2e;
  background: #faf9f6;
  line-height: 1.55;
  --ink: #201b2e;
  --muted: #625c70;
  --brand: #512bc5;
  --brand-dark: #4020a6;
  --accent: #6841dd;
  --soft: #f2edfd;
  --line: #e4dfea;
  --surface: #fff;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--brand); text-underline-offset: .21em; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #815fe3; outline-offset: 4px; }
.wrap { width: min(100% - 40px, 1216px); margin-inline: auto; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 79px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -.045em;
  line-height: 1.1;
}
.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .015em;
}
.mark {
  width: 38px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--brand);
}
.mark::before, .mark::after {
  content: "";
  grid-area: 1/1;
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 3px;
  transform: rotate(45deg) translate(-3px, 3px);
}
.mark::after {
  border-color: #d0befc;
  transform: rotate(45deg) translate(3px, -3px);
}
.header-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding-inline: 3px;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
  text-decoration: none;
}
.header-link:hover { color: var(--brand); text-decoration: underline; }

.hero { display: grid; gap: 28px; padding-block: 34px 26px; align-items: center; }
.hero-copy { min-width: 0; }
h1, h2 { margin: 0 0 16px; color: var(--ink); font-weight: 770; letter-spacing: -.058em; line-height: 1.06; }
h1 { font-size: clamp(37px, 7.7vw, 70px); max-width: 14ch; }
.hero h1 { text-wrap: balance; }
h1 em { color: var(--brand); font-style: normal; white-space: nowrap; }
h2 { font-size: clamp(25px, 3vw, 35px); }
p { margin: 0 0 17px; }
.hero-copy > p:not(.support) {
  margin: 0 0 23px;
  color: var(--muted);
  max-width: 40ch;
  line-height: 1.55;
  font-size: clamp(16px, 2vw, 19px);
}
.primary, .secondary {
  display: inline-flex;
  min-height: 55px;
  align-items: center;
  justify-content: center;
  gap: 17px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 9px;
  text-align: center;
  text-decoration: none;
  font-weight: 710;
  transition: background-color 150ms, border-color 150ms, box-shadow 150ms;
}
.primary { background: var(--brand); color: #fff; box-shadow: 0 2px 2px #31178118; }
.primary:hover { background: var(--brand-dark); box-shadow: 0 4px 16px #4825b12d; }
.secondary { background: var(--surface); border-color: var(--line); color: var(--brand); }
.secondary:hover { background: var(--soft); border-color: #bfa9ed; }
.hero .primary { width: 100%; justify-content: space-between; }
.button-arrow, .choice-arrow {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  font: 700 20px/1 system-ui, sans-serif;
}
.button-arrow::before, .choice-arrow::before { content: "→"; }
.support {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.support span + span::before {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 9px 2px 0;
  content: "";
  border-radius: 50%;
  background: #a28ac9;
}
.hero-art {
  position: relative;
  overflow: hidden;
  display: block;
  min-width: 0;
  margin: 0;
  aspect-ratio: 1.6;
  border-radius: 15px;
  background: #eae2f8;
}
.hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 52%; }
.trust {
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 20px 0 4px;
  color: var(--muted);
  font-size: 14px;
}
.trust strong { color: var(--ink); }
.notice {
  max-width: 720px;
  padding: 11px 14px;
  margin: 20px auto 0;
  border: 1px solid #ded2f6;
  border-radius: 9px;
  color: #514665;
  background: var(--soft);
  font-size: 13px;
}

.card {
  max-width: 700px;
  margin: 33px auto 30px;
  padding: clamp(20px, 5vw, 46px);
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: 0 16px 34px #251b3a08;
  scroll-margin-top: 16px;
}
.card h1 { font-size: clamp(28px, 5vw, 46px); max-width: none; }
.card > p { max-width: 58ch; }
.eyebrow { margin: 0 0 9px; color: var(--brand); font-size: 13px; font-weight: 750; }
.progress {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 5px;
  margin: 0 0 27px;
}
.progress span { height: 5px; border-radius: 6px; background: #e9e3f3; }
.progress .current { background: var(--brand); }
.progress .complete { background: #9c83e9; }
.choices { display: grid; gap: 8px; margin: 23px 0 13px; }
.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 57px;
  padding: 11px 12px;
  border: 1px solid #ded7e8;
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  font-weight: 630;
  transition: background-color 150ms, border-color 150ms;
}
.choice:hover, .choice[aria-pressed="true"] { border-color: #9b79e6; background: var(--soft); }
.choice-dot {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  flex: none;
  border: 1.5px solid #9385a6;
  border-radius: 50%;
}
.choice[aria-pressed="true"] .choice-dot { border-color: var(--brand); }
.choice[aria-pressed="true"] .choice-dot::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}
.choice-arrow { margin-left: auto; color: #76648d; }
.choice:hover .choice-arrow, .choice[aria-pressed="true"] .choice-arrow { color: var(--brand); }
.back {
  min-height: 48px;
  padding: 0 8px;
  margin-left: -8px;
  border: 0;
  background: transparent;
  color: var(--brand);
  font-weight: 710;
}
.back span { margin-right: 7px; }
.back:hover { text-decoration: underline; }

.result-intro {
  background: var(--soft);
  padding: clamp(17px, 3.6vw, 28px);
  border-radius: 12px;
}
.result-intro h1 { font-size: clamp(28px, 4.6vw, 43px); }
.result-intro > p:last-child { margin: 0; color: var(--muted); }
.reasons { display: grid; padding: 0; list-style: none; margin: 8px 0 22px; }
.reasons li { padding: 14px 1px 14px 20px; border-bottom: 1px solid var(--line); position: relative; }
.reasons li::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.reasons strong { display: block; }
.reasons span, .muted, .help { color: var(--muted); }
.help { margin: 10px 0; font-size: .88rem; }
summary { min-height: 44px; cursor: pointer; color: var(--brand); padding: 9px 0; font-weight: 650; }
form { border-top: 1px solid var(--line); margin-top: 23px; padding-top: 22px; }
.field { margin: 0 0 15px; }
.field label { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 680; }
.field input:not([type=checkbox]) {
  width: 100%;
  min-height: 51px;
  padding: 10px 13px;
  border: 1px solid #8e819e;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}
.field input[readonly] { background: #f3eff9; }
.field [aria-invalid=true] { border-color: #a3192c !important; }
.check { display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px; background: var(--soft); border-radius: 8px; }
.check input { width: 22px; height: 22px; flex: none; margin: 3px 0 0; accent-color: var(--brand); }
.check label { margin: 0; font-weight: 500; }
.error { color: #a3192c; font-size: .88rem; margin: 3px 0 0; }
.hp { position: absolute; clip-path: inset(100%); width: 1px; height: 1px; overflow: hidden; }
form .primary { width: 100%; }
.store-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0; }
.qr { display: block; width: 180px; height: 180px; margin: 14px 0; }
.loader {
  display: inline-block;
  border: 3px solid #e7ddf8;
  border-top-color: var(--brand);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.footer {
  border-top: 1px solid var(--line);
  background: #f4f1f6;
  margin-top: 27px;
  padding: 20px 0 24px;
  color: var(--muted);
  font-size: 12px;
}
.footer p { margin: 0 0 7px; }
.footer p:last-child { margin-bottom: 0; }
.footer strong { color: var(--ink); }
dialog::backdrop { background: #21153880; }

@media (min-width: 480px) {
  .hero .primary { width: auto; min-width: 232px; }
}
@media (min-width: 820px) {
  .wrap { width: min(100% - 104px, 1216px); }
  .top { min-height: 87px; }
  .hero {
    grid-template-columns: minmax(0, .99fr) minmax(0, 1.01fr);
    gap: clamp(28px, 5.2vw, 77px);
    padding-block: 54px 38px;
  }
  .hero-copy { padding-block: 10px; }
  .hero h1 { font-size: clamp(44px, 5.1vw, 72px); margin-bottom: 22px; }
  .hero-copy > p:not(.support) { margin-bottom: 26px; }
  .hero-art { aspect-ratio: 1.16; border-radius: 18px; }
  .support { font-size: 13px; margin-top: 13px; }
  .trust { padding-top: 23px; }
  .card { margin-block: 48px 38px; }
  .choice { padding-inline: 15px; }
  .footer { margin-top: 31px; }
  .footer > .wrap { display: grid; grid-template-columns: 1.45fr 1fr; gap: 0 24px; }
  .footer p:nth-child(2) { grid-row: 2; }
  .footer p:last-child { grid-column: 2; grid-row: 1 / span 2; justify-self: end; text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
