/* The marketing site's styles (apps/site: index.html and security.html). Every color, radius, shadow and font
   comes from tokens.css, which scripts/brand/build-tokens.ts generates from brand/tokens.json; this file only
   arranges them. The site is MedLabIQ's full expression (UI 2.0 plan section 1): teal acts, navy grounds the
   security story, coral is MedLabIQ's highlight, and the trend line is the motif. Coral never marks a status,
   a chart point, a button, a link or a focus ring here either (plan rule 5). */

/* Fonts served by this site (brand/fonts, copied by scripts/brand/build.ts), never from a third party. */
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 100 1000; font-display: swap; src: url("/fonts/dm-sans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 100 1000; font-display: swap; src: url("/fonts/dm-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-mono-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-mono-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-mono-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-mono-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Blends of the brand roles for the site, mixed from tokens.css so a brand change reaches them; no new
     color is written here. */
  --site-coral-wash: color-mix(in srgb, var(--color-brand-coral) 26%, var(--color-surface));
  --site-nav-raised: color-mix(in srgb, var(--color-nav), var(--color-nav-active));
  /* Coral 500 is 4.3:1 on the raised navy card, under AA for small text; this lighter blend is about 6:1. The
     coral line itself stays brand coral (non-text, 3:1 is enough). */
  --site-coral-on-nav: color-mix(in srgb, var(--color-brand-coral) 70%, var(--color-surface));
  --site-glass: color-mix(in srgb, var(--color-canvas) 92%, transparent);
  --site-white: var(--color-surface);
  --site-max: 1200px;
  --site-gutter: clamp(16px, 4vw, 32px);
  --site-header: 68px;
}

/* Sample clinics in the product views: synthetic, the reference themes of plan 7.2. A clinic's color is the
   clinic's own data, not a MedLabIQ role, so it is written here rather than in brand/tokens.json. */
.clinic-teal { --clinic: var(--color-accent-fill); --on-clinic: var(--color-on-accent); }
.clinic-indigo { --clinic: #3B5BDB; --on-clinic: var(--site-white); }
.clinic-burgundy { --clinic: #8E3B5A; --on-clinic: var(--site-white); }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--color-canvas); color: var(--color-ink); font-family: var(--font-sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-wrap: pretty; }
h1, h2, h3, p, figure, ul, ol, dl, dd, blockquote { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: var(--color-accent-text); text-decoration: none; }
a:hover { color: var(--color-ink); }
::selection { background: var(--color-accent-selection); }
:focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: 3px; border-radius: 4px; }
.on-nav :focus-visible { outline-color: var(--color-on-nav-accent); }
[id] { scroll-margin-top: calc(var(--site-header) + 16px); }
.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; }
.mono { font-family: var(--font-mono); }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 16px; border-radius: var(--radius-md); background: var(--color-ink); color: var(--site-white); font-weight: 600; }
.skip-link:focus { top: 12px; color: var(--site-white); }

.wrap { max-width: var(--site-max); margin-inline: auto; padding-inline: var(--site-gutter); }

/* Header: the lockup leads (plan 9), the reversed lockup on navy. */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--site-glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--color-default); }
.site-header > .wrap { min-height: var(--site-header); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand-link { display: inline-flex; flex: 0 0 auto; padding: 6px 0; }
.brand-link img { height: 28px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 8px 28px; }
.nav-link { font-size: 15px; color: var(--color-muted); padding: 10px 0; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--color-ink); }
.nav-link[aria-current="page"] { font-weight: 600; box-shadow: inset 0 -2px 0 var(--color-accent-fill); }
.menu-button { display: none; width: 44px; height: 44px; padding: 0; align-items: center; justify-content: center; border: 1px solid var(--color-strong); border-radius: var(--radius-md); background: var(--color-surface); color: var(--color-ink); cursor: pointer; }
.menu-button .icon-close { display: none; }
.menu-button[aria-expanded="true"] .icon-open { display: none; }
.menu-button[aria-expanded="true"] .icon-close { display: block; }

.site-header.is-navy { background: var(--color-nav); border-bottom-color: var(--color-nav-line); -webkit-backdrop-filter: none; backdrop-filter: none; }
.is-navy .nav-link { color: var(--color-nav-text); }
.is-navy .nav-link:hover, .is-navy .nav-link[aria-current="page"] { color: var(--site-white); }
.is-navy .nav-link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--color-on-nav-accent); }
.is-navy .menu-button { background: var(--site-nav-raised); border-color: var(--color-nav-line); color: var(--site-white); }

/* Phone and small tablet: a Menu button opens the navigation as a panel under the header. Without
   JavaScript (no .js on <html>) the links simply wrap under the logo, so nothing is ever unreachable. */
@media (max-width: 860px) {
  .js .menu-button { display: inline-flex; }
  .no-js .site-header > .wrap { flex-wrap: wrap; padding-block: 8px; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--site-gutter) 20px; background: var(--color-surface); border-bottom: 1px solid var(--color-default); box-shadow: var(--shadow-e2); }
  .js .site-nav[data-open] { display: flex; }
  .js .site-nav .nav-link { display: flex; align-items: center; min-height: 52px; font-size: 17px; color: var(--color-ink); border-bottom: 1px solid var(--color-default); }
  .js .site-nav .nav-link[aria-current="page"] { box-shadow: none; color: var(--color-accent-text); }
  .js .site-nav .btn { margin-top: 16px; width: 100%; height: 52px; font-size: 17px; }
  .js .is-navy .site-nav { background: var(--color-nav); border-bottom-color: var(--color-nav-line); }
  .js .is-navy .site-nav .nav-link { color: var(--site-white); border-bottom-color: var(--color-nav-line); }
  .js .is-navy .site-nav .nav-link[aria-current="page"] { color: var(--color-on-nav-accent); }
}

