/* Solace Health — solacehealth.in
 *
 * LIGHT ONLY. There is deliberately no `prefers-color-scheme: dark` block and no
 * `[data-theme="dark"]` rule in this file, and none should be added. `color-scheme: light`
 * below tells the browser to keep form controls and scrollbars light too. See CLAUDE.md.
 * The one dark surface on the site is the footer — a deliberate anchor, never the page ground.
 *
 * THE COLOURS ARE NOT PICKED BY EYE. They are the values in apps/mobile/src/theme/tokens.ts,
 * themselves sampled from the actual pixels of assets/solace-logo.png — the mark runs LEAF GREEN
 * into ROYAL BLUE and the wordmark is that same blue. The admin console, the hospital app, the
 * prescription PDF and this website therefore all read as one brand rather than four.
 */

:root {
  color-scheme: light;

  /* ---- brand, sampled from the logo ---- */
  --leaf: #84c03c;
  --leaf-light: #a6d95c;
  --teal: #2f8f7a;
  --blue: #2430c0;
  --blue-deep: #151d8f;

  /* The logo's own sweep. Narrow surfaces get the full green-to-blue run; anything WIDE gets the
     teal-to-blue half, because across a full-bleed band the complete sweep reads as two brands
     stitched together rather than one. Same rule as BRAND_STOPS / HERO_STOPS in the app. */
  --grad: linear-gradient(140deg, #a6d95c 0%, #6fb84a 30%, #2f8f7a 58%, #2745c4 82%, #151d8f 100%);
  --grad-wide: linear-gradient(160deg, #2f8f7a 0%, #2745c4 55%, #151d8f 100%);

  --primary: #2430c0;
  --primary-hover: #151d8f;
  --primary-soft: #e6e8fb;
  --teal-soft: #e4f2ee;
  --leaf-soft: #eef7e2;

  /* ---- neutrals: the app's slate ramp ---- */
  --ink: #0f172a;
  --text: #1e293b;
  --body: #475569;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e2e8f0;
  --line-soft: #eef2f6;
  --bg: #f8fafc;
  --surface: #ffffff;
  --navy: #111827;

  --danger: #dc2626;
  --warning: #d97706;
  --success: #16a34a;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(15,23,42,.05), 0 1px 3px rgba(15,23,42,.06);
  --shadow: 0 10px 30px rgba(15,23,42,.08);
  --shadow-lg: 0 24px 60px rgba(15,23,42,.12);

  --wrap: 1140px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 3px solid rgba(36,48,192,.4); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--primary); color: #fff;
  padding: 12px 18px; border-radius: 0 0 var(--r-sm) 0; z-index: 200; font-weight: 600;
}
.skip:focus { left: 0; color: #fff; }

/* ---------------------------------------------------------------- type */
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; letter-spacing: -.021em; margin: 0; line-height: 1.16; }
h1 { font-size: clamp(2.1rem, 1.35rem + 3.1vw, 3.7rem); letter-spacing: -.032em; }
h2 { font-size: clamp(1.6rem, 1.16rem + 1.85vw, 2.5rem); letter-spacing: -.027em; }
h3 { font-size: 1.16rem; letter-spacing: -.014em; }
p { margin: 0 0 1.05em; color: var(--body); }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 650; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .745rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--teal); margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--grad); }
.lead { font-size: clamp(1.02rem, .96rem + .3vw, 1.2rem); color: var(--body); max-width: 62ch; }
.section-lead { max-width: 66ch; margin-top: 16px; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__in { display: flex; align-items: center; gap: 20px; height: 70px; position: relative; }
.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand__name { font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; color: var(--ink); line-height: 1.05; }
.brand__by { font-size: .68rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 13px; border-radius: var(--r-sm); font-size: .935rem; font-weight: 550;
  color: var(--body); transition: background .15s, color .15s;
}
.nav a:hover { background: var(--bg); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--primary); background: var(--primary-soft); font-weight: 650; }

/* `.nav a` (0,2,0) out-specifies `.btn--primary` (0,1,0), so without these the call-to-action in
   the header renders with the muted link colour on the blue fill — dark text on a dark button.
   Restated at nav specificity rather than reached for with !important. */
