/* Settle In — flat, risograph-inspired styles.
   No accent stripes/bars on cards or panels: separation comes from flat fills,
   generous spacing and hairline borders. */

@font-face { font-family: 'Fraunces'; src: url(/fonts/fraunces-latin-full-normal.woff2) format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url(/fonts/fraunces-latin-full-italic.woff2) format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url(/fonts/figtree-latin-wght-normal.woff2) format('woff2'); font-weight: 300 900; font-style: normal; font-display: swap; }

:root {
  --cream: #F6EFDF;
  --paper: #FBF7EE;
  --butter: #F2DC8B;
  --butter-soft: #F6E6B0;
  --sage: #9DB59A;
  --sage-soft: #DCE6D6;
  --dsage: #5E7F67;
  --dsage-ink: #4C6B55;
  --terra: #C8714E;
  --terra-ink: #9E5235;
  --terra-soft: #F4DCCF;
  --ink: #2F3B33;
  --muted: #59655C;
  --cobalt: #3E5C8A;
  --cobalt-soft: #E2E8F1;
  --night: #1E2B3D;
  --line: rgba(47, 59, 51, .16);
  --line-strong: rgba(47, 59, 51, .32);
  --grain: url(/img/grain-alpha.png);
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --radius: 22px;
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  color: var(--ink);
  background: var(--grain), var(--cream);
  font: 400 1.0625rem/1.6 var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { text-wrap: balance; font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.012em; margin: 0 0 .5em; font-variation-settings: 'SOFT' 100; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 1.25rem + 1.9vw, 2.6rem); }