/* Buttons. One filled teal button leads each view; the header's is navy so the hero's stays the one. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 26px; border-radius: var(--radius-md); border: 1px solid transparent; font: 500 17px/1.2 var(--font-sans); text-align: center; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--color-accent-fill); color: var(--color-on-accent); }
.btn-primary:hover { background: var(--color-accent-text); color: var(--color-on-accent); }
.btn-secondary { background: var(--color-surface); border-color: var(--color-strong); color: var(--color-ink); }
.btn-secondary:hover { border-color: var(--color-ink); color: var(--color-ink); }
.btn-navy { background: var(--color-nav); color: var(--site-white); }
.btn-navy:hover { background: var(--color-accent-fill); color: var(--site-white); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 15px; }
.btn-ghost-nav { border-color: var(--color-nav-line); color: var(--site-white); }
.btn-ghost-nav:hover { border-color: var(--color-on-nav-accent); color: var(--site-white); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.arrow-link svg { flex: 0 0 auto; transition: transform .15s ease; }
.arrow-link:hover svg { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .arrow-link svg { transition: none; } }

/* Section scaffolding */
.section { padding-block: clamp(56px, 8vw, 96px); }
.band-white { background: var(--color-surface); border-block: 1px solid var(--color-default); }
.band-navy { background: var(--color-nav); color: var(--site-white); }
.eyebrow { font: 500 12px/16px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--color-subtle); }
.eyebrow-coral { color: var(--color-brand-coral-text); }
.band-navy .eyebrow { color: var(--color-on-nav-link); }
.h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 600; }
.lead { font-size: 18px; line-height: 1.6; color: var(--color-muted); }
.band-navy .lead { color: var(--color-nav-text); }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head.flush { margin-bottom: 0; }
.split-center { align-items: center; }
@media (min-width: 960px) { .section-head.stick { position: sticky; top: calc(var(--site-header) + 32px); align-self: start; } }
.split { display: grid; gap: clamp(36px, 5vw, 64px); }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.card { background: var(--color-surface); border: 1px solid var(--color-default); border-radius: var(--radius-xl); }
.card-title { font-size: 21px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.card-body { font-size: 16px; line-height: 1.6; color: var(--color-muted); }

/* Hero */
.hero { display: grid; gap: clamp(40px, 5vw, 64px); align-items: center; padding-block: clamp(40px, 7vw, 88px) clamp(48px, 6vw, 80px); }
@media (min-width: 1024px) { .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); } }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--color-accent-tint-line); background: var(--color-accent-tint); font: 500 12px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--color-accent-text); }
.chip-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--color-brand-coral); }
.display { font-size: clamp(36px, 5.2vw, var(--text-display)); line-height: 1.05; letter-spacing: -0.035em; font-weight: 600; }
/* The coral highlight (plan 9): a highlighter stroke under the phrase, MedLabIQ's voice on its own site. */
.highlight { background: linear-gradient(transparent 66%, var(--site-coral-wash) 66%); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-inline: .04em; }
.hero-lead { font-size: 19px; line-height: 1.6; color: var(--color-muted); max-width: 540px; }
.stats { display: flex; flex-wrap: wrap; gap: 16px 32px; padding-top: 24px; border-top: 1px solid var(--color-default); }
.stat-value { display: block; font: 400 26px/1.2 var(--font-mono); letter-spacing: -0.02em; }
.stat-label { display: block; font-size: 14px; color: var(--color-subtle); margin-top: 4px; }

/* Product views. Every number, name and date in them is synthetic (CLAUDE.md compliance check). */
.hero-visual { position: relative; padding-bottom: 96px; }
/* The patient's phone overlaps the window's lower right corner; the legend and the summary stop short of it. */
@media (min-width: 641px) { .hero-visual .legend, .hero-visual .summary-box { margin-right: 168px; } }
.window { display: flex; background: var(--color-surface); border: 1px solid var(--color-default); border-radius: var(--radius-xl); box-shadow: 0 24px 64px -28px rgba(14, 36, 48, .35), var(--shadow-card); overflow: hidden; }
.window-rail { flex: 0 0 56px; background: var(--color-nav); display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 16px 0; }
.window-rail img { width: 26px; height: 26px; }
.rail-icon { width: 18px; height: 18px; color: var(--color-nav-icon); }
.rail-icon.is-on { color: var(--color-on-nav-accent); }
.rail-active { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-md); background: var(--color-nav-active); }
.window-main { flex: 1 1 auto; min-width: 0; padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 14px; }
.window-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.window-title { font-size: 16px; font-weight: 600; line-height: 1.35; }
.window-sub { font: 400 12px/1.4 var(--font-mono); letter-spacing: .04em; color: var(--color-subtle); margin-top: 3px; }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px 0 6px; border-radius: var(--radius-sm); font: 600 12px/1 var(--font-sans); white-space: nowrap; flex: 0 0 auto; }
.pill svg { width: 12px; height: 12px; flex: 0 0 auto; }
.pill-success { background: var(--color-success-bg); color: var(--color-success); }
.pill-warning { background: var(--color-warning-bg); color: var(--color-warning); }
.summary-box { padding: 12px 14px; border-radius: var(--radius-lg); background: var(--color-canvas); display: flex; flex-direction: column; gap: 4px; }
.summary-label { font: 500 11px/16px var(--font-mono); letter-spacing: .08em; color: var(--color-subtle); }
.summary-text { font-size: 14px; line-height: 1.55; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font: 400 12px/16px var(--font-mono); color: var(--color-subtle); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 12px; height: 12px; border-radius: 3px; flex: 0 0 auto; }
.swatch-range { background: var(--color-range-band); border: 1px solid var(--color-strong); }
.swatch-optimal { background: var(--color-optimal-band); }

/* Charts, drawn to plan section 5 and the Data-Viz board: the lab range in grey, the clinic's optimal range in
   green, in-range points as dots in the line color with a white ring, out-of-range points as amber triangles
   pointing the way they are out with the value in amber, labels in Plex Mono at 11px or more. The x positions
   are percentages and the SVG has no viewBox, so the labels keep their size at any width. */
.chart { width: 100%; overflow: visible; }
.c-band { fill: var(--color-range-band); }
.c-opt { fill: var(--color-optimal-band); }
.c-line { stroke: var(--line, var(--color-chart-line)); stroke-width: 2.5; stroke-linecap: round; fill: none; }
.c-dot { fill: var(--line, var(--color-chart-line)); stroke: var(--color-surface); stroke-width: 1.8; }
.c-flag { fill: var(--color-warning); stroke: var(--color-surface); stroke-width: 1.2; }
.c-axis { stroke: var(--color-strong); stroke-width: 1; }
.c-label { font-family: var(--font-mono); font-size: 11.5px; fill: var(--color-muted); }
.c-value { font-family: var(--font-mono); font-size: 12px; fill: var(--color-ink); }
.c-value-out { fill: var(--color-warning); font-weight: 500; }

