/* Blanc Kit — design system
   Paper + ink, one sharp accent (volt). Display: Bricolage Grotesque. Text: Instrument Sans. */

@font-face {
  font-family: 'Bricolage';
  src: url('/assets/fonts/bricolage.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument';
  src: url('/assets/fonts/instrument.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --paper: #f4f3ee;
  --paper-2: #ecebe4;
  --surface: #ffffff;
  --ink: #0d0d0b;
  --ink-2: #2f2e2a;
  --muted: #64635c;
  --faint: #8d8b82;
  --line: #e3e1d9;
  --line-2: #d3d0c5;
  --volt: #d6ff3a;
  --volt-2: #c3f01a;
  --volt-soft: #f1ffc2;
  --night: #0d0d0b;
  --night-2: #1a1a17;
  --night-3: #26261f;
  --night-line: #34332c;
  --on-night: #f4f3ee;
  --on-night-muted: #a8a79d;
  --danger: #c93a28;
  --danger-soft: #fdebe7;
  --ok: #1d7446;
  --ok-soft: #e4f4ea;

  --display: 'Bricolage', 'Instrument', ui-sans-serif, system-ui, sans-serif;
  --text: 'Instrument', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;

  --shadow-1: 0 1px 2px rgb(13 13 11 / 0.06);
  --shadow-2: 0 1px 2px rgb(13 13 11 / 0.05), 0 10px 28px -14px rgb(13 13 11 / 0.22);
  --shadow-3: 0 2px 6px rgb(13 13 11 / 0.08), 0 28px 60px -24px rgb(13 13 11 / 0.35);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
  --t-fast: 140ms;
  --t: 240ms;
  --t-slow: 420ms;

  --wrap: 1200px;
  --header-h: 64px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1rem;
  line-height: 1.55;
  font-feature-settings: 'ss01';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
::selection {
  background: var(--volt);
  color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 6px;
}
.on-night :focus-visible {
  outline-color: var(--volt);
}
h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
  font-variation-settings: 'opsz' 48;
}
p {
  margin: 0;
  text-wrap: pretty;
}
.num {
  font-variant-numeric: tabular-nums;
}
.wrap {
  width: min(100% - 2 * var(--s4), var(--wrap));
  margin-inline: auto;
}
@media (min-width: 720px) {
  .wrap {
    width: min(100% - 2 * var(--s6), var(--wrap));
  }
}
.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;
}
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  stroke-width: 1.75;
}
.skip {
  position: absolute;
  left: var(--s4);
  top: -60px;
  background: var(--ink);
  color: var(--paper);
  padding: var(--s2) var(--s4);
  border-radius: var(--r-sm);
  z-index: 100;
  transition: top var(--t) var(--ease);
}
.skip:focus {
  top: var(--s3);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgb(244 243 238 / 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
}
.site-header.dark {
  background: rgb(13 13 11 / 0.82);
  color: var(--on-night);
}
.site-header.dark.scrolled {
  border-bottom-color: var(--night-line);
}
.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--s5);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: -0.04em;
  font-variation-settings: 'opsz' 24;
}
.logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--ink);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.logo-mark::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--volt);
  transform: translate(3px, -3px);
}
.dark .logo-mark,
.on-night .logo-mark {
  background: var(--volt);
}
.dark .logo-mark::after,
.on-night .logo-mark::after {
  background: var(--ink);
}
.nav {
  display: none;
  gap: var(--s1);
  margin-left: auto;
}
.nav a {
  text-decoration: none;
  font-weight: 550;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  transition: background var(--t-fast) var(--ease), color var(--t-fast);
}
.dark .nav a {
  color: var(--on-night-muted);
}
.nav a:hover {
  background: var(--paper-2);
  color: var(--ink);
}
.dark .nav a:hover {
  background: var(--night-3);
  color: var(--on-night);
}
.nav a[aria-current='page'] {
  color: var(--ink);
  background: var(--paper-2);
}
.dark .nav a[aria-current='page'] {
  color: var(--on-night);
  background: var(--night-3);
}
.header-cta {
  margin-left: auto;
}
@media (min-width: 860px) {
  .nav {
    display: flex;
  }
  .header-cta {
    margin-left: var(--s2);
  }
}

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink);
  --fg: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  border: 0;
  background: var(--bg);
  color: var(--fg);
  font-weight: 650;
  font-size: 1rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover {
  --bg: #26261f;
}
.btn:active {
  transform: scale(0.97);
}
.btn .icon {
  transition: transform var(--t) var(--ease);
}
.btn:hover .icon-arrow {
  transform: translateX(3px);
}
.btn-volt {
  --bg: var(--volt);
  --fg: var(--ink);
}
.btn-volt:hover {
  --bg: var(--volt-2);
}
.btn-ghost {
  --bg: transparent;
  --fg: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
}
.btn-ghost:hover {
  --bg: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.on-night .btn-ghost {
  --fg: var(--on-night);
  box-shadow: inset 0 0 0 1.5px var(--night-line);
}
.on-night .btn-ghost:hover {
  --bg: var(--night-3);
  box-shadow: inset 0 0 0 1.5px var(--on-night-muted);
}
.btn-sm {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.92rem;
}
.btn-lg {
  min-height: 58px;
  padding: 0 28px;
  font-size: 1.08rem;
}
.btn-block {
  width: 100%;
}
.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.45;
  pointer-events: none;
}
.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--line-2);
  transition: text-decoration-color var(--t-fast);
}
.link-btn:hover {
  text-decoration-color: currentColor;
}
.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--r-pill);
  border: 0;
  background: transparent;
  transition: background var(--t-fast);
}
.icon-btn:hover {
  background: var(--paper-2);
}

/* ---------- chips & segmented ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line-2);
  background: var(--surface);
  font-weight: 600;
  font-size: 0.94rem;
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}
.chip:hover {
  border-color: var(--ink);
}
.chip:active {
  transform: scale(0.96);
}
.chip[aria-pressed='true'],
.chip.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.on-night .chip {
  background: var(--night-2);
  border-color: var(--night-line);
  color: var(--on-night);
}
.on-night .chip:hover {
  border-color: var(--on-night-muted);
}
.on-night .chip[aria-pressed='true'] {
  background: var(--volt);
  border-color: var(--volt);
  color: var(--ink);
}
.seg {
  display: inline-flex;
  padding: 4px;
  background: var(--paper-2);
  border-radius: var(--r-pill);
  position: relative;
  isolation: isolate;
}
.seg button {
  position: relative;
  border: 0;
  background: transparent;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color var(--t) var(--ease);
  white-space: nowrap;
}
.seg button[aria-pressed='true'] {
  color: var(--ink);
}
.seg .seg-thumb {
  position: absolute;
  z-index: -1;
  top: 4px;
  bottom: 4px;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: var(--shadow-1), 0 2px 8px -4px rgb(13 13 11 / 0.25);
  transition: left var(--t-slow) var(--ease), width var(--t-slow) var(--ease);
}

/* ---------- fields ---------- */
.field {
  display: grid;
  gap: 6px;
}
.field label,
.label {
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--muted);
}
.input,
.select {
  min-height: 48px;
  width: 100%;
  padding: 0 14px;
  border-radius: 12px;
  border: 1.5px solid var(--line-2);
  background: var(--surface);
  font-size: 1rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  appearance: none;
  -webkit-appearance: none;
}
.select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230d0d0b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.input:hover,
.select:hover {
  border-color: var(--faint);
}
.input:focus,
.select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgb(13 13 11 / 0.08);
}
input::placeholder {
  color: var(--faint);
}
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
  user-select: none;
}
.toggle input {
  appearance: none;
  -webkit-appearance: none;
  width: 44px;
  height: 26px;
  border-radius: 99px;
  background: var(--line-2);
  position: relative;
  margin: 0;
  transition: background var(--t) var(--ease);
  cursor: pointer;
  flex: none;
}
.toggle input::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.25);
  transition: transform var(--t) var(--ease);
}
.toggle input:checked {
  background: var(--ink);
}
.toggle input:checked::after {
  transform: translateX(18px);
  background: var(--volt);
}

/* ---------- surfaces ---------- */
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
}
.panel {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  padding: var(--s5);
}
.level {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 3px 9px 3px 7px;
  border-radius: var(--r-pill);
  background: var(--paper-2);
  color: var(--ink-2);
  white-space: nowrap;
}
.level i {
  display: inline-flex;
  gap: 2px;
}
.level i b {
  width: 4px;
  height: 10px;
  border-radius: 2px;
  background: var(--line-2);
}
.level[data-l='1'] i b:nth-child(-n + 1),
.level[data-l='2'] i b:nth-child(-n + 2),
.level[data-l='3'] i b:nth-child(-n + 3) {
  background: var(--ink);
}
.level[data-l='3'] {
  background: var(--volt-soft);
}
.level[data-l='4'] {
  background: var(--ink);
  color: var(--volt);
}
.level[data-l='4'] i b {
  background: var(--volt);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 650;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: var(--paper-2);
  color: var(--ink-2);
  white-space: nowrap;
}

/* ---------- section headings ---------- */
.section {
  padding-block: var(--s8);
}
@media (min-width: 860px) {
  .section {
    padding-block: var(--s9);
  }
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--s5);
  margin-bottom: var(--s6);
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  max-width: 18ch;
  font-variation-settings: 'opsz' 96;
}
.section-head p {
  color: var(--muted);
  max-width: 46ch;
  font-size: 1.05rem;
}
.lede {
  font-size: clamp(1.06rem, 1.6vw, 1.22rem);
  color: var(--muted);
  max-width: 52ch;
}

