/* Fulcrum public website.
   Layout: left-aligned, generous margins. The one bold moment is the working
   day in "Cómo funciona": the hours scroll past a red "Ahora" line, as in the
   app's agenda, while a sticky app window changes with each moment.
   Palette and type are the app's own (docs/design/fulcrum-theme.css), so the
   website and the product read as one thing. */
:root {
  --canvas: #F6F5F1;      /* page */
  --paper: #FFFFFF;       /* cards, app window */
  --ink: #18202E;         /* text */
  --ink-2: #4B5361;       /* supporting text */
  --muted: #5C6370;       /* metadata */
  --line: #E4E2DB;        /* borders */
  --input: #D9D6CD;
  --sidebar: #EFEDE7;
  --primary: #1D3354;     /* action, the only brand colour */
  --accent: #E8EDF4;      /* source chips, quiet fills */
  --slate: #5B7FA6;       /* second tone of the hero headline (large text only) */
  --slate-ink: #4A6B91;   /* section labels: same family, 5:1 on the canvas */
  --slate-light: #9FB8CF; /* section labels on navy */
  --ai: #2B6F68;          /* only AI-generated content */
  --ai-soft: #E5F0EE;
  --ai-surface: #F3F6F5;
  --money: #6B4A00;       /* only payments */
  --money-soft: #FBF4E4;
  --money-border: #EFDFB8;
  --now: #A63A2B;         /* only the "Ahora" line */
  --danger: #A63A2B;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Newsreader", ui-serif, Georgia, "Times New Roman", serif;
  --shell: min(1160px, calc(100vw - 48px));
  --gutter: max(24px, env(safe-area-inset-left, 0px));
}

*, *::before, *::after { box-sizing: border-box }
[hidden] { display: none !important }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased }
a { color: inherit; text-decoration: none }
img { display: block; max-width: 100% }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px }
.shell { width: var(--shell); margin-inline: auto }
h1, h2, h3 { text-wrap: balance }

/* Type */
.eyebrow { margin: 0 0 14px; color: var(--slate-ink); font-size: 15px; font-weight: 600 }
.eyebrow.light { color: var(--slate-light) }
.hero h1 span { color: var(--slate) }
h1, .page-hero h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 5.2vw, 66px); line-height: 1.05; letter-spacing: -0.02em; color: var(--ink) }
.section-head h2, .split h2, .cta h2, .about h2, .contact h2, .pricing h2, .waitlist-done h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -0.015em; color: var(--ink) }
.section-head { max-width: 720px; margin-bottom: 48px }
.section-head > p:last-child:not(.eyebrow) { margin: 18px 0 0; color: var(--ink-2); font-size: 18px; line-height: 1.65 }

/* Buttons and links */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border: 1px solid var(--primary); border-radius: 10px; background: var(--primary); color: #fff; font: 600 15px/1 var(--sans); cursor: pointer; transition: background .15s ease }
.button:hover { background: #26416A }
.button.small { min-height: 40px; padding: 0 16px; font-size: 14px }
.light-button { background: #fff; color: var(--primary); border-color: #fff }
.light-button:hover { background: var(--accent) }
.text-link { color: var(--primary); font-size: 15px; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(29, 51, 84, .3); text-underline-offset: 4px }
.text-link:hover { text-decoration-color: currentColor }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(246, 245, 241, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line) }
.header-inner { height: 72px; display: flex; align-items: center; gap: 32px }
.brand { margin-right: auto }
.brand img { width: 150px }
.desktop-nav { display: flex; gap: 28px }
.desktop-nav a { font-size: 15px; color: var(--ink-2) }
.desktop-nav a:hover, .desktop-nav a[aria-current=page] { color: var(--ink) }
.header-actions { display: flex; align-items: center; gap: 16px }
.menu { display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: none; cursor: pointer }
.menu span { display: block; height: 1.5px; margin: 6px 0; background: var(--ink) }
/* Mobile menu: a panel that slides in from the right. It lives outside the
   header because the header's backdrop-filter would trap position: fixed. */
.drawer { position: fixed; inset: 0; z-index: 50 }
.drawer[hidden] { display: none !important }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(24, 32, 46, .32); opacity: 0; transition: opacity .3s ease }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(86vw, 360px); padding: 0 24px max(24px, env(safe-area-inset-bottom, 0px)); background: var(--canvas); box-shadow: -24px 0 60px -30px rgba(24, 32, 46, .45); overflow-y: auto; transform: translateX(100%); transition: transform .34s cubic-bezier(.22, .8, .24, 1) }
.drawer.is-open .drawer-backdrop { opacity: 1 }
.drawer.is-open .drawer-panel { transform: none }
.drawer-head { display: flex; justify-content: flex-end; align-items: center; height: 64px; flex: none }
.drawer-close { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--ink); cursor: pointer }
.drawer-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round }
.drawer-links { display: flex; flex-direction: column; margin-top: 8px }
.drawer-links a { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 18px; opacity: 0; transform: translateX(16px); transition: opacity .3s ease, transform .3s ease, color .15s ease }
.drawer-links a:hover, .drawer-links a[aria-current=page] { color: var(--ink) }
.drawer-links a[aria-current=page] { font-weight: 600 }
.drawer.is-open .drawer-links a { opacity: 1; transform: none }
.drawer.is-open .drawer-links a:nth-child(2) { transition-delay: .04s }
.drawer.is-open .drawer-links a:nth-child(3) { transition-delay: .08s }
.drawer.is-open .drawer-links a:nth-child(4) { transition-delay: .12s }
.drawer.is-open .drawer-links a:nth-child(5) { transition-delay: .16s }
.drawer-foot { margin-top: auto; padding-top: 32px }
.drawer-foot .button { width: 100%; min-height: 50px; font-size: 16px }
.drawer-foot p { margin: 12px 0 0; color: var(--muted); font-size: 14px; text-align: center }
.menu-open, .menu-open body { overflow: hidden }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; padding-block: 72px 96px }
.hero-lead { max-width: 560px; margin: 28px 0 0; color: var(--ink-2); font-size: 19px; line-height: 1.65 }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 36px }
.microcopy { margin: 18px 0 0; color: var(--muted); font-size: 14px }