/* The patient phone: the clinic's brand, with MedLabIQ only as "Powered by" in the footer (plan section 1). */
.phone { width: 186px; border: 6px solid var(--color-ink); border-radius: 28px; background: var(--color-canvas); overflow: hidden; box-shadow: 0 18px 40px -12px rgba(14, 26, 33, .35); --line: var(--clinic); }
.hero-phone { position: absolute; right: -10px; bottom: 0; }
.phone-head { height: 40px; display: flex; align-items: center; gap: 7px; padding: 0 10px; background: var(--color-surface); border-bottom: 1px solid var(--color-default); }
.phone-tile { width: 20px; height: 20px; flex: 0 0 auto; border-radius: 6px; display: grid; place-items: center; background: var(--clinic); color: var(--on-clinic); font-size: 10px; font-weight: 700; }
.phone-name { font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone-body { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.phone-h { font-size: 12.5px; font-weight: 600; line-height: 1.25; }
.phone-date { font: 400 9px/1.3 var(--font-mono); color: var(--color-subtle); }
.phone-card { background: var(--color-surface); border: 1px solid var(--color-default); border-radius: 9px; padding: 8px; display: flex; flex-direction: column; gap: 5px; }
.phone-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 10px; font-weight: 600; }
.phone-pill { display: inline-flex; align-items: center; gap: 3px; height: 16px; padding: 0 5px; border-radius: 4px; font-size: 8.5px; font-weight: 600; white-space: nowrap; }
.phone-pill svg { width: 8px; height: 8px; }
.phone-pill.in { background: var(--color-success-bg); color: var(--color-success); }
.phone-pill.out { background: var(--color-warning-bg); color: var(--color-warning); }
.phone-spark { width: 100%; height: auto; }
.phone-btn { height: 28px; border-radius: 7px; display: grid; place-items: center; background: var(--clinic); color: var(--on-clinic); font-size: 11px; font-weight: 600; }
.phone-foot { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 8.5px; color: var(--color-subtle); padding-top: 2px; }
.phone-foot img { width: 10px; height: 10px; }

/* Works with */
.works { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px; padding-block: 22px; }
.works-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 40px; }
.works-name { font-size: 17px; font-weight: 600; color: var(--color-muted); }

/* The manual reality */
.pain-list { display: flex; flex-direction: column; }
.pain { display: flex; gap: 20px; padding: 24px 0; border-top: 1px solid var(--color-default); }
.pain:last-child { border-bottom: 1px solid var(--color-default); }
.pain-n { font: 500 14px/1.5 var(--font-mono); color: var(--color-brand-coral-text); padding-top: 2px; flex: 0 0 auto; }
.pain-title { font-size: 20px; font-weight: 600; margin-bottom: 6px; }

/* How it works */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.step { background: var(--color-surface); border: 1px solid var(--color-default); border-radius: var(--radius-xl); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.band-white .step { background: var(--color-canvas); }
.step-n { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--color-nav); color: var(--site-white); font: 400 14px/1 var(--font-mono); }
.step-tag { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--color-default); font: 500 12px/1.4 var(--font-mono); letter-spacing: .04em; color: var(--color-accent-text); }

