/*
  Gabwell: team chat pricing page (Screenery template)
  1. Tokens: a supermarket aisle. Back wall grey, steel shelf, dark ticket channel, white shelf-edge labels,
     promo yellow for multibuy and reduced stickers, offer red, store blue. League Gothic for prices, Open Sans for the rest.
  2. The shelf grid uses subgrid so every label in a row is the same height and the channel runs straight across.
  3. Then the estimator label, the comparison table (one plan at a time on phones), peg hooks, questions, the till.
*/

:root {
  /* colour */
  --wall: #e8ebee;          /* back of the aisle */
  --wall-2: #dde1e5;        /* pegboard */
  --peg: #c4cad0;
  --steel: #b9bfc6;         /* shelf top */
  --channel: #3f454c;       /* ticket channel the labels clip into */
  --label: #ffffff;
  --ink: #15171a;
  --ink-2: #444a51;         /* small print on white and wall */
  --yellow: #ffd21f;        /* multibuy and reduced */
  --yellow-2: #fff2b3;
  --red: #b10e28;           /* offer red, used only for saving and warning */
  --blue: #0a4c8c;          /* store blue */
  --blue-2: #083b6d;
  --ok: #1d6b3a;

  /* type */
  --display: "League Gothic", "Oswald", "Arial Narrow", sans-serif;
  --text: "Open Sans", system-ui, sans-serif;

  /* space and shape */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 112px;
  --r1: 2px; --r2: 4px;
  --lip: 10px;              /* channel visible around each label */
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 2px 4px rgb(21 23 26 / .12), 0 8px 18px rgb(21 23 26 / .10);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font: 400 16px/1.55 var(--text);
  accent-color: var(--blue);
  caret-color: var(--blue);
  scrollbar-color: var(--channel) var(--wall-2);
}
::selection { background: var(--yellow); color: var(--ink); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: var(--r1); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg use { pointer-events: none; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--s4); top: -60px; background: var(--yellow); color: var(--ink); padding: var(--s2) var(--s4); z-index: 50; font-weight: 700; }
.skip:focus { top: var(--s2); }
[hidden] { display: none !important; }
.tnum, .sel, .biglabel, .mini, .receipt, .spec td, .peg__price { font-variant-numeric: tabular-nums; }