/* App-like pieces shared by every demo (scaled-down app UI) */
.m-eyebrow { margin: 0 0 6px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase }
.m-eyebrow.ai { color: var(--ai) }
.m-clin { margin: 0; color: var(--ink); font-family: var(--serif); font-size: 17px; line-height: 1.55 }
.src { display: inline-block; padding: 1px 6px; border-radius: 6px; background: var(--accent); color: var(--primary); font: 600 11px/1.5 var(--sans); white-space: nowrap; vertical-align: 2px }
.m-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 0 12px; border: 1px solid var(--input); border-radius: 8px; background: #fff; color: var(--ink); font-size: 12.5px; font-weight: 600; white-space: nowrap }
.m-btn.primary { background: var(--primary); border-color: var(--primary); color: #fff }
.m-q { justify-self: end; max-width: 88%; margin: 0 0 0 auto; padding: 9px 14px; border-radius: 12px; background: var(--accent); color: var(--primary); font-size: 14px; width: fit-content }
.m-answer { display: grid; gap: 4px }
.m-answer small, .hd-card small { color: var(--muted); font-size: 12px }
.m-stack { position: relative }
.m-loading { position: absolute; inset: 0 auto auto 0; margin: 0; color: var(--ai); font-size: 13px; font-weight: 600; opacity: 0 }
.cb { flex: none; display: inline-grid; place-items: center; width: 14px; height: 14px; border: 1.5px solid var(--primary); border-radius: 4px; background: var(--primary) }
.cb::after { content: ""; width: 7px; height: 4px; border: solid #fff; border-width: 0 0 1.6px 1.6px; transform: translateY(-1px) rotate(-45deg) }
.cb.is-empty { border-color: var(--input); background: #fff }
.cb.is-empty::after { content: none }

/* Hero demo: the "next session" card from the app's Today screen */
.hero-demo { margin: 0 }
.hd-card { display: grid; gap: 16px; padding: 22px; border: 1.5px solid var(--primary); border-radius: 16px; background: var(--paper); box-shadow: 0 30px 60px -30px rgba(29, 51, 84, .35) }
.hd-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px }
.hd-top small { display: block; color: var(--muted); font-size: 13px }
.hd-top strong { display: block; margin-top: 2px; font-size: 18px }
.hd-top span:not(.m-btn) { color: var(--muted); font-size: 13px }
.hd-dyn { display: grid; gap: 16px; transition: opacity .35s ease }
.hd-resume { padding: 14px 16px; border-radius: 12px; background: var(--ai-surface) }
.hero-demo figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; color: var(--muted); font-size: 13px }
.hd-card { position: relative }
/* Pause button (WCAG 2.2.2): a small round control in the card's corner. */
.demo-toggle { display: none; position: absolute; right: 14px; bottom: 14px; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink-2); cursor: pointer; opacity: .75; transition: opacity .15s ease, color .15s ease, border-color .15s ease }
.demo-toggle:hover, .demo-toggle:focus-visible { opacity: 1; color: var(--ink); border-color: var(--ink-2) }
.demo-toggle svg { width: 13px; height: 13px; fill: currentColor }
.demo-toggle .i-play, .demo-toggle[aria-pressed=true] .i-pause { display: none }
.demo-toggle[aria-pressed=true] .i-play { display: block }
.js .demo-toggle { display: grid }
.reduce-motion .demo-toggle { display: none }

/* "El día a día" */
.quiet { background: var(--paper); border-block: 1px solid var(--line) }
.split { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 64px; padding-block: 96px }
.split div > p { max-width: 720px; margin: 22px 0 0; color: var(--ink-2); font-size: 18px; line-height: 1.7 }

