/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --paper: #FAFBFC;
  --white: #FFFFFF;
  --ink: #1E2A36;
  --slate: #5B6875;
  --rule: #D9DEE3;
  --rule-strong: #B9C1C9;
  --wash: #EEF2F5;          /* row hover, quiet fills */
  --go: #22775A;
  --go-dark: #1A5E47;
  --go-wash: #E5F2EC;
  --refurb: #B87A00;        /* badge fill / marks only — 3.2:1, not for text */
  --refurb-text: #8A5A00;   /* refurb prices and labels — passes AA on paper */
  --refurb-wash: #FBF1DC;
  --stop: #A23B32;          /* struck-through / unused */
  --focus: #1E2A36;

  --font: "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --radius: 6px;
  --header-h: 64px;
  --gutter: 16px;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* ── Base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
}
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
small, .small { font-size: .875rem; }
.muted { color: var(--slate); }
.num { font-variant-numeric: tabular-nums; }
img, svg { display: block; }
.icon { flex: none; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.btn-go:focus-visible { box-shadow: 0 0 0 2px var(--white); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.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 { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: var(--radius); }
.skip:focus { top: 8px; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: 0 18px;
  font: inherit; font-weight: 600; line-height: 1.2;
  border-radius: var(--radius); border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn-go { background: var(--go); color: var(--white); }
.btn-go:hover { background: var(--go-dark); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--wash); }
.btn-quiet { background: transparent; color: var(--ink); padding: 0 10px; }
.btn-quiet:hover { background: var(--wash); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 1.0625rem; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1875rem; text-decoration: none; letter-spacing: -0.01em; min-height: 44px; }
.logo-mark { width: 26px; height: 26px; color: var(--go); }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a:not(.btn) { padding: 10px 12px; text-decoration: none; border-radius: var(--radius); min-height: 44px; display: inline-flex; align-items: center; }
.nav a:not(.btn):hover { background: var(--wash); }
.kit-link { position: relative; gap: 6px; }
.kit-count {
  display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; padding: 0 .35em;
  border-radius: 999px; background: var(--ink); color: var(--white); font-size: .8125rem; font-weight: 700;
}
.kit-rent { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 380px) { .kit-rent { display: none; } }
.cta-short { display: none; }
@media (max-width: 860px) {
  .nav a.nav-text:not(.btn) { display: none; }
}
@media (max-width: 440px) {
  .site-header .wrap { gap: 12px; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
}

/* ── Landing: hero ──────────────────────────────────────────────────────── */
.hero { padding: 56px 0 72px; }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: 1.05fr 1fr; gap: 64px; } }
.hero h1 { max-width: 14ch; }
.lede { font-size: 1.25rem; color: var(--ink); max-width: 36ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 20px; color: var(--slate); font-size: .9375rem; }

/* The recommendation slip — the one memorable element. */
.slip {
  position: relative;
  background: var(--white);
  border: 1px solid var(--rule);
  box-shadow: 0 1px 0 var(--rule), 0 18px 40px -24px rgba(30, 42, 54, .35);
  padding: 28px 28px 22px;
  max-width: 520px;
  justify-self: center;
  width: 100%;
}
@media (min-width: 960px) { .slip { transform: rotate(-1.2deg); } }
.slip::before { /* perforated top edge */
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 8px;
  background: radial-gradient(circle at 6px 0, var(--paper) 3.5px, transparent 4px) 0 0 / 12px 8px repeat-x;
}
.slip-head { display: flex; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 4px; }
.slip-head strong { display: block; font-size: 1.0625rem; }
.slip-head span { font-size: .875rem; color: var(--slate); }
.slip-meta { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; font-size: .9375rem; padding: 10px 0 12px; border-bottom: 1px solid var(--rule); }
.slip-meta dt { color: var(--slate); }
.slip-meta dd { margin: 0; }
.slip-list { list-style: none; margin: 0; padding: 0; }
.slip-list li {
  display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center;
  padding: 7px 0; border-bottom: 1px dashed var(--rule); font-size: .96875rem;
}
.slip-box { width: 16px; height: 16px; border: 1.5px solid var(--ink); border-radius: 2px; }
.slip-price { font-variant-numeric: tabular-nums; }
.slip-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.125rem; padding: 12px 0 6px; border-bottom: 3px double var(--ink); }
.slip-foot { font-size: .8125rem; color: var(--slate); margin-top: 12px; display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; }
.slip-sign { border-top: 1px solid var(--ink); min-width: 140px; padding-top: 4px; text-align: center; }