/* Features */
.feature-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); }
.feature-big { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.feature-art { margin-top: 12px; }
.multiples { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 10px; border: 1px solid var(--color-default); border-radius: var(--radius-lg); background: var(--color-surface); }
.multiple-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; font-size: 14px; font-weight: 600; }
.multiple-value { display: inline-flex; align-items: center; gap: 8px; font: 400 13px/1 var(--font-mono); color: var(--color-ink); white-space: nowrap; }
.multiple + .multiple { border-top: 1px solid var(--color-default); padding-top: 10px; }
.doc-well { flex: 1 1 auto; min-height: 260px; border-radius: var(--radius-lg); background: var(--color-sunken); display: grid; place-items: center; padding: 24px 18px; }
.doc { width: min(300px, 100%); background: var(--color-surface); border-radius: 4px; box-shadow: var(--shadow-e2); padding: 16px 18px 12px; display: flex; flex-direction: column; gap: 9px; --line: var(--clinic); }
.doc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 8px; border-bottom: 2.5px solid var(--clinic); }
.doc-clinic { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; }
.doc-clinic .phone-tile { width: 16px; height: 16px; border-radius: 4px; font-size: 8px; }
.doc-tag { font: 500 8px/1 var(--font-mono); letter-spacing: .1em; color: var(--color-muted); }
.doc-title { font-size: 13px; font-weight: 600; }
.doc-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px; border-radius: 3px; background: var(--color-position-track); }
.doc-strip span { font: 500 6.5px/1.3 var(--font-mono); letter-spacing: .06em; color: var(--color-subtle); }
.doc-line { height: 5px; border-radius: 2px; background: var(--color-sunken); }
.doc-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-top: 6px; border-top: 1px solid var(--color-default); font-size: 7px; color: var(--color-subtle); }
.doc-foot span { display: inline-flex; align-items: center; gap: 4px; }
.doc-foot img { width: 8px; height: 8px; }
.feature-small-grid { display: grid; gap: 20px; margin-top: 20px; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.feature-small { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.icon-square { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--color-accent-tint); color: var(--color-accent-text); }
.icon-square svg { width: 20px; height: 20px; }
.feature-small .card-title { font-size: 17px; }
.feature-small .card-body { font-size: 15px; line-height: 1.55; }

/* White label */
.checks { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.checks li { display: flex; gap: 10px; font-size: 16px; line-height: 1.5; }
.checks svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 3px; color: var(--color-accent-fill); }
.phones { display: flex; justify-content: center; align-items: flex-start; gap: 16px; }
.phones .phone { width: 168px; flex: 0 0 auto; }
.phones .phone:nth-child(odd) { margin-top: 40px; }
/* Two columns from 960px leave the three phones less room until the page reaches its full width. */
@media (min-width: 960px) and (max-width: 1199px) { .phones .phone { zoom: .82; } }

/* Navy security band and the data path. The coral segment of the line is the de-identified data. */
.secure-list { display: flex; flex-direction: column; }
.secure-item { padding: 18px 0; border-top: 1px solid var(--color-nav-line); }
.secure-item:last-child { border-bottom: 1px solid var(--color-nav-line); }
.secure-item h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.secure-item p { font-size: 16px; line-height: 1.6; color: var(--color-nav-text); }
.band-navy .arrow-link { color: var(--color-on-nav-accent); }
.band-navy .arrow-link:hover { color: var(--site-white); }
.path-card { align-self: center; border: 1px solid var(--color-nav-line); border-radius: var(--radius-xl); padding: clamp(20px, 3vw, 32px); background: var(--site-nav-raised); }
.path-label { font: 500 11px/16px var(--font-mono); letter-spacing: .1em; color: var(--color-on-nav-link); margin-bottom: 20px; }
.path { display: flex; flex-direction: column; }
.path-node { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 16px; }
.path-dot { width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; border: 2px solid var(--color-on-nav-accent); background: var(--color-on-nav-accent); }
.path-dot.is-deid { border-color: var(--color-brand-coral); background: var(--color-nav); }
.path-node h3 { font-size: 17px; font-weight: 600; }
.path-node p { font-size: 15px; line-height: 1.55; color: var(--color-nav-text); margin-top: 2px; }
.path-link { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 16px; min-height: 56px; }
.path-line { justify-self: center; width: 2px; background: var(--color-nav-line); border-radius: 1px; margin-block: 6px; }
.path-line.is-deid { background: var(--color-brand-coral); }
.path-tag { align-self: center; font: 500 12px/1.4 var(--font-mono); letter-spacing: .04em; color: var(--color-on-nav-link); padding-block: 10px; }
.path-tag.is-deid { color: var(--site-coral-on-nav); }
.path-legend { margin-top: 20px; color: var(--site-coral-on-nav); }

/* Built for your practice */
.fit-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.fit { border-top: 2px solid var(--color-accent-fill); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.fit-value { font: 400 34px/1.1 var(--font-mono); letter-spacing: -0.02em; color: var(--color-accent-text); }
.fit h3 { font-size: 18px; font-weight: 600; }

/* Demo */
.demo { padding-bottom: clamp(56px, 8vw, 96px); }
.demo-card { position: relative; overflow: hidden; display: grid; gap: 40px; align-items: center; padding: clamp(24px, 5vw, 56px); border-radius: 20px; background: var(--color-surface); border: 1px solid var(--color-default); }
@media (min-width: 900px) { .demo-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.demo-copy { position: relative; display: flex; flex-direction: column; gap: 14px; }
.demo-motif { width: min(360px, 100%); height: auto; margin-top: 16px; }
.form { position: relative; display: flex; flex-direction: column; gap: 8px; }
.form label { font-size: 14px; font-weight: 500; }
.input { height: 52px; width: 100%; padding: 0 16px; border-radius: var(--radius-md); border: 1px solid var(--color-control); background: var(--color-surface); font: 400 16px var(--font-sans); color: var(--color-ink); margin-bottom: 8px; }
.input:hover { border-color: var(--color-ink); }
.input:focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: 1px; border-color: var(--color-focus-ring); border-radius: var(--radius-md); }
.form .btn { width: 100%; margin-top: 4px; }
.form-note { font-size: 14px; line-height: 1.5; color: var(--color-subtle); margin-top: 4px; }

/* Footer */
.site-footer { background: var(--color-ink); color: var(--color-nav-text); }
.site-footer .wrap { padding-block: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.site-footer img { height: 26px; width: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.footer-nav a { color: var(--color-nav-text); font-size: 14px; padding-block: 10px; }
.footer-nav a:hover { color: var(--site-white); }
.footer-nav a.is-accent { color: var(--color-on-nav-accent); }
.footer-legal { font: 400 12px/1.5 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--color-nav-icon); }

/* Security page */
.sec-hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 80px) clamp(96px, 10vw, 136px); }
.sec-hero .wrap { position: relative; display: flex; flex-direction: column; gap: 22px; }
.sec-hero .display { max-width: 820px; }
.sec-hero .hero-lead { color: var(--color-nav-text); font-size: 20px; max-width: 600px; }
.sec-motif { position: absolute; right: var(--site-gutter); top: 50%; transform: translateY(-58%); width: min(440px, 36%); pointer-events: none; }
@media (max-width: 1099px) { .sec-motif { display: none; } }
.lift { margin-top: clamp(-80px, -6vw, -48px); position: relative; }
.path-panel { padding: clamp(24px, 4vw, 44px); box-shadow: 0 24px 64px -28px rgba(14, 36, 48, .3); display: flex; flex-direction: column; gap: 28px; border-radius: 20px; }
.path-panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; }
.path-panel-head h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.02em; font-weight: 600; line-height: 1.2; }
.legend-coral { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1.4 var(--font-mono); letter-spacing: .06em; color: var(--color-brand-coral-text); }
.legend-coral::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--color-brand-coral); }
.flow { display: grid; gap: 28px 0; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: flow; }
.flow-step { display: flex; flex-direction: column; gap: 12px; padding-right: 18px; }
.flow-mark { display: flex; align-items: center; }
.flow-n { width: 36px; height: 36px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; font: 500 13px/1 var(--font-mono); border: 2px solid var(--color-accent-fill); background: var(--color-accent-tint); color: var(--color-accent-text); }
.flow-step.is-deid .flow-n { border-color: var(--color-brand-coral); background: var(--color-surface); color: var(--color-brand-coral-text); }
.flow-line { flex: 1 1 auto; height: 3px; margin-left: 8px; border-radius: 2px; background: var(--color-accent-fill); }
.flow-line.is-deid { background: var(--color-brand-coral); }
.flow-step:last-child .flow-line { visibility: hidden; }
.flow-step h3 { font-size: 18px; font-weight: 600; line-height: 1.3; }
.flow-step p { font-size: 15px; line-height: 1.55; color: var(--color-muted); }
.flow-step .flow-tag { margin-top: auto; font: 500 11.5px/1.4 var(--font-mono); letter-spacing: .04em; color: var(--color-accent-text); }
.flow-step.is-deid .flow-tag { color: var(--color-brand-coral-text); }
@media (max-width: 1023px) {
  .flow { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .flow-step { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 16px; row-gap: 6px; padding-right: 0; }
  .flow-mark { grid-row: 1 / span 4; flex-direction: column; align-items: center; }
  .flow-line { width: 3px; height: auto; flex: 1 1 auto; min-height: 24px; margin: 8px 0; }
  .flow-step > :not(.flow-mark) { grid-column: 2; }
  .flow-step { padding-bottom: 20px; }
  .flow-step:last-child { padding-bottom: 0; }
}
.never-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); align-content: start; }
.never { background: var(--color-surface); border: 1px solid var(--color-default); border-radius: var(--radius-lg); padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; }
.never svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; color: var(--color-control); }
.never strong { display: block; font-weight: 600; }
.never span { display: block; font-size: 14px; line-height: 1.45; color: var(--color-subtle); margin-top: 2px; }
.guard-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.guard { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.guard-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--color-nav); color: var(--color-on-nav-accent); }
.guard-icon svg { width: 20px; height: 20px; }
.guard .card-title { font-size: 18px; }
.guard .card-body { font-size: 15.5px; }
.faq { border-top: 1px solid var(--color-strong); }
.faq details { border-bottom: 1px solid var(--color-strong); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 0; font-size: 18px; font-weight: 600; line-height: 1.4; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 5px; color: var(--color-muted); transition: transform .15s ease; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { padding: 0 32px 22px 0; font-size: 16px; line-height: 1.6; color: var(--color-muted); }
@media (prefers-reduced-motion: reduce) { .faq summary svg { transition: none; } }
.closing .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 64px; }
.closing p { font-size: clamp(24px, 2.8vw, 32px); line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; max-width: 640px; }