/* ---------- HOME: hero ---------- */
.hero {
  background: var(--night);
  color: var(--on-night);
  position: relative;
  overflow: hidden;
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + var(--s7));
  padding-bottom: var(--s8);
}
@media (min-width: 960px) {
  .hero {
    padding-top: calc(var(--header-h) + var(--s8));
    padding-bottom: var(--s9);
  }
}
.hero-grid {
  display: grid;
  gap: var(--s7);
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--s8);
  }
}
.hero h1 {
  font-size: clamp(2.9rem, 8.2vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  font-weight: 800;
  font-variation-settings: 'opsz' 96;
  max-width: 11ch;
}
.hero h1 .hl {
  color: var(--volt);
}
.hero .lede {
  color: var(--on-night-muted);
  margin-top: var(--s5);
}
.hero-stats {
  display: flex;
  gap: var(--s6);
  margin-top: var(--s6);
  color: var(--on-night-muted);
  font-size: 0.92rem;
  flex-wrap: wrap;
}
.hero-stats b {
  display: block;
  color: var(--on-night);
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  font-weight: 700;
}

/* The trip-style builder (pickup → destination) */
.builder {
  background: var(--surface);
  color: var(--ink);
  border-radius: 26px;
  padding: var(--s5);
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.6);
  position: relative;
}
@media (min-width: 600px) {
  .builder {
    padding: var(--s6);
  }
}
.builder h2 {
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  margin-bottom: var(--s5);
}
.route {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
.route::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 34px;
  bottom: 34px;
  width: 2px;
  background: var(--ink);
  border-radius: 2px;
}
.stop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--paper);
  border-radius: 16px;
  padding: 0 16px 0 18px;
  min-height: 64px;
  border: 1.5px solid transparent;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.stop:focus-within {
  border-color: var(--ink);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgb(13 13 11 / 0.06);
}
.stop-dot {
  width: 12px;
  height: 12px;
  flex: none;
  background: var(--ink);
  border-radius: 50%;
  position: relative;
  z-index: 1;
}
.stop-dot.sq {
  border-radius: 3px;
}
.stop label {
  position: absolute;
  left: 44px;
  top: 9px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.stop input,
.stop select {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 1.12rem;
  font-weight: 650;
  padding: 22px 0 6px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.stop .pound {
  font-size: 1.12rem;
  font-weight: 650;
  padding-top: 16px;
  margin-right: -10px;
}
.budget-chips {
  display: flex;
  gap: 6px;
  margin: 12px 0 var(--s5) 0;
  flex-wrap: wrap;
}
.budget-chips::-webkit-scrollbar {
  display: none;
}
.budget-chips .chip {
  flex: 1 0 auto;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.86rem;
}
.builder .hint {
  margin-top: 12px;
  font-size: 0.86rem;
  color: var(--muted);
  min-height: 1.4em;
}

/* hobby combobox */
.combo {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
}
.stop > .icon {
  flex: none;
}
.combo-list {
  position: absolute;
  left: -44px;
  right: -16px;
  top: calc(100% + 10px);
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-3);
  border: 1px solid var(--line);
  max-height: 320px;
  overflow: auto;
  z-index: 30;
  padding: 6px;
  margin: 0;
  list-style: none;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity var(--t-fast) var(--ease), transform var(--t) var(--ease);
}
.combo.open .combo-list {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.combo-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}
.combo-list li .from {
  margin-left: auto;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.88rem;
}
.combo-list li[aria-selected='true'],
.combo-list li:hover {
  background: var(--paper);
}
.combo-list .ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--paper-2);
  display: grid;
  place-items: center;
}
.combo-empty {
  padding: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* hero visual: live kit card */
.hero-visual {
  position: relative;
}
.demo {
  background: var(--night-2);
  border: 1px solid var(--night-line);
  border-radius: 26px;
  padding: var(--s5);
  position: relative;
}
.demo-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3);
  margin-bottom: var(--s4);
}
.demo-top b {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.demo-top span {
  color: var(--on-night-muted);
  font-size: 0.9rem;
}
.demo-list {
  display: grid;
  gap: 8px;
}
.demo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--night-3);
}
.demo-row .ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--night);
  display: grid;
  place-items: center;
  color: var(--volt);
}
.demo-row .nm {
  flex: 1;
  min-width: 0;
}
.demo-row .nm b {
  display: block;
  font-weight: 650;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.demo-row .nm span {
  color: var(--on-night-muted);
  font-size: 0.8rem;
}
.demo-row .pr {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.demo-bar {
  margin-top: var(--s4);
}
.demo-skip {
  margin-top: var(--s3);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.86rem;
  color: var(--on-night-muted);
  padding: 12px;
  border-radius: 14px;
  border: 1px dashed var(--night-line);
}
.demo-skip .icon {
  color: var(--volt);
  margin-top: 2px;
}

/* ---------- budget bar ---------- */
.bbar {
  --h: 12px;
}
.bbar-track {
  height: var(--h);
  border-radius: 99px;
  background: var(--paper-2);
  position: relative;
  overflow: hidden;
  display: flex;
}
.on-night .bbar-track,
.demo .bbar-track {
  background: var(--night-3);
}
.bbar-seg {
  height: 100%;
  width: 0;
}
.anim .bbar-seg {
  transition: width 700ms var(--ease);
}
.bbar-seg.needs {
  background: var(--ink);
}
.demo .bbar-seg.needs,
.on-night .bbar-seg.needs {
  background: var(--on-night);
}
.bbar-seg.wants {
  background: var(--volt);
  box-shadow: inset 2px 0 0 var(--surface);
}
.demo .bbar-seg.wants {
  box-shadow: inset 2px 0 0 var(--night-2);
}
.bbar-track.over .bbar-seg.needs {
  background: var(--danger);
}
.bbar-meta {
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  font-size: 0.86rem;
  margin-top: 8px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.on-night .bbar-meta,
.demo .bbar-meta {
  color: var(--on-night-muted);
}
.bbar-meta b {
  color: var(--ink);
  font-weight: 700;
}
.on-night .bbar-meta b,
.demo .bbar-meta b {
  color: var(--on-night);
}

/* ---------- HOME: hobby rails ---------- */
.rail-group + .rail-group {
  margin-top: var(--s7);
}
.rail-group .rail-h {
  font-size: 1.3rem;
  margin-bottom: var(--s4);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.rail-group .rail-h span {
  font-family: var(--text);
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s3);
}
@media (min-width: 640px) {
  .tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 980px) {
  .tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1180px) {
  .tiles {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s5);
  padding: var(--s4);
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  min-height: 168px;
  overflow: hidden;
  isolation: isolate;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.tile::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  clip-path: circle(0% at 30px 30px);
  transition: clip-path 520ms var(--ease);
}
.tile:hover {
  border-color: var(--ink);
  color: var(--on-night);
}
.tile:hover::before {
  clip-path: circle(150% at 30px 30px);
}
.tile .ico {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--paper);
  display: grid;
  place-items: center;
  transition: background var(--t) var(--ease), color var(--t);
}
.tile:hover .ico {
  background: var(--volt);
  color: var(--ink);
}
.tile .ico .icon {
  width: 22px;
  height: 22px;
}
.tile.has-art {
  min-height: 188px;
  justify-content: flex-start;
}
.tile-art {
  position: absolute;
  right: -12%;
  bottom: -18%;
  z-index: -1;
  width: 64%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(120% 95% at 30% 20%, var(--tint-a), var(--tint-b));
  transition: transform var(--t-slow) var(--ease), background var(--t) var(--ease);
}
.tile-art img {
  width: 70%;
  height: 70%;
  transform: translate(-12%, -16%) rotate(-8deg);
  transition: transform var(--t-slow) var(--ease);
}
.tile:hover .tile-art {
  transform: scale(1.08);
  background: radial-gradient(120% 95% at 30% 20%, #2a2a24, #1a1a16);
}
.tile:hover .tile-art img {
  transform: translate(-14%, -20%) rotate(0deg) scale(1.06);
}
@media (prefers-reduced-motion: reduce) {
  .tile-art,
  .tile-art img { transition: none; }
}
.tile b {
  font-family: var(--display);
  font-size: 1.18rem;
  letter-spacing: -0.025em;
  line-height: 1.1;
  font-weight: 700;
}
.tile .from {
  display: block;
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 4px;
  transition: color var(--t);
}
.tile:hover .from {
  color: var(--on-night-muted);
}
.tile .go {
  position: absolute;
  right: 14px;
  top: 14px;
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: opacity var(--t) var(--ease), transform var(--t-slow) var(--ease);
  color: var(--volt);
}
.tile:hover .go {
  opacity: 1;
  transform: none;
}

/* ---------- HOME: steps & trust ---------- */
.steps {
  display: grid;
  gap: var(--s5);
  counter-reset: step;
}
@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s6);
  }
}
.step {
  border-top: 2px solid var(--ink);
  padding-top: var(--s4);
}
.step .n {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.step h3 {
  font-size: 1.45rem;
  margin: 6px 0 8px;
}
.step p {
  color: var(--muted);
  max-width: 38ch;
}
.band {
  background: var(--night);
  color: var(--on-night);
}
.band .lede,
.band p {
  color: var(--on-night-muted);
}
.trust {
  display: grid;
  gap: var(--s6);
}
@media (min-width: 860px) {
  .trust {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--s8);
  }
}
.trust h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-variation-settings: 'opsz' 96;
  max-width: 14ch;
}
.trust h2 .hl {
  color: var(--volt);
}
.trust-list {
  display: grid;
  gap: var(--s3);
}
.trust-item {
  display: flex;
  gap: 14px;
  padding: var(--s4);
  border-radius: 18px;
  background: var(--night-2);
  border: 1px solid var(--night-line);
}
.trust-item .icon {
  color: var(--volt);
  margin-top: 3px;
}
.trust-item b {
  display: block;
  color: var(--on-night);
  margin-bottom: 2px;
}
.shops-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: var(--s5);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--on-night-muted);
}
.budget-band {
  display: grid;
  gap: var(--s5);
}
@media (min-width: 860px) {
  .budget-band {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}
.budget-band h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-variation-settings: 'opsz' 96;
}
.budget-band .chips .chip {
  min-height: 48px;
  padding: 0 20px;
  font-size: 1rem;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--night);
  color: var(--on-night-muted);
  padding-block: var(--s8) var(--s6);
  font-size: 0.92rem;
}
.foot-grid {
  display: grid;
  gap: var(--s6);
}
@media (min-width: 860px) {
  .foot-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}
/* Phones and tablets: links in two columns, not one long list. */
@media (max-width: 859.98px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: var(--s5);
  }
  .foot-grid > div:first-child,
  .foot-grid > div:nth-child(2) {
    grid-column: 1 / -1;
  }
  .foot-grid > div:nth-child(2) ul {
    grid-template-columns: 1fr 1fr;
    column-gap: var(--s5);
  }
  .site-footer .foot-grid ul {
    gap: 12px;
  }
}
.site-footer .logo {
  color: var(--on-night);
}
.site-footer .foot-h {
  font-family: var(--text);
  color: var(--on-night);
  font-size: 0.92rem;
  letter-spacing: 0;
  margin-bottom: var(--s3);
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.site-footer a {
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--on-night);
  text-decoration: underline;
}
.foot-note {
  margin-top: var(--s7);
  padding-top: var(--s5);
  border-top: 1px solid var(--night-line);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) var(--s6);
  justify-content: space-between;
  font-size: 0.84rem;
}
.foot-note p {
  max-width: 70ch;
}

/* ---------- shared: breadcrumbs, small buttons, level pills ---------- */
.crumbs {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: var(--s3);
}
.crumbs a {
  text-decoration: none;
}
.crumbs a:hover {
  text-decoration: underline;
}
.mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line-2);
  background: var(--surface);
  font-weight: 600;
  font-size: 0.88rem;
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast) var(--ease);
  white-space: nowrap;
}
.mini:hover {
  border-color: var(--ink);
}
.mini:active {
  transform: scale(0.96);
}
.mini .icon {
  width: 16px;
  height: 16px;
}
@keyframes itemIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
}
@keyframes flash {
  0% {
    box-shadow: 0 0 0 0 rgb(214 255 58 / 0.9);
    border-color: var(--ink);
  }
  100% {
    box-shadow: 0 0 0 14px rgb(214 255 58 / 0);
  }
}

/* feedback */
.feedback {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) var(--s5);
  align-items: center;
  justify-content: space-between;
  padding: var(--s5);
  border-radius: var(--r-lg);
  background: var(--night);
  color: var(--on-night);
}
.feedback p {
  color: var(--on-night-muted);
  font-size: 0.94rem;
}
.feedback b {
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

/* ---------- sheet (swap / who / compare) ---------- */
.scrim {
  position: fixed;
  inset: 0;
  background: rgb(13 13 11 / 0.42);
  z-index: 60;
  opacity: 0;
  transition: opacity var(--t) var(--ease);
}
.scrim.show {
  opacity: 1;
}
.sheet {
  position: fixed;
  z-index: 61;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 88vh;
  background: var(--surface);
  border-radius: 26px 26px 0 0;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 460ms var(--ease);
  box-shadow: var(--shadow-3);
}
.sheet.show {
  transform: none;
}
.sheet.closing {
  transition: transform 260ms var(--ease-in);
}
@media (min-width: 760px) {
  .sheet {
    left: auto;
    top: 0;
    width: 480px;
    max-height: none;
    border-radius: 26px 0 0 26px;
    transform: translateX(100%);
  }
}
.sheet-grab {
  width: 40px;
  height: 5px;
  border-radius: 9px;
  background: var(--line-2);
  margin: 10px auto 0;
}
@media (min-width: 760px) {
  .sheet-grab {
    display: none;
  }
}
.sheet-head {
  padding: var(--s4) var(--s5) var(--s3);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s3);
}
.sheet-head h2 {
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}
.sheet-head p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 4px;
}
.sheet-body {
  overflow: auto;
  padding: 0 var(--s5) var(--s5);
  overscroll-behavior: contain;
}
.sheet-foot {
  padding: var(--s3) var(--s5) calc(var(--s4) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.q {
  margin-bottom: var(--s5);
}
.q .label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
  color: var(--ink-2);
}

/* ---------- loader: building your kit ---------- */
.building {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--night);
  color: var(--on-night);
  display: grid;
  place-items: center;
  padding: var(--s5);
  transition: opacity 420ms var(--ease), visibility 420ms;
}
.building.done {
  opacity: 0;
  visibility: hidden;
}
.building-inner {
  width: min(100%, 440px);
}
.building h2 {
  font-size: clamp(2rem, 6vw, 2.8rem);
  letter-spacing: -0.035em;
  margin-bottom: var(--s5);
  font-weight: 800;
}
.building h2 span {
  color: var(--volt);
}
.b-steps {
  list-style: none;
  margin: 0 0 var(--s5);
  padding: 0;
  display: grid;
  gap: 12px;
}
.b-steps li {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--on-night-muted);
  opacity: 0.35;
  transition: opacity 300ms var(--ease), color 300ms;
  font-size: 1.02rem;
}
.b-steps li.on {
  opacity: 1;
  color: var(--on-night);
}
.b-steps li.ok {
  opacity: 1;
}
.b-steps .st {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--night-line);
  display: grid;
  place-items: center;
  flex: none;
  transition: background 300ms var(--ease), border-color 300ms;
}
.b-steps li.on .st {
  border-color: var(--volt);
  border-top-color: transparent;
  animation: spin 700ms linear infinite;
}
.b-steps li.ok .st {
  background: var(--volt);
  border-color: var(--volt);
  animation: none;
}
.b-steps li.ok .st::after {
  content: '';
  width: 8px;
  height: 4px;
  border: 2px solid var(--ink);
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg) translate(1px, -1px);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.b-stack {
  display: flex;
  gap: 8px;
  height: 56px;
}
.b-stack span {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--night-2);
  border: 1px solid var(--night-line);
  display: grid;
  place-items: center;
  color: var(--volt);
  animation: drop 560ms var(--ease) both;
}
@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-26px) scale(0.8);
  }
}
.b-bar {
  margin-top: var(--s5);
  height: 4px;
  border-radius: 9px;
  background: var(--night-3);
  overflow: hidden;
}
.b-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--volt);
  transition: width 360ms var(--ease);
}