h3 { font-size: 1.3rem; line-height: 1.25; }
p { margin: 0 0 1em; }
a { color: var(--cobalt); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img, video, svg { max-width: 100%; }
code { font-family: var(--mono); font-size: .9em; }
strong { font-weight: 650; }

:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .site-footer :focus-visible, .cta-band :focus-visible, .price-card-featured :focus-visible { outline-color: var(--butter); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 780px; }
.small { font-size: .9rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }

.eyebrow { text-wrap: balance; font: 650 .8rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--dsage-ink); margin: 0 0 .9rem; }
.eyebrow-light { color: var(--butter); }
.lead { font-size: 1.2rem; line-height: 1.55; }
.section-lead { font-size: 1.1rem; color: var(--muted); max-width: 640px; margin-bottom: 2rem; }
.cite-inline { white-space: nowrap; color: var(--muted); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 11px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: 650 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--terra-ink); color: var(--paper); }
.btn-primary:hover { background: #874329; }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-cream:hover { background: var(--butter); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { background: rgba(47, 59, 51, .06); border-color: var(--ink); }
.btn-ghost-light { background: transparent; color: var(--cream); border-color: rgba(246, 239, 223, .6); }
.btn-ghost-light:hover { background: rgba(246, 239, 223, .12); border-color: var(--cream); }
.btn-danger { background: #8A3F2C; color: var(--paper); }
.btn-danger:hover { background: #73321F; }
.btn-small { min-height: 38px; padding: 7px 14px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn.is-copied { background: var(--dsage-ink); color: var(--paper); }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.inline-form { display: inline; margin: 0; }

/* ------------------------------------------------------------------ pills */
.pill { display: inline-flex; align-items: center; gap: .35em; padding: 4px 11px; border-radius: 999px; font: 650 .78rem/1.3 var(--sans); letter-spacing: .02em; white-space: nowrap; margin: 0; vertical-align: middle; }
.pill-sage { background: var(--sage-soft); color: #2E4A36; }
.pill-butter { background: var(--butter); color: var(--ink); }
.pill-terra { background: var(--terra-soft); color: #73321F; }
.pill-muted { background: rgba(47, 59, 51, .09); color: var(--muted); }

/* ----------------------------------------------------------------- alerts */
.alert { border-radius: 16px; padding: 14px 18px; margin: 0 0 1.5rem; }
.alert p:last-child, .alert ul:last-child { margin-bottom: 0; }
.alert ul { margin: .4em 0 0; padding-left: 1.2em; }
.alert-success { background: var(--sage-soft); }
.alert-info { background: var(--cobalt-soft); }
.alert-error { background: var(--terra-soft); }
.alert-warn { background: var(--butter-soft); }
.alert-draft { background: var(--butter); }

/* ----------------------------------------------------------------- header */
.site-header { padding: 18px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 1.35rem/1 var(--serif); font-variation-settings: 'SOFT' 100; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand-light { color: var(--cream); }
.logo-mark { flex: none; }
.header-nav { display: flex; align-items: center; gap: 22px; font-weight: 550; }
.header-nav a:not(.btn), .header-nav .link-button { color: var(--ink); text-decoration: none; white-space: nowrap; }
.header-nav a:not(.btn):hover, .header-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.header-nav .link-button:hover { text-decoration: underline; text-underline-offset: 6px; }
.app-header { border-bottom: 1px solid var(--line); }

/* ------------------------------------------------------------------- hero */
.hero { padding: 0 16px; }
.hero .hero-inner {
  background: var(--cobalt);
  color: var(--cream);
  border-radius: 32px;
  padding: clamp(36px, 5vw, 72px) clamp(24px, 5vw, 64px);
  display: grid; grid-template-columns: 1fr 1.12fr; gap: clamp(32px, 4vw, 60px); align-items: center;
  max-width: calc(var(--wrap) + 80px);
  position: relative; overflow: hidden;
}
.hero h1 { color: var(--cream); font-variation-settings: 'SOFT' 100, 'opsz' 144; }
.hero .lead { color: rgba(246, 239, 223, .92); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 550; font-size: .95rem; color: rgba(246, 239, 223, .92); }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points .icon { color: var(--butter); }
.hero-visual { position: relative; }
.sun { position: absolute; width: 58%; aspect-ratio: 1; border-radius: 50%; background: var(--butter); right: -8%; top: -22%; opacity: .95; }
.hero-frame { position: relative; display: block; border-radius: 20px; overflow: hidden; border: 6px solid var(--cream); background: var(--cream); }
.hero-frame img { display: block; width: 100%; height: auto; }
.play-chip { position: absolute; left: 4%; bottom: 17%; display: inline-flex; align-items: center; gap: 6px; background: var(--cream); color: var(--ink); border-radius: 999px; padding: 8px 14px; font: 650 .9rem/1 var(--sans); }
.play-chip .icon { color: var(--terra-ink); fill: currentColor; }
.hero-frame:hover .play-chip { background: var(--butter); }

/* --------------------------------------------------------------- sections */
.section { padding: clamp(56px, 7vw, 104px) 0; }
.band { background-image: var(--grain); }
.band-butter { background-color: var(--butter-soft); }
.band-sage { background-color: var(--sage-soft); }
.band-paper { background-color: var(--paper); }
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }

.stat-stack { display: grid; gap: 16px; }
.stat-card { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.stat-card-butter { background: var(--butter-soft); border-color: transparent; }
.stat-number { font: 500 3rem/1 var(--serif); color: var(--terra-ink); margin: 0 0 .35rem; font-variation-settings: 'SOFT' 100, 'opsz' 144; }
.stat-card figcaption { font-size: 1rem; }

.steps { list-style: none; margin: 2.2rem 0 2.6rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--paper); border-radius: var(--radius); padding: 26px 24px 22px; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--butter); font: 600 1.3rem/1 var(--serif); margin-bottom: 14px; }
.step p { margin: 0; }
.share-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; }
.share-grid li { display: flex; gap: 14px; align-items: flex-start; }
.share-grid .icon { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--ink); color: var(--butter); }

.sample { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; margin-top: 1rem; }
.sample + .sample { margin-top: 3rem; }
.player-frame { border-radius: 20px; overflow: hidden; background: var(--night); aspect-ratio: 16 / 9; }
.player-frame, .embed-player { position: relative; }
.play-cover { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.play-cover-label { position: absolute; left: 4%; bottom: 17%; display: inline-flex; align-items: center; gap: 10px; background: var(--cream); color: var(--ink); border-radius: 999px; padding: 11px 20px 11px 16px; font: 650 1rem/1.2 var(--sans); transition: background-color .15s ease; }
.play-cover-label::before { content: ''; width: 13px; height: 15px; background: var(--terra-ink); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.play-cover:hover .play-cover-label { background: var(--butter); }
.play-cover:focus-visible { outline: none; }
.play-cover:focus-visible .play-cover-label { outline: 3px solid var(--butter); outline-offset: 3px; }
.player { display: block; width: 100%; height: 100%; background: var(--night); }

.library-list, .upcoming-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.upcoming-list { grid-template-columns: repeat(3, 1fr); }
.upcoming-item .library-head { flex-direction: column-reverse; }
.library-item, .upcoming-item { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.library-item p:last-child, .upcoming-item p:last-child { margin-bottom: 0; }
.library-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: .5rem; }
.library-head h3 { margin: 0; }

.evidence-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 2rem 0; }
.evidence-item { background: var(--paper); border-radius: var(--radius); padding: 24px; }
.evidence-item p { margin: 0; }
.sources { background: var(--paper); border-radius: var(--radius); padding: 4px 24px; }
.sources summary { cursor: pointer; font-weight: 650; padding: 16px 0; }
.sources-head { font: 650 .95rem/1.4 var(--sans); margin: 4px 0 10px; }
.sources ul { margin: 0 0 20px; padding-left: 1.2em; columns: 2; column-gap: 40px; font-size: .92rem; }
.sources li { break-inside: avoid; margin: 0 0 10px; }
.sources .cite { font-weight: 600; }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; margin-bottom: 1.5rem; }
.price-card { background: var(--paper); border: 1px solid var(--line); border-radius: 26px; padding: 28px 26px; display: flex; flex-direction: column; }
.price-card h3 { margin-bottom: .6rem; }
.price-card .btn { margin-top: auto; }
.price-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 0 10px; }
.price-head .pill { margin-bottom: 10px; }
.price-card-featured { background: var(--cobalt); color: var(--cream); border-color: transparent; }
.price-card-featured .price-note, .price-card-featured .per { color: rgba(246, 239, 223, .85); }
.price-card-featured .checklist .icon { color: var(--butter); }
.price-card-featured .btn-primary { background: var(--cream); color: var(--ink); }
.price-card-featured .btn-primary:hover { background: var(--butter); }
.price-card-quiet { background: transparent; }
.price { min-height: 3rem; margin: 0 0 .4rem; display: flex; align-items: baseline; gap: 4px; }
.amount { font: 500 3rem/1 var(--serif); font-variation-settings: 'SOFT' 100, 'opsz' 144; }
.amount-text { font-size: 2.2rem; line-height: 3rem; }
.per { color: var(--muted); font-weight: 550; }
.price-note { color: var(--muted); font-size: .95rem; min-height: 2.9em; margin: 0; }
.checklist { list-style: none; margin: 1rem 0 1.6rem; padding: 0; display: grid; gap: 10px; font-size: .98rem; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { color: var(--dsage-ink); margin-top: .2em; }

.faq-list { display: grid; gap: 12px; }
.faq { background: var(--cream); border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; font-weight: 650; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-52%); font: 400 1.6rem/1 var(--serif); color: var(--terra-ink); }
.faq[open] summary::after { content: '−'; }
.faq p { margin: 0 0 18px; }

.cta-band { background: var(--grain), var(--dsage-ink); color: var(--cream); text-align: center; }
.cta-band h2 { color: var(--cream); }
.cta-inner { max-width: 720px; }
.cta-band .hero-actions { justify-content: center; margin-bottom: 0; }

/* ----------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: rgba(246, 239, 223, .82); padding: 56px 0 28px; font-size: .95rem; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-brand p { margin: 14px 0 0; max-width: 30em; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-h { font: 650 .78rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--butter); margin: 0 0 6px; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(246, 239, 223, .18); font-size: .88rem; }
.footer-base p { margin: 0; }

/* ------------------------------------------------------------------ forms */
.auth-section { padding-top: 32px; }
.auth-wrap { max-width: 520px; }
.auth-card { background: var(--paper); border: 1px solid var(--line); border-radius: 26px; padding: clamp(24px, 4vw, 40px); }
.auth-card h1 { font-size: 2rem; }
.auth-switch { margin: 16px 0 0; text-align: center; }
.field { margin: 0 0 18px; }
.field label { display: block; font-weight: 650; margin-bottom: 6px; }
.field .optional { font-weight: 450; color: var(--muted); }
.hint { margin: -2px 0 6px; font-size: .9rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], textarea {
  width: 100%; min-width: 0; font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line-strong); border-radius: 12px; padding: 11px 14px; min-height: 46px;
}
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 1px; border-color: var(--cobalt); }
.has-error input { border-color: #8A3F2C; }
.field-error { color: #8A3F2C; font-weight: 600; font-size: .92rem; margin: 6px 0 0; }
.checkbox-field { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.checkbox-field input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--terra-ink); }
.checkbox-field label { font-weight: 450; margin: 0; }
.checkbox-field .field-error { grid-column: 2; }
.message-page { padding: 24px 0; }
.legal h2 { font-size: 1.4rem; margin-top: 2rem; }
.legal ul { padding-left: 1.2em; }

/* -------------------------------------------------------------- dashboard */
.app .section.dash { padding-top: 40px; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.dash-head h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); margin-bottom: .3em; }
.status-line { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0; color: var(--muted); }
.dash-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dash-h2 { font-size: 1.7rem; margin-top: 2.4rem; }
.dash-lead { max-width: 680px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); margin-bottom: 20px; }
.panel h2 { font-size: 1.45rem; }
.panel-quiet { background: transparent; }
.panel-danger { background: var(--terra-soft); border-color: transparent; }
.subscribe-panel { background: var(--butter-soft); border-color: transparent; }
.plan-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 18px 0 10px; }
.plan-option { background: var(--paper); border: 1.5px solid var(--line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; }
.plan-option h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan-option .btn { margin-top: auto; }
.plan-option.is-selected { border-color: var(--ink); border-width: 2px; }
.plan-option .amount { font-size: 2.3rem; }

.video-card { background: var(--paper); border: 1px solid var(--line); border-radius: 26px; padding: clamp(16px, 2.5vw, 26px); display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); margin-bottom: 22px; }
.video-card h3 { font-size: 1.55rem; margin-bottom: .25rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 6px; }
.stats div { display: flex; flex-direction: column; justify-content: space-between; background: var(--cream); border-radius: 14px; padding: 10px 14px; }
.stats dt { line-height: 1.35; font-size: .78rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stats dd { margin: 2px 0 0; font: 500 1.5rem/1.1 var(--serif); }
.stats-note { margin: 0; }
.preview-line { margin: 14px 0 0; }
.share-block { margin-top: 18px; }
.share-label { display: block; font-weight: 650; margin: 0 0 6px; }
.copy-row { display: flex; gap: 8px; }
.copy-input { font-family: var(--mono) !important; font-size: .86rem !important; background: var(--cream) !important; }
.copy-row .btn { flex: none; }
.share-block > .small { margin: 6px 0 0; }
.share-qr { display: flex; gap: 16px; align-items: center; }
.qr-thumb { flex: none; width: 112px; height: 112px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.action-row { display: flex; flex-wrap: wrap; gap: 8px; }
.embed-details { background: var(--cream); border-radius: 16px; padding: 0 16px; }
.embed-details summary { cursor: pointer; font-weight: 650; padding: 12px 0; display: flex; align-items: center; gap: 8px; }
.embed-details[open] { padding-bottom: 16px; }
.code-box { font: .8rem/1.5 var(--mono) !important; resize: vertical; margin-bottom: 10px; min-height: 96px; }
.app-footer { padding: 28px 0 40px; color: var(--muted); font-size: .9rem; }
.app-footer p { margin: 0; }

.summary-list { margin: 0 0 24px; display: grid; gap: 8px; }
.summary-list div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding: 8px 0; }
.summary-list dt { color: var(--muted); }
.summary-list dd { margin: 0; font-weight: 650; text-align: right; }
.test-banner { background: var(--butter); border-radius: 16px; padding: 14px 18px; margin-bottom: 20px; }

.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; }
.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.data-table th, .data-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------------------------------------------------------------- handout */
.handout-body { background: var(--grain), var(--cream); }
.handout-toolbar { max-width: 8.5in; margin: 20px auto 0; padding: 0 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.handout {
  width: min(8.5in, calc(100% - 32px)); margin: 16px auto 40px; background: #fff; border-radius: 6px;
  padding: .7in .75in .5in; text-align: center; color: var(--ink); aspect-ratio: 8.5 / 11;
  display: flex; flex-direction: column; align-items: center;
  box-shadow: 0 1px 2px rgba(47, 59, 51, .08), 0 12px 32px rgba(47, 59, 51, .10);
}
.handout-head { width: 100%; display: flex; flex-direction: column; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.handout-practice { font: 600 2rem/1.15 var(--serif); margin: 0; font-variation-settings: 'SOFT' 100; }
.handout-phone { margin: 6px 0 0; font-size: 1.05rem; color: var(--muted); }
.handout-kicker { margin: 28px 0 8px; font: 650 .82rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--dsage-ink); }
.handout-title { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); margin: 0 0 22px; max-width: 16em; }
.handout-qr { width: min(3.9in, 66%); aspect-ratio: 1; padding: 14px; border-radius: 18px; background: #fff; border: 1.5px solid var(--line-strong); }
.handout-qr svg { display: block; width: 100%; height: 100%; }
.handout-instructions { margin: 26px 0 8px; font-size: 1.28rem; line-height: 1.45; max-width: 26em; text-wrap: balance; }
.handout-url { margin: 0 0 18px; color: var(--muted); font-size: .9rem; }
.handout-url span { font-family: var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.handout-facts { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.handout-facts li { background: var(--cream); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .92rem; }
.handout-note { font-size: .95rem; color: var(--muted); max-width: 34em; margin: 0; }
.handout-foot { margin-top: auto; padding-top: 16px; display: inline-flex; gap: 8px; align-items: center; font: 600 .95rem/1 var(--serif); color: var(--muted); }

@media print {
  @page { size: letter; margin: 0; }
  .no-print, .skip-link { display: none !important; }
  body, .handout-body { background: #fff !important; }
  .handout { box-shadow: none; margin: 0; width: 8.5in; height: 11in; aspect-ratio: auto; border-radius: 0; padding: .75in; }
  .handout-facts li { border: 1px solid var(--line); }
}

/* --------------------------------------------------------- patient pages */
.patient-wrap { max-width: 820px; margin: 0 auto; padding: 22px 18px 32px; }
.patient-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 22px; }
.shared-by { margin: 0; font-size: 1rem; color: var(--muted); }
.shared-by strong { color: var(--ink); }
.patient-phone { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.patient-phone .icon { color: var(--terra-ink); }
.patient-phone:hover { background: var(--butter-soft); text-decoration: none; }
.patient-title { font-size: clamp(1.85rem, 1.3rem + 2.4vw, 2.7rem); margin-bottom: .3em; }
.patient-meta { color: var(--muted); margin-bottom: 18px; }
.player-frame-patient { border-radius: 18px; }
.patient-note { margin: 20px 0 10px; background: var(--paper); border-radius: 18px; padding: 16px 20px; font: italic 400 1.15rem/1.45 var(--serif); font-variation-settings: 'SOFT' 100; }
.patient-call { color: var(--muted); }
.patient-foot { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .88rem; }
.patient-brand { display: inline-flex; align-items: center; gap: 6px; font: 600 .95rem/1 var(--serif); }
.inactive { background: var(--paper); border: 1px solid var(--line); border-radius: 26px; padding: clamp(28px, 6vw, 56px) clamp(22px, 5vw, 48px); text-align: center; margin-top: 8vh; }
.inactive h1 { font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.4rem); }
.inactive p { font-size: 1.15rem; }

/* embed */
html:has(body.embed) { height: 100%; }
body.embed { height: 100%; margin: 0; background: var(--night); color: var(--cream); overflow: hidden; }
.embed-main { height: 100%; display: flex; flex-direction: column; }
.embed-player { flex: 1 1 auto; min-height: 0; }
.embed .player { height: 100%; object-fit: contain; }
.embed-caption { margin: 0; padding: 6px 12px; font-size: .78rem; line-height: 1.35; background: var(--ink); color: var(--cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.embed-inactive { background: var(--grain), var(--cream); color: var(--ink); overflow: auto; }
.embed-inactive .inactive { margin: 12px; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 960px) {
  .hero .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .split, .sample { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .video-card { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hide-sm { display: none; }
  .header-nav { gap: 14px; }
  .steps, .library-list, .upcoming-list, .evidence-grid, .share-grid, .plan-choice { grid-template-columns: 1fr; }
  .sources ul { columns: 1; }
  .copy-row { flex-direction: column; }
  .copy-row .btn { width: 100%; }
  .wrap { padding: 0 18px; }
  .price-note { min-height: 0; }
}
@media (max-width: 520px) {
  body { font-size: 1rem; }
  .hero { padding: 0 10px; }
  .hero .hero-inner { border-radius: 24px; padding: 32px 22px 40px; }
  .eyebrow { letter-spacing: .1em; }
  .lead { font-size: 1.08rem; }
  .hero-actions .btn { flex: 1 1 auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand { font-size: 1.2rem; gap: 8px; }
  .app-header .header-nav { gap: 12px; font-size: .95rem; }
  .app-header .logo-mark { width: 26px; height: 26px; }
  .play-cover-label { padding: 9px 16px 9px 13px; font-size: .95rem; }
  .site-header .btn-small { padding: 7px 12px; }
  .share-qr { align-items: flex-start; }
  .qr-thumb { width: 92px; height: 92px; }
  .stats dd { font-size: 1.25rem; }
  .handout { padding: 28px 18px 18px; aspect-ratio: auto; }
  .handout-qr { width: 78%; }
}
.panel .btn + .btn { margin-left: 6px; }
.panel form + p { margin-top: 14px; }
