:root {
  --paper: #eef3fb;
  --paper-deep: #dde6f3;
  --ink: #14213d;
  --muted: #64708a;
  --line: rgba(20, 33, 61, .14);
  --green: #1647d8;
  --green-soft: #dbe6ff;
  --lime: #ff8a4c;
  --white: #ffffff;
  --radius: 22px;
  --sans: "Avenir Next", Avenir, Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 83% 8%, rgba(255, 138, 76, .2), transparent 25rem),
    radial-gradient(circle at 8% 48%, rgba(22, 71, 216, .11), transparent 30rem),
    var(--paper);
  font-family: var(--sans);
}

button, input, a { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid rgba(22, 71, 216, .3);
  outline-offset: 3px;
}

.intro-lead,
.question-help,
.result-intro p,
.consult-card p,
.disclaimer,
.result-list li {
  text-wrap: pretty;
  word-break: auto-phrase;
  line-break: strict;
}

h1, h2, h3 { text-wrap: balance; }
.keep-tail { white-space: nowrap; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.demo-nav {
  width: min(1240px, calc(100% - 48px));
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.demo-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.demo-brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px 11px 3px 11px;
  color: var(--white);
  background: var(--green);
  font-weight: 900;
}

.demo-brand b,
.demo-brand small { display: block; }
.demo-brand b { font-size: 13px; letter-spacing: .11em; }
.demo-brand small { margin-top: 2px; color: var(--muted); font-size: 8px; letter-spacing: .16em; }
.demo-label { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; }

.demo-shell {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 54px 0 80px;
}

.intro-panel {
  min-height: calc(100vh - 240px);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  gap: clamp(54px, 8vw, 118px);
  align-items: center;
}

.intro-copy { padding: 36px 0; }
.eyebrow {
  margin: 0 0 18px;
  color: #566b9a;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .18em;
}

.intro-copy h1 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(38px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.intro-copy h1 span { color: var(--green); }

.intro-lead {
  max-width: 580px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.7;
}

.intro-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
}

.intro-actions > span { color: var(--muted); font-size: 12px; }
.primary-button,
.secondary-button,
.text-button {
  border: 0;
  cursor: pointer;
  text-decoration: none;
}

.primary-button,
.secondary-button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
}

.primary-button {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 15px 35px rgba(22, 71, 216, .18);
}

.primary-button:hover { transform: translateY(-2px); }
.primary-button:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.secondary-button { border: 1px solid var(--line); color: var(--ink); background: transparent; }
.text-button { padding: 6px 0; color: var(--muted); background: transparent; font-size: 13px; }
.text-button:hover { color: var(--ink); }

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 40px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--muted);
  font-size: 12px;
}

.trust-list span { color: var(--green); font-weight: 900; }
.intro-visual { min-width: 0; padding: 42px 0; }
.photo-stack { position: relative; min-height: 480px; }
.photo-card {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 8px solid var(--white);
  border-radius: var(--radius);
  box-shadow: 0 28px 60px rgba(22, 28, 25, .15);
}
.photo-card img { width: 100%; height: 100%; display: block; object-fit: cover; }
.photo-card-main { inset: 4% 1% 11% 18%; transform: rotate(-1.2deg); }
.photo-card-secondary { width: 40%; height: 38%; left: 0; bottom: 0; transform: rotate(3deg); }
.floating-card {
  position: absolute;
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 18px;
  color: #fff;
  background: rgba(20, 33, 61, .94);
  box-shadow: 0 20px 45px rgba(22, 28, 25, .22);
  backdrop-filter: blur(12px);
}
.floating-card span { color: rgba(255,255,255,.7); font-size: 10px; letter-spacing: .08em; }
.floating-card strong { font-size: 17px; }
.floating-score { top: 2%; left: 3%; min-width: 150px; }
.floating-score strong { color: var(--lime); font-size: 44px; line-height: 1; }
.floating-score small { font-size: 18px; }
.floating-next { right: -2%; bottom: 17%; min-width: 190px; }