.nav a.btn { margin-left: 10px; }
.nav a.btn--primary,
.nav a.btn--primary:hover,
.nav a.btn--primary[aria-current="page"] { color: #fff; background: var(--primary); font-weight: 650; }
.nav a.btn--primary:hover { background: var(--primary-hover); }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 40px; border: 1px solid var(--line);
  background: var(--surface); border-radius: var(--r-sm); 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;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

@media (max-width: 940px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 70px; left: -24px; right: -24px; flex-direction: column; align-items: stretch;
    gap: 2px; background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px 24px 20px;
    box-shadow: var(--shadow); margin-left: 0;
  }
  .nav a { padding: 12px 14px; font-size: 1rem; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: var(--r-sm); border: 1px solid transparent;
  font-weight: 650; font-size: .96rem; letter-spacing: -.005em; line-height: 1.2;
  transition: transform .14s ease, box-shadow .14s ease, background .14s, border-color .14s, color .14s;
  white-space: nowrap;
}
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(36,48,192,.22); }
.btn--primary:hover { background: var(--primary-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 26px rgba(36,48,192,.28); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--faint); color: var(--ink); transform: translateY(-1px); }
.btn--lg { padding: 15px 28px; font-size: 1.01rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.arrow-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 650; font-size: .95rem; }
.arrow-link::after { content: "\2192"; transition: transform .16s ease; }
.arrow-link:hover::after { transform: translateX(3px); }

