/* mwp.css: My Workout Partners demo redesign. Loads after ../core/core.css and sets every token, so the page is always light.
   Brand colours are placeholders (the live site blocked automated reads); --accent is the kit teal #0B5F6E. Swap tokens later.
   Static, opens from file://, system fonts only, no images except flat SVG illustrations.

   CONTRAST TABLE (hand-computed WCAG 2.x, about plus or minus 0.1; text 4.5, UI 3):
   text/white 15.0; text/surface 13.9; text/accent-soft 12.5; muted/white 6.6; muted/surface 6.1; teal #0B5F6E/white 7.3;
   teal/surface 6.7; white/teal button 7.3; white/hover #084B57 9.7; CTA text #102A30/coral #FF6B5E 5.4; coral edge #D63A2F/white 4.7;
   coral edge/surface 4.3; coral fill/dark 4.7; white/dark #0A3640 13.0; on-dark-muted/dark 7.3; lime/dark 10.2; lime/teal 5.7;
   focus #0B63CE/white 5.7; focus/surface 5.2; border-strong/white 4.9; border-strong/surface 4.5; error/white 6.5; error/surface 6.0;
   invented badge #0A4550/#D7EEF2 8.8; draft badge 7.5; mock 12.8; approved #1E6B3A/#E3F2E6 5.6; declined #5F2120/#FBE4E2 10.0;
   ribbon white/#102A30 15.0.
   Never: coral fill as a button edge on white (2.8, use --cta-edge); white text on coral (3.1); lime on white (1.3);
   coral button on teal (2.6).

   MARKUP NOTES
   Steps: <ol class="steps" role="list"><li><span class="step-num" aria-hidden="true">1</span><div><h3>..</h3><p>..</p></div></li></ol>
   (the ol keeps the order for screen readers; .steps-4 for four columns, .steps-compact for 40px circles, no connectors).
   Progress: <progress class="progress" value="39" max="50" aria-labelledby="id"> with the same numbers as visible text.
   Tabs: <ul class="tabs" role="list"><li><a href="#queue" aria-current="true">Queue</a></li>...</ul> (or buttons with aria-selected).
   Copy: <button class="btn btn-ghost">Copy</button> <span class="copied" role="status"></span>, script fills the span, empty hides it.
   (joined.html instead keeps an empty <div role="status" id="copy-status"> and the script inserts a <span class="copied"> into it.)
   Avatars and the pair are aria-hidden; the people's names always sit beside them as real text.
*/

:root {
  color-scheme: light;
  --bg:#FFFFFF; --surface:#F0F7F7; --card:#FFFFFF;
  --text:#102A30; --muted:#4A6066; --border:#D5E4E6; --border-strong:#5F7479;
  --accent:#0B5F6E; --accent-hover:#084B57; --accent-contrast:#FFFFFF; --link:#0B5F6E;
  --accent-soft:#D7EEF2; --accent-soft-text:#0A4550;
  --dark:#0A3640; --on-dark:#FFFFFF; --on-dark-muted:#A9C7CC; --on-dark-link:#C6F432; --lime:#C6F432;
  --focus:#0B63CE; --focus-on-dark:#C6F432;
  --cta:#FF6B5E; --cta-text:#102A30; --cta-edge:#D63A2F;
  --error:#B3261E; --warn-bg:#FDF0CF; --warn-text:#6B4500; --mock-bg:#E6EEF0; --mock-text:#102A30;
  --ok-bg:#E3F2E6; --ok-text:#1E6B3A; --no-bg:#FBE4E2; --no-text:#5F2120;
  --font: system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --font-head: var(--font); --head-weight:800; --head-tracking:-.025em;
  --step--1:.9375rem; --step-0:1.125rem; --step-1:1.25rem;
  --step-2:clamp(1.5rem,1.2rem + 1.2vw,1.875rem);
  --step-3:clamp(1.875rem,1.4rem + 2vw,2.625rem);
  --step-4:clamp(2.25rem,1.3rem + 4.4vw,4.25rem);
  --space-1:.25rem; --space-2:.5rem; --space-3:.75rem; --space-4:1rem; --space-5:1.5rem;
  --space-6:2rem; --space-7:3rem; --space-8:4rem;
  --section-y:clamp(3rem,2rem + 4vw,6rem);
  --wrap:72rem; --ribbon-h:2.75rem;
  --radius:.75rem; --radius-lg:1.5rem; --pill:999px;
  --shadow-1:0 1px 2px rgb(16 42 48 / .08);
  --shadow-2:0 16px 40px rgb(10 54 64 / .16);
}