/* Phone: every section stacks, CTAs go full width (plan 9). */
@media (max-width: 640px) {
  :root { --site-header: 60px; }
  .brand-link img { height: 26px; }
  .cta-row .btn, .closing .btn { flex: 1 1 100%; width: 100%; }
  .display { font-size: 36px; line-height: 1.08; }
  .hero-lead { font-size: 17px; }
  .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-top: 16px; }
  .stat-value { font-size: 18px; }
  .legend-coral { font-size: 11px; letter-spacing: .03em; }
  .stat-label { font-size: 13px; }
  .hero-visual { padding-bottom: 0; }
  .hero-phone { display: none; }
  .window-rail { display: none; }
  .window-main { padding: 16px; }
  .lead { font-size: 17px; }
  .feature-big, .step, .guard { padding: 20px; }
  .phones { gap: 10px; }
  .phones .phone { zoom: .62; }
  .phones .phone:nth-child(odd) { margin-top: 0; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
  .demo-motif { display: none; }
  .closing .wrap { padding-block: 48px; }
}

/* Coming soon (11/27/2026): the note in the demo section and the dialog the demo buttons open */
.soon { display: flex; flex-direction: column; gap: 12px; }
.soon-pill { align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--color-accent-fill); background: var(--color-accent-tint); border-radius: 999px; padding: 4px 12px; margin: 0; }
.soon a, .soon-dialog a { color: var(--color-accent-fill); font-weight: 600; }
.soon-dialog { max-width: min(440px, calc(100vw - 32px)); border: 1px solid var(--color-default); border-radius: 20px; padding: 28px; background: var(--color-surface); color: inherit; }
.soon-dialog::backdrop { background: rgba(10, 20, 30, .45); }
.soon-dialog .soon-pill { display: inline-block; margin-bottom: 12px; }
.soon-dialog h2 { margin: 0 0 8px; font-size: 22px; line-height: 1.25; }
.soon-dialog form { margin-top: 18px; }

/* The smart EHR home page (11/27/2026): a navy hero with the full clinic app, then the platform, what makes it
   smart, patients, security and the close. Every name and number in the product views is synthetic. */
