/* ════════════════════════════════════════════════════════════════
   LynCare marketing site — lyncare.net
   Brand tokens mirror lib/core/theme/lyncare_colors.dart and
   lyncare_full_mockup.html (the app's UI source of truth).
   ════════════════════════════════════════════════════════════════ */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --coral: #E05C6A; --coral-dark: #C0394A; --coral-light: #FFF0F0;
  --teal: #2A9AAF; --teal-dark: #1E7A8A; --teal-light: #E0F4F7;
  --amber: #F59E0B; --bg: #F7F0F1; --white: #FFFFFF;
  --border: #F0E0E1; --text: #1A1A1A; --text-med: #5A4A4B;
  --text-light: #7A6668; --text-xlight: #C8AFAF;
  --green: #2E7D32; --orange: #E65100; --red: #C62828;
  --shadow: 0 1px 4px rgba(0,0,0,0.07);
  --shadow-card: 0 2px 14px rgba(90,40,45,0.08);
}

html { scroll-padding-top: 76px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--coral-dark); }

h1, h2, h3 { font-family: 'Lora', serif; letter-spacing: -0.3px; line-height: 1.2; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ─── Header ─────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 2px; text-decoration: none; flex-shrink: 0; }
.brand-text {
  font-family: 'Lora', serif; font-size: 24px; font-weight: 600;
  color: var(--coral-dark); letter-spacing: -0.5px;
}
.brand img { width: 30px; height: 30px; margin: 0 1px; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  text-decoration: none; color: var(--text-med);
  font-size: 14px; font-weight: 600;
}
.site-nav a:hover { color: var(--coral-dark); }
.btn {
  display: inline-block; text-decoration: none; text-align: center;
  border-radius: 14px; font-weight: 700; font-size: 15px;
  padding: 12px 26px; transition: transform 0.12s, box-shadow 0.12s;
}
.btn:hover { box-shadow: 0 8px 22px rgba(0,0,0,0.16); }
.btn-coral { background: var(--coral-dark); color: white; box-shadow: 0 4px 14px rgba(192,57,74,0.35); }
.btn-ghost { background: rgba(255,255,255,0.14); color: white; border: 1.5px solid rgba(255,255,255,0.45); }
.btn-outline { background: white; color: var(--coral-dark); border: 1.5px solid var(--coral); }
.site-nav .btn { padding: 9px 18px; font-size: 13px; }

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(rgba(43,20,25,0.2), rgba(43,20,25,0.2)), linear-gradient(145deg, var(--coral-dark) 0%, var(--coral) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '♥'; position: absolute; right: -40px; top: 45%;
  transform: translateY(-50%); font-size: 560px; opacity: 0.05;
  line-height: 1; pointer-events: none; filter: blur(2px);
}
.hero .container {
  display: flex; align-items: center; gap: 48px;
  padding-top: 72px; padding-bottom: 0;
}
.hero-copy { flex: 1; padding-bottom: 72px; position: relative; z-index: 2; }
.hero-wordmark { width: 280px; margin-bottom: 28px; }
.hero h1 { font-size: 44px; font-weight: 700; margin-bottom: 18px; }
.hero p.lede {
  font-size: 18px; line-height: 1.65; color: rgba(255,255,255,0.97);
  max-width: 520px; margin-bottom: 30px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-phone { flex-shrink: 0; position: relative; z-index: 2; align-self: flex-end; }

/* ─── Trust strip ────────────────────────────────────────────── */
.trust-strip { background: var(--bg); border-bottom: 1px solid var(--border); }
.trust-strip .container {
  display: flex; justify-content: center; gap: 48px;
  padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap;
}
.trust-item {
  font-size: 13px; font-weight: 700; color: var(--text-med);
  display: flex; align-items: center; gap: 8px;
}

/* ─── Sections ───────────────────────────────────────────────── */
.section { padding: 84px 0; }
.section.tinted { background: var(--bg); }
.section-kicker {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--coral-dark); margin-bottom: 10px;
}
.section h2 { font-size: 34px; margin-bottom: 14px; }
.section .section-intro {
  font-size: 17px; color: var(--text-med); max-width: 640px; margin-bottom: 44px;
}
.center { text-align: center; }
.center .section-intro { margin-left: auto; margin-right: auto; }
.center .privacy-list { margin-left: auto; margin-right: auto; text-align: left; }

/* ─── Feature grid ───────────────────────────────────────────── */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 18px;
}
.feature-card {
  background: white; border-radius: 18px; padding: 24px 22px;
  box-shadow: var(--shadow-card); border: 1px solid var(--border);
}
.feature-icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 14px;
}
.fi-coral { background: var(--coral-light); }
.fi-teal { background: var(--teal-light); }
.fi-green { background: #E8F5E9; }
.fi-amber { background: #FFF8E1; }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; font-family: 'DM Sans', sans-serif; font-weight: 700; letter-spacing: -0.1px; }
.feature-card p { font-size: 14px; color: var(--text-med); line-height: 1.55; }

/* ─── Screens gallery ────────────────────────────────────────── */
.screens-row {
  display: flex; justify-content: center; gap: 36px; flex-wrap: wrap;
  align-items: flex-start;
}
.screen-figure { text-align: center; }
.screen-caption {
  margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--text-med);
}
.screen-caption span { display: block; font-size: 12px; font-weight: 500; color: var(--text-light); margin-top: 2px; }
.sample-note {
  text-align: center; font-size: 12px; color: var(--text-light);
  margin-top: 34px; font-style: italic;
}

/* ─── Role cards ─────────────────────────────────────────────── */
.role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.role-card {
  background: white; border-radius: 18px; padding: 26px 22px;
  box-shadow: var(--shadow-card); border-top: 4px solid var(--coral);
}
.role-card.teal { border-top-color: var(--teal); }
.role-card.green { border-top-color: var(--green); }
.role-card.amber { border-top-color: var(--amber); }
.role-card h3 { font-size: 19px; margin-bottom: 4px; }
.role-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-light); margin-bottom: 12px; }
.role-card p { font-size: 14px; color: var(--text-med); }

/* ─── Privacy section ────────────────────────────────────────── */
.privacy-list { list-style: none; display: grid; gap: 16px; max-width: 720px; }
.privacy-list li {
  background: white; border-radius: 16px; padding: 18px 22px;
  box-shadow: var(--shadow-card); border: 1px solid var(--border);
  display: flex; gap: 16px; align-items: flex-start;
}
.privacy-list .pi { font-size: 22px; flex-shrink: 0; margin-top: 1px; }
.privacy-list strong { display: block; font-size: 15px; margin-bottom: 3px; }
.privacy-list p { font-size: 14px; color: var(--text-med); }

