:root {
  --ink: #22252f;
  --muted: #737784;
  --line: #e8e8ed;
  --paper: #fffdfb;
  --cream: #f8f2ed;
  --peach: #ffb28e;
  --coral: #f2785d;
  --plum: #514561;
  --lavender: #eee9f6;
  --shadow: 0 24px 70px rgba(74, 55, 56, 0.12);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--cream);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 8% 10%, rgba(255, 195, 164, 0.24), transparent 26rem),
    radial-gradient(circle at 88% 20%, rgba(214, 205, 235, 0.28), transparent 24rem),
    var(--cream);
}

button { font: inherit; }

.app-shell {
  width: min(1120px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(81, 69, 97, 0.1);
}

.brand-mark {
  color: var(--plum);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.brand-mark span {
  width: 27px;
  height: 27px;
  margin-right: 8px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  color: white;
  background: var(--plum);
  font-family: Georgia, serif;
  font-size: 18px;
  font-style: italic;
}

.prototype-label {
  padding: 7px 11px;
  border: 1px solid rgba(81, 69, 97, 0.16);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}

main { flex: 1; }

.screen { padding: 72px 0 48px; }
.screen[hidden], .modal[hidden] { display: none; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: clamp(48px, 8vw, 104px);
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--coral);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

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

.hero-copy h1 {
  max-width: 610px;
  margin-bottom: 24px;
  color: var(--ink);
  font-size: clamp(40px, 5vw, 66px);
  line-height: 1.1;
  letter-spacing: -0.06em;
}

.hero-copy h1 em {
  color: var(--coral);
  font-style: normal;
}

.hero-lede {
  max-width: 520px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 13px;
}

.proof-row strong { margin-right: 3px; color: var(--plum); font-size: 18px; }

.button {
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover { transform: translateY(-2px); }
.button:focus-visible, .text-button:focus-visible, .modal-close:focus-visible { outline: 3px solid rgba(242, 120, 93, 0.34); outline-offset: 3px; }

.button-primary {
  padding: 15px 20px;
  color: white;
  background: var(--plum);
  box-shadow: 0 12px 24px rgba(81, 69, 97, 0.18);
}

.button-primary:hover { background: #3f354d; box-shadow: 0 16px 28px rgba(81, 69, 97, 0.24); }
.button-primary span { display: inline-block; margin-left: 15px; font-size: 18px; }

.button-ghost {
  padding: 14px 18px;
  color: var(--plum);
  border: 1px solid rgba(81, 69, 97, 0.18);
  background: transparent;
}

.button-ghost:hover { background: rgba(255, 255, 255, 0.56); }
.button:disabled { cursor: not-allowed; opacity: 0.4; transform: none; box-shadow: none; }

.disclaimer {
  max-width: 440px;
  margin: 16px 0 0;
  color: #9a989c;
  font-size: 11px;
  line-height: 1.7;
}

.hero-card {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 34px;
  color: white;
  background: linear-gradient(145deg, #7d6a8f 0%, #5b4e6f 53%, #40394e 100%);
  box-shadow: var(--shadow);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.36;
  background-image: radial-gradient(rgba(255,255,255,0.3) 1px, transparent 1px);
  background-size: 19px 19px;
  mask-image: linear-gradient(to bottom, black, transparent 74%);
}

.orb { position: absolute; border-radius: 50%; filter: blur(3px); }
.orb-one { width: 230px; height: 230px; top: -82px; right: -64px; background: rgba(255, 194, 150, 0.58); }
.orb-two { width: 170px; height: 170px; bottom: -58px; left: -35px; background: rgba(167, 147, 198, 0.4); }

.preview-topline, .preview-footer { position: relative; display: flex; justify-content: space-between; color: rgba(255,255,255,0.68); font-size: 12px; letter-spacing: 0.06em; }
.sparkle { color: #ffd1b0; font-size: 18px; }

.preview-bubble { position: relative; width: fit-content; max-width: 220px; margin-top: 42px; padding: 13px 16px; border-radius: 15px 15px 15px 3px; color: #4c4259; background: rgba(255,255,255,0.92); font-size: 13px; line-height: 1.5; box-shadow: 0 8px 20px rgba(30, 20, 40, 0.12); }
.bubble-right { margin: 14px 0 0 auto; border-radius: 15px 15px 3px 15px; color: white; background: rgba(247, 166, 133, 0.9); }

.preview-center { position: relative; margin: 40px auto 64px; text-align: center; }
.preview-ring { width: 112px; height: 112px; margin: 0 auto 15px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,0.54); border-radius: 50%; background: rgba(255,255,255,0.11); box-shadow: inset 0 0 0 14px rgba(255,255,255,0.05); }
.preview-ring span { color: #ffcfaa; font-family: Georgia, serif; font-size: 50px; font-style: italic; }
.preview-center p { margin: 0; color: rgba(255,255,255,0.72); font-size: 13px; line-height: 1.8; }
.preview-center strong { color: white; font-size: 17px; }

.product-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 70px; padding: 22px 26px; border: 1px solid rgba(81, 69, 97, 0.1); border-radius: 18px; background: rgba(255,255,255,0.58); }
.strip-label { margin: 0 0 6px; color: var(--coral); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; }
.strip-title { margin: 0; color: var(--plum); font-size: 14px; }
.strip-price { color: var(--coral); font-size: 29px; font-weight: 800; white-space: nowrap; }
.strip-price small { font-size: 15px; }

.quiz-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; color: var(--muted); font-size: 13px; }
.text-button { padding: 5px 0; border: 0; color: var(--plum); background: transparent; cursor: pointer; }
.progress-track { height: 5px; overflow: hidden; border-radius: 999px; background: #e8e1e2; }
.progress-bar { width: 10%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--coral), #ffbd95); transition: width 240ms ease; }
.question-card { max-width: 720px; margin: 74px auto 0; }
.question-kicker { margin-bottom: 17px; color: var(--coral); font-size: 12px; font-weight: 800; letter-spacing: 0.16em; }
.question-card h2 { margin-bottom: 12px; font-size: clamp(29px, 4vw, 47px); line-height: 1.25; letter-spacing: -0.05em; }
.question-help { margin-bottom: 34px; color: var(--muted); font-size: 14px; }
.options { display: grid; gap: 12px; }
.option-button { width: 100%; padding: 18px 20px; display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: rgba(255,255,255,0.68); cursor: pointer; text-align: left; transition: border-color 160ms ease, background 160ms ease, transform 160ms ease; }
.option-button:hover { border-color: var(--peach); background: white; transform: translateX(3px); }
.option-index { flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--plum); background: var(--lavender); font-size: 12px; font-weight: 800; }
.option-button.selected { border-color: var(--coral); background: #fff5f1; }
.option-button.selected .option-index { color: white; background: var(--coral); }
.quiz-footer { max-width: 720px; margin: 28px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.privacy-note { color: #9a989c; font-size: 11px; }

.result-header { max-width: 680px; margin: 0 auto 42px; text-align: center; }
.result-header .eyebrow { margin-bottom: 14px; }
.result-header h2 { margin-bottom: 30px; color: var(--muted); font-size: 16px; font-weight: 500; }
.result-badge { width: 84px; height: 84px; margin: 0 auto 19px; display: grid; place-items: center; border-radius: 28px; color: white; background: linear-gradient(145deg, var(--coral), #ef916c); box-shadow: 0 14px 28px rgba(242,120,93,0.24); }
.result-badge span { font-family: Georgia, serif; font-size: 42px; font-style: italic; }
.result-header h1 { margin-bottom: 10px; font-size: clamp(34px, 5vw, 54px); letter-spacing: -0.06em; }
.result-tag { margin-bottom: 18px; color: var(--coral); font-weight: 700; }
.result-summary { margin: 0 auto; color: var(--muted); font-size: 15px; line-height: 1.85; }
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.result-panel, .advice-panel { padding: 26px; border: 1px solid rgba(81, 69, 97, 0.1); border-radius: 20px; background: rgba(255,255,255,0.72); }
.panel-soft { background: rgba(238,233,246,0.66); }
.panel-label { margin-bottom: 18px; color: var(--plum); font-size: 12px; font-weight: 800; letter-spacing: 0.1em; }
.result-list, .advice-list { margin: 0; padding: 0; list-style: none; }
.result-list li, .advice-list li { position: relative; margin-bottom: 12px; padding-left: 20px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.result-list li:last-child, .advice-list li:last-child { margin-bottom: 0; }
.result-list li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 7px; height: 7px; border-radius: 50%; background: var(--peach); }
.advice-panel { margin-top: 16px; display: flex; justify-content: space-between; gap: 30px; background: var(--plum); }
.advice-panel .panel-label { color: #ffd0b6; }
.advice-list li { color: rgba(255,255,255,0.78); }
.advice-list li::before { content: "✦"; position: absolute; left: 0; color: #ffb28e; font-size: 11px; }
.advice-icon { align-self: flex-start; color: #ffb28e; font-size: 33px; }
.result-actions { margin-top: 28px; display: flex; justify-content: center; gap: 12px; }
.result-disclaimer { max-width: 600px; margin: 17px auto 0; text-align: center; }

.site-footer { padding: 26px 0 34px; color: #a19da3; font-size: 11px; text-align: center; }

.modal { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(35, 30, 42, 0.42); backdrop-filter: blur(4px); }
.modal-card { position: relative; max-width: 440px; padding: 32px; border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); }
.modal-card h2 { margin-bottom: 14px; font-size: 26px; letter-spacing: -0.04em; }
.modal-card p:not(.eyebrow) { color: var(--muted); font-size: 14px; line-height: 1.8; }
.modal-close { position: absolute; top: 16px; right: 19px; width: 30px; height: 30px; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 25px; }
.modal-ok { margin-top: 8px; }

@media (max-width: 760px) {
  .app-shell { width: min(100% - 28px, 600px); }
  .topbar { height: 70px; }
  .screen { padding-top: 45px; }
  .hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .hero-copy h1 { font-size: clamp(38px, 12vw, 57px); }
  .hero-card { min-height: 390px; padding: 24px; }
  .preview-center { margin-top: 30px; margin-bottom: 48px; }
  .product-strip { margin-top: 40px; padding: 18px; }
  .strip-title { max-width: 235px; font-size: 12px; line-height: 1.6; }
  .question-card { margin-top: 50px; }
  .result-grid { grid-template-columns: 1fr; }
  .result-actions { flex-direction: column; }
  .result-actions .button { width: 100%; }
}

@media (max-width: 420px) {
  .brand-mark { font-size: 12px; }
  .proof-row { gap: 16px; }
  .option-button { padding: 15px; font-size: 14px; }
  .quiz-footer { align-items: flex-start; flex-direction: column-reverse; }
  .privacy-note { align-self: flex-end; }
}
