/* styles.css: shared layout for both configurator shops. Colours and type come from theme.css. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font-body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--ink); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 30; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 28px; background: var(--top-bg); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.top__brand { font: var(--brand-font); letter-spacing: var(--brand-track); text-decoration: none; color: var(--ink); }
.steps { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.steps li { position: relative; white-space: nowrap; }
.steps li.is-current { color: var(--ink); font-weight: 600; }
.steps li.is-done { color: var(--ink); }
.steps li.is-current::after { content: ""; position: absolute; left: 0; right: 0; bottom: -21px; height: 2px; background: var(--ink); }
.top__id { display: flex; align-items: baseline; gap: 8px; min-width: 0; white-space: nowrap; }
.top__crumb { color: var(--muted); font-size: 15px; }
.top__cat { font-size: 15px; font-weight: 500; color: var(--ink-soft); text-decoration: none; }
.top__cat:hover, .top__brand:hover { color: var(--accent-ink); }
.top__help { font-size: 14px; color: var(--muted); text-decoration: none; }
.top__help:hover { color: var(--ink); }

/* ---------- configurator layout ---------- */
.cfg { display: grid; grid-template-columns: minmax(0, 1fr) var(--panel-w); align-items: start; scroll-margin-top: 64px; }
.stage { position: sticky; top: 64px; height: calc(100vh - 64px); height: calc(100svh - 64px); display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px 40px 28px; background: var(--stage-bg); overflow: hidden; }
.stage__visual { width: 100%; max-width: var(--visual-max); flex: 1 1 auto; display: flex; align-items: center; justify-content: center; min-height: 0; }
.stage__visual svg { width: 100%; height: 100%; max-height: 72vh; }
.stage__caption { margin: 8px 0 0; font-size: 15px; color: var(--muted); text-align: center; min-height: 1.5em; }

.panel-wrap { border-left: 1px solid var(--line); background: var(--panel-bg); min-height: calc(100vh - 64px); }
.panel { padding: 44px 40px 56px; }
.panel__head { margin-bottom: 8px; }
.panel__title { margin: 0 0 10px; font: var(--h1-font); letter-spacing: var(--h1-track); color: var(--ink); outline: none; text-wrap: balance; }
.panel__lead { margin: 0; color: var(--muted); font-size: 16px; max-width: 34em; }
.panel__note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- option groups ---------- */
.grp { margin: 30px 0 0; padding: 0; border: 0; min-width: 0; }
.grp__label { padding: 0; margin-bottom: 12px; font-weight: 600; font-size: 16px; }
.grp__hint { margin: -6px 0 12px; font-size: 14px; color: var(--muted); }
.grp__opts { display: grid; gap: 10px; }
.grp--segmented .grp__opts { grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 8px; }
.grp--swatches .grp__opts { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }

.opt { position: relative; display: block; cursor: pointer; height: 100%; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt__box { height: 100%; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: var(--r);
  background: var(--opt-bg); transition: border-color .15s, box-shadow .15s, background-color .15s; }
.opt:hover .opt__box { border-color: var(--line-strong); }
.opt input:checked + .opt__box { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--opt-bg-on); }
.opt input:focus-visible + .opt__box { outline: 3px solid var(--focus); outline-offset: 2px; }
.opt__main { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.opt__title { font-weight: 600; font-size: 16px; }
.opt__desc { font-size: 14px; color: var(--muted); }
.opt__price { font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.opt__badge { align-self: flex-start; margin-top: 4px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--badge-bg); color: var(--badge-ink); }
.opt--segmented .opt__box { justify-content: center; padding: 12px 10px; text-align: center; }
.opt--segmented .opt__main { align-items: center; }
.opt--segmented .opt__title { font-size: 15px; font-weight: 500; }
.opt--swatches .opt__box { flex-direction: column; gap: 10px; padding: 14px 8px 12px; text-align: center; }
.opt--swatches .opt__main { align-items: center; }
.opt--swatches .opt__title { font-size: 14px; font-weight: 500; }
.opt--swatches .opt__price { font-size: 13px; color: var(--muted); }
.opt__swatch { width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18), 0 1px 2px rgba(0,0,0,.12); }

