:root {
  --brand: #b40606;
  --brand-dark: #8d0505;
  --ink: #242424;
  --muted: #6a5f5f;
  --line: rgba(180, 6, 6, 0.14);
  --paper: #fffaf7;
  --soft: #fff1ef;
  --background: #f8f3ed;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(180, 6, 6, 0.12), transparent 32rem),
    linear-gradient(145deg, #fffaf7 0%, #f7eee8 46%, #ffffff 100%);
  color: var(--ink);
  font-family:
    "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", Arial, sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.site-shell {
  min-height: 100vh;
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.site-shell::before,
.site-shell::after {
  border: 1px solid rgba(180, 6, 6, 0.08);
  border-radius: 999px;
  content: "";
  pointer-events: none;
  position: fixed;
}

.site-shell::before {
  height: 360px;
  right: -180px;
  top: -120px;
  width: 360px;
}

.site-shell::after {
  bottom: -120px;
  height: 260px;
  left: -150px;
  width: 260px;
}

.card {
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(180, 6, 6, 0.12);
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(90, 42, 30, 0.12);
  padding: clamp(24px, 5vw, 52px);
  position: relative;
  backdrop-filter: blur(14px);
}

.hero {
  margin-top: min(10vh, 90px);
}

.brand-row {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-size: 14px;
  font-weight: 700;
  gap: 10px;
  letter-spacing: 0.08em;
  margin-bottom: 34px;
}

.brand-dot {
  background: var(--brand);
  border-radius: 50%;
  display: inline-block;
  height: 15px;
  width: 15px;
}

.eyebrow {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 16px;
}

h1,
h2 {
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-all;
}

h1 {
  font-size: clamp(36px, 7vw, 68px);
}

h2 {
  font-size: clamp(24px, 4vw, 34px);
}

.lead-text {
  color: #3a2b2b;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  line-height: 1.35;
  margin: 18px 0;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.body-text,
.cta-card p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.feature-grid,
.insight-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  margin: 34px 0;
}

.feature-grid div,
.insight-card,
.three-step div {
  background: #fff;
  border: 1px solid rgba(180, 6, 6, 0.12);
  border-radius: 20px;
  padding: 18px;
}

.feature-grid strong,
.feature-grid span,
.insight-card span {
  display: block;
}

.feature-grid strong,
.insight-card span {
  color: var(--ink);
  font-weight: 900;
}

.feature-grid span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

.primary-button,
.ghost-button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
}

.primary-button {
  background: var(--brand);
  border: 0;
  color: #fff;
  box-shadow: 0 14px 30px rgba(180, 6, 6, 0.22);
}

.ghost-button {
  background: #fff;
  border: 1px solid rgba(180, 6, 6, 0.22);
  color: var(--brand);
}

.tiny-note,
.privacy-note {
  color: var(--muted);
  font-size: 13px;
  margin-top: 18px;
}

.progress-row,
.nav-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.progress-row {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 12px;
}

.progress-track {
  background: rgba(180, 6, 6, 0.1);
  border-radius: 999px;
  height: 8px;
  margin-bottom: 24px;
  overflow: hidden;
}

.progress-track div {
  background: var(--brand);
  height: 100%;
  transition: width 0.25s ease;
}

.question-card {
  border-bottom: 1px solid rgba(180, 6, 6, 0.12);
  padding: 28px 0;
}

.question-card:last-of-type {
  border-bottom: 0;
}

.question-number {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  margin: 0 0 10px;
}

.question-card h2 {
  font-size: clamp(20px, 3vw, 28px);
  margin-bottom: 18px;
}

.score-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, 1fr);
}

.score-grid button {
  background: #fff;
  border: 1px solid rgba(180, 6, 6, 0.18);
  border-radius: 18px;
  color: var(--muted);
  min-height: 88px;
  padding: 12px 8px;
}

.score-grid button strong,
.score-grid button span {
  display: block;
}

.score-grid button strong {
  color: var(--ink);
  font-size: 22px;
}

.score-grid button span {
  font-size: 12px;
  line-height: 1.35;
  margin-top: 4px;
}

