/* Covered for Therapy marketing site.
   Every colour, size and radius comes from tokens.css (a copy of brand/tokens.css).
   Light values live on :root; dark mode follows prefers-color-scheme through the same tokens.
   Writing rules for anything rendered here: sentence case, first-person buttons, no em dashes. */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: var(--tc-text-body);
  line-height: var(--tc-leading-body);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
p, ul, ol, dl, figure, blockquote, table, pre { margin: 0 0 var(--tc-space-4); }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }

a { color: var(--tc-accent); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: var(--tc-stroke-focus) solid var(--tc-focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 var(--tc-stroke-focus-halo) var(--tc-accent-wash);
  border-radius: var(--tc-radius-sm);
}

/* Type scale */
h1, h2, h3, h4 { margin: 0 0 var(--tc-space-4); color: var(--tc-text); text-wrap: balance; }
h1 { font-size: var(--tc-text-h1); line-height: var(--tc-leading-h1); letter-spacing: var(--tc-tracking-heading); }
h2 { font-size: var(--tc-text-h2); line-height: var(--tc-leading-h2); letter-spacing: var(--tc-tracking-heading); }
h3 { font-family: var(--tc-font-body); font-weight: var(--tc-weight-semibold); font-size: var(--tc-text-h3); line-height: var(--tc-leading-h3); letter-spacing: 0; }
h4 { font-family: var(--tc-font-body); font-weight: var(--tc-weight-semibold); font-size: var(--tc-text-body); line-height: var(--tc-leading-h3); }
@media (max-width: 760px) {
  h1 { font-size: var(--tc-text-h1-phone); }
  h2 { font-size: var(--tc-text-h2-phone); }
  h3 { font-size: var(--tc-text-h3-phone); }
}
.h-serif { font-family: var(--tc-font-display); font-weight: var(--tc-weight-display); font-optical-sizing: auto; }
.lead { font-size: 20px; line-height: 1.5; color: var(--tc-text-muted); max-width: var(--tc-prose-max); }
.muted { color: var(--tc-text-muted); }
.small { font-size: var(--tc-text-small); line-height: var(--tc-leading-small); }
.caption { font-size: var(--tc-text-caption); line-height: var(--tc-leading-caption); letter-spacing: var(--tc-tracking-caption); font-weight: var(--tc-weight-medium); color: var(--tc-text-muted); }
.eyebrow { display: block; font-size: var(--tc-text-small); font-weight: var(--tc-weight-medium); color: var(--tc-text-muted); margin: 0 0 var(--tc-space-3); }
.prose { max-width: var(--tc-prose-max); }
.prose h2, .prose h3 { margin-top: var(--tc-space-7); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose li + li { margin-top: var(--tc-space-2); }
.tc-figure { font-family: var(--tc-font-body); font-weight: var(--tc-weight-semibold); font-size: var(--tc-text-figure); line-height: var(--tc-leading-figure); letter-spacing: var(--tc-tracking-figure); font-feature-settings: "tnum" 1; color: var(--tc-text); }
.tc-figure-hero { font-size: var(--tc-text-figure-hero); }
code, kbd, .mono { font-family: var(--tc-font-mono); font-feature-settings: "calt" 0; font-size: 0.94em; }
:not(pre) > code { background: var(--tc-surface-alt); border: 1px solid var(--tc-hairline); border-radius: var(--tc-radius-sm); padding: 0 0.3em; white-space: nowrap; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Layout */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: var(--tc-gutter); padding-right: var(--tc-gutter); }
@media (max-width: 400px) { .container { padding-left: var(--tc-gutter-min); padding-right: var(--tc-gutter-min); } }
.narrow { max-width: 860px; }
.section { padding: var(--tc-section) 0; }
.section-tight { padding: var(--tc-space-8) 0; }
@media (max-width: 760px) { .section { padding: var(--tc-section-phone) 0; } .section-tight { padding: var(--tc-space-7) 0; } }
.band-alt { background: var(--tc-surface-alt); }
.band-dark {
  background: var(--tc-surface-dark);
  color: var(--tc-on-dark);
  --tc-text: #FFFFFF;
  --tc-text-muted: #A5A8B3;
  --tc-muted: #A5A8B3;
  --tc-ink: #FFFFFF;
  --tc-accent: #9DB4FF;
  --tc-accent-wash: #182653;
  --tc-focus: #9DB4FF;
  --tc-hairline: #303544;
  --tc-border: #767C8E;
  --tc-surface-card: #141A2A;
  --tc-surface-alt: #141A2A;
  --tc-primary: #F4F3EF;
  --tc-on-primary: #141A2A;
}
.section-head { max-width: var(--tc-prose-max); margin-bottom: var(--tc-space-7); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
@media (max-width: 760px) { .section-head { margin-bottom: var(--tc-space-6); } }
.grid { display: grid; gap: var(--tc-space-5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.split { display: grid; gap: var(--tc-space-7); align-items: start; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); gap: var(--tc-space-6); } }
.stack > * + * { margin-top: var(--tc-space-4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--tc-space-3); align-items: center; }

/* Cards */
.card { background: var(--tc-surface-card); border: 1px solid var(--tc-hairline); border-radius: var(--tc-radius-lg); padding: var(--tc-card-pad); }
.card h3 { margin-bottom: var(--tc-space-3); }
.card p:last-child { margin-bottom: 0; }
@media (max-width: 760px) { .card { padding: var(--tc-card-pad-phone); } }
.card-list { list-style: none; padding: 0; margin: 0; }
.card-list li { padding-left: var(--tc-space-5); position: relative; }
.card-list li + li { margin-top: var(--tc-space-2); }
.card-list li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 10px; height: 2px; background: var(--tc-text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--tc-space-2);
  min-height: 44px; padding: 0 var(--tc-space-5);
  border-radius: var(--tc-radius-md); border: 1px solid transparent;
  font-family: var(--tc-font-body); font-weight: var(--tc-weight-medium); font-size: var(--tc-text-button); line-height: var(--tc-leading-button);
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: box-shadow 120ms ease, background-color 120ms ease;
}
.btn-primary { background: var(--tc-primary); color: var(--tc-on-primary); border-color: var(--tc-primary); }
.btn-primary:hover { box-shadow: inset 0 0 0 999px rgba(0, 0, 0, 0.12); }
.btn-secondary { background: transparent; color: var(--tc-text); border-color: var(--tc-border); }
.btn-secondary:hover { background: var(--tc-surface-alt); }
.band-dark .btn-secondary:hover { background: #222837; }
.btn-lg { min-height: 52px; padding: 0 var(--tc-space-6); }
.btn-sm { min-height: 36px; padding: 0 var(--tc-space-4); font-size: var(--tc-text-small); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.link-arrow { font-weight: var(--tc-weight-medium); }
.link-arrow::after { content: "\00a0\2192"; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--tc-surface); border-bottom: 1px solid var(--tc-hairline); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--tc-space-4); min-height: 72px; position: relative; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--tc-text); }
.brand img { height: 28px; width: auto; }
.brand:focus-visible { border-radius: var(--tc-radius-sm); }
.nav { display: flex; align-items: center; gap: var(--tc-space-5); margin: 0; padding: 0; list-style: none; }
.nav a:not(.btn) { color: var(--tc-text); text-decoration: none; font-weight: var(--tc-weight-medium); font-size: var(--tc-text-body-ui); padding: var(--tc-space-2) 0; display: inline-block; }
.nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 6px; }
.nav a[aria-current="page"]:not(.btn) { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--tc-accent); }
.nav-toggle { display: none; align-items: center; gap: var(--tc-space-2); min-height: 44px; padding: 0 var(--tc-space-3); background: transparent; border: 1px solid var(--tc-border); border-radius: var(--tc-radius-md); color: var(--tc-text); font: 500 var(--tc-text-small)/1 var(--tc-font-body); cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: var(--tc-space-1); background: var(--tc-surface); border-bottom: 1px solid var(--tc-hairline); padding: var(--tc-space-3) var(--tc-gutter) var(--tc-space-5); box-shadow: 0 16px 32px rgba(11, 15, 27, 0.08); }
  .js .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: var(--tc-space-3) 0; }
  .nav .btn { margin-top: var(--tc-space-3); }
  .no-js .nav { flex-wrap: wrap; gap: var(--tc-space-3); }
}
@media (max-width: 400px) { .js .nav { padding-left: var(--tc-gutter-min); padding-right: var(--tc-gutter-min); } }