/* The working day */
.day { padding-block: 112px 64px }
.day-bare { padding-top: 24px }
.day-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start }
.day-steps { position: relative }
.day-steps ol { list-style: none; margin: 0; padding: 0 }
.day-step { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px; padding-block: 28px; border-top: 1px solid var(--line) }
.day-time { padding-top: 3px; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums }
.day-moment { margin: 0 0 6px; color: var(--ink-2); font-size: 14px; font-weight: 600 }
.day-copy h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.2 }
.day-copy > p:not(.day-moment) { margin: 10px 0 0; color: var(--ink-2); font-size: 16px; line-height: 1.65 }
.day-now { display: none }
.day-stage { display: none }
.mini-app { margin-top: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--canvas); overflow: hidden }

/* Wide screens with JS: sticky window + the passing "Ahora" line */
@media (min-width: 1000px) {
  .js .day-step { min-height: 72vh; align-content: start; padding-block: 40px; transition: opacity .3s ease }
  .js .day-step:not(.is-active) { opacity: .4 }
  .js .day-step:last-child { min-height: 60vh }
  .js .mini-app { display: none }
  .js .day-now { display: block; position: sticky; top: 30vh; z-index: 2; height: 0 }
  .js .day-now::before { content: ""; position: absolute; left: -6px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--now) }
  .js .day-now::after { content: ""; position: absolute; left: 2px; top: -.5px; width: 56px; height: 1px; background: var(--now) }
  .js .day-now span { position: absolute; left: 2px; top: -22px; color: var(--now); font-size: 12px; font-weight: 600 }
  .js .day-stage { display: block; position: sticky; top: calc(50vh - 280px) }
}

/* App window (desktop) */
.app { display: grid; grid-template-columns: 132px minmax(0, 1fr); height: 560px; border: 1px solid var(--line); border-radius: 16px; background: var(--canvas); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(29, 51, 84, .35) }
.app-side { display: flex; flex-direction: column; gap: 2px; padding: 16px 10px; background: var(--sidebar); border-right: 1px solid var(--line) }
.app-logo { display: flex; align-items: center; gap: 7px; padding: 0 8px 14px; font-family: var(--serif); font-size: 17px }
.app-logo img { width: 14px }
.app-nav { padding: 7px 10px; border-radius: 8px; color: var(--ink-2); font-size: 13px; transition: background .25s ease, color .25s ease }
.app[data-nav="hoy"] .app-nav[data-nav="hoy"], .app[data-nav="pacientes"] .app-nav[data-nav="pacientes"], .app[data-nav="agenda"] .app-nav[data-nav="agenda"], .app[data-nav="finanzas"] .app-nav[data-nav="finanzas"] { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(24, 32, 46, .08) }
.app-main { position: relative; min-width: 0 }
.scr { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s }
.scr.is-active { opacity: 1; visibility: visible; transition: opacity .35s ease }