/* skeleton */
.skel {
  background: linear-gradient(90deg, var(--paper-2) 0%, #f7f6f2 50%, var(--paper-2) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
  border-radius: 12px;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translate(-50%, 30px);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.94rem;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t) var(--ease), transform var(--t-slow) var(--ease);
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: var(--shadow-3);
  max-width: calc(100% - 32px);
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast .icon {
  color: var(--volt);
}
body.has-dock .toast {
  bottom: calc(120px + env(safe-area-inset-bottom));
}

/* ---------- COMPARE ---------- */
.cmp-wrap {
  position: relative; /* keeps the hidden screen-reader labels inside the scroller, so phones don't zoom out */
  overflow-x: auto;
  margin-inline: calc(-1 * var(--s4));
  padding-inline: var(--s4);
}
.cmp {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: 640px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.cmp th,
.cmp td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}
.cmp thead th {
  background: var(--paper);
  position: sticky;
  top: 0;
}
.cmp thead th .big {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  display: block;
}
.cmp tbody th {
  font-weight: 650;
  color: var(--muted);
  width: 150px;
  font-size: 0.86rem;
}
.cmp td .nm {
  font-weight: 650;
  display: block;
}
.cmp td .pr {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.cmp td.diff {
  background: var(--volt-soft);
}
.cmp tfoot td,
.cmp tfoot th {
  font-weight: 800;
  font-family: var(--display);
  font-size: 1.25rem;
  border-bottom: 0;
}
.cmp-pick {
  display: flex;
  gap: var(--s3);
  flex-wrap: wrap;
  margin-bottom: var(--s5);
  align-items: end;
}

/* ---------- GUIDE / prose ---------- */
.page-hero {
  padding-block: var(--s7) var(--s6);
}
.page-hero h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  letter-spacing: -0.04em;
  font-weight: 800;
  font-variation-settings: 'opsz' 96;
  max-width: 16ch;
}
.page-hero .lede {
  margin-top: var(--s4);
}
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: var(--s6);
}
@media (min-width: 860px) {
  .facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.fact {
  background: var(--surface);
  padding: var(--s4) var(--s5);
}
.fact span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 650;
}
.fact b {
  display: block;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin-top: 2px;
  line-height: 1.2;
}
.prose {
  max-width: 68ch;
  font-size: 1.06rem;
}
.prose h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  margin: var(--s7) 0 var(--s3);
}
.prose h3 {
  font-size: 1.3rem;
  margin: var(--s5) 0 var(--s2);
}
.prose p + p {
  margin-top: var(--s3);
}
.prose ol,
.prose ul {
  padding-left: 1.2em;
  display: grid;
  gap: 8px;
}
.prose li::marker {
  font-weight: 700;
}
.guide-grid {
  display: grid;
  gap: var(--s7);
}
@media (min-width: 1000px) {
  .guide-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
  }
  .guide-aside {
    position: sticky;
    top: calc(var(--header-h) + var(--s5));
  }
}
.tier-list {
  display: grid;
  gap: 8px;
}
.tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--paper);
  text-decoration: none;
  font-weight: 650;
  transition: background var(--t-fast), transform var(--t-fast) var(--ease);
}
.tier:hover {
  background: var(--paper-2);
}
.tier:active {
  transform: scale(0.98);
}
.tier span {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: var(--s4) 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.06rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  font-size: 1.4rem;
  line-height: 1;
  transition: transform var(--t) var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  color: var(--muted);
  margin-top: 8px;
}
/* ---------- DISCOVER ---------- */
.disc-controls {
  display: grid;
  gap: var(--s5);
  padding: var(--s5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
@media (min-width: 900px) {
  .disc-controls {
    grid-template-columns: 1.1fr 2fr;
    align-items: start;
  }
}
.range-wrap {
  display: grid;
  gap: 10px;
}
.range-wrap .val {
  font-family: var(--display);
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  background: transparent;
  margin: 0;
}
input[type='range']::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 9px;
  background: linear-gradient(to right, var(--ink) var(--fill, 30%), var(--paper-2) var(--fill, 30%));
}
input[type='range']::-moz-range-track {
  height: 8px;
  border-radius: 9px;
  background: var(--paper-2);
}
input[type='range']::-moz-range-progress {
  height: 8px;
  border-radius: 9px;
  background: var(--ink);
}
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--volt);
  border: 3px solid var(--ink);
  margin-top: -10px;
  transition: transform var(--t-fast) var(--ease);
}
input[type='range']::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--volt);
  border: 3px solid var(--ink);
}
input[type='range']:active::-webkit-slider-thumb {
  transform: scale(1.12);
}
.filters {
  display: grid;
  gap: var(--s4);
}
.filter-row {
  display: grid;
  gap: 8px;
}
.disc-grid {
  display: grid;
  gap: var(--s3);
  margin-top: var(--s5);
}
@media (min-width: 680px) {
  .disc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1060px) {
  .disc-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.disc-card {
  display: grid;
  gap: var(--s3);
  padding: var(--s5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-decoration: none;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), transform var(--t) var(--ease), opacity var(--t);
}
.disc-card:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow-2);
}
.disc-card .top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.disc-card .ico {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--paper);
  display: grid;
  place-items: center;
}
.disc-card h3 {
  font-size: 1.35rem;
}
.disc-card p {
  color: var(--muted);
  font-size: 0.94rem;
}
.disc-card .meter {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  font-weight: 650;
}
.disc-card .meter .bbar-track {
  flex: 1;
  height: 6px;
}
.disc-card .tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.disc-card.out {
  opacity: 0.5;
}
.empty {
  padding: var(--s7) var(--s5);
  text-align: center;
  color: var(--muted);
  border: 1.5px dashed var(--line-2);
  border-radius: var(--r-lg);
}
.empty b {
  display: block;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.4rem;
  margin-bottom: 6px;
}

/* ---------- reveal (one authored entrance per page) ---------- */
.anim .rise {
  animation: rise 900ms var(--ease) both;
  animation-delay: calc(var(--i, 0) * 80ms);
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
  .b-steps li.on .st {
    animation: none;
  }
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 260ms;
}

/* ---------- mobile refinements ---------- */
html,
body {
  overflow-x: clip;
}
.tag .icon {
  width: 13px;
  height: 13px;
}

/* Mobile: hero columns never grow past the screen; item actions get a full-width shop button
   with Swap / I have it sharing the row below, so nothing spills out of the card. */
.hero-grid > * {
  min-width: 0;
}

/* Long fact text drops to body size. */
.fact b.long {
  font-family: var(--text);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
}
.demo-list {
  grid-template-columns: minmax(0, 1fr);
}
.demo-row .ico {
  flex: none;
}

/* =========================================================
   Kit v2: product photo or placeholder art (photo.js)
   ========================================================= */
.ph {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(160deg, #fbfaf6, var(--paper-2));
  isolation: isolate;
}
.ph-hero { aspect-ratio: 16 / 11; }
.ph-card { aspect-ratio: 4 / 3; }
.ph-thumb { width: 64px; height: 64px; aspect-ratio: 1; flex: none; border-radius: 12px; }
.ph img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
/* Placeholder art: soft colour per kind of product, icon on a raised disc, brand wordmark. */
.ph-art {
  --tint-a: #fbfaf6;
  --tint-b: var(--paper-2);
  background:
    radial-gradient(rgb(13 13 11 / 0.045) 1px, transparent 1.3px) 0 0 / 14px 14px,
    radial-gradient(120% 95% at 28% 18%, var(--tint-a), var(--tint-b));
}
.ph-t0 { --tint-a: #fbfff0; --tint-b: #e8f6bd; }
.ph-t1 { --tint-a: #f5f9ff; --tint-b: #dbe7f8; }
.ph-t2 { --tint-a: #f8f5ff; --tint-b: #e5dcf8; }
.ph-t3 { --tint-a: #fff7f1; --tint-b: #f9dfcd; }
.ph-t4 { --tint-a: #f4faf4; --tint-b: #d9eadc; }
.ph-t5 { --tint-a: #fdfaf2; --tint-b: #eee3c9; }
.ph-disc {
  display: grid;
  place-items: center;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(160deg, #ffffff 30%, #f6f5f0);
  box-shadow:
    0 18px 30px -18px rgb(13 13 11 / 0.45),
    0 2px 6px -2px rgb(13 13 11 / 0.12),
    inset 0 -2px 0 rgb(13 13 11 / 0.04);
  transform: translateY(-6%);
}
.ph-disc > svg {
  width: 50%;
  height: 50%;
  color: var(--ink);
  stroke-width: 1.5;
}
.ph-hero .ph-disc { width: min(24%, 150px); transform: translateY(-8%); }
.ph-hero .ph-disc > svg { stroke-width: 1.15; }
.ph-thumb .ph-disc { width: 72%; transform: none; box-shadow: 0 6px 12px -8px rgb(13 13 11 / 0.4); }
.ph-words {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 11px;
  display: grid;
  gap: 1px;
  text-align: left;
  min-width: 0;
}
.ph-brand {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--ink);
  opacity: 0.86;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ph-hero .ph-words { left: 20px; right: 20px; bottom: 18px; }
.ph-hero .ph-brand { font-size: 1.5rem; }
.ph-thumb .ph-words { display: none; }
.ph-tag {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 1;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 1px 2px rgb(13 13 11 / 0.08);
}

/* Drawn product art (src/art): sits on the tint like a sticker, lifts a little on hover. */
.ph img.ph-drawn {
  width: auto;
  height: 76%;
  max-width: 76%;
  aspect-ratio: 1;
  object-fit: contain;
  background: none;
  transform: translateY(-5%);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ph-hero img.ph-drawn { height: 74%; max-width: 50%; }
.ph-thumb img.ph-drawn,
.k-item-ph .ph-thumb img.ph-drawn { height: 90%; max-width: 90%; transform: none; }
a:hover .ph-drawn,
button:hover .ph-drawn,
.k-item:hover .ph-drawn,
.cl-ours:hover .ph-drawn { transform: translateY(-8%) rotate(-3deg) scale(1.03); }
@media (prefers-reduced-motion: reduce) {
  .ph img.ph-drawn { transition: none; }
}

/* =========================================================
   Kit v2 page (kit-app.js). Phone first: hero + rows.
   From 900px: shop grid with a sticky "where to buy" panel.
   ========================================================= */
.kit2 {
  --k-card: var(--surface);
  padding-bottom: var(--s7);
}
.kit2 .num {
  font-variant-numeric: tabular-nums;
}
.ast {
  font-weight: 800;
  margin-left: 1px;
  opacity: 0.7;
}

/* ---- top ---- */
.k-top {
  padding-top: var(--s4);
}
.k-top .crumbs {
  margin-bottom: var(--s3);
}
.k-topcard {
  display: grid;
  gap: var(--s3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: var(--s4);
}
.k-head {
  display: grid;
  gap: var(--s3);
}
.k-head h1 {
  font-size: clamp(1.6rem, 5.4vw, 2.3rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-weight: 800;
}
.k-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s2);
}
.k-chips > .k-style {
  grid-column: 1 / -1;
  justify-self: start;
  max-width: 100%;
  overflow-x: auto;
}
.k-chip > span:not(.stepper):not([aria-hidden]) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 899.98px) {
  .k-chip {
    min-width: 0;
    padding: 0 11px;
    gap: 5px;
    font-size: 0.88rem;
  }
  .k-budget {
    padding-right: 2px;
  }
  .k-budget input {
    flex: 1;
    min-width: 3ch;
  }
  .k-budget .stepper button {
    width: 28px;
  }
}
.k-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-weight: 650;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: border-color var(--t-fast);
}
.k-chip:hover,
.k-chip:focus-within {
  border-color: var(--ink);
}
.k-chip.is-on {
  background: var(--ok-soft);
  border-color: color-mix(in srgb, var(--ok) 35%, transparent);
  color: var(--ok);
}
.k-chip .icon {
  width: 16px;
  height: 16px;
}
.k-budget {
  padding-right: 4px;
}
.k-budget input {
  width: 4.6ch;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  outline: none;
}
.k-budget .stepper {
  display: inline-flex;
}
.k-budget .stepper button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
}
.k-budget .stepper button:hover {
  background: var(--paper-2);
}
.k-style {
  flex: none;
}
.k-modebar {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-wrap: wrap;
}
.k-modebar .seg {
  background: var(--paper);
  border: 1px solid var(--line);
}
.k-modebar .seg button {
  min-height: 38px;
  padding: 0 16px;
  font-weight: 700;
}
.k-modebar .seg.none .seg-thumb {
  opacity: 0;
}
.k-mode-note {
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--ok);
}
.k-adline {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
}
.k-adline b {
  color: var(--ink);
}
.k-adline a {
  color: inherit;
}
.k-meter {
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-size: 0.9rem;
  color: var(--muted);
}
.k-meter > b {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.k-meter > span {
  white-space: nowrap;
}
.k-bar {
  flex: 1;
  min-width: 60px;
  height: 8px;
  border-radius: 99px;
  background: var(--paper-2);
  overflow: hidden;
}
.k-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: var(--ink);
  transition: width var(--t-slow) var(--ease), background var(--t) var(--ease);
}
.k-bar.over i {
  background: var(--danger);
}
.k-status {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}
.k-status .icon {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}
.k-status.ok {
  color: var(--ok);
}
.k-status.over {
  color: var(--danger);
}
.k-status[hidden],
#k-fit:empty {
  display: none;
}
.k-fit {
  border-top: 1px solid var(--line);
  padding-top: var(--s3);
}
.k-fit summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  font-size: 0.92rem;
}
.k-fit summary::-webkit-details-marker {
  display: none;
}
.k-fit summary > span {
  color: var(--muted);
  margin-left: auto;
  font-size: 0.86rem;
}
.k-fit summary .icon:last-child {
  transition: transform var(--t) var(--ease);
}
.k-fit[open] summary .icon:last-child {
  transform: rotate(180deg);
}
.k-fit ul {
  margin: var(--s2) 0 0;
  padding-left: 1.2em;
  color: var(--ink-2);
  font-size: 0.9rem;
  display: grid;
  gap: 4px;
}

/* ---- tabs (phone only) ---- */
.k-tabs-wrap {
  position: sticky;
  top: var(--header-h, 60px);
  z-index: 5;
  padding-top: var(--s3);
  padding-bottom: var(--s3);
  background: var(--paper);
  box-shadow: 0 10px 12px -10px rgb(244 243 238 / 1);
}
/* The bar's background reaches across the page margins, so cards scrolling underneath don't peek out at the sides. */
.k-tabs-wrap::before {
  content: '';
  position: absolute;
  inset: 0 calc(-1 * var(--s4));
  z-index: -1;
  background: var(--paper);
}
@media (min-width: 720px) {
  .k-tabs-wrap::before {
    inset: 0 calc(-1 * var(--s6));
  }
}
.k-tabs {
  display: flex;
  gap: 6px;
}
.k-tabs button {
  flex: 1;
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--paper-2);
  color: var(--muted);
  font-weight: 700;
}
.k-tabs button[aria-pressed='true'] {
  background: var(--ink);
  color: var(--paper);
}

/* ---- body ---- */
.k-body {
  display: grid;
  gap: var(--s5);
}
.k-main-col {
  min-width: 0;
  display: grid;
  gap: var(--s5);
  align-content: start;
}
.k-side {
  min-width: 0;
  display: grid;
  gap: var(--s4);
  align-content: start;
}
@media (max-width: 899.98px) {
  .kit2[data-tab='kit'] .k-tips,
  .kit2:not([data-tab='kit']) .k-main-col,
  .k-side #k-stops {
    display: none;
  }
  .kit2[data-tab='tips'] .k-tips details[data-t='later'],
  .kit2[data-tab='later'] .k-tips details:not([data-t='later']) {
    display: none;
  }
}
.k-sec[hidden] {
  display: none;
}
.k-h {
  font-size: 1.02rem;
  font-family: var(--text);
  letter-spacing: 0;
  font-weight: 750;
  color: var(--muted);
  margin-bottom: var(--s2);
}
.k-small,
.k-muted {
  font-size: 0.84rem;
  color: var(--muted);
}
.k-small a {
  color: inherit;
}

/* ---- level pill ---- */
.kit2 .level {
  flex: none;
}

/* ---- main item ---- */
.k-hero {
  background: var(--k-card);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}
.k-hero-ph .ph {
  border-radius: 0;
}
@media (max-width: 899.98px) {
  /* leave room for the Good / Better / Best pills that overlap the photo */
  .k-hero-ph .ph-words {
    bottom: 58px;
  }
  /* art needs less height than a real photo */
  .k-hero-ph .ph-art {
    aspect-ratio: 16 / 9;
  }
}
.k-hero-in {
  padding: var(--s4);
  display: grid;
  gap: var(--s2);
  min-width: 0;
}
.k-tiers {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: -44px 0 var(--s2);
  position: relative;
  z-index: 1;
}
.k-tier {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: 0 2px 12px rgb(13 13 11 / 0.14);
  font-weight: 700;
  font-size: 0.86rem;
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease);
}
.k-tier:active {
  transform: scale(0.96);
}
.k-tier[aria-pressed='true'] {
  background: var(--ink);
  color: var(--volt);
}
.k-tier-ph,
.k-tier-n,
.k-tier-d {
  display: none;
}
.k-tier-l .num {
  font-weight: 650;
  opacity: 0.8;
}
.k-hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 600;
}
.k-hero-name {
  font-size: clamp(1.25rem, 4.6vw, 1.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.k-short {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}
.k-why {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.k-buyrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  margin-top: var(--s1);
}
.k-price {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.k-buy {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.k-buy-lg {
  flex: 1;
  max-width: 300px;
}
.k-hero-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 2px;
}
.k-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  border: 0;
  padding: 0;
  background: none;
  font-weight: 650;
  font-size: 0.9rem;
  color: var(--ink-2);
  text-decoration: none;
}
.k-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.k-link .icon {
  width: 16px;
  height: 16px;
}
.k-or {
  color: var(--muted);
}
.k-allset {
  display: flex;
  gap: var(--s3);
  align-items: flex-start;
  background: var(--ok-soft);
  color: var(--ok);
  border-radius: 20px;
  padding: var(--s5);
}
.k-allset .icon {
  flex: none;
  width: 28px;
  height: 28px;
}
.k-allset h2 {
  font-size: 1.3rem;
  color: var(--ink);
}
.k-allset p {
  color: var(--ink-2);
  margin-top: 4px;
}

/* ---- item: a row on phones ---- */
.k-grid {
  background: var(--k-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0 var(--s4);
}
.k-grid:empty {
  display: none;
}
.k-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: var(--s3);
  align-items: center;
  padding: var(--s3) 0;
  border-top: 1px solid var(--line);
}
.k-item:first-child {
  border-top: 0;
}
.k-item-ph {
  border: 0;
  padding: 0;
  background: none;
  border-radius: 12px;
}
.k-item-ph .ph {
  width: 64px;
  height: 64px;
  aspect-ratio: 1;
}
.k-item-ph img.ph-drawn { height: 90%; max-width: 90%; transform: none; }
.k-item-ph .ph-disc {
  width: 72%;
  transform: none;
  box-shadow: 0 6px 12px -8px rgb(13 13 11 / 0.4);
}
.k-item-ph .ph-words,
.k-item-ph .ph-tag {
  display: none;
}
.k-item-body {
  min-width: 0;
}
.k-item-top,
.k-item-slot,
.k-item .k-short,
.k-acts {
  display: none;
}
.k-item-name {
  font-family: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.28;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.k-item-meta {
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 2px;
}
.k-item-meta a {
  color: var(--ink-2);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 0.2em;
}
.k-item-side {
  display: grid;
  justify-items: end;
  gap: 2px;
}
.k-item-side .k-price {
  font-size: 1.1rem;
}
.k-mini {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 30px;
  padding: 0 2px;
  border: 0;
  background: none;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--faint);
}
.k-mini .icon {
  width: 14px;
  height: 14px;
}
.k-mini.is-on {
  color: var(--ok);
}
.k-mini:hover {
  color: var(--ink);
}

/* ---- compact rows: owned / not needed / not in kit ---- */
.k-rows {
  display: grid;
  margin-top: var(--s2);
  border: 1px dashed var(--line-2);
  border-radius: 20px;
  padding: 0 var(--s4);
}
.k-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: var(--s3);
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.k-row:first-child {
  border-top: 0;
}
.k-row .ph {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  opacity: 0.85;
}
.k-row img.ph-drawn { height: 92%; max-width: 92%; transform: none; }
.k-row .ph-disc {
  width: 74%;
  transform: none;
  box-shadow: 0 4px 10px -6px rgb(13 13 11 / 0.35);
}
.k-row b {
  display: block;
  font-size: 0.92rem;
  line-height: 1.25;
}
.k-row span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--muted);
}
.k-row span .icon {
  width: 14px;
  height: 14px;
}
.k-row.is-owned span {
  color: var(--ok);
}
.k-row.is-quiet {
  opacity: 0.75;
}
.k-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 6px 0 12px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-weight: 700;
  font-size: 0.88rem;
  transition: border-color var(--t-fast), transform var(--t-fast) var(--ease);
}
.k-add .icon {
  width: 22px;
  height: 22px;
  padding: 3px;
  border-radius: 99px;
  background: var(--ink);
  color: var(--paper);
}
.k-add:hover {
  border-color: var(--ink);
}
.k-add:active {
  transform: scale(0.96);
}