/* Hero */
.hero { padding: var(--tc-space-8) 0 var(--tc-space-9); }
@media (max-width: 760px) { .hero { padding: var(--tc-space-6) 0 var(--tc-space-7); } }
.hero .container { display: grid; gap: var(--tc-space-8); align-items: start; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); }
@media (max-width: 1000px) { .hero .container { grid-template-columns: minmax(0, 1fr); gap: var(--tc-space-7); } }
.hero h1 { margin-bottom: var(--tc-space-5); }
.hero-sub { font-family: var(--tc-font-display); font-weight: var(--tc-weight-regular); font-size: 24px; line-height: 1.35; letter-spacing: 0; color: var(--tc-text-muted); margin: 0 0 var(--tc-space-6); max-width: 34ch; }
@media (max-width: 760px) { .hero-sub { font-size: 20px; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--tc-space-3); margin-bottom: var(--tc-space-4); }
.hero-note { font-size: var(--tc-text-small); color: var(--tc-text-muted); max-width: 48ch; }
.hero-widget { min-width: 0; }
.frame-label { display: flex; align-items: center; gap: var(--tc-space-2); margin: 0 0 var(--tc-space-3); }
.frame-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tc-accent); flex: none; }
.therapy-checker-widget { min-height: 360px; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: var(--tc-space-5); grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps > li { counter-increment: step; background: var(--tc-surface-card); border: 1px solid var(--tc-hairline); border-radius: var(--tc-radius-lg); padding: var(--tc-card-pad); position: relative; }
@media (max-width: 760px) { .steps > li { padding: var(--tc-card-pad-phone); } }
.steps > li::before { content: counter(step); display: block; font-family: var(--tc-font-display); font-weight: var(--tc-weight-display); font-size: 40px; line-height: 1; color: var(--tc-text); margin-bottom: var(--tc-space-4); }
.steps h3 { margin-bottom: var(--tc-space-2); }
.steps-detail { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps-detail > li { counter-increment: step; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--tc-space-5); padding: var(--tc-space-6) 0; border-top: 1px solid var(--tc-hairline); }
.steps-detail > li:last-child { border-bottom: 1px solid var(--tc-hairline); }
.steps-detail > li::before { content: counter(step, decimal-leading-zero); font-family: var(--tc-font-display); font-weight: var(--tc-weight-display); font-size: 32px; line-height: 1; color: var(--tc-text-muted); padding-top: 4px; }
@media (max-width: 600px) { .steps-detail > li { grid-template-columns: minmax(0, 1fr); gap: var(--tc-space-3); } }

/* Code */
pre.code { background: var(--tc-surface-dark); color: #FFFFFF; font-family: var(--tc-font-mono); font-size: var(--tc-text-mono); line-height: var(--tc-leading-mono); font-feature-settings: "calt" 0; padding: var(--tc-space-4) var(--tc-space-5); border-radius: var(--tc-radius-md); overflow-x: auto; margin: 0; tab-size: 2; border: 1px solid #303544; }
pre.code code { background: none; border: 0; padding: 0; font-size: inherit; }
pre.code .c { color: #A5A8B3; }
pre.code .k { color: #9DB4FF; }
pre.code .s { color: #B9E4C9; }
.band-dark pre.code { background: #141A2A; }
.code-block { display: flex; flex-direction: column; align-items: flex-end; gap: var(--tc-space-2); }
.code-block pre.code { width: 100%; }
.code-block .copy-btn { background: var(--tc-surface-card); color: var(--tc-text); border: 1px solid var(--tc-border); }
.code-block .copy-btn:hover { background: var(--tc-surface-alt); }

/* Result cards (static samples of the four states) */
.result-card { background: var(--tc-surface-card); border: 1px solid var(--tc-hairline); border-radius: var(--tc-radius-lg); padding: var(--tc-card-pad); max-width: var(--tc-card-max); display: flex; flex-direction: column; gap: var(--tc-space-4); font-size: var(--tc-text-body-ui); line-height: var(--tc-leading-ui); width: 100%; }
@media (max-width: 760px) { .result-card { padding: var(--tc-card-pad-phone); } }
.result-card > header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: var(--tc-space-2) var(--tc-space-3); }
.result-card .card-label { flex: none; }
.result-card .card-label { font-size: var(--tc-text-small); font-weight: var(--tc-weight-medium); color: var(--tc-text-muted); }
.result-card .keyline { border-left: var(--tc-stroke-rule) solid var(--tc-accent); padding-left: var(--tc-space-4); margin: 0; }
.result-card .keyline p { margin: 0; }
.result-card .keyline .tc-figure { display: block; margin-bottom: var(--tc-space-1); }
.result-card .meta { margin: 0; }
.result-card .disclaimer { font-size: var(--tc-text-small); line-height: var(--tc-leading-small); color: var(--tc-text-muted); border-top: 1px solid var(--tc-hairline); padding-top: var(--tc-space-3); margin: 0; }
.result-card .badge-line { display: flex; align-items: center; gap: var(--tc-space-2); font-size: var(--tc-text-caption); font-weight: var(--tc-weight-medium); letter-spacing: var(--tc-tracking-caption); color: var(--tc-text-muted); margin: 0; }
.result-card .badge-line svg { width: 16px; height: 16px; flex: none; }
.result-card .badge-line a { color: var(--tc-accent); }
.results-grid { display: grid; gap: var(--tc-space-5); grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
@media (max-width: 900px) { .results-grid { grid-template-columns: minmax(0, 1fr); } .results-grid .result-card { max-width: none; } }

.tc-pill { display: inline-flex; align-items: center; gap: var(--tc-space-1); padding: 2px var(--tc-space-3); border-radius: var(--tc-radius-pill); font-family: var(--tc-font-body); font-weight: var(--tc-weight-medium); font-size: var(--tc-text-small); line-height: 1.45; border: 1px solid currentColor; white-space: nowrap; }
.tc-pill svg { width: 16px; height: 16px; flex: none; }
.tc-pill[data-status="covered"] { color: var(--tc-success); background: var(--tc-success-tint); }
.tc-pill[data-status="not-covered"] { color: var(--tc-danger); background: var(--tc-danger-tint); }
.tc-pill[data-status="needs-call"] { color: var(--tc-warning); background: var(--tc-warning-tint); }
.tc-pill[data-status="unknown"] { color: var(--tc-unknown); background: var(--tc-unknown-tint); border-color: var(--tc-unknown-border); }

/* Feature rows and trust items */
.trust-grid { display: grid; gap: var(--tc-space-5); grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .trust-grid { grid-template-columns: minmax(0, 1fr); } }
.trust-item { border-top: 1px solid var(--tc-hairline); padding-top: var(--tc-space-4); }
.trust-item svg { width: 28px; height: 28px; margin-bottom: var(--tc-space-3); color: var(--tc-accent); }
.trust-item h3 { font-size: 18px; margin-bottom: var(--tc-space-2); }
.trust-item p { color: var(--tc-text-muted); font-size: var(--tc-text-body-ui); margin: 0; }

/* Pricing */
.price-grid { display: grid; gap: var(--tc-space-5); grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
@media (max-width: 1000px) { .price-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; } }
.price-card { display: flex; flex-direction: column; gap: var(--tc-space-4); position: relative; }
.price-card.is-featured { border-color: var(--tc-text); }
.price-card.is-featured::before { content: ""; position: absolute; left: var(--tc-card-pad); right: var(--tc-card-pad); top: -1px; height: var(--tc-stroke-rule); background: var(--tc-accent); }
.price-card .plan-name { font-family: var(--tc-font-display); font-weight: var(--tc-weight-display); font-size: var(--tc-text-h3); margin: 0; }
.price-card .plan-for { color: var(--tc-text-muted); font-size: var(--tc-text-small); margin: 0; }
.price-card .price { display: flex; align-items: baseline; gap: var(--tc-space-2); flex-wrap: wrap; }
.price-card .price .tc-figure { font-size: var(--tc-text-figure-hero); }
.price-card .price .per { color: var(--tc-text-muted); font-size: var(--tc-text-small); }
.price-card .annual { font-size: var(--tc-text-small); color: var(--tc-text-muted); margin: 0; }
.price-card .card-list { font-size: var(--tc-text-body-ui); }
.price-card .btn { margin-top: auto; }
.price-card .featured-label { position: absolute; top: var(--tc-space-4); right: var(--tc-card-pad); font-size: var(--tc-text-caption); font-weight: var(--tc-weight-medium); letter-spacing: var(--tc-tracking-caption); color: var(--tc-text-muted); }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--tc-hairline); border-radius: var(--tc-radius-lg); }
table { width: 100%; border-collapse: collapse; font-size: var(--tc-text-small); line-height: var(--tc-leading-small); background: var(--tc-surface-card); min-width: 560px; }
th, td { text-align: left; padding: var(--tc-space-3) var(--tc-space-4); border-bottom: 1px solid var(--tc-hairline); vertical-align: top; }
thead th { background: var(--tc-surface-alt); font-weight: var(--tc-weight-semibold); color: var(--tc-text); }
tbody th { font-weight: var(--tc-weight-medium); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td .num, th .num { font-feature-settings: "tnum" 1; }

/* FAQ */
.faq { border-top: 1px solid var(--tc-hairline); }
.faq details { border-bottom: 1px solid var(--tc-hairline); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--tc-space-4); padding: var(--tc-space-4) 0; font-family: var(--tc-font-body); font-weight: var(--tc-weight-semibold); font-size: 18px; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--tc-font-body); font-weight: 400; font-size: 24px; line-height: 1; color: var(--tc-text-muted); flex: none; width: 24px; text-align: center; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:focus-visible { outline-offset: 4px; }
.faq .answer { padding: 0 0 var(--tc-space-5); max-width: var(--tc-prose-max); color: var(--tc-text); }
.faq .answer p:last-child { margin-bottom: 0; }

/* Forms */
.field { margin-bottom: var(--tc-space-5); }
.field label, .field .label { display: block; font-weight: var(--tc-weight-medium); font-size: var(--tc-text-body-ui); margin-bottom: var(--tc-space-2); }
.field .hint { font-size: var(--tc-text-small); color: var(--tc-text-muted); margin: var(--tc-space-2) 0 0; }
.field .error { font-size: var(--tc-text-small); color: var(--tc-danger); margin: var(--tc-space-2) 0 0; font-weight: var(--tc-weight-medium); }
.field .error:empty { display: none; }
.input { width: 100%; min-height: 48px; padding: 10px var(--tc-space-3); border: var(--tc-stroke-border) solid var(--tc-border); border-radius: var(--tc-radius-md); background: var(--tc-surface-card); color: var(--tc-text); font: 400 var(--tc-text-body-ui)/1.5 var(--tc-font-body); }
.input:focus-visible { outline: var(--tc-stroke-focus) solid var(--tc-focus); outline-offset: 1px; box-shadow: 0 0 0 var(--tc-stroke-focus-halo) var(--tc-accent-wash); }
.input[aria-invalid="true"] { border-color: var(--tc-danger); }
.input-row { display: grid; gap: var(--tc-space-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) { .input-row { grid-template-columns: minmax(0, 1fr); } }
.form-actions { display: flex; flex-wrap: wrap; gap: var(--tc-space-3); align-items: center; margin-top: var(--tc-space-6); }
.form-card { max-width: 640px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
.stage[hidden] { display: none; }

/* Stepper */
.stepper { list-style: none; padding: 0; margin: 0 0 var(--tc-space-6); display: flex; gap: var(--tc-space-4); flex-wrap: wrap; }
.stepper li { display: flex; align-items: center; gap: var(--tc-space-2); font-size: var(--tc-text-small); color: var(--tc-text-muted); font-weight: var(--tc-weight-medium); }
.stepper li .n { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--tc-border); display: inline-grid; place-items: center; font-size: var(--tc-text-small); font-feature-settings: "tnum" 1; }
.stepper li[aria-current="step"] { color: var(--tc-text); }
.stepper li[aria-current="step"] .n { background: var(--tc-primary); color: var(--tc-on-primary); border-color: var(--tc-primary); }
.stepper li.is-done .n { background: var(--tc-success-tint); color: var(--tc-success); border-color: var(--tc-success); }

/* Key preview */
.key-chip { display: inline-flex; align-items: center; gap: var(--tc-space-2); font-family: var(--tc-font-mono); font-feature-settings: "calt" 0; font-size: var(--tc-text-body-ui); background: var(--tc-surface-alt); border: 1px solid var(--tc-hairline); border-radius: var(--tc-radius-sm); padding: var(--tc-space-2) var(--tc-space-3); word-break: break-all; }
.notice { border: 1px solid var(--tc-warning); background: var(--tc-warning-tint); color: var(--tc-text); border-radius: var(--tc-radius-md); padding: var(--tc-space-3) var(--tc-space-4); font-size: var(--tc-text-small); line-height: var(--tc-leading-small); }
.notice strong { color: var(--tc-warning); }
.notice-neutral { border: 1px solid var(--tc-hairline); background: var(--tc-surface-alt); color: var(--tc-text-muted); border-radius: var(--tc-radius-md); padding: var(--tc-space-3) var(--tc-space-4); font-size: var(--tc-text-small); line-height: var(--tc-leading-small); }

/* Placeholder frame for screenshots that are not ready yet */
.shot-frame { border: 1px solid var(--tc-hairline); border-radius: var(--tc-radius-lg); overflow: hidden; background: var(--tc-surface-card); }
.shot-frame .bar { display: flex; align-items: center; gap: 6px; padding: 10px var(--tc-space-3); border-bottom: 1px solid var(--tc-hairline); background: var(--tc-surface-alt); }
.shot-frame .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--tc-hairline); border: 1px solid var(--tc-border); display: inline-block; }
.shot-frame .bar span { margin-left: var(--tc-space-2); font-size: var(--tc-text-caption); color: var(--tc-text-muted); font-family: var(--tc-font-mono); font-feature-settings: "calt" 0; }
.shot-frame .body { aspect-ratio: 16 / 10; display: grid; place-items: center; text-align: center; padding: var(--tc-space-5); color: var(--tc-text-muted); font-size: var(--tc-text-small); background: repeating-linear-gradient(135deg, transparent 0 14px, var(--tc-surface-alt) 14px 15px); }
.shot-frame .body p { margin: 0; max-width: 32ch; }
.shot-frame .body strong { display: block; color: var(--tc-text); font-size: var(--tc-text-body-ui); margin-bottom: var(--tc-space-2); }
.shot-frame img { width: 100%; display: block; }
.shot-grid { display: grid; gap: var(--tc-space-5); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .shot-grid { grid-template-columns: minmax(0, 1fr); } }
.shot-grid figcaption { margin-top: var(--tc-space-3); font-size: var(--tc-text-small); color: var(--tc-text-muted); }

/* Comparison list (solo vs group) */
.compare { display: grid; gap: var(--tc-space-5); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 800px) { .compare { grid-template-columns: minmax(0, 1fr); } }
.compare .card h3 { font-family: var(--tc-font-display); font-weight: var(--tc-weight-display); font-size: 26px; }
.compare .card .who { color: var(--tc-text-muted); margin-bottom: var(--tc-space-4); }

/* Hosted checker page */
.hosted { max-width: 860px; margin: 0 auto; padding: var(--tc-space-6) var(--tc-gutter) var(--tc-space-8); }
@media (max-width: 400px) { .hosted { padding-left: var(--tc-gutter-min); padding-right: var(--tc-gutter-min); } }
.practice { display: flex; align-items: center; gap: var(--tc-space-4); margin: 0 0 var(--tc-space-5); }
.logo-slot { width: 64px; height: 64px; border-radius: var(--tc-radius-lg); background: var(--tc-surface-card); border: 1px solid var(--tc-hairline); display: grid; place-items: center; overflow: hidden; flex: none; }
.logo-slot .initials { font-family: var(--tc-font-display); font-weight: var(--tc-weight-display); font-size: 24px; letter-spacing: 0; color: var(--tc-text); }
.practice h1 { font-size: var(--tc-text-h2); margin: 0; }
.practice p { margin: var(--tc-space-1) 0 0; color: var(--tc-text-muted); }
.hosted .intro { margin: 0 0 var(--tc-space-5); color: var(--tc-text-muted); max-width: var(--tc-prose-max); }
.hosted .intro strong { color: var(--tc-text); }
#hosted-checker { min-height: 320px; }
.aside { display: grid; gap: var(--tc-space-4); grid-template-columns: repeat(3, minmax(0, 1fr)); margin: var(--tc-space-6) 0 0; }
@media (max-width: 680px) { .aside { grid-template-columns: minmax(0, 1fr); } }
.aside div { background: var(--tc-surface-card); border: 1px solid var(--tc-hairline); border-radius: var(--tc-radius-lg); padding: var(--tc-space-4); font-size: var(--tc-text-small); color: var(--tc-text-muted); }
.aside b { display: block; color: var(--tc-text); margin-bottom: var(--tc-space-1); font-weight: var(--tc-weight-semibold); }
.hosted-foot { margin: var(--tc-space-6) 0 0; padding-top: var(--tc-space-4); border-top: 1px solid var(--tc-hairline); font-size: var(--tc-text-small); color: var(--tc-text-muted); display: flex; flex-wrap: wrap; gap: var(--tc-space-2) var(--tc-space-4); justify-content: space-between; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: var(--tc-space-3); }
.cta-band .lead { margin: 0 auto var(--tc-space-6); }
.cta-band .cluster { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--tc-hairline); padding: var(--tc-space-8) 0 var(--tc-space-6); font-size: var(--tc-text-small); line-height: var(--tc-leading-small); color: var(--tc-text-muted); background: var(--tc-surface); }
@media (max-width: 760px) { .site-footer { padding: var(--tc-space-7) 0 var(--tc-space-5); } }
.footer-grid { display: grid; gap: var(--tc-space-6); grid-template-columns: 1.4fr 1fr 1fr 1fr; margin-bottom: var(--tc-space-7); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.footer-grid h2 { font-family: var(--tc-font-body); font-weight: var(--tc-weight-semibold); font-size: var(--tc-text-small); margin: 0 0 var(--tc-space-3); color: var(--tc-text); letter-spacing: 0; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li + li { margin-top: var(--tc-space-2); }
.footer-grid a { color: var(--tc-text); text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-brand img { height: 24px; width: auto; margin-bottom: var(--tc-space-3); }
.footer-brand p { max-width: 36ch; }
.footer-small { border-top: 1px solid var(--tc-hairline); padding-top: var(--tc-space-4); font-size: var(--tc-text-caption); line-height: var(--tc-leading-caption); letter-spacing: var(--tc-tracking-caption); }
.footer-small p { margin: 0 0 var(--tc-space-2); max-width: 90ch; }
.footer-small p:last-child { margin-bottom: 0; }

/* 404 */
.lost { text-align: center; padding: var(--tc-space-9) 0; }
.lost .code-404 { font-family: var(--tc-font-display); font-weight: var(--tc-weight-display); font-size: var(--tc-text-display); line-height: 1; letter-spacing: var(--tc-tracking-display); margin: 0 0 var(--tc-space-4); font-feature-settings: "tnum" 1; }
@media (max-width: 760px) { .lost .code-404 { font-size: var(--tc-text-display-phone); } }

/* Logo swap: light lockup by default, reversed lockup whenever the dark tokens apply (mirrors tokens.css). */
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}
.brand .logo-light, .brand .logo-dark { height: 28px; width: auto; }
/* The Covered for Therapy lockup is 8.88 times as wide as it is tall (249px at 28px). On a phone it sits at the
   brand minimum of 24px (213px wide) so it never gets squeezed against the menu button. */
@media (max-width: 400px) { .brand img, .brand .logo-light, .brand .logo-dark { height: 24px; } }

/* Skip link: off screen until focused */
.skip-link { position: absolute; left: var(--tc-space-4); top: -200px; z-index: 100; background: var(--tc-primary); color: var(--tc-on-primary); padding: var(--tc-space-3) var(--tc-space-4); border-radius: var(--tc-radius-md); font-weight: var(--tc-weight-medium); text-decoration: none; }
.skip-link:focus { top: var(--tc-space-4); outline: var(--tc-stroke-focus) solid var(--tc-focus); outline-offset: 2px; }

/* Dark band keeps a visible edge when the page itself is dark */
.band-dark { border-top: 1px solid var(--tc-hairline); border-bottom: 1px solid var(--tc-hairline); }

/* Short snippets inside cards wrap instead of scrolling. Lines are kept short (two-space indents) so the
   attribute names never break at their hyphen; the generated signup key may break anywhere. */
.steps pre.code, pre.code.wrap { white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; }
#snippet-out { word-break: break-all; }
pre.code .nb { white-space: nowrap; }
/* Below the two-column breakpoints every code sample wraps instead of clipping inside a scroll box */
@media (max-width: 1100px) { pre.code { white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; } }

/* Safety net against horizontal overflow on narrow screens (clip keeps the sticky header working) */
html, body { overflow-x: clip; }
@media (max-width: 600px) { .btn { white-space: normal; text-align: center; min-height: 44px; padding-top: var(--tc-space-3); padding-bottom: var(--tc-space-3); } }
