/* Case Nurse marketing site.
   Direction: warm editorial (Newsreader + Public Sans on paper) for the people and the argument,
   with captures of the real app for the product and Atkinson Hyperlegible Mono for data labels.
   Pages are generated from site-src/ by build.py. */

@font-face { font-family: "Newsreader"; src: url("/assets/fonts/newsreader-var.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/assets/fonts/newsreader-italic-var.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/assets/fonts/public-sans-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Mono"; src: url("/assets/fonts/atkinson-mono-var.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #F3EDE3;        /* page */
  --paper-2: #EAE2D4;      /* alternate band */
  --sheet: #FBF8F2;        /* chart paper, documents */
  --rule: #D9D0C0;
  --rule-soft: #E6DECF;
  --ink: #0E1439;          /* brand navy */
  --body: #33374F;
  --muted: #625E6C;
  --scrub: #64A095;        /* brand teal, used as a color field (scrubs green) */
  --scrub-deep: #2B6A60;   /* text, links, buttons */
  --scrub-dark: #22574F;
  --scrub-wash: #DDE9E3;
  --amber: #D08A12;
  --amber-ink: #7A4E00;
  --amber-wash: #FBEFD8;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --shadow-paper: 0 1px 1px rgba(60, 44, 20, .10), 0 6px 14px -6px rgba(60, 44, 20, .22), 0 26px 44px -22px rgba(60, 44, 20, .32);
  --shadow-window: 0 1px 2px rgba(14, 20, 57, .10), 0 12px 28px -10px rgba(14, 20, 57, .28), 0 50px 90px -40px rgba(14, 20, 57, .45);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .24 0 0 0 0 .12 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 36px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--grain), var(--paper); color: var(--body); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.62; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--scrub-deep); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--scrub-dark); }