.score-grid button.selected {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.score-grid button.selected strong {
  color: #fff;
}

.nav-row {
  gap: 14px;
  margin-top: 28px;
}

.lead-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.lead-form label {
  color: var(--ink);
  display: grid;
  font-weight: 800;
  gap: 8px;
}

.lead-form input,
.lead-form select {
  background: #fff;
  border: 1px solid rgba(180, 6, 6, 0.18);
  border-radius: 16px;
  color: var(--ink);
  min-height: 50px;
  padding: 0 15px;
}

.result-layout {
  display: grid;
  gap: 22px;
  margin: 0 auto;
  max-width: 920px;
  scroll-snap-type: y proximity;
}

.result-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100dvh - 44px);
  scroll-snap-align: start;
}

.result-hero h1 {
  font-size: clamp(30px, 5vw, 54px);
}

.success-note,
.error-note {
  border-radius: 16px;
  font-weight: 700;
  line-height: 1.7;
  padding: 14px 16px;
}

.success-note {
  background: #f4fff4;
  color: #236b2f;
}

.error-note {
  background: #fff1ef;
  color: var(--brand);
}

.radar-card {
  align-items: center;
  display: grid;
  gap: 26px;
  grid-template-columns: 320px 1fr;
}

.radar {
  height: auto;
  width: 100%;
}

.radar-label {
  fill: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.score-list {
  display: grid;
  gap: 10px;
}

.score-list div {
  align-items: center;
  background: var(--paper);
  border: 1px solid rgba(180, 6, 6, 0.1);
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
}

.score-list span {
  color: var(--muted);
}

.score-list strong {
  color: var(--ink);
}

.insight-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 22px;
}

.insight-card.pale {
  background: var(--soft);
}

.insight-card span {
  font-size: 14px;
  margin-bottom: 10px;
}

.insight-card p,
.three-step p {
  color: var(--muted);
  line-height: 1.85;
  margin: 0;
}

.three-step {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.three-step div {
  align-items: flex-start;
  display: grid;
  gap: 14px;
  grid-template-columns: 38px 1fr;
  padding: 20px;
}

.three-step span {
  align-items: center;
  background: var(--brand);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.cta-card {
  background: #3b1f1f;
  color: #fff;
}

.cta-card .eyebrow,
.cta-card p {
  color: rgba(255, 255, 255, 0.82);
}

.qr-placeholder {
  align-items: center;
  aspect-ratio: 1 / 1;
  background: #fff;
  border-radius: 24px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 24px auto;
  padding: 8px;
  width: min(240px, 70vw);
}

.qr-placeholder img {
  border-radius: 12px;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.qr-placeholder strong {
  font-size: 20px;
}

.qr-placeholder span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
}

.qr-caption {
  color: var(--muted);
  font-size: 13px;
  margin: -16px 0 24px;
  text-align: center;
}

.scroll-hint {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  margin-top: 26px;
}

.scroll-hint strong {
  align-items: center;
  animation: hintFloat 1.4s ease-in-out infinite;
  background: rgba(180, 6, 6, 0.08);
  border-radius: 999px;
  color: var(--brand);
  display: inline-flex;
  height: 26px;
  justify-content: center;
  width: 26px;
}

@keyframes hintFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

@media (max-width: 760px) {
  .site-shell {
    padding: 14px;
  }

  .hero {
    margin-top: 18px;
  }

  .card {
    border-radius: 22px;
    padding: 26px;
    max-width: 100%;
    width: 100%;
  }

  .result-screen {
    min-height: calc(100dvh - 28px);
  }

  h1 {
    font-size: 34px;
    letter-spacing: -0.05em;
  }

  h2 {
    font-size: 22px;
  }

  .lead-text {
    font-size: 22px;
  }

  .body-text,
  .cta-card p {
    font-size: 15px;
    line-height: 1.85;
  }

  .feature-grid,
  .radar-card,
  .insight-grid {
    grid-template-columns: 1fr;
  }

  .score-grid {
    grid-template-columns: 1fr;
  }

  .score-grid button {
    align-items: center;
    display: flex;
    justify-content: space-between;
    min-height: 58px;
    padding: 12px 16px;
    text-align: left;
  }

  .score-grid button span {
    margin-top: 0;
    text-align: right;
  }

  .nav-row {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .qr-placeholder {
    width: 100%;
  }
}
