/* The marketing site, shared by every brand.
 *
 * What is NOT here: the ten identity tokens — --brand, --brand-strong, --brand-soft, --night, --night-2,
 * --moon, --moon-soft, --moon-ink, --moon-line, --glow. They live in brands/<id>/tokens.css and are served as /assets/css/brand.css, which
 * this file is loaded before. A brand pack that omits one fails the build (tools/build.mjs), so they are
 * never silently inherited from another identity.
 *
 * What IS here: everything with a meaning of its own rather than an identity — the ink and surface greys,
 * the radii and shadows, --danger and --ok, and the whole layout. See docs/SPEC.md §8.
 */
:root {
  --ink: #0b1530;
  --ink-2: #2b3a55;
  --muted: #5a6a82;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --line: #e2e8f1;
  --danger: #b42318;
  --ok: #067647;

  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --shadow: 0 1px 2px rgba(11, 21, 48, .06), 0 8px 24px rgba(11, 21, 48, .06);
  --shadow-l: 0 2px 4px rgba(11, 21, 48, .06), 0 24px 60px rgba(11, 21, 48, .12);
  --wrap: 1180px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 750; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 720; }
h3 { font-size: 1.25rem; font-weight: 680; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--moon); outline-offset: 2px; border-radius: 4px; }
.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; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-s); }
.skip-link:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--white { background: var(--surface); }
.section--night { background: var(--night); color: #dfe6f5; }
.section--night h2, .section--night h3 { color: #fff; }
.section--night .lead { color: #b8c4dd; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.section--night .eyebrow { color: var(--moon); }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 680px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 650; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-strong); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: #fff; color: var(--night); }
.btn--light:hover { background: var(--moon-soft); color: var(--night); }
.btn--outline-light { color: #fff; border-color: rgba(255, 255, 255, .35); background: transparent; }
.btn--outline-light:hover { border-color: #fff; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245, 247, 251, .88); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 760; font-size: 1.2rem; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand svg { width: 34px; height: 34px; flex: none; }
.nav-links { display: flex; gap: 26px; list-style: none; margin-left: 12px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-weight: 560; font-size: .98rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--brand); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; }
.nav-cta .btn { min-height: 42px; padding: 0 18px; font-size: .95rem; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: ""; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav-links, .nav-cta { display: none; }
  .site-header.is-open .nav { flex-wrap: wrap; padding-bottom: 20px; }
  .site-header.is-open .nav-links { display: flex; flex-direction: column; gap: 4px; width: 100%; margin: 8px 0 0; order: 3; }
  .site-header.is-open .nav-links a { display: block; padding: 10px 0; font-size: 1.1rem; }
  .site-header.is-open .nav-cta { display: flex; flex-direction: column; width: 100%; margin: 8px 0 0; order: 4; }
  .site-header.is-open .nav-cta .btn { min-height: 48px; }
}

/* Hero */
.hero { padding: 64px 0 88px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero h1 span { color: var(--brand); }
.hero .lead { font-size: 1.22rem; margin-bottom: 28px; }
.hero-note { margin-top: 18px; font-size: .92rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; }
.hero-note li::before { content: "✓"; color: var(--brand); font-weight: 800; margin-right: 6px; }
.page-hero { padding: 56px 0 40px; }
.page-hero .lead { font-size: 1.2rem; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 32px; }
}

/* Illustrative app mockups */
.mock { position: relative; background: var(--surface); border-radius: var(--radius-l); box-shadow: var(--shadow-l); border: 1px solid var(--line); overflow: hidden; font-size: 13px; line-height: 1.4; color: var(--ink); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fbfcfe; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d7dde8; }
.mock-bar b { margin-left: 10px; font-weight: 600; color: var(--muted); font-size: 12px; }
.mock-body { display: grid; grid-template-columns: 52px 1fr; min-height: 340px; }
.mock-side { background: var(--night); display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px 0; }
.mock-side i { width: 22px; height: 22px; border-radius: 7px; background: rgba(255, 255, 255, .14); }
.mock-side i.on { background: var(--moon); }
.mock-main { padding: 18px; display: grid; gap: 14px; align-content: start; }
.mock-caption { position: absolute; right: 12px; bottom: 10px; font-size: 11px; color: var(--muted); background: rgba(255, 255, 255, .9); padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); }
.pt-head { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-soft), #cfe7ff); display: grid; place-items: center; font-weight: 700; color: var(--brand-strong); }
.pt-head strong { display: block; font-size: 15px; }
.pt-head small { color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-strong); white-space: nowrap; }
.chip--moon { background: var(--moon-soft); color: var(--moon-ink); }
.chip--grey { background: #eef1f6; color: var(--ink-2); }
.pt-head .chip { margin-left: auto; }
.tabs { display: flex; gap: 16px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); overflow: hidden; white-space: nowrap; }
.tabs span { padding-bottom: 8px; }
.tabs .on { color: var(--ink); font-weight: 650; box-shadow: inset 0 -2px 0 var(--brand); }
.teeth { display: grid; grid-template-columns: repeat(16, 1fr); gap: 4px; }
.teeth i { aspect-ratio: 3 / 4; border-radius: 6px 6px 9px 9px; background: #eef2f7; border: 1px solid #e0e6ef; }
.teeth i.tx { background: var(--brand-soft); border-color: #a9d8d5; }
.teeth i.pl { background: var(--moon-soft); border-color: var(--moon-line); }
.teeth i.mi { background: repeating-linear-gradient(135deg, #eef2f7 0 4px, #dfe5ee 4px 8px); }
.mock-cards { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.mcard { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; }
.mcard h5 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.plan-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px dashed var(--line); }
.plan-row:first-of-type { border-top: 0; }
.big-num { font-size: 22px; font-weight: 760; letter-spacing: -.02em; }
.muted { color: var(--muted); }

.float-card { position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow-l); border: 1px solid var(--line); padding: 12px 14px; font-size: 13px; display: flex; gap: 10px; align-items: center; }
.float-card .dot { width: 30px; height: 30px; border-radius: 9px; background: var(--moon-soft); display: grid; place-items: center; font-size: 15px; }
.float-card strong { display: block; font-size: 13px; }
.float-card small { color: var(--muted); font-size: 12px; }
.hero-visual { position: relative; }
.hero-visual .float-card.a { left: -28px; bottom: 36px; }
.hero-visual .float-card.b { right: -18px; top: 70px; }
@media (max-width: 1200px) { .hero-visual .float-card.a { left: 8px; } .hero-visual .float-card.b { right: 8px; } }
@media (max-width: 640px) {
  .hero-visual .float-card { display: none; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .mock-cards { grid-template-columns: 1fr; }
  .teeth { gap: 2px; }
}

/* Schedule mock */
.sched { display: grid; grid-template-columns: 44px repeat(3, 1fr); gap: 6px; font-size: 11.5px; }
.sched .th { font-weight: 650; color: var(--muted); padding-bottom: 4px; }
.sched .t { color: var(--muted); padding-top: 2px; }
.sched .slot { border-radius: 8px; padding: 6px 8px; min-height: 30px; }
.slot.a { background: var(--brand-soft); color: var(--brand-strong); }
.slot.b { background: var(--moon-soft); color: var(--moon-ink); }
.slot.c { background: #e8edff; color: #33418a; }
.slot.e { background: transparent; border: 1px dashed var(--line); }
.slot.tall { min-height: 66px; }

/* Bars (finance) — heights via classes to keep CSP free of inline styles */
.bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding-top: 8px; }
.bars i { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #16a3a0, var(--brand)); }
.bars i.m { background: linear-gradient(180deg, #f6d48f, var(--moon)); }
.h30 { height: 30%; } .h40 { height: 40%; } .h45 { height: 45%; } .h55 { height: 55%; } .h60 { height: 60%; } .h65 { height: 65%; } .h70 { height: 70%; } .h80 { height: 80%; } .h90 { height: 90%; } .h100 { height: 100%; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.kpi small { color: var(--muted); display: block; font-size: 11.5px; }
.kpi b { font-size: 18px; letter-spacing: -.02em; }
.kpi em { font-style: normal; font-size: 11.5px; color: var(--ok); font-weight: 650; }

/* Funnel */
.funnel { display: grid; gap: 8px; }
.funnel-row { display: grid; grid-template-columns: 150px 1fr 44px; align-items: center; gap: 10px; font-size: 12.5px; }
.funnel-track { height: 22px; border-radius: 6px; background: #eef2f7; overflow: hidden; }
.funnel-track i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--brand), #19b3ae); }
.w100 { width: 100%; } .w72 { width: 72%; } .w54 { width: 54%; } .w41 { width: 41%; } .w33 { width: 33%; }
@media (max-width: 640px) { .funnel-row { grid-template-columns: 110px 1fr 40px; } }

/* Grids and cards */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-strong); display: grid; place-items: center; margin-bottom: 18px; }
.card .icon svg { width: 24px; height: 24px; }
.card--flat { box-shadow: none; }
.card--night { background: var(--night-2); border-color: rgba(255, 255, 255, .08); box-shadow: none; }
.card--night p { color: #b8c4dd; }
.card--night .icon { background: rgba(242, 196, 109, .14); color: var(--moon); }
.card ul.ticks { margin-top: 12px; }
ul.ticks { list-style: none; display: grid; gap: 8px; }
ul.ticks li { position: relative; padding-left: 28px; }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--brand-soft); box-shadow: inset 0 0 0 5px var(--brand); transform: scale(.75); }
.badge { display: inline-block; font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--moon-soft); color: #7a5410; vertical-align: middle; margin-left: 8px; }

/* Audience strip */
.strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding: 26px 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); }
.strip p { margin: 0; font-weight: 650; }
.strip ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }

/* Problem vs solution */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare .card h3 { display: flex; align-items: center; gap: 10px; }
.compare .card.before { background: #fbfcfe; }
.compare ul.cross { list-style: none; display: grid; gap: 10px; }
.compare ul.cross li { padding-left: 28px; position: relative; color: var(--ink-2); }
.compare ul.cross li::before { content: "×"; position: absolute; left: 4px; top: -1px; color: var(--danger); font-weight: 800; }
@media (max-width: 800px) { .compare { grid-template-columns: 1fr; } }

/* Patient flow */
.flow { list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; counter-reset: step; }
.flow li { position: relative; background: var(--night-2); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius); padding: 20px 16px 18px; counter-increment: step; }
.flow li::before { content: counter(step, decimal-leading-zero); display: block; font-size: .8rem; font-weight: 750; letter-spacing: .1em; color: var(--moon); margin-bottom: 10px; }
.flow li::after { content: ""; position: absolute; top: 30px; right: -12px; width: 12px; height: 2px; background: var(--moon); opacity: .5; }
.flow li:last-child::after { display: none; }
.flow h3 { font-size: 1rem; margin-bottom: 6px; }
.flow p { font-size: .9rem; color: #b8c4dd; margin: 0; }
@media (max-width: 1100px) { .flow { grid-template-columns: repeat(4, 1fr); } .flow li::after { display: none; } }
@media (max-width: 640px) { .flow { grid-template-columns: 1fr; } }

/* Feature spotlight rows */
.spot { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 40px 0; }
.spot + .spot { border-top: 1px solid var(--line); }
.spot.flip .spot-media { order: -1; }
.spot h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
@media (max-width: 960px) { .spot { grid-template-columns: 1fr; gap: 28px; } .spot.flip .spot-media { order: 0; } }

/* Split callout */
.callout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 44px; box-shadow: var(--shadow); }
@media (max-width: 900px) { .callout { grid-template-columns: 1fr; padding: 28px; } }
.steps { list-style: none; display: grid; gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.steps li::before { content: counter(s); width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); font-weight: 750; display: grid; place-items: center; }
.steps strong { display: block; }
.steps span { color: var(--muted); font-size: .95rem; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 24px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 32px 20px 0; font-weight: 650; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 16px; font-size: 1.5rem; font-weight: 400; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 20px; margin: 0; }

/* CTA band */
.cta-band { background: radial-gradient(1200px 400px at 85% -10%, var(--glow), transparent 60%), var(--night); color: #dfe6f5; border-radius: var(--radius-l); padding: 64px 48px; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #b8c4dd; max-width: 620px; margin: 0 auto 28px; font-size: 1.1rem; }
.cta-band .btn-row { justify-content: center; }
@media (max-width: 640px) { .cta-band { padding: 44px 22px; } }

/* Pricing */
.price-card { display: flex; flex-direction: column; }
.price-card .price { font-size: 1.9rem; font-weight: 760; letter-spacing: -.02em; margin: 6px 0 4px; }
.price-card .per { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.price-card ul.ticks { margin-bottom: 24px; }
.price-card .btn { margin-top: auto; }
.price-card.featured { border: 2px solid var(--brand); position: relative; }
.price-card.featured::before { content: "Most clinics"; position: absolute; top: -13px; left: 24px; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 12px; border-radius: 999px; }
.note { font-size: .92rem; color: var(--muted); }

/* Forms */
.form-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
@media (max-width: 960px) { .form-wrap { grid-template-columns: 1fr; } }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 32px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form { padding: 22px; } .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 620; font-size: .95rem; }
.field .opt { color: var(--muted); font-weight: 450; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fbfcfe; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(11, 122, 122, .15); background: #fff; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: .88rem; min-height: 0; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg label { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; cursor: pointer; background: #fbfcfe; font-weight: 500; }
.seg label strong { display: block; font-weight: 650; }
.seg label small { color: var(--muted); font-size: .88rem; }
.seg input { margin-top: 4px; accent-color: var(--brand); }
.seg label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
@media (max-width: 640px) { .seg { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: 12px; padding: 14px 16px; font-weight: 550; }
.form-status[hidden] { display: none; }
.form-status.ok { background: #e7f6ee; color: var(--ok); }
.form-status.fail { background: #fdecea; color: var(--danger); }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.contact-points { list-style: none; display: grid; gap: 18px; margin-top: 28px; }
.contact-points li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.contact-points .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-strong); display: grid; place-items: center; }
.contact-points .icon svg { width: 22px; height: 22px; }
.contact-points strong { display: block; }
.contact-points span { color: var(--muted); font-size: .95rem; }

/* Prose (legal) */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.3em; margin-bottom: 1em; }
.prose li { margin-bottom: .4em; }
.draft { background: var(--moon-soft); border: 1px solid var(--moon-line); color: var(--moon-ink); border-radius: var(--radius-s); padding: 14px 18px; margin-bottom: 28px; font-size: .95rem; }

/* The date a legal page was last changed. Visible, not a tooltip: a clinic may have agreed to an earlier one. */
.version { font-size: .92rem; color: var(--muted); margin: -.2em 0 1.6em; }

/* A sentence the product has not finally decided. Marked rather than guessed: stating a rule we have not
   agreed would be a worse promise than admitting the rule is still being settled. */
.pending { background: var(--moon-soft); border-left: 4px solid var(--moon); border-radius: 0 var(--radius-s) var(--radius-s) 0; padding: 12px 16px; margin: 0 0 1em; font-size: .97rem; color: var(--moon-ink); }
.pending strong { font-weight: 700; }

/* A fact the owner has not given yet, published as a visible gap (brand.json: { "placeholder": "ООО «…»" }).
   Marked so that nobody reads "ООО «…»" as a company name; the page it is on opens with .placeholder-notice. */
.fact-placeholder { background: var(--moon-soft); color: var(--moon-ink); border-bottom: 1px dashed var(--moon); border-radius: 3px; padding: 0 .25em; white-space: nowrap; }
.placeholder-notice { margin-top: 24px; }

/* Who the seller is, spelled out: name, registration, address, contacts. */
.requisites { display: grid; grid-template-columns: max-content 1fr; gap: 6px 22px; margin: 0 0 1.4em; font-size: .97rem; }
.requisites dt { color: var(--muted); }
.requisites dd { margin: 0; }
@media (max-width: 560px) { .requisites { grid-template-columns: 1fr; gap: 0 0; } .requisites dd { margin-bottom: .7em; } }

/* The seller line in the footer — first thing a payment provider looks for, so it reads before the small print. */
.foot-bottom .seller { color: #dfe6f5; font-weight: 600; width: 100%; }

/* Footer */
.site-footer { background: var(--night); color: #b8c4dd; padding: 64px 0 36px; margin-top: 88px; font-size: .95rem; }
.site-footer .brand { color: #fff; }
.site-footer .brand:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { color: #fff; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.foot-grid ul { list-style: none; display: grid; gap: 8px; }
.foot-grid a { color: #b8c4dd; text-decoration: none; }
.foot-grid a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.main-last { margin-bottom: -88px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
