/* =========================================================
   Navigator — medical-themed landing
   Palette: white base + forest green (structural) + orange (CTA/highlight)
   ========================================================= */
:root {
  --bg: #ffffff;
  --bg-tint: #f7faf4;         /* faint green-tinged near-white */
  --bg-dark: #142112;         /* deep forest for the dark waitlist section */
  --ink: #0f1d16;
  --ink-soft: #3b4a3f;
  --muted: #6b7a70;
  --line: #e2ebde;
  --accent: #456B2F;          /* forest green — structural */
  --accent-deep: #2e4a1e;     /* darker green for hover / text */
  --accent-soft: #eaf1e3;     /* light green tint for surfaces */
  --accent-2: #1B486A;        /* medical blue — CTA / attention (matches logo) */
  --accent-2-deep: #123452;   /* darker blue for hover / focus text */
  --accent-2-soft: #dfe8ef;   /* light blue tint for surfaces */
  --success: #16a34a;
  --shadow-sm: 0 1px 2px rgba(15,29,40,.04), 0 1px 1px rgba(15,29,40,.04);
  --shadow-md: 0 4px 12px rgba(15,29,40,.06), 0 2px 4px rgba(15,29,40,.04);
  --shadow-lg: 0 12px 32px rgba(15,29,40,.08), 0 4px 8px rgba(15,29,40,.04);
  --radius: 14px;
  --radius-sm: 8px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Source Serif 4", "Source Serif Pro", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-deep); text-decoration: none; }
a:hover { color: var(--accent); }

img { max-width: 100%; display: block; }

.container { width: min(1140px, 92%); margin: 0 auto; }
.container.narrow { width: min(720px, 92%); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px max(24px, 4vw);
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.brand-mark {
  /* Wellvine PNG (padding trimmed; aspect ~1.13:1). Sized so both the
     WV monogram and the CARE APP wordmark stay legible in the header. */
  width: 62px; height: 54px;
  background: url("wellvine.png?v=4") no-repeat center / contain;
}
.brand-name {
  /* PNG already contains the wordmark. Hide the text visually but keep
     it in the DOM so screen readers still announce "Wellvine Care". */
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a { color: var(--ink-soft); font-size: 14px; font-weight: 500; }
.site-nav a:hover { color: var(--accent); }
.header-cta { display: flex; align-items: center; gap: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  font-weight: 600; font-size: 15px; line-height: 1;
  border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-sm { padding: 9px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent-2); color: #fff; }
.btn-primary:hover { background: var(--accent-2-deep); color: #fff; transform: translateY(-1px); }
.btn-secondary { background: var(--accent-soft); color: var(--accent-deep); }
.btn-secondary:hover { background: #d9e5cd; color: var(--accent-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-deep); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; position: relative; }
.section-tint { background: var(--bg-tint); }
.section-dark {
  background:
    radial-gradient(circle at 80% 0%, rgba(27,72,106,.30), transparent 55%),
    radial-gradient(circle at 0% 80%, rgba(69,107,47,.28), transparent 50%),
    var(--bg-dark);
  color: #e7eef2;
}

.eyebrow {
  text-transform: uppercase; letter-spacing: .14em;
  font-size: 12px; font-weight: 600;
  color: var(--accent-deep);
  margin: 0 0 14px;
}
.eyebrow.light { color: #b8cf95; }

.display {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 0 0 22px;
}
.heading {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -.005em;
  margin: 0 0 18px;
}
.heading.light { color: #fff; }

.accent { color: var(--accent-2); font-style: italic; }

.body {
  font-size: 17px; color: var(--ink-soft); margin: 0 0 16px;
  max-width: 56ch;
}
.body.light { color: #d3dbc4; }
.body.strong { color: var(--ink); font-weight: 500; }

.lede { font-size: 19px; color: var(--ink-soft); max-width: 52ch; margin: 0 0 28px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero { padding-top: 84px; padding-bottom: 64px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr .9fr;
  gap: 56px;
  align-items: center;
}
.hero-copy { padding-right: 8px; }
.hero-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.card-label {
  text-transform: uppercase; letter-spacing: .14em;
  font-size: 11px; color: var(--muted);
  margin: 0 0 18px;
}
.stat-row { display: flex; align-items: stretch; gap: 18px; }
.stat { flex: 1; }
.stat-value {
  font-family: var(--font-serif);
  font-size: 40px; font-weight: 600; color: var(--accent-deep);
  line-height: 1; display: flex; align-items: baseline; gap: 6px;
}
.stat-unit { font-size: 16px; color: var(--muted); font-weight: 500; }
.stat-label { font-size: 13px; color: var(--ink-soft); margin-top: 8px; }
.stat-divider { width: 1px; background: var(--line); }
.card-foot { color: var(--muted); font-size: 14px; margin: 20px 0 0; border-top: 1px solid var(--line); padding-top: 16px; }
.hero-scroll {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 24px; font-size: 12px; letter-spacing: .2em;
  color: var(--muted); text-transform: uppercase;
}

/* ---------- Two-column ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.two-col.reverse > div:first-child { order: 1; }

/* ---------- Problem scatter card ---------- */
.scatter-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-md);
  align-self: start;
  margin-top: 56px;
}
.scatter-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.scatter-list a {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--bg-tint); color: var(--ink);
  transition: background .15s ease, transform .15s ease;
}
.scatter-list a:hover { background: var(--accent-soft); transform: translateX(2px); }
.scatter-icon {
  width: 26px; height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}
.card-link { display: inline-block; margin-top: 18px; font-weight: 600; color: var(--accent-deep); }

/* ---------- Quote ---------- */
.quote {
  margin: 28px 0 0; padding: 20px 22px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.quote blockquote {
  margin: 0; font-family: var(--font-serif); font-style: italic;
  font-size: 18px; color: var(--ink);
}
.quote figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* ---------- Feature: medications ---------- */
.feature-visual { display: flex; justify-content: center; }
.med-app {
  width: 100%; max-width: 380px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow-lg);
  padding: 22px;
}
.med-app-head {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--muted);
  margin-bottom: 14px;
}
.med-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.med-list { list-style: none; margin: 0; padding: 0; }
.med-list li {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  padding: 12px 0; border-bottom: 1px dashed var(--line);
  position: relative; padding-right: 28px;
}
.med-list li:last-child { border-bottom: 0; }
.med-name { font-weight: 600; font-size: 15px; }
.med-meta { font-size: 13px; color: var(--muted); grid-column: 1; }
.med-check {
  position: absolute; right: 0; top: 14px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
}
.med-check::after {
  content: "";
  width: 7px; height: 4px;
  border-left: 2px solid var(--accent-deep);
  border-bottom: 2px solid var(--accent-deep);
  transform: rotate(-45deg);
  margin-top: -3px;
}
.med-foot { margin: 16px 0 0; font-size: 12px; color: var(--muted); }

.big-stat {
  display: flex; align-items: baseline; gap: 14px;
  padding: 18px 0; margin: 8px 0 22px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.big-stat-num {
  font-family: var(--font-serif); font-weight: 600;
  font-size: 56px; color: var(--accent-deep); line-height: 1;
}
.big-stat-label { color: var(--ink-soft); font-size: 15px; max-width: 22ch; }

.check-list {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px;
}
.check-list li { position: relative; padding-left: 26px; color: var(--ink); font-size: 15px; line-height: 1.5; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft);
}
.check-list li::after {
  content: ""; position: absolute; left: 5px; top: 7px;
  width: 7px; height: 4px;
  border-left: 2px solid var(--accent-deep);
  border-bottom: 2px solid var(--accent-deep);
  transform: rotate(-45deg);
}

/* ---------- Steps ---------- */
.step-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 20px; }
.step-list li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; }
.step-num {
  font-family: var(--font-serif);
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-deep);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 18px;
}
.step-list h3 { margin: 4px 0 4px; font-size: 17px; font-weight: 600; }
.step-list p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- Report preview ---------- */
.report-preview {
  width: 100%; max-width: 440px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-lg);
}
.report-preview header { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 16px; }
.report-kicker {
  margin: 0; font-size: 11px; text-transform: uppercase;
  letter-spacing: .18em; color: var(--accent-deep); font-weight: 700;
}
.report-sub { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.report-grid { margin: 0 0 22px; display: grid; gap: 14px; }
.report-grid > div { display: grid; gap: 2px; }
.report-grid dt { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.report-grid dd { margin: 0; font-size: 15px; color: var(--ink); }

/* ---------- Wellvine lockup on the landing page ---------- */
.hero-mark {
  display: block;
  width: 100%; max-width: 320px;
  height: auto;
  margin: 0 auto 12px;
  border-radius: var(--radius);
}

/* ---------- Waitlist ---------- */
.waitlist-form {
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px;
  background: rgba(255,255,255,.08);
  padding: 10px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  max-width: 640px; margin: 28px auto;
}
.waitlist-form input {
  background: transparent; border: 0; outline: 0;
  padding: 12px 16px; color: #fff; font-size: 15px; font-family: inherit;
}
.waitlist-form input::placeholder { color: rgba(255,255,255,.55); }
.waitlist-form input + input { border-left: 1px solid rgba(255,255,255,.16); }

.proof-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin: 40px auto 28px; max-width: 560px;
}
.proof-num {
  font-family: var(--font-serif); font-weight: 600;
  font-size: 34px; color: #fff;
}
.proof-lbl { font-size: 13px; color: #98a888; }
.fine-print { font-size: 12px; color: #98a888; max-width: 56ch; margin: 20px auto 0; }

/* ---------- Footer ---------- */
.site-footer { padding: 36px 0; border-top: 1px solid var(--line); background: #fff; }
.footer-inner {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  color: var(--muted); font-size: 14px;
}
.site-footer nav { display: flex; gap: 20px; margin-left: auto; }
.site-footer nav a { color: var(--ink-soft); }
.site-footer .copy { margin-left: 0; }
.site-footer .brand-name { color: var(--ink); margin-left: 8px; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .site-nav { display: none; }
  .hero-grid, .two-col { grid-template-columns: 1fr; gap: 36px; }
  .two-col.reverse > div:first-child { order: 0; }
  .section { padding: 72px 0; }
  .check-list { grid-template-columns: 1fr; }
  .waitlist-form { grid-template-columns: 1fr; border-radius: var(--radius); }
  .waitlist-form input + input { border-left: 0; border-top: 1px solid rgba(255,255,255,.16); }
  .proof-row { grid-template-columns: 1fr; gap: 16px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .site-footer nav { margin-left: 0; flex-wrap: wrap; }
}

/* ---------- Sub-page shared ---------- */
.page {
  padding: 64px 0 96px;
}
.page .back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--accent-deep); margin-bottom: 22px;
}
.page h1 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 48px);
  margin: 0 0 14px;
  line-height: 1.1;
}
.page .lede { margin-bottom: 36px; }

.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px; margin-top: 32px;
}
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 14px; }

.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-md); max-width: 520px;
}
.form-card label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin: 12px 0 6px; }
.form-card input, .form-card select, .form-card textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15px; color: var(--ink);
  background: #fff; outline: 0;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-card .btn { margin-top: 22px; width: 100%; }
