/* Hallmark · checked: 2026-11-12 · genre: modern-minimal (inferred)
 * surface: absolute · floor: 0 FAIL · fixed: 20, 48, 50, 54, F24, 24b · structural: printed (3, 8, 58, F15)
 * built: the project · redesign: polish · v2.0.0 */
/* Hallmark · waive 38iii · two-colour heads, ink with the closing phrase in blue (.hl) · the owner asked to keep the Glow brand look on every head */
/* Hallmark · waive 2b · the footer wordmark keeps its blue fade · the owner found it unreadable as a solid tint */
/* Hallmark · waive 29 · frosted glass on the nav · the owner asked to keep the original glass effect */
/* Hallmark · waive 7b · pure white surfaces and text on blue · the Glow brand look the owner asked to keep */
/* Healyx home page. Look matched to "Healyx · Showcase site-html/Glow.dc.html" (the Glow design). */
:root {
  --bg: #f6f8fe;
  --ink: #0b1533;
  --ink-2: #2b3a5e;
  --muted: #4a5878;
  --faint: #7d8aa8;
  --line: #e3e9f7;
  --edge: #d6e0f7;
  --edge-strong: #cbd7f3;
  --edge-hover: #afc3f3;
  --blue: #2e62d9;
  --blue-dark: #1e4396;
  --blue-soft: #6e95f0;
  --blue-wash: #eef3fd;
  --blue-pale: #dce5fb;
  --white: #fff;
  --green: #0b5e43;
  --green-wash: #e7f6ef;
  --amber: #8a5300;
  --amber-wash: #fff3dc;
  --dot-red: #f97066;
  --dot-amber: #fdb022;
  --dot-green: #32d583;

  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --red: #b42318;
  --red-wash: #fef3f2;
  --orange: #c4560c;
  --grey-wash: #eef1f8;
  --violet: #6d3fc0;
  --violet-wash: #f3eefc;
  --stage-bg: radial-gradient(120% 90% at 50% 0%, #dce5fb, #eef3fd 62%);
  --float-shadow: 0 24px 50px -20px rgba(46, 98, 217, 0.45);

  --card-bg: linear-gradient(#fff, #f3f6fe);
  --card-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 20px 50px -24px rgba(46, 98, 217, 0.35);
  --blue-shadow: 0 0 0 1px rgba(46, 98, 217, 0.5), 0 30px 80px -20px rgba(46, 98, 217, 0.55);
  --r-card: 20px; /* one radius for every card and mockup frame */
  --btn-shadow: 0 10px 30px -10px rgba(46, 98, 217, 0.7);
  --btn-ghost-shadow: 0 10px 30px -10px rgba(46, 98, 217, 0.25);

  --container: 1360px;
  --gutter: 24px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --glow-a: rgba(110, 149, 240, 0.55);
  --glow-b: rgba(110, 149, 240, 0.18);
  --bg-clear: rgba(246, 248, 254, 0);
  --grid-line: rgba(46, 98, 217, 0.07);
  --white-75: rgba(255, 255, 255, 0.75);
  --white-50: rgba(255, 255, 255, 0.5);
  --soft-bg: #f3f6fd;
  --soft-edge: #dfe6f5;
  --soft-edge-hover: #cfdaf3;
  --soon-edge: #cfd9f1;
  --white-55: rgba(255, 255, 255, 0.55);
  --on-blue-20: rgba(255, 255, 255, 0.2);
  --error: #c4321f;
  --glow-foot: rgba(110, 149, 240, 0.5);
  --nav-bg: rgba(246, 248, 254, 0.7);
  --mask: #000;
  --wordmark-top: rgba(46, 98, 217, 0.3);
  --wordmark-end: rgba(46, 98, 217, 0);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; position: relative; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 600; overflow-wrap: break-word; text-wrap: balance; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 16px; top: -80px; z-index: 50; padding: 8px 16px; background: var(--ink); color: var(--white); border-radius: 8px; }
.skip:focus-visible { top: 16px; }
.ic { width: 16px; height: 16px; flex-shrink: 0; }
.ic--blue { color: var(--blue); }

/* Background glow and grid lines */
.glow { position: absolute; pointer-events: none; }
.glow--top { animation: breathe 6s ease-in-out infinite; top: -420px; left: 50%; width: 1300px; height: 1000px; translate: -50% 0; background: radial-gradient(closest-side, var(--glow-a), var(--glow-b) 55%, var(--bg-clear)); }
.lines { position: absolute; pointer-events: none; background: repeating-linear-gradient(90deg, var(--grid-line) 0 1px, transparent 1px 46px); }
.lines--top { inset: 0 0 auto; height: 900px; -webkit-mask-image: linear-gradient(var(--mask), transparent); mask-image: linear-gradient(var(--mask), transparent); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; padding: 0 18px; border: 1px solid var(--blue); border-radius: 10px; background: var(--blue); color: var(--white); font: 600 14px/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer; box-shadow: var(--btn-shadow); transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.12s var(--ease); }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn--sm { min-height: 36px; padding: 0 14px; border-radius: 9px; font-size: 13px; }
.btn--lg { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn--ghost { background: var(--white-50); color: var(--ink); border-color: var(--edge-strong); box-shadow: var(--btn-ghost-shadow); }
.btn--ghost:hover { background: var(--white); border-color: var(--edge-hover); }
.btn--soft { background: var(--soft-bg); color: var(--ink); border-color: var(--soft-edge); box-shadow: none; }
.btn--soft:hover { background: var(--blue-wash); border-color: var(--soft-edge-hover); }
.btn--white { background: var(--white); color: var(--blue); border-color: var(--white); box-shadow: none; }
.btn--white:hover { background: var(--blue-wash); border-color: var(--blue-wash); }
.btn--block { width: 100%; }
@keyframes breathe { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .card { transition: none; } .btn:active, a.card:hover { transform: none; } .glow--top { animation: none; } }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: var(--nav-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav__row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; min-height: 84px; }
.nav__row > .btn { justify-self: end; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.logo b { font-weight: inherit; color: var(--blue); }
.logo__img { width: auto; height: 28px; }
.nav__links { display: flex; gap: 32px; }
.nav__links a { font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap; transition: color 0.2s var(--ease); }
.nav__links a:hover { color: var(--blue); }
.nav__toggle { display: none; justify-self: end; width: 36px; height: 36px; padding: 0; border: 1px solid var(--edge-strong); border-radius: 9px; background: var(--white-50); color: var(--ink); cursor: pointer; }
.nav__toggle span { display: block; width: 16px; height: 2px; margin: 0 auto; border-radius: 2px; background: currentColor; transition: transform 0.2s var(--ease); }
.nav__toggle span + span { margin-top: 4px; }
.nav__toggle:hover { border-color: var(--edge-hover); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .nav__toggle span { transition: none; } }

.nav--float { top: 12px; margin-top: 12px; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav--float .nav__row { width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--container) - 2 * var(--gutter)); min-height: 64px; padding-inline: 20px 12px; border: 1px solid var(--edge); border-radius: 16px; background: var(--nav-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

/* Hero */
.hero { position: relative; padding: 64px 0 0; }
.hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 16px; border: 1px solid var(--edge); border-radius: 999px; background: var(--white-75); font-size: 13px; font-weight: 500; color: var(--ink-2); }
.hero h1 { margin-top: 28px; max-width: 20ch; text-wrap: balance; font-size: clamp(40px, 5.6vw, 76px); font-weight: 600; line-height: 1.04; letter-spacing: -0.03em; }
.hl { color: var(--blue); }
.lead { margin-top: 24px; max-width: 58ch; font-size: 18px; line-height: 1.55; color: var(--muted); text-wrap: balance; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.actions--left { justify-content: flex-start; margin-top: 24px; }


.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 64px; margin-top: 56px; }
.logos li { font-size: 16px; font-weight: 600; color: var(--faint); }

/* Sections */
.sec { position: relative; padding: 112px 0 0; }
.head { max-width: 760px; }
.head--center { margin: 0 auto 56px; text-align: center; }
h2 { margin-top: 0; font-size: clamp(32px, 4vw, 52px); line-height: 1.1; letter-spacing: -0.025em; }
.head--center h2 { margin-inline: auto; max-width: 18ch; }
.sub { margin-top: 20px; font-size: 17px; line-height: 1.55; color: var(--muted); }
.head--center .sub { margin-inline: auto; max-width: 56ch; }

/* Platform cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; min-height: 280px; padding: 28px; border: 1px solid var(--edge); border-radius: var(--r-card); background: var(--card-bg); text-decoration: none; transition: transform 0.25s var(--ease), border-color 0.25s var(--ease); }
.card > * { position: relative; z-index: 1; }
a.card:hover { transform: translateY(-4px); border-color: var(--edge-hover); }
.card h3 { font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; }
.card p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.chip { display: flex; align-items: center; gap: 12px; margin-top: auto; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); font-size: 13px; color: var(--ink-2); }
.chip > span:nth-child(2) { flex: 1; min-width: 0; }
.chip__ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--blue-wash); color: var(--blue); flex-shrink: 0; }
.tag { flex-shrink: 0; padding: 3px 8px; border-radius: 6px; background: var(--blue-wash); color: var(--blue-dark); font-size: 12px; font-weight: 600; white-space: nowrap; }
.tag--green { background: var(--green-wash); color: var(--green); }
.tag--amber { background: var(--amber-wash); color: var(--amber); }
.card--soon { border-style: dashed; border-color: var(--soon-edge); background: var(--white-55); box-shadow: none; }

/* Split sections */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.split--flip { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; }
.split__text h2 { max-width: 14ch; }
.split__text .sub { max-width: 42ch; }
.ticks { margin-top: 32px; display: grid; gap: 16px; }
.ticks li { display: flex; gap: 12px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.ticks .ic { width: 20px; height: 20px; margin-top: 2px; color: var(--blue); }
.ticks b { font-weight: 600; color: var(--ink); }

/* Front desk: three small cards under the screenshot */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 28px auto 0; }
.mini, .step { padding: 28px; border: 1px solid var(--edge); border-radius: var(--r-card); background: var(--white); }
.num { display: block; margin-bottom: 12px; font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--blue); font-variant-numeric: tabular-nums; }
.mini h3, .step h3 { font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; }
.mini p, .step p { margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* Segmented controls (tabs, billing) */
.switch { display: flex; flex-direction: column; align-items: center; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--edge); border-radius: 14px; background: var(--white); }
.seg button { min-height: 36px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); font: 600 14px/1 var(--font); white-space: nowrap; cursor: pointer; transition: background-color 0.2s var(--ease), color 0.2s var(--ease); }
.seg button:hover { color: var(--blue); }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: var(--blue); color: var(--white); }
.switch .seg { margin-bottom: 20px; }
.seg--bill { margin-top: 20px; }
html:not(.js) .switch .seg, html:not(.js) .seg--bill { display: none; }
html:not(.js) .panel + .panel { margin-top: 56px; }
.panel { width: 100%; }
.panel__line { margin-bottom: 24px; text-align: center; font-size: 15px; color: var(--muted); }

/* Live by Monday */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step { transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.step.is-on { border-color: var(--blue); background: var(--blue); box-shadow: var(--blue-shadow); }
.step.is-on .num, .step.is-on h3 { color: var(--white); }
.step.is-on p { color: var(--blue-pale); }

/* Pricing */
.tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: center; }
.tier { display: flex; flex-direction: column; gap: 16px; padding: 32px 28px; border: 1px solid var(--edge); border-radius: var(--r-card); background: var(--white); }
.tier__h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tier h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.tier__for { font-size: 14px; line-height: 1.6; color: var(--muted); }
.price { display: flex; align-items: baseline; gap: 8px; }
.price b { font-size: 36px; font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: -0.03em; }
.price > span { font-size: 13px; color: var(--muted); }
.tier__inc { margin-top: 4px; font-size: 13px; color: var(--muted); }
.incl { display: grid; gap: 12px; }
.incl li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink); }
.incl .ic { color: var(--blue); }
.tier--main { padding-block: 40px; border-color: var(--blue); background: var(--blue); box-shadow: var(--blue-shadow); }
.tier--main h3, .tier--main .price b, .tier--main .incl li { color: var(--white); }
.tier--main .tier__for, .tier--main .tier__inc, .tier--main .price > span { color: var(--blue-pale); }
.tier--main .incl .ic { color: var(--white); }
.tier--main h3 { font-size: 24px; }
.price-note { margin-top: 28px; text-align: center; font-size: 14px; color: var(--muted); }
.every { margin-top: 56px; padding: 32px; border: 1px solid var(--edge); border-radius: var(--r-card); background: var(--white); }
.every__h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.every__h h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.every__h p { font-size: 14px; color: var(--muted); }
.groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 28px; }
.group h4 { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 600; color: var(--ink); }
.group .incl li { align-items: flex-start; }
.group .incl .ic { flex-shrink: 0; margin-top: 3px; }
.cta-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px 32px; margin-top: 20px; padding: 32px; border-radius: var(--r-card); background: var(--blue); box-shadow: var(--blue-shadow); color: var(--white); }
.cta-band h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.cta-band p { margin-top: 6px; color: var(--blue-pale); }
.cta-band ul { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px; font-size: 14px; }
.cta-band li { display: flex; align-items: center; gap: 8px; }
.cta-band__text .btn { margin-top: 24px; }
.cta-band .cta-band__mail { margin-top: 12px; font-size: 14px; }
.cta-band__mail a { color: var(--white); font-weight: 600; }
.contact { display: grid; gap: 16px; margin-top: 28px; }
.contact li { display: flex; align-items: center; gap: 14px; }
.contact .chip__ic { width: 40px; height: 40px; border-radius: 10px; }
.contact li > span:last-child { display: grid; gap: 2px; }
.contact small { font-size: 13px; color: var(--muted); }
.contact a { font-size: 17px; font-weight: 600; color: var(--ink); text-decoration: none; }
.contact a:hover { color: var(--blue); }
.wa { display: flex; align-items: center; gap: 18px; padding: 14px 24px 14px 14px; border-radius: 14px; background: var(--white); color: var(--ink); text-decoration: none; transition: transform 0.2s var(--ease); }
.wa:hover { transform: translateY(-2px); }
.wa img { display: block; width: 100px; height: 100px; image-rendering: pixelated; }
.wa > span:last-child { display: grid; gap: 2px; }
.wa small { font-size: 13px; color: var(--muted); }
.wa b { font-size: 18px; font-weight: 600; }
.btn--wa { display: none; background: transparent; color: var(--white); border-color: var(--white-50); box-shadow: none; }
.btn--wa:hover { background: var(--on-blue-20); border-color: var(--white); }
.badge { padding: 4px 12px; border-radius: 999px; background: var(--on-blue-20); font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--white); }

