/* oneybt.com — one near-black page, soft filled cards, pill actions. Dark is the default;
   [data-theme="light"] swaps the ladder. Product demos are drawn in markup and loop quietly:
   they rest while off screen, stop for reduced motion, and can be paused by the visitor. */

@font-face { font-family: "Geist"; src: url("/shared/fonts/GeistVariable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Liberation Sans"); size-adjust: 103%; ascent-override: 98%; descent-override: 29%; line-gap-override: 0%; }
@font-face { font-family: "Geist Mono"; src: url("/shared/fonts/GeistMonoVariable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --card: #1a1a1a;
  --card-2: #1a1a1a;
  --chip: #202020;
  --chip-hover: #2a2a2a;
  --fg: #ffffff;
  --fg-2: rgba(255, 255, 255, 0.68);
  --fg-3: rgba(255, 255, 255, 0.52);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --btn-bg: #ffffff;
  --btn-fg: #0a0a0a;
  --btn-hover: #e4e4e4;
  --track: rgba(255, 255, 255, 0.25);
  --accent: #ff6308;
  --accent-bg: rgba(255, 99, 8, 0.14);
  --live: #4ade80;
  --danger: #e5484d;
  --warn: #fbbf24;
  --warn-bg: rgba(251, 191, 36, 0.08);
  --warn-line: rgba(251, 191, 36, 0.36);
  --panel: linear-gradient(140deg, #141414 0%, #2c2c2c 46%, #5a5a5a 78%, #1d1d1d 100%);
  --sans: "Geist", "Geist Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --card: #f5f5f5;
  --card-2: #f5f5f5;
  --chip: #ececec;
  --chip-hover: #e2e2e2;
  --fg: #0a0a0a;
  --fg-2: rgba(10, 10, 10, 0.68);
  --fg-3: rgba(10, 10, 10, 0.64);
  --line: rgba(10, 10, 10, 0.09);
  --line-2: rgba(10, 10, 10, 0.18);
  --btn-bg: #0a0a0a;
  --btn-fg: #ffffff;
  --btn-hover: #2a2a2a;
  --track: rgba(10, 10, 10, 0.2);
  --accent: #9a3412;
  --accent-bg: rgba(234, 88, 12, 0.12);
  --live: #0f7b41;
  --danger: #c2242f;
  --warn: #7a5200;
  --warn-bg: rgba(154, 103, 0, 0.08);
  --warn-line: rgba(154, 103, 0, 0.36);
  --panel: linear-gradient(140deg, #f1f1f1 0%, #dcdcdc 46%, #b9b9b9 78%, #ececec 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/26px var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
::selection { background: color-mix(in srgb, var(--fg) 24%, transparent); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Moving between pages cross-fades; the header holds still. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.22s; }
.site-header { view-transition-name: site-header; }
:focus-visible { outline: 2px solid #339cff; outline-offset: 2px; border-radius: 8px; }
main { overflow-x: clip; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.wrap { max-width: 1280px; margin-inline: auto; padding-inline: 24px; }

/* Actions: filled pills, no outlines */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding-inline: 18px; border-radius: 9999px; font-size: 14px; font-weight: 500; white-space: nowrap; transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease; }
.pill:active { transform: scale(0.98); }
.pill.lg { height: 44px; padding-inline: 20px; font-size: 15px; }
.pill.primary { background: var(--btn-bg); color: var(--btn-fg); }
.pill.primary:hover { background: var(--btn-hover); }

/* A chevron that grows a stem and becomes an arrow under the pointer */
.go { overflow: visible; }
.go path { transition: opacity 0.15s ease, transform 0.15s ease; }
.go .go-line { opacity: 0; }
.go .go-head { transform: translateX(-3px); }
a:hover .go .go-line { opacity: 1; }
a:hover .go .go-head { transform: none; }
.pill.soft { background: var(--chip); }
.pill.soft:hover { background: var(--chip-hover); }
.pill.line { border: 1px solid var(--line-2); }
.pill.line:hover { background: var(--chip); }
.pill .icon { width: 14px; height: 14px; stroke-width: 2; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.skip-link { position: absolute; left: 24px; top: -80px; z-index: 30; padding: 8px 14px; border-radius: 9999px; background: var(--btn-bg); color: var(--btn-fg); font-size: 14px; font-weight: 500; }
.skip-link:focus { top: 12px; }

/* Motion can be stopped by the visitor, and rests while off screen */
[data-motion="off"] *, [data-motion="off"] *::before, [data-motion="off"] *::after, .is-idle *, .is-idle *::before, .is-idle *::after { animation-play-state: paused !important; }
html:not(.js) .tabs, html:not(.js) .foot-controls { display: none; }
html:not(.js) .screen { display: block; }
html:not(.js) .screen + .screen { display: none; }

.menu { display: none; }
.menu summary { display: grid; place-content: center; gap: 5px; width: 44px; height: 44px; border-radius: 50%; background: var(--chip); cursor: pointer; list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { width: 16px; height: 1.5px; background: var(--fg); transition: transform 0.2s ease; }
.menu[open] summary span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu[open] summary span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.menu ul { position: fixed; inset: 64px 0 0; display: flex; flex-direction: column; padding: 8px 16px 32px; background: var(--bg); overflow-y: auto; }
.menu li a:not(.pill) { display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 500; }
.menu li .pill { width: 100%; height: 48px; margin-top: 24px; }

/* Header: clear over the hero, solid once the page moves */
.site-header { position: fixed; inset: 0 0 auto; z-index: 10; height: 64px; border-bottom: 1px solid transparent; transition: background-color 0.2s ease, border-color 0.2s ease; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; background: color-mix(in srgb, var(--bg) 85%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: opacity 0.2s ease; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-scrolled::before { opacity: 1; }
.site-header .wrap { display: flex; align-items: center; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 8px; margin-right: 44px; }
.brand-mark { width: 22px; height: 22px; }
.wordmark { font-size: 16px; font-weight: 650; letter-spacing: -0.03em; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--fg-2); font-size: 13px; font-weight: 500; transition: color 0.15s ease, background-color 0.15s ease; }
.site-nav a:hover { color: var(--fg); background: var(--chip); }
/* The page you are on is simply the white one; a filled box behind it read as a stray selection. */
.site-nav a[aria-current="page"] { color: var(--fg); }
.header-actions { display: flex; gap: 8px; margin-left: auto; }

/* Hero: centred, one sentence, two actions */
.hero { display: flex; flex-direction: column; align-items: center; padding-top: 148px; text-align: center; }
.news { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 8px 0 10px; border: 1px solid var(--line); border-radius: 9999px; background: color-mix(in srgb, var(--card) 60%, transparent); font-size: 13px; line-height: 20px; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.news:hover { border-color: var(--line-2); background: var(--card); color: var(--fg-2); }
.news:hover .tag { color: var(--accent); }
.news:hover .go { background: var(--chip-hover); color: var(--fg); }
.news b { font-weight: 500; }
.news .tag { padding: 4px 8px; border-radius: 9999px; background: var(--accent-bg); color: var(--accent); font-size: 11px; line-height: 11px; font-weight: 500; }
.news .go { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--chip); transition: background-color 0.15s ease; }
.news .go .icon { width: 11px; height: 11px; stroke-width: 2; }
h1 { letter-spacing: -0.01em; }
.hero h1 { margin-top: 36px; font-size: 60px; line-height: 62px; font-weight: 450; }
.rot { display: inline-grid; justify-items: center; vertical-align: bottom; }
.rot-word { grid-area: 1 / 1; visibility: hidden; white-space: nowrap; }
.rot-word.is-on { visibility: visible; animation: word 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.rot-text { position: relative; display: inline-block; }
.rot-text[data-word]::before { content: attr(data-word); }
.rot-word[aria-hidden]::after { content: "."; }
/* The line under the word: a quiet track, drawn in from the left, with one pass of colour per word. */
.rot-text::after { content: ""; position: absolute; inset: auto 0 -4px; height: 3px; border-radius: 9999px; transform-origin: left center; background-image: linear-gradient(90deg, var(--track) 0%, var(--track) 35%, #6366f1 40%, #a855f7 45%, #ec4899 50%, #f97316 55%, #eab308 60%, var(--track) 65%, var(--track) 100%); background-size: 400% 100%; background-position: 100% 0; }
.rot-word.is-on .rot-text::after { animation: line-draw 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both, line-shimmer 3s linear 0.4s both; }
@keyframes line-draw { from { transform: scaleX(0); } }
@keyframes line-shimmer { from { background-position: 100% 0; } to { background-position: 0% 0; } }
@keyframes word { from { opacity: 0; transform: translateY(0.25em); filter: blur(6px); } }
.hero-sub { margin-top: 20px; font-size: 18px; line-height: 28px; }
.hero .actions { justify-content: center; margin-top: 32px; }
.hero .news, .hero-sub, .hero .actions, .bento { animation: arrive 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-sub { animation-delay: 0.3s; }
.hero .actions { animation-delay: 0.38s; }
.bento { animation-delay: 0.5s; }
.hero h1 .w { display: inline-block; animation: arrive-word 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero h1 .w:nth-child(1) { animation-delay: 0.06s; }
.hero h1 .w:nth-child(2) { animation-delay: 0.12s; }
.hero h1 .w:nth-child(3) { animation-delay: 0.18s; }
.hero h1 .rot { animation: arrive-word 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.24s both; }
@keyframes arrive { from { opacity: 0; transform: translateY(10px); } }
@keyframes arrive-word { from { opacity: 0; transform: translateY(0.3em); filter: blur(8px); } }


/* Product cards: each one shows its part of the product working */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 80px; }
.demo { position: relative; display: block; grid-column: span 2; height: 280px; border-radius: 16px; background: var(--card); overflow: hidden; }
.demo.wide { grid-column: span 3; }
.demo-foot { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; align-items: center; padding: 40px 16px 14px; background: linear-gradient(transparent, var(--card) 58%); font-size: 15px; font-weight: 500; }
.demo-foot { z-index: 1; }
.demo-foot span:last-child { display: inline-flex; align-items: center; gap: 6px; transition: color 0.15s ease; }
.demo:hover .demo-foot span:last-child { color: var(--fg-2); }
a.demo .stage { transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
a.demo:hover .stage { transform: scale(1.02); }
.demo:hover .demo-foot .icon { transform: translateX(2px); }
.demo-foot .icon { width: 14px; height: 14px; transition: transform 0.15s ease; }
.stage { position: absolute; inset: 0 0 52px; padding: 18px 20px 0; font-size: 13px; line-height: 20px; color: var(--fg-2); }
.stage small { display: block; color: var(--fg-3); font-size: 12px; line-height: 16px; }

.avatar { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--chip); color: var(--fg); font-size: 10px; font-weight: 600; letter-spacing: 0.02em; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding-inline: 11px; border-radius: 9999px; background: var(--chip); color: var(--fg); font-size: 12px; font-weight: 500; }
.chip.on { background: var(--btn-bg); color: var(--btn-fg); }
.chip .icon { width: 12px; height: 12px; }
.mono { font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums; }

/* Notes: the note writes itself line by line */
.note-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--fg); font-weight: 500; }
.note-head .chip { margin-left: auto; }
.note-label { margin-top: 14px; color: var(--fg-3); font-size: 12px; line-height: 16px; }
.type { display: inline-block; max-width: 100%; margin-top: 3px; overflow: hidden; color: var(--fg); white-space: nowrap; vertical-align: bottom; border-right: 1.5px solid transparent; }
.type.t1 { animation: type1 11s steps(44, end) infinite; }
.type.t2 { animation: type2 11s steps(30, end) infinite; }
@keyframes type1 { 0% { max-width: 0; border-color: var(--fg); } 26% { max-width: 100%; border-color: var(--fg); } 27%, 92% { max-width: 100%; border-color: transparent; } 100% { max-width: 0; } }
@keyframes type2 { 0%, 30% { max-width: 0; border-color: transparent; } 31% { max-width: 0; border-color: var(--fg); } 52% { max-width: 100%; border-color: var(--fg); } 53%, 92% { max-width: 100%; border-color: transparent; } 100% { max-width: 0; } }

/* Video visits: the transcript keeps arriving */
.visit { display: grid; grid-template-columns: 112px 1fr; gap: 14px; height: 100%; }
.visit-tile { position: relative; display: grid; place-items: center; height: 150px; border-radius: 14px; background: var(--chip); }
.visit-tile .avatar { width: 52px; height: 52px; background: var(--card); font-size: 16px; font-weight: 500; }
.visit-tile .mono { position: absolute; left: 8px; bottom: 6px; color: var(--fg-2); font-size: 11px; }
.rec { position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 5px; color: var(--fg-2); font-size: 10px; line-height: 12px; }
.rec::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--live); animation: pulse 2s ease-in-out infinite; }
.feed-mask { height: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 74%, transparent); mask-image: linear-gradient(transparent, #000 18%, #000 74%, transparent); }
.feed { display: grid; gap: 8px; animation: feed 18s linear infinite; }
.feed p { padding: 8px 12px; border-radius: 14px; background: var(--chip); color: var(--fg); font-size: 12px; line-height: 17px; }
.feed p:nth-child(even) { margin-left: 18px; background: none; box-shadow: inset 0 0 0 1px var(--line-2); }
@keyframes feed { to { transform: translateY(calc(-50% - 4px)); } }
@keyframes pulse { 50% { opacity: 0.35; } }

/* Phone: a call rings against the patient's record */
.call { display: flex; flex-direction: column; align-items: center; padding-top: 30px; text-align: center; }
.ring { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--chip); color: var(--fg); }
.ring::before, .ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line-2); animation: ring 2.4s ease-out infinite; }
.ring::after { animation-delay: 1.2s; }
.ring .icon { width: 24px; height: 24px; stroke-width: 1.5; }
@keyframes ring { from { transform: scale(1); opacity: 1; } to { transform: scale(2.1); opacity: 0; } }
.call-name { margin-top: 16px; color: var(--fg); font-size: 16px; font-weight: 500; }
.call .chips { display: flex; gap: 8px; margin-top: 14px; }

/* Intake: a patient's answers land on the day's schedule */
.intake { display: grid; grid-template-columns: 190px 1fr; gap: 20px; height: 100%; }
.form { padding: 14px; border-radius: 16px 16px 0 0; background: var(--chip); }
.bar { height: 3px; margin: 8px 0 12px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.bar::after { content: ""; display: block; width: 50%; height: 100%; border-radius: 3px; background: var(--fg); animation: bar 6s ease-in-out infinite; }
@keyframes bar { 0%, 15% { width: 33%; } 45%, 60% { width: 50%; } 90%, 100% { width: 66%; } }
.field { margin-top: 8px; padding: 7px 10px; border-radius: 10px; background: var(--card); color: var(--fg); font-size: 12px; line-height: 16px; }
.field small { font-size: 10px; line-height: 14px; }
.sched li { display: grid; grid-template-columns: 40px 28px 1fr auto; align-items: center; gap: 10px; padding-block: 9px; border-bottom: 1px solid var(--line); color: var(--fg); }
.sched small { font-size: 11px; }
.status { display: inline-flex; align-items: center; gap: 6px; color: var(--fg-2); font-size: 12px; }
.status.live { color: var(--fg); }
.status.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--live); animation: pulse 2s ease-in-out infinite; }

/* Access: each read and write lands in the log */
.log { width: 100%; border-collapse: collapse; text-align: left; }
.log th { padding: 0 12px 8px 0; border-bottom: 1px solid var(--line); color: var(--fg-3); font-size: 12px; font-weight: 400; }
.log td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); color: var(--fg); }
.log td.mono { color: var(--fg-2); }
.log tbody tr { animation: row 9s ease-in-out infinite both; }
.log tbody tr:nth-child(2) { animation-delay: 0.5s; }
.log tbody tr:nth-child(3) { animation-delay: 1s; }
.log tbody tr:nth-child(4) { animation-delay: 1.5s; }
@keyframes row { 0% { opacity: 0; transform: translateY(6px); } 8%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* Split section */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: center; margin-top: 192px; }
.eyebrow { color: var(--fg-3); font-size: 15px; line-height: 20px; font-weight: 500; }
h2 { margin-top: 20px; font-size: 48px; line-height: 50px; font-weight: 500; letter-spacing: -0.01em; text-wrap: balance; }
.split p { max-width: 460px; margin-top: 16px; }
.split .actions { margin-top: 28px; }
.facts { display: flex; gap: 28px; margin-top: 36px; }
.facts b { display: block; font-size: 15px; line-height: 20px; font-weight: 600; }
.facts span { color: var(--fg-3); font-size: 12px; line-height: 18px; }
.panel { position: relative; padding: 48px 48px 0; background: var(--panel); overflow: hidden; }
.panel::before { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E"); mix-blend-mode: overlay; opacity: 0.55; }
.window { position: relative; height: 372px; border: 1px solid var(--line-2); border-bottom: 0; border-radius: 14px 14px 0 0; background: var(--bg); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 6px; height: 40px; padding-inline: 14px; border-bottom: 1px solid var(--line); color: var(--fg-3); font-size: 12px; }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--chip-hover); }
.window-bar span { margin-left: auto; }
.screen { display: none; padding: 18px 20px; font-size: 13px; line-height: 20px; color: var(--fg-2); }
.screen.is-on { display: block; animation: word 0.35s ease; }
.screen small { display: block; color: var(--fg-3); font-size: 12px; line-height: 16px; }
.screen .big { margin-top: 14px; color: var(--fg); font-size: 20px; line-height: 28px; font-weight: 500; }
.screen .prose { margin-top: 3px; color: var(--fg); font-size: 14px; line-height: 22px; }
.tabs { position: relative; display: flex; gap: 4px; margin-top: 16px; }
.tab-pill { position: absolute; left: 0; top: 0; height: 32px; border-radius: 9999px; background: var(--chip); transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1), width 0.28s cubic-bezier(0.2, 0.7, 0.2, 1); }
.tabs button { position: relative; z-index: 1; }
.tabs.has-pill button[aria-selected="true"] { background: none; }
.tabs button { height: 32px; padding-inline: 12px; border: 0; border-radius: 9999px; background: none; color: var(--fg-3); font: 500 14px/20px var(--sans); cursor: pointer; transition: color 0.15s ease; }
.tabs button:hover { color: var(--fg); }
.tabs button[aria-selected="true"] { background: var(--chip); color: var(--fg); }

/* Figures */
.figures { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 144px; padding-block: 40px; border-block: 1px solid var(--line); }
.figures div { padding-left: 40px; border-left: 1px solid var(--line); }
.figures div:first-child { padding-left: 0; border-left: 0; }
.figures b { display: block; font-size: 48px; line-height: 60px; font-weight: 500; letter-spacing: -0.02em; }
.figures span { display: block; margin-top: 12px; color: var(--fg-2); font-size: 15px; line-height: 22px; }

/* Protection cards */
.band { margin-top: 128px; }
.band-head { display: flex; justify-content: space-between; align-items: baseline; }
h3.title { font-size: 30px; line-height: 36px; font-weight: 500; letter-spacing: -0.01em; }
.more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; }
.more .icon { width: 12px; height: 12px; stroke-width: 2; }
.vault { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.vault .demo { grid-column: auto; height: 320px; }
.vault .stage { padding: 26px 28px 0; }

/* Encryption: packets cross a lock in transit; records sit sealed at rest */
.enc { display: grid; grid-template-columns: 78px 1fr; align-content: center; align-items: center; row-gap: 24px; padding-bottom: 12px; }
.enc > small { align-self: start; padding-top: 9px; }
.wire { display: flex; align-items: center; gap: 12px; }
.node { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding-inline: 12px; border-radius: 10px; background: var(--chip); color: var(--fg); font-size: 13px; font-weight: 500; white-space: nowrap; }
.path { position: relative; flex: 1; height: 28px; }
.path::before { content: ""; position: absolute; inset: 50% 0 auto; border-top: 1px dashed var(--line-2); }
.path i { position: absolute; left: 0; top: 50%; width: calc(100% - 6px); height: 6px; margin-top: -3px; animation: travel 2.7s linear infinite; }
.path i::before { content: ""; position: absolute; left: 0; top: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--fg); }
.path i:nth-child(2) { animation-delay: -0.9s; }
.path i:nth-child(3) { animation-delay: -1.8s; }
@keyframes travel { 0% { transform: translateX(0); opacity: 0; } 8% { opacity: 1; } 42% { opacity: 1; } 50% { opacity: 0.15; } 58% { opacity: 1; } 92% { opacity: 1; } 100% { transform: translateX(100%); opacity: 0; } }
.path .lock { position: absolute; left: 50%; top: 50%; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--fg); }
.path .lock .icon { width: 13px; height: 13px; }
.sealed { display: grid; gap: 6px; min-width: 0; }
.sealed p { display: flex; align-items: center; gap: 10px; height: 32px; padding-inline: 12px; border-radius: 10px; background: var(--chip); color: var(--fg); font-family: var(--mono); font-size: 12px; white-space: nowrap; overflow: hidden; transition: color 0.3s ease; }
.sealed .icon { width: 13px; height: 13px; color: var(--fg-3); transition: color 0.3s ease; }
.sealed p.is-sealed { color: var(--fg-2); }
.sealed p.is-sealed .icon { color: var(--live); }