.x-header .btn-primary { height: 40px; }
.x-hero { position: relative; overflow: hidden; background: var(--color-nav); color: var(--site-white); padding-top: clamp(48px, 8vw, 104px); }
.x-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--color-nav-line) 1px, transparent 1px), linear-gradient(90deg, var(--color-nav-line) 1px, transparent 1px); background-size: 48px 48px; opacity: .35; -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 70%); pointer-events: none; }
.x-hero-glow { position: absolute; left: 50%; top: -260px; width: 1100px; height: 700px; transform: translateX(-50%); background: radial-gradient(closest-side, color-mix(in srgb, var(--color-on-nav-accent) 28%, transparent), transparent); pointer-events: none; }
.x-hero-copy { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; max-width: 980px; }
.x-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--color-on-nav-accent) 45%, transparent); background: color-mix(in srgb, var(--color-on-nav-accent) 10%, transparent); font: 500 13px/1.2 var(--font-mono); letter-spacing: .04em; color: var(--color-on-nav-accent); }
.x-chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-brand-coral); box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-brand-coral) 25%, transparent); }
.x-display { font-size: clamp(40px, 6.6vw, 80px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 600; color: var(--site-white); }
.x-grad { background: linear-gradient(90deg, var(--color-on-nav-accent), color-mix(in srgb, var(--color-on-nav-accent) 55%, var(--site-white))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.x-lead { font-size: clamp(17px, 1.9vw, 20px); line-height: 1.6; color: var(--color-nav-text); max-width: 720px; }
.x-cta { justify-content: center; }
.x-for { font: 500 12px/1.4 var(--font-mono); letter-spacing: .06em; color: var(--color-on-nav-link); }

/* The app on stage */
.x-stage { position: relative; margin-top: clamp(40px, 6vw, 72px); }
.x-app { display: grid; grid-template-columns: 60px 230px minmax(0, 1fr) 260px; background: var(--color-surface); color: var(--color-ink); border-radius: 18px 18px 0 0; overflow: hidden; box-shadow: 0 -2px 0 color-mix(in srgb, var(--color-on-nav-accent) 40%, transparent), 0 40px 120px -20px rgba(0, 0, 0, .6); min-height: 520px; }
.x-rail { background: var(--color-nav); border-right: 1px solid var(--color-nav-line); display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 16px 0; }
.x-rail img { width: 26px; height: 26px; }
.x-pane-label { font: 500 11px/16px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--color-subtle); margin-bottom: 10px; }
.x-queue { border-right: 1px solid var(--color-default); background: var(--color-canvas); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; }
.x-q { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: var(--radius-md); font-size: 13px; }
.x-q.is-on { background: var(--color-surface); box-shadow: var(--shadow-card); }
.x-q b, .x-pt b, .x-act b, .x-visit b { display: block; font-weight: 600; line-height: 1.3; }
.x-q i, .x-pt i, .x-act i, .x-visit i { display: block; font-style: normal; font-size: 12px; color: var(--color-subtle); line-height: 1.35; }
.x-q > span:nth-child(2) { flex: 1 1 auto; min-width: 0; }
.x-av { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--color-accent-tint); color: var(--color-accent-text); font: 700 11px/1 var(--font-display); }
.x-av-lg { width: 40px; height: 40px; font-size: 13px; }
.x-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent-fill); }
.x-dot.is-late { background: var(--color-danger); }
.x-dot.is-due { background: var(--color-warning); }
.x-chart { padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.x-pt { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.x-pt > span:nth-child(2) { flex: 1 1 auto; }
.x-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--color-default); overflow: hidden; }
.x-tabs span { font-size: 13px; font-weight: 500; color: var(--color-subtle); padding: 8px 10px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.x-tabs .is-on { color: var(--color-accent-text); border-color: var(--color-accent-fill); }
.x-plot { border: 1px solid var(--color-default); border-radius: var(--radius-lg); padding: 14px 16px 12px; }
.x-plot-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.x-plot-head span { font: 400 12px var(--font-mono); color: var(--color-subtle); }
.x-dot-b { fill: var(--color-surface); stroke: var(--color-chart-line); stroke-width: 2.5; }
.x-sw { width: 10px; height: 10px; border-radius: 50%; background: var(--color-chart-line); }
.x-sw.is-b { background: var(--color-surface); border: 2px solid var(--color-chart-line); }
.x-review { border-radius: var(--radius-lg); background: var(--color-accent-tint); border: 1px solid var(--color-accent-tint-line); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.5; }
.x-review-label { display: inline-flex; align-items: center; gap: 6px; font: 500 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--color-accent-text); }
.x-review-label svg { width: 13px; height: 13px; }
.x-review-acts { display: flex; gap: 8px; }
.x-btn-s { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 7px; border: 1px solid var(--color-strong); background: var(--color-surface); font-size: 12px; font-weight: 600; }
.x-btn-s.is-pri { background: var(--color-accent-fill); border-color: var(--color-accent-fill); color: var(--color-on-accent); }
.x-side { border-left: 1px solid var(--color-default); background: var(--color-canvas); padding: 18px 14px; display: flex; flex-direction: column; gap: 8px; }
.x-act { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: var(--radius-md); background: var(--color-surface); border: 1px solid var(--color-default); font-size: 13px; }
.x-act-ic { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--color-accent-tint); color: var(--color-accent-text); }
.x-act-ic.is-warn { background: var(--color-danger-bg); color: var(--color-danger); }
.x-act-ic svg { width: 15px; height: 15px; }
.x-visit { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: var(--radius-md); background: var(--color-nav); color: var(--site-white); font-size: 13px; }
.x-visit > svg { width: 18px; height: 18px; color: var(--color-on-nav-accent); flex: 0 0 auto; }
.x-visit i { color: var(--color-nav-text); }
.x-visit > span:nth-child(2) { flex: 1 1 auto; }

/* Platform modules */
.x-mods { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.x-mod { background: var(--color-surface); border: 1px solid var(--color-default); border-radius: var(--radius-xl); padding: 22px; display: flex; flex-direction: column; gap: 10px; transition: border-color .15s ease, transform .15s ease; }
.x-mod:hover { border-color: var(--color-accent-tint-line); transform: translateY(-2px); }
.x-mod h3 { font-size: 17px; font-weight: 600; }
.x-mod p { font-size: 15px; line-height: 1.55; color: var(--color-muted); }
.x-replace { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr); gap: 24px; align-items: center; }
.x-cap { font: 500 12px/16px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--color-subtle); margin-bottom: 10px; }
.x-before ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.x-before li { border: 1px dashed var(--color-strong); border-radius: var(--radius-md); padding: 12px 14px; background: var(--color-surface); }
.x-before b { display: block; font-size: 15px; text-decoration: line-through; text-decoration-color: var(--color-brand-coral); text-decoration-thickness: 2px; }
.x-before span { display: block; font-size: 13px; color: var(--color-subtle); margin-top: 2px; }
.x-arrow { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--color-accent-fill); color: var(--color-on-accent); box-shadow: 0 10px 24px -6px color-mix(in srgb, var(--color-accent-fill) 60%, transparent); }
.x-arrow svg { width: 22px; height: 22px; }
.x-after { border-radius: var(--radius-xl); background: var(--color-nav); color: var(--site-white); padding: 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 24px 60px -24px rgba(14, 36, 48, .5); }
.x-after img { height: 28px; width: auto; }
.x-after p { font-size: 19px; line-height: 1.45; font-weight: 500; }