/* ---- where to buy ---- */
.k-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: var(--s4);
}
.k-box h3 {
  font-size: 1.15rem;
  margin-bottom: var(--s3);
}
.k-stop {
  border-top: 1px solid var(--line);
  padding: var(--s3) 0;
}
.k-stop:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.k-stop-h {
  display: flex;
  align-items: center;
  gap: 10px;
}
.k-stop-h > .num {
  margin-left: auto;
  flex: none;
}
.k-stop-t {
  display: grid;
  min-width: 0;
  line-height: 1.25;
}
.k-stop-t span {
  font-size: 0.8rem;
  color: var(--muted);
}
.k-shopmark {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--paper-2);
  font-weight: 800;
  font-size: 0.95rem;
}
.k-shopmark .icon {
  width: 16px;
  height: 16px;
}
.k-stop.is-done .k-shopmark {
  background: var(--ok);
  color: #fff;
}
.k-stop.is-done ul {
  opacity: 0.55;
}
.k-stop-note {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}
.k-done {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 32px;
}
.k-done input {
  width: 18px;
  height: 18px;
  accent-color: var(--ok);
}
.k-progress {
  display: grid;
  gap: 6px;
  margin: 4px 0 var(--s3);
  font-size: 0.86rem;
  font-weight: 650;
}
.k-progress span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.k-progress .icon {
  width: 16px;
  height: 16px;
  color: var(--ok);
}
.k-progress i {
  display: block;
  height: 6px;
  border-radius: 99px;
  background: var(--paper-2);
  overflow: hidden;
}
.k-progress b {
  display: block;
  height: 100%;
  background: var(--ok);
  border-radius: inherit;
  transition: width var(--t) var(--ease);
}
.k-side > *,
.k-stop ul > li {
  min-width: 0;
}
.k-stop ul {
  list-style: none;
  padding: 0;
  margin: 6px 0 var(--s3);
  display: grid;
  gap: 2px;
}
.k-stop li a {
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  padding: 4px 0;
  font-size: 0.86rem;
  color: var(--muted);
  text-decoration: none;
}
.k-stop li a span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.k-stop li a:hover span:first-child {
  color: var(--ink);
  text-decoration: underline;
}
.k-stop.show-links li a span:first-child {
  color: var(--ink);
  text-decoration: underline;
}
.k-openall {
  min-height: 42px;
  font-size: 0.92rem;
  border-radius: 12px;
}
.k-stop-total {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: var(--s3);
  font-weight: 650;
}
.k-stops-sheet .k-stop:first-of-type {
  padding-top: var(--s2);
}
.k-more-acts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s2);
  margin-top: var(--s4);
}
.k-more-acts .btn {
  padding: 0 10px;
  min-height: 44px;
  font-size: 0.92rem;
}
.k-more-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s5);
  margin-top: var(--s4);
}
.k-toggles {
  display: grid;
  gap: var(--s3);
}
.k-toggles small {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}
.k-select {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--line-2);
  border-radius: 14px;
  background: var(--surface);
}
.k-select select {
  flex: 1;
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  outline: none;
}

/* ---- own sheet ---- */
.k-own {
  display: grid;
}
.k-own-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 28px;
  gap: var(--s3);
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.k-own-row:first-child {
  border-top: 0;
}
.k-own-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--paper);
  display: grid;
  place-items: center;
}
.k-own-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.k-own-box {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1.5px solid var(--line-2);
  display: grid;
  place-items: center;
  color: transparent;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.k-own-box .icon {
  width: 18px;
  height: 18px;
}
.k-own-row input:checked ~ .k-own-box {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--volt);
}
.k-own-row input:focus-visible ~ .k-own-box {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* ---- tips ---- */
.k-tips {
  padding-top: var(--s2);
  padding-bottom: var(--s2);
}
.k-tips details {
  border-top: 1px solid var(--line);
}
.k-tips details:first-child {
  border-top: 0;
}
.k-tips summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s3);
  min-height: 52px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}
