/* =========================================================================
   Kraken Grip — Build Your Own Grip Kit (prototype styles)
   Mobile-first. Desktop two-column layout kicks in at 900px.
   ========================================================================= */
:root {
  --ink: #0e0e10;
  --ink-2: #4a4a55;
  --paper: #ffffff;
  --bg: #f4f2ee;
  --line: #e2ded6;
  --accent: #ff2e88;
  --accent-2: #00b7ff;
  --cta: #ffd400;
  --good: #14b86a;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 10px 30px rgba(14, 14, 16, .10);
  --shadow-lg: 0 18px 50px rgba(14, 14, 16, .18);
  --focus: 0 0 0 4px #fff, 0 0 0 8px var(--accent-2);
  --display: 'Anton', 'Impact', 'Arial Black', sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --actionbar-h: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--bg);
}
body.has-actionbar { padding-bottom: calc(var(--actionbar-h) + env(safe-area-inset-bottom)); }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--cta); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 900;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: none; box-shadow: var(--focus); }
.step__title:focus { outline: none; box-shadow: none; }

/* ---------- Header + progress ---------- */
.topbar { background: var(--ink); color: #fff; }
.topbar__inner {
  max-width: 1280px; margin: 0 auto; padding: 14px 16px 6px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand__logo { font-family: var(--display); font-size: 28px; letter-spacing: 1px; }
.brand__logo span { color: var(--accent); margin-left: 6px; }
.brand__tag { font-size: 13px; text-transform: uppercase; letter-spacing: 2px; opacity: .75; margin-top: 4px; }
.proto-pill {
  font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 1.5px;
  border: 2px dashed var(--cta); color: var(--cta); padding: 4px 10px; border-radius: 999px;
}

.progress { max-width: 1280px; margin: 0 auto; padding: 8px 12px 14px; }
.progress__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.progress__item { position: relative; }
.progress__btn {
  width: 100%; display: flex; align-items: center; gap: 8px; justify-content: center;
  min-height: 48px; padding: 6px 10px; border-radius: 999px; border: 2px solid rgba(255,255,255,.18);
  background: transparent; color: rgba(255,255,255,.7); cursor: pointer; font-weight: 800; font-size: 14px;
  transition: background .2s, color .2s, border-color .2s;
}
.progress__btn:disabled { cursor: not-allowed; opacity: .45; }
.progress__num {
  flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.14); font-weight: 900; font-size: 14px;
}
.progress__label small { font-weight: 700; opacity: .8; }
.is-current .progress__btn { background: #fff; color: var(--ink); border-color: #fff; }
.is-current .progress__num { background: var(--accent); color: #fff; }
.is-done .progress__btn { color: #fff; border-color: var(--good); }
.is-done .progress__num { background: var(--good); color: #fff; }
.is-skipped .progress__btn { border-style: dashed; }
@media (max-width: 520px) {
  .progress__label small { display: none; }
  .progress__btn { font-size: 13px; padding: 6px; gap: 6px; }
}

/* ---------- Layout ---------- */
.app { max-width: 1280px; margin: 0 auto; padding: 18px 16px 32px; }
.step__intro { margin-bottom: 18px; }
.step__title {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(34px, 7vw, 56px); line-height: 1; letter-spacing: .5px;
}
.step__lead { margin: 8px 0 0; font-size: 19px; color: var(--ink-2); }

.builder { display: block; }
.app[data-step="start"] .builder { display: none; }

/* ---------- Step 1: kit cards ---------- */
.kit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 1100px) { .kit-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
@media (max-width: 380px) { .kit-grid { grid-template-columns: 1fr; } }

.kit-card {
  --kit-accent: var(--ink);
  display: flex; flex-direction: column; text-align: left;
  background: var(--paper); border: 4px solid transparent; border-radius: var(--radius);
  padding: 0; overflow: hidden; cursor: pointer; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.kit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--kit-accent); }
.kit-card:active { transform: translateY(-1px) scale(.99); }
.kit-card__media {
  display: block; aspect-ratio: 1 / 1; background: #fff; position: relative;
  border-bottom: 6px solid var(--kit-accent);
}
.kit-card__media > img { width: 100%; height: 100%; object-fit: cover; }
.kit-card__media > .preview-stage {
  position: absolute; left: 0; top: 50%; translate: 0 -50%;
  width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 0; box-shadow: none; background: none;
}
.kit-card__media:has(> .preview-stage) { background: radial-gradient(circle at 30% 20%, #fff, #e9edf2 75%); }
.kit-card__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 16px; flex: 1; }
.kit-card__title { font-family: var(--display); text-transform: uppercase; font-size: clamp(22px, 4.5vw, 30px); line-height: 1.05; }
.kit-card__meta { font-size: 14px; color: var(--ink-2); }
.kit-card__price { font-size: 15px; color: var(--ink-2); }
.kit-card__price strong { font-size: 24px; color: var(--ink); font-weight: 900; }
.kit-card__cta {
  margin-top: auto; padding-top: 10px; font-weight: 900; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--ink); color: #fff; border-radius: 999px; min-height: 48px;
}
.kit-card:hover .kit-card__cta { background: var(--kit-accent); color: #fff; }
.kit-card--custom {
  border: 4px solid transparent;
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box,
    linear-gradient(135deg, #ff4fa8, #8fd3ff, #7ee8c8, #e8b923) border-box;
}
.kit-card--custom .kit-card__media { border-bottom: 6px dashed var(--accent); }
.kit-card--custom .kit-card__cta { background: var(--accent); }
.kit-card--custom:hover { border-color: transparent; }

/* ---------- Preview stage (layered) ---------- */
.preview-panel { margin: 0 -16px 18px; padding: 10px 16px; background: var(--bg); }
.app[data-step="customize"] .preview-panel {
  position: sticky; top: 0; z-index: 30;
  box-shadow: 0 8px 16px -10px rgba(0,0,0,.25);
}
.preview-stage {
  position: relative; display: block;
  width: min(100%, calc(36vh * 4 / 3)); margin-inline: auto;
  aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  background:
    radial-gradient(ellipse 60% 18% at 50% 88%, rgba(0,0,0,.14), transparent 70%),
    radial-gradient(circle at 30% 20%, #fff, #e9edf2 75%);
  border: 3px solid #fff; box-shadow: var(--shadow);
}
.app[data-step="review"] .preview-stage { width: min(100%, calc(48vh * 4 / 3)); }

.layer {
  position: absolute; height: auto; max-width: none;
  opacity: 0; transition: opacity .3s ease;
  pointer-events: none; user-select: none;
  filter: drop-shadow(0 8px 10px rgba(0,0,0,.2));
}
.layer.is-current { opacity: 1; }
.layer.is-pop { animation: layer-pop .38s ease; }
@keyframes layer-pop { 0% { scale: .94; } 60% { scale: 1.03; } 100% { scale: 1; } }

.layer--bag     { z-index: 1; }
.layer--spray   { z-index: 2; }
.layer--case    { z-index: 3; }
.layer--stick   { z-index: 4; }
.layer--scraper { z-index: 5; }
.layer--rosin   { z-index: 6; }

.placeholder-badge, .item-count {
  position: absolute; z-index: 10; top: 10px;
  font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px;
  padding: 4px 9px; border-radius: 999px;
}
.placeholder-badge { left: 10px; background: rgba(0,0,0,.75); color: var(--cta); border: 2px dashed var(--cta); }
.item-count { right: 10px; background: var(--ink); color: #fff; }

/* ---------- Step 2: choices ---------- */
.choice {
  background: var(--paper); border-radius: var(--radius); padding: 18px 16px 20px;
  margin-bottom: 16px; box-shadow: var(--shadow);
}
.choice__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.choice__num {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: #fff; display: grid; place-items: center;
  font-family: var(--display); font-size: 24px;
}
.choice__head > div { flex: 1; min-width: 0; }
.choice__title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 26px; line-height: 1.05; }
.choice__hint { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }
.choice__value {
  display: inline-block; font-family: var(--body); font-style: normal; font-weight: 900; font-size: 14px;
  text-transform: none; vertical-align: middle; margin-left: 6px;
  background: #f1eee8; padding: 2px 10px; border-radius: 999px;
}
.choice__thumb { flex: none; width: 72px; height: 54px; object-fit: contain; }
.choice__sub {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 17px; font-weight: 900; margin: 16px 0 10px;
}
.choice__sub > span {
  width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 14px;
}
.choice__sub .choice__value { margin-left: 0; }

.swatch-row {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px;
}
.swatch {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: none; border: 0; padding: 6px 2px; border-radius: var(--radius-sm); cursor: pointer;
  min-height: 48px;
}
.swatch__chip {
  position: relative; width: 66px; height: 66px; border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.12), 0 4px 10px rgba(0,0,0,.12);
  outline: 4px solid transparent; outline-offset: 3px;
  transition: transform .15s ease, outline-color .15s ease;
}
.swatch:hover .swatch__chip { transform: scale(1.06); }
.swatch__check {
  position: absolute; right: -8px; top: -8px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 16px; font-weight: 900;
  border: 3px solid #fff; transform: scale(0); transition: transform .18s cubic-bezier(.3, 1.6, .5, 1);
}
.swatch__name { font-size: 13px; font-weight: 800; text-align: center; line-height: 1.15; color: var(--ink-2); }
.swatch[aria-pressed="true"] .swatch__chip { outline-color: var(--ink); }
.swatch[aria-pressed="true"] .swatch__check { transform: scale(1); }
.swatch[aria-pressed="true"] .swatch__name { color: var(--ink); font-weight: 900; }

.type-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.type-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  background: #f7f5f1; border: 4px solid transparent; border-radius: var(--radius-sm);
  padding: 14px 10px 14px; cursor: pointer; min-height: 48px;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.type-card:hover { transform: translateY(-2px); }
.type-card__img { width: 100%; height: 64px; object-fit: contain; rotate: -6deg; margin-bottom: 4px; }
.type-card__name { font-family: var(--display); text-transform: uppercase; font-size: 24px; line-height: 1; }
.type-card__blurb { font-size: 13px; color: var(--ink-2); }
.type-card__check {
  position: absolute; z-index: 2; right: 8px; top: 8px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 900;
  transform: scale(0); transition: transform .18s cubic-bezier(.3, 1.6, .5, 1);
}
.type-card[aria-pressed="true"] { border-color: var(--ink); background: #fff; box-shadow: var(--shadow); }
.type-card[aria-pressed="true"] .type-card__check { transform: scale(1); }

.included { margin-top: 8px; }
.included__title { font-size: 15px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--ink-2); margin-bottom: 10px; }
.included__list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: flex; align-items: center; gap: 10px; background: var(--paper);
  border-radius: 999px; padding: 6px 16px 6px 6px; box-shadow: var(--shadow);
}
.chip img { width: 52px; height: 40px; object-fit: contain; background: #f1eee8; border-radius: 999px; padding: 4px; }
.chip__name { font-weight: 900; }
.chip__status { font-size: 13px; font-weight: 900; color: var(--good); }
.chip--soon { opacity: .6; box-shadow: none; border: 2px dashed var(--line); }
.chip--soon .chip__status { color: var(--ink-2); }

/* ---------- Step 3: review ---------- */
.kit-type-pill {
  display: inline-block; margin: 10px 0 0; padding: 6px 14px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 900; font-size: 15px;
}
.kit-type-pill.is-custom { background: var(--accent); }
.summary-card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.summary { list-style: none; margin: 0; padding: 6px 16px; }
.summary__row {
  display: grid; grid-template-columns: 76px 1fr; grid-template-rows: auto auto; column-gap: 14px;
  align-items: center; padding: 12px 0; border-bottom: 2px solid #f1eee8;
}
.summary__row:last-child { border-bottom: 0; }
.summary__thumb {
  grid-row: 1 / 3; width: 76px; height: 64px; background: #f4f2ee; border-radius: var(--radius-sm);
  display: grid; place-items: center; padding: 6px; overflow: hidden;
}
.summary__thumb img { width: 64px; height: 52px; object-fit: contain; }
.summary__label { font-size: 14px; color: var(--ink-2); text-transform: uppercase; letter-spacing: 1px; }
.summary__value { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 900; }
.summary__included { color: var(--good); }
.dot { width: 22px; height: 22px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 2px rgba(0,0,0,.12); }
.summary__price {
  display: flex; flex-direction: column; gap: 2px; padding: 16px; background: var(--ink); color: #fff;
}
.summary__price-label { font-size: 14px; text-transform: uppercase; letter-spacing: 1.5px; opacity: .75; }
.summary__price-nums { display: flex; align-items: baseline; gap: 12px; }
.summary__price-nums s { font-size: 20px; opacity: .6; }
.summary__price-nums strong { font-family: var(--display); font-weight: 400; font-size: 44px; line-height: 1; }
.summary__save { color: var(--cta); font-weight: 900; }

.fulfillment { margin-top: 16px; background: var(--paper); border-radius: var(--radius-sm); border: 2px dashed var(--line); }
.fulfillment summary { cursor: pointer; padding: 14px 16px; font-weight: 900; min-height: 48px; }
.fulfillment pre {
  margin: 0; padding: 0 16px 16px; font-size: 13px; line-height: 1.5; overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- Action bar ---------- */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--paper); border-top: 3px solid var(--ink);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 30px rgba(0,0,0,.12);
}
.actionbar__inner {
  max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.price { display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: baseline; line-height: 1.1; }
.price__regular { grid-column: 1 / 3; font-size: 14px; color: var(--ink-2); }
.price__kit { font-family: var(--display); font-weight: 400; font-size: 34px; }
.price__kit.bump { animation: bump .4s ease; }
@keyframes bump { 40% { transform: scale(1.15); color: var(--accent); } }
.price__save {
  font-size: 12px; font-weight: 900; background: var(--cta); padding: 2px 8px; border-radius: 999px; white-space: nowrap;
}
.actionbar__buttons { display: flex; gap: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 56px; padding: 0 22px; border-radius: 999px; border: 3px solid var(--ink);
  font-weight: 900; font-size: 17px; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, background .15s ease;
}
.btn:active { transform: scale(.97); }
.btn--cta { background: var(--cta); color: var(--ink); box-shadow: 0 4px 0 var(--ink); }
.btn--cta:hover { background: #ffe14d; }
.btn--ghost { background: #fff; }
.btn--ghost:hover { background: #f1eee8; }
@media (max-width: 560px) {
  .actionbar__inner { flex-wrap: wrap; }
  .price { flex: 1; }
  .actionbar__buttons { width: 100%; }
  .actionbar__buttons .btn { flex: 1; padding: 0 12px; font-size: 16px; }
  .actionbar__buttons .btn--ghost { flex: 0 1 auto; }
  :root { --actionbar-h: 150px; }
}

/* ---------- Footer ---------- */
.footer {
  max-width: 1280px; margin: 0 auto; padding: 8px 16px 28px; font-size: 13px; color: var(--ink-2);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
}
.footer p { margin: 0; }
.demo-toggle {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 900;
  border: 2px dashed var(--line); padding: 8px 14px; border-radius: 999px; background: var(--paper);
}
.demo-toggle input { width: 20px; height: 20px; accent-color: var(--accent); }

/* ---------- Cart dialog ---------- */
.cart-dialog {
  width: min(520px, calc(100vw - 24px)); border: 0; border-radius: var(--radius); padding: 24px 20px;
  box-shadow: var(--shadow-lg); color: var(--ink);
}
.cart-dialog::backdrop { background: rgba(14,14,16,.6); }
.cart-dialog[open] { animation: dialog-in .25s ease; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.cart-dialog__icon {
  width: 64px; height: 64px; border-radius: 50%; background: var(--good); color: #fff;
  display: grid; place-items: center; font-size: 34px; font-weight: 900; margin: 0 auto 10px;
}
.cart-dialog h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 34px; text-align: center; }
.cart-dialog__note { font-size: 14px; color: var(--ink-2); text-align: center; margin: 6px 0 14px; }
.props {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 18px;
  background: #f7f5f1; border-radius: var(--radius-sm); padding: 14px 16px; font-size: 15px;
}
.props dt { color: var(--ink-2); }
.props dd { margin: 0; font-weight: 900; }
.cart-dialog__buttons { display: flex; gap: 10px; }
.cart-dialog__buttons .btn { flex: 1; padding: 0 12px; }

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  .app { padding: 28px 24px 40px; }
  .builder {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: start;
  }
  .preview-panel,
  .app[data-step="customize"] .preview-panel {
    position: sticky; top: 20px; margin: 0; padding: 0; background: none; box-shadow: none;
  }
  .preview-stage,
  .app[data-step="review"] .preview-stage { width: 100%; }
  .choice { padding: 22px 22px 24px; }
  .swatch-row { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
  .swatch__chip { width: 72px; height: 72px; }
  .placeholder-badge, .item-count { font-size: 12px; top: 14px; }
  .placeholder-badge { left: 14px; }
  .item-count { right: 14px; }
}

/* =========================================================================
   Dark theme — matches krakenbatgrip.com (#000 background).
   Delete this block to go back to the light version.
   ========================================================================= */
:root {
  --bg: #000;
  --paper: #141416;
  --paper-2: #1f1f24;
  --text: #fff;
  --text-2: #a9a9b4;
  --line: #2e2e35;
  --shadow: 0 10px 30px rgba(0, 0, 0, .6);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, .8);
  --focus: 0 0 0 3px #000, 0 0 0 7px var(--accent-2);
}
body { color: var(--text); background: var(--bg); }
.topbar { background: #000; border-bottom: 1px solid var(--line); }

.step__lead, .kit-card__meta, .kit-card__price, .choice__hint, .swatch__name, .type-card__blurb,
.included__title, .chip--soon .chip__status, .summary__label, .price__regular, .footer,
.cart-dialog__note, .props dt { color: var(--text-2); }
.kit-card__price strong, .swatch[aria-pressed="true"] .swatch__name { color: var(--text); }

/* Cards & surfaces */
.kit-card, .choice, .chip, .summary-card, .fulfillment, .demo-toggle { background: var(--paper); border-color: var(--line); }
.kit-card { border-color: var(--line); }
.kit-card__media { background: #000; }
.kit-card__cta { background: #fff; color: #000; }
.kit-card--custom {
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box,
    linear-gradient(135deg, #ff4fa8, #8fd3ff, #7ee8c8, #e8b923) border-box;
}
.kit-card--custom .kit-card__cta { color: #fff; }

/* Preview stage — dark "studio" backdrop */
.preview-stage,
.kit-card__media:has(> .preview-stage) {
  background:
    radial-gradient(ellipse 60% 18% at 50% 88%, rgba(0,0,0,.6), transparent 70%),
    radial-gradient(circle at 40% 30%, #3b3b44, #121215 78%);
}
.preview-stage { border-color: var(--line); }
.kit-card__media > .preview-stage { background: none; }
.layer { filter: drop-shadow(0 0 1px rgba(255,255,255,.45)) drop-shadow(0 10px 12px rgba(0,0,0,.6)); }
.item-count { background: #fff; color: #000; }

/* Customize */
.choice__num { background: #fff; color: #000; }
.choice__value { background: var(--paper-2); color: var(--text); }
.swatch__chip { box-shadow: inset 0 0 0 2px rgba(255,255,255,.4), 0 4px 10px rgba(0,0,0,.5); }
.swatch[aria-pressed="true"] .swatch__chip { outline-color: #fff; }
.swatch__check { border-color: var(--paper); }
.type-card { background: var(--paper-2); }
.type-card[aria-pressed="true"] { background: var(--paper-2); border-color: #fff; }
.chip img, .summary__thumb { background: var(--paper-2); }
.chip--soon { border-color: var(--line); }

/* Review */
.kit-type-pill { background: #fff; color: #000; }
.summary__row { border-bottom-color: var(--line); }
.summary__price { background: var(--paper-2); border-top: 1px solid var(--line); }
.dot { box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); }

/* Action bar, buttons, dialog */
.actionbar { background: #0b0b0d; border-top: 3px solid var(--accent); box-shadow: 0 -10px 30px rgba(0,0,0,.7); }
.btn { border-color: #fff; }
.btn--cta { color: #000; border-color: var(--cta); box-shadow: 0 4px 0 #b39400; }
.btn--ghost { background: transparent; color: #fff; }
.btn--ghost:hover { background: var(--paper-2); }
.cart-dialog { background: var(--paper); color: var(--text); border: 1px solid var(--line); }
.cart-dialog::backdrop { background: rgba(0,0,0,.8); }
.props { background: var(--paper-2); }

/* =========================================================================
   Toned-down pass — smaller swatches, quieter type, thinner borders.
   Delete this block to go back to the louder version.
   ========================================================================= */
:root { --radius: 16px; --radius-sm: 10px; }
body { font-weight: 600; font-size: 16px; }

/* Headings */
.step__title { font-size: clamp(28px, 5vw, 40px); letter-spacing: 1px; }
.step__lead { font-size: 16px; margin-top: 6px; }
.choice__title { font-size: 20px; letter-spacing: .5px; }
.choice__num { width: 32px; height: 32px; font-size: 17px; }
.choice__head { gap: 10px; margin-bottom: 12px; }
.choice__sub { font-size: 15px; font-weight: 800; margin: 14px 0 8px; }
.choice__sub > span { width: 22px; height: 22px; font-size: 12px; }
.choice__value { font-size: 13px; font-weight: 700; padding: 1px 8px; }
.choice__thumb { width: 56px; height: 42px; }
.choice { padding: 16px 16px 18px; margin-bottom: 12px; }

/* Swatches — smaller chips, thin ring, small check */
.swatch-row { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.swatch { gap: 5px; padding: 4px 2px; min-height: 44px; }
.swatch__chip { width: 44px; height: 44px; outline-width: 2px; outline-offset: 3px; }
.swatch:hover .swatch__chip { transform: scale(1.04); }
.swatch__check { width: 18px; height: 18px; font-size: 11px; right: -6px; top: -6px; border-width: 2px; }
.swatch__name { font-size: 12px; font-weight: 700; }
.swatch[aria-pressed="true"] .swatch__name { font-weight: 800; }

/* Stick type cards */
.type-row { gap: 10px; }
.type-card { padding: 10px 8px 12px; border-width: 2px; }
.type-card:hover { transform: none; border-color: var(--line); }
.type-card__img { height: 46px; }
.type-card__name { font-size: 18px; letter-spacing: .5px; }
.type-card__blurb { font-size: 12px; }
.type-card__check { width: 22px; height: 22px; font-size: 12px; }

/* Kit cards (step 1) */
.kit-card { border-width: 2px; }
.kit-card:hover { transform: translateY(-2px); }
.kit-card__media { border-bottom-width: 3px; }
.kit-card__body { padding: 12px 12px 14px; }
.kit-card__title { font-size: clamp(18px, 3.4vw, 22px); letter-spacing: .5px; }
.kit-card__meta { font-size: 13px; }
.kit-card__price strong { font-size: 19px; font-weight: 800; }
.kit-card__cta { min-height: 44px; font-size: 14px; font-weight: 800; }
.kit-card--custom { border-width: 2px; }
.kit-card--custom .kit-card__media { border-bottom-width: 3px; }

/* Progress */
.progress__btn { min-height: 40px; font-size: 13px; font-weight: 700; border-width: 1px; }
.progress__num { width: 24px; height: 24px; font-size: 12px; }
.brand__logo { font-size: 24px; }
.brand__tag { font-size: 11px; }

/* Included chips + review */
.chip { padding: 4px 14px 4px 4px; gap: 8px; font-size: 14px; }
.chip img { width: 44px; height: 34px; }
.chip__name { font-weight: 800; }
.chip__status { font-size: 12px; font-weight: 800; }
.kit-type-pill { font-size: 13px; font-weight: 800; padding: 4px 12px; }
.summary__row { grid-template-columns: 60px 1fr; padding: 10px 0; }
.summary__thumb { width: 60px; height: 50px; }
.summary__thumb img { width: 50px; height: 40px; }
.summary__label { font-size: 12px; }
.summary__value { font-size: 16px; font-weight: 800; }
.dot { width: 16px; height: 16px; }
.summary__price-nums strong { font-size: 34px; }
.summary__price-nums s { font-size: 17px; }
.summary__save { font-weight: 800; font-size: 14px; }

/* Action bar + buttons */
.actionbar { border-top-width: 1px; border-top-color: var(--line); padding-top: 8px; }
.price__kit { font-size: 26px; }
.price__regular { font-size: 13px; }
.btn { min-height: 46px; padding: 0 18px; font-size: 15px; font-weight: 800; border-width: 2px; }
.btn--cta { box-shadow: none; }
:root { --actionbar-h: 80px; }
@media (max-width: 560px) {
  :root { --actionbar-h: 128px; }
  .actionbar__buttons .btn { font-size: 15px; }
}

/* Calmer motion */
.layer.is-pop { animation-duration: .25s; }
@keyframes layer-pop { 0% { scale: .97; } 100% { scale: 1; } }
@keyframes bump { 50% { transform: scale(1.06); } }

@media (min-width: 900px) {
  .swatch-row { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
  .swatch__chip { width: 48px; height: 48px; }
  .choice { padding: 18px 20px 20px; }
}

/* =========================================================================
   Item list with "Change Color" editors (Customize + Review)
   ========================================================================= */
.summary__row { grid-template-columns: 60px minmax(0, 1fr) auto; }
.summary__label, .summary__value { grid-column: 2; min-width: 0; }
.edit-btn {
  grid-column: 3; grid-row: 1 / 3; align-self: center;
  min-height: 40px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--text, #fff); border: 1.5px solid var(--line);
  font: inherit; font-size: 13px; font-weight: 800; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.edit-btn:hover { border-color: #fff; }
.edit-btn[aria-expanded="true"] { background: #fff; color: #000; border-color: #fff; }
.edit-row.is-open .summary__thumb { box-shadow: 0 0 0 2px #fff; }
.edit-panel {
  grid-column: 1 / -1; margin-top: 12px; padding: 12px;
  background: var(--paper-2); border-radius: var(--radius-sm);
  animation: panel-in .2s ease-out;
}
.edit-panel[hidden] { display: none; }
.edit-panel__sub {
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
  color: var(--ink-2); margin: 0 0 8px;
}
.edit-panel__sub + .type-row { margin-bottom: 14px; }
.edit-panel .type-card { background: var(--paper); }
.summary--edit { padding-bottom: 0; }
.summary--included { padding-top: 0; }
.summary--edit + .summary--included .summary__row:first-child { border-top: 1px solid var(--line); }
.summary__row--soon { opacity: .7; }
.summary__soon { color: var(--ink-2); font-size: 14px; }
@keyframes panel-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) {
  .summary { padding: 4px 12px; }
  .summary__row { grid-template-columns: 48px minmax(0, 1fr) auto; column-gap: 10px; }
  .summary__thumb { width: 48px; height: 42px; padding: 3px; }
  .summary__thumb img { width: 42px; height: 34px; }
  .summary__label { font-size: 11px; letter-spacing: .5px; }
  .summary__value { font-size: 14px; gap: 6px; line-height: 1.2; }
  .summary__value .dot { width: 14px; height: 14px; }
  .edit-btn { min-height: 34px; padding: 0 10px; font-size: 12px; }
  .edit-panel { padding: 10px 6px; }
}

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