/* Health Quest Ally - shared styles */

:root {
  --ink: #0F2338;
  --ink-soft: #4B6076;
  --ink-faint: #7C8CA0;
  --line: #E3E9F0;
  --bg: #FFFFFF;
  --bg-tint: #F5F9FD;
  --blue: #0B8AD1;
  --blue-deep: #06699F;
  --blue-wash: #E2F3FD;
  --teal: #17A398;
  --teal-wash: #E4F5F3;
  --radius: 14px;
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

a { color: var(--blue-deep); }

/* ---------- header ---------- */
header.site {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  position: sticky; top: 0; z-index: 20;
}
header.site .wrap {
  display: flex; align-items: center; gap: 20px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); font-weight: 700; letter-spacing: -0.01em; }
.brand .mark {
  width: 32px; height: 32px; border-radius: 9px; flex: 0 0 auto;
  display: block; object-fit: cover;
  box-shadow: 0 2px 6px rgba(6,105,159,0.28);
}

nav.site { margin-left: auto; display: flex; align-items: center; gap: 26px; }
nav.site a { color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 500; }
nav.site a:hover { color: var(--ink); }
nav.site a.cta {
  background: var(--blue); color: #fff; padding: 9px 16px; border-radius: 999px;
  font-weight: 600;
}
nav.site a.cta:hover { background: var(--blue-deep); color: #fff; }
@media (max-width: 640px) {
  nav.site { gap: 16px; }
  nav.site a.hide-sm { display: none; }
}

/* ---------- hero ---------- */
.hero { padding: 76px 0 64px; background: linear-gradient(180deg, var(--bg-tint), #fff); border-bottom: 1px solid var(--line); }
.hero h1 {
  font-size: clamp(34px, 5.4vw, 54px);
  line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 20px;
  max-width: 16ch;
}
.hero .lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-soft); max-width: 56ch; margin: 0 0 32px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--blue-deep);
  background: var(--blue-wash); padding: 6px 12px; border-radius: 999px; margin-bottom: 22px;
}

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--ink); color: #fff; text-decoration: none;
  padding: 14px 22px; border-radius: 12px; font-weight: 600; font-size: 16px;
}
.btn:hover { background: #04182b; color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--bg-tint); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.note-under { font-size: 14px; color: var(--ink-faint); margin-top: 14px; }

/* ---------- sections ---------- */
section { padding: 68px 0; }
section.tint { background: var(--bg-tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 14px; }
h3 { font-size: 19px; letter-spacing: -0.01em; margin: 0 0 8px; }
.section-lede { color: var(--ink-soft); max-width: 62ch; margin: 0 0 38px; font-size: 18px; }

.grid { display: grid; gap: 20px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid.three, .grid.two { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px;
}
.card p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.card .pip {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--blue-wash); margin-bottom: 16px;
}
.card .pip.teal { background: var(--teal-wash); }
.card .pip svg { width: 18px; height: 18px; }

/* ---------- promise band ---------- */
.promise {
  background: var(--ink); color: #fff; border-radius: 20px; padding: 48px 44px;
  display: grid; gap: 10px;
}
.promise p.big { font-size: clamp(23px, 3vw, 30px); line-height: 1.3; letter-spacing: -0.02em; margin: 0; max-width: 24ch; font-weight: 600; }
.promise p.small { color: #A9BCCE; margin: 6px 0 0; max-width: 54ch; }
@media (max-width: 640px) { .promise { padding: 32px 26px; } }

/* ---------- lists ---------- */
ul.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
ul.ticks li { position: relative; padding-left: 30px; color: var(--ink-soft); }
ul.ticks li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--teal-wash);
  box-shadow: inset 0 0 0 2px var(--teal);
}
ul.crosses li::before { background: #FBE9E9; box-shadow: inset 0 0 0 2px #D9736F; }

/* ---------- price ---------- */
.price-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 0; }
.price {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; background: #fff;
  min-width: 210px;
}
.price .amt { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.price .per { color: var(--ink-faint); font-size: 15px; }

/* ---------- prose (support / privacy) ---------- */
.prose { max-width: 720px; }
.prose h2 { margin-top: 46px; font-size: 24px; }
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { margin-top: 30px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 7px; }
.prose .updated { color: var(--ink-faint); font-size: 15px; }
.page-head { padding: 56px 0 34px; border-bottom: 1px solid var(--line); background: var(--bg-tint); }
.page-head h1 { font-size: clamp(30px, 4.4vw, 42px); letter-spacing: -0.025em; margin: 0 0 10px; }
.page-head p { color: var(--ink-soft); margin: 0; max-width: 58ch; }

.callout {
  background: var(--blue-wash); border: 1px solid #CDE4F8; border-radius: var(--radius);
  padding: 20px 22px; margin: 26px 0;
}
.callout p { margin: 0; color: var(--ink); }
.callout strong { color: var(--ink); }

details.faq {
  border-bottom: 1px solid var(--line); padding: 18px 0;
}
details.faq summary {
  cursor: pointer; font-weight: 600; list-style: none; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--ink-faint); font-weight: 400; font-size: 22px; line-height: 1; }
details.faq[open] summary::after { content: "\2013"; }
details.faq p { margin: 12px 0 0; color: var(--ink-soft); }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--line); padding: 44px 0 60px; background: var(--bg-tint); }
footer.site .cols { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
footer.site a { color: var(--ink-soft); text-decoration: none; display: block; margin-bottom: 8px; font-size: 15px; }
footer.site a:hover { color: var(--ink); }
footer.site .fine { color: var(--ink-faint); font-size: 14px; margin-top: 34px; max-width: 66ch; }
footer.site h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); margin: 0 0 14px; font-weight: 600; }