.form-note { font-size: 12px; color: var(--muted); margin-top: 14px; }
.field-err { color: #b91c1c; font-weight: 600; margin-top: 6px; }

/* ---------- Checkbox row (Terms & Conditions in signup) ---------- */
.checkbox-row {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 18px 0 4px;
  font-size: 14px; font-weight: 500; color: var(--ink);
  cursor: pointer;
  padding: 0;
}
.checkbox-row input[type="checkbox"] {
  width: 18px; height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.checkbox-row span { line-height: 1.45; }
.checkbox-row a { color: var(--accent-deep); font-weight: 600; }

/* ---------- Legal / Terms page ---------- */
.legal-page h1 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 44px);
  margin: 0 0 12px;
}
.legal-preface {
  color: var(--ink-soft); font-size: 15px; margin: 0 0 4px;
  font-style: italic;
}
.legal-callout {
  background: var(--accent-2-soft);
  border: 1px solid var(--accent-2);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0 40px;
}
.legal-callout h2 {
  font-size: 18px; font-weight: 700;
  color: var(--accent-2-deep);
  margin: 0 0 10px;
  letter-spacing: 0;
}
.legal-callout p { font-size: 15px; color: var(--ink); }
.legal-section { margin-bottom: 28px; }
.legal-section h2 {
  font-family: var(--font-serif);
  font-size: 20px; font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: -.005em;
}
.legal-section p {
  font-size: 15px; line-height: 1.65; color: var(--ink-soft);
  margin: 0;
}
.legal-section a { text-decoration: underline; }