.quiz-panel,
.result-panel { width: min(960px, 100%); margin: 0 auto; }
.quiz-topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.progress-meta { display: flex; gap: 14px; color: var(--muted); font-size: 12px; }
.progress-meta b { color: var(--green); }
.progress-track { height: 5px; margin-top: 16px; overflow: hidden; border-radius: 99px; background: rgba(22, 71, 216, .12); }
.progress-track span { display: block; width: 16.67%; height: 100%; border-radius: inherit; background: var(--green); transition: width .35s ease; }

.question-card { min-height: 560px; padding: clamp(42px, 7vw, 72px); margin-top: 28px; border-radius: var(--radius); background: var(--white); box-shadow: 0 24px 65px rgba(24, 34, 30, .08); }
.question-number { color: #bdc5bf; font-size: 13px; font-weight: 900; letter-spacing: .14em; }
.question-card .eyebrow { margin: 28px 0 12px; }
.question-card h2 { max-width: 720px; margin: 0; font-size: clamp(30px, 3.8vw, 42px); line-height: 1.12; letter-spacing: -.035em; }
.question-help { max-width: 660px; margin: 18px 0 0; color: var(--muted); line-height: 1.75; }
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 38px 0 0; padding: 0; border: 0; }
.option-card { position: relative; display: block; }
.option-card input { position: absolute; opacity: 0; pointer-events: none; }
.option-content {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 17px;
  color: #3f4743;
  background: #faf8f2;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.option-content::after { content: ""; width: 19px; height: 19px; flex: none; border: 1px solid #aeb6b1; border-radius: 50%; }
.option-content:hover { border-color: rgba(22, 71, 216, .45); transform: translateY(-1px); }
.option-card input:checked + .option-content { border-color: var(--green); color: var(--ink); background: var(--green-soft); }
.option-card input:checked + .option-content::after { border: 6px solid var(--green); background: var(--lime); }
.option-card input:focus-visible + .option-content { outline: 3px solid rgba(22, 71, 216, .25); outline-offset: 3px; }
.quiz-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 34px; }

