:root {
  --bg: #f7f2ea;
  --bg-soft: #fbf8f4;
  --card: #ffffff;
  --text: #1b1b1f;
  --muted: #666d78;
  --line: #e6dfd5;
  --primary: #6f7ff6;
  --primary-dark: #5667ec;
  --secondary: #ffe1c9;
  --success: #1e9b64;
  --warning: #d4871d;
  --danger: #d84a4a;
  --shadow: 0 18px 40px rgba(30, 34, 53, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max-width: 840px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #f7f2ea 0%, #fffaf5 100%);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}
body {
  min-height: 100vh;
}
a {
  color: inherit;
  text-decoration: none;
}
.hidden {
  display: none !important;
}
.app-shell {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fff 0%, #ffe8d6 100%);
  box-shadow: var(--shadow);
  font-size: 24px;
}
.brand-name {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.brand-sub {
  font-size: 13px;
  color: var(--muted);
}
.main-wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px 18px 40px;
  flex: 1;
}
.screen {
  display: none;
}
.screen.active {
  display: block;
}
.hero-card,
.center-card,
.emergency-card,
.result-header-card,
.result-map-card,
.primary-insight-card,
.timeline-value-card,
.plan-preview-card,
.lead-card,
.paywall-card,
.question-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.hero-card {
  padding: 32px;
  text-align: left;
}
.hero-card h1 {
  margin: 14px 0 10px;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.hero-text {
  margin: 0 0 22px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 720px;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.mini-point {
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.microcopy {
  font-size: 13px;
  color: var(--muted);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f0f2ff;
  color: #4757d8;
  border: 1px solid #dfe3ff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.pill.soft {
  background: #fff4ea;
  border-color: #ffe2c5;
  color: #c46e16;
}
.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.trust-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.trust-icon {
  font-size: 22px;
}
.trust-title {
  font-weight: 700;
  margin-bottom: 4px;
}
.trust-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.primary-btn,
.secondary-btn,
.ghost-btn,
.full-link-btn {
  border: 0;
  outline: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  transition: 0.2s ease;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.primary-btn {
  background: var(--primary);
  color: white;
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 15px;
}
.primary-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}
.secondary-btn {
  background: #fff4ea;
  color: #8e5d24;
  border: 1px solid #f3ddc8;
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 15px;
}
.ghost-btn {
  background: white;
  color: #2b3140;
  border: 1px solid var(--line);
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 15px;
}
.ghost-btn:hover,
.secondary-btn:hover {
  transform: translateY(-1px);
}
.small-btn {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
}
.xl-btn {
  padding: 16px 24px;
  font-size: 16px;
  border-radius: 18px;
}
.full-btn,
.full-link-btn {
  width: 100%;
}
.quiz-shell {
  max-width: var(--max-width);
  margin: 0 auto;
}
.progress-wrap {
  margin-bottom: 18px;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 600;
}
.progress-bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #ece7df;
  overflow: hidden;
}
.progress-fill {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6f7ff6 0%, #8ea3ff 100%);
  transition: width 0.25s ease;
}
.question-card {
  padding: 28px;
}
.question-eyebrow {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.question-title {
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.question-subtitle {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 16px;
}
.question-actions {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.options-grid {
  display: grid;
  gap: 12px;
}
.option-btn {
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  cursor: pointer;
  transition: 0.2s ease;
}
.option-btn:hover {
  border-color: #cfd6ff;
  transform: translateY(-1px);
}
.option-btn.selected {
  border-color: var(--primary);
  background: #f4f6ff;
  box-shadow: inset 0 0 0 1px rgba(111, 127, 246, 0.12);
}
.option-main {
  font-weight: 700;
  margin-bottom: 4px;
}
.option-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.text-input,
.number-input,
.textarea-input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  font-family: inherit;
  font-size: 16px;
  outline: none;
  background: #fff;
}
.text-input:focus,
.number-input:focus,
.textarea-input:focus {
  border-color: #bbc5ff;
  box-shadow: 0 0 0 4px rgba(111, 127, 246, 0.08);
}
.textarea-input {
  min-height: 120px;
  resize: vertical;
}
.help-text {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}
.multi-note {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
}
.center-card,
.emergency-card,
.paywall-card {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 30px;
}
.center-card h2,
.emergency-card h2,
.paywall-card h2 {
  margin-top: 14px;
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.processing-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  color: var(--muted);
}
.spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 4px solid #efe8dd;
  border-top-color: var(--primary);
  animation: spin 1s linear infinite;
}
.spinner.big {
  width: 60px;
  height: 60px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.emergency-card {
  border-color: #f5c3c3;
  background: linear-gradient(180deg, #fff 0%, #fff8f8 100%);
}
.emergency-badge {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: #ffe3e3;
  color: #a52b2b;
  font-weight: 800;
  font-size: 13px;
  border: 1px solid #f3c1c1;
}
.emergency-text {
  color: #5c6068;
  line-height: 1.7;
}
.reason-box {
  margin: 18px 0;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #f1d0d0;
  line-height: 1.6;
}
.emergency-actions {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}
.emergency-note {
  background: #fff4f4;
  border: 1px solid #f0d7d7;
  padding: 14px;
  border-radius: 14px;
  color: #7d4545;
  font-size: 14px;
  margin-bottom: 14px;
}
.result-header-card,
.result-map-card,
.primary-insight-card,
.timeline-value-card,
.plan-preview-card,
.lead-card {
  padding: 26px;
}
.result-header-card {
  margin-bottom: 18px;
}
.result-header-card h2 {
  margin: 16px 0 8px;
  font-size: clamp(32px, 5vw, 44px);
  letter-spacing: -0.04em;
  line-height: 1.02;
}
.result-intro {
  color: var(--muted);
  margin: 0;
  line-height: 1.65;
  font-size: 16px;
}
.result-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  margin-bottom: 18px;
}
.section-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.health-map {
  display: grid;
  gap: 12px;
}
.health-row {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}
.health-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.health-row-icon {
  font-size: 18px;
}
.health-row-title {
  font-weight: 700;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
}
.status-good {
  background: #eaf8f1;
  color: #15794e;
  border: 1px solid #cdecd9;
}
.status-track {
  background: #fff7e6;
  color: #99630f;
  border: 1px solid #f1dfb6;
}
.status-watch {
  background: #fff0e7;
  color: #b95e1e;
  border: 1px solid #f1d2bf;
}
.status-review {
  background: #ffe8e8;
  color: #a33c3c;
  border: 1px solid #f0c6c6;
}
.result-disclaimer {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.primary-insight-card h3,
.timeline-value-card h3,
.plan-preview-card h3,
.lead-card h3 {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.14;
  letter-spacing: -0.03em;
}
.what-next-box {
  margin-top: 18px;
  background: #faf7f3;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}
.what-next-title {
  font-weight: 800;
  margin-bottom: 10px;
}
.clean-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.7;
  color: #3c4049;
}
.snapshot-flow {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 18px;
}
.snapshot-step {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
}
.snapshot-arrow {
  color: var(--muted);
  font-weight: 800;
}
.plan-preview {
  display: grid;
  gap: 14px;
}
.plan-week {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: #fff;
}
.plan-week-title {
  font-weight: 800;
  margin-bottom: 10px;
}
.plan-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #3c4049;
  margin-bottom: 8px;
  line-height: 1.5;
}
.plan-item:last-child {
  margin-bottom: 0;
}
.plan-bullet {
  flex: 0 0 auto;
  margin-top: 2px;
}
.subtle-text {
  color: var(--muted);
  line-height: 1.6;
  margin-top: 0;
}
.lead-form {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}
.field-group {
  display: grid;
  gap: 8px;
}
.field-group label {
  font-size: 14px;
  font-weight: 700;
}
.field-group input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
  font-size: 16px;
  font-family: inherit;
}
.field-group input:focus {
  border-color: #bbc5ff;
  box-shadow: 0 0 0 4px rgba(111, 127, 246, 0.08);
}
.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #3f4550;
  font-size: 14px;
  line-height: 1.5;
}
.checkbox-row input {
  margin-top: 3px;
}
.form-message {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: #eef8f2;
  border: 1px solid #d1eadb;
  color: #1d6f48;
  font-size: 14px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 22px 0;
}
.feature-box {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.feature-icon {
  font-size: 22px;
}
.feature-title {
  font-weight: 800;
  margin-bottom: 4px;
}
.feature-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.pricing-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}
.pricing-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  background: #fff;
  position: relative;
}
.pricing-card.featured {
  border-color: #c9d1ff;
  box-shadow: 0 14px 40px rgba(111, 127, 246, 0.12);
}
.pricing-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  background: #f5f5f7;
  border: 1px solid #ececef;
  border-radius: 999px;
  padding: 6px 10px;
  margin-bottom: 12px;
}
.featured-tag {
  background: #eef1ff;
  color: #4c5de5;
  border-color: #d7deff;
}
.price-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
}
.price-value {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.price-value span {
  font-size: 16px;
  color: var(--muted);
  font-weight: 700;
  margin-left: 4px;
}
.price-save {
  margin-top: 6px;
  color: #15794e;
  font-weight: 700;
}
.price-list {
  margin: 18px 0;
  padding-left: 18px;
  color: #3b4049;
  line-height: 1.7;
}
.paywall-subtext {
  color: var(--muted);
  line-height: 1.7;
  max-width: 720px;
}
.paywall-note {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 14px;
}
.thanks-actions,
.paywall-actions {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.success-mark {
  font-size: 52px;
}
.footer {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 18px 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
}
.footer-links {
  display: flex;
  gap: 16px;
}
@media (max-width: 860px) {
  .trust-row,
  .result-grid,
  .feature-grid,
  .pricing-wrap {
    grid-template-columns: 1fr;
  }
  .snapshot-flow {
    flex-direction: column;
    align-items: flex-start;
  }
  .snapshot-arrow {
    display: none;
  }
  .health-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .topbar {
    padding-top: 14px;
  }
  .main-wrap {
    padding-top: 14px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .hero-card,
  .question-card,
  .center-card,
  .emergency-card,
  .paywall-card,
  .result-header-card,
  .result-map-card,
  .primary-insight-card,
  .timeline-value-card,
  .plan-preview-card,
  .lead-card {
    padding: 22px;
    border-radius: 22px;
  }
  .question-actions {
    flex-direction: column-reverse;
  }
  .footer {
    flex-direction: column;
  }
  .brand-sub {
    display: none;
  }
}
