/* Hodea Health landing. Brand tokens from the app (src/theme.ts) + the icon's greens and cream. Mobile first. */
:root {
  --bg: #ffffff; --surface: #f4f7f5; --cream: #f6f0df; --cream-line: #e9dfc4;
  --forest: #2e4a3c; --green: #567d62; --green-dark: #3f6a4f; --sage: #7e9c82; --sage-soft: #eaf1eb; --leaf: #7fb55a;
  --text: #1e2528; --muted: #5d6970; --border: #e2e8e5; --error: #a2412a; --ok-bg: #e3f1e1; --ok-line: #a9cda4;
  --radius: 16px; --shadow: 0 1px 2px rgba(42,58,68,.06), 0 8px 24px rgba(42,58,68,.06);
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "DejaVu Serif", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, .pill input:focus-visible + span { outline: 3px solid var(--leaf); outline-offset: 2px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--forest); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 640px; }
.center { text-align: center; }
h1, h2, h3 { font-family: var(--serif); color: var(--forest); line-height: 1.15; font-weight: 600; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 4.6vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 35px; height: 40px; }
.wordmark { white-space: nowrap; font-family: var(--serif); font-size: 1.3rem; color: var(--forest); font-weight: 600; }
.wordmark-sub { color: var(--green); font-weight: 400; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px;
  background: var(--green-dark); color: #fff; font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--forest); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-small { min-height: 40px; padding: 0 16px; font-size: .92rem; white-space: nowrap; }
@media (max-width: 360px) { .wordmark-sub { display: none; } }
.btn-block { width: 100%; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }

/* Hero */
.hero { padding: 40px 0 32px; background: linear-gradient(180deg, #fff 0%, var(--sage-soft) 100%); }
.hero-grid { display: grid; gap: 24px; align-items: center; }
.eyebrow { display: inline-block; margin-bottom: 14px; padding: 6px 12px; border-radius: 999px; background: var(--cream); border: 1px solid var(--cream-line); color: var(--forest); font-size: .85rem; font-weight: 600; }
.lede { font-size: 1.15rem; color: #34433b; max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 8px; }
.hero-art { justify-self: center; width: min(56vw, 220px); }
.hero-art img { border-radius: 28px; box-shadow: var(--shadow); background: #fff; }

/* Sections */
.section { padding: 56px 0; }
.section-tint { background: var(--surface); }
.cards { display: grid; gap: 16px; margin-top: 8px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35em; }
.card p { margin: 0; color: var(--muted); }
.card::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--leaf); margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 8px 0 0; list-style: none; }
.chips li { padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--border); color: var(--forest); font-weight: 600; font-size: .95rem; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding: 16px 16px 16px 64px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--cream); border: 1px solid var(--cream-line);
  color: var(--forest); font: 600 1rem/34px var(--serif); text-align: center; }

/* Form */
.section-join { background: linear-gradient(180deg, var(--sage-soft), #fff); }
.sub { color: var(--muted); }
.form { background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); }
.field { margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.row { display: grid; gap: 0 16px; }
label, legend { display: block; font-weight: 600; margin-bottom: 6px; color: var(--forest); }
.opt { font-weight: 400; color: var(--muted); font-size: .9em; }
.req { color: var(--error); }
input[type=email], input[type=text] { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid #cfd8d3; border-radius: 12px; font: inherit; color: var(--text); background: #fff; }
input[aria-invalid=true] { border-color: var(--error); }
.hint { margin: 6px 0 0; font-size: .85rem; color: var(--muted); }
.err { margin: 6px 0 0; font-size: .9rem; color: var(--error); font-weight: 600; }
.roles { display: flex; flex-wrap: wrap; gap: 8px; }
.roles legend { width: 100%; }
.pill { position: relative; margin: 0; font-weight: 500; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid #cfd8d3; cursor: pointer; color: var(--text); }
.pill input:checked + span { background: var(--sage-soft); border-color: var(--green); color: var(--forest); font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { margin: 14px 0 0; font-size: .85rem; color: var(--muted); }
.status { margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-weight: 600; }
.status.ok { background: var(--ok-bg); border: 1px solid var(--ok-line); color: #1f5a2e; }
.status.info { background: var(--cream); border: 1px solid var(--cream-line); color: var(--forest); }
.status.error { background: #fbeee9; border: 1px solid #e7b9a8; color: var(--error); }

/* FAQ */
details { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 0 18px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 16px 0; font-weight: 600; color: var(--forest); list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--green); font-size: 1.2rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); }

/* Footer */
.site-footer { padding: 36px 0 48px; border-top: 1px solid var(--border); font-size: .9rem; color: var(--muted); }
.footer-brand { display: flex; align-items: center; gap: 8px; font-family: var(--serif); color: var(--forest); font-size: 1.1rem; margin-bottom: 12px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 12px 0; }
.disclaimer { max-width: 60em; }

/* Legal pages */
.legal { padding: 40px 0 64px; }
.legal h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
.legal h2 { font-size: 1.45rem; margin-top: 1.8em; }
.legal h3 { font-size: 1.15rem; margin-top: 1.4em; }
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .95rem; display: block; overflow-x: auto; }
.legal th, .legal td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal th { background: var(--surface); }
.legal li { margin-bottom: .35em; }
.legal code { font-size: .9em; background: var(--surface); padding: 1px 5px; border-radius: 4px; }
.draft-banner { background: var(--cream); border: 1px solid var(--cream-line); border-radius: 14px; padding: 14px 16px; margin-bottom: 24px; color: var(--forest); }
.review-note { display: block; margin: .6em 0 1em; padding: 10px 14px; border-left: 4px solid #d9a441; background: #fff8e6; color: #6b5114; font-size: .9rem; border-radius: 0 10px 10px 0; }
.fill { background: #fff3c4; padding: 0 4px; border-radius: 4px; font-weight: 600; }
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 48px 0; }

@media (min-width: 720px) {
  .hero { padding: 72px 0 64px; }
  .hero-grid { grid-template-columns: 1.25fr 1fr; gap: 48px; }
  .hero-art { width: 340px; }
  .wordmark { font-size: 1.45rem; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .row { grid-template-columns: 1fr 1fr; }
  .form { padding: 32px; }
  .section { padding: 80px 0; }
}