/* ---------- summary ---------- */
.sum { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.sum__row { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; color: var(--muted); padding: 3px 0; font-variant-numeric: tabular-nums; }
.sum__total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 8px; }
.sum__total > span:first-child { font-weight: 600; }
.sum__amount { font: var(--price-font); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.sum__later { margin: 6px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- buttons, links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 28px; border-radius: var(--btn-r); border: 0; cursor: pointer;
  font-weight: 600; font-size: 16px; text-decoration: none; transition: background-color .15s, opacity .15s; }
.btn--primary { background: var(--btn-bg); color: var(--btn-ink); box-shadow: var(--btn-edge, none); }
.btn--primary:hover { background: var(--btn-bg-hover); }
.btn--primary:active { transform: translateY(1px); }
.btn--primary:disabled { background: var(--line); color: var(--muted); box-shadow: none; opacity: 1; }
.btn:disabled { opacity: .38; cursor: not-allowed; }
.btn--block { width: 100%; margin-top: 20px; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.link { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; }
.link--center { display: block; margin: 16px auto 0; }

/* ---------- cart line ---------- */
.line { margin-top: 24px; padding: 20px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--opt-bg); }
.line--compact { padding: 16px 18px; }
.line__top { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.line__name { margin: 0; font-weight: 600; }
.line__price { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.line__meta { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.line__details { margin: 10px 0 0; padding-left: 18px; font-size: 14px; color: var(--muted); }
.line__bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; gap: 12px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--btn-r); }
.qty__btn { width: 40px; height: 38px; background: none; border: 0; cursor: pointer; font-size: 18px; }
.qty__btn:disabled { opacity: .3; cursor: not-allowed; }
.qty__val { min-width: 24px; text-align: center; font-variant-numeric: tabular-nums; }

/* ---------- forms ---------- */
.field { margin-top: 24px; display: flex; flex-direction: column; gap: 8px; }
.field__label { font-weight: 600; font-size: 15px; }
.field__input { height: 52px; padding: 0 16px; border: 1.5px solid var(--line-strong); border-radius: var(--r); background: var(--opt-bg); font-size: 16px; }
select.field__input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 22px) 23px, calc(100% - 16px) 23px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field__input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--focus-soft); }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }
.form-error { margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--error-bg); color: var(--error-ink); font-size: 14px; }

.notice { margin-top: 20px; padding: 18px 20px; border-radius: var(--r); background: var(--notice-bg); border: 1px solid var(--notice-line); }
.notice__title { margin: 0 0 6px; font-weight: 600; }
.notice__text { margin: 0; font-size: 15px; color: var(--ink-soft); }

.survey { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.survey__q { margin: 0 0 14px; font-weight: 600; }
.survey__opts { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 10px 16px; border-radius: 99px; border: 1.5px solid var(--line-strong); background: var(--opt-bg); cursor: pointer; font-size: 15px; }
.chip.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.survey__thanks { margin: 14px 0 0; color: var(--muted); font-size: 14px; }

.waitlist { margin-top: 24px; padding: 20px; border-radius: var(--r); background: var(--notice-bg); border: 1px solid var(--notice-line); }
.waitlist__title { margin: 0 0 4px; font-weight: 600; }
.waitlist__text { margin: 0; font-size: 14px; color: var(--ink-soft); }
.waitlist .field { margin-top: 16px; }

/* ---------- mobile price bar ---------- */
.bar { display: none; }

/* ---------- info sections below the configurator ---------- */
.info { border-top: 1px solid var(--line); background: var(--bg); }
.info__inner { max-width: 1080px; margin: 0 auto; padding: 88px 28px; }
.info h2 { margin: 0 0 32px; font: var(--h2-font); letter-spacing: var(--h1-track); max-width: 22em; text-wrap: balance; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin: 0; padding: 0; list-style: none; counter-reset: how; }
.how li { counter-increment: how; padding-top: 18px; border-top: 2px solid var(--ink); }
.how li::before { content: counter(how); display: block; font: var(--num-font); margin-bottom: 10px; color: var(--accent-ink); }
.how h3 { margin: 0 0 6px; font-size: 18px; }
.how p { margin: 0; color: var(--muted); max-width: 30em; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.split p { color: var(--ink-soft); max-width: 34em; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-weight: 600; padding-right: 16px; }
.table td { color: var(--ink-soft); }
.small { font-size: 13px; color: var(--muted); }
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 26px; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 31px; }
.faq details p { margin: 0 0 22px; color: var(--ink-soft); max-width: 40em; }

.foot { border-top: 1px solid var(--line); }
.foot__inner { max-width: 1080px; margin: 0 auto; padding: 32px 28px 48px; display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 14px; color: var(--muted); }
.foot__inner a { color: var(--muted); }

/* ---------- cookie banner ---------- */
.cc { position: fixed; z-index: 100; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(560px, calc(100% - 24px));
  background: var(--panel-bg); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 50px rgba(10, 20, 30, .18); }
.cc__inner { padding: 20px 22px; }
.cc__title { margin: 0 0 6px; font-weight: 600; }
.cc__text { margin: 0; font-size: 14px; color: var(--ink-soft); }
.cc__settings { margin-top: 12px; display: grid; gap: 10px; }
.cc__row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); }
.cc__row input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ink); }
.cc__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cc__btn { height: 42px; padding: 0 16px; border-radius: var(--btn-r); border: 1.5px solid var(--line-strong); background: transparent; cursor: pointer; font-weight: 600; font-size: 14px; }
.cc__btn--primary { background: var(--btn-bg); color: var(--btn-ink); border-color: transparent; box-shadow: var(--btn-edge, none); }
.cc__btn--link { border-color: transparent; text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }

/* ---------- legal page ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; }
.legal h1 { font: var(--h2-font); margin: 0 0 24px; }
.legal h2 { font-size: 19px; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--ink-soft); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) { .steps { gap: 18px; } }
@media (max-width: 959px) {
  .top { padding: 0 16px; }
  .top__brand { font-size: 19px; }
  .top__id { gap: 6px; }
  .top__crumb, .top__cat { font-size: 14px; }
  .steps { display: none; }
  .cfg { display: block; }
  .stage { position: relative; top: 0; height: auto; min-height: 0; padding: 16px 16px 10px; }
  .stage__visual { height: min(30vh, 250px); }
  .stage__caption { font-size: 13px; margin-top: 4px; }
  .panel__title { font-size: 29px; }
  /* Checkout steps on a phone: a small picture, the form comes first. */
  body:not([data-step="config"]) .stage { padding: 10px 16px 6px; }
  body:not([data-step="config"]) .stage__visual { height: 150px; }
  body:not([data-step="config"]) .stage__caption { font-size: 13px; margin-top: 2px; }
  .stage__visual svg { max-height: 100%; }
  .panel-wrap { border-left: 0; border-top: 1px solid var(--line); min-height: 0; }
  .panel { padding: 28px 16px 40px; }
  .info__inner { padding: 64px 16px; }
  .how, .split { grid-template-columns: 1fr; gap: 28px; }
  .bar { display: flex; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--top-bg); border-top: 1px solid var(--line);
    backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
  .bar__price { display: flex; flex-direction: column; line-height: 1.2; }
  .bar__total { font: var(--price-font); font-size: 22px; font-variant-numeric: tabular-nums; }
  .bar__later { font-size: 12px; color: var(--muted); }
  .bar .btn { height: 48px; padding: 0 22px; }
  body { padding-bottom: 76px; }
  body[data-step="done"] { padding-bottom: 0; }
  .panel [data-primary]:not([type="submit"]) { display: none; }
  .cc { bottom: 84px; }
}

/* ---------- price dock: summary + button stay in view while choosing (desktop) ---------- */
.dock { position: sticky; bottom: 0; z-index: 3; margin: 28px -40px -56px; padding: 0 40px 22px; background: var(--panel-bg);
  border-top: 1px solid var(--line); box-shadow: 0 -16px 24px -20px rgba(10, 25, 35, .35); }
.dock .sum { margin-top: 0; padding-top: 16px; border-top: 0; }
.dock .btn--block { margin-top: 14px; }
.trust { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.trust li { position: relative; padding-left: 16px; }
.trust li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 5px; height: 9px; border-right: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(45deg); }
.nudge { margin: 8px 0 0; font-size: 14px; color: var(--accent-ink); font-weight: 600; }
.fit { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; padding: 14px 18px; border-radius: var(--r);
  background: var(--notice-bg); border: 1px solid var(--notice-line); }
.fit__text { margin: 0; font-size: 15px; }
.fit__text b { font-weight: 600; }
@media (max-width: 959px) {
  .dock { position: static; margin: 28px 0 0; padding: 0; border-top: 0; box-shadow: none; background: transparent; }
  .dock .sum { border-top: 1px solid var(--line); padding-top: 20px; }
}
.fit .link { white-space: nowrap; }


/* ---------- mobile: "what's inside" card ----------
   Sits right under the option that changes it, so the result of a tap is visible where the thumb is.
   Desktop shows the same parts in the large picture, so the card is hidden there. */
