/* Qwickpharma marketing site. Direction: "The split stage" (tasteskill seed 153583623), brand colours from the app
   docs/DESIGN.md. Two families only: Bricolage Grotesque for display type and the wordmark, Manrope for everything else.
   No inline styles anywhere: the CSP is style-src 'self'. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  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: "Bricolage Grotesque";
  src: url("/fonts/bricolage-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  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: "Manrope";
  src: url("/fonts/manrope-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light dark;
  --bg: #f3f4f6;
  --paper: #fbfbfc;
  --sunken: #e9ebee;
  --ink: #16181b;
  --muted: #565c66;
  --accent: #1d5fbf;
  --accent-ink: #fbfbfc;
  --button: #16181b;
  --button-ink: #fbfbfc;
  --button-hover: #2b2e33;
  --field: #16181b;
  --field-2: #1f2226;
  --field-ink: #edeef0;
  --field-muted: #b2b6bd;
  --field-accent: #8db4ff;
  --input: #fbfbfc;
  --input-edge: #868b94;
  --danger: #c02a26;
  --danger-bg: #fdecea;
  --focus: #1d5fbf;
  --radius: 16px;
  --margin: clamp(16px, 2.2vw, 32px);
  --gutter: clamp(12px, 1.4vw, 24px);
  --bar-h: 64px;
  --section-gap: clamp(96px, 11vw, 200px);
  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
  --step-lead: clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem);
  --step-head: clamp(2.125rem, 1.4rem + 3vw, 4rem);
  --step-display: clamp(2.75rem, 1rem + 4.4vw, 5.25rem);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c0e;
    --paper: #131417;
    --sunken: #191b1f;
    --ink: #edeef0;
    --muted: #b2b6bd;
    --accent: #8db4ff;
    --accent-ink: #0b0c0e;
    --button: #edeef0;
    --button-ink: #111214;
    --button-hover: #d4d7dc;
    --field: #1d1f23;
    --field-2: #25282d;
    --input: #191b1f;
    --input-edge: #6a6f78;
    --danger: #ff7b73;
    --danger-bg: #331715;
    --focus: #8db4ff;
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.55;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; }
p { text-wrap: pretty; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }
[hidden] { display: none !important; }

h1, h2, h3, .display, .head, .how__statement, .plan__price, .brand span { font-family: var(--font-display); font-optical-sizing: auto; }
.loop__party h3, .coupon__next h3, .footer h2, .legal__body h3 { font-family: var(--font); }
h1, h2, .display, .head {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  text-wrap: balance;
  hyphens: none;
}
h1, .display { font-size: var(--step-display); letter-spacing: -0.03em; line-height: 0.96; }
h2, .head { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
.lead { font-size: var(--step-lead); line-height: 1.45; }
.small { font-size: var(--step-small); line-height: 1.5; }
.muted { color: var(--muted); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: var(--margin); top: -120px; z-index: 1100;
  padding: 12px 18px; border-radius: var(--radius);
  background: var(--button); color: var(--button-ink); text-decoration: none; font-weight: 500;
}
.skip:focus { top: 12px; }

.link { color: var(--accent); text-decoration: underline; text-decoration-color: currentColor; }
.prose a { color: var(--accent); }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: var(--radius);
  background: var(--button); color: var(--button-ink);
  font: 500 var(--step-body)/1 var(--font);
  white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 180ms ease;
}
.button:active { transform: scale(0.97); }
.button--lg { min-height: 56px; padding: 0 30px; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--button-hover); }
  .link:hover, .bar__links a:hover, .footer__menu a:hover { text-decoration-color: currentColor; }
}


/* Top bar */
.bar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 24px;
  height: var(--bar-h); padding: 0 var(--margin);
  background: var(--bg);
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.brand span { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1; font-variation-settings: "opsz" 96; }
.brand svg { width: 30px; height: 30px; flex: none; }
.bar__nav { margin-left: auto; }
.bar__links { display: flex; gap: clamp(16px, 2.2vw, 36px); }
.bar__links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color 180ms ease; }
.bar__toggle {
  min-height: 44px; padding: 0 14px; border: 0; border-radius: var(--radius);
  background: var(--sunken); color: var(--ink); font: 500 var(--step-body)/1 var(--font); cursor: pointer;
}
@media (max-width: 860px) {
  .bar { gap: 8px; }
  .bar__nav { order: 2; margin-left: auto; }
  .bar .button { order: 3; min-height: 44px; padding: 0 16px; }
  .bar__links {
    display: none; position: absolute; left: 0; right: 0; top: var(--bar-h);
    flex-direction: column; gap: 0; padding: 8px var(--margin) 24px; background: var(--bg);
  }
  .bar.is-open .bar__links { display: flex; }
  .bar__links a { min-height: 56px; font-size: var(--step-lead); }
}
@media (min-width: 861px) { .bar__toggle { display: none; } }
/* "Get Qwickpharma" does not fit beside the wordmark and Menu at 320px; the narrowest screens show the short label instead. */
.bar__cta-short { display: none; }
@media (max-width: 420px) {
  .bar { gap: 6px; }
  .brand { gap: 8px; }
  .brand svg { width: 26px; height: 26px; }
  .brand span { font-size: 1.0625rem; }
  .bar__toggle { padding: 0 10px; font-size: 0.9375rem; }
  .bar .button { padding: 0 12px; font-size: 0.9375rem; }
}
@media (max-width: 360px) {
  .bar { gap: 4px; }
  .brand { gap: 6px; }
  .brand svg { width: 24px; height: 24px; }
  .brand span { font-size: 1rem; }
  .bar__toggle { padding: 0 8px; font-size: 0.875rem; }
  .bar .button { padding: 0 10px; font-size: 0.875rem; }
  .bar__cta-full { display: none; }
  .bar__cta-short { display: inline; }
  h1 { font-size: 2.25rem; }
}

