/* Coastal Breeze AI. Layout: an open coastline. Deep-navy header and hero, the icon's wave as the one
   bold band, then calm light sections on a sea-mist ground; one column on phones. Large text and big
   tap targets throughout, because many readers live with tremor or low vision. */

@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/atkinson-hyperlegible-400.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/atkinson-hyperlegible-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/atkinson-hyperlegible-700.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("fonts/bricolage-grotesque-var.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-500.woff2") format("woff2"); }

:root {
  --navy: #0b1f5c;        /* deep water, the icon's top-left */
  --azure: #1d5fd0;       /* the icon's blue, deepened so small text passes 4.5:1 on mist, white and sand */
  --sky: #4aa8f0;         /* the icon's lower-right, the wave crest */
  --mist: #f2f6fb;        /* page ground, blue-biased */
  --surface: #ffffff;
  --ink: #0f1c3a;
  --ink-soft: #46546f;
  --line: #d8e2ef;
  --sand: #efe4cf;        /* the shore: used once per page, for the contact band */
  --lilac: #dccdfa;       /* the app's Ask button */
  --ok: #1f8a4c;
  --on-dark: #f4f8ff;
  --on-dark-soft: #d2def5;   /* at least 4.8:1 on every blue below, including each band's lightest end */
  --button: #1d5fd0;      /* filled buttons: the same blue in both themes, so white text keeps its contrast */

  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Verdana", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --step-0: 1.1875rem;    /* 19px body: large on purpose */
  --step-1: 1.375rem;
  --step-2: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  --step-3: clamp(2.4rem, 1.4rem + 4vw, 4.4rem);
  --radius: 14px;
  --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --mist: #0a1430; --surface: #111e42; --ink: #eaf1ff; --ink-soft: #a9b8d6; --line: #23335e;
    --azure: #6aa6ff; --sand: #2b2a3a; --lilac: #dccdfa; --ok: #4cc382; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --mist: #0a1430; --surface: #111e42; --ink: #eaf1ff; --ink-soft: #a9b8d6; --line: #23335e;
  --azure: #6aa6ff; --sand: #2b2a3a; --lilac: #dccdfa; --ok: #4cc382; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; text-wrap: balance; margin: 0; }
h2 { font-size: var(--step-2); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0; }
a { color: var(--azure); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.wrap.narrow { max-width: 48rem; }
.eyebrow {
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--azure);
}
.eyebrow.on-dark { color: #bfe0ff; }

/* Skip link: first thing a keyboard reaches */
.skip { position: absolute; left: 12px; top: -100px; z-index: 30; background: var(--surface); color: var(--ink); padding: 12px 18px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }

/* Header: stays on screen, so the logo (home) and the menu are always one tap away */
.site-header { background: var(--navy); color: var(--on-dark); position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 12px rgba(3,10,40,.25); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-dark); text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; }
.brand svg { flex: none; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--on-dark-soft); text-decoration: none; font-size: 1.02rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--on-dark); text-decoration: underline; text-decoration-thickness: 2px; }
.nav .pill { color: var(--navy); background: var(--on-dark); padding: 8px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.nav .pill:hover { text-decoration: none; }
.menu-btn {
  display: none; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 2px solid rgba(244,248,255,.6);
  background: transparent; color: var(--on-dark); font: 700 1.02rem var(--font-body); cursor: pointer;
}

/* Home: on the home page it appears once the opening section is out of view; elsewhere it is always there */
.to-home {
  position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 20; display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 20px;
  border-radius: 999px; background: var(--navy); color: var(--on-dark); border: 2px solid rgba(244,248,255,.6);
  font: 700 1.05rem var(--font-body); text-decoration: none; box-shadow: 0 10px 30px rgba(3,10,40,.35);
  transition: opacity .2s, transform .2s;
}
.to-home:hover { border-color: var(--on-dark); }
.to-home.away { opacity: 0; transform: translateY(12px); pointer-events: none; }
/* On the home page the chat takes the corner, and Home sits just above it. */
.with-chat .to-home { bottom: calc(max(16px, env(safe-area-inset-bottom, 0px)) + 66px); }

/* Chat (home page): a button in the corner that opens a panel above it. Hidden without JavaScript. */
.chat { display: none; flex-direction: column; align-items: flex-end; }
.js .chat {
  display: flex; position: fixed; z-index: 30;
  right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px));
}
.chat-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 20px; margin-left: auto;
  border-radius: 999px; background: var(--button); color: #fff; border: 2px solid rgba(244,248,255,.6);
  font: 700 1.05rem var(--font-body); cursor: pointer; box-shadow: 0 10px 30px rgba(3,10,40,.35);
}
.chat-btn:hover { border-color: #fff; }
.chat-panel {
  display: flex; flex-direction: column; gap: 10px; width: min(400px, calc(100vw - 32px));
  max-height: min(620px, calc(100dvh - 120px)); margin-bottom: 12px; padding: 16px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 18px 48px rgba(3,10,40,.35);
}
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chat-head h2 { font-size: var(--step-1); }
.chat-close {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 999px;
  background: transparent; color: var(--ink); border: 1px solid var(--line); cursor: pointer;
}
.chat-log { flex: 1 1 auto; min-height: 120px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { margin: 0; padding: 10px 14px; border-radius: 16px; max-width: 88%; font-size: 1.05rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-msg.from-bot { align-self: flex-start; background: var(--mist); border: 1px solid var(--line); }
.chat-msg.from-you { align-self: flex-end; background: var(--button); color: #fff; }
.chat-msg.waiting { color: var(--ink-soft); font-style: italic; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-chip {
  min-height: 44px; padding: 6px 14px; border-radius: 999px; background: var(--surface); color: var(--azure);
  border: 2px solid var(--azure); font: 700 1rem var(--font-body); cursor: pointer;
}
.chat-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.chat-form[hidden] { display: none; }
.chat-label { grid-column: 1 / -1; font-weight: 700; font-size: 1rem; }
.chat-form textarea {
  width: 100%; min-height: 52px; padding: 10px 12px; resize: none; border-radius: 12px;
  border: 2px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 1.05rem;
}
.chat-form textarea:focus { border-color: var(--azure); outline: none; }
.chat-send {
  min-height: 52px; padding: 0 20px; border-radius: 999px; background: var(--button); color: #fff;
  border: 0; font: 700 1.05rem var(--font-body); cursor: pointer;
}
.chat-send:disabled { opacity: .6; cursor: wait; }
.chat-note { margin: 0; font-size: .95rem; line-height: 1.45; color: var(--ink-soft); }
.chat-note a { color: var(--azure); font-weight: 700; }
/* Open, the panel needs the corner to itself. */
.with-chat:has(.chat.open) .to-home { opacity: 0; pointer-events: none; }

/* Hero (home page) */
.hero {
  background-color: var(--navy);
  background-image:
    radial-gradient(60% 70% at 85% 10%, rgba(74,168,240,.22), transparent 70%),
    linear-gradient(160deg, #0b1f5c 0%, #1747c4 62%, #1b55cc 100%);
  color: var(--on-dark);
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start; padding-block: 56px 24px; }
/* The description with the small app right beside it, then the button. */
.hero-intro { margin-top: 22px; }
/* The headline and description, with the app's screenshots beside them from the top. */
.hero-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: start; }
.hero .hero-intro .lede { margin: 0; min-width: 0; font-size: clamp(1.4rem, 1.05rem + 1.1vw, 1.8rem); line-height: 1.45; max-width: 30ch; }
.hero-lower { display: flex; align-items: center; margin-top: 28px; }
.hero-phone { flex: none; }
.hero-actions { display: grid; gap: 14px; min-width: 0; }
.hero-actions .btn { justify-content: center; }
/* Under the subscription note: Contact us, then who makes the app. */
.hero-contact { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 8px; }
.hero-contact .hero-note { margin-top: 0; }
.hero h1 { font-size: var(--step-3); font-weight: 800; letter-spacing: -0.025em; }
.hero h1 em { font-style: normal; color: #bfe0ff; }
.hero .lede { margin-top: 22px; font-size: 1.3rem; color: var(--on-dark-soft); max-width: 34ch; }
.hero .lede strong { color: var(--on-dark); }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 1.1rem; text-decoration: none; border: 2px solid transparent; }
.btn-light { background: var(--on-dark); color: var(--navy); }
.btn-ghost { color: var(--on-dark); border-color: rgba(244,248,255,.5); }
.btn-ghost:hover { border-color: var(--on-dark); }
.btn-blue { background: var(--button); color: #fff; }
.hero-note { margin-top: 18px; font-size: 0.98rem; color: var(--on-dark-soft); max-width: 38ch; }
/* Availability: plain text, not Apple's badge (that badge is only for apps already in the store) */
.soon { display: inline-flex; align-items: center; gap: 12px; justify-self: start; padding: 10px 18px 10px 12px; border-radius: 14px; background: rgba(5,9,26,.55); border: 1px solid rgba(191,224,255,.35); color: var(--on-dark); }
.soon svg { flex: none; }
.soon b { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; }
.availability { margin-top: 20px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 6px; max-width: 40rem; }

/* The hero photo; under it, availability and contact */
.phone-col { display: grid; gap: 22px; justify-items: start; align-content: start; }
.photo { margin: 0; width: 100%; max-width: 600px; }
.photo img { display: block; width: 100%; height: auto; border-radius: 28px; box-shadow: 0 30px 80px rgba(3,10,40,.45); }
.hero-app { width: 100%; max-width: 600px; display: grid; gap: 10px; }
.hero-app-text { display: grid; gap: 10px; min-width: 0; }
.hero-app .hero-note { margin-top: 0; }
/* The app beside the description: real screenshots of the Today screen, day (light mode) above
   night (dark mode). */
.hero-shots { --w: 120px; display: grid; gap: 22px; width: var(--w); margin: 0; }
.hero-shots img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 14px 34px rgba(3,10,40,.5), 0 0 0 1px rgba(255,255,255,.18); }

/* The wave: the icon's motif, the home page's one bold band */
.wave { display: block; width: 100%; height: 90px; }
.wave-top { background: transparent; }
.wave-top .w2 { fill: #4aa8f0; opacity: .55; }

/* Subpage header band: a quieter version of the hero */
.page-band {
  background-color: var(--navy);
  background-image: linear-gradient(160deg, #0b1f5c 0%, #1747c4 70%, #1b55cc 100%);
  color: var(--on-dark); padding-block: 56px 64px;
}
.page-band h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em; margin-top: 10px; }
.page-band .lede { margin-top: 16px; font-size: 1.3rem; color: var(--on-dark-soft); max-width: 40ch; }
.page-band .meta { margin-top: 14px; color: var(--on-dark-soft); font-size: 1rem; }
.page-band .meta strong { color: var(--on-dark); }
.page-band .contact { color: var(--on-dark); font-weight: 700; user-select: all; }

/* Sections */
section { padding-block: 72px; }
.section-head { display: grid; gap: 12px; max-width: 46rem; margin-bottom: 40px; }
.section-head p { color: var(--ink-soft); }
.flush-top { padding-top: 0; }
.h-gap { margin-top: 12px; }
.soft-gap { margin-top: 16px; color: var(--ink-soft); }
.legend-gap { margin-top: 10px; }
.more { margin-top: 28px; font-weight: 700; }
.more a { display: inline-flex; align-items: center; min-height: 48px; }

/* How it works: a real sequence, so it is numbered */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { display: grid; gap: 10px; align-content: start; min-width: 0; }
.steps li::before {
  counter-increment: step; content: counter(step);
  font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--surface);
  background: var(--azure); width: 46px; height: 46px; border-radius: 50%; display: grid; place-content: center;
}
.steps p { color: var(--ink-soft); }
.quote { font-family: var(--font-mono); font-size: 0.95rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.feature svg { color: var(--azure); }
.feature p { color: var(--ink-soft); font-size: 1.05rem; }

/* Detail pages: a heading on the left, the details on the right */
.detail { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; padding-block: 44px; border-top: 1px solid var(--line); }
.detail:first-child { border-top: 0; }
.detail h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); }
.detail .body { display: grid; gap: 14px; }
.detail .body p, .detail .body li { color: var(--ink-soft); }
.detail ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.detail strong { color: var(--ink); }

/* Clinician summary sample */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split > * { min-width: 0; }
.report { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 16px; box-shadow: 0 18px 50px rgba(11,31,92,.08); margin: 0; }
.report header { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.report header span { font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink-soft); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { border-top: 3px solid var(--azure); padding-top: 8px; }
.stat b { display: block; font-family: var(--font-display); font-size: 1.7rem; font-variant-numeric: tabular-nums; }
.stat span { font-size: 0.92rem; color: var(--ink-soft); }
.doses { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; }
.doses i { height: 26px; border-radius: 4px; background: var(--azure); opacity: .85; }
.doses i.late { opacity: .45; }
.doses i.miss { background: transparent; border: 2px dashed var(--ink-soft); opacity: .7; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.88rem; color: var(--ink-soft); }
.legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--azure); }
.legend .l-late::before { opacity: .45; }
.legend .l-miss::before { background: transparent; border: 2px dashed var(--ink-soft); }
.sample-note { font-size: 0.85rem; color: var(--ink-soft); }
/* Appointments sample: grouped by provider, with the calendar switch on */
.appts { display: grid; gap: 18px; }
.appt-group { display: grid; gap: 8px; }
.appt-group b { font-family: var(--font-display); font-size: 1.1rem; }
.appt-group p { display: grid; gap: 2px; padding: 10px 14px; border-left: 3px solid var(--azure); background: var(--mist); border-radius: 0 8px 8px 0; }
.appt-group time { font-family: var(--font-mono); font-size: 0.9rem; font-weight: 500; }
.appt-group span { color: var(--ink-soft); font-size: 0.98rem; }
.appt-toggle { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 700; }
.appt-toggle i { flex: none; width: 46px; height: 28px; border-radius: 999px; background: var(--ok); position: relative; }
.appt-toggle i::after { content: ""; position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
.checks svg { color: var(--ok); margin-top: 4px; }

/* Privacy */
.privacy { background: var(--surface); border-block: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.facts div { display: grid; gap: 8px; align-content: start; min-width: 0; }
.facts p { color: var(--ink-soft); font-size: 1.02rem; }

/* Audiences, and can / can't lists */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.duo article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.duo p, .duo li { color: var(--ink-soft); }
.duo ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }

/* Long text: policies */
.prose { padding-block: 40px 72px; }
.prose h2 { font-size: 1.45rem; margin: 36px 0 10px; }
.prose p, .prose ul { margin: 0 0 16px; max-width: 65ch; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: 8px; }
.prose .contact { font-weight: 700; user-select: all; overflow-wrap: anywhere; }
.draft-note { margin: 0 0 24px; padding: 14px 18px; border-radius: var(--radius); background: var(--sand); border: 1px solid var(--line); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { cursor: pointer; padding: 18px 22px; min-height: 56px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; list-style-position: outside; margin-left: 1.1em; }
.faq details > div { padding: 0 22px 20px; display: grid; gap: 12px; color: var(--ink-soft); }
.faq details > div ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }

/* Contact: the shore */
.contact-band { background: var(--sand); }
.contact-band .wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.contact-band .wrap > div > p { color: var(--ink-soft); margin-top: 12px; max-width: 40rem; }
.mail { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 12px; min-width: 0; }
.mail code { font-family: var(--font-mono); font-size: 1.15rem; color: var(--ink); word-break: break-all; user-select: all; }
.mail .row { display: flex; gap: 10px; flex-wrap: wrap; }
.mail button, .mail a.btn-blue {
  min-height: 52px; padding: 0 20px; border-radius: 999px; font: 700 1.02rem var(--font-body); cursor: pointer;
  border: 2px solid var(--button); background: var(--button); color: #fff; text-decoration: none; display: inline-flex; align-items: center;
}
.mail button { background: transparent; color: var(--azure); border-color: var(--azure); }
.mail .status-msg { font-size: 0.92rem; color: var(--ink-soft); min-height: 1.4em; }

/* Not found */
.not-found { padding-block: 96px; display: grid; gap: 18px; justify-items: start; }
.not-found p { color: var(--ink-soft); max-width: 40ch; }

/* Footer */
footer { background: var(--navy); color: var(--on-dark-soft); padding-block: 44px 96px; font-size: 1rem; }
footer .wrap { display: grid; gap: 22px; }
footer .top { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 8px 20px; flex-wrap: wrap; }
footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
footer a { color: var(--on-dark); }
footer .disclaimer { border-top: 1px solid rgba(185,201,234,.25); padding-top: 20px; max-width: 60rem; font-size: 0.95rem; }

/* The whole opening section fits the window when the page loads, on computers of any height: the
   headline, the description, the small app and the photo scale with the window's height. */
@media (min-width: 901px) {
  .hero .wrap { padding-block: clamp(14px, 4.5svh, 56px) clamp(6px, 2svh, 24px); gap: clamp(28px, 4vw, 48px); align-items: center; }
  .hero h1 { font-size: clamp(2.2rem, min(1.4rem + 4vw, 8svh), 4.4rem); }
  .hero-intro { margin-top: clamp(10px, 2.6svh, 22px); }
  .hero .hero-intro .lede { font-size: clamp(1.1rem, min(1.05rem + 1.1vw, 3.5svh), 1.8rem); }
  .hero-lower { margin-top: clamp(12px, 3svh, 28px); }
  .phone-col { gap: clamp(10px, 2.4svh, 22px); }
  /* The photo keeps its shape and gives up width when the window is short (1.3367 = 1600 / 1197). */
  .photo { max-width: min(600px, calc((100svh - 380px) * 1.3367)); }
  .hero-app { gap: clamp(4px, 1.2svh, 10px); }
  .hero-note { font-size: clamp(0.9rem, 2svh, 0.98rem); }
  .wave { height: clamp(40px, 9svh, 90px); }
}
@media (min-width: 901px) and (max-height: 820px) { .hero-shots { --w: 104px; } }
@media (min-width: 901px) and (max-height: 720px) { .hero-shots { --w: 88px; } .hero .btn { min-height: 50px; } }
@media (min-width: 901px) and (max-height: 640px) { .hero-shots { --w: 72px; } }

/* Phones and narrow windows: the photo moves to the end of the opening section, so the first screen
   holds the headline, the description with the small app, availability and Contact us. */
@media (max-width: 900px) {
  .hero .wrap { gap: 24px; }
  .phone-col { display: contents; }
  .hero-app { order: 2; }
  .photo { order: 3; margin-top: 8px; }
}
@media (max-width: 640px) {
  .hero .wrap { padding-block: 20px 12px; gap: 16px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-intro { margin-top: 14px; }
  .hero .hero-intro .lede { font-size: 1.2rem; line-height: 1.4; }
  /* "How it works" starts right below, so its button gives its room to Contact us. */
  .hero-lower { display: none; }
  .hero-app { gap: 8px; }
  .soon { padding: 8px 14px 8px 10px; }
  .soon b { font-size: 1.05rem; }
  .hero-note { font-size: 0.95rem; }
  .hero-contact { margin-top: 2px; gap: 6px 14px; }
}

/* Narrow screens */
@media (max-width: 900px) {
  .hero .wrap, .split, .contact-band .wrap, .detail { grid-template-columns: 1fr; }
  .detail { gap: 16px; }
  .features { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
}
/* Header: below this width the links fold into a Menu button, so the pinned header stays one slim row. */
@media (max-width: 860px) {
  .js .menu-btn { display: inline-flex; align-items: center; }
  .js .site-header .wrap { flex-wrap: nowrap; padding-block: 10px; }
  .js .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px max(20px, env(safe-area-inset-right, 0px)) 18px; background: var(--navy);
    box-shadow: 0 14px 24px rgba(3,10,40,.35);
  }
  .js .nav.open { display: flex; }
  .js .nav a { display: flex; align-items: center; min-height: 52px; font-size: 1.15rem; border-bottom: 1px solid rgba(185,201,234,.18); }
  .js .nav .pill { justify-content: center; margin-top: 14px; border-bottom: 0; }
  html { scroll-padding-top: 76px; }
}
@media (max-width: 640px) {
  .hero-main { gap: 18px; }
  .hero-shots { --w: 96px; gap: 16px; }
  .steps, .features, .facts, .duo { grid-template-columns: 1fr; }
  .brand { font-size: 1.1rem; }
  .site-header .brand svg { width: 28px; height: 28px; }
  section { padding-block: 52px; }
  .hero .wrap { padding-block: 20px 12px; }
  .page-band { padding-block: 40px 48px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .doses { gap: 3px; }
}
@media (prefers-reduced-motion: no-preference) {
  .talk { animation: breathe 3.2s ease-in-out infinite; }
  @keyframes breathe { 50% { box-shadow: 0 6px 18px rgba(47,114,224,.35), 0 0 0 10px rgba(47,114,224,.12); } }
}
@media print {
  .site-header, .to-home, .skip, .chat { display: none !important; }
  .page-band { background: none; color: #000; padding-block: 0 12px; }
  .page-band .lede, .page-band .meta, .eyebrow.on-dark { color: #333; }
}