/* ─── Beta CTA ───────────────────────────────────────────────── */
.beta {
  background: linear-gradient(rgba(43,20,25,0.2), rgba(43,20,25,0.2)), linear-gradient(145deg, var(--coral-dark) 0%, var(--coral) 100%);
  color: white; text-align: center;
}
.beta h2 { color: white; }
.beta .section-intro { color: rgba(255,255,255,0.97); margin-left: auto; margin-right: auto; }
.beta-steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px; max-width: 860px; margin: 0 auto 40px; text-align: left;
}
.beta-step {
  background: rgba(0,0,0,0.16); border-radius: 18px; padding: 24px;
  border: 1px solid rgba(255,255,255,0.18);
}
.beta-step .num {
  width: 30px; height: 30px; border-radius: 50%; background: white;
  color: var(--coral-dark); font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.beta-step h3 { font-size: 17px; margin-bottom: 8px; font-family: 'DM Sans', sans-serif; font-weight: 700; }
.beta-step p { font-size: 14px; color: rgba(255,255,255,0.95); }
.beta-step a { color: white; font-weight: 700; }
.beta .fine {
  display: block; width: fit-content; max-width: 100%;
  font-size: 13px; color: #fff;
  background: rgba(0,0,0,0.25); border-radius: 12px;
  padding: 9px 18px; margin: 22px auto 0;
}
.beta .fine a { color: #fff; text-decoration: underline; font-weight: 600; }

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer { background: #2B1A1C; color: rgba(255,255,255,0.75); padding: 48px 0 40px; }
.footer-top {
  display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 2px; }
.footer-brand img { width: 26px; height: 26px; margin: 0 1px; }
.footer-brand span { font-family: 'Lora', serif; font-size: 21px; color: white; letter-spacing: -0.4px; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 13px; font-weight: 600; }
.footer-links a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: rgba(255,255,255,0.55); }
.footer-bottom a { color: rgba(255,255,255,0.75); }
.footer-dedication {
  margin: 24px auto 0; padding-top: 22px; max-width: 620px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center; font-style: italic;
  font-size: 13px; line-height: 1.75; color: rgba(255,255,255,0.62);
}
.footer-dedication .ded-love { color: var(--coral); font-style: normal; font-weight: 600; }

/* ─── Legal / content pages ──────────────────────────────────── */
.page-main { padding: 56px 0 80px; }
.page-main .container { max-width: 820px; }
.page-title { font-size: 36px; margin-bottom: 8px; }
.page-sub { color: var(--text-light); font-size: 15px; margin-bottom: 36px; }
.legal-content { font-size: 15px; color: var(--text-med); overflow-wrap: break-word; }
.legal-content h1, .legal-content h2, .legal-content h3 { color: var(--text); margin: 28px 0 12px; }
.legal-content p { margin-bottom: 14px; }
.legal-content ul, .legal-content ol { margin: 0 0 14px 24px; }
.legal-content li { margin: 6px 0; }
.content-page h2 { font-size: 24px; margin: 34px 0 12px; }
.content-page p, .content-page li { font-size: 15px; color: var(--text-med); }
/* Body paragraphs need separation; .legal-content had this and .content-page
   never did — it only showed once a page stacked several in a row.
   Scoped to DIRECT children of .container, and to paragraphs with no class, so
   it cannot reach .page-sub (classed), .callout p or .faq-a p (both nested
   deeper) — all of which carry their own spacing. */
.content-page > .container > p:not([class]) { margin-bottom: 14px; }
.content-page ul, .content-page ol { margin: 0 0 16px 24px; }
.content-page li { margin: 7px 0; }
.content-page .callout {
  background: var(--coral-light); border: 1px solid #F0D0D4; border-radius: 14px;
  padding: 16px 20px; margin: 18px 0;
}

/* ════════════════════════════════════════════════════════════════
   Phone frame + in-phone app UI
   Authored at the mockup's native 375px width, then scaled via
   --s on .phone-slot. Styles transcribed from lyncare_full_mockup.html.
   ════════════════════════════════════════════════════════════════ */

/* Mockups stay app-accurate: restore the app's own muted tones inside the
   phone frames (the site-wide tokens were darkened for WCAG AA contrast,
   but the frames are decorative and mirror lyncare_colors.dart). */
.phone { --text-light: #9E8A8B; --text-xlight: #C8AFAF; }

.phone-slot { --s: 0.78; width: calc(399px * var(--s)); height: calc(836px * var(--s)); margin: 0 auto; }
.phone-slot.hero-slot { --s: 0.84; }
.phone { transform: scale(var(--s)); transform-origin: top left; width: 399px; }

.phone-shell {
  width: 399px; padding: 12px; background: #1b1f2a; border-radius: 56px;
  box-shadow: 0 0 0 1.5px #2a3040, 0 30px 70px rgba(43,26,28,0.35);
  position: relative;
}
.phone-screen {
  width: 375px; height: 812px; border-radius: 44px; overflow: hidden;
  background: var(--bg); display: flex; flex-direction: column; position: relative;
}
.island {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 26px; border-radius: 14px; background: #14181f; z-index: 30;
}

.phone .status {
  background: var(--coral-dark); display: flex; justify-content: space-between;
  padding: 14px 28px 6px; font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.9);
  flex-shrink: 0;
}
.phone .toolbar {
  padding: 10px 18px 14px; display: flex; align-items: center; gap: 10px;
  background: var(--coral-dark); color: white; position: relative; flex-shrink: 0;
}
.phone .tb-back { font-size: 24px; font-weight: 300; flex-shrink: 0; line-height: 1; }
.phone .tb-center { flex: 1; }
.phone .tb-title { font-family: 'Lora', serif; font-size: 19px; font-weight: 600; letter-spacing: -0.2px; line-height: 1.25; }
.phone .tb-sub { font-size: 10px; color: rgba(255,255,255,0.55); font-weight: 500; margin-top: 1px; letter-spacing: 0.03em; }
.phone .tb-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.phone .tb-dots { font-size: 22px; color: rgba(255,255,255,0.9); line-height: 1; }

.phone .pbody { flex: 1; overflow: hidden; padding: 14px 14px 0; background: var(--bg); }

.phone .taskbar { background: #FFFAF9; border-top: 1.5px solid var(--border); display: flex; padding: 10px 0 22px; flex-shrink: 0; }
.phone .tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; padding: 2px 0; }
.phone .tab-icon { font-size: 22px; line-height: 1.2; }
.phone .tab-lbl { font-size: 10px; font-weight: 500; color: var(--text-xlight); letter-spacing: 0.02em; }
.phone .tab.on .tab-lbl { color: var(--coral-dark); font-weight: 700; }
.phone .tab.on::before {
  content: ''; position: absolute; top: -11.5px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--coral-dark);
}

.phone .sec { font-size: 10px; font-weight: 700; color: var(--text-light); letter-spacing: 0.08em; text-transform: uppercase; margin: 0 2px 8px; }

/* Home banner */
.phone .banner {
  background: linear-gradient(145deg, var(--coral-dark) 0%, var(--coral) 55%, #e8757f 100%);
  border-radius: 20px; padding: 18px 20px 0; margin-bottom: 14px;
  position: relative; overflow: hidden;
}
.phone .banner::after {
  content: '♥'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 130px; opacity: 0.07; line-height: 1; pointer-events: none; filter: blur(1px);
}
.phone .banner-greeting { font-size: 13px; color: rgba(255,255,255,0.7); font-weight: 500; margin-bottom: 2px; }
.phone .banner-name { font-family: 'Lora', serif; font-size: 24px; font-weight: 700; color: white; margin-bottom: 6px; letter-spacing: -0.3px; }
.phone .banner-participant { display: inline-flex; align-items: center; gap: 5px; background: rgba(0,0,0,0.18); border-radius: 20px; padding: 4px 10px 4px 8px; margin-bottom: 14px; }
.phone .pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: #7de8c0; box-shadow: 0 0 6px rgba(125,232,192,0.8); }
.phone .banner-participant-name { font-size: 11px; color: rgba(255,255,255,0.75); font-weight: 600; letter-spacing: 0.03em; }
.phone .clock-section { position: relative; z-index: 2; background: rgba(0,0,0,0.2); border-radius: 18px 18px 0 0; padding: 14px 18px 18px; margin: 0 -20px; }
.phone .clock-main { display: flex; align-items: center; justify-content: space-between; }
.phone .clock-status-text { font-size: 17px; font-weight: 700; color: white; margin-bottom: 2px; }
.phone .clock-elapsed { font-size: 12px; color: rgba(255,255,255,0.55); }
.phone .switch { width: 54px; height: 30px; border-radius: 15px; background: rgba(255,255,255,0.92); position: relative; }
.phone .switch-knob { width: 24px; height: 24px; border-radius: 50%; background: var(--coral-dark); position: absolute; top: 3px; left: 27px; box-shadow: 0 2px 6px rgba(0,0,0,0.3); }

/* Home chips + calendar + nav cards */
.phone .today-strip { display: flex; gap: 8px; margin-bottom: 14px; }
.phone .today-chip { flex: 1; background: white; border-radius: 14px; padding: 10px 8px 12px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.06); position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; }
.phone .today-chip::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; }
.phone .chip-meds::after { background: var(--teal); }
.phone .chip-tasks::after { background: var(--coral); }
.phone .chip-prn::after { background: var(--amber); }
.phone .chip-label { font-size: 9px; color: var(--text-light); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 5px; }
.phone .chip-value { font-size: 18px; font-weight: 700; color: var(--text); line-height: 1.1; letter-spacing: -0.3px; }
.phone .chip-prn-val { color: var(--amber); }
.phone .cal-card { background: white; border-radius: 18px; padding: 16px; margin-bottom: 14px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.phone .cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.phone .cal-nav-btn { width: 32px; height: 32px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--text-light); font-weight: 300; }
.phone .cal-day-label { display: flex; flex-direction: column; align-items: center; flex: 1; }
.phone .cal-day-name { font-family: 'Lora', serif; font-size: 17px; font-weight: 600; color: var(--text); }
.phone .cal-day-date { font-size: 11px; color: var(--coral); font-weight: 700; margin-top: 1px; }
.phone .cal-divider { height: 1px; background: #F5EDED; margin: 0 -16px 12px; }
.phone .cal-event { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #F9F3F4; }
.phone .cal-event:last-of-type { border-bottom: none; }
.phone .cal-event-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.phone .cal-event-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.phone .cal-event-time { font-size: 11px; color: var(--text-light); }
.phone .nav-card { background: white; border-radius: 18px; margin-bottom: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.phone .card-inner { display: flex; align-items: center; padding: 15px 16px; gap: 14px; }
.phone .card-bar { width: 3px; height: 38px; border-radius: 2px; flex-shrink: 0; }
.phone .bar-green { background: var(--green); }
.phone .bar-amber { background: var(--amber); }
.phone .card-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.phone .ico-green { background: #E8F5E9; }
.phone .ico-amber { background: #FFF8E1; }
.phone .card-text { flex: 1; min-width: 0; }
.phone .card-name { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.phone .card-meta { font-size: 12px; color: var(--text-light); }
.phone .card-meta.green { color: var(--green); font-weight: 600; }
.phone .card-meta .amber { color: var(--amber); }
.phone .card-preview { font-size: 11px; color: var(--text-light); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; margin-top: 4px; }
.phone .card-preview strong { color: var(--text-med); font-weight: 600; }
.phone .arrow { font-size: 20px; color: #D0C0C2; font-weight: 300; }
.phone .card-progress { padding: 0 16px 14px 77px; }
.phone .split-prog-track { display: flex; align-items: center; height: 20px; }
.phone .split-half { flex: 1; position: relative; height: 6px; background: #F5EDED; }
.phone .split-left { border-radius: 3px 0 0 3px; overflow: hidden; }
.phone .split-right { border-radius: 0 3px 3px 0; overflow: hidden; }
.phone .split-fill-green { position: absolute; left: 0; top: 0; bottom: 0; background: var(--green); }
.phone .split-fill-amber { position: absolute; left: 0; top: 0; bottom: 0; background: var(--amber); }
.phone .split-divider { width: 2px; height: 12px; background: #FFFAF9; flex-shrink: 0; z-index: 1; }

/* Medications */
.phone .tab-bar { background: white; display: flex; padding: 12px 20px 0; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.phone .tab-btn { flex: 1; text-align: center; padding: 8px 0 10px; font-size: 13px; font-weight: 700; color: var(--text-xlight); position: relative; }
.phone .tab-btn.on { color: var(--coral-dark); }
.phone .tab-btn.on::after { content: ''; position: absolute; bottom: 0; left: 20%; right: 20%; height: 2.5px; border-radius: 2px 2px 0 0; background: var(--coral-dark); }
.phone .med-card { background: white; border-radius: 18px; margin-bottom: 10px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.phone .med-card-inner { display: flex; align-items: center; padding: 14px 16px; gap: 14px; }
.phone .arc-wrap { position: relative; width: 62px; height: 62px; flex-shrink: 0; }
.phone .arc-wrap svg { position: absolute; top: 0; left: 0; transform: rotate(-90deg); }
.phone .arc-bg { fill: none; stroke: #F0E8EA; stroke-width: 3; }
.phone .arc-fill { fill: none; stroke-width: 3; stroke-linecap: round; }
.phone .arc-ready { stroke: var(--green); }
.phone .arc-waiting { stroke: var(--amber); }
.phone .arc-due { stroke: var(--coral-dark); }
.phone .arc-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.phone .arc-time { font-size: 10px; font-weight: 700; color: var(--text); line-height: 1.1; }
.phone .arc-time.ready { color: var(--green); }
.phone .arc-time.waiting { color: var(--amber); }
.phone .arc-time.due { color: var(--coral-dark); }
.phone .arc-unit { font-size: 8px; color: var(--text-light); font-weight: 600; letter-spacing: 0.04em; }
.phone .med-info { flex: 1; min-width: 0; }
.phone .med-name { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.phone .med-dose { font-size: 12px; color: var(--text-light); margin-bottom: 4px; }
.phone .med-schedule { font-size: 11px; font-weight: 600; color: var(--text-light); }
.phone .med-schedule.ready { color: var(--green); }
.phone .med-schedule.waiting { color: var(--amber); }
.phone .med-schedule.due { color: var(--coral-dark); }
.phone .med-early { font-size: 10px; font-weight: 700; color: var(--text-xlight); margin-top: 3px; }
.phone .card-btn-row { display: flex; gap: 10px; padding: 12px 16px 14px; border-top: 1px solid #F9F2F3; }
.phone .assist-btn { padding: 9px 16px; border-radius: 12px; font-size: 12px; font-weight: 700; border: none; font-family: 'DM Sans', sans-serif; text-align: center; }
.phone .btn-ready { background: var(--green); color: white; flex: 2; }
.phone .btn-waiting { background: #FFF8E1; color: var(--orange); border: 1.5px solid var(--amber); flex: 2; }
.phone .btn-due { background: var(--coral-dark); color: white; flex: 2; }
.phone .decline-btn { font-size: 11px; font-weight: 700; color: var(--text-xlight); background: none; border: 1.5px solid #E8D8DA; border-radius: 10px; padding: 7px 11px; font-family: 'DM Sans', sans-serif; flex: 1; }
.phone .date-strip { background: var(--coral); border-radius: 14px; margin: 6px 0; box-shadow: 0 1px 3px rgba(0,0,0,0.05); padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; }
.phone .date-nav { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.22); color: white; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.phone .date-center { text-align: center; }
.phone .date-label { color: white; font-size: 13px; font-weight: 700; }
.phone .date-sub { color: rgba(255,255,255,0.8); font-size: 10px; font-weight: 600; }
.phone .fab { position: absolute; bottom: 96px; right: 16px; width: 54px; height: 54px; border-radius: 50%; background: var(--coral-dark); box-shadow: 0 4px 16px rgba(192,57,74,0.45); display: flex; align-items: center; justify-content: center; font-size: 28px; color: white; font-weight: 300; z-index: 20; line-height: 1; }

/* Timeline (notes + med records) */
.phone .timeline { position: relative; padding-left: 20px; margin-top: 10px; }
.phone .timeline::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1.5px; background: linear-gradient(to bottom, #E8D8DA, transparent); }
.phone .entry { position: relative; margin-bottom: 14px; }
.phone .entry-node { position: absolute; left: -17px; top: 5px; width: 10px; height: 10px; border-radius: 50%; }
.phone .node-note { background: var(--text-xlight); }
.phone .node-mod { background: var(--orange); }
.phone .node-emar { background: var(--green); }
.phone .node-prn { background: var(--teal); }
.phone .entry-card { background: white; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.phone .entry-type-bar { display: flex; align-items: stretch; }
.phone .type-bar { width: 3px; flex-shrink: 0; }
.phone .bar-note { background: #E8D8DA; }
.phone .bar-moderate { background: var(--orange); }
.phone .bar-emar { background: var(--green); }
.phone .bar-prn { background: var(--teal); }
.phone .entry-content { padding: 10px 14px; flex: 1; }
.phone .entry-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; gap: 8px; }
.phone .entry-type-label { font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.phone .label-note { color: var(--text-xlight); }
.phone .label-moderate { color: var(--orange); }
.phone .label-emar { color: var(--green); }
.phone .label-prn { color: var(--teal); }
.phone .entry-ts { font-size: 10px; color: var(--text-xlight); font-weight: 600; }
.phone .tier-badge { font-size: 9px; font-weight: 700; color: var(--text-light); background: var(--bg); border-radius: 8px; padding: 2px 7px; }
.phone .entry-body { font-size: 13px; color: var(--text-med); line-height: 1.5; }
.phone .entry-med { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.phone .entry-by { font-size: 11px; color: var(--text-light); }
.phone .shift-block { background: white; border-radius: 20px; padding: 16px; box-shadow: var(--shadow); }
.phone .shift-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1.5px solid #E8D8DA; }
.phone .shift-caregiver { font-family: 'Lora', serif; font-size: 19px; font-weight: 600; color: var(--text); letter-spacing: -0.3px; margin-bottom: 3px; }
.phone .shift-time-range { font-size: 11px; color: var(--text-light); font-weight: 500; }
.phone .shift-status-pill { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 20px; flex-shrink: 0; }
.phone .status-active { background: var(--coral-light); color: var(--coral-dark); border: 1px solid #F0D0D4; }
.phone .date-nav-strip { background: white; border-bottom: 1px solid var(--border); padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.phone .dn-btn { width: 32px; height: 32px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--text-light); opacity: 0.4; }
.phone .dn-date { font-size: 14px; font-weight: 700; color: var(--text); text-align: center; }
.phone .dn-today { font-size: 11px; color: var(--coral-dark); font-weight: 600; text-align: center; }

/* Tasks */
.phone .progress-strip { background: white; border-bottom: 1px solid var(--border); padding: 12px 16px; flex-shrink: 0; }
.phone .progress-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.phone .progress-label { font-size: 12px; font-weight: 700; color: var(--text-light); }
.phone .progress-count { font-size: 12px; font-weight: 700; color: var(--coral-dark); }
.phone .prog-bar { height: 6px; border-radius: 3px; background: #F5EDED; overflow: hidden; }
.phone .prog-fill { height: 100%; border-radius: 3px; background: var(--coral-dark); }
.phone .task-card { background: white; border-radius: 14px; margin-bottom: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); overflow: hidden; }
.phone .task-card-main { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.phone .task-check { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.phone .task-check.done { background: var(--green); color: white; }
.phone .task-check.skipped { background: var(--amber); color: white; }
.phone .task-check.pending { background: var(--bg); border: 2px solid var(--border); }
.phone .task-info { flex: 1; min-width: 0; }
.phone .task-name { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.phone .task-card.done .task-name, .phone .task-card.skipped .task-name { color: var(--text-light); }
.phone .task-record { font-size: 11px; color: var(--text-light); display: flex; align-items: center; gap: 5px; }
.phone .task-who { width: 18px; height: 18px; border-radius: 50%; background: var(--coral-light); color: var(--coral-dark); font-size: 9px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.phone .skipped-who { background: #FFF8E1; color: #B45309; }
.phone .skipped-record { color: #B45309; }
.phone .task-actions { display: flex; gap: 8px; padding: 0 16px 12px; }
.phone .task-btn-complete { flex: 2; border: none; border-radius: 10px; background: var(--green); color: white; font-size: 12px; font-weight: 700; padding: 9px; font-family: 'DM Sans', sans-serif; letter-spacing: 0.03em; }
.phone .task-btn-skip { flex: 1; border: 1.5px solid var(--border); border-radius: 10px; background: white; color: var(--text-light); font-size: 12px; font-weight: 600; padding: 9px; font-family: 'DM Sans', sans-serif; }

/* Bell icon in toolbar */
.phone .bell { width: 22px; height: 22px; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero .container { flex-direction: column; gap: 12px; padding-top: 56px; }
  .hero-copy { padding-bottom: 8px; text-align: center; }
  .hero-wordmark { margin-left: auto; margin-right: auto; }
  .hero p.lede { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero h1 { font-size: 34px; }
  .hero-phone { align-self: center; }
  .section { padding: 60px 0; }
  .section h2 { font-size: 28px; }
}

@media (max-width: 640px) {
  /* Mobile is where most visitors land, so "How it works" stays visible instead of
     being hidden (it used to be: .site-nav > a:not(.btn) { display: none }).
     The logo keeps row 1; the whole nav wraps onto row 2, centred. At 375px the nav
     row needs ~300px of the 327 available, and the ≤360px block below tightens the
     gaps enough for a 320px screen. */
  .site-header .container {
    flex-wrap: wrap; height: auto; min-height: 64px;
    padding-top: 10px; padding-bottom: 10px; row-gap: 10px;
  }
  .site-nav { width: 100%; justify-content: center; gap: 20px; }
  /* Centring moves "Pages" to the LEFT edge, so the 188px menu can no longer hang
     leftward from right:0 — at 320px it clipped to x=-106. Anchor it left instead
     so it opens rightward into the viewport. */
  .nav-dd-menu { right: auto; left: 0; }
  /* Header is now ~2 rows tall — keep anchored scrolling clear of it. */
  html { scroll-padding-top: 122px; }
  .phone-slot, .phone-slot.hero-slot { --s: 0.68; }
  .trust-strip .container { gap: 16px; }
  .page-title { font-size: 28px; }
  .getapp-hero h1 { font-size: 32px; }
}


/* ─── v2 reskin: real logo, pill buttons, line icons ─────────── */
.btn { border-radius: 30px; }
/* Inline Tabler SVG icons — sized by the surrounding font-size, colored by currentColor */
.ti { display: inline-flex; }
.ti > svg { width: 1em; height: 1em; }
/* Skip-to-content link — visible only on keyboard focus */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--coral-dark); color: #fff; font-weight: 700;
  padding: 10px 18px; border-radius: 0 0 12px 0; text-decoration: none;
}
.skip-link:focus { left: 0; }
/* Visually-hidden text for screen readers */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.brand .brand-logo { height: 38px; width: auto; margin: 0; }
.footer-brand .footer-logo { height: 26px; width: auto; margin: 0; }
.hero-wordmark { width: 300px; height: auto; }
.feature-card, .role-card { border-radius: 20px; }
.feature-icon i { font-size: 25px; line-height: 1; }
.fi-coral i { color: var(--coral-dark); }
.fi-teal i  { color: var(--teal-dark); }
.fi-green i { color: var(--green); }
.fi-amber i { color: #B45309; }
.icon-compare { margin-top: 40px; padding: 22px 24px; background: var(--bg); border: 1px solid var(--border); border-radius: 18px; }
.icon-compare .ic-note { display: block; font-size: 13px; font-weight: 700; color: var(--text-med); margin-bottom: 16px; }
.icon-compare .ic-cols { display: flex; gap: 30px; flex-wrap: wrap; }
.icon-compare .ic-col { flex: 1; min-width: 220px; }
.icon-compare .ic-lbl { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-light); margin-bottom: 12px; }
.icon-compare .ic-set { display: flex; gap: 18px; font-size: 26px; color: var(--coral-dark); align-items: center; }
.icon-compare .ic-set.emoji { font-size: 24px; }

/* ─── Releases page ──────────────────────────────────────────── */
.release-list { display: grid; gap: 18px; max-width: 760px; }
.release { background: white; border: 1px solid var(--border); border-radius: 18px; padding: 22px 24px; box-shadow: var(--shadow-card); }
.release-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.release-ver { font-family: 'Lora', serif; font-size: 22px; font-weight: 700; color: var(--coral-dark); letter-spacing: -0.3px; }
.release-date { font-size: 13px; color: var(--text-light); font-weight: 600; }
.release-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #176472; background: var(--teal-light); padding: 3px 9px; border-radius: 20px; }
.release ul { list-style: none; display: grid; gap: 10px; margin: 0; }
.release li { font-size: 14px; color: var(--text-med); line-height: 1.55; padding-left: 20px; position: relative; }
.release li::before { content: ''; position: absolute; left: 3px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.release li strong { color: var(--text); font-weight: 700; }

/* ─── Jobs stub ──────────────────────────────────────────────── */
.jobs-hero { text-align: center; padding: 88px 0 76px; background: var(--bg); }
.jobs-badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--coral-dark); background: var(--coral-light); padding: 7px 16px; border-radius: 20px; margin-bottom: 22px; }
.jobs-hero h1 { font-size: 40px; margin-bottom: 16px; }
.jobs-hero p.lede { font-size: 18px; color: var(--text-med); max-width: 620px; margin: 0 auto 30px; line-height: 1.6; }
.jobs-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; max-width: 900px; margin: 56px auto 0; text-align: left; }
.jobs-point { background: white; border: 1px solid var(--border); border-radius: 20px; padding: 24px 22px; box-shadow: var(--shadow-card); }
.jobs-point i { font-size: 28px; color: var(--coral-dark); margin-bottom: 12px; display: block; }
.jobs-point h2 { font-size: 16px; margin-bottom: 6px; font-family: 'DM Sans', sans-serif; font-weight: 700; }
.jobs-point p { font-size: 14px; color: var(--text-med); line-height: 1.55; }
@media (max-width: 640px) { .jobs-hero h1 { font-size: 30px; } }

/* ─── v3: phone chrome matched to the shipped app ───────────── */
.phone .toolbar { height: 80px; padding: 0; display: block; background: var(--coral-dark); position: relative; flex-shrink: 0; }
.phone .tb-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); flex: none; text-align: center; max-width: 64%; }
.phone .tb-title { font-family: 'DM Sans', sans-serif; font-size: 21px; font-weight: 700; letter-spacing: -0.2px; line-height: 1.2; color: #fff; }
.phone .tb-logo { height: 34px; width: auto; display: block; }
.phone .tb-back { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #fff; line-height: 0; }
.phone .tb-back i { font-size: 26px; }
.phone .tb-actions { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 6px; }
.phone .tb-actions i { line-height: 0; }
.phone .tb-bell { width: 25px; height: 25px; fill: var(--amber); display: block; }
.phone .tb-dots { color: rgba(255,255,255,0.92); font-size: 24px; }
.phone .taskbar { margin: 6px 14px 16px; padding: 9px 4px; background: #fff; border: 1.5px solid var(--coral); border-radius: 26px; box-shadow: 0 4px 18px rgba(0,0,0,0.10); display: flex; flex-shrink: 0; }
.phone .tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 0; }
.phone .tab.on::before { content: none; display: none; }
.phone .tab-icon { font-size: 0; line-height: 0; }
.phone .tab-icon i { font-size: 24px; line-height: 1; }
.phone .tab.t-home .tab-icon i { color: #E8A87C; }
.phone .tab.t-notes .tab-icon i { color: #7EB8D4; }
.phone .tab.t-meds .tab-icon i { color: #E09098; }
.phone .tab.t-admin .tab-icon i { color: #9E8A8B; }
.phone .tab.on .tab-icon i { color: var(--coral); }
.phone .tab-lbl { font-size: 11px; font-weight: 500; color: var(--text-light); letter-spacing: 0; }
.phone .tab.on .tab-lbl { color: var(--coral); font-weight: 700; }
.phone-screen::after { content: ''; position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%); width: 120px; height: 5px; border-radius: 3px; background: rgba(20,20,25,0.28); z-index: 5; }

/* ─── header "Pages" dropdown ───────────────────────────────── */
.nav-dd { position: relative; display: flex; align-items: center; }
.nav-dd-btn { font: inherit; font-size: 14px; font-weight: 600; color: var(--text-med); background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 3px; }
.nav-dd-btn:hover { color: var(--coral-dark); }
.nav-dd-menu { position: absolute; top: calc(100% + 16px); right: 0; min-width: 188px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-card); padding: 6px; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .15s, transform .15s, visibility .15s; z-index: 200; }
/* Openers: pointer hover, or the JS-managed .open class (Enter/Space toggles,
   Esc and click-outside close — see js/site.js). :focus-within is deliberately
   NOT an opener: it re-opened the menu when Esc returned focus to the button. */
.nav-dd:hover .nav-dd-menu, .nav-dd.open .nav-dd-menu { opacity: 1; visibility: visible; transform: none; }
/* Invisible bridge over the 16px gap so the menu doesn't close while the
   pointer travels from the button down to the menu */
.nav-dd-menu::before { content: ''; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.nav-dd-menu a { padding: 9px 14px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--text-med); text-decoration: none; }
.nav-dd-menu a:hover { background: var(--bg); color: var(--coral-dark); }


/* ─── Join-beta button white text + beta-request modal ─────────── */
.site-nav .btn-coral { color: #fff; }
.site-nav .btn-coral:hover { background: #A93140; color: #fff; }
.modal-overlay { position: fixed; inset: 0; background: rgba(43,26,28,0.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease; z-index: 1000; }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal { background: #fff; border-radius: 22px; max-width: 480px; width: 100%; padding: 32px 30px 26px; box-shadow: 0 30px 80px rgba(43,26,28,0.4); position: relative; transform: translateY(12px) scale(0.98); transition: transform .2s ease; max-height: 90vh; overflow-y: auto; }
.modal-overlay.open .modal { transform: none; }
.modal-close { position: absolute; top: 14px; right: 16px; width: 34px; height: 34px; background: none; border: 0; font-size: 26px; line-height: 1; color: var(--text-light); cursor: pointer; border-radius: 50%; }
.modal-close:hover { color: var(--coral-dark); background: var(--bg); }
.modal h2 { font-family: 'Lora', serif; font-size: 25px; color: var(--text); margin-bottom: 6px; letter-spacing: -0.3px; }
.modal .modal-sub { font-size: 15px; color: var(--text-med); margin-bottom: 22px; line-height: 1.55; }
.beta-form { display: grid; gap: 15px; }
.beta-form label { display: block; font-size: 13px; font-weight: 700; color: var(--text-med); margin-bottom: 6px; }
.beta-form input, .beta-form textarea { width: 100%; box-sizing: border-box; font-family: 'DM Sans', sans-serif; font-size: 15px; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s, background .15s; }
.beta-form input:focus, .beta-form textarea:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px rgba(224,92,106,0.16); background: #fff; }
.beta-form textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.beta-form button[type=submit] { margin-top: 4px; background: var(--coral-dark); color: #fff; border: 0; border-radius: 30px; font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 700; padding: 13px; cursor: pointer; box-shadow: 0 4px 14px rgba(192,57,74,0.35); transition: transform .12s; }
.beta-form button[type=submit]:hover { transform: translateY(-1px); }
.modal-fine { font-size: 12px; color: var(--text-light); margin-top: 14px; text-align: center; }
.modal-thanks { display: none; text-align: center; padding: 12px 0 6px; }
.modal-thanks.show { display: block; }
.modal-thanks .check { font-size: 46px; margin-bottom: 6px; }

/* ─── Get the app page ───────────────────────────────────────── */
.getapp-hero { padding: 80px 0 96px; text-align: center; }
.getapp-hero h1 { font-size: 44px; margin-bottom: 14px; }
.getapp-hero .lede { max-width: 580px; margin: 0 auto 38px; }
.store-grid { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.store-card {
  display: flex; flex-direction: column; align-items: flex-start;
  min-width: 230px; padding: 15px 28px 15px 66px; border-radius: 16px;
  background: var(--text); color: #fff; text-decoration: none; position: relative;
  box-shadow: 0 6px 20px rgba(0,0,0,0.14); transition: box-shadow .15s, transform .15s;
}
.store-card:hover { box-shadow: 0 10px 28px rgba(0,0,0,0.22); transform: translateY(-1px); text-decoration: none; }
.store-card i { position: absolute; left: 24px; top: 50%; transform: translateY(-50%); font-size: 30px; }
.store-card-sub { font-size: 12px; opacity: 0.82; }
.store-card-name { font-size: 21px; font-weight: 700; font-family: 'DM Sans', sans-serif; line-height: 1.1; }
.store-card-soon { background: #6E5F60; cursor: default; box-shadow: none; }
.store-card-soon:hover { box-shadow: none; transform: none; }
.getapp-note { max-width: 560px; margin: 36px auto 0; font-size: 15px; color: var(--text-med); line-height: 1.6; }

/* ─── Smallest phones (≤360px) ─── */
@media (max-width: 360px) {
  /* The header wraps to two rows below 640px; these keep the NAV row itself on a
     single line at 320px (iPhone SE) — Pages + How it works + the CTA together
     need ~271px of the 272px available, so the tighter gaps are load-bearing. */
  .site-nav { gap: 12px; }
  .site-nav .btn { padding: 9px 12px; }
  .brand .brand-logo { height: 32px; }  /* width:auto preserves aspect — no squish */
}

/* ─── "Notify me" inline waitlist forms (iOS launch / jobs board) ─── */
.notify-form { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 480px; margin: 0 auto; }
.notify-form .notify-email {
  flex: 1 1 220px; box-sizing: border-box; font-family: inherit; font-size: 15px;
  color: var(--text); background: #fff; border: 1px solid var(--border);
  border-radius: 30px; padding: 12px 18px; transition: border-color .15s, box-shadow .15s;
}
.notify-form .notify-email:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px rgba(224,92,106,0.18); }
.notify-form button[type=submit] { flex: 0 0 auto; cursor: pointer; }
.notify-form button[disabled] { opacity: .6; cursor: default; }
/* Honeypot — off-screen, never shown to humans; bots that fill it are dropped */
.notify-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.notify-status { margin-top: 14px; font-size: 15px; font-weight: 600; }
.notify-status.ok { color: var(--green); }
.notify-status.err { color: var(--red); }

/* ─── Support FAQ (accordions) ───────────────────────────────── */
.faq-group { margin: 30px 0 6px; }
.faq-group + .faq-group { margin-top: 34px; }
.faq-group > h2 { font-size: 21px; margin: 0 0 12px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-card); margin-bottom: 10px; }
.faq-item > summary { list-style: none; cursor: pointer; position: relative; padding: 15px 48px 15px 18px; font-weight: 700; font-size: 15px; color: var(--text); border-radius: 14px; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; line-height: 1; color: var(--coral-dark); }
.faq-item[open] > summary::after { content: '\2212'; }
.faq-item > summary:hover { color: var(--coral-dark); }
.faq-item > summary:focus-visible { outline: 2px solid var(--coral-dark); outline-offset: 2px; }
.faq-a { padding: 2px 18px 16px; font-size: 14.5px; color: var(--text-med); line-height: 1.62; }
.faq-a p { margin: 0 0 10px; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a a { font-weight: 600; }

/* ── Homepage section bar (slim sticky sub-nav under the header) ───── */
.section-nav {
  position: sticky; top: 64px; z-index: 99;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.section-nav .container {
  display: flex; align-items: center; gap: 26px;
  height: 46px; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.section-nav .container::-webkit-scrollbar { display: none; }
.section-nav a {
  font-size: 13px; font-weight: 600; color: var(--text-med); text-decoration: none;
  white-space: nowrap; letter-spacing: -0.1px; transition: color .15s;
}
.section-nav a:hover { color: var(--coral-dark); }
/* Anchor jumps must clear the sticky header (64) + section bar (46). */
#about, #features, #screens, #roles, #privacy { scroll-margin-top: 118px; }

/* ── Public roadmap (roadmap.html) ─────────────────────────────────── */
.roadmap-main .container { max-width: 940px; }
.roadmap-lede { font-size: 17px; color: var(--text-med); max-width: 660px; margin: 0 0 40px; line-height: 1.6; }
#roadmap-list { display: flex; flex-direction: column; gap: 48px; }
#roadmap-list[data-loading] { color: var(--text-light); font-size: 14px; }
#roadmap-list[data-loading]::before { content: "Loading roadmap…"; }

.roadmap-group-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.roadmap-pill { font-size: 11.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; padding: 6px 13px; border-radius: 999px; }
.roadmap-pill--review { background: #FDEFD6; color: #9A6400; }
.roadmap-pill--planned { background: var(--teal-light); color: var(--teal-dark); }
.roadmap-pill--shipped { background: #E3F3E4; color: var(--green); }
.roadmap-count { font-size: 13px; font-weight: 500; color: var(--text-light); }

/* Horizontal cards — full-width, stacked, with generous left/right padding. */
.roadmap-grid { display: flex; flex-direction: column; gap: 20px; }
.roadmap-card {
  background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--border);
  border-radius: 18px; box-shadow: var(--shadow-card); padding: 30px 48px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.roadmap-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(90,40,45,0.13); }
.roadmap-group--review .roadmap-card { border-left-color: #E8A33D; }
.roadmap-group--planned .roadmap-card { border-left-color: var(--teal); }
.roadmap-group--shipped .roadmap-card { border-left-color: var(--green); }
.roadmap-card-title { font-family: 'Lora', serif; font-size: 21px; font-weight: 600; letter-spacing: -0.2px; color: var(--text); margin: 0 0 9px; line-height: 1.3; }
.roadmap-card-sum { font-size: 15.5px; color: var(--text-med); line-height: 1.65; margin: 0; max-width: 70ch; }

/* Updates sit inset beneath the topic + description — a recessed panel, indented
   from the left, to read as subordinate progress notes under the main item. */
.roadmap-updates { margin: 24px 0 0 32px; padding: 18px 26px 20px; background: var(--bg); border-radius: 14px; }
.roadmap-updates-head { font-size: 10px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-light); margin-bottom: 14px; }
.roadmap-update { display: flex; gap: 12px; margin-bottom: 15px; }
.roadmap-update:last-child { margin-bottom: 0; }
.roadmap-update-dot { flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); margin-top: 5px; box-shadow: 0 0 0 3px var(--white); }
.roadmap-update-text { font-size: 14px; color: var(--text-med); line-height: 1.55; }
.roadmap-update-date { font-size: 11.5px; color: var(--text-light); margin-top: 4px; }

.roadmap-empty { color: var(--text-light); font-size: 15px; padding: 24px 0; }
@media (max-width: 760px) {
  .roadmap-main .container { max-width: 820px; }
  .roadmap-card { padding: 24px 26px; }
  .roadmap-updates { margin-left: 16px; padding: 16px 20px; }
}

/* ─── Article pages (/about, /glossary, /guides/*, /templates/*) ───
   Scoped to .article rather than .content-page so the legal pages — which nest
   22 <h3>s inside .legal-content and would lose their serif face and 28px top
   margin on a specificity tie — are never touched. */
.article h3 {
  font-size: 18px; margin: 26px 0 8px; color: var(--text);
  font-family: 'DM Sans', sans-serif; font-weight: 700; letter-spacing: -0.1px;
}
.article h2 + h3 { margin-top: 14px; }
.article-table {
  width: 100%; border-collapse: collapse; margin: 20px 0 24px;
  font-size: 14px; color: var(--text-med);
}
.article-table th, .article-table td {
  border: 1px solid var(--border); padding: 9px 10px; text-align: left; vertical-align: top;
}
.article-table th {
  background: var(--bg); color: var(--text); font-weight: 700;
  font-size: 13px; letter-spacing: 0.01em;
}
/* Blank rows on the printable logs need real height to write in. */
.article-table tbody tr { height: 34px; }
/* Wide tables scroll rather than forcing the page to scroll sideways. */
.article-table-wrap { overflow-x: auto; margin: 20px 0 24px; }
.article-table-wrap .article-table { margin: 0; min-width: 640px; }

/* ─── About page (/about) ────────────────────────────────────── */
/* Section headings in coral, with a lot more air than the default
   .content-page h2 (34px top) — this page is long-form and needs the breathing
   room to read as distinct chapters rather than a wall. */
.about h2 { color: var(--coral-dark); font-size: 27px; margin: 58px 0 6px; }
.about h2:first-of-type { margin-top: 40px; }
/* A thin coral rule under each heading reinforces the chapter break. */
.about h2 + .about-rule { width: 54px; height: 3px; border-radius: 2px;
  background: var(--coral); margin: 0 0 20px; }
/* Pulls a phrase out of the body grey into near-black. */
.about .hl { color: var(--text); font-weight: 700; }

/* Portrait — placeholder until a real photo is dropped in. */
.about-portrait { display: flex; align-items: center; gap: 22px; margin: 6px 0 26px; }
.about-portrait-img {
  width: 116px; height: 116px; border-radius: 50%; flex-shrink: 0;
  object-fit: cover; border: 3px solid var(--white);
  box-shadow: 0 4px 18px rgba(90,40,45,0.18);
  background: linear-gradient(145deg, var(--coral) 0%, var(--coral-dark) 100%);
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.9);
}
.about-portrait-img svg { width: 58px; height: 58px; }
.about-portrait-cap { font-size: 14.5px; color: var(--text-light); line-height: 1.55; margin: 0; }
.about-portrait-cap strong { color: var(--text); display: block; font-size: 16px; margin-bottom: 2px; }

/* Story timeline — year in a coral pill, connected down the left. */
.about-timeline { list-style: none; margin: 22px 0 8px; padding: 0; }
.about-timeline > li { position: relative; padding: 0 0 22px 104px; margin: 0; }
.about-timeline > li::before {
  content: attr(data-year); position: absolute; left: 0; top: 0;
  width: 78px; text-align: center; padding: 5px 0; border-radius: 20px;
  background: var(--coral-light); color: var(--coral-dark);
  font-size: 13px; font-weight: 700; font-family: 'DM Sans', sans-serif;
}
.about-timeline > li::after {
  content: ''; position: absolute; left: 38px; top: 32px; bottom: 0;
  width: 2px; background: var(--border);
}
.about-timeline > li:last-child { padding-bottom: 0; }
.about-timeline > li:last-child::after { display: none; }
.content-page .about-timeline > li p { margin: 0; }
.about-timeline h3 { font-size: 16px; margin: 2px 0 6px; }

/* Feature + privacy cards */
.about-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 22px 0 8px; }
.about-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 20px; box-shadow: var(--shadow-card);
}
.about-card .ti { color: var(--coral-dark); font-size: 22px; margin-bottom: 8px; }
.about-card h3 { font-size: 16px; margin: 0 0 5px; }
.content-page .about-card p { font-size: 14px; line-height: 1.55; margin: 0; }

@media (max-width: 640px) {
  .about h2 { font-size: 23px; margin-top: 46px; }
  .about-cards { grid-template-columns: 1fr; }
  .about-portrait { gap: 16px; }
  .about-portrait-img { width: 92px; height: 92px; }
  .about-portrait-img svg { width: 46px; height: 46px; }
  .about-timeline > li { padding-left: 0; padding-top: 34px; }
  .about-timeline > li::before { top: 0; }
  .about-timeline > li::after { display: none; }
}

/* ─── How it works (/how-it-works) ───────────────────────────── */
/* Purely additive: every selector is scoped to .hiw-* or to a heading
   level .content-page did not previously style, so no existing page
   changes appearance. */

/* Scoped to .hiw-steps, NOT .content-page h3 — the legal pages nest 22 <h3>s
   inside .legal-content, and a bare .content-page h3 ties it on specificity
   and wins on source order, stripping their 28px top margin and serif face. */
.hiw-steps h3 { font-size: 18px; margin: 0 0 8px; color: var(--text);
  font-family: 'DM Sans', sans-serif; font-weight: 700; letter-spacing: -0.1px; }

/* Numbered steps — the counter sits in a coral disc in the left gutter. */
.hiw-steps { list-style: none; counter-reset: hiw; margin: 22px 0 0; padding: 0; }
.hiw-steps > li {
  counter-increment: hiw; position: relative;
  padding: 0 0 26px 62px; margin: 0;
}
.hiw-steps > li::before {
  content: counter(hiw);
  position: absolute; left: 0; top: 0;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--coral); color: var(--white);
  font-family: 'DM Sans', sans-serif; font-size: 17px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
/* Connector line between step discs; the last step has no trailing line. */
.hiw-steps > li::after {
  content: ''; position: absolute; left: 18px; top: 44px; bottom: 8px;
  width: 2px; background: var(--border);
}
.hiw-steps > li:last-child { padding-bottom: 0; }
.hiw-steps > li:last-child::after { display: none; }
/* Outspecifies .content-page p:not([class]) so steps stay tight. */
.content-page .hiw-steps > li p { margin: 0; }

/* "What LynCare is not" — recessed panel, so the scope limits read as
   deliberate rather than as fine print. */
.hiw-not { list-style: none; margin: 18px 0 0; padding: 22px 26px;
  background: var(--bg); border-radius: 14px; }
.hiw-not > li { margin: 0 0 14px; padding-left: 26px; position: relative; }
.hiw-not > li:last-child { margin-bottom: 0; }
.hiw-not > li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 12px; height: 2px; border-radius: 1px; background: var(--coral-dark);
}

@media (max-width: 760px) {
  .hiw-steps > li { padding-left: 52px; }
  .hiw-steps > li::before { width: 32px; height: 32px; font-size: 15px; }
  .hiw-steps > li::after { left: 15px; top: 38px; }
  .hiw-not { padding: 18px 20px; }
}
