/* Bespoke microsite — mobile-first, brand palette from the healthcare app. */
:root {
  --primary: #153246;
  --primary-90: #1c4560;
  --header: #0d5671;
  --accent: #70bca3;
  --accent-dark: #4f9c83;
  --ink: #153246;
  --muted: #5b6b78;
  --line: #e4e9ed;
  --bg: #f4f7f9;
  --card: #ffffff;
  --danger: #c0392b;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(21, 50, 70, 0.08);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Header / footer ---- */
.site-header {
  background: var(--header);
}
.site-header .container { display: flex; align-items: center; min-height: 64px; }

/* Landing page only: header expands to a quarter of the viewport height, logo centered and larger. */
body.landing .site-header { display: flex; align-items: center; min-height: 25vh; }
body.landing .site-header .container { justify-content: center; }
body.landing .brand-logo { height: 72px; }
.brand { text-decoration: none; display: inline-flex; align-items: center; }
.brand-logo { height: 36px; width: auto; display: block; }

main.container { padding-top: 28px; padding-bottom: 56px; min-height: calc(100vh - 64px - 60px); }

.site-footer { border-top: 1px solid var(--line); background: #fff; }
.site-footer p { color: var(--muted); font-size: 12.5px; text-align: center; padding: 18px 0; margin: 0; }

/* ---- Typography ---- */
h1 { font-size: 28px; line-height: 1.2; margin: 0 0 14px; }
h2 { font-size: 21px; margin: 0 0 10px; }
.lead { font-size: 17px; color: var(--muted); margin: 0 0 22px; }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 12px; font-weight: 700; color: var(--accent-dark); margin: 0 0 10px; }
.muted { color: var(--muted); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 999px; cursor: pointer;
  font-size: 16px; font-weight: 600; padding: 14px 26px;
  text-decoration: none; transition: transform .05s ease, background-color .2s ease, opacity .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-90); }
.btn-primary:disabled { opacity: .6; cursor: default; }
.btn-ghost { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-lg { padding: 16px 30px; font-size: 17px; }
.btn-block { width: 100%; }

/* ---- Hero (landing) ---- */
.hero { text-align: center; padding: 24px 0 8px; }
.hero h1 { font-size: 32px; }
.hero h1 em { color: var(--accent-dark); font-style: normal; }
.hero .btn { margin: 8px 0 22px; }
.hero-points { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; color: var(--muted); font-size: 14px; }
.hero-points li { position: relative; padding-left: 18px; }
.hero-points li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-dark); font-weight: 700; }

/* ---- Reward banner ---- */
.reward-banner {
  display: flex; align-items: center; gap: 14px; text-align: left;
  background: #eaf5f0; border: 1px solid #cfe8dd; border-left: 4px solid var(--accent-dark);
  border-radius: 14px; padding: 15px 18px; margin: 4px auto 24px; max-width: 520px;
}
.reward-icon { font-size: 30px; line-height: 1; flex-shrink: 0; }
.reward-banner p { margin: 0; font-size: 14.5px; color: var(--ink); }

.disclaimer-check { margin: 0 auto 18px; max-width: 480px; }
.reward-banner strong { color: var(--accent-dark); }

/* ---- Quiz ---- */
.progress { margin-bottom: 22px; }
.progress-track { height: 12px; background: var(--accent); border-radius: 999px; overflow: hidden; opacity: .35; }
.progress-fill { height: 100%; width: 0; background: var(--primary); border-radius: 999px; transition: width .3s ease; }
.progress:has(.progress-fill) .progress-track { opacity: 1; }
.progress-track { background: #d9e6e0; }
.progress-text { margin-top: 10px; font-size: 14px; color: var(--muted); }

.question { font-size: 22px; font-weight: 600; margin: 6px 0 22px; }

.options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.option {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 16px 16px; font-size: 16px; color: var(--ink); cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.option:hover { border-color: var(--accent); }
.option.selected { border-color: var(--primary); background: #eef3f6; }
.option-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--primary); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.option.selected .option-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.option-label { flex: 1; }

.actions { display: flex; align-items: center; gap: 12px; }
.actions-spacer { flex: 1; }
.quiz-hint { text-align: center; color: var(--muted); font-size: 13.5px; margin: 16px 0 0; }

/* ---- Messages ---- */
.error-box {
  display: none; background: #fdecea; border-left: 4px solid var(--danger); color: var(--danger);
  padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 14.5px; font-weight: 500;
}
.error-box.show { display: block; }
.error-box span { display: block; }

/* ---- Capture form ---- */
.form { display: flex; flex-direction: column; gap: 18px; margin-top: 6px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-label { font-weight: 600; font-size: 14.5px; }
.field-label small { color: var(--muted); font-weight: 400; }
.req { color: var(--danger); }
.field input {
  font-size: 16px; padding: 14px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink); width: 100%;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(112, 188, 163, .25); }
.field-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--muted); }
.field-check input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Results ---- */
.results h1 { text-align: center; }
.results .lead { text-align: center; }
.area-list { list-style: none; padding: 0; margin: 6px 0 30px; display: flex; flex-direction: column; gap: 14px; }
.area-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.area-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.area-name { font-weight: 700; font-size: 17px; }
.badge { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.badge-high { background: #fbeaea; color: var(--danger); }
.badge-warn { background: #fdf3e3; color: #b9770e; }
.badge-mid { background: #eaf5f0; color: var(--accent-dark); }
.area-bar { height: 10px; background: #edf1f4; border-radius: 999px; overflow: hidden; margin-bottom: 10px; }
.area-bar span { display: block; height: 100%; border-radius: 999px; }
.area-bar span.bar-high { background: linear-gradient(90deg, #e07856, var(--danger)); }
.area-bar span.bar-warn { background: linear-gradient(90deg, #f2c14e, #e0a339); }
.area-bar span.bar-mid { background: linear-gradient(90deg, var(--accent), var(--accent-dark)); }
.area-desc { margin: 0; color: var(--muted); font-size: 14.5px; }

.result-empty { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: center; box-shadow: var(--shadow); margin-bottom: 26px; }

.video-section { margin: 6px 0 30px; scroll-margin-top: 20px; }
.video-section h2 { text-align: center; }
.video-wrap { position: relative; width: 100%; height: 0; padding-bottom: 56.25%; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: #000; }
.video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

.cta { background: var(--primary); color: #fff; border-radius: var(--radius); padding: 28px 22px; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: #cdd8e0; margin: 0 0 18px; }
.cta .btn-primary { background: var(--accent); color: var(--primary); }
.cta .btn-primary:hover { background: var(--accent-dark); color: #fff; }

.disclaimer { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 22px; }

/* ---- Larger screens ---- */
@media (min-width: 640px) {
  h1 { font-size: 32px; }
  .hero h1 { font-size: 40px; }
  main.container { padding-top: 44px; }
}