/* ---------- Verify / verification-pending pages ---------- */
.verify-mark {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-deep);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 34px; margin: 0 auto 20px;
}
.verify-mark.success { background: #eaf6df; color: var(--accent-deep); }
.verify-mark.error   { background: #fde7e7; color: #b91c1c; }
.verify-mark.spinning { animation: verifySpin 1.2s linear infinite; }
@keyframes verifySpin { to { transform: rotate(360deg); } }

.verify-steps {
  background: var(--bg-tint);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px auto;
  max-width: 460px;
  text-align: left;
}
.verify-steps p { margin: 0 0 8px; color: var(--ink); }
.verify-steps ul { margin: 0; padding-left: 20px; color: var(--ink-soft); }
.verify-steps li { margin: 4px 0; }

/* ---------- Onboarding wizard ---------- */
.onboarding-body { background: var(--bg-tint); }
.onboarding { padding: 40px 0 80px; }
.progress {
  max-width: 640px; margin: 0 auto 40px; padding: 0 4px;
}
.progress-bar {
  height: 6px; background: #dfe7d6; border-radius: 999px; overflow: hidden;
}
.progress-fill {
  height: 100%; background: var(--accent);
  transition: width .3s ease;
}
.ob-eyebrow {
  text-transform: uppercase; letter-spacing: .14em;
  font-size: 12px; font-weight: 700; color: var(--accent-deep);
  margin: 0 0 14px;
}
.ob-heading {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700; line-height: 1.15;
  color: var(--ink); margin: 0 0 12px;
  letter-spacing: -.01em;
}
.ob-sub {
  font-size: 16px; color: var(--ink-soft); margin: 0 0 28px;
}
.ob-options {
  display: grid; gap: 12px; margin-bottom: 28px;
}
.ob-option {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px 22px;
  background: #ffffff; border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font: inherit; font-size: 16px; color: var(--ink);
  text-align: left; cursor: pointer;
  transition: transform .12s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.ob-option:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.ob-option.selected {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.ob-option > span {
  color: var(--muted); font-size: 18px; font-weight: 500;
}
.ob-nav { display: flex; justify-content: flex-start; }

.med-table {
  width: 100%; border-collapse: collapse; margin-top: 24px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.med-table th, .med-table td { padding: 14px 18px; text-align: left; font-size: 14px; }
.med-table th { background: var(--bg-tint); color: var(--ink-soft); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.med-table tr + tr td { border-top: 1px solid var(--line); }
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-deep); font-size: 12px; font-weight: 600;
}