/* ── Sections ───────────────────────────────────────────────────────────── */
.section { padding: 80px 0; border-top: 1px solid var(--rule); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { font-size: 1.125rem; color: var(--slate); }
.section-alt { background: var(--white); }

/* ── The list, played out ───────────────────────────────────────────────── */
.playout-grid { display: grid; gap: 24px; }
@media (min-width: 880px) { .playout-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.po-col { background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--slate); padding: 22px 24px; }
.po-col.with { border-top-color: var(--go); }
.po-col h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.po-steps { list-style: none; margin: 0 0 16px; padding: 0; counter-reset: s; min-height: 6.5em; }
.po-steps li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 6px; padding: 3px 0; color: var(--slate); transition: color .3s; }
.po-steps li::before { content: counter(s); font-weight: 700; }
.po-steps li.on { color: var(--ink); }
.po-steps li.pending { opacity: .4; }
.po-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.po-list li {
  display: grid; grid-template-columns: 22px 1fr auto auto; gap: 10px; align-items: center;
  padding: 6px 0; border-bottom: 1px dashed var(--rule); font-size: .9375rem; min-height: 38px;
  transition: opacity .35s, color .35s;
}
.po-mark { width: 18px; height: 18px; border: 1.5px solid var(--rule-strong); border-radius: 3px; display: grid; place-items: center; transition: background .25s, border-color .25s; }
.po-mark svg { width: 13px; height: 13px; opacity: 0; transition: opacity .2s; }
.po-name { transition: color .3s; }
.po-tag { font-size: .75rem; font-weight: 700; padding: 1px 7px; border-radius: 3px; white-space: nowrap; opacity: 0; transition: opacity .3s; }
.po-price { font-variant-numeric: tabular-nums; text-align: right; min-width: 3.2em; }
/* Item states */
.po-list li[data-s="skip"] { opacity: .45; }
.po-list li[data-s="bought"] .po-mark,
.po-list li[data-s="inkit"] .po-mark { border-color: var(--ink); }
.po-list li[data-s="used"] .po-mark,
.po-list li[data-s="kept"] .po-mark { background: var(--go); border-color: var(--go); color: var(--white); }
.po-list li[data-s="used"] .po-mark svg,
.po-list li[data-s="kept"] .po-mark svg { opacity: 1; }
.po-list li[data-s="closet"] .po-name { text-decoration: line-through; text-decoration-color: var(--stop); text-decoration-thickness: 2px; color: var(--slate); }
.po-list li[data-s="closet"] .po-price { color: var(--stop); }
.po-list li[data-s="returned"] .po-name { color: var(--slate); }
.po-list li[data-s="returned"] .po-price { color: var(--slate); text-decoration: line-through; }
.po-list li[data-s="closet"] .po-tag { opacity: 1; background: #F7E3E1; color: var(--stop); }
.po-list li[data-s="returned"] .po-tag { opacity: 1; background: var(--wash); color: var(--slate); }
.po-list li[data-s="kept"] .po-tag,
.po-list li[data-s="used"] .po-tag { opacity: 1; background: var(--go-wash); color: var(--go-dark); }
.po-list li[data-s="inkit"] .po-tag { opacity: 1; background: var(--wash); color: var(--ink); }
.po-result { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; margin-top: 16px; padding-top: 12px; border-top: 2px solid var(--ink); font-size: .9375rem; }
.po-result dt { color: var(--slate); }
.po-result dd { margin: 0; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.po-result .big { font-size: 1.375rem; }
.po-result .bad { color: var(--stop); }
.po-result .good { color: var(--go-dark); }
.po-controls { display: flex; gap: 12px; align-items: center; margin-top: 24px; flex-wrap: wrap; }
.po-sessions { display: inline-flex; gap: 4px; }
.po-sessions i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--go); transition: background .25s; }
.po-sessions i.on { background: var(--go); }