.k-tips summary::-webkit-details-marker {
  display: none;
}
.k-fold-n {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--faint);
  font-weight: 500;
  font-size: 0.84rem;
}
.k-fold-n .icon {
  width: 16px;
  height: 16px;
  transition: transform var(--t) var(--ease);
}
.k-tips details[open] .k-fold-n .icon {
  transform: rotate(180deg);
}
.k-fold {
  padding-bottom: var(--s4);
}
.k-tiplist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--s3);
}
.k-tiplist li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
}
.k-tiplist li > .icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--danger);
}
.k-tiplist b {
  display: block;
  font-size: 0.94rem;
}
.k-tiplist p,
.k-steps p,
.k-path p {
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.45;
}
.k-steps {
  margin: 0;
  padding-left: 1.3em;
  display: grid;
  gap: var(--s2);
}
.k-steps li::marker {
  font-weight: 700;
  color: var(--muted);
}
.k-path {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--s3);
  counter-reset: kp;
}
.k-path li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s3);
}
.k-path .when {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--faint);
}
.k-path b {
  display: block;
  font-size: 0.94rem;
}
.k-path li > .num {
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---- dock (phone) ---- */
.k-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 30px -12px rgb(13 13 11 / 0.4);
}
.k-dock-in {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.k-dock-t {
  flex: 1;
  min-width: 0;
}
.k-dock-t b {
  display: block;
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: -0.02em;
}
.k-dock-t span {
  display: block;
  margin-top: 3px;
  font-size: 0.8rem;
  color: var(--on-night-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.k-dock .k-over {
  color: #ff9c8a;
  font-weight: 650;
}
.k-dock .btn {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
}
body.has-dock .site-footer {
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

/* ---- motion (only with html.anim) ---- */
.anim .kit2 .is-new {
  animation: itemIn 620ms var(--ease) both;
}
.kit2 .flash {
  animation: kFlash 900ms var(--ease);
}
@keyframes kFlash {
  0% {
    box-shadow: 0 0 0 0 rgb(214 255 58 / 0.9);
  }
  100% {
    box-shadow: 0 0 0 14px rgb(214 255 58 / 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .kit2 .is-new,
  .kit2 .flash {
    animation: none;
  }
}

/* ---- computers: shop grid ---- */
@media (min-width: 900px) {
  .k-topcard {
    padding: var(--s5);
    gap: var(--s4);
  }
  .k-head {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: var(--s4) var(--s5);
  }
  .k-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .k-chips #f-more {
    order: 5;
  }
  .k-tabs-wrap,
  .k-dock {
    display: none;
  }
  body.has-dock .site-footer {
    padding-bottom: 0;
  }
  body.has-dock .toast {
    bottom: calc(24px + env(safe-area-inset-bottom));
  }
  .k-body {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: var(--s5);
    margin-top: var(--s5);
    align-items: start;
  }
  .k-side {
    position: sticky;
    top: calc(var(--header-h, 60px) + var(--s4));
    max-height: calc(100vh - var(--header-h, 60px) - var(--s6));
    overflow-y: auto;
    scrollbar-width: thin;
    border-radius: 20px;
  }

  /* main item: wide card */
  .k-hero {
    display: grid;
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: var(--s5);
    padding: var(--s4);
    border-radius: 22px;
  }
  .k-hero-ph .ph {
    aspect-ratio: 1;
    border-radius: 14px;
  }
  .k-hero-in {
    padding: 0;
    align-content: start;
  }
  .k-tiers {
    order: 5;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: var(--s2) 0;
  }
  .k-tier {
    display: grid;
    align-content: start;
    gap: 4px;
    min-height: 0;
    padding: 8px;
    border-radius: 14px;
    background: var(--surface);
    box-shadow: inset 0 0 0 1.5px var(--line);
    color: var(--ink);
    text-align: left;
    white-space: normal;
  }
  .k-tier:hover {
    box-shadow: inset 0 0 0 1.5px var(--line-2);
  }
  .k-tier[aria-pressed='true'] {
    background: var(--surface);
    color: var(--ink);
    box-shadow: inset 0 0 0 2px var(--ink);
  }
  .k-tier-ph {
    display: block;
  }
  .k-tier-ph .ph {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border-radius: 10px;
  }
  .k-tier-l {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
  }
  .k-tier-l .num {
    display: none;
  }
  .k-tier-n {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.84rem;
    line-height: 1.25;
  }
  .k-tier-d {
    display: block;
    font-size: 0.84rem;
    font-weight: 750;
    color: var(--muted);
  }
  .k-tier-d.up {
    color: var(--ink);
  }
  .k-tier-d.down {
    color: var(--ok);
  }
  .k-hero-meta {
    order: 1;
  }
  .k-hero-name {
    order: 2;
    font-size: 1.75rem;
  }
  .k-hero-in > .k-short {
    order: 3;
  }
  .k-hero-in > .k-why {
    order: 4;
  }
  .k-buyrow {
    order: 6;
  }
  .k-hero-acts {
    order: 7;
  }

  /* items: photo cards */
  .k-grid {
    background: none;
    border: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--s4);
  }
  .k-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--k-card);
    transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
  }
  .k-item:first-child {
    border-top: 1px solid var(--line);
  }
  .k-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -14px rgb(13 13 11 / 0.22);
  }
  .k-item-ph {
    cursor: pointer;
  }
  .k-item-ph .ph {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }
  .k-item-ph img.ph-drawn { height: 76%; max-width: 76%; transform: translateY(-5%); }
  .k-item-ph .ph-disc {
    width: 42%;
    transform: translateY(-6%);
    box-shadow:
      0 18px 30px -18px rgb(13 13 11 / 0.45),
      0 2px 6px -2px rgb(13 13 11 / 0.12);
  }
  .k-item-ph .ph-words {
    display: grid;
  }
  .k-item-ph .ph-tag {
    display: block;
  }
  .k-item-body {
    display: grid;
    gap: 4px;
  }
  .k-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }
  .k-item-top .k-price {
    font-size: 1.3rem;
  }
  .k-item-slot {
    display: block;
    font-size: 0.78rem;
    font-weight: 650;
    color: var(--faint);
  }
  .k-item .k-short {
    display: block;
    font-size: 0.88rem;
  }
  .k-item-meta,
  .k-item-side {
    display: none;
  }
  .k-acts {
    display: flex;
    gap: 6px;
    margin-top: auto;
  }
  .k-acts .k-buy {
    flex: 1;
    min-width: 0;
    min-height: 42px;
    padding: 0 12px;
    font-size: 0.92rem;
  }
  .k-acts .k-swap {
    min-height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 0.92rem;
  }
  .k-icon {
    flex: none;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 12px;
    background: transparent;
    box-shadow: inset 0 0 0 1.5px var(--line-2);
    color: var(--muted);
    transition: box-shadow var(--t-fast), color var(--t-fast);
  }
  .k-icon:hover {
    box-shadow: inset 0 0 0 1.5px var(--ink);
    color: var(--ink);
  }
  .k-icon .icon {
    width: 18px;
    height: 18px;
  }
  .k-rows {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    column-gap: var(--s5);
  }
  .k-row:nth-child(2) {
    border-top: 0;
  }
}
@media (min-width: 1200px) {
  .k-body {
    grid-template-columns: minmax(0, 1fr) 350px;
  }
}

/* ---- swap sheet: photo cards ---- */
@media (min-width: 900px) {
  .sheet.sheet-wide {
    width: min(760px, 92vw);
  }
}
.k-sheet-ad {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
}
.k-alts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s3);
}
@media (min-width: 900px) {
  .k-alts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.k-alt {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 8px;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1.5px var(--line);
  background: var(--surface);
  transition: box-shadow var(--t-fast);
}
.k-alt:hover {
  box-shadow: inset 0 0 0 1.5px var(--line-2);
}
.k-alt[aria-current='true'] {
  box-shadow: inset 0 0 0 2px var(--ink);
}
.k-alt-pick {
  display: grid;
  gap: 4px;
  border: 0;
  padding: 0;
  background: none;
  text-align: left;
  min-width: 0;
}
.k-alt-pick .ph {
  border-radius: 10px;
  margin-bottom: 4px;
}
.k-alt-pick .ph-tag {
  left: 6px;
  top: 6px;
  font-size: 0.62rem;
}
.k-alt-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}
.k-alt-top .k-price {
  font-size: 1.15rem;
}
.k-delta {
  font-size: 0.8rem;
  font-weight: 750;
  color: var(--muted);
  white-space: nowrap;
}
.k-delta.up {
  color: var(--ink);
}
.k-delta.down {
  color: var(--ok);
}
.k-alt-name {
  font-size: 0.86rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.k-alt-short {
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--muted);
}
.k-alt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.k-alt-tags .tag {
  font-size: 0.7rem;
}
.k-alt-more summary {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 30px;
  cursor: pointer;
  list-style: none;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-2);
}
.k-alt-more summary::-webkit-details-marker {
  display: none;
}
.k-alt-more summary .icon {
  width: 14px;
  height: 14px;
  transition: transform var(--t) var(--ease);
}
.k-alt-more[open] summary .icon {
  transform: rotate(180deg);
}
.k-alt-more p {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--ink-2);
}
.k-alt-shop {
  margin-top: auto;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 0.2em;
  min-height: 28px;
  display: flex;
  align-items: center;
}
.k-swap-foot {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.k-swap-foot .btn {
  flex: 1;
}
.k-row-open {
  display: block;
  min-width: 0;
  border: 0;
  padding: 0;
  background: none;
  text-align: left;
}
.k-row-open:hover b {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* =========================================================
   Kit cards on guide and budget pages (no controls)
   ========================================================= */
.s-kit-sec {
  padding-bottom: var(--s7);
}
.s-kit-sec > h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--s4);
}
.s-kit {
  --k-card: var(--surface);
  display: grid;
  gap: var(--s3);
}
.s-kit .num {
  font-variant-numeric: tabular-nums;
}
.s-kit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  flex-wrap: wrap;
}
.s-kit-head > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.s-kit-head b {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.s-kit-head span {
  color: var(--muted);
  font-weight: 600;
}
.s-grid .k-item-ph {
  cursor: default;
}
.s-kit-head small {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--muted);
  letter-spacing: 0;
}

/* ================= MY KIT ================= */
.mk-hero {
  background: var(--night);
  color: var(--on-night);
  position: relative;
  overflow: hidden;
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + var(--s7)) 0 var(--s8);
}
.mk-hero::before {
  content: '';
  position: absolute;
  inset: auto -20% -60% auto;
  width: 70vmax;
  height: 70vmax;
  background: radial-gradient(closest-side, rgb(214 255 58 / 0.13), transparent 70%);
  pointer-events: none;
}
.mk-hero-grid {
  position: relative;
  display: grid;
  gap: var(--s7);
  align-items: center;
}
@media (min-width: 900px) {
  .mk-hero-grid {
    grid-template-columns: 1.3fr 0.7fr;
  }
}
.mk-hero h1 {
  font-size: clamp(3rem, 9vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
  font-weight: 800;
  font-variation-settings: 'opsz' 96;
}
.mk-hero h1 .hl {
  color: var(--volt);
}
.mk-hero .lede {
  color: var(--on-night-muted);
  margin-top: var(--s5);
}
.mk-eyebrow {
  color: var(--on-night-muted);
  font-weight: 600;
  margin-bottom: var(--s4);
}
.mk-league {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: var(--r-pill);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: linear-gradient(135deg, #e7b98c, #b9774a);
}
.mk-league .icon {
  width: 16px;
  height: 16px;
}
.mk-league[data-league='silver'] {
  background: linear-gradient(135deg, #f1f1ee, #a9aaa4);
}
.mk-league[data-league='gold'] {
  background: linear-gradient(135deg, #ffe58a, #d9a722);
}
.mk-league[data-league='platinum'] {
  background: linear-gradient(135deg, #e9fbff, #8fc5d3);
}
.mk-league[data-league='diamond'] {
  background: linear-gradient(135deg, var(--volt), #7ef0ff);
}
.mk-xp {
  margin-top: var(--s5);
  max-width: 520px;
}
.mk-xp-bar {
  height: 12px;
  border-radius: var(--r-pill);
  background: var(--night-3);
  overflow: hidden;
}
.mk-xp-bar b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--volt);
  box-shadow: 0 0 18px rgb(214 255 58 / 0.55);
  transform-origin: left;
}
.anim .mk-xp-bar b {
  animation: mk-grow 1.1s var(--ease) both 0.25s;
}
@keyframes mk-grow {
  from {
    transform: scaleX(0);
  }
}
.mk-xp-t {
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
  margin-top: var(--s2);
  font-size: 0.9rem;
  color: var(--on-night-muted);
}
.mk-xp-t b {
  color: var(--on-night);
}
.mk-stats {
  margin-top: var(--s5);
}
.mk-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: var(--s6);
}
.mk-score {
  position: relative;
  justify-self: center;
  width: min(300px, 70vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.mk-score .mk-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.mk-ring {
  overflow: visible; /* lets the glow spill past the ring's box instead of being cut square */
}
.mk-ring-bg {
  stroke: var(--night-3);
}
.mk-ring-fg {
  stroke: var(--volt);
  filter: drop-shadow(0 0 10px rgb(214 255 58 / 0.45));
}
.anim .mk-score .mk-ring-fg {
  animation: mk-ring 1.3s var(--ease) both 0.2s;
}
@keyframes mk-ring {
  from {
    stroke-dashoffset: 400;
  }
}
.mk-score-n {
  text-align: center;
}
.mk-score-n b {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(4rem, 12vw, 5.6rem);
  letter-spacing: -0.05em;
  line-height: 1;
}
.mk-score-n span {
  display: block;
  margin-top: 6px;
  color: var(--on-night-muted);
  font-size: 0.9rem;
  max-width: 16ch;
}
.mk-score-empty .mk-score-n b {
  color: var(--night-line);
}

.mk-sec {
  padding-top: var(--s7);
}
.mk-sec h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  letter-spacing: -0.03em;
}
.mk-sec-h {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s4);
  flex-wrap: wrap;
  margin-bottom: var(--s5);
}
.mk-sec-h > span {
  color: var(--muted);
  font-size: 0.92rem;
}

.mk-next {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s4);
  align-items: center;
  padding: var(--s5);
  border-radius: var(--r-lg);
  background: var(--volt);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-2);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.mk-next:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-3);
}
.mk-next-ico {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--volt);
}
.mk-next-ico .icon {
  width: 26px;
  height: 26px;
}
.mk-next-t {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.mk-next-k {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.7;
}
.mk-next-t b {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  letter-spacing: -0.02em;
}
.mk-next-t > span:last-child {
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mk-next-xp {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: -0.04em;
  text-align: right;
  line-height: 1;
}
.mk-next-xp small {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  font-weight: 700;
}
@media (max-width: 520px) {
  .mk-next {
    grid-template-columns: auto 1fr;
  }
  .mk-next-xp {
    grid-column: 1 / -1;
    text-align: left;
    display: flex;
    gap: 6px;
    align-items: baseline;
  }
}

.mk-cards {
  display: grid;
  gap: var(--s4);
}
@media (min-width: 820px) {
  .mk-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.mk-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s5);
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}
.mk-card-h {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s3);
  align-items: center;
}
.mk-card-ico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--paper);
}
.mk-card-h h3 {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}
.mk-card-h div > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}
.mk-card-h div > span .icon {
  width: 15px;
  height: 15px;
  color: var(--ok);
  margin-left: 4px;
}
.mk-mini {
  position: relative;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
}
.mk-mini .mk-ring {
  position: absolute;
  inset: 0;
}
.mk-mini .mk-ring-bg {
  stroke: var(--paper-2);
}
.mk-mini .mk-ring-fg {
  stroke: var(--ink);
  filter: none;
}
.mk-mini b {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 800;
}
.mk-parts {
  display: grid;
  gap: 6px;
}
.mk-parts span {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 6px 10px;
  border-radius: 9px;
  background: var(--paper);
  overflow: hidden;
  font-size: 0.84rem;
}
.mk-parts i {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--volt-soft);
  border-right: 2px solid var(--volt-2);
}
.mk-parts i[style='width:0%'] {
  border: 0;
}
.mk-parts em,
.mk-parts b {
  position: relative;
  font-style: normal;
}
.mk-parts em {
  color: var(--ink-2);
}
.mk-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.mk-items li {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: var(--s3);
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.mk-item-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--paper);
}
.mk-item-ico .icon {
  width: 18px;
  height: 18px;
}
.mk-item-t {
  display: grid;
  min-width: 0;
}
.mk-item-t b {
  font-size: 0.94rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mk-item-t span {
  color: var(--muted);
  font-size: 0.8rem;
}
.mk-personal {
  background: #f3ecff;
}
.mk-x {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--faint);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.mk-x:hover {
  background: var(--danger-soft);
  color: var(--danger);
}
.mk-x .icon {
  width: 16px;
  height: 16px;
}
.mk-missing {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--ink-2);
  background: var(--paper);
  padding: 10px 12px;
  border-radius: 10px;
}
.mk-missing .icon {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
}
.mk-card-f {
  display: flex;
  gap: var(--s2);
  flex-wrap: wrap;
  margin-top: auto;
}