.box { display: none; margin: 4px 0 28px; padding: 14px 12px 12px; border-radius: var(--r); background: var(--notice-bg); border: 1px solid var(--notice-line); }
.box__title { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.box__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.box__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.box__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.box__item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 10px 4px 8px; border-radius: 12px; background: var(--panel-bg); transition: opacity .2s ease; }
.box__item.is-empty { opacity: .38; }
.box__item--text { justify-content: center; }
.box__icon { display: block; width: 100%; max-width: 76px; height: 44px; }
.box__icon svg { display: block; width: 100%; height: 100%; }
.box__n { font: var(--num-font); font-size: 22px; font-weight: 650; line-height: 1.1; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.box__item--text .box__n { font-size: 20px; }
.box__label { font-size: 12px; line-height: 1.25; color: var(--ink-soft); }
.box__foot { margin: 10px 0 0; font-size: 13px; color: var(--ink-soft); }
.box__item.is-changed { animation: box-pop .5s ease; }
.box__item.is-changed .box__n { animation: box-flash 1.2s ease; }
@keyframes box-pop { 0% { transform: scale(1); } 35% { transform: scale(1.07); box-shadow: 0 0 0 2px var(--focus); } 100% { transform: scale(1); box-shadow: 0 0 0 0 transparent; } }
@keyframes box-flash { 0%, 40% { color: var(--focus); } 100% { color: var(--accent-ink); } }
@media (max-width: 959px) { .box { display: block; } .opt__wide { display: none; } }
/* With a real product photo the picture no longer shows the parts, so the card shows on desktop too. */
body.has-photo .box { display: block; }
body.has-photo .opt__wide { display: none; }
@media (max-width: 959px) { .box__item--text .box__label { order: -1; } }
@media (max-width: 379px) {
  .box { padding: 12px 10px 10px; }
  .box__grid { gap: 6px; }
  .box__item { padding: 8px 2px 6px; }
  .box__icon { height: 36px; }
  .box__n { font-size: 19px; }
  .box__label { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .box__item.is-changed, .box__item.is-changed .box__n { animation: none; } }

/* ---------- product photo (optional, see config.photos) and the subscription badge ---------- */
.stage__visual img { display: block; width: 100%; height: 100%; object-fit: contain; }
.stage__badge { position: absolute; top: 16px; right: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 7px 10px;
  border-radius: 999px; background: var(--ink); color: #FFFFFF; font-size: 13px; font-weight: 600; line-height: 1; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .45); }
.stage__badge svg { width: 14px; height: 14px; flex: none; }
.stage__badge[hidden] { display: none; }
@media (min-width: 960px) { .stage__badge { top: 28px; right: 32px; font-size: 14px; } }

/* =====================================================================
   Store product page layer (Shopify/Amazon PDP pattern):
   contained two-column layout, gallery card with thumbnails, buy box with
   price under the title, highlights and a delivery box; feature tiles and specs below.
   ===================================================================== */
body { background: var(--panel-bg); }
.announce { margin: 0; padding: 9px 16px; text-align: center; font-size: 13.5px; line-height: 1.35; background: var(--ink); color: #FFFFFF; }
.announce b { font-weight: 650; }
.top { background: var(--top-bg); }

.cfg { max-width: 1320px; margin: 0 auto; padding: 28px 32px 8px; gap: 56px; background: var(--panel-bg); }
.stage { top: 88px; height: calc(100vh - 112px); height: calc(100svh - 112px); max-height: 780px; border-radius: 24px; padding: 28px 28px 20px; }
.stage__visual > img, .stage__visual > .ph { border-radius: 16px; }
body.is-gallery .stage__visual > img { object-fit: cover; }
.panel-wrap { border-left: 0; background: transparent; min-height: 0; }
.panel { padding: 4px 0 48px; }
.dock { margin: 28px 0 0; padding: 0 0 22px; }

/* thumbnails */
.thumbs { display: flex; gap: 10px; justify-content: center; margin-top: 14px; flex: none; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.thumbs::-webkit-scrollbar { display: none; }
.thumb { flex: none; width: 64px; height: 64px; padding: 0; border-radius: 14px; border: 1.5px solid var(--line); background: var(--panel-bg); cursor: pointer; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.thumb:hover { border-color: var(--line-strong); }
.thumb.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb__live { display: flex; width: 100%; height: 100%; padding: 4px; background: var(--stage-bg); }
.thumb__live svg { width: 100%; height: 100%; }
.thumb__live img { object-fit: contain; }
.thumb__ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 13px; font-weight: 600; color: var(--muted);
  background: repeating-linear-gradient(135deg, var(--notice-bg) 0 8px, var(--panel-bg) 8px 16px); }

/* placeholder (only with ?debug=1 or config.showPlaceholders) */
.ph { width: 100%; height: 100%; min-height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 18px; text-align: center;
  border: 2px dashed var(--line-strong); border-radius: inherit; color: var(--muted); font-size: 13px;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.55) 0 12px, rgba(255,255,255,.2) 12px 24px); }
.ph svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.ph b { color: var(--ink); font-size: 14px; font-weight: 600; }
.ph code { font: 12px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink-soft); word-break: break-all; }
.ph__copy { margin-top: 4px; padding: 6px 12px; border-radius: 99px; border: 1.5px solid var(--line-strong); background: var(--panel-bg); cursor: pointer; font-size: 12px; font-weight: 600; }

/* buy box */
.eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-ink); }
.pl { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 2px 0 14px; }
.pl__now { font: var(--price-font); font-size: 32px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.pl__unit { font-size: 14px; color: var(--muted); }
.hl { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; font-size: 15px; color: var(--ink-soft); }
.hl li { position: relative; padding-left: 26px; }
.hl li::before { content: ""; position: absolute; left: 2px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--badge-bg); }
.hl li::after { content: ""; position: absolute; left: 7.5px; top: 6px; width: 4px; height: 8px; border-right: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(45deg); }
.ship { margin-top: 26px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.ship__row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; font-size: 14px; color: var(--ink-soft); }
.ship__row + .ship__row { border-top: 1px solid var(--line); }
.ship__row p { margin: 0; }
.ship__row b { color: var(--ink); font-weight: 600; }
.ship__row svg { flex: none; width: 20px; height: 20px; margin-top: 0; fill: none; stroke: var(--accent-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* below the fold */
.info { background: var(--panel-bg); }
.info--tint { background: var(--bg); }
.info__inner { max-width: 1320px; padding: 80px 32px; }
.feat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.feat__fig { margin: 0 0 16px; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--stage-bg); }
.feat__fig img { width: 100%; height: 100%; object-fit: cover; }
.feat__fig.is-none { display: none; }
.feat h3 { margin: 0 0 6px; font-size: 18px; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; }
.feat__ico { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; background: var(--badge-bg); margin-bottom: 14px; }
.feat__ico svg { width: 22px; height: 22px; fill: none; stroke: var(--accent-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feat__fig:not(.is-none) + .feat__ico { display: none; }
.wide { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.wide__fig { margin: 0; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; background: var(--stage-bg); }
.wide__fig img { width: 100%; height: 100%; object-fit: cover; }
.wide__fig.is-none { display: none; }
.wide:has(.wide__fig.is-none) { grid-template-columns: 1fr; }
.specs { max-width: 760px; }
.specs .table th { width: 42%; color: var(--ink); }

@media (max-width: 1100px) { .feat { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 959px) {
  .announce { font-size: 12.5px; padding: 8px 14px; }
  .cfg { padding: 0; gap: 0; }
  .stage { top: 0; height: auto; max-height: none; border-radius: 0; padding: 16px 16px 10px; }
  .thumbs { justify-content: flex-start; margin-top: 10px; gap: 8px; }
  .thumb { width: 52px; height: 52px; border-radius: 12px; }
  body:not([data-step="config"]) .thumbs { display: none; }
  .panel { padding: 22px 16px 40px; }
  .pl__now { font-size: 28px; }
  .info__inner { padding: 56px 16px; }
  .feat { grid-template-columns: 1fr; gap: 28px; }
  .wide { grid-template-columns: 1fr; gap: 24px; }
  .dock { margin: 24px 0 0; padding: 0; }
}
/* phone: highlights repeat the feature tiles below, so the options come first */
@media (max-width: 959px) { .hl { display: none; } }
/* a tile with no image slot at all: the icon becomes a full-size panel so the row stays even */
.feat li > .feat__ico:first-child { width: 100%; height: auto; aspect-ratio: 4 / 3; margin-bottom: 16px; border-radius: 18px; background: var(--notice-bg); }
.feat li > .feat__ico:first-child svg { width: 56px; height: 56px; stroke-width: 1.3; }
@media (max-width: 959px) { .feat li > .feat__ico:first-child { aspect-ratio: auto; height: 120px; } }
