:root {
  color-scheme: light;
  --paper: #f5f0e4;
  --paper-deep: #ebe3d3;
  --surface: #fffdf7;
  --ink: #163832;
  --body: #52635d;
  --muted: #84918b;
  --line: #d8d0c2;
  --teal: #1e5b52;
  --teal-soft: #dce9e3;
  --sage: #9db7aa;
  --orange: #df5a27;
  --orange-dark: #bd4116;
  --shadow: 0 30px 80px rgba(27, 66, 57, 0.13);
  --serif: "STSong", "Songti SC", "Noto Serif CJK SC", Georgia, serif;
  --sans: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100dvh; overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; z-index: -1; inset: 0; pointer-events: none; opacity: 0.28; background-image: repeating-radial-gradient(ellipse at 12% 18%, transparent 0 22px, rgba(30,91,82,0.08) 23px 24px, transparent 25px 46px); mask-image: linear-gradient(110deg, #000, transparent 58%); }
button, input { font: inherit; }
button { border: 0; cursor: pointer; }
a { color: inherit; text-underline-offset: 4px; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid rgba(223,90,39,0.32); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 50; top: 8px; left: 8px; padding: 10px 14px; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.shell { width: min(100% - 44px, 1180px); margin: 0 auto; }
.display { font-family: var(--serif); font-weight: 700; letter-spacing: -0.055em; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: 0.14em; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.topbar { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid rgba(22,56,50,0.1); background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(18px); }
.topbar-inner { display: flex; min-height: 68px; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { position: relative; width: 36px; height: 36px; border-radius: 50% 50% 50% 10px; background: var(--teal); transform: rotate(-10deg); }
.brand-mark::before { content: ""; position: absolute; inset: 10px 15px 9px; border-radius: 50%; background: var(--paper); transform: rotate(28deg); }
.brand strong { font-family: var(--serif); font-size: 22px; letter-spacing: 0.08em; }
.topbar-note { color: var(--muted); font-size: 12px; }

.hero { display: grid; min-height: calc(100dvh - 68px); grid-template-columns: 0.78fr 1.22fr; gap: clamp(34px, 5vw, 74px); align-items: center; padding: 34px 0 46px; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { max-width: 580px; margin: 0 0 20px; font-size: clamp(56px, 6.25vw, 82px); line-height: 0.98; text-wrap: balance; }
.hero h1 span { display: block; color: var(--teal); }
.hero-lead { max-width: 520px; margin: 0 0 30px; color: var(--body); font-size: 17px; line-height: 1.85; }
.hero-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; color: var(--body); font-size: 13px; }
.hero-meta i { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.primary-btn, .secondary-btn { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; gap: 20px; padding: 0 28px; border-radius: 8px 28px 28px 28px; font-weight: 800; transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease; }
.primary-btn { background: var(--orange); color: #fffaf2; box-shadow: 0 16px 34px rgba(189,65,22,0.2); }
.primary-btn:hover { background: var(--orange-dark); transform: translateY(-2px); }
.primary-btn:active, .secondary-btn:active { transform: translateY(1px) scale(0.99); }
.secondary-btn { border: 1px solid var(--teal); background: transparent; color: var(--teal); box-shadow: none; }
.secondary-btn:hover { background: var(--teal-soft); }
.hero-note { margin-top: 30px; font-family: var(--serif); color: var(--teal); font-size: 17px; }
.hero-media { position: relative; margin-right: calc((100vw - min(100vw - 44px, 1180px)) / -2); }
.hero-media::before { content: ""; position: absolute; z-index: 2; top: 9%; right: 8%; width: 64px; height: 64px; border: 1px solid rgba(255,255,255,0.8); border-radius: 50%; box-shadow: 0 0 0 10px rgba(255,255,255,0.15); }
.hero-media img { display: block; width: 100%; min-height: 520px; max-height: 690px; object-fit: cover; border-radius: 44% 0 0 18%; box-shadow: var(--shadow); }

.intro { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(48px, 8vw, 110px); padding: 110px 0 130px; border-top: 1px solid var(--line); }
.intro h2 { margin: 0; font-size: clamp(38px, 5vw, 62px); line-height: 1.12; }
.intro-lead { margin: 0 0 38px; color: var(--body); font-size: 17px; line-height: 1.8; }
.dimension-list { border-top: 1px solid var(--line); }
.dimension-line { display: grid; grid-template-columns: 52px 150px 1fr; gap: 18px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.dimension-line b { font-family: var(--serif); font-size: 20px; }
.dimension-line p { margin: 0; color: var(--body); font-size: 14px; line-height: 1.65; }
.dimension-icon { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--teal); border-radius: 50%; color: var(--teal); font-family: var(--serif); }
.home-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 48px 0 80px; border-top: 1px solid var(--line); }
.home-cta h2 { max-width: 680px; margin: 0; font-size: clamp(34px, 5vw, 58px); }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 30px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer a { margin-left: 18px; }

.gate-page, .question-page { min-height: 100dvh; }
.gate-wrap { display: grid; min-height: calc(100dvh - 68px); place-items: center; padding: 54px 0; }
.gate-card { width: min(100%, 580px); padding: clamp(30px, 6vw, 62px); border: 1px solid var(--line); border-radius: 4px 46px 4px 4px; background: var(--surface); box-shadow: var(--shadow); }
.gate-card h1 { margin: 0 0 16px; font-size: clamp(40px, 7vw, 62px); }
.gate-card p { color: var(--body); line-height: 1.8; }
.code-form { display: grid; gap: 12px; margin-top: 28px; }
.code-input { min-height: 56px; padding: 0 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); text-transform: uppercase; }
.form-error { min-height: 20px; margin: 0; color: #a63a1a !important; font-size: 13px; }

.question-header { border-bottom: 1px solid var(--line); }
.question-top { display: flex; min-height: 74px; align-items: center; justify-content: space-between; }
.progress-label { font-family: var(--serif); color: var(--teal); font-size: 26px; font-variant-numeric: tabular-nums; }
.progress-track { height: 3px; background: var(--line); }
.progress-value { width: 100%; height: 100%; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform 320ms ease; }
.question-shell { display: grid; min-height: calc(100dvh - 77px); grid-template-columns: 220px 1fr; }
.question-aside { position: relative; padding: 70px 38px; border-right: 1px solid var(--line); background: rgba(255,253,247,0.42); }
.question-aside strong { display: block; font-family: var(--serif); font-size: 48px; line-height: 1.1; letter-spacing: 0.08em; }
.question-aside span { display: block; margin-top: 30px; color: var(--teal); font-size: 12px; letter-spacing: 0.22em; writing-mode: vertical-rl; }
.question-aside::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 38%; background: linear-gradient(165deg, transparent 10%, rgba(157,183,170,0.38)); clip-path: polygon(0 48%, 35% 22%, 52% 44%, 72% 8%, 100% 36%, 100% 100%, 0 100%); }
.question-main { width: min(100% - 70px, 900px); margin: 0 auto; padding: 42px 0 105px; }
.question-main h1 { max-width: 860px; margin: 0 0 24px; font-size: clamp(36px, 4.1vw, 52px); line-height: 1.16; text-wrap: balance; }
.question-hint { margin-bottom: 28px; color: var(--muted); font-size: 13px; }
.options { border-top: 1px solid var(--line); }
.option { display: grid; width: 100%; grid-template-columns: 44px 34px 1fr; gap: 14px; align-items: center; padding: 15px 8px; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; transition: padding 200ms ease, background 200ms ease, color 200ms ease; }
.option:hover { padding-left: 18px; background: rgba(220,233,227,0.45); }
.option.selected { padding-left: 18px; background: var(--teal-soft); color: var(--teal); }
.option-index { color: var(--muted); font-family: var(--serif); font-variant-numeric: tabular-nums; }
.option-dot { width: 18px; height: 18px; border: 1px solid var(--sage); border-radius: 50%; }
.option.selected .option-dot { border: 5px solid var(--teal); }
.question-controls { position: fixed; z-index: 18; right: 0; bottom: 0; left: 220px; border-top: 1px solid rgba(22,56,50,0.1); background: color-mix(in srgb, var(--paper) 91%, transparent); backdrop-filter: blur(18px); }
.question-controls-inner { display: flex; width: min(100% - 70px, 900px); min-height: 84px; align-items: center; justify-content: space-between; margin: 0 auto; }
.question-controls button:disabled { cursor: not-allowed; opacity: 0.4; }

.report-page { padding-bottom: 70px; }
.report-hero { position: relative; min-height: 650px; overflow: hidden; background: var(--ink); color: white; }
.report-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.88; }
.report-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,44,38,0.94) 0%, rgba(14,44,38,0.68) 36%, rgba(14,44,38,0.05) 76%); }
.report-hero-inner { position: relative; z-index: 2; display: flex; min-height: 650px; flex-direction: column; justify-content: center; padding: 80px 0; }
.report-kicker { color: #dce9e3; font-size: 12px; font-weight: 800; letter-spacing: 0.18em; }
.report-city { margin: 12px 0 0; color: #fffaf2; font-family: var(--serif); font-size: clamp(88px, 13vw, 172px); line-height: 0.92; letter-spacing: -0.08em; }
.report-score { margin-top: 26px; color: #fffaf2; font-family: var(--serif); font-size: clamp(48px, 6vw, 78px); font-variant-numeric: tabular-nums; }
.report-score span { color: #dce9e3; font-family: var(--sans); font-size: 13px; letter-spacing: 0.08em; }
.report-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.report-tag { padding: 8px 11px; border: 1px solid rgba(255,255,255,0.34); border-radius: 999px; background: rgba(255,255,255,0.08); font-size: 12px; }
.report-shell { width: min(100% - 44px, 1050px); margin: 0 auto; }
.report-section { padding: 86px 0; border-bottom: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 40px; margin-bottom: 44px; }
.section-heading h2 { margin: 0; font-size: clamp(36px, 5vw, 58px); line-height: 1.12; }
.section-heading p { max-width: 620px; margin: 4px 0 0; color: var(--body); line-height: 1.85; }
.reason-paper { position: relative; max-width: 760px; margin-left: auto; padding: 34px 38px; border: 1px solid var(--line); background: var(--surface); box-shadow: 8px 12px 0 var(--teal-soft); }
.reason-paper::before { content: "“"; position: absolute; top: -20px; left: 16px; color: var(--orange); font-family: var(--serif); font-size: 72px; }
.reason-paper p { margin: 0; color: var(--body); font-family: var(--serif); font-size: 20px; line-height: 1.9; }
.metric-list { display: grid; gap: 22px; }
.metric-row { display: grid; grid-template-columns: 120px 1fr 54px; gap: 18px; align-items: center; }
.metric-row span { font-weight: 700; }
.metric-track { position: relative; height: 5px; background: var(--line); }
.metric-track i { display: block; height: 100%; background: var(--teal); }
.metric-track b { position: absolute; top: 50%; width: 13px; height: 13px; border: 3px solid var(--paper); border-radius: 50%; background: var(--orange); transform: translate(-50%, -50%); }
.metric-score { color: var(--teal); font-variant-numeric: tabular-nums; text-align: right; }
.alternatives { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 14px; }
.city-card { position: relative; min-height: 260px; overflow: hidden; padding: 30px; border: 1px solid var(--line); background: var(--surface); }
.city-card:first-child { background: var(--teal); color: white; }
.city-card-index { color: var(--muted); font-size: 11px; letter-spacing: 0.12em; }
.city-card:first-child .city-card-index { color: #c9ddd5; }
.city-card h3 { margin: 42px 0 8px; font-family: var(--serif); font-size: 44px; }
.city-card p { max-width: 460px; color: var(--body); line-height: 1.7; }
.city-card:first-child p { color: #dce9e3; }
.city-card-score { position: absolute; top: 28px; right: 28px; font-family: var(--serif); font-size: 24px; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border: 1px solid var(--line); background: var(--line); }
.compare-block { padding: 30px; background: var(--surface); }
.compare-block h3 { margin: 0 0 18px; font-family: var(--serif); font-size: 24px; }
.clean-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.clean-list li { position: relative; padding-left: 20px; color: var(--body); line-height: 1.7; }
.clean-list li::before { content: ""; position: absolute; top: 0.72em; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.plan { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.plan article { min-height: 220px; padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plan b { color: var(--orange); font-family: var(--serif); font-size: 14px; }
.plan h3 { margin: 26px 0 10px; font-family: var(--serif); font-size: 22px; }
.plan p { margin: 0; color: var(--body); font-size: 13px; line-height: 1.7; }
.method-note { padding: 25px; border-left: 3px solid var(--teal); background: var(--teal-soft); color: var(--body); line-height: 1.8; }
.report-actions { display: flex; flex-wrap: wrap; gap: 12px; padding: 42px 0; }
.toast { position: fixed; z-index: 40; bottom: 24px; left: 50%; padding: 12px 18px; border-radius: 8px; background: var(--ink); color: white; transform: translateX(-50%); box-shadow: var(--shadow); }
.legal-page { width: min(100% - 36px, 760px); margin: 0 auto; padding: 70px 0 110px; }
.legal-page h1 { margin: 24px 0; font-family: var(--serif); font-size: clamp(44px, 8vw, 68px); }
.legal-page h2 { margin-top: 34px; font-family: var(--serif); }
.legal-page p { color: var(--body); line-height: 1.85; }
.text-link { color: var(--teal); font-weight: 700; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: rise 700ms cubic-bezier(.16,1,.3,1) both; }
  .hero-media { animation: fade 900ms 100ms ease both; }
  .option { animation: rise 320ms ease both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 56px; }
  .hero-media { margin: 0 -22px; }
  .hero-media img { min-height: 420px; border-radius: 28% 0 20% 0; }
  .intro, .section-heading { grid-template-columns: 1fr; }
  .question-shell { grid-template-columns: 1fr; }
  .question-aside { display: none; }
  .question-controls { left: 0; }
  .strength-grid { grid-template-columns: 1fr; }
  .plan { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .shell, .report-shell { width: min(100% - 24px, 520px); }
  .topbar-inner { min-height: 62px; }
  .brand strong { font-size: 18px; }
  .topbar-note { display: none; }
  .hero { gap: 36px; padding: 44px 0 70px; }
  .hero h1 { font-size: clamp(48px, 15vw, 66px); }
  .hero-lead { font-size: 15px; }
  .hero-meta { align-items: flex-start; flex-direction: column; }
  .hero-meta i { display: none; }
  .primary-btn, .secondary-btn { width: 100%; }
  .hero-media { margin: 0 -12px; }
  .hero-media img { min-height: 350px; max-height: 430px; }
  .intro { gap: 36px; padding: 82px 0 96px; }
  .dimension-line { grid-template-columns: 40px 1fr; }
  .dimension-line p { grid-column: 2; }
  .home-cta { align-items: stretch; flex-direction: column; }
  .footer { align-items: flex-start; flex-direction: column; }
  .footer a { margin: 0 18px 0 0; }
  .question-top { min-height: 62px; }
  .question-main { width: min(100% - 28px, 520px); padding: 48px 0 120px; }
  .question-main h1 { font-size: 32px; }
  .option { grid-template-columns: 32px 24px 1fr; gap: 8px; padding: 18px 4px; font-size: 14px; }
  .question-controls-inner { width: min(100% - 24px, 520px); min-height: 76px; gap: 10px; }
  .question-controls .secondary-btn, .question-controls .primary-btn { min-height: 48px; padding: 0 16px; }
  .report-hero, .report-hero-inner { min-height: 590px; }
  .report-hero::after { background: linear-gradient(180deg, rgba(14,44,38,0.34), rgba(14,44,38,0.92) 76%); }
  .report-hero img { object-position: 62% center; }
  .report-hero-inner { justify-content: flex-end; padding-bottom: 52px; }
  .report-city { font-size: 92px; }
  .report-section { padding: 66px 0; }
  .reason-paper { padding: 30px 22px; }
  .metric-row { grid-template-columns: 86px 1fr 38px; gap: 9px; font-size: 13px; }
  .alternatives, .compare-grid { grid-template-columns: 1fr; }
  .city-card { min-height: 230px; }
  .plan { grid-template-columns: 1fr; }
  .report-actions .primary-btn, .report-actions .secondary-btn { width: 100%; }
}

@media print {
  .topbar, .report-actions { display: none; }
  body { background: white; }
  .report-hero { min-height: 520px; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .report-section, .city-card, .compare-block, .plan article { break-inside: avoid; }
}

/* Runtime component alignment */
.topbar { display: flex; min-height: 68px; align-items: center; justify-content: space-between; padding-inline: max(22px, calc((100vw - 1180px) / 2)); }
.brand { border: 0; background: transparent; color: var(--ink); font-family: var(--serif); font-size: 20px; font-weight: 700; }
.brand-mark i { display: none; }
.top-note { color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.hero h1 em { color: var(--teal); font-style: normal; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; padding: 0 28px; border-radius: 8px 28px 28px 28px; font-weight: 800; transition: transform 220ms ease, background 220ms ease, box-shadow 220ms ease; }
.button.primary { background: var(--orange); color: #fffaf2; box-shadow: 0 16px 34px rgba(189,65,22,.2); }
.button.primary:hover { background: var(--orange-dark); transform: translateY(-2px); }
.button.text-button { min-height: 48px; border: 1px solid var(--teal); background: transparent; color: var(--teal); box-shadow: none; }
.button.text-button:hover { background: var(--teal-soft); }
.button:disabled { cursor: not-allowed; opacity: .38; }
.hero-visual { position: relative; margin: 0 calc((100vw - min(100vw - 44px, 1180px)) / -2) 0 0; }
.hero-visual img { display: block; width: 100%; min-height: 470px; max-height: 620px; object-fit: cover; border-radius: 44% 0 0 18%; box-shadow: var(--shadow); }
.hero-visual figcaption { position: absolute; right: 24px; bottom: 24px; display: grid; gap: 4px; max-width: 300px; padding: 17px 20px; background: rgba(245,240,228,.9); color: var(--ink); backdrop-filter: blur(12px); }
.hero-visual figcaption span { color: var(--body); font-size: 12px; }
.section-heading p { color: var(--body); line-height: 1.8; }
.dimension-list article { display: grid; grid-template-columns: 48px 1fr 44px; gap: 18px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.dimension-list article:first-child { border-top: 1px solid var(--line); }
.intro .section-heading { display: block; margin: 0; }
.dimension-list article > span { color: var(--muted); font-family: var(--serif); }
.dimension-list h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 21px; }
.dimension-list p { margin: 0; color: var(--body); font-size: 13px; line-height: 1.6; }
.dimension-symbol { width: 36px; height: 36px; border: 1px solid var(--teal); border-radius: 50%; }
.microcopy { color: var(--muted); font-size: 12px; }
.footer.shell { width: min(100% - 44px, 1180px); margin: 0 auto; }
.gate-page { display: grid; min-height: calc(100dvh - 68px); place-items: center; padding-block: 54px; }
.gate-panel { width: min(100%, 680px); padding: clamp(30px,6vw,62px); border: 1px solid var(--line); border-radius: 4px 46px 4px 4px; background: var(--surface); box-shadow: var(--shadow); }
.gate-panel h1 { margin: 0 0 18px; font-family: var(--serif); font-size: clamp(42px,7vw,68px); line-height: 1.06; }
.gate-panel > p { color: var(--body); line-height: 1.8; }
.gate-form { margin-top: 30px; }
.gate-form label { display: block; margin-bottom: 10px; color: var(--teal); font-size: 12px; font-weight: 800; }
.gate-input-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.gate-input-row input { min-width: 0; padding: 0 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); text-transform: uppercase; }
.gate-message { min-height: 20px; margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.gate-message.error { color: var(--orange-dark); }
.question-page { padding-bottom: 96px; }
.question-progress { height: 3px; background: var(--line); }
.question-progress i { display: block; height: 100%; background: var(--teal); transition: width 300ms ease; }
.question-count { position: absolute; z-index: 1; right: 34px; bottom: 58px; left: 34px; display: flex; align-items: center; gap: 8px; }
.question-count b { font-family: var(--serif); font-size: 38px; }
.question-count i { flex: 1; height: 1px; background: var(--sage); }
.question-count span { margin: 0; writing-mode: initial; }
.question-kicker { margin: 0 0 24px; color: var(--muted); font-size: 12px; letter-spacing: .12em; }
.option { grid-template-columns: 44px 1fr 28px; }
.option strong, .option small { display: block; }
.option small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.option > i { width: 18px; height: 18px; border: 1px solid var(--sage); border-radius: 50%; }
.option.selected > i { border: 5px solid var(--teal); }
.question-controls { display: flex; min-height: 84px; align-items: center; justify-content: space-between; gap: 18px; padding: 0 max(22px, calc((100vw - 900px) / 2)); }
.question-controls > span { color: var(--muted); font-size: 12px; }
.report-hero.shell { width: min(100% - 44px, 1180px); margin-top: 28px; border-radius: 3px 70px 3px 3px; }
.report-hero-shade { position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg,rgba(14,44,38,.94),rgba(14,44,38,.58) 48%,rgba(14,44,38,.08)); }
.report-title { position: relative; z-index: 2; display: flex; min-height: 650px; width: min(62%,680px); flex-direction: column; justify-content: center; padding: 72px; }
.report-title .eyebrow { color: #dce9e3; }
.report-location { color: #dce9e3; font-size: 14px; letter-spacing: .2em; }
.report-title h1 { margin: 8px 0 18px; font-family: var(--serif); font-size: clamp(88px,13vw,166px); line-height: .9; letter-spacing: -.08em; }
.report-title > p { max-width: 520px; color: #eef6f1; line-height: 1.8; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag-row span { padding: 7px 11px; border: 1px solid currentColor; border-radius: 999px; font-size: 11px; opacity: .85; }
.match-seal { position: absolute; z-index: 3; right: 48px; bottom: 44px; display: grid; width: 150px; height: 150px; place-content: center; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; background: rgba(245,240,228,.12); text-align: center; backdrop-filter: blur(10px); }
.match-seal strong { font-family: var(--serif); font-size: 46px; }
.match-seal sup { font-size: 18px; }
.match-seal span { font-size: 11px; }
.report-section.shell { position: relative; width: min(100% - 44px,1050px); margin: 0 auto; }
.section-number { position: absolute; top: 92px; left: 0; color: var(--orange); font-family: var(--serif); font-size: 13px; }
.report-heading { display: grid; grid-template-columns: .72fr 1.28fr; gap: 40px; margin: 0 0 44px 58px; }
.report-heading .eyebrow { align-self: start; }
.report-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(36px,5vw,58px); line-height: 1.12; }
.report-heading > p:last-child { grid-column: 2; margin: -24px 0 0; color: var(--body); line-height: 1.7; }
.reason-paper > p { margin-bottom: 28px; }
.reason-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); }
.reason-grid article { padding: 22px; background: var(--paper); }
.reason-grid span { color: var(--orange); font-family: var(--sans); font-size: 11px; }
.reason-grid h3 { margin: 12px 0 8px; font-family: var(--serif); }
.reason-grid p { font-family: var(--sans); font-size: 12px; line-height: 1.7; }
.metrics { display: grid; gap: 26px; }
.metrics .metric-row { display: block; }
.metrics .metric-row > div:first-child { display: flex; justify-content: space-between; margin-bottom: 10px; }
.metrics .metric-row > div:first-child span { color: var(--teal); }
.metrics .metric-row > p { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.city-card-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.city-card-top strong { font-family: var(--serif); font-size: 24px; }
.city-card:first-child .city-card-top, .city-card:first-child .tag-row { color: #dce9e3; }
.city-card > p:first-of-type { margin: 34px 0 0; font-size: 11px; letter-spacing: .18em; }
.city-card h3 { margin-top: 4px; }
.compare-positive, .compare-caution { padding: 32px; background: var(--surface); }
.compare-positive > span, .compare-caution > span { font-family: var(--serif); font-size: 24px; }
.compare-grid ul { display: grid; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.compare-grid li { position: relative; padding-left: 20px; color: var(--body); line-height: 1.7; }
.compare-grid li::before { content: ""; position: absolute; top: .72em; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.plan article > span { color: var(--orange); font-family: var(--serif); font-size: 13px; }
.method-note { margin-top: 70px !important; border-bottom: 0; }
.method-note h2 { margin: 4px 0 18px; font-family: var(--serif); font-size: clamp(30px,4vw,46px); }
.method-note > p:last-of-type { max-width: 850px; }
.toast { opacity: 0; pointer-events: none; transition: opacity 180ms ease, transform 180ms ease; transform: translate(-50%,10px); }
.toast.show { opacity: 1; transform: translate(-50%,0); }
.reveal { animation: rise 620ms cubic-bezier(.16,1,.3,1) both; }
.delay-1 { animation-delay: 100ms; }

@media (max-width: 860px) {
  .hero-visual { margin: 0 -22px; }
  .report-heading { grid-template-columns: 1fr; margin-left: 0; }
  .report-heading > p:last-child { grid-column: 1; margin: 0; }
  .section-number { display: none; }
  .reason-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body::before { opacity: .16; }
  .shell, .report-shell { width: min(100% - 28px, 520px); }
  .topbar { min-height: 58px; padding-inline: 14px; background: color-mix(in srgb, var(--paper) 94%, transparent); }
  .brand { gap: 9px; min-width: 0; min-height: 44px; font-size: 15px; white-space: nowrap; }
  .brand-mark { width: 32px; height: 32px; flex: 0 0 auto; }
  .top-note { display: block; max-width: 118px; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  .eyebrow { margin-bottom: 13px; font-size: 10px; letter-spacing: .1em; }
  .eyebrow::before { width: 20px; }
  .hero { min-height: auto; gap: 28px; padding: 28px 0 46px; }
  .hero h1 { margin-bottom: 16px; font-size: clamp(43px, 12.4vw, 52px); line-height: .98; letter-spacing: -.06em; }
  .hero h1 br { display: none; }
  .hero-lead { margin-bottom: 20px; font-size: 14px; line-height: 1.72; }
  .hero-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0 0 20px; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .hero-meta span { padding: 0 7px; color: var(--teal); font-size: 10px; line-height: 1.45; text-align: center; }
  .hero-meta span + span { border-left: 1px solid var(--line); }
  .button-row { align-items: stretch; flex-direction: column; }
  .button-row .button { width: 100%; min-height: 50px; }
  .hero-visual { margin: 0 -12px; }
  .hero-visual img { min-height: 330px; max-height: 360px; border-radius: 30% 0 22% 0; }
  .hero-visual figcaption { right: 14px; bottom: 14px; left: 14px; max-width: none; padding: 13px 15px; }
  .intro { gap: 30px; padding: 64px 0 74px; }
  .intro h2 { font-size: 38px; }
  .section-heading p { font-size: 14px; }
  .dimension-list article { grid-template-columns: 34px 1fr 34px; gap: 12px; padding: 18px 0; }
  .dimension-list h3 { font-size: 19px; }
  .dimension-list p { font-size: 12px; }
  .dimension-symbol { width: 30px; height: 30px; }
  .home-cta { align-items: stretch; flex-direction: column; padding: 42px 0 60px; }
  .home-cta h2 { font-size: 36px; }
  .gate-input-row { grid-template-columns: 1fr; }
  .gate-input-row input { min-height: 54px; }
  .gate-page { padding-block: 28px; }
  .gate-panel { padding: 30px 22px; border-radius: 16px; }
  .gate-panel h1 { font-size: 44px; }
  .question-page { min-height: calc(100dvh - 58px); padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  .question-main { width: min(100% - 28px,520px); padding: 24px 0 90px; }
  .question-kicker { margin-bottom: 15px; }
  .question-main h1 { margin-bottom: 20px; font-size: clamp(28px, 8.3vw, 34px); line-height: 1.22; letter-spacing: -.035em; }
  .option { min-height: 62px; grid-template-columns: 28px 1fr 22px; padding: 12px 4px; }
  .option:hover, .option.selected { padding-left: 10px; }
  .option small { margin-top: 2px; }
  .question-controls { min-height: 72px; padding: 0 12px env(safe-area-inset-bottom); }
  .question-controls > span { display: none; }
  .question-controls .button { min-height: 46px; padding-inline: 16px; }
  .report-hero.shell { width: 100%; margin-top: 0; border-radius: 0; }
  .report-hero, .report-title { min-height: 570px; }
  .report-title { width: 100%; justify-content: flex-end; padding: 32px 20px 42px; }
  .report-title h1 { margin-bottom: 14px; font-size: 86px; }
  .report-title > p { max-width: 320px; font-size: 14px; line-height: 1.65; }
  .report-hero-shade { background: linear-gradient(180deg,rgba(14,44,38,.18),rgba(14,44,38,.94) 74%); }
  .match-seal { top: 24px; right: 18px; bottom: auto; width: 106px; height: 106px; }
  .match-seal strong { font-size: 34px; }
  .report-section { padding: 52px 0; }
  .report-heading { gap: 8px; }
  .report-heading h2 { font-size: 34px; }
  .reason-grid { grid-template-columns: 1fr; }
  .reason-paper { padding: 26px 20px; box-shadow: 5px 7px 0 var(--teal-soft); }
  .reason-paper > p { font-size: 17px; line-height: 1.8; }
  .reason-grid article { padding: 18px; }
  .alternatives { grid-template-columns: 1fr; }
  .city-card { min-height: 218px; padding: 24px; }
  .city-card h3 { font-size: 40px; }
  .compare-positive, .compare-caution { padding: 24px; }
  .plan { display: flex; width: calc(100vw - 22px); margin-right: -22px; overflow-x: auto; border: 0; scroll-padding-left: 0; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .plan::-webkit-scrollbar { display: none; }
  .plan article { min-width: min(78vw, 300px); min-height: 210px; border: 1px solid var(--line); border-right: 0; scroll-snap-align: start; }
  .plan article:last-child { margin-right: 14px; border-right: 1px solid var(--line); }
  .method-note { margin-top: 38px !important; padding: 24px 20px; }
  .report-actions .button { width: 100%; }
}