/* Screen chrome */
.m-head { padding: 14px 18px 0; background: var(--paper); border-bottom: 1px solid var(--line) }
.m-head-page, .m-head-note { padding-bottom: 12px }
.m-head-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px }
.m-name { font-family: var(--serif); font-size: 21px; line-height: 1.2 }
.m-meta { color: var(--muted); font-size: 12px }
.m-head-action { margin-left: auto; align-self: center }
.m-saved { position: relative; display: inline-grid; margin-left: auto; color: var(--muted); font-size: 12px }
.m-saved > * { grid-area: 1 / 1 }
.m-saved > :first-child { opacity: 0 }
.m-saved + .m-head-action { margin-left: 8px }
.m-tabs { display: flex; gap: 14px; margin-top: 10px; overflow: hidden }
.m-tabs span { padding: 6px 0 8px; color: var(--muted); font-size: 12.5px; white-space: nowrap; border-bottom: 2px solid transparent }
.m-tabs .is-on { color: var(--ink); font-weight: 600; border-color: var(--primary) }
.m-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; overflow: hidden }
.m-doc { display: grid; gap: 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper) }
.m-doc .m-clin { font-size: 15px }
.m-title { margin: 0; font-family: var(--serif); font-size: 21px; line-height: 1.2 }
.m-sub, .m-small { margin: 0; color: var(--muted); font-size: 12px }
.m-h { margin: 8px 0 0; font-size: 12.5px; font-weight: 600 }
.m-list { margin: 0; padding-left: 18px; font-family: var(--serif); font-size: 14.5px; line-height: 1.5 }
.m-checks { list-style: none; display: grid; gap: 6px; margin: 2px 0 0; padding: 0; font-family: var(--serif); font-size: 14.5px }
.m-checks li, .m-tick { display: flex; align-items: center; gap: 8px; margin: 0 }
.m-tick { font-size: 13px }
.m-actions, .m-money-actions, .m-dup-actions { display: flex; gap: 8px; flex-wrap: wrap }
.m-note { display: grid; grid-template-columns: minmax(0, 1fr) 150px; align-items: start; gap: 14px }
.m-editor { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper) }
.m-side { display: grid; align-content: start; gap: 8px }
.m-side .m-h { margin: 0 }
.m-lock { margin: 6px 0 0; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11.5px; line-height: 1.45 }
.m-chat { gap: 14px }
.m-chat .m-clin { font-size: 15.5px }
.m-foot { display: flex; gap: 14px; margin: 6px 0 0; color: var(--muted); font-size: 12px }
.m-link { color: var(--primary); text-decoration: underline; text-underline-offset: 2px }
.m-suggest { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto }
.m-suggest span { padding: 5px 11px; border: 1px solid var(--input); border-radius: 999px; background: #fff; font-size: 12px; color: var(--ink-2) }
.m-input { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 6px 6px 14px; border: 1px solid var(--input); border-radius: 12px; background: #fff; color: var(--muted); font-size: 13px }
.m-people { display: grid; grid-template-columns: minmax(0, 1fr) 160px; align-items: start; gap: 12px }
.m-geno { width: 100%; height: auto; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); font-family: var(--sans) }
.m-dup { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--money-border); border-radius: 12px; background: var(--money-soft) }
.m-dup-q { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.35 }
.m-agenda { gap: 10px }
.m-week { position: relative; flex: 1; display: grid; grid-template-columns: 40px repeat(5, minmax(0, 1fr)); grid-template-rows: 26px repeat(10, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; background: var(--paper); overflow: hidden }
.wk-h { grid-row: 1; padding: 5px 4px; color: var(--muted); font-size: 11px; font-weight: 600; text-align: center; border-bottom: 1px solid var(--line) }
.wk-h.is-today { color: var(--primary) }
.wk-t { grid-column: 1; padding-left: 6px; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums }
.wk-today { grid-column: 4; grid-row: 2 / -1; background: #FBFAF7 }
.wk-now { grid-column: 4; grid-row: 2; align-self: end; height: 1.5px; background: var(--now) }
.ev { z-index: 1; margin: 2px 3px; padding: 3px 5px; border-radius: 6px; background: var(--accent); color: var(--primary); font-size: 10px; font-weight: 600; line-height: 1.25; overflow: hidden }
.ev.done { background: var(--ai-soft); color: var(--ai) }
.ev.next { background: var(--primary); color: #fff }
.ev.block { background: repeating-linear-gradient(135deg, #F1EFEA 0 6px, #E9E7E1 6px 12px); color: var(--muted) }
.ev.new { background: #fff; border: 1.5px solid var(--primary) }
.c1 { grid-column: 1 } .c2 { grid-column: 2 } .c3 { grid-column: 3 } .c4 { grid-column: 4 } .c5 { grid-column: 5 } .c6 { grid-column: 6 }
.r2 { grid-row: 2 / span 1 } .r3 { grid-row: 3 / span 1 } .r4 { grid-row: 4 / span 1 } .r5 { grid-row: 5 / span 2 } .r6 { grid-row: 6 } .r8 { grid-row: 8 } .r9 { grid-row: 9 / span 2 } .r10 { grid-row: 10 }
.wk-t.r2, .wk-t.r4, .wk-t.r6, .wk-t.r8, .wk-t.r10 { grid-row-end: span 1 }
.m-toast { align-self: flex-end; margin: 0; padding: 9px 12px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 12px }
.m-money { gap: 10px }
.m-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px }
.m-kpis > div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper) }
.m-kpis small { display: block; color: var(--muted); font-size: 11px }
.m-kpis strong { display: block; margin-top: 2px; font-size: 19px; font-variant-numeric: tabular-nums }
.m-kpis .money { color: var(--money) }
.m-money .m-h { margin: 4px 0 0 }
.m-rows { border: 1px solid var(--line); border-radius: 12px; background: var(--paper) }
.m-row { display: grid; grid-template-columns: minmax(0, 1.6fr) .7fr .8fr 74px; align-items: center; gap: 8px; padding: 9px 12px; font-size: 12.5px }
.m-row + .m-row { border-top: 1px solid var(--line) }
.m-row .num { text-align: right; font-variant-numeric: tabular-nums }
.m-badges { display: inline-grid; justify-items: start }
.m-badges > * { grid-area: 1 / 1; align-self: center }
.badge { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600 }
.badge.ok { background: var(--ai-soft); color: var(--ai) }
.badge.money { background: var(--money-soft); color: var(--money) }
.m-badges .badge.a-out { opacity: 0 }

/* Mobile/no-JS screens: same views, without the window chrome */
.mini-app .m-body { overflow: visible }
.mini-app .m-week { flex: none; grid-template-rows: 26px repeat(10, 30px) }
.mini-app .ev { font-size: 9px; padding: 2px 4px }

/* The patient's space */
.patient { background: var(--paper); border-top: 1px solid var(--line) }
.patient-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 96px; align-items: center; padding-block: 112px }
.patient .section-head { margin-bottom: 36px }
.patient-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin: 0; padding: 0 }
.patient-list li { padding: 20px 0; border-top: 1px solid var(--line) }
.patient-list h3 { margin: 0; font-size: 17px; font-weight: 600 }
.patient-list p { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.6 }
.phone-demo { margin: 0; justify-self: center }
.phone { width: 300px; padding: 10px; border-radius: 44px; background: var(--ink); box-shadow: 0 40px 80px -40px rgba(29, 51, 84, .45) }
.phone-screen { display: flex; flex-direction: column; gap: 10px; min-height: 580px; padding: 22px 14px 12px; border-radius: 34px; background: var(--canvas); overflow: hidden }
.ps-head { display: grid; gap: 2px; padding: 6px 4px 4px }
.ps-title { font-family: var(--serif); font-size: 24px; line-height: 1.1 }
.ps-hello { color: var(--muted); font-size: 13px }
.ps-card { display: grid; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper) }
.ps-card small { color: var(--muted); font-size: 11.5px }
.ps-card strong { font-size: 16px }
.ps-meta { color: var(--muted); font-size: 12.5px }
.ps-wide { margin-top: 8px; min-height: 38px; font-size: 13px }
.ps-links { display: flex; justify-content: center; gap: 18px; margin-top: 4px; color: var(--primary); font-size: 12.5px; font-weight: 600 }
.ps-row { display: flex; align-items: center; justify-content: space-between; gap: 10px }
.ps-row > span:first-child { display: grid }
.ps-doc { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-2) }
.ps-card .m-badges { justify-items: end }
.ps-card .m-badges > .a-out { opacity: 0 }
.ps-card .m-tick { margin-top: 4px; font-size: 13.5px }
.ps-tabs { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11.5px; text-align: center }
.ps-tabs .is-on { color: var(--primary); font-weight: 600 }
.phone-demo figcaption { margin-top: 14px; color: var(--muted); font-size: 12px; text-align: center }