/* Video: the visit ends and the picture is gone; the transcript and note remain */
.norec { display: grid; grid-template-columns: 216px 20px 1fr; align-items: center; column-gap: 16px; }
.norec-wrap { position: relative; }
.norec-tile { display: grid; place-items: center; height: 172px; border-radius: 16px; background: var(--chip); animation: visit 10s ease-in-out infinite; }
.norec-tile .avatar { width: 56px; height: 56px; background: var(--card); font-size: 17px; font-weight: 500; }
.norec-badge { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding-inline: 9px; border-radius: 9999px; background: var(--card); color: var(--fg); font-size: 11px; font-weight: 500; }
.norec-badge .icon { width: 12px; height: 12px; }
.norec-state { position: absolute; left: 12px; bottom: 10px; color: var(--fg-2); font-size: 11px; line-height: 14px; }
.norec-state span { position: absolute; left: 0; bottom: 0; white-space: nowrap; }
.norec-state span:first-child { animation: during 10s ease-in-out infinite; }
.norec-state span:last-child { animation: after 10s ease-in-out infinite; }
.norec > .icon { color: var(--fg-3); }
.remains { animation: after-dim 10s ease-in-out infinite; }
.remains .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.remains .said { margin-top: 10px; padding: 8px 12px; border-radius: 12px; background: var(--chip); color: var(--fg); font-size: 12px; line-height: 17px; }
@keyframes visit { 0%, 40% { opacity: 1; } 52%, 90% { opacity: 0.16; } 100% { opacity: 1; } }
@keyframes during { 0%, 40% { opacity: 1; } 50%, 92% { opacity: 0; } 100% { opacity: 1; } }
@keyframes after { 0%, 42% { opacity: 0; } 52%, 90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes after-dim { 0%, 40% { opacity: 0.42; } 52%, 90% { opacity: 1; } 100% { opacity: 0.42; } }

/* Agreement: both parties sign */
.baa { display: grid; justify-items: center; }
.paper { position: relative; width: min(400px, 100%); height: 100%; padding: 18px 22px 0; border-radius: 14px 14px 0 0; background: var(--chip); }
.paper-title { color: var(--fg); font-size: 13px; font-weight: 500; }
.paper .rule[data-short] { width: 62%; }
.paper .rule { display: block; height: 5px; margin-top: 9px; border-radius: 3px; background: var(--line-2); }
.signs { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 62px; }
.signs div { position: relative; padding-top: 6px; border-top: 1px solid var(--line-2); }
.sig { position: absolute; left: 0; bottom: calc(100% - 4px); width: 132px; height: 40px; fill: none; stroke: var(--fg); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.sig path { stroke-dasharray: 320; stroke-dashoffset: 320; }
.sig .s1 { animation: sign1 9s ease-in-out infinite; }
.sig .s2 { animation: sign2 9s ease-in-out infinite; }
.signed { position: absolute; right: -16px; top: -12px; background: var(--btn-bg); color: var(--btn-fg); animation: stamp 9s ease-in-out infinite; }
@keyframes sign1 { 0%, 6% { stroke-dashoffset: 320; opacity: 1; } 28%, 93% { stroke-dashoffset: 0; opacity: 1; } 98%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes sign2 { 0%, 34% { stroke-dashoffset: 320; opacity: 1; } 56%, 93% { stroke-dashoffset: 0; opacity: 1; } 98%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes stamp { 0%, 58% { opacity: 0; transform: scale(0.9); } 63%, 93% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }

/* Ownership: every record carries the practice as its owner */
.own { display: flex; flex-direction: column; justify-content: center; padding-bottom: 12px; }
.own-head { display: flex; align-items: center; gap: 10px; }
.own-head .dim { margin-left: auto; background: none; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--fg-2); }
.own-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.own-grid li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--chip); color: var(--fg); font-size: 13px; line-height: 18px; white-space: nowrap; }
.own-grid .avatar { background: var(--card); }

/* Two ways in */
.start { margin-top: 128px; padding-top: 96px; border-top: 1px solid var(--line); }
.start > h3 { text-align: center; }
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.way { display: flex; flex-direction: column; padding: 40px; border-radius: 20px; background: var(--card-2); }
.way h4, .way h2 { margin: 0; font-size: 24px; line-height: 32px; font-weight: 500; letter-spacing: -0.01em; }
.way > p { margin-top: 10px; }
.way ul { flex: 1; display: grid; align-content: start; gap: 10px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; line-height: 22px; }
.way li { display: flex; align-items: center; gap: 14px; }
.way li .icon { color: var(--fg-3); }
.way .pill { width: 100%; margin-top: 40px; }
.scope { max-width: 620px; margin: 40px auto 0; color: var(--fg-3); font-size: 14px; line-height: 22px; text-align: center; }

/* Footer */
.site-footer { margin-top: 96px; padding-block: 40px 56px; border-top: 1px solid var(--line); }
.site-footer .wrap { display: grid; grid-template-columns: 344px 1fr; }
.foot-brand { display: flex; flex-direction: column; align-items: flex-start; }
.foot-brand p { margin-top: 12px; font-size: 11px; line-height: 16px; }
.foot-controls { display: flex; align-items: center; gap: 4px; margin-top: auto; margin-left: -10px; }
.foot-controls button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 44px; padding: 0 12px; border: 0; border-radius: 9999px; background: none; color: var(--fg-2); font: 500 13px/20px var(--sans); cursor: pointer; }
.foot-controls button:hover { background: var(--chip); color: var(--fg); }
[data-theme="dark"] .foot-controls .to-dark, [data-theme="light"] .foot-controls .to-light { display: none; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; padding-left: 92px; border-left: 1px dashed var(--line-2); }
.foot-cols h5 { margin: 0 0 6px; font-size: 13px; line-height: 20px; font-weight: 500; }
.foot-cols a { display: block; padding-block: 2.5px; font-size: 13px; line-height: 20px; transition: color 0.15s ease; }
.foot-cols a:hover { color: var(--fg-2); }