.mk-badges {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr));
  gap: var(--s3);
}
.mk-badge {
  display: grid;
  gap: 4px;
  padding: var(--s4);
  border-radius: var(--r);
  background: var(--paper-2);
  color: var(--faint);
  border: 1px dashed var(--line-2);
}
.mk-badge b {
  color: var(--muted);
  font-size: 0.98rem;
}
.mk-badge > span:last-child {
  font-size: 0.82rem;
}
.mk-badge-ico {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper);
  margin-bottom: 6px;
}
.mk-badge.is-on {
  background: var(--night);
  color: var(--on-night-muted);
  border: 1px solid var(--night);
}
.mk-badge.is-on b {
  color: var(--on-night);
}
.mk-badge.is-on .mk-badge-ico {
  background: var(--volt);
  color: var(--ink);
  box-shadow: 0 0 0 6px rgb(214 255 58 / 0.14);
}

.mk-how {
  padding-bottom: var(--s9);
}
.mk-how-grid {
  display: grid;
  gap: var(--s4);
  margin-top: var(--s4);
}
@media (min-width: 820px) {
  .mk-how-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.mk-how-grid > div {
  padding: var(--s5);
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
}
.mk-how-grid p {
  color: var(--muted);
  margin-top: 6px;
  font-size: 0.94rem;
}
.mk-saved-link {
  margin-top: var(--s5);
}
.mk-saved-link a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
}

.mk-add-g {
  margin: var(--s5) 0 var(--s2);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.mk-add-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px var(--s3);
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.mk-add-row label {
  display: grid;
}
.mk-add-row label span {
  font-size: 0.8rem;
  color: var(--ok);
}
.mk-add-row select {
  grid-column: 1 / -1;
}
.mk-item-t b {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
@media (max-width: 560px) {
  .mk-items li {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: 'ico text x' 'ico lvl x';
    row-gap: 6px;
  }
  .mk-items .mk-item-ico {
    grid-area: ico;
    align-self: start;
  }
  .mk-items .mk-item-t {
    grid-area: text;
  }
  .mk-items .level {
    grid-area: lvl;
    justify-self: start;
  }
  .mk-items .mk-x {
    grid-area: x;
  }
}

/* ---------- install the app ---------- */
.foot-install {
  font: inherit;
  color: var(--volt);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.foot-install[hidden] {
  display: none;
}
.install-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s3);
}
.install-steps li {
  display: flex;
  gap: var(--s3);
  align-items: center;
  padding: var(--s4);
  border-radius: var(--r);
  background: var(--paper);
}
.install-steps .icon {
  flex: none;
  width: 22px;
  height: 22px;
}

/* ---------- ways to pay less ---------- */
.k-drop {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin-top: var(--s2);
  font-size: 0.84rem;
  color: var(--ok);
  font-weight: 600;
}
.k-drop .icon {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
}
.k-stop-deliv {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 6px;
  text-align: right;
}
.k-save {
  display: grid;
  gap: var(--s3);
}
.k-save-shop {
  display: grid;
  gap: 6px;
  padding: var(--s4);
  border-radius: var(--r);
  background: var(--paper);
  font-size: 0.94rem;
}
.k-save-note {
  color: var(--muted);
  font-size: 0.84rem;
}
.k-code {
  display: grid;
  gap: 4px;
  padding: var(--s3) var(--s4);
  border: 1.5px dashed var(--ink);
  border-radius: var(--r-sm);
  background: var(--surface);
}
.k-code-c {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.k-code-src {
  color: var(--muted);
  font-size: 0.8rem;
}

/* ================= KIT LIKE THE PROS ================= */
.cl-hero {
  background: var(--night);
  color: var(--on-night);
  position: relative;
  overflow: hidden;
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + var(--s6)) 0 var(--s8);
}
.cl-hero::after {
  content: '';
  position: absolute;
  right: -15%;
  top: -40%;
  width: 60vmax;
  height: 60vmax;
  background: radial-gradient(closest-side, rgb(214 255 58 / 0.12), transparent 70%);
  pointer-events: none;
}
.cl-hero .wrap {
  position: relative;
  z-index: 1;
}
.cl-hero .crumbs,
.cl-hero .crumbs a {
  color: var(--on-night-muted);
}
.cl-hero h1 {
  font-size: clamp(2.6rem, 7.4vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 800;
  font-variation-settings: 'opsz' 96;
  max-width: 13ch;
  margin-top: var(--s3);
}
.cl-hero h1 .hl {
  color: var(--volt);
}
.cl-hero .lede {
  color: var(--on-night-muted);
  margin-top: var(--s4);
}
.cl-hero-grid {
  display: grid;
  gap: var(--s7);
  align-items: end;
}
@media (min-width: 940px) {
  .cl-hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}
.cl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--on-night-muted);
  font-weight: 600;
  font-size: 0.92rem;
  margin-top: var(--s5);
}
.cl-eyebrow .icon {
  width: 18px;
  height: 18px;
  color: var(--volt);
}
.cl-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: var(--s6);
}
.cl-hero-stats {
  display: flex;
  gap: var(--s6);
  margin-top: var(--s5);
  color: var(--on-night-muted);
}
.cl-hero-stats b {
  color: var(--on-night);
  font-family: var(--display);
  font-size: 1.5rem;
  margin-right: 6px;
}
.cl-vs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
}
.cl-tot {
  display: grid;
  gap: 4px;
  align-content: start;
  padding: var(--s5);
  border-radius: var(--r-lg);
  background: var(--night-2);
  border: 1px solid var(--night-line);
}
.cl-tot span {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--on-night-muted);
}
.cl-tot b {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--on-night);
}
.cl-tot small {
  font-size: 0.82rem;
  color: var(--on-night-muted);
}
.cl-tot.is-look {
  background: var(--volt);
  border-color: var(--volt);
}
.cl-tot.is-look span,
.cl-tot.is-look small {
  color: rgb(13 13 11 / 0.7);
}
.cl-tot.is-look b {
  color: var(--ink);
}

.cl-gear {
  padding-top: var(--s6);
  display: grid;
  gap: var(--s4);
}
.cl-pair {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (min-width: 860px) {
  .cl-pair {
    grid-template-columns: 1fr 1fr;
  }
}
.cl-theirs,
.cl-ours {
  background: var(--surface);
  padding: var(--s5);
}
.cl-lab {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s2);
}
.cl-theirs h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.cl-theirs h2 .icon {
  width: 22px;
  height: 22px;
}
.cl-theirs ul {
  list-style: none;
  margin: var(--s3) 0 0;
  padding: 0;
}
.cl-their {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s4);
  padding: var(--s3) 0;
  border-top: 1px solid var(--line);
}
.cl-their p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 2px;
}
.cl-their-p {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 4px;
  text-align: right;
}
.cl-their-p .num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
}
.cl-their-p a {
  font-size: 0.8rem;
  white-space: nowrap;
}
.cl-nosale {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--paper-2);
  padding: 2px 8px;
  border-radius: var(--r-pill);
}
.cl-ours {
  background: linear-gradient(180deg, var(--volt-soft), var(--surface) 60%);
  display: grid;
  grid-template-columns: 120px 1fr;
  grid-template-rows: auto 1fr;
  gap: 0 var(--s4);
  align-items: start;
}
.cl-ours .cl-lab {
  grid-column: 1 / -1;
  color: var(--ink-2);
}
.cl-ours-ph .ph {
  border-radius: var(--r);
}
/* The lookalike's name sits right beside its picture, so the wordmark would only crowd a small tile. */
.cl-ours-ph .ph-words {
  display: none;
}
.cl-ours-t {
  display: grid;
  gap: 6px;
  justify-items: start;
}
.cl-ours-t .k-item-top {
  display: flex;
  gap: var(--s3);
  align-items: center;
}
.cl-ours-t h3 {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.cl-ours-t p {
  color: var(--muted);
  font-size: 0.88rem;
}
.cl-ours-none {
  display: grid;
  place-items: center;
  color: var(--muted);
}
.cl-build {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
  align-items: center;
  justify-content: space-between;
  padding: var(--s5);
  border-radius: var(--r-lg);
  background: var(--night);
  color: var(--on-night);
}
.cl-build div {
  display: grid;
  gap: 4px;
}
.cl-build b {
  font-family: var(--display);
  font-size: 1.3rem;
}
.cl-build span {
  color: var(--on-night-muted);
  font-size: 0.92rem;
}
.cl-build .btn {
  --bg: var(--volt);
  --fg: var(--ink);
}
.cl-notes {
  display: grid;
  gap: var(--s2);
  font-size: 0.86rem;
  color: var(--muted);
  max-width: 80ch;
}
.cl-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.cl-band {
  padding-top: var(--s7);
  padding-bottom: var(--s5);
}
.cl-band-h {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: var(--s4);
  flex-wrap: wrap;
  margin-bottom: var(--s5);
}
.cl-band-h h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  letter-spacing: -0.03em;
}
.cl-band-h p {
  color: var(--muted);
  margin-top: 4px;
}
.cl-cards {
  display: grid;
  gap: var(--s3);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.cl-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s2) var(--s4);
  padding: var(--s5);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t);
}
.cl-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--line-2);
}
.cl-mono {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--night);
  color: var(--volt);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}
.cl-card-t {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.cl-card-h {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.cl-card-h .icon {
  width: 14px;
  height: 14px;
}
.cl-card-t b {
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.cl-card-who {
  font-size: 0.86rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cl-card-vs {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--s2);
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
}
.cl-card-vs .cl-their-t {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}
.cl-card-vs .cl-look-t {
  margin-left: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-2);
}
.cl-card-vs b {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--volt);
  padding: 0 8px;
  border-radius: 8px;
}
.cl-index {
  padding-top: var(--s7);
  padding-bottom: var(--s9);
  display: grid;
  gap: var(--s7);
}
.cl-group h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  margin-bottom: var(--s4);
}
.cl-fine {
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 70ch;
}
.cl-sig {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: var(--r-pill);
  background: var(--paper-2);
  color: var(--ink-2);
  vertical-align: 2px;
}

/* =========================================================
   Friends: kit vs kit (friend-page.js) and the table on My Kit
   ========================================================= */