.patient-more { display: inline-block; margin-top: 28px }
.steps-row { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin: 0; padding: 0 }
.steps-row li { counter-increment: step; padding-top: 20px; border-top: 1px solid var(--line) }
.steps-row li::before { content: counter(step); display: block; margin-bottom: 14px; color: var(--slate-ink); font-family: var(--serif); font-size: 30px; line-height: 1 }
.steps-row h3 { margin: 0; font-size: 18px; font-weight: 600 }
.steps-row p { margin: 8px 0 0; color: var(--ink-2); font-size: 16px; line-height: 1.65 }
.split div > p + p { margin-top: 18px }

/* The patient's week: same tour, with a phone instead of the app window */
.day-phone .day-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 96px }
.day-phone .tour-phone { margin-inline: auto }
@media (min-width: 1000px) { .js .day-phone .day-stage { top: calc(50vh - 300px) } }
.phone-stage { position: relative; height: 580px; min-height: 0; padding: 0 }
.phone-stage .scr { display: flex; flex-direction: column; gap: 10px; padding: 22px 14px 12px }
.mini-phone { max-width: 320px; border-radius: 28px }
.mini-phone .phone-screen { min-height: 0; border-radius: 0 }
.ps-form { gap: 10px }
.ps-field { display: grid; gap: 4px }
.ps-input { display: block; min-height: 34px; padding: 7px 10px; border: 1px solid var(--input); border-radius: 8px; background: #fff; font-size: 13.5px }
.ps-area { min-height: 72px; line-height: 1.45 }
.ps-wide { white-space: normal; text-align: center; padding-block: 8px; line-height: 1.3 }
.ps-pin { gap: 8px }
.pin-dots { display: flex; gap: 10px; margin: 2px 0 6px }
.pin-dots span { width: 14px; height: 14px; border-radius: 50%; background: var(--primary) }
.ps-note { margin: 0; padding: 0 4px; color: var(--muted); font-size: 12px; line-height: 1.45 }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 6px 0 4px }
.slot { padding: 7px 6px; border: 1px solid var(--input); border-radius: 8px; background: #fff; font-size: 12px; text-align: center }
.slot.sel { border-color: var(--primary); background: var(--primary); color: #fff; font-weight: 600 }
.ps-toast { align-self: center; text-align: center }
.ps-paper { gap: 8px }
.ps-paper i { display: block; height: 6px; border-radius: 3px; background: var(--sidebar) }
.ps-paper i + i { width: 60% }
@keyframes aSel { from { background: #fff; border-color: var(--input); color: var(--ink) } }
.is-armed .a-sel { animation: aSel .3s ease var(--d, 0s) both }

.text-link.on-dark { display: inline-block; margin-top: 28px; color: #fff; text-decoration-color: rgba(255, 255, 255, .45) }
.where { padding-block: 112px 96px }
.where-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; margin: 0 }
.where-list > div { padding: 22px 0; border-top: 1px solid var(--line) }
.where-list dt { font-size: 17px; font-weight: 600 }
.where-list dd { margin: 6px 0 0; color: var(--ink-2); font-size: 16px; line-height: 1.65 }
.quiet .who-head { padding-top: 96px }
.quiet .security-grid { padding-bottom: 96px }
.security-grid h3 { margin: 0; font-size: 19px; font-weight: 600 }

/* AI section */
.dark { background: var(--primary); color: #fff }
.dark .eyebrow { color: var(--slate-light) }
.dark .section-head h2 { color: #fff }
.dark .section-head > p:last-child:not(.eyebrow) { color: #D3DCE8 }
.ai-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: start; padding-block: 112px }
.ai-demo { display: grid; gap: 12px; max-width: 460px; margin: 0; padding: 20px; border-radius: 16px; background: var(--paper); color: var(--ink) }
.ai-demo .m-clin { font-size: 16px }
.ai-demo figcaption, .pii-demo figcaption { color: var(--muted); font-size: 12px }
.rules { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .2) }
.rules li { padding: 22px 0; border-bottom: 1px solid rgba(255, 255, 255, .16) }
.rules h3 { margin: 0; font-size: 17px; font-weight: 600 }
.rules p { margin: 6px 0 0; color: #C9D5E6; font-size: 15px; line-height: 1.65 }

/* Privacy */
.control { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; padding-block: 112px }
.privacy-side { display: grid; gap: 20px }
.pii-demo { display: grid; gap: 14px; margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper) }
.pii-label { display: inline-grid; color: var(--ink-2); font-size: 13px; font-weight: 600 }
.pii-label > * { grid-area: 1 / 1 }
.pii-label > :first-child { opacity: 0 }
.pii > * { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: -0.28em }
.pii-real { max-width: 0; opacity: 0 }
.pii-tok { padding: 0 4px; border-radius: 5px; background: var(--accent); color: var(--primary); font-family: var(--sans); font-size: .82em; font-weight: 600; line-height: 1.6 }
.facts { list-style: none; display: grid; gap: 0; margin: 0; padding: 0 }
.facts li { padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15px }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1fr); gap: 80px; padding-block: 64px 112px }
.faq > div:last-child { border-top: 1px solid var(--line) }
details { border-bottom: 1px solid var(--line) }
summary { position: relative; list-style: none; padding: 22px 40px 22px 0; font-size: 17px; font-weight: 600; cursor: pointer }
summary::-webkit-details-marker { display: none }
summary::after { content: "+"; position: absolute; right: 4px; top: 18px; color: var(--muted); font-size: 22px; font-weight: 300 }
details[open] summary::after { content: "–" }
details p { margin: -4px 40px 22px 0; color: var(--ink-2); font-size: 16px; line-height: 1.7 }

/* Closing call to action */
.cta { background: var(--primary) }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-block: 88px }
.cta h2 { color: #fff }
.cta-body { max-width: 560px; margin: 14px 0 0; color: #D3DCE8; font-size: 17px; line-height: 1.6 }

/* Inner pages */
.section { padding-block: 64px 112px }
.page-hero { padding-block: 96px 56px }
.page-hero h1 { max-width: 860px }
.page-hero > p:last-child { max-width: 720px; margin: 26px 0 0; color: var(--ink-2); font-size: 19px; line-height: 1.65 }
.security-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px }
.security-grid article { padding: 28px 0; border-top: 1px solid var(--line) }
.security-grid i { display: none }
.security-grid h2 { margin: 0; font-size: 19px; font-weight: 600 }
.security-grid p { margin: 8px 0 0; color: var(--ink-2); font-size: 16px; line-height: 1.65 }
.pricing { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; max-width: 720px; padding: 40px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper) }
.pricing > div > p:last-child { margin: 10px 0 0; color: var(--ink-2) }
.soon { height: fit-content; padding: 5px 10px; border-radius: 999px; background: var(--accent); color: var(--primary); font-size: 12px; font-weight: 600 }
.price, .pricing ul, .pricing .button { grid-column: 1 / -1 }
.price { font-size: 22px; font-weight: 600 }
.pricing ul { display: grid; gap: 12px; margin: 0; padding: 24px 0; border-top: 1px solid var(--line); list-style: none }
.pricing li { padding-left: 22px; position: relative; color: var(--ink-2) }
.pricing li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary) }
.pricing .button { width: max-content }
.about { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: 96px }
.about p { color: var(--ink-2); font-size: 17px; line-height: 1.7 }
.principles { border-top: 1px solid var(--line) }
.principles article { padding: 22px 0; border-bottom: 1px solid var(--line) }
.principles article > span { display: none }
.principles h3 { margin: 0; font-size: 17px; font-weight: 600 }
.principles p { margin: 6px 0 0; font-size: 16px }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .7fr); gap: 24px }
.contact.single { grid-template-columns: minmax(0, 640px) }
.contact article { padding: 36px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper) }
.contact p { color: var(--ink-2) }
.contact .button { margin-top: 12px }