/* What makes it smart */
.x-smart { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.x-s { background: var(--color-canvas); border: 1px solid var(--color-default); border-radius: var(--radius-xl); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.x-s h3 { font-size: 18px; font-weight: 600; margin-top: 6px; }
.x-s > p { font-size: 15px; line-height: 1.55; color: var(--color-muted); }
.x-s-art { height: 150px; border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-default); display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; overflow: hidden; }
.x-doc { width: 64px; height: 84px; border-radius: 4px; background: var(--color-surface); border: 1px solid var(--color-strong); padding: 10px 8px; display: flex; flex-direction: column; gap: 7px; box-shadow: var(--shadow-e1); }
.x-doc span, .x-draft > span { height: 5px; border-radius: 2px; background: var(--color-sunken); }
.x-doc .is-short, .x-draft .is-short { width: 60%; }
.x-flow { color: var(--color-accent-fill); }
.x-flow svg { width: 20px; height: 20px; }
.x-vals { display: flex; flex-direction: column; gap: 5px; font-size: 12px; }
.x-vals p { display: flex; justify-content: space-between; gap: 14px; padding: 4px 8px; border-radius: 6px; background: var(--color-canvas); }
.x-vals b { font: 500 12px var(--font-mono); }
.x-vals .is-warn { color: var(--color-warning); }
.x-mini { width: 100%; height: auto; overflow: visible; }
.x-list { width: 100%; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.x-list p { white-space: nowrap; display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; background: var(--color-canvas); }
.x-list i { margin-left: auto; font-style: normal; font: 500 11px var(--font-mono); color: var(--color-subtle); }
.x-draft { width: 100%; border-radius: var(--radius-md); background: var(--color-accent-tint); border: 1px solid var(--color-accent-tint-line); padding: 12px; display: flex; flex-direction: column; gap: 7px; }
.x-draft > span { background: color-mix(in srgb, var(--color-accent-fill) 22%, var(--color-surface)); }

/* Close */
.x-close { padding-block: clamp(56px, 8vw, 96px); }
.x-close-card { position: relative; overflow: hidden; border-radius: 24px; background: var(--color-nav); color: var(--site-white); padding: clamp(28px, 5vw, 64px); display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .x-close-card { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.x-close-card .x-hero-glow { top: auto; bottom: -420px; left: 80%; }
.x-close-copy { position: relative; display: flex; flex-direction: column; gap: 14px; }
.x-close-card .lead { color: var(--color-nav-text); }
.x-soon { position: relative; background: var(--color-surface); color: var(--color-ink); border-radius: var(--radius-xl); padding: 24px; }
.x-soon .lead { color: var(--color-ink); }

@media (max-width: 1100px) {
  .x-app { grid-template-columns: 60px minmax(0, 1fr) 240px; }
  .x-queue { display: none; }
}
@media (max-width: 820px) {
  .x-app { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .x-rail, .x-side { display: none; }
  .x-chart { padding: 16px; }
  .x-replace { grid-template-columns: minmax(0, 1fr); }
  .x-arrow { justify-self: center; transform: rotate(90deg); }
}
@media (max-width: 640px) {
  .x-display { font-size: 40px; }
  .x-cta .btn { flex: 1 1 100%; }
  .x-pt .pill { display: none; }
}
@media (prefers-reduced-motion: reduce) { .x-mod { transition: none; } .x-mod:hover { transform: none; } }

/* Calm (11/30/2026): the same page, quieter. Light type at a larger size, more room between sections, soft tinted
   washes in place of hard bands, white cards with a wide soft shadow and no border, pill buttons, and one deep
   teal close. Every color is mixed from tokens.css. */
:root {
  --calm-warm: color-mix(in srgb, var(--color-canvas) 70%, var(--color-warning-bg));
  --calm-sage: color-mix(in srgb, var(--color-success-wash) 70%, var(--color-canvas));
  --calm-mist: color-mix(in srgb, var(--color-accent-tint) 80%, var(--color-canvas));
  --calm-shadow: 0 1px 2px rgba(14, 36, 48, .04), 0 22px 48px -24px rgba(14, 36, 48, .22);
  --calm-radius: 24px;
}
body { background: var(--calm-warm); }

/* Type: light and large, eyebrows in tracked sans instead of mono. */
.h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 300; }
.eyebrow, .x-cap { font: 600 12px/16px var(--font-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--color-accent-text); }
.band-navy .eyebrow { color: var(--color-on-nav-link); }
.lead { font-size: 18px; line-height: 1.65; }
.section-head { gap: 18px; margin-bottom: clamp(40px, 5vw, 64px); }
.card-title, .x-mod h3, .x-s h3, .fit h3 { font-weight: 500; }

/* Room, and washes that blend from one section into the next. */
.section { padding-block: clamp(72px, 10vw, 136px); }
.band-white { border-block: 0; background:
  radial-gradient(900px 520px at 88% 0%, var(--calm-mist), transparent 70%),
  radial-gradient(820px 520px at 0% 100%, var(--calm-sage), transparent 70%),
  var(--calm-warm); }
#platform { background: radial-gradient(1000px 600px at 100% 30%, var(--calm-sage), transparent 70%); }
#patients { background: radial-gradient(1000px 640px at 0% 40%, var(--calm-mist), transparent 70%); }

/* Pill buttons. */
.btn { border-radius: 999px; height: 50px; padding: 0 28px; font-weight: 600; font-size: 16px; }
.btn-sm { height: 40px; padding: 0 20px; font-size: 14px; }
.btn-secondary { background: var(--color-surface); border-color: transparent; box-shadow: var(--calm-shadow); }
.btn-secondary:hover { border-color: var(--color-accent-tint-line); }

/* Cards: white, round, a wide soft shadow, no border. */
.card, .x-mod, .step, .demo-card { border: 0; border-radius: var(--calm-radius); box-shadow: var(--calm-shadow); }
.x-mod { padding: 26px; gap: 12px; }
.x-mod:hover { border-color: transparent; transform: translateY(-3px); box-shadow: 0 1px 2px rgba(14, 36, 48, .04), 0 28px 56px -24px rgba(14, 36, 48, .28); }
.x-s { background: var(--color-surface); border: 0; border-radius: var(--calm-radius); box-shadow: var(--calm-shadow); padding: 22px; }
.x-s-art { border: 0; background: var(--calm-warm); border-radius: 18px; }
.icon-square { border-radius: 50%; }
.x-before li { border-style: solid; border-color: transparent; border-radius: 14px; box-shadow: var(--calm-shadow); }
.x-after { border-radius: var(--calm-radius); }

/* Hero: light, centered, the app floating on a soft wash. */
.x-hero { background: var(--calm-warm); color: var(--color-ink); padding-top: clamp(64px, 9vw, 120px); }
.x-hero::before { display: none; }
.x-hero-wash { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(760px 520px at 18% 8%, var(--calm-sage), transparent 70%),
  radial-gradient(820px 560px at 86% 18%, var(--calm-mist), transparent 70%); }
.x-hero-copy { gap: 26px; }
.x-chip { border: 0; background: var(--color-surface); box-shadow: var(--calm-shadow); font: 600 12px/1.2 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--color-accent-text); padding: 8px 16px; }
.x-display { color: var(--color-ink); font-weight: 300; font-size: clamp(44px, 7vw, 88px); letter-spacing: -0.045em; }
.x-grad { white-space: nowrap; background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--color-accent-text); font-weight: 400; }
.x-lead { color: var(--color-muted); }
.x-for { font: 600 12px/1.4 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--color-subtle); }
.x-stage { margin-top: clamp(48px, 7vw, 88px); }
.x-app { border-radius: 22px 22px 0 0; box-shadow: 0 0 0 1px rgba(14, 36, 48, .05), 0 40px 100px -30px rgba(14, 36, 48, .35); }
.x-review, .x-plot, .x-act { border-radius: 14px; }

/* Works with: quiet, on the page's own color. */
.x-hero + .band-white { background: var(--color-surface); }

/* Security: one deep, soft band instead of flat navy. */
.band-navy { background:
  radial-gradient(700px 500px at 82% 40%, color-mix(in srgb, var(--color-on-nav-accent) 18%, transparent), transparent 70%),
  linear-gradient(180deg, var(--color-nav), color-mix(in srgb, var(--color-nav) 82%, var(--color-accent-fill))); }
.band-navy .h2 { font-weight: 300; }
.path-card { border-radius: var(--calm-radius); border-color: color-mix(in srgb, var(--color-nav-line) 60%, transparent); background: color-mix(in srgb, var(--site-nav-raised) 70%, transparent); }

/* Built for your clinic: big light numbers. */
.fit { border-top: 1px solid var(--color-accent-tint-line); padding-top: 22px; }
.fit-value { font: 300 56px/1 var(--font-display); letter-spacing: -0.04em; }

/* The close: a full deep teal band with the copy centered. */
.x-close-card { border-radius: 32px; text-align: left; background:
  radial-gradient(600px 420px at 85% 10%, color-mix(in srgb, var(--color-on-nav-accent) 22%, transparent), transparent 70%),
  linear-gradient(135deg, color-mix(in srgb, var(--color-nav) 55%, var(--color-accent-fill)), color-mix(in srgb, var(--color-accent-fill) 70%, var(--color-success))); }
.x-close-card .x-hero-glow { display: none; }
.x-close-card .h2 { font-size: clamp(34px, 4.6vw, 60px); }
.x-close-card .lead { color: color-mix(in srgb, var(--site-white) 82%, transparent); }
.x-soon { border-radius: 20px; box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .35); }

