/* Quiltstone landing page. Colors come from the ribbon-cross logo. */
@font-face { font-family: 'Young Serif'; src: url(assets/fonts/young-serif.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Public Sans'; src: url(assets/fonts/public-sans.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Public Sans'; font-style: italic; src: url(assets/fonts/public-sans-italic.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url(assets/fonts/plex-mono.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url(assets/fonts/plex-mono-medium.woff2) format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --navy: #0b2240;      /* wordmark */
  --blue: #0a4d8c;      /* top-left ribbon */
  --sky: #8fb9de;       /* top-right ribbon */
  --teal: #0e6b78;      /* bottom-right ribbon */
  --mint: #5cc3a8;      /* bottom-left ribbon */
  --limestone: #eef1ef; /* page */
  --paper: #ffffff;
  --mist: #f4f7f6;
  --ink-soft: #46556a;
  --line: #d3dbe0;
  --line-soft: #e5eaed;
  --thread: #f3ecd9;

  --display: 'Young Serif', Georgia, serif;
  --body: 'Public Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.22, 1, .36, 1);
  --shadow-1: 0 1px 2px rgba(11, 34, 64, .06), 0 12px 28px -16px rgba(11, 34, 64, .32);
  --shadow-2: 0 1px 2px rgba(11, 34, 64, .06), 0 26px 54px -30px rgba(11, 34, 64, .5);
  --shadow-3: 0 2px 6px rgba(11, 34, 64, .08), 0 44px 90px -44px rgba(11, 34, 64, .6);
  --brand: var(--navy);       /* a visitor's clinic pack recolors the sample screens */
  --brand-ink: #ffffff;
  --doc-accent: var(--teal);
  interpolate-size: allow-keywords;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; scrollbar-color: #b9c6cf var(--limestone); }
body {
  margin: 0;
  background: var(--limestone);
  color: var(--navy);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-weight: 400; }
h1, h2 { font-family: var(--display); letter-spacing: -0.012em; line-height: 1.08; text-wrap: balance; }
h3 { font-weight: 600; font-size: 1.05rem; }
p { text-wrap: pretty; }
.mono, time { font-family: var(--mono); font-variant-numeric: tabular-nums; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
::selection { background: var(--navy); color: #fff; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 40; }
.skip:focus { left: 8px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 999px;
  box-shadow: 0 10px 24px -14px rgba(11, 34, 64, .8);
  transition: background-color .2s, transform .25s var(--ease-out), box-shadow .25s;
}
.btn:hover { background: var(--blue); transform: translateY(-1px); box-shadow: 0 14px 28px -14px rgba(10, 77, 140, .8); }
.btn-small { padding: 9px 16px; font-size: 0.92rem; }
.btn-light { background: #fff; color: var(--navy); box-shadow: 0 12px 26px -14px rgba(3, 20, 40, .7); }
.btn-light:hover { background: var(--thread); }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--blue); }
.link svg { width: 18px; height: 18px; transition: transform .25s var(--ease-out); }
.link:hover svg { transform: translateX(3px); }
.link:hover { text-decoration: underline; text-underline-offset: 5px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 28px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--limestone) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(11, 34, 64, .5); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: 0.95rem; color: var(--ink-soft); transition: color .2s; }
.nav-links a:hover { color: var(--navy); }
.menu-btn { display: none; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--paper); color: var(--navy); font: 600 .9rem var(--body); padding: 8px 12px; border-radius: 999px; cursor: pointer; }
.menu-btn svg { width: 18px; height: 18px; }

section { padding: clamp(72px, 9vw, 128px) var(--gutter); }
section > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 52px; }
/* Headings never wrap on their own. Every line break is written into the markup
   (br.n only on narrow screens), and the type scales so the longest line fits its column. */
h1, h2, h3, summary, .eyebrow, .btn, .link, .nav-links a, .facts li, .moves li, .consents span, .note-title, .roots span, .vnet-label, .sb-lines dd, .node span { white-space: nowrap; }
br.n { display: none; }
.hero-copy, .section-head, .feature-copy, .switch-copy, .faq-head, .cta-copy, .roots { container-type: inline-size; }
h1, h2, .roots p { font-size: min(var(--max), calc(100cqi / var(--fit))); }
h2 { --max: 2.9rem; }
#hero-title { --max: 4.3rem; --fit: 7.59; }
#day-title { --fit: 17.97; }
#sup-title { --fit: 11.54; }
#bill-title { --fit: 11.64; }
#fam-title { --fit: 11.96; }
#switch-title { --fit: 13.7; }
#sec-title { --fit: 21.03; }
#faq-title { --fit: 10.86; }
#cta-title { --fit: 10.39; }
#try-title { --fit: 10.01; }
#portal-title { --fit: 10.81; }
.roots p { --max: 2.5rem; --fit: 18.24; }
.hero .eyebrow { font-size: min(.78rem, calc(100cqi / 28.2)); }
li, dd { text-wrap: pretty; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(40px, 5.5vw, 84px);
  align-items: center;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding-top: clamp(40px, 6vw, 88px);
}
.hero > * { max-width: none; margin: 0; }
.lede { margin-top: 22px; font-size: 1.16rem; color: var(--ink-soft); max-width: 34em; }
.early { margin-top: 14px; font-size: .95rem; font-weight: 600; color: var(--ink-soft); }
.actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
.facts { margin: 34px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .92rem; color: var(--ink-soft); }
.facts li { display: flex; align-items: center; gap: 7px; }
.facts svg { width: 18px; height: 18px; padding: 2px; border-radius: 50%; color: var(--teal); background: #dcefe9; stroke-width: 2.2; }

/* Signature: a nine-patch quilt block, pieced and stitched on load */
.quilt { position: relative; container-type: inline-size; }
.tag { white-space: nowrap; }
.quilt-tilt {
  position: relative;
  transform: perspective(1500px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease-out);
}
.binding {
  position: relative;
  padding: 12px;
  border-radius: 20px;
  background: var(--navy);
  box-shadow: var(--shadow-3);
  animation: bind-in .7s var(--ease-out) both;
}
.binding::after {
  content: ''; position: absolute; inset: 5px; z-index: 3;
  border: 1.5px dashed rgba(243, 236, 217, .42); border-radius: 16px;
  pointer-events: none;
}
.block { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); aspect-ratio: 1; }
.block li { position: relative; animation: piece-in 1s var(--spring) both; }
.block li:hover, .block li:focus-within { z-index: 2; }
.patch {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0; padding: 10px; border: 0;
  display: flex; align-items: flex-end;
  isolation: isolate;
  background: var(--bg);
  color: #fff;
  font: 600 .82rem/1.2 var(--body);
  text-align: left;
  cursor: pointer;
  box-shadow: inset 12px 12px 22px -16px rgba(255, 255, 255, .5), inset -14px -16px 26px -14px rgba(0, 0, 0, .42);
  transition: transform .4s var(--ease-out), box-shadow .4s, filter .3s;
}
/* fabric: a woven texture laid over each piece */
.patch::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: url(assets/weave.png) 0 0 / 96px;
  mix-blend-mode: soft-light; opacity: .42;
  border-radius: inherit;
  pointer-events: none;
}
.patch:hover, .patch.is-active {
  transform: scale(1.045);
  filter: brightness(1.08) saturate(1.08);
  box-shadow: inset 12px 12px 22px -16px rgba(255, 255, 255, .55), inset -14px -16px 26px -14px rgba(0, 0, 0, .4), 0 18px 34px -14px rgba(3, 14, 30, .65);
}
.patch:focus-visible { outline: 3px solid #fff; outline-offset: -5px; border-radius: 4px; }
.block li:nth-child(1) .patch { border-top-left-radius: 9px; }
.block li:nth-child(3) .patch { border-top-right-radius: 9px; }
.block li:nth-child(7) .patch { border-bottom-left-radius: 9px; }
.block li:nth-child(9) .patch { border-bottom-right-radius: 9px; }

.tag {
  position: relative; z-index: 2;
  padding: 4px 8px 3px;
  border-radius: 4px;
  background: rgba(8, 25, 48, .74);
  letter-spacing: .01em;
}
.stitch { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.stitch rect {
  fill: none;
  stroke: rgba(243, 236, 217, .78);
  stroke-width: 1.3;
  stroke-dasharray: 4 3.4;
  vector-effect: non-scaling-stroke;
  animation: sew .7s var(--ease-out) both;
}
.patch:hover .stitch rect, .patch.is-active .stitch rect { stroke: #fff; }

/* half-square triangles, the classic quilt piece; each seam gets a pressed line */
.p1 { --bg: linear-gradient(135deg, transparent calc(50% - 1px), rgba(0, 0, 0, .2) 50%, transparent calc(50% + 1px)), linear-gradient(135deg, var(--blue) 50%, var(--sky) 50%); }
.p2 { --bg: var(--navy); }
.p3 { --bg: linear-gradient(225deg, transparent calc(50% - 1px), rgba(0, 0, 0, .2) 50%, transparent calc(50% + 1px)), linear-gradient(225deg, var(--blue) 50%, var(--sky) 50%); }
.p4 { --bg: var(--blue); }
.p6 { --bg: var(--teal); }
.p7 { --bg: linear-gradient(45deg, transparent calc(50% - 1px), rgba(0, 0, 0, .2) 50%, transparent calc(50% + 1px)), linear-gradient(45deg, var(--mint) 50%, var(--teal) 50%); }
.p8 { --bg: var(--navy); }
.p9 { --bg: linear-gradient(315deg, transparent calc(50% - 1px), rgba(0, 0, 0, .2) 50%, transparent calc(50% + 1px)), linear-gradient(315deg, var(--mint) 50%, var(--teal) 50%); }
.p5 {
  --bg: var(--paper);
  flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--navy);
  box-shadow: inset 12px 12px 22px -16px rgba(255, 255, 255, .9), inset -14px -16px 26px -14px rgba(11, 34, 64, .22);
}
.p5::before { opacity: .2; mix-blend-mode: multiply; }
.p5 .tag { background: none; padding: 0; font-family: var(--display); font-weight: 400; font-size: min(1.08rem, calc((100cqi / 3 - 24px) / 5.6)); }
.p5 img { width: 44px; height: 44px; position: relative; z-index: 2; }
.p5 .stitch rect { stroke: rgba(11, 34, 64, .34); }
.p5:hover .stitch rect, .p5.is-active .stitch rect { stroke: rgba(11, 34, 64, .6); }

/* pieces arrive scattered and settle into the block; the center lands last */
.block li:nth-child(1) { --dx: -70px; --dy: -54px; --r: -12deg; animation-delay: .1s; }
.block li:nth-child(2) { --dx: 6px; --dy: -86px; --r: 8deg; animation-delay: .18s; }
.block li:nth-child(3) { --dx: 78px; --dy: -46px; --r: 14deg; animation-delay: .26s; }
.block li:nth-child(4) { --dx: -94px; --dy: 8px; --r: -7deg; animation-delay: .34s; }
.block li:nth-child(6) { --dx: 92px; --dy: 4px; --r: 9deg; animation-delay: .42s; }
.block li:nth-child(7) { --dx: -74px; --dy: 62px; --r: 10deg; animation-delay: .5s; }
.block li:nth-child(8) { --dx: -4px; --dy: 92px; --r: -9deg; animation-delay: .58s; }
.block li:nth-child(9) { --dx: 66px; --dy: 70px; --r: -14deg; animation-delay: .66s; }
.block li:nth-child(5) { animation: center-in .8s var(--spring) .95s both; }
.block li:nth-child(1) .stitch rect { animation-delay: 1.05s; }
.block li:nth-child(2) .stitch rect { animation-delay: 1.1s; }
.block li:nth-child(3) .stitch rect { animation-delay: 1.15s; }
.block li:nth-child(4) .stitch rect { animation-delay: 1.2s; }
.block li:nth-child(5) .stitch rect { animation-delay: 1.5s; }
.block li:nth-child(6) .stitch rect { animation-delay: 1.25s; }
.block li:nth-child(7) .stitch rect { animation-delay: 1.3s; }
.block li:nth-child(8) .stitch rect { animation-delay: 1.35s; }
.block li:nth-child(9) .stitch rect { animation-delay: 1.4s; }

@keyframes bind-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes piece-in { from { opacity: 0; transform: translate(var(--dx, 0), var(--dy, 0)) rotate(var(--r, 0)) scale(.92); } 55% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes center-in { from { opacity: 0; transform: scale(.55); } to { opacity: 1; transform: none; } }
@keyframes sew { from { stroke-dasharray: 0 7.4; opacity: 0; } 20% { opacity: 1; } to { stroke-dasharray: 4 3.4; opacity: 1; } }

.sheen {
  position: absolute; inset: 0; z-index: 4;
  border-radius: 20px;
  background: radial-gradient(circle at var(--mx, 30%) var(--my, 20%), rgba(255, 255, 255, .3), transparent 45%);
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity .5s;
  pointer-events: none;
}
.quilt.is-hover .sheen { opacity: 1; }

/* Every description sits in the same cell, so the card is always as tall as the longest one
   and hovering a piece never changes the page's height. */
.patch-note {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow-1);
  display: grid;
  animation: bind-in .6s var(--ease-out) 1.6s both;
}
.note {
  grid-area: 1 / 1;
  display: grid; gap: 4px; align-content: start;
  margin: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .18s, visibility 0s linear .18s;
}
.note.is-shown { opacity: 1; visibility: visible; transition: opacity .28s var(--ease-out); }
.note-title { font-family: var(--display); font-size: 1.12rem; }
.note-text { font-size: .95rem; color: var(--ink-soft); }

/* A day in Quiltstone: the steps on the left drive the screen on the right */
.day { background: var(--paper); }
.theater { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 76px); align-items: start; }
.steps { position: relative; list-style: none; margin: 0; padding: 0; --progress: 0%; }
.steps::before, .steps::after { content: ''; position: absolute; left: 7px; top: 14px; width: 0; }
.steps::before { bottom: 14px; border-left: 2px dashed var(--line); }
.steps::after { height: var(--progress); border-left: 2px solid var(--teal); transition: height .7s var(--ease-out); }
.step {
  position: relative;
  display: grid; grid-template-columns: 92px 1fr; gap: 18px;
  min-height: 44vh;
  padding-left: 38px;
}
.step:last-child { min-height: 0; padding-bottom: 8vh; }
.step::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--line);
  transition: background-color .4s, border-color .4s, box-shadow .4s;
}
.step.is-past::before { background: var(--teal); border-color: var(--teal); }
.step.is-active::before { background: var(--teal); border-color: var(--teal); box-shadow: 0 0 0 6px rgba(14, 107, 120, .16); }
.step time { font-size: .95rem; color: var(--ink-soft); padding-top: 2px; transition: color .4s; }
.step h3 { font-size: 1.14rem; color: var(--ink-soft); transition: color .4s; }
.step p { color: #5d6b7c; margin-top: 6px; max-width: 34em; transition: color .4s; }
.step.is-active time { color: var(--teal); }
.step.is-active h3 { color: var(--navy); }
.step.is-active p { color: var(--ink-soft); }

.stage { position: sticky; top: 112px; }
.app {
  position: relative;
  height: 430px;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(11, 34, 64, .06), var(--shadow-3);
  overflow: hidden;
  font-size: 14px;
}
.app-bar { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 18px; border-bottom: 1px solid var(--line-soft); background: var(--mist); }
.mono-badge { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--brand); color: var(--brand-ink); font: 600 .74rem var(--body); letter-spacing: .02em; flex: none; transition: background-color .3s, color .3s; }
.logo-img { width: 30px; height: 30px; object-fit: contain; border-radius: 6px; flex: none; }
.app-bar strong { font-size: .95rem; }
.app-clock { margin-left: auto; font: 500 .8rem var(--mono); font-variant-numeric: tabular-nums; color: var(--teal); background: #e1f1ee; padding: 4px 9px; border-radius: 999px; }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--mint); color: var(--navy); font: 700 .72rem var(--body); }
.screen {
  position: absolute; inset: 54px 0 0;
  padding: 20px 22px;
  opacity: 0; transform: translateY(12px);
  transition: opacity .45s, transform .6s var(--ease-out);
  pointer-events: none;
}
.app[data-screen="0"] .s-intake, .app[data-screen="1"] .s-video, .app[data-screen="2"] .s-note, .app[data-screen="3"] .s-pay, .app[data-screen="4"] .s-cosign { opacity: 1; transform: none; }
.screen-title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.02rem; margin-bottom: 14px; }
.muted { color: var(--ink-soft); font-weight: 400; font-size: .86rem; }
.chip { font: 600 .72rem var(--body); padding: 3px 9px; border-radius: 999px; }
.chip-blue { background: #e1edf9; color: var(--blue); }
.chip-navy { background: var(--navy); color: #fff; font-family: var(--mono); transition: background-color .3s; }
.chip-navy.is-zero { background: var(--teal); }

.req { position: relative; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--paper); }
.req + .req { margin-top: 10px; }
.req-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.req-top span { font-size: .78rem; color: var(--ink-soft); }
.req p { margin-top: 4px; color: var(--ink-soft); font-size: .88rem; }
.req-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pill-btn { padding: 7px 12px; border-radius: 999px; background: var(--navy); color: #fff; font-size: .8rem; font-weight: 600; }
.pill-btn.ghost { background: var(--mist); color: var(--navy); box-shadow: inset 0 0 0 1px var(--line); }
.req-dim strong { color: var(--ink-soft); }
.req-dim p, .req-dim .req-top span { color: #5d6b7c; }
.routed, .signed, .charged, .sent { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--teal); }
.routed { margin-top: 12px; }
.routed svg, .signed svg, .charged svg, .sent svg, .ready svg { width: 18px; height: 18px; padding: 2px; border-radius: 50%; background: #dcefe9; stroke-width: 2.4; }
.app[data-screen="0"] .routed { animation: pop .5s var(--spring) .8s both; }

.s-video { display: grid; grid-template-columns: 1.45fr 1fr; gap: 16px; }
.video { position: relative; border-radius: 14px; overflow: hidden; background: linear-gradient(160deg, #163a63, var(--navy)); min-height: 250px; }
.tile-main { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 38%, rgba(143, 185, 222, .55), transparent 62%); }
.tile-main span, .tile-self span { display: grid; place-items: center; border-radius: 50%; font-weight: 700; color: var(--navy); }
.tile-main span { width: 74px; height: 74px; background: var(--sky); font-size: 1.3rem; }
.tile-self { position: absolute; right: 12px; bottom: 54px; width: 84px; height: 62px; border-radius: 10px; display: grid; place-items: center; background: #24507a; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .5); }
.tile-self span { width: 34px; height: 34px; background: var(--mint); font-size: .78rem; }
.video-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: linear-gradient(transparent, rgba(3, 14, 30, .55)); }
.vb { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; }
.vb svg { width: 18px; height: 18px; }
.vb.end { background: #c8553d; }
.timer { margin-left: auto; font: 500 .78rem var(--mono); color: #fff; }
.ready { display: grid; gap: 10px; align-content: start; }
.ready .screen-title { margin-bottom: 2px; font-size: .95rem; }
.ready span { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--navy); padding: 10px 12px; border-radius: 10px; background: var(--mist); }
.ready svg { color: var(--teal); }
.app[data-screen="1"] .ready span { animation: pop .45s var(--spring) both; }
.app[data-screen="1"] .ready span:nth-of-type(1) { animation-delay: .35s; }
.app[data-screen="1"] .ready span:nth-of-type(2) { animation-delay: .5s; }
.app[data-screen="1"] .ready span:nth-of-type(3) { animation-delay: .65s; }

.dap { display: grid; gap: 10px; }
.dap dt { font: 500 .72rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--teal); }
.dap dd { margin-top: 3px; padding: 8px 11px; border-radius: 9px; border: 1px solid var(--line-soft); font-size: .88rem; line-height: 1.45; }
.sign-row { display: grid; justify-items: end; align-items: center; margin-top: 14px; }
.sign-row > * { grid-area: 1 / 1; }
.sign-btn { padding: 8px 15px; border-radius: 9px; background: var(--blue); color: #fff; font-weight: 600; font-size: .85rem; }
.signed { opacity: 0; }
.app[data-screen="2"] .sign-btn { animation: press .5s ease .7s both; }
.app[data-screen="2"] .signed { animation: pop .5s var(--spring) 1.05s both; }

.s-pay { display: grid; gap: 14px; align-content: start; }
.pay, .pdf { padding: 16px; border-radius: 12px; border: 1px solid var(--line-soft); }
.pay-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: .9rem; }
.pay-row:first-of-type { justify-content: flex-start; }
.pay-row svg { width: 20px; height: 20px; color: var(--blue); }
.charged { margin-top: 6px; }
.pdf { display: flex; align-items: center; gap: 12px; }
.pdf > svg { width: 34px; height: 34px; padding: 6px; border-radius: 8px; background: #fbe9e4; color: #b4472f; }
.pdf strong { display: block; font-size: .92rem; }
.pdf span { font-size: .8rem; color: var(--ink-soft); }
.pdf .sent { margin-left: auto; color: var(--teal); white-space: nowrap; }
.app[data-screen="3"] .charged { animation: pop .5s var(--spring) .55s both; }
.app[data-screen="3"] .sent { animation: pop .5s var(--spring) .95s both; }

.q-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.q-row strong { display: block; font-size: .9rem; }
.q-row span { font-size: .78rem; color: var(--ink-soft); }
.q-pill { flex: none; padding: 6px 12px; border-radius: 999px; background: var(--blue); color: #fff !important; font-size: .76rem !important; font-weight: 600; transition: background-color .35s, color .35s; }
.q-row.is-done .q-pill { background: #dcefe9; color: var(--teal) !important; }
.q-foot { margin-top: 14px; font-size: .86rem; color: var(--ink-soft); opacity: 0; transition: opacity .4s; }
.q-foot strong { color: var(--teal); }
.s-cosign.is-clear .q-foot { opacity: 1; }

@keyframes pop { from { opacity: 0; transform: scale(.85) translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes press { 0% { transform: none; } 40% { transform: scale(.94); filter: brightness(.9); } 70% { opacity: 1; } 100% { transform: none; opacity: 0; } }

.sample-note { margin-top: 14px; font: 400 .74rem var(--mono); color: var(--ink-soft); text-align: right; }

/* Try the real app */
.section-lede { margin-top: 18px; max-width: 40em; color: var(--ink-soft); font-size: 1.1rem; }
.try-window { position: relative; border-radius: 18px; overflow: hidden; background: var(--paper); box-shadow: 0 0 0 1px rgba(11, 34, 64, .06), var(--shadow-3); }
.try-bar { display: flex; align-items: center; gap: 16px; height: 46px; padding: 0 16px; background: var(--mist); border-bottom: 1px solid var(--line-soft); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #d3dbe2; }
.try-label { margin-right: auto; font: 500 .78rem var(--mono); color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.try-bar .text-btn { white-space: nowrap; }
.try-stage { position: relative; height: clamp(520px, 72vh, 700px); }
.try-start { position: absolute; inset: 0; display: block; width: 100%; padding: 0; border: 0; background: var(--paper); cursor: pointer; overflow: hidden; }
.try-start img { width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: transform .8s var(--ease-out), filter .4s; }
.try-start::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(238, 241, 239, 0) 35%, rgba(11, 34, 64, .38)); transition: opacity .4s; }
.try-cta { position: absolute; left: 50%; top: 52%; z-index: 1; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 600; font-size: 1.05rem; white-space: nowrap; box-shadow: 0 18px 40px -16px rgba(3, 14, 30, .75); transition: transform .35s var(--ease-out), background-color .2s; }
.try-cta svg { width: 20px; height: 20px; fill: currentColor; }
.try-start:hover .try-cta { transform: translate(-50%, -50%) scale(1.04); background: var(--blue); }
.try-start:hover img { transform: scale(1.012); }
.try-start:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; border-radius: 0; }
.try-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.try-note { margin-top: 16px; font-size: .92rem; color: var(--ink-soft); }

/* Features */
.feature {
  padding-top: clamp(56px, 7vw, 104px);
  padding-bottom: clamp(56px, 7vw, 104px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
}
.feature > * { max-width: none; margin: 0; }
.feature-flip .feature-copy { order: 2; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 30px; color: var(--ink-soft); }
.checks li::before {
  content: '';
  position: absolute; left: 0; top: 0.42em;
  width: 14px; height: 14px;
  background: linear-gradient(135deg, var(--teal) 50%, var(--mint) 50%);
  border-radius: 3px;
}

.panel { position: relative; background: var(--paper); border-radius: 18px; padding: 24px; box-shadow: var(--shadow-2); }
.panel-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: 6px; }
.count { min-width: 30px; text-align: center; background: var(--navy); color: #fff; font: 500 .8rem var(--mono); padding: 3px 10px; border-radius: 999px; transition: background-color .3s; }
.count.is-zero { background: var(--teal); }
.queue-list { list-style: none; margin: 0; padding: 0; }
.queue-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 15px 0; border-top: 1px solid var(--line-soft); transition: opacity .4s; }
.queue-row small { display: block; color: var(--ink-soft); font-size: 0.85rem; white-space: nowrap; }
.queue-row.is-done strong { color: var(--ink-soft); font-weight: 500; }
.cosign {
  flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 .82rem var(--body);
  padding: 8px 14px;
  border: 0; border-radius: 999px;
  background: var(--blue); color: #fff;
  cursor: pointer;
  transition: background-color .3s, color .3s, transform .2s var(--ease-out);
}
.cosign:hover { background: var(--navy); transform: translateY(-1px); }
.cosign:disabled { cursor: default; background: #dcefe9; color: var(--teal); transform: none; }
.cosign svg { width: 16px; height: 16px; stroke-width: 2.4; }
.hours { margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line-soft); display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: baseline; font-size: .9rem; color: var(--ink-soft); }
.hours strong { font: 500 1.05rem var(--mono); font-variant-numeric: tabular-nums; color: var(--navy); }
.hours-bar { grid-column: 1 / -1; height: 7px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.hours-bar span { display: block; height: 100%; width: 0%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--mint)); transition: width .9s var(--ease-out); }
.queue-done { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: #e3f4ef; color: #0b5561; font-weight: 600; animation: pop .5s var(--spring) both; }
.queue-done svg { width: 20px; height: 20px; stroke-width: 2.4; }
.board { grid-column: 1 / -1; }
.board-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 18px; margin-bottom: 6px; }
.board-head strong { font-size: 1.02rem; }
.board-head span { font-size: .88rem; color: var(--ink-soft); }
.board-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.board-table th, .board-table td { padding: 14px 12px; border-top: 1px solid var(--line-soft); text-align: left; vertical-align: middle; white-space: nowrap; }
.board-table th:first-child, .board-table td:first-child { padding-left: 0; }
.board-table thead th { padding-top: 8px; padding-bottom: 10px; border-top: 0; font: 500 .72rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--teal); }
.board-table tbody th { font-weight: 400; }
.who { display: flex; align-items: center; gap: 10px; }
.who strong { display: block; font-size: .95rem; }
.who small { font-size: .8rem; color: var(--ink-soft); }
.avatar-sm { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--sky); color: var(--navy); font: 700 .74rem var(--body); }
.avatar-sm.a-2 { background: var(--mint); }
.avatar-sm.a-3 { background: #c9d7ef; }
.meter { display: block; width: 100%; min-width: 120px; height: 7px; margin-bottom: 6px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.meter.thin { height: 5px; }
.meter > span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--mint)); transition: width 1.1s var(--ease-out); }
.meter.thin > span { background: var(--sky); }
.num { font: 400 .82rem var(--mono); font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.num [data-clinical] { font-weight: 500; color: var(--navy); }
.wait { display: inline-grid; place-items: center; min-width: 28px; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--navy); color: #fff; font: 500 .8rem var(--mono); transition: background-color .3s, color .3s; }
.wait.is-zero { background: #dcefe9; color: var(--teal); }
.board-table tr.is-bumped > * { animation: bump 1.4s var(--ease-out); }
@keyframes bump { from { background: rgba(92, 195, 168, .24); } to { background: transparent; } }
.panel-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font: 400 .74rem var(--mono); color: var(--ink-soft); }
.text-btn { border: 0; background: none; padding: 4px 0; font: 600 .82rem var(--body); color: var(--blue); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }

.superbill {
  position: relative;
  background: var(--paper);
  border-top: 6px solid var(--doc-accent);
  border-radius: 8px 8px 16px 16px;
  transition: border-color .3s;
  padding: 24px 26px 22px;
  box-shadow: var(--shadow-2);
}
.sb-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.sb-title { display: block; font-family: var(--display); font-size: 1.45rem; line-height: 1.2; }
.sb-practice { font-size: .86rem; color: var(--ink-soft); }
.sb-head .mono { font-size: 0.85rem; color: var(--ink-soft); padding-top: 6px; }
.sb-lines { display: grid; }
.sb-lines div { display: grid; grid-template-columns: 110px minmax(0, 1fr); padding: 11px 0; border-top: 1px dashed var(--line); }
.sb-lines dt { color: var(--ink-soft); font-size: 0.9rem; }
.sb-lines dd { font-size: .92rem; }
.scale { margin-top: 16px; padding: 14px 16px 12px; border-radius: 12px; background: var(--mist); display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; }
.scale label { font-size: .88rem; font-weight: 600; }
.scale output { font: 500 1.05rem var(--mono); font-variant-numeric: tabular-nums; color: var(--teal); }
.scale input { grid-column: 1 / -1; width: 100%; margin: 6px 0 0; accent-color: var(--teal); cursor: pointer; }
.scale-ends { grid-column: 1 / -1; display: flex; justify-content: space-between; font: 400 .72rem var(--mono); color: var(--ink-soft); }
.sb-stamp {
  position: absolute; right: 24px; top: 66px;
  padding: 6px 10px 5px;
  border: 2px solid #0b5d68; border-radius: 6px;
  background: rgba(255, 255, 255, .86);
  color: #0b5d68;
  font: 500 .74rem var(--mono); letter-spacing: .08em; text-transform: uppercase;
  rotate: -8deg;
}
.superbill.is-in .sb-stamp { animation: stamp .55s var(--spring) .3s both; }
@keyframes stamp { from { opacity: 0; transform: scale(1.5); } to { opacity: 1; transform: none; } }
.mock-foot { margin-top: 14px; font: 400 0.72rem var(--mono); color: var(--ink-soft); }

.family .fam-head { display: flex; align-items: center; gap: 14px; }
.fam-head strong { display: block; font-size: 1.05rem; }
.fam-head small { color: var(--ink-soft); }
.people { display: flex; }
.person { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--sky); color: var(--navy); font-weight: 700; box-shadow: 0 0 0 3px var(--paper); }
.person.p-2 { background: var(--mint); margin-left: -10px; }
.consents { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; }
.consents span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px 6px 8px; border-radius: 999px; background: #e3f4ef; color: #0b5561; font-size: .82rem; font-weight: 600; }
.consents svg { width: 16px; height: 16px; stroke-width: 2.4; }
.fam-label { margin-top: 18px; font: 500 .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.fam-notes { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.fam-notes li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-radius: 11px; background: var(--mist); font-size: .92rem; }
.fam-notes .mono { font-size: .8rem; color: var(--ink-soft); }
.fam-notes.private li { justify-content: flex-start; background: none; border: 1px dashed var(--line); color: var(--ink-soft); }
.fam-notes.private svg { width: 18px; height: 18px; color: var(--navy); }

/* Client portal on a phone */
.feature-lede { margin-top: 18px; max-width: 32em; color: var(--ink-soft); font-size: 1.08rem; }
.portal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.portal-tabs [role="tab"] { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink-soft); font: 600 .92rem var(--body); white-space: nowrap; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
.portal-tabs [role="tab"]:hover { color: var(--navy); border-color: var(--ink-soft); }
.portal-tabs [role="tab"] .mono { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--mist); color: var(--teal); font-size: .76rem; }
.portal-tabs [aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.portal-tabs [aria-selected="true"] .mono { background: var(--mint); color: var(--navy); }
.phone-wrap { display: grid; justify-items: center; }
.phone { position: relative; width: 300px; height: 612px; padding: 11px; border-radius: 48px; background: #0d1b2e; box-shadow: inset 0 0 0 2px #2b3c53, 0 50px 90px -40px rgba(11, 34, 64, .7), 0 10px 24px -12px rgba(11, 34, 64, .45); }
.phone::before { content: ''; position: absolute; top: 21px; left: 50%; z-index: 2; width: 90px; height: 26px; margin-left: -45px; border-radius: 999px; background: #0d1b2e; }
.phone-screen { display: flex; flex-direction: column; height: 100%; border-radius: 38px; overflow: hidden; background: #f4f7f6; }
.ph-bar { display: flex; align-items: center; gap: 9px; padding: 54px 18px 12px; background: var(--paper); border-bottom: 1px solid var(--line-soft); }
.ph-bar strong { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-track { flex: 1; display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ph-track::-webkit-scrollbar { display: none; }
.ph-panel { flex: 0 0 100%; display: grid; align-content: start; gap: 10px; padding: 20px 16px; scroll-snap-align: start; }
.ph-panel:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; border-radius: 0; }
.ph-hello { font-family: var(--display); font-size: 1.32rem; line-height: 1.2; white-space: nowrap; }
.ph-sub { margin-top: -6px; font-size: .86rem; color: var(--ink-soft); }
.ph-list { display: grid; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.ph-list li, .ph-card, .ph-row, .ph-sign { border-radius: 12px; background: var(--paper); box-shadow: 0 1px 2px rgba(11, 34, 64, .08), 0 4px 12px -8px rgba(11, 34, 64, .2); }
.ph-list li { display: flex; align-items: center; gap: 10px; padding: 11px 12px; font-size: .86rem; white-space: nowrap; }
.ph-list li > span:not(.ring) { flex: 1; }
.ph-list em { font-style: normal; font-size: .74rem; font-weight: 700; color: var(--teal); }
.ph-list em.todo { color: var(--blue); }
.ph-list svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: #dcefe9; color: var(--teal); stroke-width: 2.4; }
.ring { flex: none; width: 20px; height: 20px; border: 2px solid var(--line); border-radius: 50%; }
.ph-sign { display: grid; gap: 8px; margin-top: 4px; padding: 12px; }
.ph-label { font: 500 .66rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.sig { width: 100%; height: 46px; border-bottom: 1.5px solid var(--line); color: var(--navy); stroke-width: 2; }
.ph-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 12px; background: var(--brand); color: var(--brand-ink); font-weight: 600; font-size: .9rem; white-space: nowrap; transition: background-color .3s, color .3s; }
.ph-btn svg { width: 18px; height: 18px; }
.ph-btn-big { padding: 16px; font-size: 1rem; }
.ph-card { display: grid; gap: 3px; padding: 12px 14px; }
.ph-card strong { font-size: .95rem; }
.ok { display: inline-flex; align-items: center; gap: 5px; font-style: normal; font-size: .78rem; font-weight: 700; color: var(--teal); }
.ok svg { width: 16px; height: 16px; stroke-width: 2.4; }
.ph-fine { font-size: .8rem; color: var(--ink-soft); }
.ph-video { display: grid; place-items: center; height: 190px; border-radius: 16px; background: radial-gradient(circle at 50% 40%, rgba(143, 185, 222, .5), transparent 60%), linear-gradient(160deg, #163a63, var(--navy)); }
.ph-video span { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--sky); color: var(--navy); font-weight: 700; }
.ph-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; font-size: .86rem; white-space: nowrap; }
.ph-dots { display: flex; justify-content: center; gap: 6px; padding: 10px 0 18px; }
.ph-dots i { width: 6px; height: 6px; border-radius: 999px; background: var(--line); transition: width .3s var(--ease-out), background-color .3s; }
.ph-dots i.on { width: 18px; background: var(--navy); }

/* Switching */
.switch { background: var(--navy); color: #fff; }
.switch-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.switch p { max-width: 36rem; }
.switch p { margin-top: 18px; color: #c9d6e6; font-size: 1.1rem; }
.moves { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.moves li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 12px; border-radius: 999px; border: 1px solid rgba(201, 214, 230, .32); font-weight: 600; }
.moves svg { width: 18px; height: 18px; color: var(--mint); stroke-width: 2.4; }
.switch .fhir { margin-top: 20px; font-size: 1rem; }

/* Security */
.diagram {
  position: relative;
  padding: 34px 30px 52px;
  margin-bottom: 44px;
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow-1);
}
.diagram-art { display: grid; grid-template-columns: auto minmax(48px, 1fr) auto minmax(48px, 1fr) minmax(0, 1.7fr); align-items: center; }
.node { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; font-size: .86rem; font-weight: 600; }
.node small { font-weight: 400; color: var(--ink-soft); font-size: .76rem; margin-top: -4px; }
.node svg { width: 48px; height: 48px; padding: 11px; border-radius: 14px; background: var(--mist); color: var(--navy); stroke-width: 1.6; }
.node-door svg { background: var(--navy); color: var(--mint); box-shadow: 0 10px 22px -12px rgba(11, 34, 64, .7); }
.wire { position: relative; height: 2px; margin: 0 14px 28px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 11px); }
.pkt { position: absolute; top: 50%; left: 0; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px rgba(92, 195, 168, .2); animation: travel 3.5s linear infinite; }
.pkt.bad { background: #d8704b; box-shadow: 0 0 0 3px rgba(216, 112, 75, .2); animation-name: blocked; }
.pkt:nth-child(2) { animation-delay: .7s; }
.pkt:nth-child(3) { animation-delay: 1.4s; }
.pkt:nth-child(4) { animation-delay: 2.1s; }
.pkt:nth-child(5) { animation-delay: 2.8s; }
.wire-out .pkt:nth-child(1) { animation-delay: 1.1s; }
.wire-out .pkt:nth-child(2) { animation-delay: 2.5s; }
.wire-out .pkt:nth-child(3) { animation-delay: 3.9s; }
.diagram.is-paused .pkt { animation-play-state: paused; }
@keyframes travel { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: calc(100% - 9px); opacity: 0; } }
@keyframes blocked { 0% { left: 0; opacity: 0; transform: none; } 12% { opacity: 1; } 72% { left: calc(100% - 9px); opacity: 1; transform: none; } 84% { left: calc(100% - 9px); opacity: 0; transform: scale(2.2); } 100% { left: calc(100% - 9px); opacity: 0; } }
.vnet {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px;
  padding: 56px 16px 18px;
  border: 1.5px dashed var(--teal); border-radius: 18px;
  background: rgba(92, 195, 168, .07);
}
.vnet-label { position: absolute; left: 16px; top: 12px; font: 500 .7rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--teal); }
.vnet .node svg { width: 42px; height: 42px; padding: 9px; background: var(--paper); box-shadow: 0 1px 2px rgba(11, 34, 64, .1); }
.motion-btn { position: absolute; right: 18px; bottom: 14px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft); font: 600 .78rem var(--body); padding: 5px 12px; border-radius: 999px; cursor: pointer; }
.motion-btn:hover { color: var(--navy); border-color: var(--ink-soft); }

.sec-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.sec-grid > div { padding: 24px 22px 26px 0; border-bottom: 1px solid var(--line); }
.sec-grid > div:not(:nth-child(4n + 1)) { padding-left: 22px; border-left: 1px solid var(--line); }
.sec-grid p { color: var(--ink-soft); margin-top: 8px; font-size: 0.97rem; }

/* Questions */
.faq { background: var(--paper); }
.faq-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq-head p:last-child { margin-top: 18px; color: var(--ink-soft); }
.faq-head a { color: var(--blue); font-weight: 600; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; list-style: none; cursor: pointer; padding: 20px 44px 20px 0; font-weight: 600; font-size: 1.06rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ''; position: absolute; right: 8px; top: 50%;
  width: 10px; height: 10px; margin-top: -8px;
  border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal);
  transform: rotate(45deg);
  transition: transform .35s var(--ease-out), margin-top .35s;
}
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq-list summary:hover { color: var(--blue); }
.faq-list details p { padding: 0 0 22px; max-width: 40em; color: var(--ink-soft); }
.faq-list details::details-content { height: 0; overflow: clip; transition: height .4s var(--ease-out), content-visibility .4s allow-discrete; }
.faq-list details[open]::details-content { height: auto; }

/* Promise: two sentences, one per line, centered */
.roots { text-align: center; padding-bottom: clamp(56px, 7vw, 96px); }
.roots p { font-family: var(--display); line-height: 1.3; }
.roots span { display: block; }
.roots span + span { color: var(--teal); }

/* CTA */
.cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #fff;
}
/* the quilt, faintly, under the call to action */
.cta::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .07) 50%, transparent 50%) 0 0 / 120px 120px,
    linear-gradient(315deg, rgba(3, 20, 40, .1) 50%, transparent 50%) 60px 60px / 120px 120px;
  mask: linear-gradient(90deg, transparent 30%, #000 85%);
  pointer-events: none;
}
.cta-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.cta-copy > p { margin-top: 18px; max-width: 32em; color: #dbe9f2; font-size: 1.1rem; }
.pack { margin-top: 26px; display: grid; gap: 18px; max-width: 460px; }
.pack-field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.pack-field label, .pack-field legend, .pack-label { padding: 0; font-weight: 600; font-size: .92rem; color: #e6f0f6; }
.pack-label small { margin-left: 4px; font-weight: 400; color: #cfe1ec; }
.pack-field input[type="text"] {
  width: 100%; max-width: 440px; height: 52px; padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .4); border-radius: 12px;
  background: rgba(255, 255, 255, .12); color: #fff;
  font: 500 1.05rem var(--body);
  caret-color: var(--mint);
  transition: border-color .2s, background-color .2s;
}
.pack-field input[type="text"]::placeholder { color: rgba(255, 255, 255, .62); }
.pack-field input[type="text"]:focus { outline: none; border-color: #fff; background: rgba(255, 255, 255, .18); box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; display: block; cursor: pointer; }
.swatch input[type="radio"] { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.sw { display: block; width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); transition: box-shadow .2s, transform .2s var(--ease-out); }
.swatch:hover .sw { transform: scale(1.06); }
.swatch input:checked + .sw { box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(255, 255, 255, .3); }
.swatch input:focus-visible + .sw { outline: 3px solid #fff; outline-offset: 5px; }
.sw-navy { background: #0b2240; }
.sw-blue { background: #0a4d8c; }
.sw-teal { background: #0e6b78; }
.sw-plum { background: #5b3a76; }
.sw-forest { background: #2f5d3a; }
.sw-clay { background: #9a4f2c; }
.swatch-any { width: 34px; height: 34px; padding: 3px; border-radius: 50%; background: conic-gradient(#e86a5d, #e8c35d, #6fd18a, #5db8e8, #8f6fe8, #e85dbd, #e86a5d); }
.swatch-any input[type="color"] { display: block; width: 100%; height: 100%; padding: 0; border: 2px solid rgba(255, 255, 255, .9); border-radius: 50%; background: none; cursor: pointer; }
.swatch-any input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.swatch-any input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 50%; }
.swatch-any input[type="color"]::-moz-color-swatch { border: 0; border-radius: 50%; }
.swatch-any:has(input.is-picked) { box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(255, 255, 255, .3); }
.pack-logo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.pack-logo .pack-label { flex-basis: 100%; }
.file-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px dashed rgba(255, 255, 255, .6); border-radius: 999px; color: #fff; font-weight: 600; font-size: .92rem; cursor: pointer; white-space: nowrap; transition: background-color .2s, border-color .2s; }
.file-btn:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.file-btn svg { width: 18px; height: 18px; }
input.vh:focus-visible + .file-btn { outline: 3px solid #fff; outline-offset: 3px; }
.cta .text-btn { color: #fff; }
.pack-more summary { display: inline-flex; align-items: center; gap: 10px; list-style: none; cursor: pointer; font-weight: 600; font-size: .92rem; color: #e6f0f6; white-space: nowrap; }
.pack-more summary::-webkit-details-marker { display: none; }
.pack-more summary::after { content: ''; width: 8px; height: 8px; margin-top: -4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; rotate: 45deg; transition: rotate .3s var(--ease-out), margin-top .3s; }
.pack-more[open] summary::after { rotate: -135deg; margin-top: 3px; }
.pack-more > .pack-field { margin-top: 16px; }
.lengths { display: flex; flex-wrap: wrap; gap: 8px; }
.lengths label { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; color: #fff; font-weight: 500; font-size: .88rem; cursor: pointer; white-space: nowrap; transition: background-color .2s, border-color .2s; }
.lengths input { margin: 0; accent-color: var(--mint); }
.lengths label:has(input:checked) { background: rgba(255, 255, 255, .16); border-color: #fff; }
.pack-msg { font-size: .88rem; color: #ffe2b8; }
.pack-msg:empty { display: none; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.copy-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .45); background: transparent; color: #fff; font: 600 .95rem var(--body); cursor: pointer; transition: background-color .2s, border-color .2s; }
.copy-btn:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.copy-btn svg { width: 18px; height: 18px; }
.cta .small { margin-top: 18px; font-size: 0.9rem; color: #cfe1ec; max-width: 34em; }
.cta .small a { color: #fff; }

.preview { position: relative; min-height: 440px; }
.pv-app, .pv-portal { position: absolute; background: var(--paper); color: var(--navy); border-radius: 16px; box-shadow: 0 30px 60px -30px rgba(3, 18, 36, .8), 0 2px 6px rgba(3, 18, 36, .2); }
.pv-app { left: 0; top: 0; width: 88%; overflow: hidden; rotate: -2deg; }
.pv-bar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--mist); border-bottom: 1px solid var(--line-soft); }
.pv-bar strong { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-clock { margin-left: auto; font: 500 .76rem var(--mono); color: var(--teal); }
.pv-list { list-style: none; margin: 0; padding: 8px 16px 12px; }
.pv-list li { display: grid; grid-template-columns: 46px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-soft); font-size: .86rem; }
.pv-list li:first-child { border-top: 0; }
.pv-list .mono { color: var(--ink-soft); font-size: .8rem; }
.pv-list em { font-style: normal; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #dcefe9; color: var(--teal); }
.pv-list em.due { background: #e1edf9; color: var(--blue); }
.pv-portal { right: 0; bottom: 0; width: 56%; padding: 20px; display: grid; gap: 10px; rotate: 2.5deg; }
.pv-portal strong { font-family: var(--display); font-weight: 400; font-size: 1.05rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-portal strong span { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.pv-field { padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line); font-size: .8rem; color: var(--ink-soft); }
.pv-btn { padding: 10px 12px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-size: .84rem; font-weight: 600; text-align: center; transition: background-color .3s, color .3s; }
.pv-brand { display: flex; }
.pv-list li > span:nth-child(2) small { display: block; font-size: .74rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-lengths { padding: 0 16px 14px; font-size: .8rem; color: var(--ink-soft); }
.pv-lengths span { margin-left: 6px; font-family: var(--mono); color: var(--navy); }
.preview-col { display: grid; align-content: center; }
.see-all { display: inline-flex; align-items: center; gap: 6px; width: fit-content; margin-top: 26px; color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }
.see-all svg { width: 18px; height: 18px; rotate: -90deg; }

/* Footer */
.foot { padding: 34px var(--gutter) 30px; font-size: 0.9rem; color: var(--ink-soft); }
.foot-top, .foot-bottom { max-width: var(--wrap); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px 28px; }
.foot-top { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.foot .brand { font-size: 1.05rem; color: var(--navy); }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
.foot-bottom { padding-top: 20px; font-size: .84rem; }

/* Scroll reveals: content stays visible unless the script marks it first */
.will-reveal { opacity: 0; transform: translateY(18px); }
.will-reveal.is-in { opacity: 1; transform: none; transition: opacity .8s var(--ease-out), transform 1s var(--ease-out); }

/* Responsive */
@media (max-width: 1180px) { .nav-day { display: none; } }
@media (max-width: 1080px) {
  .nav-links { gap: 18px; }
  .nav-faq { display: none; }
  .diagram { padding-inline: 20px; }
  .diagram-art { grid-template-columns: auto minmax(32px, 1fr) auto minmax(32px, 1fr) minmax(0, 1.9fr); }
  .sec-grid { grid-template-columns: repeat(2, 1fr); }
  .sec-grid > div:not(:nth-child(4n + 1)) { padding-left: 0; border-left: 0; }
  .sec-grid > div:nth-child(2n) { padding-left: 22px; border-left: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .nav { gap: 12px; }
  .nav .btn-small { margin-left: auto; }
  .nav-links {
    position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 8px);
    display: none; flex-direction: column; gap: 4px; margin: 0;
    padding: 10px; border-radius: 16px;
    background: var(--paper); box-shadow: var(--shadow-2);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: 10px; font-size: 1rem; color: var(--navy); }
  .nav-links a:hover { background: var(--mist); }
  .nav-faq, .nav-day { display: block; }
  .hero, .feature, .theater, .switch-inner, .faq-inner, .cta-inner { grid-template-columns: 1fr; }
  .feature-flip .feature-copy { order: 0; }
  .quilt { max-width: 520px; width: 100%; margin: 0 auto; }
  .stage { top: 74px; order: -1; z-index: 2; margin: 0 calc(var(--gutter) * -1); padding: 10px var(--gutter) 14px; background: color-mix(in srgb, var(--paper) 92%, transparent); }
  .app { height: 330px; zoom: .82; }
  .sample-note { margin-top: 6px; }
  .step { min-height: 58vh; }
  .diagram { padding: 28px 20px 60px; }
  .diagram-art { grid-template-columns: 1fr; justify-items: center; gap: 0; }
  .wire { width: 2px; height: 56px; margin: 8px 0; background: repeating-linear-gradient(180deg, var(--line) 0 6px, transparent 6px 11px); }
  .pkt { top: 0; left: 50%; margin: 0 0 0 -4.5px; animation-name: travel-down; }
  .pkt.bad { animation-name: blocked-down; }
  .vnet { width: 100%; max-width: 440px; }
  .preview { min-height: 420px; max-width: 520px; }
}
@media (max-width: 760px) {
  br.n { display: inline; }
  h2 { --max: 2.25rem; }
  #day-title { --fit: 11.07; }
  #switch-title { --fit: 7.08; }
  #sec-title { --fit: 8.02; }
  .roots p { --fit: 9.45; }
}
@media (max-width: 900px) {
  .board-table thead { display: none; }
  .board-table, .board-table tbody, .board-table tr, .board-table th, .board-table td { display: block; width: 100%; }
  .board-table tr { padding: 14px 0 6px; border-top: 1px solid var(--line-soft); }
  .board-table th, .board-table td { padding: 6px 0; border: 0; }
  .board-table td { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 12px; }
  .board-table td::before { content: attr(data-label); font: 500 .7rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--teal); }
  .board-table td .meter { margin: 0 0 4px; }
  .try-stage { height: 620px; }
  .portal-tabs { margin-top: 22px; }
}
@media (max-width: 560px) {
  .board-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 18px; }
  .board-table .meter { min-width: 0; }
  .board-table th { grid-column: 1 / -1; }
  .board-table td { grid-template-columns: 1fr; gap: 4px; align-content: start; }
  .board-table td .wait { justify-self: start; }
  .board-table td::before { white-space: nowrap; font-size: .64rem; }
  .try-bar { gap: 10px; padding: 0 12px; }
  .try-label { display: none; }
  .dots { margin-right: auto; }
  .try-cta { padding: 14px 20px; font-size: 1rem; }
  .phone { width: 280px; height: 580px; }
}
@keyframes travel-down { 0% { top: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: calc(100% - 9px); opacity: 0; } }
@keyframes blocked-down { 0% { top: 0; opacity: 0; transform: none; } 12% { opacity: 1; } 72% { top: calc(100% - 9px); opacity: 1; transform: none; } 84% { top: calc(100% - 9px); opacity: 0; transform: scale(2.2); } 100% { top: calc(100% - 9px); opacity: 0; } }
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand span { font-size: 1.05rem; }
  .nav .btn-small { padding: 8px 13px; font-size: .86rem; }
  .menu-btn span { display: none; }
  .facts { gap: 8px 16px; }
  .binding { padding: 9px; border-radius: 16px; }
  .patch { padding: 7px; font-size: .72rem; }
  .tag { padding: 3px 6px 2px; }
  .p5 img { width: 34px; height: 34px; }
  .p5 .tag { font-size: .88rem; }
  .step { grid-template-columns: 1fr; gap: 4px; }
  .app { zoom: .68; height: 360px; }
  .s-video { grid-template-columns: 1fr; }
  .ready { display: none; }
  .sec-grid { grid-template-columns: 1fr; }
  .sec-grid > div:nth-child(2n) { padding-left: 0; border-left: 0; }
  .sb-stamp { top: 62px; right: 16px; }
  .superbill { padding-inline: 18px; }
  .sb-lines div { grid-template-columns: 78px minmax(0, 1fr); }
  .sb-lines dd { font-size: .84rem; }
}
@media (max-width: 400px) {
  .sb-lines div { grid-template-columns: 1fr; gap: 2px; }
  .sb-lines dt { font-size: .8rem; }
  .preview { min-height: 0; }
  .pv-app, .pv-portal { position: relative; rotate: 0deg; }
  .pv-app { width: 100%; }
  .pv-portal { width: 84%; margin: -22px 0 0 auto; }
  .foot-top, .foot-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .board-table tr { grid-template-columns: minmax(0, 1fr); }
  .vnet { grid-template-columns: 1fr; gap: 10px; }
  .vnet .node { flex-direction: row; gap: 12px; text-align: left; }
  .nav { gap: 8px; }
  .brand { gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .brand span { font-size: 1rem; }
  .nav .btn-small { padding: 7px 11px; font-size: .82rem; }
  .menu-btn { padding: 7px 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0s !important; animation-delay: 0s !important; transition-duration: 0s !important; }
  .pkt { display: none; }
  .will-reveal { opacity: 1; transform: none; }
  .quilt-tilt { transform: none !important; }
}