/* ---------------------------------------------------------------- sections */
.band { padding: clamp(62px, 8vw, 108px) 0; }
.band--tint { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band--tight { padding: clamp(46px, 5.5vw, 72px) 0; }
.band__head { max-width: 760px; margin-bottom: 46px; }
.band__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.band__head--center .eyebrow { justify-content: center; }
.band__head--center .lead { margin-left: auto; margin-right: auto; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding: clamp(58px, 7vw, 96px) 0 clamp(56px, 7vw, 92px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(680px 420px at 88% -8%, rgba(132,192,60,.13), transparent 62%),
    radial-gradient(760px 520px at 6% 4%, rgba(36,48,192,.09), transparent 60%),
    var(--surface);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(680px 400px at 20% 0%, #000, transparent 72%);
  mask-image: radial-gradient(680px 400px at 20% 0%, #000, transparent 72%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0,1.02fr) minmax(0,.98fr); gap: clamp(34px, 5vw, 66px); align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { font-size: clamp(1.06rem, .98rem + .4vw, 1.28rem); }
.hero__note { margin-top: 24px; font-size: .9rem; color: var(--muted); display: flex; align-items: flex-start; gap: 9px; }
.hero__note .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); flex: 0 0 auto; box-shadow: 0 0 0 3px rgba(22,163,74,.16); margin-top: 8px; }
@media (max-width: 940px) { .hero__grid { grid-template-columns: 1fr; } }

.grad-text {
  background: linear-gradient(100deg, #2f8f7a 0%, #2745c4 58%, #151d8f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------------------------------------------------------------- the ranked list (hero figure) */
.ranklist {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.ranklist__top { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.ranklist__top h3 { font-size: .96rem; }
.ranklist__total { margin-left: auto; font-weight: 750; font-size: 1.02rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.ranklist__body { padding: 6px 0; }
.rank {
  display: grid; grid-template-columns: 30px minmax(0,1fr) auto; gap: 14px; align-items: center;
  padding: 14px 22px; border-bottom: 1px solid var(--line-soft);
}
.rank:last-child { border-bottom: 0; }
.rank__n {
  width: 26px; height: 26px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: .78rem; font-weight: 700; color: var(--muted);
}
.rank--top .rank__n { background: var(--grad); color: #fff; border-color: transparent; }
.rank__t { font-weight: 620; font-size: .95rem; color: var(--ink); }
.rank__s { font-size: .82rem; color: var(--muted); margin-top: 1px; }
.rank__v { font-weight: 750; font-size: 1.02rem; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ranklist__foot { padding: 14px 22px; background: var(--bg); border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }

/* ---------------------------------------------------------------- cards */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 660px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d5dde8; }
.card h3 { margin-bottom: 9px; }
.card p { font-size: .945rem; margin-bottom: 0; }
.card__icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); margin-bottom: 16px; flex: 0 0 auto;
}
.card__icon svg { width: 21px; height: 21px; }
.card__icon--teal { background: var(--teal-soft); color: var(--teal); }
.card__icon--leaf { background: var(--leaf-soft); color: #5a8f22; }
.card--flat { box-shadow: none; }
.card--flat:hover { transform: none; box-shadow: var(--shadow-sm); }

/* a card whose left edge carries the brand sweep */
.card--edge { position: relative; overflow: hidden; }
.card--edge::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad); }

.tag {
  display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 650;
  letter-spacing: .02em; background: var(--bg); color: var(--muted); border: 1px solid var(--line);
}
.tag--live { background: #ecfdf5; color: #15803d; border-color: #bbf7d0; }
.tag--add { background: var(--leaf-soft); color: #55841f; border-color: #d5ecb4; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }

/* ---------------------------------------------------------------- stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: var(--surface); padding: 26px 22px; }
.stat__v { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); font-weight: 780; letter-spacing: -.03em; color: var(--ink); line-height: 1.05; }
.stat__v .u { font-size: .55em; font-weight: 700; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.stat__l { font-size: .87rem; color: var(--muted); margin-top: 7px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* ---------------------------------------------------------------- steps */
.steps { display: grid; gap: 0; counter-reset: step; }
.step { display: grid; grid-template-columns: 54px minmax(0,1fr); gap: 22px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step__n {
  counter-increment: step; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--line); font-weight: 760; color: var(--primary); font-size: 1rem;
}
.step__n::before { content: counter(step); }
.step h3 { margin-bottom: 7px; }
.step p { font-size: .96rem; margin-bottom: 0; }

/* ---------------------------------------------------------------- split feature rows */
.split { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(30px, 5vw, 66px); align-items: center; }
.split--flip .split__media { order: -1; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split--flip .split__media { order: 0; } }
.split + .split { margin-top: clamp(48px, 6vw, 84px); }

.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 11px; }
/* THE MARKER IS ABSOLUTELY POSITIONED, NOT A GRID COLUMN. This was `display: grid` with a
 * `22px 1fr` track, which looked identical until a list item contained an inline element: in a grid
 * container every child element AND every contiguous run of text becomes its own grid item, so
 * `<li><strong>Bold bit.</strong> then the rest…</li>` produced three items, the sentence spilled
 * into later rows, and the text wrapped ONE WORD PER LINE inside the narrow track. Normal inline
 * flow with padding for the tick cannot do that to a nested tag. */
.ticks li { position: relative; padding-left: 32px; font-size: .96rem; color: var(--body); }
.ticks li::before {
  content: "\2713"; position: absolute; left: 0; top: 3px;
  width: 21px; height: 21px; border-radius: 50%; background: var(--teal-soft); color: var(--teal);
  display: grid; place-items: center; font-size: .72rem; font-weight: 800;
}

/* ---------------------------------------------------------------- panel / callout */
.panel {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 46px);
}
.panel--brand { background: linear-gradient(150deg, #f2f8ef 0%, #eef2fd 62%, #eaecfb 100%); border-color: #dfe6f2; }
.callout {
  border-left: 4px solid var(--warning); background: #fffbeb; border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 18px 22px; margin: 26px 0;
}
.callout p { color: #78350f; font-size: .94rem; }
.callout strong { color: #78350f; }

/* ---------------------------------------------------------------- pricing */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; align-items: stretch; }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.tier {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 30px 26px 32px; box-shadow: var(--shadow-sm); position: relative; display: flex; flex-direction: column;
}
.tier--featured { border-color: var(--primary); box-shadow: 0 18px 44px rgba(36,48,192,.14); }
.tier__flag {
  position: absolute; top: -13px; left: 26px; background: var(--grad); color: #fff;
  font-size: .71rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase;
  padding: 5px 13px; border-radius: 999px;
}
.tier__name { font-size: 1.02rem; font-weight: 750; color: var(--ink); }
.tier__blurb { font-size: .9rem; color: var(--muted); margin: 5px 0 20px; min-height: 2.9em; }
.tier__price { font-size: 2.55rem; font-weight: 800; letter-spacing: -.035em; color: var(--ink); line-height: 1; }
.tier__per { font-size: .84rem; color: var(--muted); margin-top: 8px; }
.tier__annual { margin-top: 14px; padding: 11px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); font-size: .87rem; }
.tier__annual b { color: var(--primary); }
.tier__annual span { display: block; color: var(--muted); font-size: .81rem; margin-top: 2px; }
.tier .ticks { margin-top: 22px; flex: 1; }
.tier .ticks li { font-size: .92rem; }
.tier .btn { margin-top: 26px; width: 100%; }

/* ---------------------------------------------------------------- tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); font-size: .93rem; vertical-align: top; }
thead th { background: var(--bg); font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td.c, th.c { text-align: center; }
.yes { color: var(--success); font-weight: 800; }
.no { color: var(--faint); }
.opt { color: var(--warning); font-weight: 700; }
.tbl-key { font-size: .84rem; color: var(--muted); margin-top: 14px; }

/* ---------------------------------------------------------------- faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-weight: 650; color: var(--ink); font-size: 1.03rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--muted); line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details > div { padding: 0 0 24px; max-width: 74ch; }
.faq details > div p { font-size: .96rem; }

/* ---------------------------------------------------------------- CTA band */
.cta {
  background: var(--grad-wide); border-radius: var(--r-xl); padding: clamp(34px, 5vw, 62px);
  color: #fff; text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.86); max-width: 56ch; margin: 16px auto 0; }
.cta .btn-row { justify-content: center; }
.cta .btn--primary { background: #fff; color: var(--blue-deep); box-shadow: 0 10px 30px rgba(0,0,0,.16); }
.cta .btn--primary:hover { background: #f1f5f9; color: var(--blue-deep); }
.cta .btn--ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.4); }
.cta .btn--ghost:hover { background: rgba(255,255,255,.16); color: #fff; }

/* ---------------------------------------------------------------- form */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .875rem; font-weight: 650; color: var(--ink); }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
  transition: border-color .14s, box-shadow .14s; width: 100%; font-size: .97rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(36,48,192,.13);
}
.field textarea { min-height: 128px; resize: vertical; }
.field__hint { font-size: .81rem; color: var(--muted); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.form__status { font-size: .9rem; padding: 12px 14px; border-radius: var(--r-sm); }
.form__status--ok { background: #ecfdf5; color: #15803d; border: 1px solid #bbf7d0; }
.form__status--err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* ---------------------------------------------------------------- footer (the one dark anchor) */
.site-footer { background: var(--navy); color: #cbd5e1; padding: clamp(52px, 6vw, 76px) 0 34px; }
.site-footer h4 { color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #cbd5e1; font-size: .93rem; }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
/* The supplied full lockup — mark over the wordmark, with "SINCE 2026" beneath it. The wordmark
   is royal blue, so on the navy footer it needs a white plate rather than being dropped straight
   onto the dark; the artwork is never recoloured or re-set in type. The header uses the horizontal
   lockup instead (mark + name in Inter), which is the in-product pairing defined in brand/logo.html
   — the stacked artwork is far too tall for a 70px bar. */
.footer__brand img {
  width: 172px; height: auto; background: #fff; border-radius: var(--r-md); padding: 14px 18px;
}
.footer__brand p { color: #94a3b8; font-size: .92rem; margin-top: 14px; max-width: 34ch; }
.footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__bar {
  margin-top: 42px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.11);
  display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; font-size: .85rem; color: #94a3b8;
}
.footer__bar a { font-size: .85rem; }
.footer__legal { margin-left: auto; }
@media (max-width: 720px) { .footer__legal { margin-left: 0; } }

/* ---------------------------------------------------------------- reveal
 * THE HIDING IS GATED ON `.js-reveal`, WHICH site.js ADDS TO <html> IMMEDIATELY BEFORE IT WIRES
 * THE OBSERVER. Do not move the opacity rule onto bare `.reveal`. If it were unconditional, then
 * any path where the observer never runs — script blocked, file 404s, an exception earlier in the
 * bundle, a crawler that fetches HTML but not JS — would render a page of invisible text. The
 * class is the proof that something is actually going to un-hide it. */
.js-reveal .reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-reveal .reveal { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- product screenshots
 * A real screen is the most persuasive thing on a software site, so it gets a frame that says
 * "this is a screen" without imitating a browser chrome nobody believes. The images are the
 * NEUTRALISED captures — every clinic and patient name in them is invented. */
.shot {
  margin: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow);
}
.shot img { width: 100%; display: block; }
.shot figcaption {
  padding: 13px 18px; border-top: 1px solid var(--line); background: var(--bg);
  font-size: .84rem; color: var(--muted);
}
/* The phone captures are portrait and would tower over a section at full width. */
.shot--phone { max-width: 300px; margin-inline: auto; border-radius: var(--r-xl); }
.shot--phone img { border-radius: var(--r-xl) var(--r-xl) 0 0; }

/* ---------------------------------------------------------------- video
 * `preload="none"` is not a nicety — these files are 7–24 MB. Without it every visitor to the
 * home page downloads two films they may never play, on an Indian mobile connection. Nothing is
 * fetched until they press play; the poster is a still that costs ~95 KB. */
.player { display: grid; gap: 14px; }
.player__frame {
  position: relative; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background: #0b1020; box-shadow: var(--shadow); aspect-ratio: 16 / 9;
}
.player__frame video { width: 100%; height: 100%; display: block; object-fit: contain; background: #0b1020; }
.player__bar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.player__title { font-weight: 700; color: var(--ink); font-size: 1.02rem; letter-spacing: -.015em; }
.player__meta { font-size: .85rem; color: var(--muted); }
.player__langs { margin-left: auto; display: flex; gap: 6px; }
.player__langs button {
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-size: .84rem; font-weight: 650; color: var(--body); transition: all .14s;
}
.player__langs button:hover { border-color: var(--faint); color: var(--ink); }
.player__langs button[aria-pressed="true"] {
  background: var(--primary); border-color: var(--primary); color: #fff;
}
@media (max-width: 560px) { .player__langs { margin-left: 0; width: 100%; } }

/* ---------------------------------------------------------------- clinical advisors
 * The photo is OPTIONAL by design. `.advisor__photo` renders a monogram of the doctor's initials,
 * and an <img> inside it covers that up when one exists — so the section is complete and looks
 * deliberate before any photograph has been supplied, and gains nothing but a face afterwards.
 * A missing image must never leave a grey box on a page about who to trust. */
.advisor { display: grid; grid-template-columns: 84px minmax(0,1fr); gap: 20px; align-items: start; }
@media (max-width: 460px) { .advisor { grid-template-columns: 1fr; } }

.advisor__photo {
  position: relative; width: 84px; height: 84px; border-radius: 50%; overflow: hidden;
  background: var(--grad); display: grid; place-items: center;
  color: #fff; font-weight: 750; font-size: 1.5rem; letter-spacing: -.01em;
  box-shadow: 0 6px 18px rgba(36,48,192,.18);
}
.advisor__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.advisor__name { font-size: 1.1rem; font-weight: 720; color: var(--ink); letter-spacing: -.015em; }
.advisor__quals {
  font-size: .8rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--teal); margin-top: 5px;
}
.advisor__role { font-size: .88rem; color: var(--muted); margin-top: 2px; }
.advisor p { font-size: .945rem; margin: 12px 0 0; }

/* The card says two different things — what this clinician DID on Solace, then who they are — and
   without a break they read as one paragraph, which buries the contribution. The CV is set quieter
   and behind a rule so the eye can take the first part and stop. */
.advisor__cv {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: .875rem; color: var(--muted);
}

/* ---------------------------------------------------------------- legal documents
 * Long-form prose. Measure is capped near 72ch because a privacy policy is the one page on a
 * site people genuinely try to read, and a full-width line of 10pt text is how you make sure
 * they don't. */
.legal { max-width: 74ch; }
.legal h2 {
  font-size: 1.42rem; letter-spacing: -.02em; margin: 52px 0 16px;
  padding-top: 26px; border-top: 1px solid var(--line);
}
.legal h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 { font-size: 1.05rem; margin: 30px 0 10px; }
.legal p, .legal li { font-size: .97rem; }
.legal ul, .legal ol { padding-left: 22px; margin: 0 0 1.05em; }
.legal li { margin-bottom: 9px; }
.legal li::marker { color: var(--faint); }
.legal dl { margin: 0 0 1.05em; }
.legal dt { font-weight: 650; color: var(--ink); margin-top: 16px; font-size: .97rem; }
.legal dd { margin: 4px 0 0; color: var(--body); font-size: .97rem; }
.legal .table-scroll { margin: 22px 0; }
.legal table { min-width: 520px; }

.legal__meta {
  display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .87rem; color: var(--muted);
  padding: 16px 20px; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-md); margin-bottom: 40px;
}
.legal__toc {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px 26px; margin-bottom: 46px;
}
.legal__toc h2 {
  font-size: .78rem !important; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 14px !important; padding: 0 !important; border: 0 !important;
}
.legal__toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 34px; }
.legal__toc li { margin-bottom: 7px; font-size: .91rem; break-inside: avoid; }
@media (max-width: 620px) { .legal__toc ol { columns: 1; } }

/* ---------------------------------------------------------------- page hero (inner pages) */
.pagehero { padding: clamp(48px, 6vw, 78px) 0 clamp(34px, 4vw, 54px); background: var(--bg); border-bottom: 1px solid var(--line); }
.pagehero h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
.pagehero .lead { margin-top: 18px; }
.crumb { font-size: .84rem; color: var(--muted); margin-bottom: 16px; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--primary); }