/* Pre-access form */
.waitlist { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 64px; align-items: start; padding-top: 0 }
.waitlist-form:not([hidden]), .waitlist-done:not([hidden]) { display: grid }
.waitlist-form, .waitlist-done { gap: 18px; padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper) }
.field { display: grid; gap: 7px }
.field label { font-size: 14px; font-weight: 600 }
.field label span { color: var(--muted); font-weight: 400 }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 13px; border: 1px solid var(--input); border-radius: 10px; background: #fff; color: var(--ink); font: 400 16px var(--sans) }
.field textarea { min-height: 76px; resize: vertical }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; color: var(--ink-2); font-size: 14px; line-height: 1.6; cursor: pointer }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--primary) }
.form-error { margin: 0; color: var(--danger); font-size: 14px; font-weight: 600 }
.waitlist-form .button { justify-self: start }
.waitlist-form .button:disabled { opacity: .6; cursor: progress }
.privacy-note { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.65 }
.privacy-note a { text-decoration: underline; text-underline-offset: 2px }
.waitlist-done p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.7 }
.waitlist-next h2 { margin: 0 0 16px; font-size: 18px; font-weight: 600 }
.waitlist-next ol { display: grid; gap: 14px; margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 16px; line-height: 1.65 }

.waitlist-form fieldset { display: grid; gap: 18px; min-width: 0; margin: 0; padding: 0; border: 0 }
.waitlist-form.is-closed fieldset { opacity: .55 }
.waitlist-form.is-closed .button { cursor: not-allowed }
.waitlist-closed-note { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--accent); color: var(--primary); font-size: 14px; font-weight: 600 }