/* Demo form */
.demo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 32px; border: 1px solid var(--edge); border-radius: var(--r-card); background: var(--card-bg); }
.field { display: grid; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
/* the star follows the required attribute; the input already announces it */
.field:has(:required) label::after { content: " *"; color: var(--red); }
.field input, .field select { width: 100%; min-height: 46px; padding: 0 16px; border: 1px solid var(--edge-strong); border-radius: 10px; background: var(--white); color: var(--ink); font: 400 15px var(--font); outline: 2px solid transparent; outline-offset: -2px; }
.field input:hover, .field select:hover { border-color: var(--faint); }
.field input:focus-visible, .field select:focus-visible { outline-color: var(--blue); }
.field input[aria-invalid] { border-color: var(--error); }
/* native arrow can't be inset, so draw our own chevron 16px in */
.field select { appearance: none; -webkit-appearance: none; padding-right: 48px; cursor: pointer; }
.field:has(select) { position: relative; }
.field:has(select)::after { content: ""; position: absolute; right: 16px; bottom: 15px; width: 16px; height: 16px; background: var(--ink-2); pointer-events: none; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='currentColor' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='currentColor' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.demo__foot { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.demo__help { min-height: 1lh; font-size: 13px; color: var(--muted); }

/* Footer */
.foot { position: relative; margin-top: 160px; overflow: hidden; }
.foot__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 6fr) repeat(3, minmax(0, 2fr)); gap: 56px; }
.foot__cta h2 { margin-top: 28px; max-width: 13ch; font-size: clamp(32px, 3.2vw, 40px); line-height: 1.15; }
.foot__cta > p { margin-top: 20px; max-width: 46ch; font-size: 15px; color: var(--muted); }
.foot__col { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.foot__col p { margin-bottom: 2px; font-size: 13px; font-weight: 600; color: var(--faint); }
.foot__col a { font-size: 15px; color: var(--ink-2); text-decoration: none; }
.foot__col a:hover { color: var(--blue); }
.foot__big { position: relative; height: clamp(160px, 24vw, 330px); margin-top: 48px; display: flex; align-items: flex-end; justify-content: center; }
.glow--foot { left: 50%; bottom: -260px; width: 1300px; height: 640px; translate: -50% 0; background: radial-gradient(closest-side, var(--glow-foot), var(--bg-clear)); }
.lines--foot { inset: 0; -webkit-mask-image: linear-gradient(transparent, var(--mask)); mask-image: linear-gradient(transparent, var(--mask)); }
.foot__big span { position: relative; font-size: clamp(110px, 23vw, 331px); font-weight: 600; line-height: 0.76; letter-spacing: -0.04em; background: linear-gradient(var(--wordmark-top), var(--wordmark-end) 88%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.foot__note { position: relative; margin-top: 48px; padding-block: 20px 28px; border-top: 1px solid var(--edge); font-size: 12px; color: var(--faint); }

/* Mockups: parts of the app, coded in place of screenshots */
.stage { position: relative; margin: 0; padding: clamp(20px, 4vw, 48px); border: 1px solid var(--edge); border-radius: var(--r-card); background: var(--stage-bg); text-align: left; }
.stage--hero { width: 100%; margin-top: 80px; }
#desk .stage, .panel .stage { margin-inline: auto; }
.stage__in { position: relative; }
.frag { overflow: hidden; border: 1px solid var(--edge); border-radius: 18px; background: var(--white); box-shadow: var(--card-shadow); font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.frag b { color: var(--ink); font-weight: 600; }
.frag small, .float small { display: block; font-size: 12px; color: var(--muted); }
.mono, .tok { font-family: var(--mono); font-weight: 600; color: var(--ink); }
.float { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--edge); border-radius: 14px; background: var(--white); box-shadow: var(--float-shadow); font-size: 13px; line-height: 1.35; color: var(--ink-2); }
.float b { color: var(--ink); font-weight: 600; }
.float--tl { top: -28px; left: -20px; }
.stage--hero .float--tl { left: auto; right: 24%; }
.float--br { right: -20px; bottom: -28px; }
.float--bl { bottom: -28px; left: 12%; flex-direction: column; align-items: flex-start; gap: 8px; }
.float .mbtn { margin-top: 4px; }
.mbtn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--blue); border-radius: 9px; background: var(--blue); color: var(--white); font-size: 13px; font-weight: 600; white-space: nowrap; }
.mbtn--line { border-color: var(--line); background: var(--white); color: var(--ink); }
.tag--white { background: var(--white); color: var(--blue); }
.tag--red { background: var(--red-wash); color: var(--red); }
.tag--solid { background: var(--blue); color: var(--white); }
.tag--grey { background: var(--grey-wash); color: var(--ink-2); }
.t-red { color: var(--red); } .t-blue { color: var(--blue); } .t-amber { color: var(--amber); } .t-green { color: var(--green); }

/* waiting-room TV */
.tv__top { display: flex; align-items: baseline; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.tv__top b { font-size: 15px; }
.tv__top span { margin-left: auto; color: var(--muted); }
.tv__clock { font-family: var(--mono); font-size: 20px; }
.tv__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 16px; background: var(--bg); }
.doc { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.doc__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.doc__head b { display: block; font-size: 15px; }
.room { padding: 4px 12px; border-radius: 8px; background: var(--blue-wash); color: var(--blue); font-weight: 600; white-space: nowrap; }
.doc__label { font-size: 12px; font-weight: 600; color: var(--muted); }
.doc__now { display: flex; align-items: flex-end; gap: 16px; }
.tok--xl { font-size: 64px; line-height: 0.85; letter-spacing: -0.04em; }
.toks { display: flex; gap: 8px; margin-top: 8px; }
.toks i { padding: 3px 8px; border: 1px solid var(--line); border-radius: 7px; font-family: var(--mono); font-style: normal; font-weight: 600; color: var(--ink); }
.doc__break { font-size: 26px; font-weight: 600; line-height: 1.1; color: var(--ink); }
.doc__break span { display: block; margin-top: 8px; font-size: 14px; font-weight: 400; color: var(--muted); }
.doc__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; }
.doc--call { border-color: var(--blue); background: var(--blue); color: var(--white); }
.doc--call .doc__head b, .doc--call .doc__label, .doc--call .tok--xl, .doc--call .toks i { color: var(--white); }
.doc--call .room { background: var(--white); }
.doc--call .toks i, .doc--call .doc__foot { border-color: var(--blue-soft); }
.doc--call .doc__head span:not(.room) { color: var(--blue-pale); }

/* shared panel pieces */
.mhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px; border-bottom: 1px solid var(--line); }
.mhead b { display: block; font-size: 15px; }
.mhead--sub { padding: 12px 16px; border-top: 1px solid var(--line); background: var(--bg); }
.mhead--sub b { font-size: 13px; }
.count { margin-left: 8px; padding: 1px 8px; border-radius: 6px; background: var(--blue-wash); color: var(--blue); }
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.kpis--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpis > div { padding: 12px 16px; border-right: 1px solid var(--line); }
.kpis > div:last-child { border-right: 0; }
.kpis b { font-family: var(--mono); font-size: 20px; }
.rows .row { display: grid; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.rows .row:first-child { border-top: 0; }
.row--head { background: var(--bg); font-size: 12px; color: var(--muted); }
.rows--desk .row { grid-template-columns: 52px minmax(0, 1.6fr) minmax(0, 1.2fr) 52px minmax(0, 1fr) minmax(0, 1fr); }
.rows--vt .row { grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) 64px minmax(0, 1fr) 72px; }
.rows--st .row { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr) 96px; }
.rows--q .row { grid-template-columns: 40px minmax(0, 1fr) auto; }
.rows--ut .row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr) 48px 80px; border-top: 1px solid var(--line); }
.rows small { margin-top: 2px; }
.rows--q small { display: inline; margin-left: 8px; }
.person { display: flex; align-items: center; gap: 12px; padding: 12px 12px; border: 1px solid var(--line); border-radius: 12px; }
.person b { display: block; }
.person--on { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-wash); }
.person--flat { padding: 0; border: 0; }
.radio { flex-shrink: 0; width: 16px; height: 16px; border: 1.5px solid var(--faint); border-radius: 50%; }
.person--on .radio { border: 5px solid var(--blue); }
.av { display: grid; flex-shrink: 0; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--blue-wash); color: var(--blue); font-size: 12px; font-weight: 600; }
.av--g { background: var(--green-wash); color: var(--green); }
.av--p { background: var(--violet-wash); color: var(--violet); }
.av--a { background: var(--amber-wash); color: var(--amber); }