/* icons: one 1.75 stroke */
svg:not(.pack):not(.barcode):not(.brand__mark) use { stroke: currentColor; }
.ico, .step svg, .bay__take svg, .take-basket svg, .faq svg, .checkout__error svg, .done__stamp svg, .charity__box svg {
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- store header ---------- */
.store {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: var(--s5);
  padding: var(--s3) var(--gutter);
  background: var(--blue); color: #fff;
  border-bottom: 4px solid var(--yellow);
}
.brand { display: flex; align-items: center; gap: var(--s2); color: #fff; text-decoration: none; }
.brand__mark { width: 30px; height: 30px; fill: var(--yellow); }
.brand__word { font: 400 32px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.nav { display: flex; gap: var(--s1); margin-left: auto; }
.nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; padding: var(--s2) var(--s3); border-radius: var(--r1); }
.nav a:hover { background: var(--blue-2); }
.nav a:focus-visible, .currency button:focus-visible { outline-color: var(--yellow); }
.currency { display: flex; border: 1px solid rgb(255 255 255 / .5); border-radius: var(--r2); overflow: hidden; }
.currency button { background: none; border: 0; color: #fff; padding: 6px 10px; font-size: 13px; font-weight: 700; min-height: 34px; }
.currency button[aria-checked="true"] { background: var(--yellow); color: var(--ink); }

/* ---------- the aisle ---------- */
.aisle { max-width: var(--wrap); margin: 0 auto; padding: var(--s4) var(--gutter) var(--s7); }
.aisle__sign {
  display: grid; grid-template-columns: auto 1fr; gap: var(--s5); align-items: center;
  background: var(--blue); color: #fff; padding: var(--s4) var(--s5);
  border-radius: var(--r2); box-shadow: var(--shadow);
  position: relative; margin-top: 18px;
}
/* the two chains the sign hangs from */
.aisle__sign::before, .aisle__sign::after {
  content: ""; position: absolute; top: -18px; width: 2px; height: 18px;
  background: repeating-linear-gradient(to bottom, var(--channel) 0 4px, transparent 4px 6px);
}
.aisle__sign::before { left: 12%; }
.aisle__sign::after { right: 12%; }
.aisle__no {
  display: grid; place-items: center; background: var(--yellow); color: var(--ink);
  width: 92px; height: 92px; border-radius: var(--r2); line-height: 1;
}
.aisle__no span { font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; margin-top: 14px; }
.aisle__no b { font: 400 72px/0.85 var(--display); }
.aisle__words h1 { font: 400 clamp(2.6rem, 4.6vw, 4rem)/0.95 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.aisle__words p { margin-top: var(--s2); max-width: 64ch; color: #e6eef7; }

.aisle__controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); margin: var(--s4) 0; }
.billing { display: inline-flex; background: var(--label); border: 2px solid var(--ink); border-radius: var(--r2); padding: 3px; gap: 3px; }
.billing button { border: 0; background: none; padding: 8px 16px; font-weight: 700; font-size: 15px; border-radius: var(--r1); min-height: 44px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; line-height: 1.2; text-align: left; }
.billing__deal { font-weight: 600; font-size: 12px; color: var(--ink-2); }
.billing button[aria-checked="true"] { background: var(--ink); color: #fff; }
.billing button[aria-checked="true"] .billing__deal { color: var(--yellow); }
.charity { display: flex; align-items: center; gap: var(--s3); font-weight: 600; font-size: 14px; cursor: pointer; max-width: 46ch; }
.charity input, .agree input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.charity__box { flex: none; width: 26px; height: 26px; border: 2px solid var(--ink); border-radius: var(--r1); background: var(--label); display: grid; place-items: center; }
.charity__box svg { width: 18px; height: 18px; opacity: 0; color: var(--ink); }
.charity input:checked + .charity__box, .agree input:checked + .charity__box { background: var(--yellow); }
.charity input:checked + .charity__box svg, .agree input:checked + .charity__box svg { opacity: 1; }
.charity input:focus-visible + .charity__box, .agree input:focus-visible + .charity__box { outline: 3px solid var(--blue); outline-offset: 2px; }

/* the shelf: pegboard behind, subgrid rows so labels align */
.shelf {
  display: grid; grid-template-columns: repeat(4, 1fr);
  column-gap: 0; row-gap: var(--s5);
  background:
    radial-gradient(circle at 12px 12px, var(--peg) 2.4px, transparent 3px) 0 0 / 24px 24px,
    var(--wall-2);
  border: 1px solid var(--peg); border-radius: var(--r2) var(--r2) 0 0;
  padding: var(--s3) var(--lip) 0;
}
.bay { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; position: relative; min-width: 0; }
.bay > .pack { grid-row: 1; }
.bay > .sel { grid-row: 2; }
.bay > .bay__take { grid-row: 3; }

.pack { height: clamp(150px, 23vh, 210px); width: auto; max-width: 100%; justify-self: center; align-self: end; display: block; margin-top: var(--s3); filter: drop-shadow(0 6px 6px rgb(21 23 26 / .18)); }
.pack__name { font: 400 26px/1 var(--display); letter-spacing: .06em; }
.pack__name--sm { font-size: 24px; }
.pack__small { font: 700 12px/1 var(--text); }

.wobbler {
  position: absolute; z-index: 3; top: -4px; right: 72%; width: min(220px, 78%);
  background: var(--yellow); border: 2px solid var(--ink); border-radius: 50% / 12%;
  padding: var(--s3) var(--s4); max-width: 250px; text-align: center; font-size: 13px; line-height: 1.35;
  box-shadow: var(--shadow); transform: rotate(-3deg);
}
.wobbler b { display: block; font: 400 22px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; margin-bottom: 4px; }
/* the clear stalk back to the shelf */
.wobbler::after { content: ""; position: absolute; left: 88%; top: 60%; width: 60px; height: 3px; background: rgb(21 23 26 / .28); transform: rotate(28deg); transform-origin: left; z-index: -1; }

/* the shelf-edge label */
.sel {
  position: relative; z-index: 1;
  margin: var(--lip) 0;
  background: var(--label); color: var(--ink);
  padding: var(--s3) var(--s4) var(--s2);
  box-shadow: 0 0 0 var(--lip) var(--channel);
  display: flex; flex-direction: column; gap: 4px;
  transition: background-color .5s var(--ease);
}
/* the steel shelf top above the channel */
.sel::before { content: ""; position: absolute; left: calc(var(--lip) * -1); right: calc(var(--lip) * -1); top: calc(var(--lip) * -1 - 8px); height: 8px; background: linear-gradient(var(--steel), #a3aab2); }
.sel + .bay__take { margin-top: var(--s3); }
.sel__desc { font-weight: 700; font-size: 13px; line-height: 1.25; }
.sel__price { display: flex; align-items: flex-end; gap: var(--s2); line-height: .82; margin-top: 2px; }
.sel__big { font: 400 clamp(3.4rem, 6.4vw, 5.6rem)/0.82 var(--display); letter-spacing: -0.01em; }
.sel__big--word { font-size: clamp(2.2rem, 3.6vw, 3rem); line-height: .95; text-transform: uppercase; }
.sel__per { font-size: 12px; font-weight: 700; line-height: 1.15; padding-bottom: 4px; }
.sel__was { font-size: 13px; font-weight: 700; }
.sel__was s { text-decoration-thickness: 2px; }
.sel__unit { font-size: 12px; line-height: 1.35; color: var(--ink-2); max-width: 34ch; }
.sel__deal { font-size: 12px; font-weight: 800; background: var(--yellow); margin: 2px calc(var(--s4) * -1) 0; padding: 4px var(--s4); }
.sel__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s2); margin-top: auto; padding-top: 6px; border-top: 1px solid #d5d9dd; }
.sel__code { font-size: 11px; color: var(--ink-2); white-space: nowrap; letter-spacing: .02em; }
.barcode { width: 92px; height: 22px; display: block; fill: var(--ink); flex: none; }

/* yearly: the paid labels become yellow multibuy labels */
.shelf[data-billing="yearly"] .bay:is([data-plan="everyday"], [data-plan="bulk"]) .sel { background: var(--yellow); }
.shelf[data-billing="yearly"] .bay:is([data-plan="everyday"], [data-plan="bulk"]) .sel__deal { background: var(--ink); color: var(--yellow); }
.shelf[data-billing="yearly"] .sel__unit, .shelf[data-billing="yearly"] .sel__code { color: #2e2a14; }
.shelf[data-billing="yearly"] .sel__foot { border-top-color: rgb(21 23 26 / .25); }
.shelf[data-billing="yearly"] .bay:is([data-plan="taster"], [data-plan="wholesale"]) .sel__unit,
.shelf[data-billing="yearly"] .bay:is([data-plan="taster"], [data-plan="wholesale"]) .sel__code { color: var(--ink-2); }

/* re-ticketing moment: a fresh label slides into the channel */
@media (prefers-reduced-motion: no-preference) {
  .sel.is-reticket { animation: reticket .6s var(--ease); }
  @keyframes reticket {
    0% { clip-path: inset(0 0 100% 0); transform: translateY(-14px); }
    100% { clip-path: inset(0 0 0 0); transform: none; }
  }
  .reduced { transition: transform .45s var(--ease), opacity .25s; }
}

/* the yellow reduced sticker */
.reduced {
  position: absolute; z-index: 2; right: -8px; top: -32px;
  background: var(--yellow); color: var(--ink); border: 2px solid var(--red);
  border-radius: 6px; padding: 4px 10px 6px; text-align: center; line-height: 1;
  transform: rotate(8deg) scale(.4); opacity: 0; pointer-events: none;
  box-shadow: 0 3px 6px rgb(21 23 26 / .25);
}
.reduced span { display: block; font: 800 11px/1.1 var(--text); text-transform: uppercase; letter-spacing: .14em; color: var(--red); }
.reduced b { font: 400 34px/0.95 var(--display); }
html[data-charity] .reduced { opacity: 1; transform: rotate(8deg) scale(1); }
@media (min-width: 561px) { html[data-charity] .bay:is([data-plan="everyday"], [data-plan="bulk"]) .sel__desc { padding-right: 76px; } }
.shelf[data-billing="yearly"] .reduced { background: var(--label); }

.bay__take {
  justify-self: center; align-self: start;
  display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px;
  margin: var(--s3) var(--s2) var(--s5); padding: var(--s2) var(--s4);
  background: var(--label); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--r2);
  font-weight: 700; font-size: 14px; text-decoration: none; text-align: center; line-height: 1.2;
  transition: background-color .2s, transform .2s var(--ease);
}
.bay__take svg { width: 18px; height: 18px; flex: none; }
.bay__take:hover { background: var(--yellow); }
.bay--pick .bay__take { background: var(--ink); color: #fff; }
.bay--pick .bay__take:hover { background: var(--blue); }

.pickwhy { display: none; }
.aisle__small { font-size: 13px; color: var(--ink-2); margin-top: var(--s4); max-width: 80ch; }

/* ---------- section heads ---------- */
.section-head { max-width: 760px; margin-bottom: var(--s6); }
.section-head h2 { font: 400 clamp(2.4rem, 4.6vw, 3.8rem)/0.95 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.section-head p { margin-top: var(--s3); max-width: 66ch; color: var(--ink-2); }

/* ---------- unit price estimator ---------- */
.unit, .compare, .extras, .questions, .till { max-width: var(--wrap); margin: 0 auto; padding: var(--s8) var(--gutter) 0; }
.unit__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--s6); align-items: start; }

.scale { background: var(--label); border: 1px solid var(--peg); border-radius: var(--r2); padding: var(--s5); display: grid; gap: var(--s5); }
.scale__group { border: 0; margin: 0; padding: 0; min-width: 0; }
.scale__group legend { font-weight: 800; font-size: 15px; margin-bottom: var(--s3); padding: 0; }
.seats { display: flex; align-items: stretch; gap: var(--s2); }
.step { flex: none; width: 52px; min-height: 52px; display: grid; place-items: center; background: var(--wall); border: 2px solid var(--ink); border-radius: var(--r2); color: var(--ink); }
.step:hover { background: var(--yellow); }
.step svg { width: 22px; height: 22px; }
.step--sm { width: 40px; min-height: 40px; }
.step--sm svg { width: 18px; height: 18px; }
.seats__field { flex: 1; display: flex; align-items: center; border: 2px solid var(--ink); border-radius: var(--r2); padding: 0 var(--s4); background: var(--label); min-width: 0; }
.seats__field:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.seats__field input { width: 100%; min-width: 0; border: 0; background: none; font: 400 44px/1.1 var(--display); padding: 2px 0; outline: none; -moz-appearance: textfield; }
.seats__field input::-webkit-inner-spin-button, .seats__field input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.seats__unit { font-weight: 700; color: var(--ink-2); }
.seats__field.is-bad { border-color: var(--red); }

.range { width: 100%; margin: var(--s4) 0 0; accent-color: var(--ink); height: 28px; }
.range__ticks { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr auto; font-size: 11px; color: var(--ink-2); font-weight: 600; }
.range__ticks span:nth-child(2) { padding-left: 2%; }
.field-msg { font-size: 13px; font-weight: 600; color: var(--red); min-height: 0; margin-top: 6px; }
.field-msg:empty { margin: 0; }
.field-msg.is-info { color: var(--ink-2); font-weight: 600; }

.needs { display: flex; flex-wrap: wrap; gap: var(--s2); }
.need { position: relative; }
.need input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.need span { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border: 2px solid var(--ink); border-radius: 20px; font-size: 14px; font-weight: 600; background: var(--label); }
.need input:checked + span { background: var(--ink); color: #fff; }
.need input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

.addon-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s3) 0; border-top: 1px solid #dfe2e6; cursor: pointer; }
.addon-row:first-of-type { border-top: 0; padding-top: 0; }
.addon-row--stepper { cursor: default; }
label.addon-row { flex-direction: row-reverse; justify-content: flex-end; }
label.addon-row input { width: 22px; height: 22px; flex: none; margin: 0; }
.addon-row__text { display: grid; gap: 2px; flex: 1; }
.addon-row__text b { font-size: 14px; }
.addon-row__text small { font-size: 13px; color: var(--ink-2); }
.mini-step { display: flex; align-items: center; gap: var(--s2); }
.mini-step output { min-width: 2ch; text-align: center; font: 400 28px/1 var(--display); }

.readout { position: sticky; top: 92px; display: grid; gap: var(--s4); }
.biglabel {
  position: relative; background: var(--label); padding: var(--s4) var(--s5) var(--s3);
  box-shadow: 0 0 0 12px var(--channel), 0 14px 0 12px #a3aab2;
  margin: 12px 12px 26px;
  display: grid; gap: var(--s3);
}
.biglabel__head { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-right: 110px; }
.biglabel__desc { font-weight: 800; font-size: 15px; }
.biglabel__flag { font-size: 12px; font-weight: 800; background: var(--ink); color: #fff; padding: 3px 8px; border-radius: var(--r1); }
.biglabel__flag.is-warn { background: var(--red); }
.biglabel__body { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }
.biglabel__price { display: flex; align-items: flex-end; gap: var(--s2); font: 400 clamp(4rem, 8vw, 6rem)/0.8 var(--display); }
.biglabel__price small { font: 700 14px/1.2 var(--text); padding-bottom: 6px; }
.biglabel__unit { font-size: 14px; color: var(--ink-2); text-align: right; }
.biglabel__unit b { display: block; font: 400 38px/1 var(--display); color: var(--ink); }
.biglabel__deal { background: var(--yellow); margin: 0 calc(var(--s5) * -1); padding: var(--s2) var(--s5); font-weight: 700; font-size: 14px; }
.biglabel.is-yearly .biglabel__deal { background: var(--ink); color: var(--yellow); }
.biglabel.is-yearly { background: var(--yellow-2); }
.biglabel__maths { list-style: none; margin: 0; padding: 0; font-size: 13.5px; display: grid; gap: 2px; }
.biglabel__maths li { display: flex; justify-content: space-between; gap: var(--s3); border-bottom: 1px dotted #b8bec5; padding: 3px 0; }
.biglabel__maths li span:last-child { white-space: nowrap; }
.biglabel__maths .sum { font-weight: 800; border-bottom: 0; }
.biglabel__maths .save { color: var(--red); font-weight: 700; }
.biglabel__warn { display: flex; gap: var(--s2); align-items: flex-start; font-size: 13.5px; font-weight: 700; color: var(--red); border: 2px solid var(--red); padding: var(--s2) var(--s3); background: #fff5f6; }
.biglabel__foot { display: flex; justify-content: space-between; align-items: flex-end; font-size: 11px; color: var(--ink-2); gap: var(--s2); border-top: 1px solid #d5d9dd; padding-top: 6px; }
.reduced--big { right: -10px; top: -34px; }
.biglabel:not(.is-reduced) .reduced--big { opacity: 0 !important; transform: rotate(8deg) scale(.4) !important; }
.take-basket { display: flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 52px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; border-radius: var(--r2); margin: 0 12px; }
.take-basket:hover { background: var(--blue); }
.take-basket svg { width: 22px; height: 22px; }

.sameteam { margin-top: var(--s7); }
.sameteam h3 { font: 400 30px/1 var(--display); text-transform: uppercase; margin-bottom: var(--s4); }
.minis { list-style: none; margin: 0; padding: var(--lip); display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--lip); background: var(--channel); }
.mini { background: var(--label); padding: var(--s3) var(--s4); display: grid; gap: 2px; position: relative; align-content: start; }
.mini b { font-size: 13px; }
.mini__price { font: 400 38px/1 var(--display); }
.mini__note { font-size: 12px; color: var(--ink-2); }
.mini--no { background: #eceef0; }
.mini--no .mini__price { font-size: 24px; line-height: 1.1; color: var(--ink-2); }
.mini--best { background: var(--yellow); }
.mini--best::after { content: "Best value for you"; position: absolute; right: 8px; top: 8px; font: 800 10.5px/1 var(--text); text-transform: uppercase; letter-spacing: .06em; background: var(--ink); color: var(--yellow); padding: 4px 6px; }
.mini--best .mini__note { color: #2e2a14; }

/* ---------- comparison ---------- */
.planpick { display: none; }
.table-wrap { background: var(--label); border: 1px solid var(--peg); border-radius: var(--r2); }
.spec { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec th, .spec td { padding: 11px var(--s4); text-align: left; vertical-align: top; border-bottom: 1px solid #e1e4e8; }
.spec thead th { position: sticky; top: 64px; background: var(--ink); color: #fff; font: 400 24px/1 var(--display); text-transform: uppercase; letter-spacing: .03em; padding-top: 14px; padding-bottom: 12px; z-index: 2; }
.spec thead th:first-child { font: 700 13px/1 var(--text); text-transform: none; letter-spacing: 0; }
.spec thead th[data-col="everyday"] { background: var(--yellow); color: var(--ink); }
.spec tbody th[scope="row"] { font-weight: 600; width: 28%; }
.spec td[data-col="everyday"] { background: #fffbe6; }
.spec__group th { background: var(--wall); font: 400 20px/1 var(--display) !important; text-transform: uppercase; letter-spacing: .03em; padding-top: 14px !important; }
.spec td.no { color: var(--ink-2); }
.spec td.yes { font-weight: 700; color: var(--ok); }

/* ---------- extras ---------- */
.pegs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); padding: var(--s6) var(--s5) var(--s5); background: radial-gradient(circle at 12px 12px, var(--peg) 2.4px, transparent 3px) 0 0 / 24px 24px, var(--wall-2); border: 1px solid var(--peg); border-radius: var(--r2); }
.peg { position: relative; background: var(--label); padding: var(--s6) var(--s5) var(--s5); border-radius: var(--r2) var(--r2) var(--r1) var(--r1); box-shadow: var(--shadow); display: grid; gap: var(--s2); align-content: start; }
.peg__hole { position: absolute; top: 10px; left: 50%; width: 40px; height: 12px; margin-left: -20px; border-radius: 6px; background: var(--wall-2); box-shadow: inset 0 1px 2px rgb(21 23 26 / .3); }
/* the hook rod */
.peg::before { content: ""; position: absolute; top: -26px; left: 50%; width: 4px; height: 40px; margin-left: -2px; background: linear-gradient(90deg, #8d949c, #cfd4d9, #8d949c); border-radius: 2px; z-index: 1; }
.peg h3 { font-size: 16px; font-weight: 800; }
.peg__price { display: flex; align-items: flex-end; gap: var(--s2); }
.peg__price span { font: 400 48px/0.85 var(--display); }
.peg__price small { font-size: 12px; font-weight: 700; padding-bottom: 3px; }
.peg p:last-child { font-size: 14px; color: var(--ink-2); }

.taxnote { margin-top: var(--s6); background: var(--label); border: 2px solid var(--ink); padding: var(--s5); border-radius: var(--r2); }
.taxnote h3 { font: 400 28px/1 var(--display); text-transform: uppercase; margin-bottom: var(--s4); }
.taxnote dl { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.taxnote dt { font-weight: 800; margin-bottom: 4px; }
.taxnote dd { margin: 0; font-size: 14px; color: var(--ink-2); }

/* ---------- questions ---------- */
.faq { display: grid; gap: var(--s2); max-width: 860px; }
.faq details { background: var(--label); border: 1px solid var(--peg); border-radius: var(--r2); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: var(--s4) var(--s5); font-weight: 700; cursor: pointer; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; flex: none; transition: transform .3s var(--ease); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details[open] summary { border-bottom: 1px dashed var(--peg); }
.faq details p { padding: var(--s4) var(--s5) var(--s5); max-width: 70ch; color: var(--ink-2); }

/* ---------- till ---------- */
.till { padding-bottom: var(--s9); }
.till__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s6); align-items: start; }
.checkout { background: var(--label); border: 1px solid var(--peg); border-radius: var(--r2); padding: var(--s5); display: grid; gap: var(--s4); }
.checkout fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.checkout legend, .field > label { font-weight: 700; font-size: 14px; margin-bottom: 6px; display: block; padding: 0; }
.opt { font-weight: 600; color: var(--ink-2); font-size: 12px; }
.plan-radios { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); }
.plan-radios label { position: relative; }
.plan-radios input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.plan-radios span { display: grid; place-items: center; min-height: 48px; border: 2px solid var(--ink); border-radius: var(--r2); font: 400 22px/1 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.plan-radios input:checked + span { background: var(--yellow); }
.plan-radios input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.field { min-width: 0; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; border: 2px solid #8d949c; border-radius: var(--r2); padding: 10px 12px; background: var(--label); }
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6b7178; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: 3px solid var(--blue); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--red); background: #fff8f9; }
.field__suffix { display: flex; align-items: stretch; }
.field__suffix input { border-radius: var(--r2) 0 0 var(--r2); min-width: 0; }
.field__suffix span { display: flex; align-items: center; padding: 0 12px; border: 2px solid #8d949c; border-left: 0; border-radius: 0 var(--r2) var(--r2) 0; background: var(--wall); font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.pay { display: grid; gap: var(--s2); }
.pay label { display: flex; align-items: center; gap: var(--s3); min-height: 44px; font-size: 14px; cursor: pointer; }
.pay input { width: 20px; height: 20px; margin: 0; }
.agree { display: flex; align-items: center; gap: var(--s3); font-size: 14px; cursor: pointer; }
.checkout__error { display: flex; gap: var(--s3); border: 2px solid var(--red); background: #fff5f6; padding: var(--s3) var(--s4); color: var(--ink); }
.checkout__error svg { width: 24px; height: 24px; color: var(--red); flex: none; }
.checkout__error b { display: block; color: var(--red); }
.checkout__error span { font-size: 14px; }
.pay-btn { position: relative; min-height: 56px; border: 0; border-radius: var(--r2); background: var(--ink); color: #fff; font-weight: 800; font-size: 16px; padding: var(--s3) var(--s5); }
.pay-btn:hover { background: var(--blue); }
.pay-btn__busy { display: none; }
.pay-btn.is-busy { background: var(--channel); cursor: progress; }
.pay-btn.is-busy .pay-btn__label { visibility: hidden; }
.pay-btn.is-busy .pay-btn__busy { display: flex; align-items: center; justify-content: center; gap: var(--s3); position: absolute; inset: 0; }
.pay-btn.is-busy .pay-btn__busy::before { content: ""; width: 46px; height: 18px; background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 4px, #fff 4px 5px, transparent 5px 8px); }
@media (prefers-reduced-motion: no-preference) {
  .pay-btn.is-busy .pay-btn__busy::before { animation: scan 1s linear infinite; }
  @keyframes scan { 50% { opacity: .35; } }
}

.receipt { position: sticky; top: 92px; }
.receipt__paper {
  background: var(--label); padding: var(--s5) var(--s5) var(--s6);
  box-shadow: var(--shadow);
  font-size: 14px;
  /* torn bottom edge */
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 10px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 10px repeat-x;
}
.receipt__brand { font: 400 40px/1 var(--display); text-align: center; letter-spacing: .12em; }
.receipt__addr { text-align: center; font-size: 12px; color: var(--ink-2); margin: 6px 0 var(--s4); }
.receipt__lines { list-style: none; margin: 0; padding: var(--s3) 0; border-top: 1px dashed var(--ink); border-bottom: 1px dashed var(--ink); display: grid; gap: 6px; }
.receipt__lines li { display: flex; justify-content: space-between; gap: var(--s3); }
.receipt__lines li span:last-child { white-space: nowrap; }
.receipt__lines .sub { border-top: 1px solid #d5d9dd; padding-top: 6px; font-weight: 700; }
.receipt__lines .save { color: var(--red); font-weight: 700; }
.receipt__lines .total { font: 400 30px/1 var(--display); border-top: 2px solid var(--ink); padding-top: 8px; margin-top: 2px; }
.receipt__note { font-size: 13px; color: var(--ink-2); margin: var(--s3) 0; }
.barcode--wide { width: 180px; height: 30px; margin: var(--s3) auto 0; }

.done { margin-top: var(--s5); background: var(--yellow); border: 2px solid var(--ink); padding: var(--s5); border-radius: var(--r2); display: grid; gap: var(--s2); justify-items: start; }
.done__stamp { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--yellow); display: grid; place-items: center; }
.done__stamp svg { width: 28px; height: 28px; stroke-width: 2.25; }
.done h3 { font: 400 32px/1 var(--display); text-transform: uppercase; }
.done p { font-size: 14px; }
.ghost { min-height: 44px; background: var(--label); border: 2px solid var(--ink); border-radius: var(--r2); padding: 6px 16px; font-weight: 700; margin-top: var(--s2); }
.ghost:hover { background: var(--wall); }
.done:focus { outline: none; }

/* ---------- footer ---------- */
.foot { background: var(--channel); color: #eef0f2; }
.foot__strip { height: 14px; background: repeating-linear-gradient(90deg, var(--yellow) 0 28px, var(--ink) 28px 56px); }
.foot__grid { max-width: var(--wrap); margin: 0 auto; padding: var(--s7) var(--gutter); display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--s6); font-size: 14px; }
.foot h3 { font: 400 22px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; margin-bottom: var(--s3); color: #fff; }
.foot p + p { margin-top: var(--s2); }
.foot a { color: #fff; }
.foot a:focus-visible { outline-color: var(--yellow); }
.foot__brand { display: flex; align-items: center; gap: var(--s2); font: 400 34px/1 var(--display); text-transform: uppercase; color: #fff; margin-bottom: var(--s3); }
.foot__brand svg { width: 28px; height: 28px; fill: var(--yellow); }

/* ---------- responsive ---------- */
/* where the shelf is too tight for the full wobbler, it shrinks to its headline and the reason moves under the shelf */
@media (min-width: 961px) and (max-width: 1240px), (max-width: 560px) {
  .wobbler { top: -2px; right: auto; left: -4px; width: auto; max-width: 92%; padding: 4px 10px; transform: rotate(-4deg); border-radius: 50% / 30%; }
  .wobbler span, .wobbler::after { display: none; }
  .wobbler b { margin: 0; font-size: 17px; }
  .pickwhy { display: block; font-size: 14px; margin-top: var(--s3); }
}
@media (max-width: 1100px) {
  .nav a { padding: var(--s2); font-size: 13px; }
  .bay__take { font-size: 13px; padding: var(--s2) var(--s3); }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .currency { margin-left: auto; }
  .shelf { grid-template-columns: repeat(2, 1fr); }
  .unit__grid, .till__grid { grid-template-columns: 1fr; }
  .readout, .receipt { position: static; }
  .minis { grid-template-columns: repeat(2, 1fr); }
  .taxnote dl { grid-template-columns: 1fr; gap: var(--s4); }
  .pegs { grid-template-columns: 1fr; gap: var(--s7); padding-top: var(--s7); }
}
@media (max-width: 760px) {
  .planpick { display: flex; position: sticky; top: 60px; z-index: 3; background: var(--wall); padding: var(--s2) 0; gap: 6px; }
  .planpick button { flex: 1; min-height: 44px; border: 2px solid var(--ink); background: var(--label); border-radius: var(--r2); font: 400 19px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; padding: 0 4px; }
  .planpick button[aria-selected="true"] { background: var(--ink); color: #fff; }
  .spec thead th { position: static; }
  .spec[data-show] [data-col] { display: none; }
  .spec[data-show="taster"] [data-col="taster"], .spec[data-show="everyday"] [data-col="everyday"],
  .spec[data-show="bulk"] [data-col="bulk"], .spec[data-show="wholesale"] [data-col="wholesale"] { display: table-cell; }
  .spec tbody th[scope="row"] { width: 48%; }
  .spec__group th { display: table-cell; }
  .foot__grid { grid-template-columns: 1fr; gap: var(--s5); }
  .field-row { grid-template-columns: 1fr; }
  .plan-radios { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .store { gap: var(--s3); padding-top: var(--s2); padding-bottom: var(--s2); }
  .brand__word { font-size: 28px; }
  .currency button { padding: 6px 7px; font-size: 12px; }
  .aisle { padding-top: var(--s5); }
  .aisle__sign { grid-template-columns: auto 1fr; padding: var(--s3) var(--s4); gap: var(--s3); }
  .aisle__words { display: contents; }
  .aisle__words p { grid-column: 1 / -1; font-size: 14px; margin: 0; }
  .aisle__no { width: 58px; height: 58px; }
  .aisle__no span { margin-top: 6px; font-size: 10px; }
  .aisle__no b { font-size: 40px; }
  .aisle__words h1 { font-size: 2.15rem; }
  .charity { font-size: 13px; }
  .aisle__controls { gap: var(--s3); margin: var(--s3) 0; }
  .pack { height: clamp(104px, 15vh, 140px); }

  .billing { width: 100%; }
  .billing button { flex: 1; padding: 8px 10px; }
  .shelf { padding-left: 6px; padding-right: 6px; --lip: 6px; }
  .sel { padding: var(--s2) var(--s3) 6px; }
  .sel__deal { margin-left: calc(var(--s3) * -1); margin-right: calc(var(--s3) * -1); padding-left: var(--s3); padding-right: var(--s3); font-size: 12px; }
  .sel__big { font-size: 3.4rem; }
  .sel__big--word { font-size: 1.9rem; }
  .sel__price { flex-wrap: wrap; row-gap: 2px; }
  .sel__per br { display: none; }
  .sel__foot { flex-direction: column; align-items: flex-start; gap: 4px; }
  .barcode { width: 76px; height: 18px; }
  .wobbler { padding: var(--s2) var(--s3); font-size: 12px; margin-left: 4px; margin-right: 4px; }
  .wobbler b { font-size: 19px; }
  .bay__take { font-size: 12.5px; margin-left: 4px; margin-right: 4px; padding: 6px 8px; }
  .reduced { right: 4px; top: -48px; padding: 3px 8px 4px; }
  .biglabel__head { padding-right: 0; }
  .reduced b { font-size: 28px; }
  .scale, .checkout { padding: var(--s4); }
  .biglabel { padding: var(--s3) var(--s4); margin-left: 10px; margin-right: 10px; }
  .biglabel__deal { margin: 0 calc(var(--s4) * -1); padding: var(--s2) var(--s4); }
  .biglabel__unit { text-align: left; }
  .minis { grid-template-columns: 1fr 1fr; }
  .mini { padding: var(--s2) var(--s3); }
  .mini--best::after { position: static; justify-self: start; margin-top: 4px; order: 5; }
  .section-head h2 { font-size: 2.5rem; }
}

/* Wide shelf: a little more headroom so the full wobbler clears the top of the Taster pack */
@media (min-width: 1241px) {
  .shelf { padding-top: calc(var(--s3) + 20px); }
  .wobbler { top: -24px; }
}
/* Reduced stickers stay on their own label instead of hanging over the channel into the next bay */
@media (min-width: 561px) {
  .reduced:not(.reduced--big) { right: 4px; }
}