/* Hero: two panels, the right one held while the left side scrolls (the split stage) */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 0 var(--margin);
  align-items: start;
}
.split__read { min-width: 0; }
.hero {
  min-height: calc(100svh - var(--bar-h) - var(--margin));
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: clamp(40px, 6vw, 96px) clamp(24px, 4vw, 72px) clamp(64px, 12vh, 140px);
  background: var(--paper); border-radius: var(--radius);
}
.hero h1 .line { display: block; }
.hero .lead { max-width: 46ch; margin-top: 36px; color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; margin-top: 40px; }
.hero__actions .link { display: inline-flex; align-items: center; min-height: 44px; }

.fixed {
  position: sticky; top: var(--bar-h);
  height: calc(100svh - var(--bar-h) - var(--margin));
  min-height: 520px;
  display: grid; place-items: center; padding-bottom: 56px;
  background: var(--sunken); border-radius: var(--radius); overflow: clip;
}
.phone {
  position: relative;
  width: min(390px, 76%, calc((100svh - var(--bar-h) - var(--margin) - 56px - 64px) * 390 / 844));
  aspect-ratio: 390 / 844;
  border-radius: 34px; overflow: clip; background: #f3f4f6;
}
@media (prefers-color-scheme: dark) { .phone { background: #0b0c0e; } }
.phone picture, .phone img { position: absolute; inset: 0; width: 100%; height: 100%; }
.phone img { object-fit: cover; object-position: top; }
.fixed__bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 20px; background: var(--paper); font-size: var(--step-small);
}
.fixed__status { position: relative; flex: 1; height: 1.5em; text-align: right; }
.fixed__status span { position: absolute; right: 0; top: 0; white-space: nowrap; }
.fixed__status span + span { opacity: 0; }

.intro { padding: var(--section-gap) clamp(8px, 5vw, 72px) 40px; }
.intro__col { max-width: 52ch; }
.intro h2 { margin-bottom: 32px; }
.intro__lead { font-weight: 500; }
.intro p + p { margin-top: 1em; }

.loop { margin: 40px 0; display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; padding: 8px; background: var(--sunken); border-radius: var(--radius); }
.loop__party { padding: 20px; background: var(--paper); border-radius: 10px; }
.loop__party h3 { font-size: var(--step-body); }
.loop__party p { color: var(--muted); font-size: var(--step-small); margin-top: 2px; }
.loop__party ul { margin-top: 14px; display: grid; gap: 8px; font-size: var(--step-small); line-height: 1.4; }
.loop__flow { display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 0 6px; font-size: var(--step-small); font-weight: 500; }
.loop__flow p { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.loop__flow svg { width: 44px; height: 16px; }
.loop__hospital { grid-column: 1 / -1; padding: 14px 16px 10px; font-size: var(--step-small); }

/* How it works: statements on the left, one fragment of the product held on the right */
.how {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  padding: var(--section-gap) var(--margin) 0;
}
.how > h2 { grid-column: 1 / 7; grid-row: 1; }
.how__list { grid-column: 1 / 6; grid-row: 2; }
.how__step { min-height: 58svh; display: flex; flex-direction: column; justify-content: center; padding: 48px 0; }
.how__step:last-child { min-height: 60svh; }
@media (min-width: 961px) {
  .how__step:first-child { min-height: 52svh; justify-content: flex-start; padding-top: 56px; }
  .plate > [data-ui] { zoom: 1.3; }
}
.how__statement { font-size: var(--step-lead); font-weight: 600; line-height: 1.2; color: var(--muted); transition: color 300ms ease; max-width: 22ch; }
.how__step p + p { margin-top: 16px; max-width: 52ch; }
.how__step.is-active .how__statement { color: var(--ink); }
.how__stage {
  grid-column: 7 / 13; grid-row: 1 / 3; align-self: start;
  position: sticky; top: calc(var(--bar-h) + 6vh);
  height: min(600px, calc(100svh - var(--bar-h) - 12vh));
  margin-top: 0;
  display: grid; place-items: center;
  background: var(--sunken); border-radius: var(--radius); overflow: clip;
}
.frame { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 320ms ease, transform 420ms var(--ease-out), visibility 0s linear 320ms; }
.frame.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity 320ms ease, transform 420ms var(--ease-out), visibility 0s; }

/* Product fragments (the app's own conventions apply inside [data-ui]) */
[data-ui] { color: #121417; }
[data-ui] .ui-card { width: min(400px, 86vw); background: #ffffff; border: 1px solid #e3e5e9; border-radius: 16px; padding: 22px; font-size: 14px; line-height: 20px; text-align: left; }
[data-ui] .ui-title { font-size: 16px; font-weight: 600; line-height: 24px; }
[data-ui] .ui-sub { color: #565c66; font-size: 13px; }
[data-ui] .ui-rows { margin-top: 14px; display: grid; gap: 0; }
[data-ui] .ui-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #edeff2; }
[data-ui] .ui-row dt { color: #565c66; }
[data-ui] .ui-row dd { font-weight: 500; text-align: right; }
[data-ui] .ui-switch { display: inline-block; width: 36px; height: 20px; border-radius: 999px; background: #16181b; position: relative; vertical-align: middle; }
[data-ui] .ui-switch::after { content: ""; position: absolute; right: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #ffffff; }
[data-ui] .ui-switch--green { background: #1e7b45; }
[data-ui] .ui-team { margin-top: 16px; display: grid; gap: 8px; }
[data-ui] .ui-member { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; background: #f6f7f9; border-radius: 8px; }
[data-ui] .ui-member small { display: block; color: #565c66; font-size: 12px; line-height: 16px; }
[data-ui] .ui-tag { flex: none; display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px; background: #e9ebee; color: #3f444c; font-size: 12px; font-weight: 500; white-space: nowrap; }
[data-ui] .ui-pill { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; }
[data-ui] .ui-pill svg { width: 13px; height: 13px; }
[data-ui] .ui-pill--packing { background: #e9ebee; color: #3f444c; }
[data-ui] .ui-pill--ready { background: #eaf1fc; color: #174ea0; }
[data-ui] .ui-pill--done { background: #e3f4e9; color: #176239; }
[data-ui] .ui-pill--new { background: #fdf1dc; color: #7a4700; }
[data-ui] .ui-num, [data-ui] .ui-tag, [data-ui] .ui-order__who, [data-ui] .ui-slip, [data-ui] .ui-patient__top { font-variant-numeric: tabular-nums; }
[data-ui] .ui-btn { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 14px; border-radius: 6px; background: #16181b; color: #ffffff; font-size: 14px; font-weight: 500; }
[data-ui] .ui-btn--quiet { background: #ffffff; color: #16181b; border: 1px solid #d3d6db; }

[data-ui] .ui-qr { width: min(300px, 80vw); padding: 26px 26px 22px; background: #ffffff; color: #000000; border-radius: 8px; text-align: center; }
[data-ui] .ui-qr__brand { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 15px; }
[data-ui] .ui-qr__brand svg { width: 22px; height: 22px; }
[data-ui] .ui-qr__code { width: 176px; height: 176px; margin: 18px auto 14px; }
[data-ui] .ui-qr__bed { font-size: 26px; font-weight: 600; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
[data-ui] .ui-qr__hint { margin-top: 4px; font-size: 13px; color: #3f444c; }

[data-ui] .ui-slip { width: min(320px, 82vw); padding: 24px; background: #ffffff; color: #000000; border-radius: 4px; font-size: 13px; line-height: 18px; text-align: left; }
[data-ui] .ui-slip__brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
[data-ui] .ui-slip__brand svg { width: 22px; height: 22px; }
[data-ui] .ui-slip__lead { margin-top: 12px; font-weight: 600; font-size: 14px; }
[data-ui] .ui-slip dl { margin: 12px 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
[data-ui] .ui-slip dt { color: #3f444c; }
[data-ui] .ui-slip dd { font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
[data-ui] .ui-slip__password { font-size: 20px; }
[data-ui] .ui-slip ol { margin-top: 10px; padding-left: 18px; list-style: decimal; display: grid; gap: 2px; }

[data-ui] .ui-board { width: min(420px, 86vw); padding: 16px; background: #ffffff; border: 1px solid #e3e5e9; border-radius: 16px; text-align: left; }
[data-ui] .ui-board__head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: #565c66; margin-bottom: 10px; }
[data-ui] .ui-board__head strong { color: #121417; font-size: 14px; }
[data-ui] .ui-order { padding: 14px; border: 1px solid #e3e5e9; border-radius: 8px; background: #ffffff; }
[data-ui] .ui-order + .ui-order { margin-top: 8px; }
[data-ui] .ui-order--new { background: #fdf1dc; border-color: #f2d9ad; }
[data-ui] .ui-order__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
[data-ui] .ui-order__id { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
[data-ui] .ui-order__who { margin-top: 6px; display: flex; justify-content: space-between; gap: 8px; font-weight: 500; }
[data-ui] .ui-order__tags { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
[data-ui] .ui-order__age { font-size: 13px; color: #565c66; font-variant-numeric: tabular-nums; }
[data-ui] .ui-order__actions { margin-top: 12px; display: flex; gap: 8px; }

/* Showcase: the live thing. The store's buttons on the right move the patient's screen on the left. */
.showcase {
  display: grid; grid-template-columns: 1fr 1fr; min-height: 88svh;
  margin-top: var(--section-gap);
  background: var(--paper);
}
.showcase__plate { display: grid; place-items: center; padding: 40px; }
.plate { container-type: inline-size;
  width: 100%; max-width: 640px; aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  background: var(--sunken); border-radius: var(--radius); overflow: clip;
}
.showcase__controls { display: grid; gap: 20px; }
.showcase__text { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding: 56px var(--margin) 56px 40px; }
.states { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: var(--step-lead); }
.states li { color: var(--muted); font-weight: 500; }
.states li[aria-current="step"] { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.3em; text-decoration-color: var(--accent); }
.showcase h2 { max-width: 12ch; }
.showcase__desc { margin-top: 32px; max-width: 48ch; }
.showcase__note { margin-top: 16px; color: var(--muted); font-size: var(--step-small); max-width: 54ch; }
.cells { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cell {
  min-height: 72px; padding: 0 24px; border: 0; border-radius: var(--radius);
  background: var(--button); color: var(--button-ink);
  font: 500 var(--step-body)/1.2 var(--font); text-align: left; cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 180ms ease, opacity 180ms ease;
}
.cell--quiet { background: var(--sunken); color: var(--ink); }
.cell:active { transform: scale(0.98); }
.cell:disabled { cursor: not-allowed; opacity: 0.55; }
@media (hover: hover) and (pointer: fine) { .cell:not(:disabled):hover { background: var(--button-hover); } .cell--quiet:not(:disabled):hover { background: var(--bg); } }

[data-ui] .ui-patient { width: min(380px, 86cqw); background: #f3f4f6; border-radius: 24px; padding: 14px; font-size: 16px; line-height: 24px; text-align: left; position: relative; }
[data-ui] .ui-patient__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 4px 12px; font-size: 15px; font-weight: 600; }
[data-ui] .ui-patient__bar span { display: inline-flex; align-items: center; gap: 8px; }
[data-ui] .ui-patient__bar svg { width: 24px; height: 24px; }
[data-ui] .ui-patient__card { background: #ffffff; border: 1px solid #e3e5e9; border-radius: 16px; padding: 18px; }
[data-ui] .ui-patient__top { display: flex; justify-content: space-between; align-items: baseline; color: #565c66; font-size: 14px; }
[data-ui] .ui-patient__top b { color: #121417; font-size: 28px; line-height: 34px; font-weight: 600; margin-left: 6px; font-variant-numeric: tabular-nums; }
[data-ui] .ui-patient__msg { margin-top: 12px; font-size: 17px; line-height: 24px; font-weight: 600; }
[data-ui] .ui-patient__next { margin-top: 4px; color: #565c66; font-size: 14px; }
[data-ui] .ui-progress { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; font-size: 13px; color: #686e78; }
[data-ui] .ui-progress span::before { content: ""; display: block; height: 4px; border-radius: 2px; background: #e9ebee; margin-bottom: 6px; }
[data-ui] .ui-progress .is-done { color: #3f444c; }
[data-ui] .ui-progress .is-done::before { background: #16181b; }
[data-ui] .ui-progress .is-now { color: #121417; font-weight: 600; }
[data-ui] .ui-progress .is-now::before { background: #1d5fbf; }
[data-ui] .ui-patient__note { margin-top: 14px; padding: 10px 12px; background: #f6f7f9; border-radius: 8px; font-size: 14px; line-height: 20px; }
[data-ui] .ui-patient__total { margin-top: 14px; padding-top: 12px; border-top: 1px solid #edeff2; display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #565c66; font-size: 14px; }
[data-ui] .ui-patient__total b { color: #121417; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
[data-ui] .ui-toast {
  position: absolute; left: 14px; right: 14px; top: -22px;
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px;
  background: #ffffff; border-radius: 14px; font-size: 14px; line-height: 19px;
  box-shadow: 0 4px 16px rgba(17, 20, 24, 0.12), 0 1px 3px rgba(17, 20, 24, 0.08);
  opacity: 0; transform: translateY(-8px); transition: opacity 240ms ease, transform 320ms var(--ease-out);
}
[data-ui] .ui-toast svg { width: 22px; height: 22px; flex: none; }
[data-ui] .ui-toast b { display: block; }
[data-ui] .ui-toast.is-shown { opacity: 1; transform: none; }

/* For the patient: rows hanging from one axis, a phone screen in the right margin of each */
.rows { padding: var(--section-gap) var(--margin) 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.rows__head { grid-column: 1 / 5; grid-row: 1 / span 4; align-self: start; position: sticky; top: calc(var(--bar-h) + 48px); padding-right: var(--gutter); }
.rows__head .lead { margin-top: 28px; max-width: 36ch; }
.row { grid-column: 5 / 13; grid-row: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--gutter) clamp(24px, 4vw, 72px); align-items: start; }
.row + .row { margin-top: clamp(56px, 5vw, 88px); }
.row h3 { font-size: var(--step-lead); }
.row p { margin-top: 14px; max-width: 52ch; }
.row figure { background: var(--sunken); border-radius: var(--radius); overflow: clip; }
.row figure img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.row--a figure { width: 280px; aspect-ratio: 4 / 5; }
.row--b figure { width: 320px; aspect-ratio: 4 / 5; }
.row--c figure { width: 250px; aspect-ratio: 390 / 560; }
.row--d figure { width: 300px; aspect-ratio: 1 / 1; }
.row--b figure img { object-position: center 30%; }
.row--d figure img { object-position: center 18%; }

/* For the store: a held field of the console on the left, capabilities scrolling on the right */
.output { margin-top: var(--section-gap); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.output__field {
  grid-column: 1 / 7; grid-row: 1; align-self: start;
  position: sticky; top: var(--bar-h); height: calc(100svh - var(--bar-h));
  display: grid; place-items: center; background: var(--sunken); overflow: clip;
}
.output__read { grid-column: 8 / 13; grid-row: 1; padding: 72px var(--margin) 0 0; }
.output__read > h2 { max-width: 10ch; }
.output__read > .lead { margin-top: 28px; }
.block { min-height: 52svh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; }
.block:last-child { min-height: 80svh; }
.block h3 { font-size: var(--step-lead); max-width: 18ch; }
.block p { margin-top: 16px; max-width: 52ch; }
.shot { grid-area: 1 / 1; position: relative; width: min(90%, 860px); height: min(86%, 840px); }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

/* For the hospital: a ward on the left, the benefits as dark rows on the right */
.hospital { margin-top: var(--section-gap); display: grid; grid-template-columns: 1fr 1fr; min-height: 90svh; }
.hospital__photo { position: relative; margin: 0; background: var(--sunken); overflow: clip; }
.hospital__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.hospital__photo figcaption { position: absolute; left: 0; bottom: 0; margin: var(--margin); padding: 10px 14px; max-width: 34ch; background: var(--paper); border-radius: 10px; font-size: var(--step-small); }
.hospital__rows { display: grid; grid-template-rows: auto repeat(4, 1fr); background: var(--field); color: var(--field-ink); }
.hospital__rows > div:first-child { padding: 56px var(--margin) 40px clamp(28px, 4vw, 56px); }
.hospital__rows .lead { margin-top: 20px; color: var(--field-muted); max-width: 48ch; font-size: var(--step-body); line-height: 1.55; }
.hrow { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 28px var(--margin) 28px clamp(28px, 4vw, 56px); }
.hrow:nth-child(odd) { background: var(--field-2); }
.hrow h3 { font-size: var(--step-lead); }
.hrow p { color: var(--field-muted); max-width: 52ch; }

/* Security and Questions: a centred column of bars (Security opens with one giant word) */
.security, .faq { padding: var(--section-gap) var(--margin) 0; display: grid; justify-items: center; }
.security__col, .faq__col { width: min(100%, 760px); container-type: inline-size; }
.giant { font-size: 23.3cqw; font-weight: 800; letter-spacing: -0.03em; line-height: 0.8; text-transform: uppercase; white-space: nowrap; margin-left: -0.04em; }
.security__lead { margin: 32px 0 28px; max-width: 50ch; }
.bars { display: grid; gap: 6px; }
.bars details { background: var(--sunken); border-radius: var(--radius); }
.bars summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 14px 20px; line-height: 1.35; cursor: pointer; font-weight: 500; list-style: none;
}
.bars summary::-webkit-details-marker { display: none; }
.bars summary svg { width: 20px; height: 20px; flex: none; transition: transform 240ms var(--ease-out); }
.bars details[open] summary svg { transform: rotate(45deg); }
/* A closed answer is not drawn anyway; display: none also keeps it out of layout, where its links would otherwise
   measure as labels above the next heading. shortcut: Chrome's find-in-page no longer opens a closed row; drop this
   rule if that matters more than the inspector. */
.bars details:not([open]) > div { display: none; }
.bars details > div { padding: 0 20px 22px; max-width: 54ch; }
.bars details > div p + p { margin-top: 0.7em; }
.faq h2 { margin-bottom: 32px; }

/* Plans: two fields meeting at a hard edge */
.plans { margin-top: var(--section-gap); display: grid; grid-template-columns: 5fr 7fr; }
.plan { min-height: 90svh; display: grid; grid-template-rows: auto auto 1fr auto; padding: 48px clamp(24px, 3vw, 48px); }
.plan--trial { background: var(--sunken); }
.plan--prepaid { background: var(--field); color: var(--field-ink); }
.plan--prepaid .plan__for, .plan--prepaid .plan__incl { color: var(--field-ink); }
.plan h2 { font-size: var(--step-head); }
.plan__for { margin-top: 24px; font-size: var(--step-lead); line-height: 1.35; max-width: 32ch; }
.plan__incl { margin-top: 24px; max-width: 50ch; align-self: start; }
.plan__foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.plan__price { font-size: var(--step-display); font-weight: 700; letter-spacing: -0.03em; line-height: 0.92; }
.plan__period { margin-top: 12px; line-height: 1.4; }
.plan--prepaid .button { background: var(--field-ink); color: var(--field); }
@media (hover: hover) and (pointer: fine) { .plan--prepaid .button:hover { background: #d4d7dc; } }
@media (prefers-color-scheme: dark) {
  .plan--trial { background: var(--paper); }
  .plan--prepaid { background: #2b2e33; }
}

/* Contact: a coupon to fill in */
.contact { padding: var(--section-gap) var(--margin); }
.coupon {
  position: relative;
  display: grid; grid-template-columns: 4fr 7fr;
  max-width: 1360px; margin: 0 auto;
  background: var(--paper); border-radius: var(--radius);
}
.coupon::before, .coupon::after {
  content: ""; position: absolute; z-index: 1; left: calc(36.3636% - 15px);
  width: 30px; height: 30px; border-radius: 50%; background: var(--bg);
}
.coupon::before { top: -15px; }
.coupon::after { bottom: -15px; }
.coupon__side { display: flex; flex-direction: column; justify-content: flex-start; gap: 40px; padding: 48px; background: var(--field); color: var(--field-ink); border-radius: var(--radius) 0 0 var(--radius); position: relative; }
.coupon__side::after {
  content: ""; position: absolute; top: 30px; bottom: 30px; right: -3px;
  border-right: 6px dotted var(--bg);
}
.coupon__side h2 { max-width: 9ch; }
.coupon__side p { color: var(--field-ink); }
.coupon__side .lead { margin-top: 24px; max-width: 30ch; }
.coupon__next { display: grid; gap: 14px; }
.coupon__next h3 { font-size: var(--step-body); }
.coupon__next ol { display: grid; gap: 10px; }
.coupon__next li { color: var(--field-ink); max-width: 34ch; }
.coupon__side a { color: var(--field-accent); }
.coupon__form { padding: 48px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.field { display: grid; gap: 6px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label, .field .label { font-weight: 500; }
.field .req { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  border: 1px solid var(--input-edge); border-radius: 10px; /* taste-skill-ignore: form field boundary, 3:1 */
  background: var(--input); color: var(--ink);
  font: 400 1rem/1.4 var(--font);
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; background-image: none; padding-right: 40px; }
.select { position: relative; }
.select svg { position: absolute; right: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); pointer-events: none; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.field [aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }
.tel { display: flex; align-items: stretch; }
.tel span { display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--input-edge); border-right: 0; border-radius: 10px 0 0 10px; background: var(--sunken); font-variant-numeric: tabular-nums; } /* taste-skill-ignore: part of the mobile field */
.tel input { border-radius: 0 10px 10px 0; }
.hint { color: var(--muted); font-size: var(--step-small); }
.error { color: var(--danger); font-size: var(--step-small); font-weight: 500; }
.error:empty { display: none; }
.counter { justify-self: end; color: var(--muted); font-size: var(--step-small); font-variant-numeric: tabular-nums; }
.consent { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: start; }
.consent input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--ink); }
.consent label { font-weight: 400; }
.consent .error { grid-column: 2; }
.form-alert { grid-column: 1 / -1; padding: 14px 16px; border-radius: 10px; background: var(--danger-bg); color: var(--ink); }
.form-alert a { color: var(--accent); }
.submit { grid-column: 1 / -1; width: 100%; min-height: 56px; }
.submit[aria-busy="true"] { cursor: progress; opacity: 0.8; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* taste-skill-ignore: honeypot, hidden in place */
.form-done { padding: 8px 0; font-size: var(--step-lead); line-height: 1.35; font-weight: 500; }
.form-done:focus-visible { outline-offset: 8px; }

/* Footer: a ward on the left, the menu set large on the right */
/* Footer: compact. About, the page's sections, contact, then the legal line. */
.footer { display: grid; gap: 48px; padding: clamp(56px, 6vw, 96px) var(--margin) 24px; background: var(--paper); }
.footer__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 40px; }
.footer__about { grid-column: 1 / 6; display: grid; gap: 28px; align-content: start; }
.footer__about p { max-width: 52ch; }
.footer__nav { grid-column: 7 / 9; }
.footer__contact { grid-column: 9 / 13; }
.footer h2 { font-size: var(--step-body); font-weight: 700; letter-spacing: 0; line-height: 1.4; margin-bottom: 8px; }
.footer__menu { display: grid; }
.footer__menu a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color 180ms ease; }
.footer__contact a { color: var(--accent); }
.footer__contact p + p { margin-top: 6px; }
.footer__legal { display: grid; gap: 8px; font-size: var(--step-small); color: var(--muted); }
.footer__legal ul { display: flex; flex-wrap: wrap; gap: 0 24px; color: var(--ink); }
.footer__legal ul a { display: inline-flex; align-items: center; min-height: 44px; }
.credits a { color: inherit; }
.credits a { color: inherit; }

/* Legal pages (generated from legal-template.html) */
.footer--plain .footer__grid, .footer--plain .footer__legal { width: min(100%, 1360px); margin: 0 auto; }
.legal { padding: clamp(48px, 7vw, 120px) var(--margin) var(--section-gap); }
.legal__head { max-width: 56ch; margin: 0 auto 48px; }
.legal__head h1 { font-size: var(--step-head); }
.legal__head p { margin-top: 16px; color: var(--muted); }
.legal__body { max-width: 56ch; margin: 0 auto; }
.legal__body h2 { font-size: var(--step-lead); letter-spacing: -0.01em; line-height: 1.25; margin: 0 0 16px; }
.legal__body h3 { font-size: var(--step-body); margin: 28px 0 8px; }
.legal__body p, .legal__body ul, .legal__body ol { margin: 0 0 14px; }
.legal__body ul { list-style: disc; padding-left: 1.3em; }
.legal__body ol { list-style: decimal; padding-left: 1.4em; }
/* Lettered sub-clauses read "(a)", as the clauses refer to them. */
.legal__body ol[type="a"] { list-style: none; padding-left: 2.4em; counter-reset: clause-letter; }
.legal__body ol[type="a"] > li { position: relative; counter-increment: clause-letter; }
.legal__body ol[type="a"] > li::before { content: "(" counter(clause-letter, lower-alpha) ")"; position: absolute; left: -2.4em; color: var(--muted); }
.legal__body li + li { margin-top: 6px; }
.legal__body a { color: var(--accent); overflow-wrap: anywhere; }
.legal-intro { margin-bottom: 40px; }
.legal-toc { padding: 0 0 8px; margin-bottom: 8px; }
.legal-toc ol li { margin-top: 2px; }
.legal-toc a { display: inline-flex; min-height: 36px; align-items: center; }
.legal-section { padding-top: 40px; margin-top: 40px; }
.legal-section + .legal-section { margin-top: 0; }
.legal-section:target h2 { color: var(--accent); }

/* Not found */
.lost { min-height: calc(100svh - var(--bar-h)); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 var(--margin) var(--margin); }
.lost__text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 28px; padding: clamp(32px, 6vw, 96px); background: var(--paper); border-radius: var(--radius); }
.lost__text p { max-width: 46ch; }
.lost__panel { display: grid; place-items: center; background: var(--sunken); border-radius: var(--radius); }

/* Phone and tablet compositions */
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 0; }
  .fixed { order: -1; position: sticky; top: var(--bar-h); height: 56svh; min-height: 0; z-index: 0; padding-bottom: 56px; }
  .split__read { position: relative; z-index: 1; margin-top: -40px; }
  .hero { min-height: 0; padding: 40px 20px 44px; }
  .hero .lead { margin-top: 24px; }
  .hero__actions { margin-top: 28px; width: 100%; }
  .hero__actions .button { width: 100%; }
  .phone { width: 82%; height: auto; aspect-ratio: 390 / 600; border-radius: 26px; margin-top: 16px; }
  .intro { padding: 72px 4px 96px; background: var(--bg); }
  .how { display: flex; flex-direction: column; padding-top: 112px; }
  .how__stage { order: 1; align-self: stretch; top: var(--bar-h); height: 46svh; margin-top: 28px; z-index: 1; }
  .how > h2 { order: 0; }
  .how__list { order: 2; }
  .how__step { min-height: 56svh; padding: 32px 0; }
  .how__statement, .how__step p + p { max-width: 54ch; }
  .how__step:last-child { min-height: 50svh; }
  .how__stage [data-ui] > * { transform: scale(0.82); }
  .showcase { grid-template-columns: 1fr; min-height: 0; }
  .showcase__plate { padding: 16px; }
  .showcase__text { padding: 8px 20px 48px; gap: 32px; }
  .cells { grid-template-columns: 1fr; }
  .cell { min-height: 60px; }
  .rows { display: block; }
  .rows__head { position: static; margin-bottom: 64px; padding-right: 0; }
  .row { grid-template-columns: 1fr; }
  .row figure { width: min(100%, 420px) !important; }
  .row--b figure { width: min(70%, 360px) !important; justify-self: end; }
  .row--c figure { width: min(62%, 320px) !important; }
  .output { display: flex; flex-direction: column; }
  .output__field { order: 1; align-self: stretch; height: 44svh; z-index: 1; }
  .output__read { order: 0; display: contents; }
  .output__read > h2, .output__read > .lead { order: 0; padding: 0 var(--margin); max-width: none; }
  .output__read > .lead { margin: 24px 0 32px; }
  .block { order: 2; min-height: 56svh; padding: 32px var(--margin); }
  .block:last-child { min-height: 56svh; }
  .shot { width: 94%; height: 90%; }
  .hospital { grid-template-columns: 1fr; }
  .hospital__photo { min-height: 60svh; }
  .hrow { grid-template-columns: 1fr; gap: 10px; }
  .hospital__rows > div:first-child, .hrow { padding-left: 20px; padding-right: 20px; }
  .plan { min-height: 70svh; padding: 36px 24px; }

  .coupon { grid-template-columns: 1fr; }
  .coupon::before, .coupon::after { display: none; }
  .coupon__side { border-radius: var(--radius) var(--radius) 0 0; padding: 32px 20px; }
  .coupon__side::after { top: auto; bottom: -3px; left: 24px; right: 24px; border-right: 0; border-bottom: 6px dotted var(--bg); }
  .coupon__form { padding: 32px 20px; }
  .footer__about { grid-column: 1 / -1; }
  .footer__nav { grid-column: 1 / 7; }
  .footer__contact { grid-column: 7 / 13; }
  .lost { grid-template-columns: 1fr; }
  .lost__panel { min-height: 50svh; order: -1; }
}
@media (max-width: 700px) {
  .plans { grid-template-columns: 1fr; }
  .plan { padding: 36px 20px; }
  .plan__foot .button { width: 100%; }
}
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .footer__nav, .footer__contact { grid-column: 1 / -1; }
  .loop { grid-template-columns: 1fr; }
  .loop__flow { flex-direction: row; justify-content: center; gap: 24px; padding: 8px 0; }
  .loop__flow p { flex-direction: row; gap: 6px; }
  .loop__flow svg { width: 28px; height: 28px; transform: rotate(90deg); }
  .states { font-size: var(--step-body); gap: 8px 20px; }
}

/* Motion. Transform and opacity only; nothing hidden unless the browser can play it, nothing moves under reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .line { display: block; overflow: clip; padding-bottom: 0.08em; margin-bottom: -0.08em; }
  .hero h1 .line > span { display: block; animation: rise-line 900ms var(--ease-expo) both; }
  .hero h1 .line:nth-child(2) > span { animation-delay: 110ms; }
  .hero .lead, .hero__actions { animation: rise 600ms var(--ease-out) both; }
  .hero .lead { animation-delay: 380ms; }
  .hero__actions { animation-delay: 460ms; }
  .phone { animation: settle 1100ms var(--ease-expo) 120ms both; }

  .phone .frame-b, .phone .frame-c { opacity: 0; }
  .phone .frame-a, .phone .frame-b, .phone .frame-c,
  .fixed__status span { animation: xfade 21s linear infinite both; }
  .phone .frame-a, .fixed__status span:nth-child(1) { animation-delay: -1.6s; }
  .phone .frame-b, .fixed__status span:nth-child(2) { animation-delay: 5.4s; }
  .phone .frame-c, .fixed__status span:nth-child(3) { animation-delay: 12.4s; }
  .is-tab-hidden .phone picture, .is-tab-hidden .fixed__status span { animation-play-state: paused; }

  .how__step .how__statement { transition: color 300ms ease, transform 420ms var(--ease-out); }
  .how__step.is-active .how__statement { transform: translateX(6px); }

  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 5% entry 55%; }
    .reveal-2 { animation: rise linear both; animation-timeline: view(); animation-range: entry 15% entry 65%; }
    .reveal-3 { animation: rise linear both; animation-timeline: view(); animation-range: entry 25% entry 75%; }
    .reveal-pic { animation: open linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    .drift { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    .bars details { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  }
}
@keyframes rise-line { from { transform: translateY(105%); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: translateY(24px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes open { from { opacity: 0.2; transform: scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1.1) translateY(-3%); } to { transform: scale(1.1) translateY(3%); } }
@keyframes xfade {
  0% { opacity: 0; }
  7.62% { opacity: 1; }
  33.33% { opacity: 1; }
  40.95% { opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .phone .frame-b, .phone .frame-c, .fixed__status span + span { display: none; }
  .fixed__status span:first-child { opacity: 1; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

.bar .brand + .button { margin-left: auto; }
.lost__mark { width: min(44%, 260px); height: auto; }