/* patient app */
.app2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; max-width: 680px; justify-self: end; width: 100%; }
.stage--app { justify-self: end; width: 100%; max-width: 680px; }
.app2__b { margin-top: 56px; }
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 12px 16px 0; }
.steps3 i { height: 4px; border-radius: 4px; background: var(--line); }
.steps3 i:first-child { background: var(--blue); }
.who { display: grid; gap: 8px; padding: 16px 16px 20px; }
.lv { margin: 12px; padding: 16px; border-radius: 14px; background: var(--blue); color: var(--white); }
.lv p { margin-top: 12px; }
.lv__tok { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 9px; background: var(--white); color: var(--blue); font-size: 12px; font-weight: 600; }
.lv__tok i { padding: 2px 8px; border: 1px solid var(--blue-pale); border-radius: 6px; font-family: var(--mono); font-style: normal; }
.lv .lv__time { margin-top: 2px; font-family: var(--mono); font-size: 44px; font-weight: 600; line-height: 1; color: var(--white); }
.lv__track { position: relative; height: 4px; margin-top: 16px; border-radius: 4px; background: var(--blue-soft); }
.lv__track::after { content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 14px; border: 3px solid var(--white); border-radius: 50%; background: var(--blue); transform: translate(-50%, -50%); }
.lv__stops { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; font-size: 11px; color: var(--white); }
.stats3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0 12px 16px; }
.stats3 div { padding: 12px; border-radius: 10px; background: var(--bg); }
.stats3 small { font-size: 11px; }
.stats3 b { font-family: var(--mono); font-size: 20px; }