.result-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 52px;
  align-items: center;
  padding: clamp(32px, 7vw, 70px);
  border-radius: var(--radius);
  color: #fff;
  background: var(--green);
}
.result-intro .eyebrow { color: rgba(255,255,255,.56); }
.result-stage-label { display: block; margin-bottom: 10px; color: rgba(255,255,255,.7); font-size: 13px; }
.result-intro h2 { margin: 0; color: #ffffff; font-size: clamp(34px, 4.5vw, 48px); line-height: 1.08; letter-spacing: -.04em; }
.result-intro p:last-child { max-width: 610px; margin: 24px 0 0; color: rgba(255,255,255,.75); font-size: 16px; line-height: 1.8; }
.score-ring {
  --score: 78;
  width: 180px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--lime) calc(var(--score) * 1%), rgba(255,255,255,.12) 0);
}
.score-ring::before { content: ""; grid-area: 1 / 1; width: 148px; aspect-ratio: 1; border-radius: 50%; background: var(--green); }
.score-ring > div { z-index: 1; grid-area: 1 / 1; text-align: center; }
.score-ring strong { color: #fff; font-size: 52px; line-height: 1; letter-spacing: -.05em; }
.score-ring span { color: var(--lime); font-size: 18px; }
.score-ring small { display: block; margin-top: 7px; color: rgba(255,255,255,.55); font-size: 10px; }

.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.result-card { min-height: 330px; padding: clamp(28px, 5vw, 46px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.result-card-dark { color: #fff; background: #14213d; }
.card-index { color: #8b948f; font-size: 11px; font-weight: 850; letter-spacing: .16em; }
.result-card h3 { margin: 24px 0 28px; font-size: clamp(23px, 2.4vw, 29px); line-height: 1.14; letter-spacing: -.03em; }
.result-list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.result-list li { position: relative; padding-left: 30px; line-height: 1.6; }
.positive-list li { color: rgba(255,255,255,.7); }
.positive-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--lime); font-weight: 900; }
.action-list { counter-reset: action; }
.action-list li { counter-increment: action; color: #4c544f; }
.action-list li::before { content: counter(action); position: absolute; left: 0; top: 1px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: var(--green-soft); font-size: 10px; font-weight: 900; }

.consult-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 42px;
  align-items: center;
  margin-top: 14px;
  padding: clamp(30px, 5vw, 48px);
  border-radius: var(--radius);
  background: #ffd9c5;
}
.consult-card h3 { max-width: 620px; margin: 0; font-size: clamp(26px, 3.2vw, 34px); line-height: 1.12; letter-spacing: -.035em; }
.consult-card p:last-child { max-width: 650px; margin: 17px 0 0; color: #665247; line-height: 1.7; }
.consult-actions { min-width: 220px; display: grid; gap: 10px; }
.consult-actions .text-button { justify-self: center; }
.disclaimer { max-width: 800px; margin: 24px auto 0; color: #7a807c; font-size: 11px; line-height: 1.75; text-align: center; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 10; transform: translateX(-50%); padding: 12px 18px; border-radius: 999px; color: #fff; background: #14213d; box-shadow: 0 12px 30px rgba(0,0,0,.18); font-size: 13px; }

@media (max-width: 900px) {
  .intro-panel { grid-template-columns: 1fr; }
  .intro-copy { padding-bottom: 0; }
  .intro-visual { padding-top: 0; }
  .photo-stack { min-height: 460px; }
  .result-hero { grid-template-columns: 1fr; }
  .score-ring { width: 150px; }
  .score-ring::before { width: 124px; }
  .consult-card { grid-template-columns: 1fr; }
  .consult-actions { min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .consult-actions .text-button { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .demo-nav, .demo-shell { width: min(100% - 28px, 1240px); }
  .demo-nav { min-height: 70px; }
  .demo-label { max-width: 110px; text-align: right; font-size: 9px; }
  .demo-shell { padding: 30px 0 50px; }
  .intro-panel { min-height: 0; gap: 20px; }
  .intro-copy { padding-top: 16px; }
  .intro-copy h1 { font-size: clamp(34px, 10vw, 42px); }
  .intro-lead { font-size: 16px; line-height: 1.65; }
  .intro-actions { align-items: flex-start; flex-direction: column; gap: 12px; }
  .intro-actions .primary-button { width: 100%; }
  .trust-list { display: grid; gap: 9px; margin-top: 28px; }
  .intro-visual { padding-bottom: 16px; }
  .photo-stack { min-height: 340px; }
  .photo-card { border-width: 5px; border-radius: 20px; }
  .photo-card-main { inset: 4% 0 7% 10%; }
  .photo-card-secondary { width: 42%; height: 36%; }
  .floating-card { padding: 13px 15px; border-radius: 14px; }
  .floating-score { min-width: 122px; }
  .floating-score strong { font-size: 34px; }
  .floating-next { right: -2%; bottom: 11%; min-width: 155px; }
  .floating-next strong { font-size: 14px; }
  .question-card { min-height: 560px; padding: 30px 20px; margin-top: 20px; border-radius: 22px; }
  .question-card h2 { font-size: clamp(28px, 8vw, 34px); }
  .question-help { font-size: 14px; }
  .option-grid { grid-template-columns: 1fr; gap: 9px; margin-top: 28px; }
  .option-content { min-height: 64px; padding: 14px 15px; font-size: 14px; }
  .quiz-actions { position: sticky; bottom: 10px; padding-top: 12px; background: linear-gradient(transparent, var(--white) 20%); }
  .quiz-actions .primary-button, .quiz-actions .secondary-button { min-height: 49px; padding: 0 18px; }
  .result-hero { gap: 32px; padding: 32px 24px; border-radius: 22px; }
  .result-intro h2 { font-size: 36px; }
  .result-grid { grid-template-columns: 1fr; }
  .result-card { min-height: 0; padding: 30px 24px; border-radius: 22px; }
  .consult-card { padding: 32px 24px; border-radius: 22px; }
  .consult-actions { grid-template-columns: 1fr; }
  .consult-actions .text-button { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
