/* Ellery Health marketing site. One stylesheet, brand tokens at the top. */
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/inter-700.woff2") format("woff2"); }

:root {
  --navy: #0A1628;          /* headings, footer */
  --brand-blue: #087CF0;    /* the logo's blue: accents, never small text on white */
  --action: #0A6CD9;        /* buttons and links: 5:1 on white */
  --action-dark: #0857B0;
  --teal: #14B8A6;          /* accents */
  --teal-ink: #0F766E;      /* teal text on white */
  --sky: #E6F4FF;           /* light sections */
  --soft: #F8FAFC;
  --line: #E2E8F0;
  --slate: #475569;         /* body text on white: 7.6:1 */
  --muted: #64748B;
  --white: #FFFFFF;
  --gradient: linear-gradient(135deg, #087CF0 0%, #14B8A6 100%);
  --radius: 16px;
  --shadow: 0 1px 2px rgba(10, 22, 40, .06), 0 8px 24px rgba(10, 22, 40, .06);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 17px;
  line-height: 1.65; color: var(--slate); background: var(--white); }
img, svg { max-width: 100%; height: auto; }
a { color: var(--action); text-underline-offset: 3px; }
a:hover { color: var(--action-dark); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.55rem); }
h3 { font-size: 1.3rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-ink); margin-bottom: 14px; }
.lead { font-size: 1.2rem; color: var(--slate); max-width: 46rem; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
section { padding: 88px 0; }
.sky { background: var(--sky); }
.soft { background: var(--soft); }
.dark { background: var(--navy); color: #CBD5E1; }
.dark h2, .dark h3 { color: #fff; }
.dark .eyebrow { color: #5EEAD4; }
.dark a:not(.btn) { color: #7DD3FC; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-weight: 600;
  font-size: 1rem; text-decoration: none; border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn-primary { background: var(--action); color: #fff; }
.btn-primary:hover { background: var(--action-dark); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-ghost:hover { border-color: var(--action); color: var(--action); }
.dark .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.dark .btn-ghost:hover { border-color: #fff; color: #fff; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand img { display: block; height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--navy); text-decoration: none; font-weight: 500; font-size: .96rem; padding: 8px 12px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--action); background: var(--sky); }
.nav .btn { margin-left: 10px; padding: 10px 20px; color: #fff; }
.nav .btn:hover { color: #fff; background: var(--action-dark); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; color: var(--navy); font: inherit; font-weight: 600; }
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 12px 24px 20px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; font-size: 1.05rem; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
  .brand img { height: 36px; }
}

/* Hero */
.hero { padding: 72px 0 80px; background: radial-gradient(1200px 500px at 85% -10%, #E6F4FF 0%, rgba(230,244,255,0) 60%), #fff; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 span { display: block; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; display: block; }
.art-note { font-size: .78rem; color: var(--muted); text-align: center; margin-top: 8px; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } section { padding: 64px 0; } }

/* Page hero for inner pages */
.page-hero { padding: 64px 0 56px; background: linear-gradient(180deg, var(--sky) 0%, #fff 100%); }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs span[aria-current] { color: var(--navy); }

/* Cards and grids */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
a.card { display: block; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s, border-color .2s; }
a.card:hover { transform: translateY(-2px); border-color: #BFDBFE; box-shadow: 0 1px 2px rgba(10,22,40,.06), 0 14px 32px rgba(10,22,40,.1); color: inherit; }
.card .more { display: inline-block; margin-top: 12px; color: var(--action); font-weight: 600; font-size: .95rem; }
.icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--sky); color: var(--action); margin-bottom: 18px; }
.icon svg { width: 26px; height: 26px; }
.icon.teal { background: #E6FAF7; color: var(--teal-ink); }

/* The friction list: what patients feel */
.friction { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 40px; }
.friction .card { padding: 22px; box-shadow: none; }
.friction .feel { color: var(--navy); font-weight: 600; font-size: 1.02rem; margin-bottom: 8px; line-height: 1.35; }
.friction .cause { font-size: .92rem; margin: 0; }
@media (max-width: 1100px) { .friction { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .friction { grid-template-columns: 1fr; } }

/* The journey */
.journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 48px; position: relative; }
.journey::before { content: ""; position: absolute; top: 27px; left: 12%; right: 12%; height: 3px; background: var(--gradient); border-radius: 3px; }
.stage { position: relative; padding: 0 14px; text-align: center; }
.stage .num { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: #fff;
  border: 3px solid var(--brand-blue); color: var(--navy); font-weight: 700; font-size: 1.1rem; position: relative; }
.stage:nth-child(3) .num, .stage:nth-child(4) .num { border-color: var(--teal); }
.stage h3 { font-size: 1.15rem; }
.stage p { font-size: .95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.chip { font-size: .85rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--navy); text-decoration: none; }
a.chip:hover { border-color: var(--action); color: var(--action); }
.journey-note { font-size: .88rem; color: var(--muted); text-align: center; margin-top: 28px; }
@media (max-width: 960px) {
  .journey { grid-template-columns: 1fr; gap: 28px; }
  .journey::before { top: 0; bottom: 0; left: 27px; right: auto; width: 3px; height: auto; }
  .stage { display: grid; grid-template-columns: 56px 1fr; gap: 0 18px; text-align: left; padding: 0; }
  .stage .num { margin: 0; grid-row: span 3; }
  .chips { justify-content: flex-start; }
}

/* Ten-step flow on the platform page */
.steps { counter-reset: step; list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 18px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(step); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gradient); color: #fff; font-weight: 700; }
.steps h3 { font-size: 1.12rem; margin-bottom: 4px; }
.steps p { margin: 0; font-size: .97rem; }
.steps .tools { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }

/* Split rows on feature pages */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.who { border-left: 4px solid var(--brand-blue); padding: 4px 0 4px 20px; }
.who.teal { border-color: var(--teal); }
.who h3 { font-size: 1.1rem; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 18px; border-radius: 50%;
  background: #E6FAF7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230F766E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.flow { list-style: none; padding: 0; margin: 0; counter-reset: f; }
.flow li { counter-increment: f; position: relative; padding: 0 0 22px 52px; }
.flow li::before { content: counter(f); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--sky);
  color: var(--action); font-weight: 700; display: grid; place-items: center; font-size: .95rem; }
.flow li::after { content: ""; position: absolute; left: 16px; top: 38px; bottom: 4px; width: 2px; background: var(--line); }
.flow li:last-child::after { display: none; }
.flow strong { color: var(--navy); }
.neighbours { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.neighbours a { flex: 1 1 260px; }
.neighbours .dir { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.neighbours a.card h3 { margin: 6px 0 0; font-size: 1.1rem; }
.callout { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; font-size: .97rem; }
.callout strong { color: var(--navy); }

/* Roles (tabs without JavaScript fall back to a list) */
.roles { margin-top: 40px; }
.tablist { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tablist button { font: inherit; font-weight: 600; font-size: .95rem; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--navy); cursor: pointer; }
.tablist button[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.panel h3 { font-size: 1.2rem; }
.no-js .tablist { display: none; }

/* FAQ */
.faq { max-width: 860px; margin: 32px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; color: var(--navy); font-size: 1.08rem; padding: 18px 40px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 1.5rem; color: var(--action); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; }

/* CTA band */
.cta { background: var(--navy); color: #CBD5E1; border-radius: 24px; padding: 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
  background-image: radial-gradient(600px 300px at 100% 0%, rgba(20,184,166,.25), rgba(20,184,166,0) 70%), radial-gradient(500px 300px at 0% 100%, rgba(8,124,240,.25), rgba(8,124,240,0) 70%); }
.cta h2 { color: #fff; }
.cta .btns { justify-content: flex-end; margin: 0; }
.cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.cta .btn-ghost:hover { border-color: #fff; color: #fff; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; padding: 36px 28px; } .cta .btns { justify-content: flex-start; } }

/* Forms */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label, .field legend { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; font-size: .95rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #CBD5E1; border-radius: 10px; color: var(--navy); background: #fff; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(20,184,166,.35); border-color: var(--teal); }
.field fieldset { border: 0; padding: 0; margin: 0; }
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; }
@media (max-width: 560px) { .checks { grid-template-columns: 1fr; } }
.checks label, .consent label { font-weight: 400; color: var(--slate); display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.checks input, .consent input { margin-top: .35em; width: 18px; height: 18px; accent-color: var(--action); flex: none; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .88rem; color: var(--muted); }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 10px; display: none; font-weight: 500; }
.form-status.ok { display: block; background: #E6FAF7; color: #115E59; }
.form-status.err { display: block; background: #FEF2F2; color: #991B1B; }
.error-text { color: #B91C1C; font-size: .88rem; margin-top: 4px; }
[aria-invalid="true"] { border-color: #DC2626 !important; }

/* Prose pages (privacy, terms, security detail) */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.6rem; margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }

/* Footer */
.site-footer { background: var(--navy); color: #94A3B8; padding: 64px 0 32px; font-size: .95rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.site-footer h4 { color: #fff; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #CBD5E1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand img { height: 46px; margin-bottom: 16px; }
.site-footer .disclaimer { margin: 40px 0 0; font-size: .85rem; max-width: 860px; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 24px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
@media (max-width: 960px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* Motion: gentle, and none for people who ask for none */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  a.card, .btn { transition: none; }
  a.card:hover { transform: none; }
}

/* Spacing and sizing that used to be inline styles. The site's Content-Security-Policy allows no inline style. */
.u1 { background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.12);box-shadow:none; }
.u2 { display:flex;gap:14px;align-items:center; }
.u3 { font-size:.85rem; }
.u4 { font-size:.92rem; }
.u5 { font-size:1.5rem; }
.u6 { font-size:1.6rem; }
.u7 { font-size:1.7rem; }
.u8 { justify-content:center; }
.u9 { justify-content:flex-start;margin:8px 0 28px; }
.u10 { margin-bottom:48px; }
.u11 { margin-top:12px; }
.u12 { margin-top:20px; }
.u13 { margin-top:22px; }
.u14 { margin-top:24px; }
.u15 { margin-top:28px; }
.u16 { margin-top:32px; }
.u17 { margin-top:32px;text-align:left; }
.u18 { margin-top:36px; }
.u19 { margin:0 0 18px; }
.u20 { margin:40px 0 18px; }
.u21 { padding-top:24px; }
.u22 { padding:120px 0; }
.u23 { text-align:right; }

/* The patient notice: for people who got a reminder and want to know who sent it. */
.patient-link { margin-top: 22px; font-size: .95rem; }
.notice { max-width: 860px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--teal);
  border-radius: var(--radius); padding: 32px 36px; box-shadow: var(--shadow); }
.notice h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.notice p:last-child { margin-bottom: 0; }
@media (max-width: 600px) { .notice { padding: 24px 20px; } }
a[href^="tel:"] { white-space: nowrap; }
