/* Build your clean (/build). Loaded after styles.css, on that page only. Phone first. */

/* plenty in here sets display, which would otherwise beat the hidden attribute */
.suite [hidden] { display: none !important; }

.page-build .action-bar { display: none; }
.page-build .cookie { bottom: calc(84px + env(safe-area-inset-bottom)); }
.page-build .site-footer { padding-bottom: 24px; }

.suite { --at: 0; position: relative; isolation: isolate; padding-bottom: 24px; }
/* a glow in the top right corner, drawn inside the page so it can't widen it */
.suite::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 auto 0; height: 520px; pointer-events: none;
  background: radial-gradient(circle 340px at 100% 0, rgba(250, 34, 165, 0.2), transparent);
}

/* ---------- title and the step rail ---------- */
.suite-top { padding: 22px 0 6px; }
.suite-top-inner { display: grid; gap: 16px; }
.suite-title { font-size: clamp(2.2rem, 9vw, 3.4rem); }
.suite-rail {
  list-style: none; margin: 0; padding: 0; position: relative;
  display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr));
}
.suite-rail::before, .suite-rail::after {
  content: ""; position: absolute; top: 15px; left: calc(50% / var(--n)); height: 2px; border-radius: 2px;
}
.suite-rail::before { right: calc(50% / var(--n)); background: var(--line); }
.suite-rail::after {
  width: calc((100% - 100% / var(--n)) * var(--at) / (var(--n) - 1));
  background: linear-gradient(90deg, var(--pink), #ff7ccc); box-shadow: 0 0 12px rgba(250, 34, 165, 0.6);
  transition: width 0.6s cubic-bezier(0.2, 0.9, 0.25, 1);
}
.suite-rail button {
  position: relative; z-index: 1; width: 100%; display: grid; justify-items: center; gap: 6px;
  padding: 0; border: 0; background: none; color: var(--muted); font: 600 0.7rem/1.1 var(--font-body); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.suite-rail button:disabled { cursor: default; color: var(--dim); opacity: 0.6; }
.rail-dot {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 2px solid var(--line-2); color: var(--muted);
  font: 800 0.95rem/1 var(--font-display); transition: background-color 0.3s, border-color 0.3s, color 0.3s, transform 0.3s;
}
.suite-rail .is-done .rail-dot {
  border-color: var(--pink); color: transparent;
  background: var(--pink-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fa22a5' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.suite-rail [aria-current] { color: var(--text); }
.suite-rail [aria-current] .rail-dot { background: var(--pink); border-color: var(--pink); color: var(--pink-ink); transform: scale(1.12); box-shadow: 0 0 0 5px rgba(250, 34, 165, 0.18), 0 6px 20px rgba(250, 34, 165, 0.45); }
.suite-rail button:not(:disabled):hover .rail-dot { border-color: var(--pink); }
.rail-label { white-space: nowrap; }
@media (max-width: 420px) { .suite-rail button:not([aria-current]) .rail-label { opacity: 0; } }

/* ---------- screens ---------- */
.screen { padding: 18px 0 28px; }
.screen.enter-fwd { animation: sc-fwd 0.5s cubic-bezier(0.2, 0.9, 0.25, 1) both; }
.screen.enter-back { animation: sc-back 0.5s cubic-bezier(0.2, 0.9, 0.25, 1) both; }
@keyframes sc-fwd { from { opacity: 0; transform: translateX(36px); } }
@keyframes sc-back { from { opacity: 0; transform: translateX(-36px); } }
/* phones: the heading, then the panel, then the choices */
.screen-grid { display: grid; gap: 14px; }
.screen-copy { display: contents; }
.screen-copy > * { order: 2; min-width: 0; }
.screen-copy > .screen-n, .screen-copy > h2, .screen-copy > .lede { order: 0; }
.screen-stage { order: 1; margin: 4px 0 6px; }
.screen-n { font: 700 0.75rem/1.2 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--pink); }
.screen h2 { font-size: clamp(2.4rem, 10vw, 4rem); outline: none; }
.screen .lede { font-size: 1rem; }

/* ---------- choices ---------- */
.sx { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 10px; }
.sx > legend { padding: 0; margin-bottom: 10px; font: 800 1.2rem/1 var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; }
.sx-grid { display: grid; gap: 8px; }
.sx-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sx-opt { position: relative; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sx-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.sx-card {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 14px;
  border-radius: 16px; background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s, box-shadow 0.3s;
}
.sx-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.16) 50%, transparent 65%) 120% 0 / 250% 100% no-repeat;
}
.sx-opt:hover .sx-card { border-color: var(--line-2); }
.sx-opt:active .sx-card { transform: scale(0.985); }
.sx-opt input:checked + .sx-card {
  border-color: var(--pink); background: linear-gradient(var(--pink-soft), var(--pink-soft)), var(--surface);
  box-shadow: 0 10px 30px -12px rgba(250, 34, 165, 0.55);
}
.sx-opt input:checked + .sx-card::after { opacity: 1; animation: tab-glint 0.9s ease-out both; }
.sx-opt input:focus-visible + .sx-card { outline: 2px solid var(--pink); outline-offset: 2px; }
.sx-opt input:disabled + .sx-card { cursor: default; }
.sx-body { flex: 1; min-width: 0; display: grid; gap: 3px; }
.sx-body strong { font-size: 1rem; line-height: 1.25; }
.sx-body small { color: var(--muted); font-size: 0.84rem; line-height: 1.4; }
.sx-price { font: 800 1.35rem/1 var(--font-display); white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.sx-price span { display: block; }
.sx-price span:not([data-px]):not([data-px-wash]), .xg-check .sx-price { font: 600 0.72rem/1.2 var(--font-body); text-transform: uppercase; letter-spacing: 0.06em; color: var(--dim); white-space: normal; max-width: 9ch; }
.sx-tick {
  flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--line-2); color: transparent; transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.3s;
}
.sx-tick .ico { width: 14px; height: 14px; stroke-width: 3.2; }
.sx-opt input:checked + .sx-card .sx-tick, .xg-check:has(input:checked) .sx-tick {
  background: var(--pink); border-color: var(--pink); color: var(--pink-ink); transform: scale(1.08);
}
.sx-error { color: #ff8aa3; font-weight: 600; font-size: 0.9rem; }
.sx-note { font-size: 0.9rem; padding: 12px 14px; border-radius: 12px; background: var(--pink-soft); border: 1px solid rgba(250, 34, 165, 0.25); }
.sx-aside { color: var(--muted); font-size: 0.9rem; }
.sx-aside a, .link-btn { color: var(--pink); font-weight: 600; }
.link-btn { appearance: none; border: 0; background: none; padding: 0; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.shake { animation: shake 0.4s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* car sizes: the car in each card grows with the size */
.sx-size .sx-card { flex-direction: column; justify-content: center; text-align: center; gap: 4px; padding: 14px 6px 12px; min-height: 0; }
.sx-size strong { font-size: 0.95rem; }
.sx-size small { color: var(--muted); font-size: 0.72rem; line-height: 1.3; }
.sx-mini { width: 100%; height: 34px; fill: none; stroke: var(--muted); stroke-width: 5; stroke-linejoin: round; transition: stroke 0.2s; }
.sx-opt:nth-child(1) .sx-mini { padding: 0 14%; }
.sx-opt:nth-child(2) .sx-mini { padding: 0 6%; }
.sx-opt input:checked + .sx-card .sx-mini { stroke: var(--pink); filter: drop-shadow(0 0 6px rgba(250, 34, 165, 0.7)); }
.sx .size-finder.is-compact { padding: 0; margin-top: 6px; }

/* ---------- packages: one card per option, like a price list ---------- */
.pk-grid { display: grid; gap: 12px; }
.pk-opt { position: relative; display: block; min-width: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pk-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pk-card {
  position: relative; height: 100%; display: flex; flex-direction: column; gap: 12px; padding: 18px;
  border-radius: 20px; background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.2s, box-shadow 0.3s, transform 0.2s;
}
.pk-opt:hover .pk-card { border-color: var(--line-2); }
.pk-opt:active .pk-card { transform: scale(0.99); }
.pk-opt input:checked + .pk-card {
  border-color: var(--pink); background: linear-gradient(180deg, var(--pink-soft), transparent 55%), var(--surface);
  box-shadow: 0 18px 44px -24px rgba(250, 34, 165, 0.75);
}
.pk-opt input:focus-visible + .pk-card { outline: 2px solid var(--pink); outline-offset: 2px; }
.pk-opt.is-off { opacity: 0.4; pointer-events: none; }
/* an example picture across the top of the card */
.pk-photo { position: relative; display: block; margin: -18px -18px 2px; aspect-ratio: 2 / 1; overflow: hidden; border-radius: 19px 19px 0 0; background: #0b0b0e; border-bottom: 1px solid var(--line); }
.pk-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.pk-opt:hover .pk-photo img { transform: scale(1.04); }
/* the illustrations: closer in on the torch, where the swirls are */
.pk-photo.is-illus img { transform: scale(1.45); transform-origin: 28% 70%; }
.pk-opt:hover .pk-photo.is-illus img { transform: scale(1.5); }
.pk-photo-tag {
  position: absolute; left: 10px; bottom: 10px; padding: 4px 9px; border-radius: 999px; font: 700 0.62rem/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text); background: rgba(10, 10, 12, 0.72); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.pk-opt input:checked + .pk-card .pk-photo { border-bottom-color: var(--pink-line); }
.pk-top { display: flex; align-items: center; gap: 10px; }
.pk-top .sx-tick { margin-left: auto; }
.pk-badge {
  padding: 5px 10px; border-radius: 999px; white-space: nowrap; font: 700 0.66rem/1 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--pink); background: var(--pink-soft); border: 1px solid rgba(250, 34, 165, 0.3);
}
.pk-opt input:checked + .pk-card .sx-tick { background: var(--pink); border-color: var(--pink); color: var(--pink-ink); transform: scale(1.08); }
.pk-name { font: 800 1.75rem/1 var(--font-display); text-transform: uppercase; }
.pk-text { color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
.pk-meter { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 7px 10px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.pk-meter b { font: 800 1.15rem/1 var(--font-display); letter-spacing: 0.02em; color: var(--pink); }
.pk-bar { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.pk-bar i { display: block; height: 100%; width: calc(var(--v) * 1%); border-radius: inherit; background: linear-gradient(90deg, var(--pink), #ff9ad6); }
.pk-price { display: grid; gap: 3px; padding: 12px 0; border-top: 1px dashed var(--line-2); border-bottom: 1px dashed var(--line-2); }
.pk-amount { font: 800 2.4rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.pk-amount.pk-amount-text { font-size: 1.6rem; text-transform: uppercase; }
.pk-price small { color: var(--dim); font-size: 0.8rem; }
.pk-ticks { display: grid; gap: 8px; font-size: 0.88rem; line-height: 1.4; }
.pk-ticks > span { display: flex; gap: 8px; align-items: flex-start; }
.pk-ticks .ico { width: 16px; height: 16px; margin-top: 2px; color: var(--pink); }
.pk-foot { font-size: 0.85rem; font-weight: 600; }
.pk-cta {
  margin-top: auto; display: flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 999px;
  border: 1px solid var(--line-2); font-weight: 700; font-size: 0.92rem; transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.pk-on { display: none; align-items: center; gap: 6px; }
.pk-on .ico { width: 16px; height: 16px; }
.pk-opt input:checked + .pk-card .pk-cta, .pr-pick input:checked + span { background: var(--pink); border-color: var(--pink); color: var(--pink-ink); }
.pk-opt input:checked + .pk-card .pk-off, .pr-pick input:checked + span .pk-off { display: none; }
.pk-opt input:checked + .pk-card .pk-on, .pr-pick input:checked + span .pk-on { display: inline-flex; }
/* phones: the packages sit in a row you swipe, with the next one peeking in */
@media (max-width: 699px) {
  .pk-grid {
    position: relative; grid-auto-flow: column; grid-auto-columns: 84%; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding: 0 16px; margin: 0 -16px; padding: 4px 16px 10px; scrollbar-width: none;
  }
  .pk-grid::-webkit-scrollbar { display: none; }
  .pk-opt { scroll-snap-align: start; }
  .pk-ticks > span:nth-child(n+4) { display: none; }
}

/* ---------- protect: the product that goes on the paint ---------- */
.pr-grid { display: grid; gap: 14px; }
.pr-choice { display: grid; gap: 10px; align-content: start; min-width: 0; }
.pr-choice .coating { height: 100%; transition: border-color 0.2s, box-shadow 0.3s; }
.pr-choice:has(.pr-pick input:checked) .coating, .pr-choice:has(.pr-inc:not([hidden])) .coating { border-color: var(--pink); box-shadow: 0 18px 44px -24px rgba(250, 34, 165, 0.75); }
.pr-choice .coating-with { display: none; }
.pr-pick { position: relative; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pr-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pr-pick > span, .pr-inc {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-2); font-weight: 700; font-size: 0.92rem; transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.pr-pick:hover > span { border-color: var(--pink); }
.pr-pick input:focus-visible + span { outline: 2px solid var(--pink); outline-offset: 2px; }
.pr-pick em { font-style: normal; font-weight: 600; opacity: 0.75; }
.pr-pick em::before { content: "·"; margin-right: 8px; }
.pr-inc { background: var(--pink); border-color: var(--pink); color: var(--pink-ink); }
.pr-inc .ico, .pr-pick .ico { width: 16px; height: 16px; }
/* the maintenance sealant isn't a named product, so it gets an icon rather than a bottle */
.pr-plain-art { place-items: center; }
.coating-art.pr-plain-art svg { width: 76px; height: 76px; color: rgb(var(--accent)); filter: drop-shadow(0 0 18px rgba(var(--accent), 0.6)); }

/* ---------- the car panel ---------- */
.stage {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 22px;
  background: #0b0b0e; border: 1px solid var(--line);
  box-shadow: 0 30px 80px -40px rgba(250, 34, 165, 0.5);
}

/* car */
.stage-car { aspect-ratio: 16 / 10; display: grid; align-content: center; padding: 16px 12px 70px; background: radial-gradient(ellipse 70% 45% at 50% 78%, rgba(250, 34, 165, 0.22), transparent 70%), linear-gradient(#0d0d11, #08080a); }
.stage-car::before { content: ""; position: absolute; left: 0; right: 0; top: 62%; height: 38%; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 44px); transform: perspective(300px) rotateX(55deg); transform-origin: 50% 0; z-index: -1; }
.sc-cars { position: relative; }
.sc-car { width: 100%; height: auto; overflow: visible; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.sc-floor { fill: rgba(250, 34, 165, 0.35); stroke: none; filter: blur(6px); }
.sc-body { stroke: #fff; stroke-width: 2.4; fill: rgba(255, 255, 255, 0.03); filter: drop-shadow(0 0 4px rgba(250, 34, 165, 0.9)) drop-shadow(0 0 14px rgba(250, 34, 165, 0.5)); }
.sc-glass { stroke: rgba(255, 255, 255, 0.55); stroke-width: 1.6; fill: rgba(250, 34, 165, 0.08); }
.sc-wheel { stroke: #fff; stroke-width: 2.4; fill: #0a0a0c; filter: drop-shadow(0 0 4px rgba(250, 34, 165, 0.9)); }
.sc-rim { stroke: var(--pink); stroke-width: 1.6; fill: none; }
.sc-lamp { fill: #fff; filter: drop-shadow(0 0 5px #fff) drop-shadow(0 0 12px rgba(255, 255, 255, 0.8)); }
.sc-tail { fill: #ff2a4f; filter: drop-shadow(0 0 6px #ff2a4f); }
.sc-car.draw .sc-body, .sc-car.draw .sc-glass, .sc-car.draw .sc-wheel { stroke-dasharray: 1; stroke-dashoffset: 1; animation: sc-draw 1.2s cubic-bezier(0.6, 0.1, 0.3, 1) forwards; }
.sc-car.draw .sc-glass { animation-delay: 0.35s; }
.sc-car.draw .sc-wheel { animation-delay: 0.2s; }
.sc-car.draw .sc-lamp, .sc-car.draw .sc-tail, .sc-car.draw .sc-rim { animation: sc-pop 0.5s 1s both; }
.sc-car.draw { animation: sc-roll 1.2s cubic-bezier(0.2, 0.9, 0.25, 1) both; }
@keyframes sc-draw { to { stroke-dashoffset: 0; } }
@keyframes sc-pop { from { opacity: 0; } }
@keyframes sc-roll { from { transform: translateX(8%); } }
.stage-cap { position: absolute; left: 16px; right: 16px; bottom: 14px; display: grid; gap: 2px; }
.stage-cap strong { font: 800 1.7rem/1 var(--font-display); text-transform: uppercase; color: var(--pink); }
.stage-cap span { color: var(--muted); font-size: 0.82rem; line-height: 1.35; }
.stage-car:not(.has-size) .sc-car { opacity: 0.35; }
.stage-car:not(.has-size) .stage-cap strong { color: var(--text); }
.stage-area { position: absolute; top: 12px; right: 12px; pointer-events: none; }
.stage-area span { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: rgba(10, 10, 12, 0.7); border: 1px solid var(--line-2); font: 700 0.66rem/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }


/* the receipt and bar prices roll like an odometer */
.odo { display: inline-flex; align-items: flex-start; line-height: 1; font-variant-numeric: tabular-nums; }
.od-d { display: inline-block; height: 1em; overflow: hidden; }
.od-s { display: block; transition: transform 0.75s cubic-bezier(0.2, 0.9, 0.25, 1); }
.od-s span { display: block; height: 1em; text-align: center; }

/* ---------- extras ---------- */
.xg { display: grid; gap: 12px; }
.xg-card { min-width: 0; margin: 0; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.xg-card > legend { float: left; width: 100%; display: flex; gap: 12px; align-items: center; padding: 0; }
.xg-card > legend + * { clear: both; }
.xg-card > legend span:last-child { display: grid; gap: 3px; }
.xg-card > legend small { color: var(--muted); font-size: 0.84rem; line-height: 1.4; }
.xg-check { position: relative; display: flex; align-items: center; gap: 12px; cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
.xg-check input { position: absolute; opacity: 0; pointer-events: none; }
.xg-check:has(input:checked) { border-color: var(--pink); background: linear-gradient(var(--pink-soft), var(--pink-soft)), var(--surface); }
.xg-check:has(input:focus-visible) { outline: 2px solid var(--pink); outline-offset: 2px; }
.xg-check .sx-price { font: 800 1.35rem/1 var(--font-display); max-width: none; }
.xg-check .sx-price:not([data-engine]) { font: 600 0.72rem/1.2 var(--font-body); max-width: 9ch; }


/* the glass coating's bottle beside its name */
.xg-product {
  display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 14px 12px 8px; border-radius: 14px; border: 1px solid var(--line);
  background: radial-gradient(70% 90% at 12% 50%, rgba(var(--accent), 0.25), transparent 70%), var(--bg-2);
}
.xg-bottle svg { display: block; height: 116px; width: auto; margin: 0 auto; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.5)); }
.xg-product strong { display: block; margin-top: 2px; }
.xg-product small { display: block; margin-top: 4px; color: var(--muted); font-size: 0.84rem; line-height: 1.4; }
.xg-product .coating-maker { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgb(var(--accent)); filter: brightness(1.25); }

/* the door you tap scratches onto */
.xs { position: relative; border-radius: 14px; overflow: hidden; background: #050507; cursor: crosshair; }
.xs svg { width: 100%; height: auto; }
.xs-door { fill: url(#xsPaint); stroke: var(--line-2); stroke-width: 2; }
.xs-line { stroke: rgba(255, 255, 255, 0.1); stroke-width: 2; fill: none; }
.xs-hit { stroke: transparent; stroke-width: 26; fill: none; cursor: pointer; }
.xs-cut { stroke: #fff; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: sc-draw 0.35s ease-out forwards; filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.9)); }
.xs-ring { fill: none; stroke: var(--pink); stroke-width: 1.6; stroke-dasharray: 4 4; animation: xs-ring 0.5s ease-out both; transform-box: fill-box; transform-origin: center; }
.xs-mark:hover .xs-ring { stroke: #fff; }
@keyframes xs-ring { from { transform: scale(1.8); opacity: 0; } }
.xs-empty { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; padding: 8px 14px; border-radius: 999px; background: rgba(10, 10, 12, 0.75); border: 1px solid var(--pink-line); font-size: 0.82rem; font-weight: 600; pointer-events: none; transition: opacity 0.3s; }
.has-marks .xs-empty { opacity: 0; }
.xs-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.xs-total { font-weight: 700; color: var(--muted); }

/* ---------- your clean ---------- */
.screen[data-screen="done"] .screen-copy { gap: 18px; }
.dn { display: grid; gap: 16px; }
.dn-receipt, .dn-day, .dn-send { padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.dn-receipt { position: relative; overflow: hidden; background: radial-gradient(ellipse at 100% 0, rgba(250, 34, 165, 0.25), transparent 60%), var(--surface); border-color: var(--pink-line); }
.dn-pkg { font: 800 1.3rem/1.05 var(--font-display); text-transform: uppercase; letter-spacing: 0.02em; }
.dn-total { font: 800 clamp(3.6rem, 16vw, 5.5rem)/1 var(--font-display); color: var(--text); }
/* the glow goes on the whole number: on each rolling digit it would be clipped to a box */
.dn-total .odo { filter: drop-shadow(0 0 22px rgba(250, 34, 165, 0.5)); }
.dn-for { color: var(--muted); font-size: 0.9rem; }
.dn-lines { list-style: none; margin: 4px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--line-2); display: grid; gap: 8px; font-size: 0.92rem; }
.dn-lines li { display: flex; justify-content: space-between; gap: 14px; color: var(--muted); animation: dn-in 0.45s calc(var(--i) * 80ms + 0.15s) both; }
.dn-lines b { color: var(--text); white-space: nowrap; font-weight: 600; }
.dn-small { font-size: 0.82rem; color: var(--dim); }
.dn-day h3, .dn-send h3 { font-size: 1.5rem; }
.dn-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.dn-steps > li { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding-bottom: 18px; animation: dn-in 0.5s calc(var(--i) * 110ms + 0.2s) both; }
.dn-steps > li:not(:last-child)::before { content: ""; position: absolute; left: 16px; top: 34px; bottom: 0; width: 2px; background: linear-gradient(var(--pink), var(--line)); }
.dn-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--pink); color: var(--pink-ink); font: 800 1rem/1 var(--font-display); box-shadow: 0 0 0 4px rgba(250, 34, 165, 0.15); }
.dn-steps h4 { color: var(--text); font-size: 0.8rem; margin: 8px 0 6px; }
.dn-steps ul { margin: 0; padding: 0 0 0 16px; display: grid; gap: 4px; color: var(--muted); font-size: 0.88rem; }
.dn-steps .dn-note { display: block; padding: 12px 14px; border-radius: 12px; background: var(--pink-soft); font-size: 0.86rem; }
@keyframes dn-in { from { opacity: 0; transform: translateY(10px); } }
.dn-send .fields { gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .dn-send .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- the bar ---------- */
.suite-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  background: rgba(10, 10, 12, 0.94); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.suite-bar-inner { display: flex; align-items: center; gap: 10px; }
.sb-back { flex: none; width: 50px; min-height: 50px; padding: 0; }
.sb-back .ico { transform: rotate(180deg); }
.sb-back span { display: none; }
.sb-sum { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sb-sum small { font-size: 0.7rem; color: var(--dim); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-sum strong { font: 800 1.9rem/1 var(--font-display); }
.sb-next { flex: none; min-height: 50px; padding: 0 18px; gap: 8px; }
.sb-next .ico { width: 18px; height: 18px; }

@media (min-width: 560px) {
  .sx-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-mini { height: 40px; }
  .sb-back { width: auto; padding: 0 20px; }
  .sb-back span { display: inline; }
}

@media (min-width: 700px) {
  .pk-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .page-build .cookie { bottom: 96px; }
  .suite-top { padding-top: 36px; }
  .suite-top-inner { grid-template-columns: auto minmax(0, 720px); justify-content: space-between; align-items: center; gap: 40px; }
  .suite-rail button { font-size: 0.78rem; }
  .suite-bar { position: sticky; margin-top: 8px; }
  .xg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pk-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pr-grid.is-single { grid-template-columns: minmax(0, 1fr); }
  /* one product: the bottle beside its details */
  .pr-grid.is-single .coating { position: relative; min-height: 360px; padding-left: calc(min(38%, 360px) + 30px); }
  .pr-grid.is-single .coating-art { position: absolute; left: 0; top: 0; bottom: 0; width: min(38%, 360px); height: auto; margin: 0; padding: 0; border-bottom: 0; border-right: 1px solid var(--line); place-items: center; }
  .pr-grid.is-single .pr-inc { justify-self: start; }
  .dn { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .dn-receipt { grid-column: 1; }
  .dn-day { grid-column: 2; grid-row: span 2; }
  .dn-send { grid-column: 1; }
}

@media (min-width: 1024px) {
  .screen { padding: 28px 0 40px; }
  .screen-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 4vw, 72px); align-items: start; }
  .screen-grid.no-stage { grid-template-columns: minmax(0, 1fr); }
  .screen-copy { display: grid; gap: 14px; align-content: start; min-width: 0; }
  .screen-copy > * { order: 0; }
  .screen-stage { order: 0; margin: 0; position: sticky; top: calc(var(--header-h) + 20px); }
  .stage-car { aspect-ratio: 16 / 11; padding: 24px 28px 90px; }
  .stage-cap { left: 24px; bottom: 22px; }
  .stage-cap strong { font-size: 2.2rem; }
}

@media (min-width: 1200px) {
  .pk-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .pk-opt:hover .pk-photo img { transform: none; }
  .pk-opt:hover .pk-photo.is-illus img { transform: scale(1.45); }
  .sc-car.draw .sc-body, .sc-car.draw .sc-glass, .sc-car.draw .sc-wheel, .xs-cut { stroke-dasharray: none; }
}