/* ---------- Base type ---------- */
html { scroll-padding-top: 3rem; }
body { font: var(--step-0)/1.55 var(--font); background: var(--bg); color: var(--text); }
main { padding-block: 0; }
.wrap { width: min(100% - 2rem, var(--wrap)); }
h1, h2, h3, h4 {
  font-family: var(--font-head); font-weight: var(--head-weight); letter-spacing: var(--head-tracking);
  line-height: 1.12; margin-block: var(--space-6) var(--space-3);
}
:is(h1, h2, h3, h4):first-child { margin-block-start: 0; }
h1 { font-size: var(--step-4); line-height: 1.04; margin-block: 0 var(--space-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -.015em; margin-block: var(--space-5) var(--space-2); }
h4 { font-size: var(--step-0); letter-spacing: -.01em; }
.lead { font-size: var(--step-1); max-width: 40ch; color: var(--muted); }
.eyebrow {
  display: block; margin: 0 0 var(--space-3); font-size: var(--step--1); font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}
.center { text-align: center; }
.center :is(p, .lead) { margin-inline: auto; }
.center .actions, .center .chips { justify-content: center; }
.measure-wide { max-width: 48rem; }
.icon {
  width: 1.5rem; height: 1.5rem; flex: none; fill: none; stroke: currentColor;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.icon-sm { width: 1.25rem; height: 1.25rem; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.logo-mark { width: 36px; height: 36px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-block: var(--space-5) 0; }
.split { display: grid; gap: var(--space-6); align-items: center; }
.grid-cards { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }

/* ---------- Mock ribbon (lead decision 5): small pill, fixed top right, never over the header CTA ---------- */
.mock-ribbon {
  position: fixed; inset-block-start: .5rem; inset-inline-end: .5rem; z-index: 200; margin: 0;
  padding: .125rem .75rem; max-width: none; background: var(--text); color: #fff;
  border: 1px solid rgb(255 255 255 / .6); border-radius: var(--pill);
  font-size: var(--step--1); font-weight: 700; line-height: 1.4; letter-spacing: .04em; pointer-events: none;
}

/* ---------- Header and nav (static, not sticky; top padding keeps the ribbon clear of the CTA) ---------- */
.site-header { background: #fff; border-block-end: 1px solid var(--border); padding-block: 2.5rem var(--space-4); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-5); }
.brand {
  display: inline-flex; align-items: center; gap: var(--space-2); color: var(--text); text-decoration: none;
  font-weight: 800; font-size: var(--step-1); letter-spacing: -.02em; line-height: 1.1;
}
.brand:hover { text-decoration: underline; }
.brand { min-height: 44px; }
.brand-name { max-width: 9.5rem; }
.site-header nav { order: 3; flex-basis: 100%; }
.site-header .nav-list { gap: 0; }
.nav-list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: .5rem .625rem; border-radius: var(--radius);
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 1rem;
}
.nav-list a:hover { text-decoration: underline; text-decoration-thickness: .12em; text-underline-offset: .2em; }
.nav-list a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); font-weight: 800; border-radius: var(--radius) var(--radius) 0 0; }
.desk-label { margin: 0; color: var(--muted); font-weight: 600; font-size: var(--step--1); }
@media (min-width: 30rem) {
  .brand-name { max-width: none; }
  .nav-list a { padding: .625rem .75rem; font-size: var(--step-0); }
}
@media (min-width: 48rem) {
  .site-header nav { order: 0; flex-basis: auto; }
  .site-header .nav-list { gap: .25rem; }
}

/* ---------- Bands ---------- */
.band { padding-block: var(--section-y); }
.band-alt { background: var(--surface); }
.band-dark { background: var(--dark); color: var(--on-dark); --link: var(--on-dark-link); --focus: var(--focus-on-dark); --muted: var(--on-dark-muted); }
.band-dark .eyebrow { color: var(--lime); }
.band-tight { padding-block: var(--space-7); }
/* light surfaces placed on a dark band keep the light tokens */
.band-dark :is(.card, .phone, .callout, .stat) { --link: #0B5F6E; --focus: #0B63CE; --muted: #4A6066; color: var(--text); }
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: .8rem 1.5rem; border-radius: var(--pill); border: 2px solid var(--accent);
  background: var(--accent); color: var(--accent-contrast); font: inherit; font-weight: 700; line-height: 1.2;
  text-decoration: none; text-align: center; box-shadow: var(--shadow-1); cursor: pointer;
  transition: transform .15s, box-shadow .15s, background-color .15s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn-cta { background: var(--cta); color: var(--cta-text); border-color: var(--cta-edge); }
.btn-cta:hover { background: #FF8176; border-color: var(--cta-edge); }
.btn-secondary { background: transparent; color: var(--accent); border-color: var(--accent); box-shadow: none; }
.btn-secondary:hover { background: var(--accent-soft); color: var(--accent-soft-text); border-color: var(--accent); }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface); border-color: var(--border-strong); }
.btn-sm { min-height: 44px; padding: .5rem 1rem; font-size: var(--step--1); }
.band-dark .btn { background: var(--lime); color: var(--dark); border-color: var(--lime); }
.band-dark .btn:hover { background: #D8FA66; border-color: #D8FA66; }
.band-dark .btn-cta { background: var(--cta); color: var(--cta-text); border-color: var(--cta); }
.band-dark .btn-cta:hover { background: #FF8176; border-color: #FF8176; }
.band-dark .btn-secondary { background: transparent; color: #fff; border-color: #fff; }
.band-dark .btn-secondary:hover { background: rgb(255 255 255 / .12); color: #fff; border-color: #fff; }
.band-dark :is(.card, .phone) .btn { background: var(--accent); color: #fff; border-color: var(--accent); }
@media (max-width: 29.99rem) { .actions .btn { width: 100%; } }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-5); box-shadow: var(--shadow-1); color: var(--text);
}
.icon-tile {
  width: 48px; height: 48px; flex: none; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-soft-text); border-radius: var(--radius);
}
.card-feature .icon-tile { margin-block-end: var(--space-4); }
.trust-grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); list-style: none; padding: 0; margin: 0; }
.trust-grid > li { max-width: none; margin: 0; display: flex; gap: var(--space-3); align-items: flex-start; }
.trust-grid .icon-tile { width: 40px; height: 40px; }
.trust-grid strong { display: block; }
.callout {
  display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4) var(--space-5);
  background: var(--accent-soft); color: var(--accent-soft-text); border-radius: var(--radius);
}
.callout > .icon { margin-block-start: .125rem; }
.callout p { margin: 0; max-width: 60ch; }
.callout-warn { background: var(--warn-bg); color: var(--warn-text); }
.stat { padding: var(--space-4) var(--space-5); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); text-align: center; }
.stat-num { display: block; font-size: var(--step-3); font-weight: 800; line-height: 1.1; letter-spacing: var(--head-tracking); }
.stat-label { color: var(--muted); font-size: var(--step--1); font-weight: 600; }

