@font-face { font-family: "Instrument Sans"; font-weight: 400; font-display: swap; src: url(/fonts/instrument-400.woff) format("woff"); }
@font-face { font-family: "Instrument Sans"; font-weight: 500; font-display: swap; src: url(/fonts/instrument-500.woff) format("woff"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-display: swap; src: url(/fonts/instrument-600.woff) format("woff"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url(/fonts/plexmono-500.woff) format("woff"); }

:root {
  --canvas: #f5f7f8; --surface: #ffffff; --sunken: #ecf0f2; --hairline: #dce2e6; --hairline-strong: #c3ccd2; --control: #7d8c97;
  --ink: #0d1b24; --ink-muted: #475763; --ink-subtle: #5f6e7a;
  --tide: #17607a; --tide-pressed: #0f4a5e; --tide-tint: #e2eff3; --on-tide: #ffffff;
  --taken: #1a7049; --taken-tint: #e1f2e9; --due: #945500; --missed: #b83a32;
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --max: 1120px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0a1117; --surface: #111a21; --sunken: #0d151b; --hairline: #22303a; --hairline-strong: #31414d; --control: #5f7383;
    --ink: #e9eff2; --ink-muted: #a3b1bb; --ink-subtle: #7e8d98;
    --tide: #6cc3da; --tide-pressed: #8fd3e5; --tide-tint: #10303a; --on-tide: #06222b;
    --taken: #52c48e; --taken-tint: #0f2e22; --due: #f2b54b; --missed: #f28b82;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 17px/1.55 var(--sans); }
img, svg { max-width: 100%; display: block; }
a { color: var(--tide); text-underline-offset: 3px; }
a:hover { color: var(--tide-pressed); }
:focus-visible { outline: 3px solid var(--tide); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: var(--r-sm); z-index: 10; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; margin: 0 0 12px; }
h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; }
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0 0 14px; }
.muted { color: var(--ink-muted); }
.subtle { color: var(--ink-subtle); font-size: 14px; }
.overline { font: 600 12px/16px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-subtle); margin-bottom: 10px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--canvas) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--hairline); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--ink-muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 720px) { .nav-links a:not(.btn) { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--r-md);
  font: 600 16px/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .12s, transform .12s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--tide); color: var(--on-tide) !important; }
.btn-primary:hover { background: var(--tide-pressed); }
.btn-secondary { background: var(--surface); color: var(--ink) !important; border-color: var(--control); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn[disabled] { background: var(--sunken); color: var(--ink-subtle) !important; cursor: not-allowed; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; z-index: -1; }
.hero .copy { max-width: 560px; }
.hero .lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink-muted); margin-bottom: 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.availability { margin-top: 18px; font-size: 14px; color: var(--ink-subtle); }
@media (max-width: 900px) {
  .hero { padding: 40px 0 0; }
  .hero-art { position: static; height: auto; aspect-ratio: 4 / 3; object-position: 88% center; margin-top: 32px; z-index: 0; }
}

/* sections */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border-radius: var(--r-lg); padding: 24px; border: 1px solid var(--hairline); }
.card p:last-child { margin-bottom: 0; }
.icon-tile { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--tide-tint); color: var(--tide); margin-bottom: 16px; }
.icon-tile svg { width: 22px; height: 22px; }

.band { background: var(--surface); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.split { display: grid; gap: 40px; grid-template-columns: 1.1fr 1fr; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; }
.checks li::before { content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 6px; background: var(--taken-tint)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a7049' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* sample dose card (illustrative UI, real text) */
.mock { background: var(--canvas); border-radius: var(--r-xl); padding: 20px; border: 1px solid var(--hairline); display: grid; gap: 12px; }
.mock-row { background: var(--surface); border-radius: var(--r-lg); padding: 16px; display: flex; align-items: center; gap: 14px; border: 1px solid var(--hairline); }
.mock-bar { width: 6px; align-self: stretch; border-radius: 3px; background: var(--tide); }
.mock-row .t { flex: 1; } .mock-row .t b { display: block; font-weight: 600; } .mock-row .t span { font-size: 14px; color: var(--ink-muted); }
.pill { font: 600 12px/1 var(--sans); padding: 6px 8px; border-radius: 6px; white-space: nowrap; }
.pill.taken { color: var(--taken); background: var(--taken-tint); } .pill.due { color: var(--due); background: color-mix(in srgb, var(--due) 14%, transparent); }

/* pricing */
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.plan { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-xl); padding: 28px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--tide); }
.price { font: 500 34px/1.1 var(--mono); letter-spacing: -0.02em; margin: 6px 0 4px; }
.price small { font: 400 15px var(--sans); color: var(--ink-muted); letter-spacing: 0; }
.plan ul { margin: 18px 0 0; }

/* faq */
details { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 0 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 600; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 500 22px/1 var(--mono); color: var(--ink-subtle); }
details[open] summary::after { content: "−"; }
details > div { padding-bottom: 18px; color: var(--ink-muted); }

/* signup */
.signup { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 40px); }
.signup form { display: grid; gap: 14px; max-width: 520px; }
.field { display: grid; gap: 6px; }
label.lbl { font: 500 13px/18px var(--sans); color: var(--ink-muted); }
input[type=email] { font: 400 17px var(--sans); color: var(--ink); background: var(--sunken); border: 1px solid var(--control); border-radius: var(--r-sm); min-height: 52px; padding: 0 14px; width: 100%; }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 15px; color: var(--ink); cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--tide); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 24px; font-size: 15px; }
.form-msg.ok { color: var(--taken); } .form-msg.err { color: var(--missed); }

/* legal / prose */
.prose { padding: 48px 0 72px; }
.prose h2 { font-size: 20px; margin-top: 36px; }
.prose p { color: var(--ink-muted); }
.notice { background: color-mix(in srgb, var(--due) 12%, transparent); color: var(--ink); border-radius: var(--r-md); padding: 12px 16px; font-size: 15px; margin: 16px 0 8px; }
.steps { padding-left: 22px; } .steps li { margin-bottom: 10px; color: var(--ink-muted); }

/* footer */
.site-footer { border-top: 1px solid var(--hairline); padding: 40px 0 56px; font-size: 14px; color: var(--ink-subtle); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot a { color: var(--ink-muted); text-decoration: none; } .foot a:hover { color: var(--ink); text-decoration: underline; }

.center-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.center-page .card { max-width: 520px; }

.bar-2 { background: #3e6fb0; } .foot-name { color: var(--ink); } .h-compact { font-size: 28px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; }
@media (prefers-color-scheme: dark) { .bar-2 { background: #8db3ec; } }