/* Legal drafts */
.legal { max-width: 860px }
.notice { padding: 24px 28px; border-left: 3px solid var(--primary); background: var(--paper) }
.notice p { margin: 10px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.7 }
.legal h2 { margin-top: 44px; font-size: 20px }
.legal > p { color: var(--ink-2); line-height: 1.7 }

/* Footer */
.site-footer { padding-top: 72px; border-top: 1px solid var(--line) }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, .7fr); gap: 48px; padding-bottom: 56px }
.footer-brand img { width: 140px }
.footer-brand p { max-width: 280px; color: var(--muted); font-size: 14px }
.footer-grid h2 { margin: 0 0 16px; color: var(--ink-2); font-size: 14px; font-weight: 600 }
.footer-grid > div:not(:first-child) a { display: block; margin: 10px 0; color: var(--muted); font-size: 14px }
.footer-grid > div:not(:first-child) a:hover { color: var(--ink) }
.footer-bottom { display: flex; justify-content: space-between; padding-block: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px }

/* Demo motion. The markup is the final state; client.js arms and plays it.
   tN = start N × 0.1 s after the demo starts playing. */
.t1{--d:0.1s}.t2{--d:0.2s}.t3{--d:0.3s}.t4{--d:0.4s}.t5{--d:0.5s}.t6{--d:0.6s}.t7{--d:0.7s}.t8{--d:0.8s}.t9{--d:0.9s}.t10{--d:1s}.t11{--d:1.1s}.t12{--d:1.2s}.t13{--d:1.3s}.t14{--d:1.4s}.t15{--d:1.5s}.t16{--d:1.6s}.t17{--d:1.7s}.t18{--d:1.8s}.t19{--d:1.9s}.t20{--d:2s}.t21{--d:2.1s}.t22{--d:2.2s}.t23{--d:2.3s}.t24{--d:2.4s}.t25{--d:2.5s}.t26{--d:2.6s}.t27{--d:2.7s}.t28{--d:2.8s}.t29{--d:2.9s}.t30{--d:3s}.t31{--d:3.1s}.t32{--d:3.2s}.t33{--d:3.3s}.t34{--d:3.4s}.t35{--d:3.5s}.t36{--d:3.6s}.t37{--d:3.7s}.t38{--d:3.8s}.t39{--d:3.9s}.t40{--d:4s}.t41{--d:4.1s}.t42{--d:4.2s}.t43{--d:4.3s}.t44{--d:4.4s}.t45{--d:4.5s}.t46{--d:4.6s}.t47{--d:4.7s}.t48{--d:4.8s}.t49{--d:4.9s}.t50{--d:5s}.t51{--d:5.1s}.t52{--d:5.2s}.t53{--d:5.3s}.t54{--d:5.4s}.t55{--d:5.5s}.t56{--d:5.6s}.t57{--d:5.7s}.t58{--d:5.8s}.t59{--d:5.9s}.t60{--d:6s}.t61{--d:6.1s}.t62{--d:6.2s}.t63{--d:6.3s}.t64{--d:6.4s}.t65{--d:6.5s}.t66{--d:6.6s}.t67{--d:6.7s}.t68{--d:6.8s}.t69{--d:6.9s}.t70{--d:7s}.t71{--d:7.1s}.t72{--d:7.2s}.t73{--d:7.3s}.t74{--d:7.4s}.t75{--d:7.5s}.t76{--d:7.6s}.t77{--d:7.7s}.t78{--d:7.8s}.t79{--d:7.9s}.t80{--d:8s}.t81{--d:8.1s}.t82{--d:8.2s}.t83{--d:8.3s}.t84{--d:8.4s}.t85{--d:8.5s}.t86{--d:8.6s}.t87{--d:8.7s}.t88{--d:8.8s}.t89{--d:8.9s}.t90{--d:9s}.t91{--d:9.1s}.t92{--d:9.2s}.t93{--d:9.3s}.t94{--d:9.4s}.t95{--d:9.5s}.t96{--d:9.6s}.t97{--d:9.7s}.t98{--d:9.8s}.t99{--d:9.9s}.t100{--d:10s}