/* ---------- Chips, pills, badges ---------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.chips li {
  display: inline-flex; align-items: center; gap: .375rem; max-width: none; margin: 0; padding: .375rem .75rem;
  border-radius: var(--pill); background: var(--accent-soft); color: var(--accent-soft-text);
  font-weight: 600; font-size: var(--step--1); line-height: 1.3;
}
.chips li + li { margin: 0; }
.chips .icon { width: 1.125rem; height: 1.125rem; }
.chips li.chip-shared { background: var(--accent); color: #fff; }
.pill {
  display: inline-flex; align-items: center; gap: .375rem; padding: .125rem .625rem; border-radius: var(--pill);
  border: 1px solid currentColor; font-weight: 700; font-size: var(--step--1); line-height: 1.4;
}
.pill .icon { width: 1rem; height: 1rem; stroke-width: 2.25; }
.pill-pending { background: var(--warn-bg); color: var(--warn-text); }
.pill-ok { background: var(--ok-bg); color: var(--ok-text); }
.pill-no { background: var(--no-bg); color: var(--no-text); }
.badge-invented, .badge-mock {
  display: inline-block; padding: .125rem .5rem; border: 1px solid currentColor; border-radius: var(--pill);
  font-size: .8125rem; font-weight: 700; line-height: 1.4; vertical-align: .1em;
}
.badge-invented { background: var(--accent-soft); color: var(--accent-soft-text); }
.badge-mock { background: var(--mock-bg); color: var(--mock-text); }

/* ---------- Avatars ---------- */
.avatar {
  width: 56px; height: 56px; flex: none; display: inline-grid; place-items: center; border: 3px solid #fff; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-soft-text); font-size: 1.375rem; font-weight: 800; line-height: 1;
  box-shadow: var(--shadow-1);
}
.avatar-alt { background: var(--lime); color: var(--dark); }
.avatar-pair { position: relative; display: inline-flex; align-items: center; }
.avatar-pair .avatar + .avatar { margin-inline-start: -14px; }
.avatar-link {
  position: absolute; inset-block-start: 50%; inset-inline-start: 50%; transform: translate(-50%, -50%); z-index: 1;
  width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%;
  background: var(--dark); color: var(--lime); border: 2px solid #fff;
}
.avatar-link .icon { width: 14px; height: 14px; stroke-width: 2.25; }
.pair-dim .avatar { opacity: .55; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: var(--space-6); list-style: none; margin: 0; padding: 0; counter-reset: none; }
.steps > li { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: var(--space-4); max-width: none; margin: 0; }
.steps > li + li { margin: 0; }
.steps h3 { margin-block-start: .25rem; }
.steps p { margin-block-end: 0; }
.step-num {
  width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: var(--step-1); font-weight: 800; line-height: 1;
}
.steps > li:not(:last-child)::after {
  content: ""; position: absolute; inset-inline-start: 27px; inset-block: calc(56px + .5rem) calc(-1 * var(--space-6) + .5rem);
  border-inline-start: 2px dashed var(--border-strong);
}
.steps-compact > li { grid-template-columns: 40px 1fr; gap: var(--space-3); }
.steps-compact .step-num, .anatomy .step-num { width: 40px; height: 40px; font-size: var(--step-0); }
.steps-compact > li:not(:last-child)::after { inset-inline-start: 19px; inset-block-start: calc(40px + .5rem); }
.anatomy { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.anatomy > li { display: grid; grid-template-columns: 40px 1fr; gap: var(--space-3); align-items: center; max-width: none; margin: 0; }
.anatomy > li + li { margin: 0; }
@media (min-width: 56rem) {
  .steps:not(.steps-compact) { grid-template-columns: repeat(3, 1fr); }
  .steps-4:not(.steps-compact) { grid-template-columns: repeat(4, 1fr); }
  .steps:not(.steps-compact) > li { display: block; }
  .steps:not(.steps-compact) .step-num { margin-block-end: var(--space-4); }
  .steps:not(.steps-compact) > li:not(:last-child)::after {
    inset-block: 27px auto; inset-inline: calc(56px + .75rem) calc(-1 * var(--space-6) + .75rem);
    border-inline-start: 0; border-block-start: 2px dashed var(--border-strong);
  }
}

/* ---------- Phone mockup ---------- */
.phone {
  position: relative; width: min(18rem, 80vw); aspect-ratio: 9 / 19; background: #fff; color: var(--text);
  border: 10px solid #0B1F24; border-radius: 2.5rem; box-shadow: var(--shadow-2); padding: 2.25rem .875rem .875rem;
  font-size: var(--step--1);
}
.phone::before {
  content: ""; position: absolute; inset-block-start: 0; inset-inline-start: 50%; transform: translateX(-50%);
  width: 6rem; height: 1.25rem; background: #0B1F24; border-radius: 0 0 1rem 1rem;
}
.phone h3 { font-size: var(--step-0); margin-block: var(--space-3) var(--space-1); }
.phone .card { padding: var(--space-4); border-radius: var(--radius); }

/* ---------- Hero ---------- */
.hero { padding-block: var(--section-y); }
.hero-grid { display: grid; gap: var(--space-7); align-items: center; }
.hero-art { position: relative; display: grid; place-items: center; min-height: 24rem; }
.hero-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.hero-art .phone { position: relative; z-index: 1; }
.hero-facts { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: grid; gap: var(--space-2); }
.hero-facts li { display: flex; gap: var(--space-2); align-items: center; max-width: none; margin: 0; font-weight: 600; }
.hero-facts li + li { margin: 0; }
.hero-facts .icon { color: var(--lime); }
.store {
  display: inline-flex; flex-direction: column; padding: .625rem 1rem; background: #102A30; color: #fff;
  border: 1px solid rgb(255 255 255 / .35); border-radius: var(--radius); line-height: 1.2;
}
.store-small { font-size: .8125rem; color: var(--on-dark-muted); }
.store-name { font-size: var(--step-1); font-weight: 700; }
.store-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-block-start: var(--space-4); }
@media (min-width: 56rem) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
  .split { grid-template-columns: 1fr 1fr; }
}