:focus-visible { outline: 2px solid var(--scrub-deep); outline-offset: 3px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
strong { color: var(--ink); font-weight: 650; }
h1, h2, h3 { color: var(--ink); margin: 0 0 .5em; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.018em; font-optical-sizing: auto; }
h1, .h1-alt { font-size: clamp(2.6rem, 6.4vw, 5.1rem); line-height: 1; }
.h1-alt { font-family: var(--serif); font-weight: 400; letter-spacing: -0.018em; color: var(--ink); margin: 0 0 .5em; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.05; }
h3 { font-family: var(--sans); font-size: 1.12rem; font-weight: 650; line-height: 1.3; }
h1 em, h2 em, .serif em { font-style: italic; color: var(--scrub-deep); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.mono { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; }
.serif { font-family: var(--serif); }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }

/* ---------- Header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 32px; height: 32px; }
.brand-word { width: 138px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.site-nav a { color: var(--body); text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover { color: var(--scrub-deep); }
.site-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -1px 0 var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 20px; }
.site-nav .btn, .site-nav .btn:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 22px; height: 1.5px; background: var(--ink); position: relative; transition: transform .2s; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; } .nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 4px var(--gutter) 22px; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule-soft); font-family: var(--serif); font-size: 1.35rem; color: var(--ink); }
  .site-nav a[aria-current="page"] { box-shadow: none; color: var(--scrub-deep); }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 12px; padding-top: 18px; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-weight: 600; font-size: 0.98rem; line-height: 1.2; padding: 15px 22px; border-radius: 2px; border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--scrub-deep); color: #fff; }
.btn-primary:hover { background: var(--scrub-dark); color: #fff; }
.btn-secondary { color: var(--ink); border-color: var(--ink); background: transparent; }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-link { color: var(--ink); padding-left: 4px; padding-right: 4px; text-decoration: underline; text-underline-offset: 6px; }
.btn-link:hover { color: var(--scrub-deep); }
.btn-light { background: var(--sheet); color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-sm { padding: 10px 16px; font-size: 0.92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn[disabled] { opacity: .6; cursor: progress; }
.arrow { font-family: var(--mono); font-weight: 400; }

/* ---------- Kicker line (section label with a rule) ---------- */
.kicker { display: flex; align-items: center; gap: 14px; font-family: var(--sans); font-size: 0.78rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--scrub-deep); margin-bottom: 26px; }
.kicker::after { content: ""; flex: 1; height: 1px; background: rgba(43, 106, 96, 0.35); max-width: 260px; }
.kicker.no-rule::after { display: none; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.band-2 { background: var(--grain), var(--paper-2); }
.band-ink { background: var(--ink); color: #D7D9E6; }
.band-ink h2, .band-ink h3, .band-ink strong { color: #fff; }
.band-ink h2 em { color: #A9D3CA; }
.band-ink a:not(.btn) { color: #A9D3CA; }
.band-ink .kicker { color: #A9D3CA; }
.band-ink .kicker::after { background: rgba(169, 211, 202, 0.35); }
.band-scrub { background: var(--scrub-wash); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: end; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 0; font-size: 1.12rem; max-width: 34em; }
.sec-head.stack { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.sec-head.stack p { margin-top: 18px; }

/* ---------- Editorial hero ---------- */
.hero { overflow-x: clip; padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 9vw, 112px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(36px, 6vw, 88px); align-items: end; }
.hero h1 { margin-bottom: 30px; }
.dek { font-size: clamp(1.12rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--body); max-width: 33em; margin-bottom: 34px; }
.fine { margin-top: 26px; font-size: 0.9rem; color: var(--muted); }
.fine span + span::before { content: " \00b7  "; }
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 5vw, 56px); }
.page-hero .dek { margin-bottom: 0; }

/* Portrait slot: a real photo when we have one, a typeset card until then */
.portrait { position: relative; background: var(--scrub); color: var(--ink); padding: clamp(28px, 3.4vw, 44px); min-height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.portrait { box-shadow: var(--shadow-paper); isolation: isolate; }
.portrait::before { content: ""; position: absolute; z-index: -1; inset: 6% -7% -4% 9%; background: #fff url("/assets/records/pt-evaluation.webp") top center / cover no-repeat; box-shadow: var(--shadow-paper); transform: rotate(4deg); }
.portrait::after { content: ""; position: absolute; z-index: -1; inset: 0; background: var(--grain), var(--scrub); }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait .p-top { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; display: flex; justify-content: space-between; gap: 12px; }
.portrait blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.18; letter-spacing: -0.01em; }
.portrait blockquote p { margin: 0; }
.portrait .p-name { font-family: var(--serif); font-size: 1.15rem; }
.portrait .p-name small { display: block; font-family: var(--sans); font-size: 0.86rem; margin-top: 2px; }
.portrait .p-stat { border-top: 1px solid rgba(14, 20, 57, 0.35); padding-top: 14px; display: flex; align-items: baseline; gap: 12px; font-size: 0.92rem; }
.portrait .p-stat b { font-family: var(--serif); font-weight: 400; font-size: 2.6rem; line-height: 1; letter-spacing: -0.02em; }

/* ---------- Desk: record pages under the real app ---------- */
.hero-desk { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); align-items: center; }
.hero-desk h1 { font-size: clamp(2.6rem, 5vw, 4.3rem); line-height: 1.02; }
.desk { position: relative; aspect-ratio: 1 / 0.92; margin-right: calc(-1 * var(--gutter) - 40px); }
.desk-pile .sheet { position: absolute; width: 46%; height: auto; background: #fff; box-shadow: var(--shadow-paper); }
.sheet-1 { left: 2%; top: 4%; transform: rotate(-7deg); }
.sheet-2 { left: 24%; top: 0; transform: rotate(2.5deg); }
.sheet-3 { left: 47%; top: 5%; transform: rotate(-1.5deg); }
.window { position: absolute; left: 14%; top: 38%; width: 92%; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-window); border: 1px solid rgba(14, 20, 57, .10); }
.window-bar { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; background: #ECEAE6; border-bottom: 1px solid rgba(14, 20, 57, .08); }
.window-bar i { width: 9px; height: 9px; border-radius: 50%; background: #CFCAC2; }
.window-bar span { margin: 0 auto; transform: translateX(-20px); font-size: 0.7rem; color: #77736C; background: #F7F5F2; padding: 1px 14px; border-radius: 5px; }
.window img { width: 100%; }
.card-note { position: absolute; left: -6%; bottom: -4%; width: 50%; margin: 0; padding: 20px 22px 18px; background: var(--grain), var(--sheet); box-shadow: var(--shadow-paper); transform: rotate(-1.5deg); }
.card-note blockquote { margin: 0 0 14px; text-indent: -0.38em; font-family: var(--serif); font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.3; color: var(--ink); }
.card-note blockquote p { margin: 0; }
.card-note figcaption { font-size: 0.78rem; line-height: 1.4; color: var(--muted); }
.card-note figcaption b { display: block; color: var(--ink); font-weight: 600; font-size: 0.88rem; margin-bottom: 1px; }

/* ---------- People ---------- */
.print { display: block; background: #fff; padding: 10px; box-shadow: var(--shadow-paper); }
.print img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.desk-print { position: absolute; z-index: 2; right: 4%; top: 3%; width: 31%; transform: rotate(3deg); }
.desk .card-note { z-index: 3; }
.nurse-print { position: absolute; z-index: 2; width: 23%; margin: 0; padding: 8px 8px 6px; }
.nurse-print picture, .nurse-print img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.nurse-print figcaption { margin-top: 5px; text-align: center; font-family: var(--serif); font-size: clamp(0.8rem, 1.1vw, 0.98rem); line-height: 1.2; color: var(--ink); }
.nurse-print-1 { right: 37%; top: 7%; transform: rotate(-5deg); }
.nurse-print-2 { right: 17%; top: 1%; transform: rotate(2.5deg); z-index: 3; }
.nurse-print-3 { right: -1%; top: 9%; transform: rotate(-2deg); }
.roll-note { font-size: 0.86rem; line-height: 1.45; color: var(--muted); }
.roll-note b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--ink); margin-bottom: 6px; }
.portrait-photo { position: relative; margin: 0; padding: 0 0 18% 0; isolation: isolate; }
.portrait-photo::before { content: ""; position: absolute; z-index: -1; left: 22%; top: 12%; width: 74%; aspect-ratio: 816 / 1056; background: #fff url("/assets/records/pt-evaluation.webp") top center / cover no-repeat; box-shadow: var(--shadow-paper); transform: rotate(5deg); }
.portrait-photo .print { width: 76%; transform: rotate(-2.5deg); }
.pp-card { position: absolute; right: -2%; bottom: 0; width: 66%; padding: 20px 22px 18px; background: var(--grain), var(--sheet); box-shadow: var(--shadow-paper); }
.pp-card blockquote { margin: 0 0 12px; text-indent: -0.38em; font-family: var(--serif); font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.3; color: var(--ink); }
.pp-card blockquote p { margin: 0; }
.pp-card figcaption { font-size: 0.84rem; line-height: 1.4; color: var(--muted); }
.pp-card figcaption b { display: block; color: var(--ink); font-weight: 650; font-size: 0.92rem; }
.pp-card .p-stat { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rule); font-size: 0.84rem; color: var(--muted); }
.pp-card .p-stat b { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1; color: var(--ink); }
.disclose { font-size: 0.78rem; font-weight: 400; font-style: normal; letter-spacing: 0; color: var(--muted); }
figcaption .disclose, .pp-card .disclose, .card-note .disclose, .p-name .disclose, .with-avatar .disclose { display: block; margin-top: 1px; }
.band-ink .disclose { color: #9EA6C4; }
.team-row { display: flex; flex-wrap: wrap; gap: 12px 48px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--rule); }
.team-row b { display: block; color: var(--ink); font-family: var(--serif); font-weight: 400; font-size: 1.25rem; }
.team-row span { color: var(--muted); font-size: 0.94rem; }
.avatar { border-radius: 50%; object-fit: cover; display: block; }
.pull .avatar { width: 120px; height: 120px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); }
.with-avatar { display: flex; align-items: center; gap: 14px; }
.with-avatar .avatar { width: 52px; height: 52px; flex: none; }

.photo-print { margin: 0; background: #fff; padding: 12px 12px 14px; box-shadow: var(--shadow-paper); transform: rotate(1.5deg); }
.photo-print img { display: block; width: 100%; height: auto; }
.photo-print figcaption { font-size: 0.86rem; color: var(--muted); margin-top: 10px; }
.photo-print.wide { transform: rotate(-1deg); }
.community { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.community .photo-print:first-child { max-width: 340px; }
.about-hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: center; }
.about-hero .photo-print { max-width: 380px; justify-self: end; }

/* ---------- Pull quote ---------- */
.pull { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: start; }
.pull .mark-q { font-family: var(--serif); font-size: 9rem; line-height: 0.75; color: var(--scrub); }
.pull blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.7rem, 3.6vw, 3rem); line-height: 1.15; letter-spacing: -0.012em; color: inherit; }
.band-ink .pull blockquote { color: #fff; }
.pull blockquote p { margin: 0; text-indent: -0.4em; }
.pull blockquote em { font-style: italic; color: #A9D3CA; }
.pull cite { display: block; margin-top: 26px; font-style: normal; font-size: 0.98rem; }
.pull cite b { color: #fff; font-weight: 600; }
.band-ink .pull cite { color: #B9C0D9; }

/* Inline quote (editorial) */
.quote { margin: 0; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.3; color: var(--ink); }
.quote blockquote p { margin: 0; text-indent: -0.38em; }
.quote figcaption { margin-top: 12px; font-size: 0.94rem; color: var(--muted); }
.quote figcaption strong { display: block; color: var(--ink); font-weight: 600; }
.quote-lg blockquote { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.18; }
.quotes-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.quotes-row .quote { padding: 28px 28px 8px 0; }
.quotes-row .quote + .quote { padding-left: 28px; border-left: 1px solid var(--rule); }
.quotes-row blockquote { font-size: 1.4rem; }

/* ---------- Ruled columns (replaces card grids) ---------- */
.cols { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.cols > * { padding: 26px 28px 6px 0; }
.cols > * + * { padding-left: 28px; border-left: 1px solid var(--rule); }
.cols h3 { margin-bottom: 8px; }
.cols p { color: var(--body); font-size: 0.99rem; }
.cols .num { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); display: block; margin-bottom: 14px; }
.band-ink .cols, .band-ink .cols > * + * { border-color: rgba(255,255,255,.18); }
.band-ink .cols p { color: #D7D9E6; }

/* ---------- Division of labor ---------- */
.labor { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); }
.labor > div { padding: 34px 48px 0 0; }
.labor > div + div { padding-left: 48px; border-left: 1px solid var(--rule); }
.labor h3 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 650; margin: 0 0 14px; }
.labor ol { list-style: none; padding: 0; margin: 0; counter-reset: l; }
.labor li { counter-increment: l; font-family: var(--serif); font-size: clamp(1.2rem, 1.9vw, 1.55rem); line-height: 1.3; color: var(--ink); padding: 15px 0; border-bottom: 1px solid var(--rule-soft); display: grid; grid-template-columns: 44px 1fr; }
.labor li::before { content: counter(l, decimal-leading-zero); font-family: var(--mono); font-size: 0.78rem; color: var(--muted); padding-top: 8px; }
.labor .hers li { color: var(--scrub-deep); }

/* ---------- Product chart (a capture of the real app) ---------- */
.h-wide { max-width: 18em; margin-bottom: clamp(28px, 4vw, 44px); }
.product-chart { margin: 0; }
.pc-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid rgba(14, 20, 57, .10); border-radius: 12px; background: #f2f2f7; box-shadow: var(--shadow-window); }
.pc-frame { position: relative; min-width: 760px; }
.pc-frame img { width: 100%; }
.pc-mark, .pc-num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--mono); font-size: 0.74rem; font-weight: 700; }
.pc-mark { position: absolute; transform: translate(-50%, -50%); box-shadow: 0 0 0 3px #fff; }
.pc-notes { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 36px; font-size: 0.98rem; }
.pc-notes li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; }
.product-pair { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; margin-top: clamp(64px, 8vw, 104px); }
.product-pair h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.2; }

/* ---------- Scale chart ---------- */
.scale { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 28px; row-gap: 28px; align-items: center; font-variant-numeric: tabular-nums lining-nums; }
.scale .lab { font-family: var(--serif); font-size: 1.15rem; line-height: 1.2; color: var(--ink); white-space: nowrap; }
.scale .lab small { display: block; font-family: var(--sans); color: var(--muted); font-size: 0.82rem; margin-top: 4px; }
.scale .bars { display: grid; gap: 7px; }
.brow { display: flex; align-items: center; gap: 12px; }
.scale .b { height: 18px; flex: none; border-radius: 1px; }
.scale .b.raw { background: repeating-linear-gradient(90deg, #CFC6B5 0 3px, #E2DACB 3px 6px); }
.scale .b.read { background: var(--scrub); }
.brow em { font-style: normal; font-size: 0.86rem; white-space: nowrap; color: var(--muted); }
.brow em.read { color: var(--scrub-deep); font-weight: 600; }
.scale-note { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 28px 0 0; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 0.84rem; color: var(--muted); }
.scale-note i { display: inline-block; width: 14px; height: 10px; margin-right: 7px; vertical-align: 0; }
.scale-note i.raw { background: repeating-linear-gradient(90deg, #CFC6B5 0 3px, #E2DACB 3px 6px); }
.scale-note i.read { background: var(--scrub); }

/* ---------- Product figure ---------- */
.figure { margin: 0; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: end; }
.figure img { width: 100%; border: 1px solid var(--rule); box-shadow: 0 30px 60px -40px rgba(14, 20, 57, 0.5); }
.figure figcaption { font-family: var(--serif); font-size: 1.12rem; line-height: 1.5; color: var(--body); }
.figure figcaption b { display: block; font-family: var(--mono); font-weight: 400; font-size: 0.76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.figure.full { grid-template-columns: minmax(0, 1fr); }
.shot video { display: block; width: 100%; height: auto; }
.shot { border: 1px solid rgba(14, 20, 57, .12); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-window); background: #fff; }

/* ---------- Lists ---------- */
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding: 11px 0 11px 30px; border-bottom: 1px solid var(--rule-soft); }
.ticks li:first-child { border-top: 1px solid var(--rule-soft); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 12px; height: 7px; border-left: 1.5px solid var(--scrub-deep); border-bottom: 1.5px solid var(--scrub-deep); transform: rotate(-45deg); }
.band-ink .ticks li { border-color: rgba(255,255,255,.14); }
.band-ink .ticks li::before { border-color: #A9D3CA; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.stats > div { padding: 24px 24px 22px 0; }
.stats > div + div { padding-left: 24px; border-left: 1px solid var(--rule); }
.stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.stats span { display: block; margin-top: 10px; font-size: 0.95rem; color: var(--body); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-family: var(--serif); font-size: 1.32rem; line-height: 1.3; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-family: var(--sans); font-size: 1.5rem; font-weight: 300; color: var(--scrub-deep); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 22px; max-width: 44em; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq-group + .faq-group { margin-top: 64px; }
.faq-group > h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 18px; }

/* ---------- Closing call to action ---------- */
.closer { background: var(--scrub-wash); padding: clamp(64px, 9vw, 112px) 0; }
.closer-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px 48px; align-items: end; }
.closer h2 { margin: 0 0 12px; }
.closer p { margin: 0; font-size: 1.12rem; max-width: 34em; }
.closer-quote { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--rule); max-width: 34em; }
.closer-quote blockquote { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
.closer-quote blockquote p { font-size: inherit; }

/* ---------- Quiet next step (inner pages) ---------- */
.next-step { border-top: 1px solid var(--rule); padding: clamp(36px, 5vw, 56px) 0; }
.next-step-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; }
.next-step p { margin: 0; max-width: 44em; font-size: 1.1rem; }
.next-step strong { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; display: block; margin-bottom: 4px; }

/* ---------- Split teaser ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); }
.split > div { padding: 34px 48px 0 0; }
.split > div + div { padding-left: 48px; border-left: 1px solid var(--rule); }
.split h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 14px; }

/* ---------- Pricing columns ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.plan { padding: 30px 32px 10px 0; display: flex; flex-direction: column; }
.plan + .plan { padding-left: 32px; border-left: 1px solid var(--rule); }
.plan .tag { font-family: var(--mono); font-size: 0.74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--scrub-deep); }
.plan h2 { font-size: 2.2rem; margin: 10px 0 4px; }
.plan .price { font-family: var(--serif); font-size: 3.2rem; line-height: 1; color: var(--ink); margin: 18px 0 4px; letter-spacing: -0.02em; }
.plan .price.word { font-size: 2rem; line-height: 1.1; }
.plan .ticks { margin-top: 18px; flex: 1; }
.plan .btn { margin-top: 18px; }
.plan-beta { background: var(--grain), var(--sheet); box-shadow: var(--shadow-paper); padding-right: 32px; margin-top: -1px; }
.plan + .plan.plan-beta { border-left: 0; }
.plans-note { margin: 28px 0 0; color: var(--muted); }

/* ---------- Prose (guides, legal, stories) ---------- */
.prose { max-width: 720px; font-size: 1.08rem; }
.prose h2 { font-size: clamp(1.7rem, 2.8vw, 2.2rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.6em; }
.prose li { margin-bottom: 0.4em; }
.prose .quote { margin: 40px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.96rem; margin: 0 0 1.4em; }
.prose th, .prose td { border-bottom: 1px solid var(--rule); padding: 10px 8px; text-align: left; vertical-align: top; }
.prose th { font-family: var(--mono); font-size: 0.74rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.dropcap::first-letter { font-family: var(--serif); float: left; font-size: 4.2rem; line-height: 0.85; padding: 6px 10px 0 0; color: var(--scrub-deep); }
.legal { font-size: 1rem; }
.legal h2 { font-family: var(--sans); font-size: 1.2rem; font-weight: 650; letter-spacing: 0; margin-top: 2em; }

/* ---------- Forms ---------- */
.book-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.sheet-panel { background: var(--sheet); border: 1px solid var(--rule); padding: clamp(24px, 4vw, 40px); }
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 0.92rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid var(--rule); border-bottom: 1.5px solid var(--ink); border-radius: 0; padding: 12px 12px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--scrub-deep); box-shadow: 0 0 0 3px var(--scrub-wash); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #9B1C1C; font-size: 0.93rem; min-height: 1.2em; margin: 0; }
.form-fine { font-size: 0.86rem; color: var(--muted); margin: 0; }
.cal-embed { width: 100%; min-height: 680px; border: 1px solid var(--rule); background: #fff; }
.step-label { color: var(--muted); margin-bottom: 8px; }
[hidden] { display: none !important; }

/* ---------- Hospitals ---------- */
.lede-wide { font-size: 1.12rem; max-width: 46em; margin: -12px 0 clamp(28px, 4vw, 40px); }
.uses { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.uses > div:first-child p { font-family: var(--serif); font-size: 1.25rem; line-height: 1.55; color: var(--ink); }
.uses-list { margin: 0 0 24px; border-top: 1px solid var(--rule); }
.uses-list dt { font-weight: 650; color: var(--ink); padding-top: 16px; }
.uses-list dd { margin: 4px 0 0; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.list-head { font-size: 1rem; margin-bottom: 12px; }
.step-label { font-family: var(--mono); font-size: 0.82rem; color: var(--scrub-deep); margin: 0 0 10px; }
.exports { max-width: 820px; margin-top: 28px; }

/* ---------- Founder note (home) ---------- */
.scale-block { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); margin-top: clamp(64px, 9vw, 104px); padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid rgba(255,255,255,.18); align-items: start; }
.scale-block h2 { font-size: clamp(1.7rem, 2.8vw, 2.2rem); }
.band-ink .quote blockquote { color: #fff; font-size: 1.3rem; }
.band-ink .quote figcaption { color: #B9C0D9; }
.scale-card { background: var(--grain), var(--sheet); color: var(--body); padding: clamp(22px, 3vw, 36px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.scale-card .scale-note { margin-bottom: 0; }
.band-ink .quote figcaption strong { color: #fff; }
.quote figcaption a { display: inline-block; margin-top: 4px; }
.quote.voice { margin-top: clamp(56px, 8vw, 96px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid rgba(255,255,255,.18); max-width: 44em; }
.band-ink .quote.voice blockquote { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.quote figcaption strong a { display: inline; margin: 0; color: inherit; }
.faq-wrap > * { max-width: 920px; }
.aside-links { margin-top: 28px; color: var(--muted); }
.faq-lead { margin: 4px 0 clamp(48px, 6vw, 72px); max-width: 40em; }
.faq-lead blockquote { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.faq-lead figcaption { margin-top: 18px; }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; border-top: 1px solid var(--rule); padding-top: 34px; }
.founder img { width: 240px; height: 280px; object-fit: cover; filter: saturate(.9); }
.press { display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); font-size: 0.92rem; }
.press a { color: var(--body); }

/* ---------- Notice ---------- */
.notice { background: var(--amber-wash); border-left: 3px solid var(--amber); padding: 14px 18px; color: var(--amber-ink); font-size: 0.95rem; }


/* ---------- Shared page patterns ---------- */
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center .kicker { justify-content: center; }
.center .kicker::after { display: none; }
.center .dek { margin-left: auto; margin-right: auto; }
.section-head { max-width: 820px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head p { font-size: 1.12rem; }
.grid-3, .grid-4 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 > *, .grid-4 > * { padding: 26px 26px 6px 0; }
.grid-3 > * + *, .grid-4 > * + * { padding-left: 26px; border-left: 1px solid var(--rule); }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.icon-dot { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); margin-bottom: 12px; }
.icon-dot::before { content: "0"; }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.stat-row > .stat { padding: 24px 24px 22px 0; }
.stat-row > .stat + .stat { padding-left: 24px; border-left: 1px solid var(--rule); }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.stat span { display: block; margin-top: 10px; font-size: 0.95rem; }
.panel { background: var(--sheet); border: 1px solid var(--rule); padding: clamp(24px, 4vw, 40px); }
.panel h3 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1.1; }
.pill-note { font-family: var(--mono); font-size: 0.74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--scrub-deep); }
.quote-card { padding: 24px 0; border-top: 1px solid var(--rule); }
.quote-card blockquote { font-size: 1.3rem; }
.kicker-list { list-style: none; padding: 0; margin: 22px 0 0; font-size: 0.9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 0; }
.kicker-list li + li::before { content: "\00b7"; margin: 0 8px; }
.frame-caption { margin-top: 12px; font-family: var(--serif); font-size: 1.05rem; color: var(--muted); }
.border-top { border-top: 1px solid var(--rule); }
.legal h2 { font-family: var(--sans); }
.legal table { width: 100%; }
@media (max-width: 980px) {
  .grid-3, .grid-4, .stat-row { grid-template-columns: minmax(0, 1fr); }
  .grid-3 > * + *, .grid-4 > * + *, .stat-row > .stat + .stat { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #B9C0D9; padding: 72px 0 30px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { margin: 18px 0 0; max-width: 300px; font-family: var(--serif); font-size: 1.25rem; line-height: 1.35; color: #fff; }
.footer-small { font-family: var(--sans) !important; font-size: 0.86rem !important; color: #B9C0D9 !important; }
.site-footer h2 { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; margin-bottom: 14px; font-weight: 400; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #B9C0D9; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-base { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.85rem; }
.footer-base p { margin: 0; }

/* ---------- Layout helpers ---------- */
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); }
.align-center { align-items: center; }
.mt-l { margin-top: clamp(40px, 6vw, 72px); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .desk { margin: 12px 0 0; aspect-ratio: 1 / 0.95; }
  .card-note { left: 0; bottom: -2%; width: 58%; }
  .hero-grid, .grid-2, .sec-head, .book-grid, .closer-inner, .figure, .split, .labor, .product-pair, .scale-block, .uses { grid-template-columns: minmax(0, 1fr); }
  .pc-notes { grid-template-columns: minmax(0, 1fr); }
  .labor > div + div, .split > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); margin-top: 24px; }
  .labor > div, .split > div { padding-right: 0; }
  .cols, .quotes-row, .plans { grid-template-columns: minmax(0, 1fr); }
  .cols > * + *, .quotes-row .quote + .quote, .plan + .plan { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .cols > *, .quotes-row .quote, .plan { padding-right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .portrait { min-height: 0; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .pull { grid-template-columns: minmax(0, 1fr); }
  .pull .mark-q { font-size: 5rem; height: 48px; }
  .pull .avatar { width: 84px; height: 84px; }
  .portrait-photo { max-width: 420px; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stats > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .scale { grid-template-columns: minmax(0, 1fr); row-gap: 10px; }
  .scale .bars { margin-bottom: 18px; }
  .brow { flex-wrap: wrap; row-gap: 4px; }
  .brow em { width: 100%; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .founder { grid-template-columns: minmax(0, 1fr); }
  .about-hero .photo-print { justify-self: start; max-width: 300px; }
  .community { grid-template-columns: minmax(0, 1fr); }
  .card-note { width: 72%; padding: 14px 16px; }
  .card-note blockquote { font-size: 1rem; }
  .nurse-print { padding: 5px 5px 4px; }
  .nurse-print figcaption { font-size: 0.72rem; margin-top: 3px; }
  .window-bar { height: 18px; } .window-bar span { display: none; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .btn-row .btn, .closer .btn { width: 100%; }
  .prose table { display: block; overflow-x: auto; }
  .prose td a { word-break: break-all; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .site-header, .site-footer, .closer, .btn { display: none !important; } }

/* ---------- Savings calculator (home) ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; overflow-anchor: none; }
.calc-intro p { font-size: 1.12rem; max-width: 32em; }
.calc-form { display: grid; gap: 16px; max-width: 420px; margin-top: 28px; }
.calc-input { position: relative; }
.calc-input span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.calc-input input { padding-left: 30px; }
.calc-form input { font-size: 1.15rem; }
.calc-more summary { cursor: pointer; font-size: 0.95rem; font-weight: 600; color: var(--scrub-deep); padding: 4px 0 10px; }
.calc-sheet { background: var(--grain), var(--sheet); box-shadow: var(--shadow-paper); padding: clamp(28px, 4vw, 44px); transform: rotate(-1.2deg); }
.calc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 6px 16px; padding: 14px 0; margin: 0; border-bottom: 1px solid var(--rule); font-size: 1.02rem; }
.calc-row > span { min-width: 0; }
.calc-row s { color: var(--muted); text-decoration-thickness: 2px; text-decoration-color: #B4442E; text-align: right; }
.calc-row b { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: var(--ink); text-align: right; }
.calc-row s b { color: var(--muted); }
.calc-row a { font-family: var(--sans); font-size: 1rem; }
.calc-hint { margin: 6px 0 0; font-size: 0.88rem; color: var(--amber-ink); }
.calc-total { margin: 26px 0 8px; font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; color: var(--ink); }
.calc-total b { display: block; font-weight: 500; font-size: clamp(2.2rem, 4.6vw, 3.6rem); overflow-wrap: anywhere; letter-spacing: -0.02em; color: var(--scrub-deep); font-variant-numeric: lining-nums; }
.calc-sub { margin: 0 0 18px; }
.calc-fine { margin: 0; font-size: 0.86rem; color: var(--muted); }
@media (max-width: 980px) { .calc { grid-template-columns: minmax(0, 1fr); } .calc-sheet { transform: none; } }
.calc-total b.long { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
@media (max-width: 640px) { .calc-row { grid-template-columns: minmax(0, 1fr); } .calc-row s, .calc-row b { text-align: left; } }
/* Hold the card's shape steady while the numbers change, so nothing on the page moves. */
.calc-sheet { font-variant-numeric: tabular-nums lining-nums; }
.calc-row { min-height: 3.6em; }
.calc-row s, .calc-row b { white-space: nowrap; }
.calc-total { min-height: 3.4em; display: flex; flex-direction: column; justify-content: flex-end; }
.calc-total b, .calc-total b.long { font-size: clamp(2rem, 3.6vw, 2.8rem); white-space: nowrap; }
.calc-sub { min-height: 4.8em; }
.calc-hint { min-height: 1.5em; margin: 4px 0 0; visibility: hidden; }
.calc-hint.on { visibility: visible; }
@media (max-width: 640px) { .calc-row s, .calc-row b { white-space: normal; } .calc-total b, .calc-total b.long { white-space: normal; } }
.calc-sheet { min-height: 700px; }
@media (max-width: 640px) { .calc-sheet { min-height: 780px; } }
/* Result slots: fixed heights so changing states never move the card's contents. */
.calc-sheet { display: flex; flex-direction: column; }
.calc-result { margin-top: 22px; }
.calc-kicker, .calc-caption { margin: 0; font-family: var(--serif); color: var(--ink); font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.25; height: 1.25em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calc-big { margin: 4px 0; font-family: var(--serif); font-weight: 500; color: var(--scrub-deep); letter-spacing: -0.02em; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; height: 3.6rem; line-height: 3.6rem; font-size: clamp(2.2rem, 4vw, 3.2rem); }
.calc-big.long { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.calc-big.xlong { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.calc-result .calc-sub { margin: 14px 0 0; min-height: 0; height: 3.2em; line-height: 1.6; overflow: hidden; }
.calc-fine { margin-top: auto !important; padding-top: 18px; }
@media (max-width: 640px) {
  .calc-kicker, .calc-caption { white-space: normal; height: 2.5em; }
  .calc-big { font-size: 1.9rem; height: 2.8rem; line-height: 2.8rem; }
  .calc-big.long { font-size: 1.6rem; } .calc-big.xlong { font-size: 1.3rem; }
  .calc-result .calc-sub { height: 4.8em; }
}
/* Rows: label above figure, one line each, fixed height at every width. */
.calc-sheet .calc-row { display: block; min-height: 0; height: auto; padding: 12px 0; }
.calc-sheet .calc-row > span { display: block; font-size: 0.95rem; color: var(--muted); line-height: 1.4; height: 1.4em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calc-sheet .calc-row > s, .calc-sheet .calc-row > b { display: block; text-align: left; white-space: nowrap; line-height: 2.1rem; height: 2.1rem; }
.calc-sheet .calc-row b { font-size: 1.45rem; }
.calc-sheet .calc-row s b { font-size: inherit; }
.calc-sheet .calc-row s { font-family: var(--serif); font-size: 1.45rem; }
.calc-result .calc-sub { height: 4.8em; }
@media (max-width: 640px) {
  .calc-sheet .calc-row > s, .calc-sheet .calc-row > b, .calc-sheet .calc-row s { font-size: 1.2rem; }
  .calc-result .calc-sub { height: 6.4em; }
}
@media (max-width: 640px) { .calc-kicker { white-space: nowrap; height: 1.25em; } }
/* The savings figure: big again. JS shrinks it only as far as needed to fit one line,
   inside a slot of fixed height, so the card never moves. */
.calc-big, .calc-big.long, .calc-big.xlong { font-size: clamp(3rem, 5vw, 4.4rem); height: 4.9rem; line-height: 4.9rem; margin: 2px 0 6px; overflow: hidden; }
@media (max-width: 640px) { .calc-big, .calc-big.long, .calc-big.xlong { font-size: 2.6rem; height: 3.2rem; line-height: 3.2rem; } }