.fr-hero h1 {
  font-size: clamp(2.6rem, 8vw, 5.4rem);
}
.fr-sides {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: var(--s3);
  align-items: stretch;
  margin-top: var(--s6);
  max-width: 760px;
}
.fr-side {
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: var(--s5);
  border-radius: var(--r-lg);
  background: var(--night-2, #1a1a17);
  border: 1px solid rgb(255 255 255 / 0.08);
}
.fr-side.is-me {
  border-color: rgb(214 255 58 / 0.5);
  box-shadow: 0 0 0 1px rgb(214 255 58 / 0.2), 0 20px 50px -30px rgb(214 255 58 / 0.6);
}
.fr-side-l {
  color: var(--on-night-muted);
  font-weight: 600;
  font-size: 0.9rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fr-lvl {
  font-family: var(--display);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.fr-side.is-me .fr-lvl .num {
  color: var(--volt);
}
.fr-xp {
  color: var(--on-night-muted);
  font-size: 0.88rem;
}
.fr-xp b {
  color: var(--on-night);
}
.fr-sides-x {
  align-self: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--volt);
  color: var(--ink);
}
.fr-sides-x .icon {
  width: 22px;
  height: 22px;
}
.fr-verdict {
  font-family: var(--display);
  font-weight: 700;
  color: var(--on-night) !important;
}
.fr-tally {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--s3);
  color: var(--on-night-muted);
}
.fr-tally .icon {
  width: 18px;
  height: 18px;
  color: var(--volt);
}
@media (max-width: 560px) {
  .fr-sides {
    grid-template-columns: 1fr;
  }
  .fr-sides-x {
    justify-self: center;
    margin: -14px 0;
    position: relative;
    z-index: 1;
  }
}
.fr-rows {
  display: grid;
  gap: var(--s4);
}
@media (min-width: 820px) {
  .fr-rows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.fr-row {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  align-items: flex-start;
  padding: var(--s5);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.fr-row header {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: var(--s3);
}
.fr-row h3 {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}
.fr-lead {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--paper);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}
.fr-lead.is-me {
  background: var(--volt);
}
.fr-lead .icon {
  width: 14px;
  height: 14px;
}
.fr-vs {
  display: flex;
  align-items: center;
  gap: var(--s5);
}
.fr-vs > div {
  display: grid;
  justify-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}
.fr-vs-x {
  font-family: var(--display);
  font-weight: 800;
  color: var(--muted);
}
.fr-ring {
  position: relative;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
}
.fr-ring .mk-ring {
  position: absolute;
  inset: 0;
}
.fr-ring .mk-ring-bg {
  stroke: var(--paper-2);
}
.fr-ring .mk-ring-fg {
  stroke: var(--ink);
  filter: none;
}
.fr-vs > div:last-child .fr-ring .mk-ring-fg {
  stroke: #9ccc00;
}
.fr-ring b {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
}
.fr-ring.is-none {
  border-radius: 50%;
  border: 6px solid var(--paper-2);
}
.fr-ideas {
  width: 100%;
}
.fr-ideas p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.fr-ideas ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}
.fr-ideas li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s3);
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--paper);
}
.fr-ideas li > span:first-child {
  display: grid;
  min-width: 0;
}
.fr-ideas li b {
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fr-ideas li span span {
  font-size: 0.8rem;
  color: var(--muted);
}
.fr-fine {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--s5);
  color: var(--muted);
  font-size: 0.86rem;
}
.fr-fine .icon {
  width: 16px;
  height: 16px;
  flex: none;
}
/* The table on My Kit */
.fr-board {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.fr-board li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto auto;
  gap: var(--s3);
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.fr-board li.is-me {
  border-color: var(--ink);
  box-shadow: inset 4px 0 0 var(--volt);
}
.fr-pos {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper);
  font-weight: 800;
  font-family: var(--display);
}
.fr-board li:first-child .fr-pos {
  background: var(--volt);
}
.fr-pos .icon {
  width: 16px;
  height: 16px;
}
.fr-who {
  display: grid;
  min-width: 0;
}
.fr-who b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fr-who span {
  font-size: 0.82rem;
  color: var(--muted);
}
.fr-pts {
  font-size: 0.88rem;
  color: var(--muted);
  white-space: nowrap;
}
.fr-pts b {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--ink);
}
.fr-act {
  display: flex;
  align-items: center;
  gap: 4px;
}
@media (max-width: 520px) {
  .fr-board li {
    grid-template-columns: 32px minmax(0, 1fr) auto;
  }
  .fr-act {
    grid-column: 2 / -1;
  }
}
.fr-empty {
  display: flex;
  gap: var(--s4);
  align-items: flex-start;
  padding: var(--s5);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px dashed var(--line-2, #cfccc2);
}
.fr-empty > .icon {
  width: 28px;
  height: 28px;
  flex: none;
}
.fr-empty p {
  color: var(--muted);
  margin-top: 4px;
}
.fr-how {
  list-style: none;
  margin: var(--s4) 0 0;
  padding: 0;
  display: grid;
  gap: var(--s3);
}
.fr-how li {
  display: flex;
  gap: var(--s3);
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.fr-how .icon {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
}
.fr-foot {
  display: grid;
  gap: 8px;
}

/* =========================================================
   Gift guides (scripts/gift-pages.mjs)
   ========================================================= */
.gf-hero {
  background: var(--night);
  color: var(--on-night);
  position: relative;
  overflow: hidden;
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + var(--s6)) 0 var(--s8);
}
.gf-hero::after {
  content: '';
  position: absolute;
  left: -20%;
  bottom: -60%;
  width: 70vmax;
  height: 70vmax;
  background: radial-gradient(closest-side, rgb(255 143 177 / 0.12), transparent 70%);
  pointer-events: none;
}
.gf-hero .wrap {
  position: relative;
  z-index: 1;
}
.gf-hero .crumbs,
.gf-hero .crumbs a {
  color: var(--on-night-muted);
}
.gf-hero h1 {
  font-size: clamp(2.6rem, 7.4vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 800;
  margin-top: var(--s3);
}
.gf-hero h1 .hl {
  color: var(--volt);
}
.gf-hero .lede {
  color: var(--on-night-muted);
  margin-top: var(--s4);
  max-width: 60ch;
}
.gf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--s5);
  padding: 6px 14px 6px 10px;
  border-radius: var(--r-pill);
  background: rgb(255 255 255 / 0.08);
  color: var(--on-night);
  font-weight: 600;
  font-size: 0.9rem;
}
.gf-eyebrow .icon {
  width: 16px;
  height: 16px;
  color: var(--volt);
}
.gf-hero-grid {
  display: grid;
  gap: var(--s6);
  align-items: center;
}
@media (min-width: 900px) {
  .gf-hero-grid {
    grid-template-columns: 1.4fr 0.6fr;
  }
}
.gf-hero-art {
  justify-self: center;
  width: min(300px, 60vw);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(120% 95% at 30% 20%, #fbfff0, #e8f6bd);
  box-shadow: 0 40px 80px -40px rgb(214 255 58 / 0.5);
}
.gf-hero-art img {
  width: 72%;
  height: 72%;
  transform: rotate(-8deg);
  animation: gf-float 6s ease-in-out infinite;
}
@keyframes gf-float {
  50% {
    transform: rotate(-3deg) translateY(-6px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .gf-hero-art img {
    animation: none;
  }
}
@media (max-width: 899.98px) {
  .gf-hero-art {
    display: none;
  }
}
.gf-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--s5);
}
.gf-jump a {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 1px solid rgb(255 255 255 / 0.18);
  color: var(--on-night);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.gf-jump a:hover {
  background: var(--volt);
  border-color: var(--volt);
  color: var(--ink);
}
.gf-body,
.gf-index {
  padding-top: var(--s6);
  padding-bottom: var(--s7);
  display: grid;
  gap: var(--s6);
}
.gf-band {
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.gf-band h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  letter-spacing: -0.03em;
  margin-bottom: var(--s4);
}
.gf-cards {
  display: grid;
  gap: var(--s4);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
.gf-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease);
}
.gf-card:hover {
  box-shadow: 0 24px 50px -30px rgb(13 13 11 / 0.35);
  transform: translateY(-2px);
}
.gf-card:hover .ph-drawn {
  transform: translateY(-8%) rotate(-3deg) scale(1.03);
}
.gf-ph .ph {
  border-radius: 0;
}
.gf-t {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: var(--s4);
  flex: 1;
}
.gf-t .k-item-top {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
}
.gf-slot {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}
.gf-t h3 {
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.gf-t p {
  font-size: 0.9rem;
  color: var(--ink-2);
  flex: 1;
}
.gf-t .k-buy {
  margin-top: var(--s2);
}
.gf-help {
  display: flex;
  gap: var(--s4);
  align-items: flex-start;
  padding: var(--s5);
  border-radius: var(--r-lg);
  background: var(--volt-soft, #f3ffd0);
  border: 1px solid rgb(13 13 11 / 0.08);
}
.gf-help > .icon {
  width: 28px;
  height: 28px;
  flex: none;
}
.gf-help p {
  margin: 4px 0 var(--s3);
  color: var(--ink-2);
}
.gf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gf-chips a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 12px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 600;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
}
.gf-chips a:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-night);
}
.gf-chips .icon {
  width: 18px;
  height: 18px;
}
.gf-chips span {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--muted);
}
.gf-chips a:hover span {
  color: var(--on-night-muted);
}
.gf-more {
  padding-bottom: var(--s6);
}
.gf-more h2 {
  font-size: 1.4rem;
  margin-bottom: var(--s4);
}
.gf-home {
  padding-top: var(--s8);
}
.q-note {
  margin: 6px 0 0 2px;
  font-size: 0.84rem;
  color: var(--muted);
}
/* Home hero: a flat-lay of kit drawings */
.hero-art {
  display: flex;
  gap: 10px;
  margin-top: var(--s6);
  overflow-x: auto;
  padding: 8px 2px 14px;
  scrollbar-width: none;
}
/* While the row has more to scroll, fade the cut-off drawing instead of slicing it (home.js sets .more). */
.hero-art.more {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
}
.hero-art::-webkit-scrollbar {
  display: none;
}
.hero-art-i {
  flex: none;
  width: 76px;
  height: 76px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: radial-gradient(120% 95% at 30% 20%, var(--tint-a), var(--tint-b));
  transform: rotate(calc((var(--k) - 3) * 2.5deg));
  transition: transform var(--t-slow) var(--ease), box-shadow var(--t) var(--ease);
  animation: hero-bob 5s ease-in-out infinite;
  animation-delay: calc(var(--k) * -0.6s);
}
.hero-art-i img {
  width: 82%;
  height: 82%;
}
.hero-art-i:hover {
  transform: rotate(0deg) translateY(-6px) scale(1.08);
  box-shadow: 0 18px 30px -16px rgb(214 255 58 / 0.6);
  animation-play-state: paused;
}
@keyframes hero-bob {
  50% {
    translate: 0 -5px;
  }
}
@media (min-width: 900px) {
  .hero-art-i {
    width: 88px;
    height: 88px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art-i {
    animation: none;
  }
}
/* Guide pages: the hobby's main kit drawing beside the headline */
.guide-hero-grid {
  display: grid;
  gap: var(--s6);
  align-items: center;
}
.guide-hero-art {
  order: -1;
  display: grid;
  place-items: center;
  width: 92px;
  aspect-ratio: 1;
  margin-bottom: calc(-1 * var(--s3));
  border-radius: 36% 64% 58% 42% / 44% 40% 60% 56%;
  background: radial-gradient(120% 95% at 30% 20%, var(--tint-a), var(--tint-b));
}
.guide-hero-art img {
  width: 76%;
  height: 76%;
  transform: rotate(-6deg);
}
@media (min-width: 760px) {
  .guide-hero-art {
    order: 0;
    margin-bottom: 0;
  }
  .guide-hero-grid {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .guide-hero-art {
    display: grid;
    place-items: center;
    width: clamp(180px, 24vw, 280px);
    aspect-ratio: 1;
    border-radius: 36% 64% 58% 42% / 44% 40% 60% 56%;
    background: radial-gradient(120% 95% at 30% 20%, var(--tint-a), var(--tint-b));
  }
  .guide-hero-art img {
    width: 74%;
    height: 74%;
    transform: rotate(-6deg);
  }
}
.ico.ico-art {
  background: radial-gradient(120% 95% at 30% 20%, var(--tint-a), var(--tint-b));
  overflow: hidden;
}
.ico.ico-art img {
  width: 86%;
  height: 86%;
  transform: rotate(-6deg);
}
.gf-slot .gf-fit {
  color: var(--ink);
  font-weight: 800;
}
/* My Kit and Saved: product drawings in the small icon squares. */
.mk-art {
  background: radial-gradient(120% 95% at 30% 20%, var(--tint-a), var(--tint-b));
  overflow: hidden;
}
.mk-art img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}
.mk-card-ico.mk-art {
  width: 56px;
  height: 56px;
  border-radius: 16px;
}
.mk-next-ico.mk-art {
  box-shadow: inset 0 0 0 1.5px rgb(13 13 11 / 0.08);
}
.mk-item-ico.mk-art {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}
.cmp-art {
  display: block;
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  border-radius: 12px;
  background: radial-gradient(120% 95% at 30% 20%, var(--tint-a), var(--tint-b));
  overflow: hidden;
}
.cmp-art img {
  width: 100%;
  height: 100%;
  padding: 4px;
}
/* Pro kit cards: the person's main item, drawn, with their initials as a badge. */
.cl-ava {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: radial-gradient(120% 95% at 30% 20%, var(--tint-a), var(--tint-b));
  transform: rotate(-3deg);
  transition: transform var(--t-slow) var(--ease);
}
.cl-ava img {
  width: 84%;
  height: 84%;
}
.cl-ava .cl-mono {
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 30px;
  height: 30px;
  font-size: 0.72rem;
  border: 2px solid var(--surface);
  transform: rotate(3deg);
}
.cl-card:hover .cl-ava {
  transform: rotate(0deg) scale(1.05);
}
/* Pro kit page: their main item, drawn, above the headline. */
.cl-hero-art {
  display: grid;
  place-items: center;
  width: 96px;
  aspect-ratio: 1;
  margin: var(--s4) 0 var(--s3);
  border-radius: 36% 64% 58% 42% / 44% 40% 60% 56%;
  background: radial-gradient(120% 95% at 30% 20%, var(--tint-a), var(--tint-b));
  box-shadow: 0 30px 60px -36px rgb(214 255 58 / 0.55);
}
.cl-hero-art img {
  width: 76%;
  height: 76%;
  transform: rotate(-8deg);
}
@media (min-width: 760px) {
  .cl-hero-art {
    width: 132px;
  }
}
/* Guide pages: each "what you need" line with its drawing. */
.prose .need-list {
  list-style: none;
  padding-left: 0;
  gap: var(--s3);
}
.prose .need-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s4);
  align-items: start;
}
.prose .need-list li:not(.has-art) {
  grid-template-columns: 1fr;
}
.need-art {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: radial-gradient(120% 95% at 30% 20%, var(--tint-a), var(--tint-b));
}
.need-art img {
  width: 84%;
  height: 84%;
  transform: rotate(-5deg);
}
.prose .need-list li > span {
  padding-top: 4px;
}
@media (max-width: 560px) {
  .need-art {
    width: 46px;
    height: 46px;
    border-radius: 13px;
  }
}