/* ── How it works ───────────────────────────────────────────────────────── */
.how { display: grid; gap: 48px; }
@media (min-width: 960px) { .how { grid-template-columns: 1.3fr 1fr; gap: 72px; } }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 8px 16px; padding: 18px 0; border-top: 1px solid var(--rule); }
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(step); font-size: 2rem; font-weight: 700; line-height: 1; color: var(--go); }
.steps h3 { margin: 4px 0 4px; font-size: 1.1875rem; }
.steps p { margin: 0; color: var(--slate); }
.for-ot h3 { font-size: 1.0625rem; }
.checks { list-style: none; padding: 0; margin: 0 0 32px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 7px 0; }
.checks li::before { content: ""; width: 14px; height: 8px; margin-top: 7px; border-left: 2.5px solid var(--go); border-bottom: 2.5px solid var(--go); transform: rotate(-45deg); }
.also { border-top: 1px solid var(--rule); padding-top: 20px; display: grid; gap: 16px; }
.also p { margin: 0; font-size: .9375rem; color: var(--slate); }
.also strong { color: var(--ink); }

/* ── Why it works ───────────────────────────────────────────────────────── */
.stats { display: grid; gap: 0; border-top: 2px solid var(--ink); }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 800px) { .stat + .stat { padding-left: 24px; border-left: 1px solid var(--rule); } }
.stat-num { font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.stat p { margin: 10px 0 0; }
.cite { font-size: .8125rem; color: var(--slate); vertical-align: super; line-height: 0; text-decoration: none; margin-left: 1px; }
.cite:hover { text-decoration: underline; }
.argument { margin-top: 40px; font-size: 1.375rem; max-width: 34ch; line-height: 1.35; font-weight: 600; }
.sources { margin-top: 32px; font-size: .8125rem; color: var(--slate); padding-left: 1.25em; }
.sources li { margin: 2px 0; }
.medicare-note { max-width: 62ch; color: var(--slate); margin-top: 24px; }

/* ── What we heard ──────────────────────────────────────────────────────── */
.heard { display: grid; gap: 0; }
@media (min-width: 800px) { .heard { grid-template-columns: repeat(3, 1fr); } }
.heard blockquote { margin: 0; padding: 20px 24px 20px 0; border-top: 1px solid var(--rule); font-size: 1.125rem; }
@media (min-width: 800px) { .heard blockquote + blockquote { padding-left: 24px; border-left: 1px solid var(--rule); } }
.heard cite { display: block; font-style: normal; font-size: .875rem; color: var(--slate); margin-top: 8px; }
.heard-more { margin-top: 28px; display: grid; gap: 8px 32px; font-size: .9375rem; color: var(--slate); }
@media (min-width: 800px) { .heard-more { grid-template-columns: 1fr 1fr; } }
.heard-more p { margin: 0; }

/* ── Catalog teaser ─────────────────────────────────────────────────────── */
.cat-index { list-style: none; margin: 0; padding: 0; columns: 1; column-gap: 40px; }
@media (min-width: 640px) { .cat-index { columns: 2; } }
@media (min-width: 960px) { .cat-index { columns: 3; } }
.cat-index li { break-inside: avoid; border-top: 1px solid var(--rule); }
.cat-index a { display: flex; align-items: center; gap: 12px; padding: 12px 4px; text-decoration: none; min-height: 48px; }
.cat-index a:hover { background: var(--wash); }
.cat-index .count { white-space: nowrap; margin-left: auto; color: var(--slate); font-size: .9375rem; }
.cat-index .fams { display: block; font-size: .8125rem; color: var(--slate); }
.swatch { width: 10px; height: 10px; border-radius: 2px; flex: none; }

/* ── Pricing ────────────────────────────────────────────────────────────── */
.price-block { display: grid; gap: 32px; border: 1.5px solid var(--ink); background: var(--white); padding: 32px; }
@media (min-width: 880px) { .price-block { grid-template-columns: 1fr 1fr auto; align-items: start; gap: 48px; } .price-block > .btn { align-self: center; } }
.price-how { margin: 16px 0 0; color: var(--slate); max-width: 34em; }
.price-how strong { color: var(--ink); }
.rent-example { width: 100%; border-collapse: collapse; font-size: .9375rem; margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.rent-example caption { text-align: left; font-weight: 700; padding-bottom: 6px; }
.rent-example th { text-align: left; font-weight: 400; padding: 3px 12px 3px 0; }
.rent-example td { text-align: right; padding: 3px 0; white-space: nowrap; }
.rent-example tfoot th, .rent-example tfoot td { font-weight: 700; border-top: 1.5px solid var(--ink); padding-top: 8px; }
.price-big { font-size: 4rem; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.price-big small { font-size: 1.125rem; font-weight: 600; letter-spacing: 0; color: var(--slate); }
.price-terms { list-style: none; margin: 0; padding: 0; }
.price-terms li { padding: 6px 0; border-bottom: 1px solid var(--rule); }
.price-terms li:last-child { border-bottom: 0; }

/* ── Cleaning ───────────────────────────────────────────────────────────── */
.clean-table { width: 100%; border-collapse: collapse; }
.clean-table th, .clean-table td { text-align: left; padding: 14px 16px 14px 0; border-top: 1px solid var(--rule); vertical-align: top; }
.clean-table th { width: 220px; white-space: nowrap; }
.clean-table td.ex { color: var(--slate); font-size: .9375rem; }
@media (max-width: 720px) {
  .clean-table, .clean-table tbody, .clean-table tr, .clean-table th, .clean-table td { display: block; width: auto; }
  .clean-table th { padding-bottom: 0; border-top: 1px solid var(--rule); }
  .clean-table td { border: 0; padding-top: 4px; }
}
.cc {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 4px;
  font-weight: 700; font-size: .875rem; border: 1.5px solid var(--ink);
}
.cc-B { background: var(--wash); }
.cc-C { background: var(--ink); color: var(--white); }
.returns { display: grid; gap: 24px; margin-top: 40px; }
@media (min-width: 800px) { .returns { grid-template-columns: repeat(3, 1fr); } }
.returns h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.returns p { color: var(--slate); margin: 0; }

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 40px 16px 0; font-weight: 600; font-size: 1.125rem;
  position: relative; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 12px; font-size: 1.5rem; font-weight: 400; color: var(--slate); }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 0 20px; color: var(--ink); max-width: 68ch; }
.faq .a p:last-child { margin-bottom: 0; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: #E6EAEE; padding: 64px 0 32px; }
.site-footer a { color: #FFFFFF; }
.site-footer :focus-visible { outline-color: #FFFFFF; }
.foot-grid { display: grid; gap: 40px; }
@media (min-width: 880px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h2 { font-size: 1.5rem; color: #FFFFFF; }
.site-footer h3 { font-size: 1rem; color: #FFFFFF; }
.site-footer .muted { color: #B5BFC8; }
.form-row { display: grid; gap: 6px; margin-bottom: 14px; }
.form-row label { font-weight: 600; font-size: .9375rem; }
.site-footer input, .site-footer select {
  background: #FFFFFF; color: var(--ink);
}
input[type="text"], input[type="email"], input[type="date"], input[type="search"], select, textarea {
  font: inherit; min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--slate); border-radius: var(--radius);
  background: var(--white); color: var(--ink); width: 100%;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--ink); }
.two { display: grid; gap: 0 14px; }
@media (min-width: 520px) { .two { grid-template-columns: 1fr 1fr; } }
.foot-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid #3A4856; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: .875rem; color: #B5BFC8; }
.ph-toggle { background: transparent; border: 1px solid #5B6875; color: #E6EAEE; border-radius: var(--radius); min-height: 44px; padding: 0 14px; font: inherit; font-size: .875rem; cursor: pointer; }
.ph-toggle[aria-pressed="true"] { background: #FBF1DC; color: var(--ink); border-color: #FBF1DC; }
.form-ok { background: var(--go-wash); color: var(--go-dark); padding: 12px 14px; border-radius: var(--radius); font-weight: 600; }

/* ── Placeholder highlighting (team review aid) ─────────────────────────── */
body.show-ph [data-ph] { outline: 2px dashed var(--refurb); outline-offset: 2px; background-color: rgba(251, 241, 220, .7); }
body.show-ph [data-ph="VERIFY"] { outline-color: #7A5BA8; background-color: rgba(237, 230, 248, .7); }
body.show-ph .site-footer [data-ph] { background-color: rgba(251, 241, 220, .15); }
.ph-legend { display: none; }
body.show-ph .ph-legend { display: inline; }
.ph-legend b { padding: 0 4px; border-radius: 2px; }
.ph-legend .l-ph { outline: 2px dashed var(--refurb); }
.ph-legend .l-vf { outline: 2px dashed #B79CE0; }

/* ═══ Catalog ═══════════════════════════════════════════════════════════ */
.cat-header .wrap { gap: 16px; }
.search { flex: 1; max-width: 640px; position: relative; display: flex; align-items: center; }
.search input { padding-left: 40px; padding-right: 48px; border-color: var(--rule-strong); background: var(--white); }
.search .s-icon { position: absolute; left: 12px; color: var(--slate); pointer-events: none; }
.search kbd { position: absolute; right: 10px; font: inherit; font-size: .8125rem; color: var(--slate); border: 1px solid var(--rule-strong); border-radius: 4px; padding: 0 6px; background: var(--paper); }
@media (max-width: 720px) {
  .cat-header .wrap { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .cat-header .search { order: 3; flex-basis: 100%; max-width: none; }
  .search kbd { display: none; }
}

.cat-layout { display: grid; gap: 32px; padding-top: 24px; padding-bottom: 80px; }
@media (min-width: 960px) { .cat-layout { grid-template-columns: 236px 1fr; gap: 40px; } }

.rail { font-size: .9375rem; }
@media (min-width: 960px) {
  .rail { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow: auto; padding-right: 4px; }
}
.rail h2 { font-size: .9375rem; color: var(--slate); margin: 0 0 6px; font-weight: 700; letter-spacing: 0; }
.rail-cats { list-style: none; margin: 0 0 28px; padding: 0; }
.rail-cats a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; min-height: 40px; text-decoration: none; border-radius: var(--radius); }
.rail-cats a:hover { background: var(--wash); }
.rail-cats a[aria-current="true"] { background: var(--wash); font-weight: 700; }
.rail-cats .count { margin-left: auto; color: var(--slate); font-size: .8125rem; }
.rail-cats li.empty a { color: var(--slate); }
.filter-group { border: 0; margin: 0 0 18px; padding: 0; }
.filter-group legend { font-weight: 700; padding: 0; margin-bottom: 4px; color: var(--slate); font-size: .9375rem; }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; padding: 0 4px; border-radius: var(--radius); }
.check:hover { background: var(--wash); }
.check input { width: 20px; height: 20px; accent-color: var(--go); margin: 0; }
.check .cc { width: 22px; height: 22px; font-size: .75rem; }
.rail-reset { margin-top: 4px; }
.rail-toggle { display: none; }
@media (max-width: 959px) {
  .rail-toggle { display: inline-flex; }
  .rail-body { display: none; }
  .rail-body.open { display: block; border: 1px solid var(--rule); padding: 16px; background: var(--white); margin-top: 8px; }
}

.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; font-size: .9375rem; color: var(--slate); min-height: 28px; }
.match-hint b { color: var(--ink); }

.cat-section { margin-bottom: 48px; }
.cat-title { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; padding-bottom: 8px; border-bottom: 2px solid var(--ink); margin-bottom: 0; }
.cat-title .swatch { width: 12px; height: 12px; }
.family { padding-top: 24px; }
.fam-head { display: grid; grid-template-columns: 40px 1fr; gap: 0 12px; align-items: start; margin-bottom: 10px; }
.fam-icon { width: 40px; height: 40px; border: 1px solid var(--rule); border-radius: var(--radius); display: grid; place-items: center; background: var(--white); color: var(--ink); }
.fam-head h3 { font-size: 1.125rem; margin: 0; }
.fam-head p { margin: 0; color: var(--slate); font-size: .9375rem; }

.spec { width: 100%; border-collapse: collapse; font-size: .9375rem; background: var(--white); border: 1px solid var(--rule); }
.spec th { text-align: left; font-weight: 600; color: var(--slate); font-size: .8125rem; padding: 8px 10px; border-bottom: 1.5px solid var(--ink); background: var(--paper); white-space: nowrap; }
.spec td { padding: 0 10px; height: 44px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.spec th.n, .spec td.n { text-align: right; }
.table-scroll { overflow-x: auto; }
.spec td:not(.name-cell) { white-space: nowrap; }
.spec td.name-cell { min-width: 11em; }
.spec tbody tr.row:nth-of-type(4n+1) td { background: #FCFDFD; }
.spec tbody tr.row:hover td { background: var(--wash); cursor: pointer; }
.spec tbody tr.row.open td { background: var(--wash); border-bottom-color: transparent; }
.spec tbody tr.row:target td, .spec tbody tr.row.flash td { animation: flash 1.6s ease-out; }
@keyframes flash { from { background: #FFF3C4; } to { background: transparent; } }
.sku-btn {
  font: inherit; font-weight: 700; color: var(--ink); background: none; border: 0; padding: 0 4px 0 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; white-space: nowrap;
}
.sku-btn::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--slate); border-bottom: 1.5px solid var(--slate); transform: rotate(-45deg); margin-right: 4px; transition: transform .15s; }
.sku-btn[aria-expanded="true"]::before { transform: rotate(45deg); }
.cond { font-size: .8125rem; font-weight: 700; white-space: nowrap; }
.cond-refurb { color: var(--refurb-text); }
.cond-refurb::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--refurb); margin-right: 6px; vertical-align: 1px; }
.cond-newonly { color: var(--slate); font-weight: 600; }
.price-refurb { color: var(--refurb-text); font-weight: 700; }
.spec td.rent-cell { font-weight: 700; }
.price-was { color: var(--slate); font-size: .8125rem; text-decoration: line-through; margin-left: 4px; }
.spec .cc { width: 22px; height: 22px; font-size: .75rem; }
.add-cell { width: 1%; white-space: nowrap; text-align: right; }
.add-btn {
  min-height: 36px; min-width: 44px; padding: 0 12px; font: inherit; font-weight: 700; font-size: .875rem;
  border-radius: var(--radius); border: 1.5px solid var(--go); background: var(--white); color: var(--go-dark); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; position: relative;
}
.add-btn::after { content: ""; position: absolute; inset: -4px -2px; } /* 44px hit area */
.add-btn:hover { background: var(--go); color: var(--white); }
.add-btn.in { background: var(--go); color: var(--white); }
.add-btn.in:hover { background: var(--go-dark); }
.add-btn[disabled] { border-color: var(--rule-strong); color: var(--slate); background: var(--paper); cursor: not-allowed; }
.added-note { font-size: .8125rem; color: var(--go-dark); font-weight: 700; margin-right: 8px; }
.oos { font-size: .8125rem; color: var(--slate); }

.detail td { padding: 4px 10px 18px !important; height: auto; background: var(--wash) !important; cursor: default; }
.detail-grid { display: grid; gap: 14px 32px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); font-size: .9375rem; }
.detail-grid h4 { font-size: .8125rem; color: var(--slate); margin: 0 0 2px; font-weight: 700; letter-spacing: 0; }
.detail-grid p { margin: 0; }
.detail-wide { grid-column: 1 / -1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .8125rem; padding: 2px 8px; border-radius: 999px; background: var(--white); border: 1px solid var(--rule); }
.copy-link { font: inherit; font-size: .8125rem; background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; cursor: pointer; min-height: 32px; }

.empty-state { padding: 48px 0; text-align: center; color: var(--slate); }
.empty-state strong { display: block; color: var(--ink); font-size: 1.25rem; margin-bottom: 8px; }

/* Stack spec tables on small screens. */
@media (max-width: 720px) {
  .spec, .spec tbody { display: block; border: 0; background: transparent; }
  .spec thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .spec tr.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; padding: 8px 12px; border: 1px solid var(--rule); border-bottom: 0; background: var(--white); }
  .spec tr.row td { display: flex; justify-content: space-between; align-items: center; gap: 8px; height: auto; min-height: 32px; padding: 2px 0; border: 0; background: transparent !important; text-align: left !important; }
  .spec tr.row td::before { content: attr(data-label); color: var(--slate); font-size: .8125rem; }
  .spec tr.row td.sku-cell, .spec tr.row td.name-cell, .spec tr.row td.add-cell { grid-column: 1 / -1; }
  .spec tr.row td.sku-cell::before, .spec tr.row td.name-cell::before, .spec tr.row td.add-cell::before { content: none; }
  .spec tr.row td.name-cell { font-weight: 600; min-width: 0; white-space: normal; }
  .spec td:not(.name-cell) { white-space: normal; }
  .table-scroll { overflow: visible; }
  .spec tr.row td.add-cell { justify-content: flex-end; width: auto; padding-top: 4px; }
  .spec tr.row:last-of-type, .spec tr.detail + tr.row { border-bottom: 0; }
  .spec tbody { border-bottom: 1px solid var(--rule); }
  .spec tr.detail { display: block; border: 1px solid var(--rule); border-top: 0; border-bottom: 0; }
  .spec tr.detail td { display: block; }
  .add-btn { min-height: 44px; }
}

/* ── Kit drawer ─────────────────────────────────────────────────────────── */
.drawer {
  margin: 0 0 0 auto; height: 100%; max-height: 100%; width: min(460px, 100%); max-width: 100%;
  padding: 0; border: 0; border-left: 1px solid var(--rule); background: var(--paper); color: var(--ink);
}
.drawer::backdrop { background: rgba(30, 42, 54, .35); }
.drawer[open] { animation: slide-in .2s ease-out; }
@keyframes slide-in { from { transform: translateX(24px); opacity: .6; } }
.drawer-inner { display: flex; flex-direction: column; height: 100%; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 12px 24px; border-bottom: 1px solid var(--rule); }
.drawer-head h2 { font-size: 1.25rem; margin: 0; }
.drawer-body { flex: 1; overflow: auto; padding: 16px 24px; }
.drawer-foot { border-top: 1px solid var(--rule); padding: 16px 24px 24px; background: var(--white); }

.kit-list { list-style: none; margin: 0; padding: 0; }
.kit-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 4px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.kit-list .k-name { font-weight: 600; text-decoration: none; }
.kit-list .k-name:hover { text-decoration: underline; }
.kit-list .k-meta { grid-column: 1; font-size: .8125rem; color: var(--slate); }
.kit-list .k-price { grid-row: 1 / span 2; grid-column: 2; text-align: right; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; line-height: 1.3; }
.kit-list .k-price .per { font-weight: 600; font-size: .8125rem; color: var(--slate); }
.kit-list .k-buy { font-size: .8125rem; color: var(--slate); }
.kit-list .k-buy.price-refurb { color: var(--refurb-text); }
.kit-price { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0 12px; padding: 12px 0; margin: 8px 0 12px; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--rule); }
.kit-price .kp-label { font-weight: 700; }
.kit-price .kp-value { font-size: 1.75rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; grid-row: 1 / span 2; grid-column: 2; align-self: center; }
.kit-price .kp-sub { font-size: .8125rem; color: var(--slate); }
.kit-list .k-remove { grid-row: 1 / span 2; grid-column: 3; }
.remove-btn { font: inherit; font-size: .875rem; background: none; border: 0; color: var(--slate); text-decoration: underline; cursor: pointer; min-height: 44px; min-width: 44px; padding: 0 4px; }
.remove-btn:hover { color: var(--ink); }
.kit-meter { height: 6px; background: var(--rule); border-radius: 3px; overflow: hidden; margin: 6px 0 4px; }
.kit-meter span { display: block; height: 100%; background: var(--go); transition: width .2s; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 4px 0; margin: 0 0 16px; font-size: .9375rem; }
.totals dt { color: var(--slate); padding-right: 16px; }
.totals dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.totals .grand { font-size: 1.0625rem; color: var(--ink); font-weight: 700; padding-top: 6px; border-top: 1px solid var(--rule); }
.kit-empty { color: var(--slate); padding: 24px 0; }
.kit-note { font-size: .8125rem; color: var(--slate); margin: 12px 0 0; }

/* ── Kit page ───────────────────────────────────────────────────────────── */
.kit-page { display: grid; gap: 48px; padding-top: 40px; padding-bottom: 96px; }
@media (min-width: 960px) { .kit-page { grid-template-columns: 1fr 1fr; gap: 64px; } }
.panel { background: var(--white); border: 1px solid var(--rule); padding: 24px; }
fieldset.plain { border: 0; padding: 0; margin: 0 0 14px; }
fieldset.plain legend { font-weight: 600; font-size: .9375rem; padding: 0; margin-bottom: 6px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--rule-strong); border-radius: var(--radius); cursor: pointer; }
.radio:has(input:checked) { border-color: var(--go); background: var(--go-wash); }
.radio input { accent-color: var(--go); width: 18px; height: 18px; margin: 0; }
.hint { font-size: .8125rem; color: var(--slate); }
.privacy {
  display: grid; grid-template-columns: 24px 1fr; gap: 10px; padding: 12px 14px; margin: 4px 0 18px;
  border-left: 4px solid var(--refurb); background: var(--refurb-wash); font-size: .9375rem;
}
.err { color: var(--stop); font-size: .875rem; font-weight: 600; }
input[aria-invalid="true"] { border-color: var(--stop); }
.confirm { max-width: 640px; padding: 64px 0 96px; }
.confirm .check-big { width: 56px; height: 56px; border-radius: 50%; background: var(--go); color: var(--white); display: grid; place-items: center; margin-bottom: 20px; }
.summary { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: .9375rem; }
.summary th, .summary td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.summary th { color: var(--slate); font-weight: 600; width: 40%; }

/* ── Motion ─────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