@media (max-width: 1080px) {
  .hero h1 { font-size: 48px; line-height: 50px; }
  h2 { font-size: 40px; line-height: 42px; }
  .demo, .demo.wide { grid-column: span 3; }
  .demo:nth-child(3) { grid-column: span 6; }
  .split { grid-template-columns: 1fr; gap: 56px; margin-top: 128px; }
  .vault { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; gap: 40px; }
  .foot-cols { padding-left: 0; border-left: 0; }
  .foot-controls { margin-top: 16px; }
}

@media (max-width: 720px) {
  .wrap { padding-inline: 16px; }
  .site-nav, .header-actions .soft { display: none; }
  .menu { display: block; margin-left: 8px; }
  .site-header:has(.menu[open]) { background: var(--bg); border-bottom-color: var(--line); }
  html:has(.menu[open]) { overflow: hidden; }
  .pill, .news, .tabs button { min-height: 44px; }
  .foot-cols a { padding-block: 12px; }
  .foot-cols h5 { margin-bottom: 0; }
  .rot-word[data-long] { display: none; }
  .hero { padding-top: 100px; }
  .hero h1 { margin-top: 28px; font-size: 36px; line-height: 40px; }
  .hero-sub { font-size: 17px; }
  .bento { grid-template-columns: 1fr; margin-top: 48px; }
  .demo, .demo.wide, .demo:nth-child(3) { grid-column: auto; }
  .intake { grid-template-columns: 1fr; }
  .intake .form { display: none; }
  .panel { padding: 20px 20px 0; }
  .facts { gap: 20px; }
  .figures { grid-template-columns: 1fr; padding-block: 8px; margin-top: 96px; }
  .figures div, .figures div:first-child { padding: 24px 0; border-left: 0; border-top: 1px solid var(--line); }
  .figures div:first-child { border-top: 0; }
  .band, .start { margin-top: 96px; }
  .start { padding-top: 64px; }
  .ways { grid-template-columns: 1fr; }
  .vault .demo { height: 372px; }
  .vault .stage { padding: 20px 18px 0; }
  .enc { grid-template-columns: 1fr; row-gap: 10px; }
  .enc > small { padding-top: 6px; }
  .node { padding-inline: 9px; font-size: 12px; }
  .norec { grid-template-columns: 124px 14px 1fr; column-gap: 8px; }
  .norec-tile { height: 150px; }
  .norec-badge { left: 6px; top: 6px; padding-inline: 7px; font-size: 10px; }
  .norec-badge span { display: none; }
  .signed { right: -6px; }
  .own-head small { display: none; }
  .own-grid { grid-template-columns: 1fr 1fr; }
  .band-head { flex-direction: column; gap: 12px; }
  .way { padding: 28px 24px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}

/* ---------- Inner pages ---------- */

.page-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; padding-top: 148px; }
.page-hero.solo { grid-template-columns: minmax(0, 780px); padding-top: 168px; }
.page-head h1 { margin-top: 16px; font-size: 48px; line-height: 52px; font-weight: 500; text-wrap: balance; }
.page-head .eyebrow { font-size: 13px; line-height: 20px; }
.subline { max-width: 520px; margin-top: 16px; font-size: 16px; line-height: 26px; }
.page-head .actions { margin-top: 28px; }
.page-demo { min-width: 0; }
.page-head > *, .page-demo { animation: arrive 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.page-head > :nth-child(2) { animation-delay: 0.06s; }
.page-head > :nth-child(3) { animation-delay: 0.12s; }
.page-head > :nth-child(4) { animation-delay: 0.18s; }
.page-head > :nth-child(5) { animation-delay: 0.24s; }
.page-demo { animation-delay: 0.3s; }
.page-demo .panel { padding: 40px 40px 0; }

.prose { margin-top: 112px; }
.row { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding-block: 48px; border-top: 1px solid var(--line); }
.row h2 { grid-column: 1 / 5; margin: 0; font-size: 24px; line-height: 32px; font-weight: 500; letter-spacing: -0.01em; }
.row > div { grid-column: 6 / 12; }
.row p { color: var(--fg); }
.row p + p { margin-top: 14px; }
.row.has-demo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 72px; align-items: center; padding-block: 64px; }
.row.has-demo h2 { grid-column: 1; grid-row: 1; align-self: end; font-size: 30px; line-height: 36px; }
.row.has-demo > div { grid-column: 1; grid-row: 2; align-self: start; max-width: 480px; margin-top: 14px; }
.row.has-demo > .demo { grid-column: 2; grid-row: 1 / span 2; }
.row.has-demo.flip h2, .row.has-demo.flip > div { grid-column: 2; }
.row.has-demo.flip > .demo { grid-column: 1; }
.row.alert { margin-bottom: 48px; padding: 32px 40px; border: 0; border-radius: 20px; background: var(--card-2); }
.row.alert + .row { border-top: 0; }
figure.demo { height: 300px; }
figure.demo .stage { inset: 0; padding: 26px 28px 22px; }