/* live queue */
.inc { display: flex; align-items: center; gap: 16px; padding: 16px; }
.tokbox { padding: 12px 16px; border-radius: 12px; background: var(--blue-wash); text-align: center; }
.tokbox small { color: var(--blue); font-weight: 600; }
.tokbox b { display: block; font-family: var(--mono); font-size: 30px; line-height: 1.1; color: var(--blue); }
.inc__who { flex: 1; min-width: 0; }
.inc__who b { display: block; font-size: 16px; }
.inc__time { text-align: right; }
.inc__time b { display: block; font-family: var(--mono); font-size: 28px; line-height: 1.1; }
.inc__act { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.inc__act > span:first-child { margin-right: auto; color: var(--muted); }
.q2 { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 16px; align-items: start; }
.docs { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.docs > span { display: flex; justify-content: space-between; gap: 16px; }

/* reports */
.chart { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px; height: 200px; padding: 20px 20px 0; }
.bar { display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; }
.bar i { display: block; height: calc(var(--s) * 1.6px); border-radius: 0 0 4px 4px; background: var(--blue); }
.bar i.ns { height: calc(var(--n) * 1.6px); margin-bottom: 2px; border-radius: 4px 4px 0 0; background: var(--orange); }
.bar small { margin-top: 8px; text-align: center; font-size: 11px; white-space: nowrap; }
.meter { display: block; height: 6px; border-radius: 6px; background: var(--line); }
.meter i { display: block; width: calc(var(--p) * 1%); height: 100%; border-radius: inherit; background: var(--blue); }
.rows--ut { margin-top: 16px; }

@media (max-width: 960px) {
  .stage--app, .app2 { justify-self: center; }
  .tv__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tv__grid > :last-child { display: none; }
}
@media (max-width: 640px) {
  .tv__grid { grid-template-columns: minmax(0, 1fr); }
  .tv__grid > :nth-child(2), .tv__top span { display: none; }
  .stage:not(.ab) .float { position: relative; inset: auto; margin-top: 16px; }
  .app2 { grid-template-columns: minmax(0, 1fr); }
  .app2__b { margin-top: 0; }
  .stage:not(.ab) .c-hide { display: none; }
  .rows--desk .row { grid-template-columns: 44px minmax(0, 1fr) 36px auto; }
  .rows--vt .row { grid-template-columns: minmax(0, 1fr) 60px 70px; }
  .rows--st .row { grid-template-columns: minmax(0, 1fr) auto auto; }
  .rows--ut .row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpis > div:nth-child(n + 4) { display: none; }
  .kpis--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis--4 > div:nth-child(n + 3) { display: none; }
  .chart { gap: 8px; padding-inline: 12px; }
  .inc { flex-wrap: wrap; }
  .q2 { grid-template-columns: minmax(0, 1fr); }
  .docs { display: none; }
}

/* Narrow screens */
@media (max-width: 960px) {
  /* Narrow screens: logo and menu toggle in the bar; links and the demo button drop below when open (always shown without script). */
  .nav__row { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 62px; } /* first row keeps the closed bar height when the menu opens */
  .js .nav__toggle { display: block; }
  .nav__links { grid-column: 1 / -1; flex-direction: column; gap: 0; padding-top: 8px; border-top: 1px solid var(--line); }
  .nav__links a { padding: 12px 0; font-size: 16px; }
  .nav__row > .btn { grid-column: 1 / -1; justify-self: stretch; min-height: 44px; margin-block: 4px 12px; }
  .js .nav:not(.is-open) .nav__links, .js .nav:not(.is-open) .nav__row > .btn { display: none; }
  .js .nav--float { height: 64px; } /* header keeps the bar height, so the open menu floats over the page instead of pushing it down */
  .nav.is-open .nav__row { background: var(--bg); box-shadow: var(--card-shadow); }
  .cards, .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split--flip { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .trio { grid-template-columns: minmax(0, 1fr); }
  .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .foot__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot__cta { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .sec { padding-top: 88px; }
  .cards, .tiers, .demo, .groups, .cta-band { grid-template-columns: minmax(0, 1fr); }
  .every, .cta-band { padding: 24px; }
  /* Phones can't scan their own screen: swap the QR card for a plain WhatsApp button. */
  .wa { display: none; }
  .cta-band__text .btn--wa { display: flex; margin-top: 12px; }
  .cta-band__text .btn { width: 100%; }
  .card { min-height: 0; }
  :root { --r-card: 16px; }
  .nav__toggle { width: 32px; height: 32px; border-radius: 8px; }
  .nav__toggle span { width: 14px; }
  .nav .logo__img { height: 22px; }
  .nav--float .nav__row { min-height: 56px; grid-template-rows: 54px; padding-inline: 16px 12px; }
  .js .nav--float { height: 56px; }
  /* Setup tabs give way to all panels stacked, like the no-script layout. */
  .switch .seg { display: none; }
  .switch .panel[hidden] { display: block !important; }
  .switch .panel + .panel { margin-top: 56px; }
  .seg { display: flex; width: 100%; }
  .seg button { flex: 1 1 auto; min-width: 0; overflow: hidden; padding: 0 6px; font-size: 13px; }
  .actions > .btn, form .btn { width: 100%; }
  .logos { gap: 12px 32px; }
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