/* ---------- Footer ---------- */
.site-footer.band-dark { border: 0; padding-block: var(--space-7) var(--space-5); background: var(--dark); }
.footer-grid { display: grid; gap: var(--space-6); }
.site-footer .wrap { display: block; }
.site-footer h2 { font-size: var(--step-0); letter-spacing: 0; margin-block: 0 var(--space-3); color: var(--on-dark-muted); text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 var(--space-1); }
.site-footer a { text-underline-offset: .2em; }
.site-footer ul a { display: inline-block; padding-block: .625rem; }
.site-footer .brand { color: #fff; text-decoration: none; }
.site-footer .brand:hover { text-decoration: underline; }
.site-footer .logo-mark { background: #fff; border-radius: 50%; padding: 3px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); align-items: center;
  margin-block-start: var(--space-6); padding-block-start: var(--space-4); border-block-start: 1px solid rgb(255 255 255 / .25);
  color: var(--on-dark-muted); font-size: var(--step--1);
}
.footer-bottom p { margin: 0; max-width: none; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ---------- FAQ ---------- */
.faq { border-block-end: 1px solid var(--border-strong); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); min-height: 44px;
  padding: var(--space-4) 0; font-weight: 700; font-size: var(--step-1); cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; content: "+" / ""; flex: none; font-size: 1.75rem; line-height: 1; transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq > :not(summary) { padding-block-end: var(--space-2); }

/* ---------- Forms ---------- */
label, legend { font-weight: 700; }
input, select, textarea {
  min-height: 48px; padding: .75rem .875rem; background: #fff; color: var(--text);
  border: 1.5px solid var(--border-strong); border-radius: var(--radius);
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); border-width: 3px; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-4); margin: 0 0 var(--space-5); }
legend { font-size: var(--step-1); padding-inline: var(--space-2); }
.field { margin-block: 0 var(--space-5); }
.options { display: grid; gap: var(--space-2); }
.option {
  display: flex; gap: var(--space-3); align-items: center; min-height: 48px; padding: .5rem var(--space-3); margin: 0;
  border: 1px solid var(--border); border-radius: var(--radius); font-weight: 600; background: #fff; cursor: pointer;
}
.option input { margin: 0; accent-color: var(--accent); }
.option:has(:checked) { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-soft-text); }
.option:has(:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.option small { display: block; font-weight: 400; color: var(--muted); }
.option:has(:checked) small { color: var(--accent-soft-text); }
.error-summary {
  padding: var(--space-4) var(--space-5); margin-block-end: var(--space-5); background: var(--no-bg); color: var(--no-text);
  border-inline-start: 4px solid var(--error); border-radius: var(--radius);
}
.error-summary:empty { display: none; }
.error-summary h2 { font-size: var(--step-1); margin: 0 0 var(--space-2); letter-spacing: -.01em; }
.error-summary ul { margin: 0; }
.error-summary a { color: var(--no-text); font-weight: 700; --link: var(--no-text); }
.copy-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.copy-row input { flex: 1 1 14rem; min-width: 0; }
.copied {
  display: inline-flex; align-items: center; gap: .375rem; padding: .125rem .75rem; border-radius: var(--pill);
  background: var(--ok-bg); color: var(--ok-text); border: 1px solid currentColor; font-weight: 700; font-size: var(--step--1);
}
.copied:empty { display: none; }

/* ---------- Progress and tabs ---------- */
.progress-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); margin-block-end: var(--space-2); font-weight: 700; }
.progress {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 1rem; overflow: hidden;
  border: 1.5px solid var(--border-strong); border-radius: var(--pill); background: var(--accent-soft); accent-color: var(--accent);
}
.progress::-webkit-progress-bar { background: var(--accent-soft); }
.progress::-webkit-progress-value { background: var(--accent); border-radius: var(--pill); }
.progress::-moz-progress-bar { background: var(--accent); border-radius: var(--pill); }
.band-dark .progress { border-color: var(--on-dark-muted); background: rgb(255 255 255 / .12); accent-color: var(--lime); }
.band-dark .progress::-webkit-progress-bar { background: rgb(255 255 255 / .12); }
.band-dark .progress::-webkit-progress-value { background: var(--lime); }
.band-dark .progress::-moz-progress-bar { background: var(--lime); }
.tabs {
  display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0 0 var(--space-5); padding: .375rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + .5rem);
}
.tabs li { max-width: none; margin: 0; }
.tabs li + li { margin: 0; }
.tabs :is(a, button) {
  display: inline-flex; align-items: center; gap: .375rem; min-height: 44px; padding: .5rem 1.125rem;
  background: transparent; color: var(--text); border: 2px solid transparent; border-radius: var(--radius);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.tabs :is(a, button):hover { background: #fff; border-color: var(--border); }
.tabs :is([aria-current]:not([aria-current="false"]), [aria-selected="true"]) {
  background: var(--dark); color: #fff; border-color: var(--dark); font-weight: 800;
}
.tabs :is([aria-current]:not([aria-current="false"]), [aria-selected="true"])::before { content: "\2713\00a0"; content: "\2713\00a0" / ""; }

/* ---------- Motion, forced colours ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .btn:active { transform: none; }
  .faq summary::after { transition: none; }
}
@media (forced-colors: active) {
  .btn { border: 2px solid ButtonText; }
  .pill, .badge-invented, .badge-mock, .copied, .stat, .store, .chips li { border: 1px solid CanvasText; }
  .avatar, .avatar-link { border: 3px solid CanvasText; }
  .card, .option, .error-summary, .callout { border: 1px solid CanvasText; }
  .error-summary { border-inline-start-width: 4px; }
  .tabs { border: 1px solid CanvasText; }
  .tabs :is([aria-current]:not([aria-current="false"]), [aria-selected="true"]) { border: 2px solid Highlight; outline: 2px solid Highlight; }
  .progress { border: 1px solid CanvasText; }
  .nav-list a[aria-current="page"] { border-block-end: 3px solid Highlight; }
  .progress::-webkit-progress-value, .progress::-moz-progress-bar { background: Highlight; }
  .mock-ribbon { border: 1px solid CanvasText; }
  .steps > li:not(:last-child)::after { border-color: CanvasText; }
}