/* Printing: a clean list on white paper (a kit page prints as a shopping list). */
@media print {
  @page {
    margin: 14mm;
  }
  html,
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .site-header,
  .site-footer,
  .skip,
  .k-dock,
  .toast,
  .install-btn,
  .header-cta,
  .hero-art,
  button:not(.k-row-open):not(.k-item-ph),
  .btn:not(.k-buy),
  .k-tabs-wrap,
  .k-tabs,
  .k-tiers,
  .mk-cta,
  .cl-cta,
  .gf-help,
  .fr-fine {
    display: none !important;
  }
  .on-night,
  .band,
  .hero {
    background: #fff !important;
    color: #000 !important;
  }
  .on-night *,
  .hero * {
    color: #000 !important;
  }
  .rise,
  [class*='rise'] {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  *,
  *::before,
  *::after {
    box-shadow: none !important;
    animation: none !important;
    transition: none !important;
  }
  article,
  li,
  tr,
  .k-item,
  .gf-card,
  .cl-pair,
  .mk-card {
    break-inside: avoid;
  }
  a {
    color: #000 !important;
  }
  /* The shop name is worth keeping on paper: show buy buttons as plain text. */
  .btn.k-buy {
    display: inline !important;
    background: none !important;
    border: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    font-weight: 700;
  }
  .btn.k-buy::before {
    content: 'From ';
    font-weight: 400;
  }
  .k-hero-ph .ph,
  .k-hero-ph {
    max-height: 150px;
    aspect-ratio: auto !important;
  }
  .ph img.ph-drawn {
    max-height: 120px;
  }
}
/* Home: pick up the last kit you worked on. */
.resume {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: calc(-1 * var(--s2)) 0 var(--s5);
  padding: 10px 14px 10px 10px;
  border-radius: var(--r);
  background: var(--paper-2);
  color: var(--ink);
  text-decoration: none;
  transition: background var(--t) var(--ease), transform var(--t) var(--ease);
}
.resume:hover {
  background: var(--volt);
}
.resume[hidden] {
  display: none;
}
.resume .ico {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.resume-t {
  display: grid;
  min-width: 0;
  flex: 1;
}
.resume-t b {
  font-size: 0.95rem;
}
.resume-t span {
  font-size: 0.84rem;
  color: var(--muted);
}

/* ---------- product page (sheet) ---------- */
button.k-hero-ph {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: none;
  cursor: zoom-in;
  text-align: inherit;
}
.k-name-btn {
  all: unset;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s;
}
.k-name-btn:hover { text-decoration-color: currentColor; }
.k-name-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.sheet-pd .sheet-head h2 { font-size: 1rem; color: var(--muted); font-weight: 650; }
.pd { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
.pd > * { min-width: 0; }
.pd-gal {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  scrollbar-width: none;
}
.pd-gal::-webkit-scrollbar { display: none; }
.pd-gal img {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  scroll-snap-align: center;
  padding: var(--s4);
}
.pd-dots { display: flex; justify-content: center; gap: 6px; margin-top: calc(-1 * var(--s3)); }
.pd-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line-2); transition: width 0.2s, background 0.2s; }
.pd-dots i.on { width: 18px; background: var(--ink); }
.pd-art .ph { border-radius: 18px; aspect-ratio: 16 / 10; max-height: 300px; width: 100%; }
.pd-art .ph img.ph-drawn { height: 78%; max-width: 46%; }
.pd-art-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: var(--s2) 2px 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}
.pd-art-note .icon { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.pd-art-note a { color: var(--ink); font-weight: 650; }
.pd-head { display: grid; gap: 8px; }
.pd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.pd-in { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); }
.pd-in .icon { width: 14px; height: 14px; }
.pd-name { font-size: clamp(1.35rem, 4.6vw, 1.7rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
.pd-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pd-price b { font-size: 1.6rem; letter-spacing: -0.02em; }
.pd-price span { color: var(--muted); font-size: 0.92rem; }
.pd-short { margin: 0; color: var(--ink-2); line-height: 1.5; }
.pd-sec h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 var(--s3); }
.pd-muted { color: var(--muted); font-size: 0.88rem; margin: calc(-1 * var(--s2)) 0 var(--s3); }
.pd-specs { margin: 0; display: grid; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.pd-specs div { display: grid; grid-template-columns: minmax(96px, 34%) 1fr; gap: var(--s3); padding: 11px 14px; }
.pd-specs div + div { border-top: 1px solid var(--line); }
.pd-specs dt { color: var(--muted); font-size: 0.88rem; }
.pd-specs dd { margin: 0; font-weight: 600; font-size: 0.92rem; }
.pd-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pd-notes li { display: flex; gap: 8px; align-items: flex-start; font-size: 0.92rem; line-height: 1.45; }
.pd-notes .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--ok); }
.pd-parts { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; }
.pd-parts li { display: grid; grid-template-columns: 1fr auto; gap: 2px var(--s3); padding: 11px 14px; align-items: center; }
.pd-parts li + li { border-top: 1px solid var(--line); }
.pd-parts li > div { display: grid; gap: 2px; min-width: 0; }
.pd-parts li > div span { font-size: 0.82rem; color: var(--muted); }
.pd-parts .num { font-weight: 700; }
.pd-part-shop { grid-column: 1 / -1; font-size: 0.82rem; color: var(--ink); font-weight: 600; }
.pd-alts {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 46%);
  gap: var(--s3);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 6px;
  margin: 0 calc(-1 * var(--s5));
  padding-inline: var(--s5);
  scroll-padding-inline: var(--s5);
}
@media (min-width: 720px) { .pd-alts { grid-auto-columns: minmax(170px, 30%); } }
.pd-alt {
  display: grid;
  align-content: start;
  gap: 6px;
  text-align: left;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  cursor: pointer;
  scroll-snap-align: start;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pd-alt:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); }
.pd-alt[aria-current='true'] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pd-alt .ph { width: 100%; height: auto; aspect-ratio: 1; border-radius: 10px; }
.pd-alt .ph-words, .pd-alt .ph-tag { display: none; }
.pd-alt b { font-size: 0.86rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pd-alt-p { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-weight: 700; font-size: 0.92rem; }
.pd-alt-p em { font-style: normal; font-size: 0.78rem; font-weight: 650; color: var(--muted); }
.pd-alt-p em.up { color: var(--ink-2); }
.pd-alt-p em.down { color: var(--ok); }
.pd-ad { margin: 0; }
.pd-foot { display: flex; gap: var(--s2); }
.pd-foot .btn { flex: 1; justify-content: center; }
.pd-foot .pd-buy { flex: 2; }

/* ---------- basket run ---------- */
.run-steps { list-style: none; margin: 0 0 var(--s4); padding: 0; display: grid; gap: var(--s2); }
.run-steps li {
  display: grid;
  grid-template-columns: 26px 48px 1fr auto;
  align-items: center;
  gap: var(--s3);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: border-color 0.2s, background 0.2s;
}
.run-steps li.is-next { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.run-steps li.is-open { background: var(--paper); }
.run-n {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--paper-2);
  font-weight: 750;
  font-size: 0.82rem;
}
.is-next .run-n { background: var(--volt); }
.is-open .run-n { background: var(--ok); color: #fff; }
.run-n .icon { width: 14px; height: 14px; }
.run-steps .ph { width: 48px; height: 48px; border-radius: 10px; }
.run-steps .ph-words, .run-steps .ph-tag { display: none; }
.run-steps .ph img.ph-drawn { height: 88%; max-width: 88%; transform: none; }
.run-t { display: grid; gap: 2px; min-width: 0; }
.run-t b { font-size: 0.9rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.run-t span { font-size: 0.8rem; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.run-t .icon { width: 13px; height: 13px; }
.run-steps .num { font-weight: 700; font-size: 0.92rem; }
.run-again { font-weight: 650; color: var(--ink); }
.run-how { display: flex; gap: 8px; font-size: 0.86rem; color: var(--muted); line-height: 1.45; margin: 0 0 var(--s4); }
.run-how .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.run-foot { display: grid; gap: var(--s2); }
.run-bar { height: 5px; border-radius: 3px; background: var(--paper-2); overflow: hidden; }
.run-bar b { display: block; height: 100%; background: var(--ok); border-radius: 3px; transition: width 0.4s; }
.run-go { flex-direction: column; gap: 2px; padding-block: 12px; }
.run-go small { font-weight: 550; font-size: 0.8rem; opacity: 0.75; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.run-done { justify-content: center; }

/* ---------- My Kit: tabs, ranks, tables, pros, saved ---------- */
.mk-tabs {
  position: sticky;
  top: var(--header-h, 60px);
  z-index: 6;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.mk-tabs-in { display: flex; gap: var(--s5); overflow-x: auto; scrollbar-width: none; }
.mk-tabs-in::-webkit-scrollbar { display: none; }
.mk-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 16px 0 14px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1px;
}
.mk-tabs a[aria-selected='true'] { color: var(--ink); border-color: var(--ink); }
.mk-tabs a span { font-size: 0.75rem; padding: 1px 7px; border-radius: var(--r-pill); background: var(--paper-2); color: var(--ink-2); }
.mk-tabs a[aria-selected='true'] span { background: var(--volt); }
.mk-pane { padding-bottom: var(--s8); min-height: 70vh; }
.mk-sec-sub { color: var(--muted); margin: calc(-1 * var(--s4)) 0 var(--s5); }
.mk-sec-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 650; color: var(--ink); }

.mk-rank {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 6px 10px;
  margin-top: var(--s4);
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--paper);
}
.mk-rank-n { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 0.95rem; letter-spacing: -0.01em; }
.mk-rank-n .icon { width: 16px; height: 16px; }
.mk-rank-ladder { display: flex; gap: 3px; justify-self: end; }
.mk-rank-ladder i { width: 14px; height: 6px; border-radius: 3px; background: var(--line-2); }
.mk-rank-ladder i.on { background: var(--ink); }
.mk-rank-t { grid-column: 1 / -1; font-size: 0.82rem; color: var(--muted); }
.mk-rank[data-rank='serious'] .mk-rank-ladder i.on,
.mk-rank[data-rank='expert'] .mk-rank-ladder i.on { background: var(--ok); }
.mk-rank[data-rank='elite'] { background: var(--ink); color: var(--paper); }
.mk-rank[data-rank='elite'] .mk-rank-ladder i.on { background: var(--volt); }
.mk-rank[data-rank='elite'] .mk-rank-t { color: #b9b8ae; }

.mk-tables { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.mk-table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s4); }
.mk-table header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s3); margin-bottom: var(--s3); }
.mk-table header .mk-card-ico { width: 38px; height: 38px; }
.mk-table header span { color: var(--muted); font-size: 0.86rem; font-weight: 650; }
.mk-table ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mk-table li { display: grid; grid-template-columns: 18px minmax(0, 7rem) 1fr 28px; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; font-size: 0.9rem; }
.mk-table li.is-me { background: var(--volt-soft); }
.mk-table li b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-table li i { height: 8px; border-radius: 4px; background: var(--paper-2); overflow: hidden; }
.mk-table li i em { display: block; height: 100%; background: var(--ink); border-radius: 4px; }
.mk-table li > .num:last-child { text-align: right; font-weight: 750; }
.mk-table li > .num:first-child { color: var(--muted); font-weight: 700; }

.mk-pros { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.mk-pro {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s3);
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.mk-pro:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); }
.mk-pro-av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--volt); font-weight: 800; letter-spacing: 0.02em; }
.mk-pro-t { display: grid; gap: 2px; min-width: 0; }
.mk-pro-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-pro-t span { font-size: 0.82rem; color: var(--muted); }
.mk-pro-p { display: grid; justify-items: end; gap: 1px; }
.mk-pro-p > span { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.mk-pro-p > span b { color: var(--ink-2); font-weight: 650; }
.mk-pro-p > .is-ours b { color: var(--ink); font-weight: 800; font-size: 0.95rem; }

.mk-saved { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.mk-save { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: var(--s3); padding: 12px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.mk-save .ico { width: 44px; height: 44px; }
.mk-save-t { display: grid; gap: 2px; min-width: 0; }
.mk-save-t > span { font-size: 0.84rem; color: var(--muted); }
.mk-save-t > span b { color: var(--ink); }
.fr-empty .btn { margin-top: var(--s3); }

/* My Kit on phones: the score ring sits beside the level, so the tabs come into view sooner. */
@media (max-width: 899.98px) {
  .mk-hero { padding-bottom: var(--s6); }
  .mk-hero-grid { display: block; }
  .mk-hero-grid > .mk-score:not(.mk-score-empty) {
    position: absolute;
    top: -6px;
    right: 0;
    width: 118px;
  }
  .mk-hero-grid > .mk-score:not(.mk-score-empty) .mk-score-n b { font-size: 2.3rem; }
  .mk-hero-grid > .mk-score:not(.mk-score-empty) .mk-score-n span { font-size: 0.62rem; margin-top: 2px; max-width: 76px; line-height: 1.2; }
  .mk-hero-grid > .mk-score-empty { margin-top: var(--s6); width: min(220px, 60vw); }
  .mk-cta { margin-top: var(--s5); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--s4)); padding-inline: var(--s4); }
  .mk-cta::-webkit-scrollbar { display: none; }
  .mk-cta .btn { flex: none; padding-inline: 16px; min-height: 44px; }
}