@keyframes aIn { from { opacity: 0; transform: translateY(6px) } }
@keyframes aPop { from { opacity: 0; transform: scale(.88) } }
@keyframes aOut { from { opacity: 1 } to { opacity: 0 } }
@keyframes aFlash { 0% { opacity: 0 } 12% { opacity: 1 } 85% { opacity: 1 } 100% { opacity: 0 } }
@keyframes aPress { 0%, 100% { transform: scale(1) } 45% { transform: scale(.94); background: #2E4C78 } }
@keyframes aWord { from { opacity: 0 } }
@keyframes aDraw { from { stroke-dashoffset: 1 } to { stroke-dashoffset: 0 } }
@keyframes aCheck { from { background: #fff; border-color: var(--input) } }
@keyframes aTick { from { opacity: 0; transform: translateY(-1px) rotate(-45deg) scale(.4) } }
@keyframes aSwap { 0% { max-width: 12em; opacity: 1; background: transparent } 40% { max-width: 12em; opacity: 1; background: #FBE7A6 } 70% { max-width: 12em; opacity: 0; background: #FBE7A6 } 100% { max-width: 0; opacity: 0 } }
@keyframes aGrow { from { max-width: 0; opacity: 0; padding-inline: 0 } 60% { opacity: 0 } to { max-width: 10em; opacity: 1 } }
.is-armed .a-in { animation: aIn .5s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) both }
.is-armed .a-pop { animation: aPop .4s cubic-bezier(.2, .8, .3, 1.15) var(--d, 0s) both }
.is-armed .a-out { animation: aOut .3s ease var(--d, 0s) both }
.is-armed .a-flash { animation: aFlash 1.1s ease var(--d, 0s) both }
.is-armed .a-press { animation: aPress .45s ease var(--d, 0s) both }
.is-armed .a-type .w { animation: aWord .3s ease calc(var(--d, 0s) + var(--w, 0) * 45ms) both }
.is-armed .a-draw { stroke-dasharray: 1; animation: aDraw .7s ease var(--d, 0s) both }
.is-armed .cb.a-check { animation: aCheck .25s ease var(--d, 0s) both }
.is-armed .cb.a-check::after { animation: aTick .3s ease calc(var(--d, 0s) + .1s) both }
.is-armed .a-swap { border-radius: 4px; animation: aSwap 1.2s ease var(--d, 0s) both }
.is-armed .a-grow { animation: aGrow .5s ease var(--d, 0s) both }
.a-pop, .a-press { transform-box: fill-box; transform-origin: center }
.is-armed:not(.is-playing) *, .is-armed:not(.is-playing) *::after, .is-paused *, .is-paused *::after { animation-play-state: paused !important }
.is-fading .hd-dyn { opacity: 0 }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  *, *::before, *::after { animation: none !important; transition: none !important }
}

/* Responsive */
@media (max-width: 999px) {
  .desktop-nav, .header-actions > .button { display: none }
  .menu { display: block }
  .hero { grid-template-columns: 1fr; gap: 48px; padding-block: 48px 72px }
  .day { padding-block: 80px 48px }
  .day-grid { grid-template-columns: 1fr }
  .day-phone .day-grid { grid-template-columns: 1fr }
  .ai-block, .control, .faq, .about, .contact, .waitlist { grid-template-columns: 1fr; gap: 48px }
  .patient-grid { grid-template-columns: 1fr; gap: 56px; padding-block: 80px }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1 }
}
@media (max-width: 640px) {
  :root { --shell: calc(100vw - 2 * max(20px, env(safe-area-inset-left, 0px))) }
  .header-inner { height: 64px }
  .brand img { width: 128px }
  .hero-lead, .page-hero > p:last-child { font-size: 17px }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 18px }
  .hd-card { padding: 16px }
  .hd-top { flex-direction: column }
  .split { grid-template-columns: 1fr; gap: 8px; padding-block: 64px }
  .day-step { grid-template-columns: 1fr; gap: 4px }
  .m-note, .m-people { grid-template-columns: 1fr }
  .m-row { grid-template-columns: minmax(0, 1.4fr) .8fr 74px }
  .m-row > :nth-child(2) { display: none }
  .m-tabs { gap: 10px }
  .ai-block, .control { padding-block: 72px }
  .faq { padding-block: 32px 72px }
  .cta-inner { flex-direction: column; align-items: flex-start; padding-block: 64px }
  .security-grid { grid-template-columns: 1fr }
  .patient-list { grid-template-columns: 1fr }
  .where-list { grid-template-columns: 1fr }
  .steps-row { grid-template-columns: 1fr; gap: 28px }
  .phone { width: 280px }
  .phone-screen { min-height: 560px }
  .pricing { padding: 28px 22px; grid-template-columns: 1fr }
  .soon, .price, .pricing ul, .pricing .button { grid-column: 1 }
  .waitlist-form, .waitlist-done { padding: 24px 20px }
  .footer-grid { grid-template-columns: 1fr 1fr }
  .footer-bottom { flex-direction: column; gap: 6px }
}