.prose a, .doc a, .faq a, .notfound p a { text-decoration: underline; text-decoration-color: var(--fg-3); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color 0.15s ease; }
.prose a, .faq a { color: var(--fg); }
.prose a:hover, .doc a:hover, .faq a:hover { text-decoration-color: var(--fg); }

/* A filled card that closes a page */
#contact { scroll-margin-top: 96px; }
/* The patient's way in from the site: the box a typed meet.oneybt.com lands on. */
.joinbar { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-top: 96px; padding: 32px 40px; border-radius: 20px; background: var(--card-2); }
.joinbar h2 { margin: 0; font-size: 20px; line-height: 28px; }
.joinbar p { margin-top: 4px; color: var(--fg-2); }
.joinform { display: flex; gap: 8px; width: min(100%, 420px); }
.joinform input { flex: 1; min-width: 0; height: 44px; padding-inline: 16px; border: 1px solid var(--line-2); border-radius: 9999px; background: var(--bg); color: var(--fg); font: 15px/20px var(--sans); }
.joinform input::placeholder { color: var(--fg-3); }
.joinform input:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.joinform .pill { border: 0; cursor: pointer; }
@media (max-width: 900px) { .joinbar { flex-direction: column; align-items: stretch; padding: 24px; } .joinform { width: 100%; } }
.cta { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-top: 96px; padding: 48px; border-radius: 20px; background: var(--card-2); }
.cta h2 { margin: 0; font-size: 30px; line-height: 36px; }
.cta p { margin-top: 8px; color: var(--fg-2); }
.copy .copied-icon { display: none; color: var(--live); }
.copy .copy-icon { color: var(--fg-3); }
.copy.is-copied .copy-icon { display: none; }
.copy.is-copied .copied-icon { display: block; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.note { display: flex; flex-direction: column; justify-content: center; }
.note .type { align-self: flex-start; }
.demo:not(figure) > .note { justify-content: flex-start; }
.screen .actions { margin-top: 16px; }
.subline a { text-decoration: underline; text-decoration-color: var(--fg-3); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.subline.updated { margin-top: 10px; color: var(--fg-3); font-size: 14px; line-height: 20px; }

/* Prescription: written in the chart, received by the pharmacy */
.rx { display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.rx-state { position: relative; height: 26px; }
.rx-state .chip { position: absolute; left: 0; top: 0; }
.rx-state .chip:first-child { animation: during 8s ease-in-out infinite; }
.rx-state .chip:last-child { animation: after 8s ease-in-out infinite; }

/* Group: whoever is speaking is ringed */
.group { display: flex; flex-direction: column; gap: 14px; }
.tiles { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tiles > span { display: grid; place-items: center; border-radius: 14px; background: var(--chip); animation: speaking 8s ease-in-out infinite; }
.tiles > span:nth-child(2) { animation-delay: 2s; }
.tiles > span:nth-child(3) { animation-delay: 4s; }
.tiles > span:nth-child(4) { animation-delay: 6s; }
.tiles .avatar { width: 40px; height: 40px; background: var(--card); font-size: 13px; }
.group-foot { display: flex; justify-content: space-between; align-items: center; color: var(--fg-2); }
.group-foot .rec { position: static; font-size: 12px; }
@keyframes speaking { 0%, 3% { box-shadow: inset 0 0 0 1.5px transparent; } 6%, 22% { box-shadow: inset 0 0 0 1.5px var(--live); } 26%, 100% { box-shadow: inset 0 0 0 1.5px transparent; } }

/* Transcription can be switched off for everyone */
.toggle { display: flex; flex-direction: column; }
.switch-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--chip); color: var(--fg); font-size: 14px; font-weight: 500; }
.switch-row > span:first-child { display: inline-flex; align-items: center; gap: 10px; }
.switch { position: relative; width: 38px; height: 22px; border-radius: 9999px; background: var(--live); animation: switch-bg 10s ease-in-out infinite; }
.switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #ffffff; transform: translateX(16px); animation: switch-knob 10s ease-in-out infinite; }
.switch-note { position: relative; height: 20px; margin: 10px 2px 12px; font-size: 12px; }
.switch-note span { position: absolute; left: 0; top: 0; white-space: nowrap; }
.switch-note span:first-child { animation: during 10s ease-in-out infinite; }
.switch-note span:last-child { animation: after 10s ease-in-out infinite; }
.toggle .feed-mask { flex: 1; animation: visit 10s ease-in-out infinite; }
@keyframes switch-bg { 0%, 42% { background: var(--live); } 50%, 92% { background: var(--line-2); } 100% { background: var(--live); } }
@keyframes switch-knob { 0%, 42% { transform: translateX(16px); } 50%, 92% { transform: translateX(0); } 100% { transform: translateX(16px); } }

/* Joining a visit, one step after another */
.steps { display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.steps ol { display: grid; gap: 10px; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--chip); color: var(--fg); font-size: 14px; }
.tick { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); }
.tick .icon { width: 12px; height: 12px; stroke-width: 2.25; animation: tick 9s ease-in-out infinite both; }
.steps li:nth-child(2) .tick .icon { animation-delay: 1.4s; }
.steps li:nth-child(3) .tick .icon { animation-delay: 2.8s; }
.steps-foot { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-2); font-size: 13px; }
@keyframes tick { 0%, 8% { opacity: 0; transform: scale(0.6); } 14%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }

/* What never happens to the information */
.never { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.never p { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--chip); color: var(--fg); font-size: 15px; font-weight: 500; }
.never .chip { background: var(--card); }

/* A booked visit opens in the video platform and returns to the record */
.handoff { display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.handoff-link { display: flex; align-items: center; gap: 10px; }
.handoff-link .path { flex: 1; }
.handoff-link .chip { height: 30px; }

/* Larger windows for page heroes */
.meetwin { display: grid; grid-template-columns: 1fr 0.8fr; gap: 16px; height: calc(100% - 40px); padding: 16px; }
.meet-stage { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.meet-tile { position: relative; flex: 1; display: grid; place-items: center; border-radius: 14px; background: var(--chip); }
.meet-tile .avatar { width: 64px; height: 64px; background: var(--card); font-size: 20px; font-weight: 500; }
.meet-tile .mono { position: absolute; left: 10px; bottom: 8px; color: var(--fg-2); font-size: 11px; }
.meet-controls { display: flex; justify-content: center; gap: 6px; }
.meet-controls span { display: inline-grid; place-items: center; min-width: 34px; height: 34px; border-radius: 9999px; background: var(--chip); color: var(--fg); font-size: 12px; font-weight: 500; }
.meet-controls .on { background: var(--btn-bg); color: var(--btn-fg); }
.meet-controls .end { padding-inline: 14px; background: #c9353b; color: #ffffff; }
.logwin { padding: 18px 20px; font-size: 13px; line-height: 20px; }
.logwin .log tbody tr:nth-child(5) { animation-delay: 2s; }
.logwin .log tbody tr:nth-child(6) { animation-delay: 2.5s; }

/* Access: each role reaches only what the practice granted */
.grants { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.grants p { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--chip); color: var(--fg); font-size: 14px; font-weight: 500; }
.grants .chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.grants .chip { background: var(--card); }

/* About: where to go next */
.jump { display: grid; }
.jump a { display: grid; grid-template-columns: 1fr auto; padding-block: 18px; border-top: 1px solid var(--line); transition: color 0.15s ease; }
.jump a:last-child { border-bottom: 1px solid var(--line); }
.jump b { grid-column: 1; font-size: 16px; line-height: 24px; font-weight: 500; }
.jump span { grid-column: 1; color: var(--fg-3); font-size: 13px; line-height: 20px; }
.jump .icon { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--fg-3); transition: color 0.15s ease, transform 0.15s ease; }
.jump a:hover .icon { color: var(--fg); transform: translate(2px, -2px); }

/* Pricing */
.ways.pricing { margin-top: 72px; }
.way .kind { color: var(--fg-3); font-size: 13px; line-height: 20px; font-weight: 500; }
.way .price { margin-top: 20px; color: var(--fg-2); }
.way .price strong { margin-right: 6px; color: var(--fg); font-size: 48px; line-height: 56px; font-weight: 500; letter-spacing: -0.02em; }

/* FAQ */
.faq-page { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; }
.faq-page .page-hero { position: sticky; top: 64px; grid-column: 1 / 6; display: block; }
.faq { grid-column: 6 / -1; margin-top: 208px; }
.faq-page .cta { grid-column: 1 / -1; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 68px; font-size: 17px; font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { display: grid; color: var(--fg-3); transition: transform 0.2s ease; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { max-width: 620px; padding-bottom: 24px; }

/* Not found */
.notfound { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: calc(100svh - 420px); padding-top: 168px; text-align: center; }
.notfound h1 { margin-top: 16px; font-size: 48px; line-height: 52px; font-weight: 500; }
.notfound p:not(.eyebrow) { margin-top: 16px; color: var(--fg-2); }
.notfound .actions { justify-content: center; margin-top: 28px; }

/* Legal documents: still pages, nothing moves */
.draft { margin-top: 64px; border-bottom: 1px solid var(--warn-line); background: var(--warn-bg); color: var(--warn); font-size: 14px; line-height: 20px; }
.draft .wrap { padding-block: 10px; }
.draft + main .page-hero { padding-top: 84px; }
.doc { display: grid; grid-template-columns: minmax(0, 720px); margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--line); }
.doc:has(.toc) { grid-template-columns: minmax(0, 720px) minmax(0, 320px); justify-content: space-between; column-gap: 72px; }
.doc > * { grid-column: 1; min-width: 0; }
.doc > .contents-title { grid-column: 2; grid-row: 1; margin: 0; padding: 0; border: 0; font-size: 13px; line-height: 20px; font-weight: 500; letter-spacing: 0; }
.doc > .toc { position: sticky; top: 88px; grid-column: 2; grid-row: 1 / span 400; align-self: start; max-height: calc(100svh - 148px); margin: 32px 0 0; padding-left: 22px; overflow-y: auto; list-style: decimal; color: var(--fg-3); font-size: 13px; line-height: 20px; }
.doc > .toc li { margin: 0; padding-block: 4px; color: var(--fg-3); font-size: 13px; line-height: 20px; }
.doc > .toc a { color: var(--fg-2); text-decoration: none; }
.doc > .toc a:hover, .doc > .toc a.is-current { color: var(--fg); }
.doc > .toc li:has(a.is-current) { color: var(--fg); }
.doc h2[id] { scroll-margin-top: 96px; }
.doc p, .doc li, .doc td { color: var(--fg-2); font-size: 16px; line-height: 26px; }
.doc a { color: var(--fg); }
.doc p { margin-top: 16px; }
.doc > p:first-of-type { margin-top: 0; }
.doc strong, .doc b { color: var(--fg); font-weight: 500; }
.doc h2 { margin-top: 64px; padding-top: 56px; border-top: 1px solid var(--line); font-size: 30px; line-height: 36px; font-weight: 500; letter-spacing: -0.01em; text-wrap: balance; }
.doc > section:first-child > h2 { margin-top: 0; padding-top: 0; border-top: 0; }
.doc h3 { margin: 40px 0 0; font-size: 20px; line-height: 28px; font-weight: 500; }
.doc ul { margin-top: 16px; padding-left: 20px; list-style: disc; }
.doc li + li { margin-top: 8px; }
.doc .caps { color: var(--fg); font-size: 14px; line-height: 22px; }
.box, .callout, .script-block, .contact-card { margin-top: 24px; padding: 24px; border-radius: 16px; background: var(--card); }
.box > :first-child, .callout > :first-child, .script-block > :first-child, .contact-card > :first-child { margin-top: 0; }
.doc .box-title { color: var(--fg); font-weight: 500; }
.decision { margin-top: 24px; padding: 14px 18px; border: 1px dashed var(--warn-line); border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-size: 14px; line-height: 22px; }
.doc .decision b { color: inherit; }
.dialogue-table { width: 100%; margin-top: 24px; border-collapse: collapse; text-align: left; }
.dialogue-table th { padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line); color: var(--fg-3); font-size: 12px; line-height: 16px; font-weight: 400; }
.dialogue-table td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.speaker-label { display: inline-flex; align-items: center; height: 24px; padding-inline: 10px; border-radius: 9999px; background: var(--chip); color: var(--fg); font-size: 12px; font-weight: 500; }
.speaker-patient { background: var(--btn-bg); color: var(--btn-fg); }
.keyword-badge { margin-right: 8px; padding: 2px 8px; border-radius: 6px; background: var(--chip); color: var(--fg); font-family: var(--mono); font-size: 13px; }
.record-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 24px; }
.record-item { padding: 16px 20px; border-radius: 14px; background: var(--card); color: var(--fg-2); font-size: 14px; line-height: 22px; }
.record-item strong { display: block; }
.contact-card p { margin-top: 4px; }

/* One entrance, once */
.js .reveal { opacity: 0; transform: translateY(6px); transition: opacity 0.45s ease, transform 0.45s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .page-hero { grid-template-columns: 1fr; gap: 56px; }
  .row > div { grid-column: 6 / -1; }
  .row.has-demo, .row.has-demo.flip { grid-template-columns: 1fr; row-gap: 0; }
  .row.has-demo h2, .row.has-demo > div, .row.has-demo.flip h2, .row.has-demo.flip > div { grid-column: 1; }
  .row.has-demo > div { max-width: 620px; }
  .row.has-demo > .demo, .row.has-demo.flip > .demo { grid-column: 1; grid-row: 3; margin-top: 32px; }
  .faq-page .page-hero { position: static; grid-column: 1 / -1; }
  .faq { grid-column: 1 / -1; margin-top: 56px; }
  .doc:has(.toc) { grid-template-columns: minmax(0, 720px); justify-content: start; }
  .doc > .contents-title, .doc > .toc { position: static; grid-column: 1; grid-row: auto; max-height: none; }
  .doc > .toc { margin: 12px 0 40px; }
}

@media (max-width: 720px) {
  .page-hero, .page-hero.solo { padding-top: 112px; gap: 40px; }
  .page-head h1, .notfound h1 { font-size: 36px; line-height: 40px; }
  .page-demo .panel { padding: 20px 20px 0; }
  .prose { margin-top: 72px; }
  .row { display: block; padding-block: 36px; }
  .row h2 { margin-bottom: 10px; }
  .row.has-demo { display: grid; padding-block: 44px; }
  .row.has-demo h2 { font-size: 26px; line-height: 32px; }
  .row.alert { padding: 24px; }
  figure.demo { height: 320px; }
  figure.demo .stage { padding: 20px 18px 18px; }
  .cta { flex-direction: column; align-items: stretch; margin-top: 72px; padding: 28px 24px; }
  .cta .actions { flex-direction: column; }
  .meetwin { grid-template-columns: 1fr; }
  .meetwin .feed-mask { display: none; }
  .logwin .log th:nth-child(4), .logwin .log td:nth-child(4) { display: none; }
  .faq summary { font-size: 16px; }
  .draft + main .page-hero { padding-top: 56px; }
  .doc { margin-top: 56px; padding-top: 40px; }
  .doc h2 { margin-top: 48px; padding-top: 40px; font-size: 24px; line-height: 30px; }
  .record-grid { grid-template-columns: 1fr; }
  .brand, .more { min-height: 44px; }
}

@media print {
  :root, [data-theme="light"] { --bg: #ffffff; --fg: #000000; --fg-2: #222222; --fg-3: #444444; --line: #cccccc; --card: #ffffff; --card-2: #ffffff; --chip: #f2f2f2; }
  .site-header, .site-footer, .skip-link, .draft, .cta, .demo, .page-demo, .tabs, .doc > .toc, .doc > .contents-title, .actions { display: none !important; }
  .page-hero, .page-hero.solo { padding-top: 0; }
  .doc, .doc:has(.toc) { display: block; margin-top: 24px; }
  .doc p, .doc li { font-size: 11pt; line-height: 1.5; }
  .doc h2 { break-after: avoid; }
  .reveal { opacity: 1 !important; transform: none !important; }
  * { animation: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .type { max-width: 100% !important; }
  .sig path { stroke-dashoffset: 0 !important; }
  .js .reveal { opacity: 1; transform: none; }
  .tick .icon { opacity: 1 !important; transform: none !important; }
  .rx-state .chip:first-child, .switch-note span:last-child { opacity: 0; }
  .norec-state span:last-child { opacity: 0; }
}