/* Sections ease in as they reach the screen. Without JavaScript, or with reduced motion, they're simply there. */
.js .calm-in { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .calm-in.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .calm-in { opacity: 1; transform: none; transition: none; } }

@media (max-width: 640px) {
  .x-display { font-size: 44px; }
  .fit-value { font-size: 44px; }
}
.x-close-card .x-soon .lead { color: var(--color-ink); }

/* No strikethroughs or underlines, anywhere (11/30/2026). The replaced tools read as plain muted names, the
   active tab and nav link are marked by color and weight, and the highlighter stroke is off. */
.x-before b { text-decoration: none; color: var(--color-muted); font-weight: 500; }
.nav-link[aria-current="page"], .is-navy .nav-link[aria-current="page"] { box-shadow: none; }
.highlight { background: none; padding-inline: 0; }
.x-tabs { border-bottom: 0; gap: 4px; }
.x-tabs span { border-bottom: 0; margin-bottom: 0; border-radius: 999px; padding: 6px 12px; }
.x-tabs .is-on { background: var(--color-accent-tint); }

/* Phone: collapsed and consolidated (11/30/2026). Card lists become one swipeable row, the before list and the
   data path step aside for the point they make, and the 3 numbers sit in one row. */
@media (max-width: 640px) {
  .section { padding-block: 56px; }
  .section-head { margin-bottom: 28px; gap: 12px; }
  .h2 { font-size: 32px; }
  .lead { font-size: 16px; }
  .x-hero { padding-top: 48px; }
  .x-hero-copy { gap: 18px; }
  .x-lead { font-size: 16px; }
  .x-for { display: none; }
  .x-stage { margin-top: 36px; }
  .x-review, .x-plot-head span, .x-tabs span:nth-child(n+5) { display: none; }

  .works { gap: 8px 24px; padding-block: 18px; }
  .works-list { gap: 6px 20px; }
  .works-name { font-size: 15px; }

  /* One row you swipe, the next card peeking in from the edge. */
  .x-mods, .x-smart { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--site-gutter)); padding: 4px var(--site-gutter) 24px; scrollbar-width: none; }
  .x-mods::-webkit-scrollbar, .x-smart::-webkit-scrollbar { display: none; }
  .x-mods > *, .x-smart > * { flex: 0 0 78%; scroll-snap-align: start; }
  .x-mod { padding: 20px; }

  .x-replace { margin-top: 12px; display: block; }
  .x-before, .x-arrow { display: none; }
  .x-after { padding: 22px; }
  .x-after p { font-size: 17px; }

  .phones { gap: 6px; }

  .path-card { display: none; }
  .secure-item { padding: 14px 0; }
  .secure-item h3 { font-size: 16px; margin-bottom: 4px; }
  .secure-item p { font-size: 15px; }

  .fit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .fit { padding-top: 14px; gap: 4px; }
  .fit-value { font-size: 36px; }
  .fit h3 { font-size: 13px; line-height: 1.3; }
  .fit .card-body { display: none; }

  .x-close { padding-block: 48px; }
  .x-close-card { border-radius: 24px; gap: 20px; }
  .x-close-card .h2 { font-size: 32px; }
}

/* The app floats whole (11/30/2026): every corner round, a soft shadow under it, and the hero's wash running
   straight into the platform section with nothing between them. */
.x-hero { padding-bottom: clamp(64px, 9vw, 120px); }
.x-app { border-radius: 26px; box-shadow: 0 0 0 1px rgba(14, 36, 48, .05), 0 50px 120px -40px rgba(14, 36, 48, .38), 0 12px 30px -18px rgba(14, 36, 48, .18); }
.x-hero + .section { padding-top: clamp(24px, 4vw, 56px); }
@media (max-width: 640px) { .x-hero { padding-bottom: 40px; } .x-app { border-radius: 20px; } }
