/* ── Shared page furniture ────────────────────────────────────────────── */
.fineprint {
  margin-top: var(--sp-5);
  font-size: var(--step--1);
  color: var(--ink-faint);
  max-width: var(--measure);
}
.fineprint--ink { color: rgb(255 255 255 / 0.5); }

.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { padding-block: var(--sp-7) var(--sp-8); }
@media (min-width: 900px) { .hero { padding-block: var(--sp-8) var(--sp-9); } }

.hero__in { display: grid; gap: var(--sp-7); align-items: center; }
@media (min-width: 900px) {
  .hero__in { grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-8); }
}

.hero__h1 {
  font-size: var(--step-5);
  margin-block: var(--sp-4) var(--sp-5);
}
.hero__h1 em { font-style: normal; color: var(--ink-faint); }

.hero__cta { margin-top: var(--sp-6); }

/* The wall: the whole range at a glance. Ten bottles, one look. */
.hero__wall {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(0.4rem, 1.6vw, 0.7rem);
}

.wall__tile {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  background: var(--paper-deep);
  opacity: 0;
  transform: translateY(12px);
  animation: tile-in 0.6s var(--ease) forwards;
  animation-delay: calc(var(--i) * 55ms + 120ms);
}

.wall__no {
  position: absolute;
  left: 0; right: 0; bottom: 7%;
  text-align: center;
  font-size: clamp(0.6rem, 1.5vw, 0.72rem);
  color: rgb(255 255 255 / 0.85);
  text-shadow: 0 1px 3px rgb(0 0 0 / 0.3);
}

/* Once a real bottle photo exists it replaces the colour tile entirely. */
.wall__tile--photo {
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 3px rgb(25 22 33 / 0.07);
}
.wall__tile--photo img { width: 100%; height: 100%; object-fit: contain; padding: 7%; }

@keyframes tile-in { to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .wall__tile { opacity: 1; transform: none; animation: none; }
}

/* ── Two paths ────────────────────────────────────────────────────────── */
.paths { display: grid; gap: var(--sp-4); }
@media (min-width: 800px) { .paths { grid-template-columns: 1fr 1fr; gap: var(--sp-5); } }

.path {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-6);
  border-radius: var(--radius-lg);
  text-decoration: none;
  min-height: 260px;
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease);
}
.path:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.path h2 { font-size: var(--step-3); }
.path p { color: var(--ink-soft); max-width: 34ch; }

.path--shop { background: var(--surface); border: 1px solid var(--rule); }
.path--sell { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.path--sell .eyebrow { color: rgb(255 255 255 / 0.5); }
.path--sell p { color: rgb(255 255 255 / 0.72); }

.path__go {
  margin-top: auto;
  padding-top: var(--sp-4);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 600;
  color: var(--ink);
}
.path--sell .path__go { color: #fff; }
.path__go svg { width: 17px; height: 17px; transition: transform 0.24s var(--ease); }
.path:hover .path__go svg { transform: translateX(4px); }

/* ── Bundle offers ────────────────────────────────────────────────────── */
/* Three bundles. One column on a phone, three across from tablet up — two
   columns would leave the third card stranded on a row of its own. */
.offers {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}
@media (min-width: 660px) { .offers { grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); } }

.offer {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.28s var(--ease), transform 0.28s var(--ease), border-color 0.28s var(--ease);
}
.offer:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--rule-strong);
  transform: translateY(-3px);
}
.offer--flag { border-color: var(--ink); border-width: 1.5px; }

.offer__badge {
  position: absolute;
  top: calc(var(--sp-3) * -1);
  left: var(--sp-5);
  background: var(--ink);
  color: #fff;
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px var(--sp-3);
  border-radius: var(--pill);
}

.offer__title { font-size: var(--step-1); font-weight: 600; letter-spacing: -0.02em; }
.offer__sub { font-size: var(--step--1); color: var(--ink-soft); }
.offer__price { font-size: var(--step-3); font-weight: 700; letter-spacing: -0.035em; line-height: 1; margin-top: var(--sp-2); }
.offer__delivery { font-size: var(--step--1); color: var(--ink-soft); }
.offer__delivery.is-free { color: var(--positive); font-weight: 600; }

/* Anchors the button to the bottom so all four cards line up regardless of
   how much copy sits above it. */
.offer .btn { margin-top: auto; }
.offer__delivery + .btn { margin-top: var(--sp-5); }

/* ── Steps ────────────────────────────────────────────────────────────── */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-5);
}
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); } }

.step { display: grid; gap: var(--sp-2); }
.step h3 { font-size: var(--step-1); font-weight: 600; }
.step p { color: var(--ink-soft); }
.step__n {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: var(--pill);
  background: var(--ink);
  color: #fff;
  font-size: var(--step-0);
  font-weight: 700;
  margin-bottom: var(--sp-2);
}
.section--ink .step__n { background: #fff; color: var(--ink); }
.section--ink .step p { color: rgb(255 255 255 / 0.72); }

/* ── Reseller packs ───────────────────────────────────────────────────── */
.packs { display: grid; gap: var(--sp-4); }
@media (min-width: 800px) { .packs { grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); } }

.pack {
  position: relative;
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: var(--radius-lg);
  display: grid;
  gap: var(--sp-2);
  align-content: start;
  transition: border-color 0.28s var(--ease), transform 0.28s var(--ease);
}
.pack:hover { border-color: rgb(255 255 255 / 0.5); transform: translateY(-3px); }
.pack--popular { border-color: #fff; border-width: 1.5px; background: rgb(255 255 255 / 0.07); }
.pack__badge {
  position: absolute;
  top: calc(var(--sp-3) * -1);
  left: var(--sp-5);
  background: #fff;
  color: var(--ink);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px var(--sp-3);
  border-radius: var(--pill);
}
.pack h3 { font-size: var(--step-1); font-weight: 600; }
.pack__price { font-size: var(--step-3); font-weight: 700; line-height: 1; letter-spacing: -0.035em; }
.pack__units { font-size: var(--step--1); color: rgb(255 255 255 / 0.6); }
.pack__rev {
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid rgb(255 255 255 / 0.16);
  font-size: var(--step--1);
  color: rgb(255 255 255 / 0.78);
}
.pack__rev b { color: #fff; font-weight: 700; }

/* Light-background variant used on the reseller page */
.packs--light .pack {
  border-color: var(--rule);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.packs--light .pack:hover { border-color: var(--rule-strong); box-shadow: var(--shadow-md); }
.packs--light .pack--popular { border-color: var(--ink); border-width: 1.5px; background: var(--surface); }
.packs--light .pack__badge { background: var(--ink); color: #fff; }
.packs--light .pack__units { color: var(--ink-faint); }
.packs--light .pack__rev { border-top-color: var(--rule); color: var(--ink-soft); }
.packs--light .pack__rev b { color: var(--ink); }

/* ── Reasons ──────────────────────────────────────────────────────────── */
.reasons { display: grid; gap: var(--sp-5); }
@media (min-width: 640px) { .reasons { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .reasons { grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); } }

.reason { display: grid; gap: var(--sp-2); padding-top: var(--sp-4); border-top: 2px solid var(--ink); }
.reason h3 { font-size: var(--step-1); font-weight: 600; }
.reason p { color: var(--ink-soft); }

/* ── Quotes ───────────────────────────────────────────────────────────── */
.quotes { display: grid; gap: var(--sp-4); }
@media (min-width: 800px) { .quotes { grid-template-columns: repeat(3, 1fr); } }

.quote {
  margin: 0;
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  display: grid;
  gap: var(--sp-3);
}
.quote p { font-family: var(--display); font-size: var(--step-2); line-height: 1.24; }
.quote cite { font-style: normal; font-size: var(--step--1); color: var(--ink-faint); }

/* ── Closer ───────────────────────────────────────────────────────────── */
.closer__in { text-align: center; display: grid; gap: var(--sp-5); justify-items: center; }
.closer__h { font-size: var(--step-4); }
.closer__h em { font-style: normal; color: var(--ink-faint); }

/* ── Shop ─────────────────────────────────────────────────────────────── */
.page-head { padding-block: var(--sp-7) var(--sp-5); }
.page-head h1 { font-family: var(--display); font-size: var(--step-4); margin-block: var(--sp-3); }

.filters {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  padding-block: var(--sp-2) var(--sp-5);
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--rule);
  background: var(--surface);
  border-radius: 100px;
  font-size: var(--step--1);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease);
}
.chip:hover { border-color: var(--ink-faint); }
.chip[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* The order bar. Fixed rather than sticky: it is the last element in its
   container, so a sticky bar would have no scroll range to pin within and
   would simply sit below the fold.

   It floats inset from every edge as a self-contained card. Sitting flush to
   the bottom made it read as part of the browser and pushed the progress bar
   out to an unreadable full-screen hairline. */
.tray {
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  bottom: max(var(--sp-4), env(safe-area-inset-bottom));
  z-index: 80;
  width: auto;
  max-width: 600px;
  margin-inline: auto;
  padding: var(--sp-4) var(--sp-4) var(--sp-4) var(--sp-5);
  background: rgb(255 255 255 / 0.95);
  backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: translateY(calc(100% + var(--sp-7)));
  transition: transform 0.36s var(--ease);
}
.tray[data-on='true'] { transform: translateY(0); }

/* Clears the floating card plus its offset so the footer is never trapped.
   shop.js overwrites this with the bar's measured height, so a wrapped line of
   copy cannot silently start covering the footer. This value is the fallback
   before that first measurement runs. */
body[data-order-bar='on'] { padding-bottom: 148px; }

.tray__bar { margin-bottom: var(--sp-3); }

.tray__row { display: flex; align-items: center; gap: var(--sp-4); }

.tray__sum { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
.tray__total { font-size: var(--step-2); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.tray__note {
  font-size: var(--step--1);
  color: var(--ink-soft);
  line-height: 1.35;
  margin-top: 2px;
}
.tray__note b { font-weight: 600; color: var(--ink); }

.tray .btn { flex: none; }

@media (max-width: 420px) {
  .tray { padding-inline: var(--sp-4); }
  .tray__total { font-size: var(--step-1); }
}

/* ── Product detail dialog ────────────────────────────────────────────── */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: end center;
  pointer-events: none;
}
.sheet[data-open='true'] { pointer-events: auto; }

.sheet__panel {
  width: min(760px, 100%);
  max-height: 92dvh;
  overflow-y: auto;
  background: var(--paper);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: var(--sp-5);
  transform: translateY(100%);
  transition: transform 0.34s var(--ease);
}
.sheet[data-open='true'] .sheet__panel { transform: translateY(0); }
@media (min-width: 760px) {
  .sheet { place-items: center; }
  .sheet__panel {
    border-radius: var(--radius-lg);
    max-height: 86dvh;
    transform: translateY(24px);
    opacity: 0;
    transition: transform 0.34s var(--ease), opacity 0.24s var(--ease);
  }
  .sheet[data-open='true'] .sheet__panel { transform: translateY(0); opacity: 1; }
}

.sheet__grid { display: grid; gap: var(--sp-5); }
@media (min-width: 620px) { .sheet__grid { grid-template-columns: 240px 1fr; } }
.sheet__title { font-family: var(--display); font-size: var(--step-3); }
.notes { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; margin: 0; padding: 0; }

/* The boxed shot sits under the bottle: what it looks like, then what turns up. */
.boxed {
  margin: var(--sp-3) 0 0;
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: var(--sp-3);
  align-items: center;
}
.boxed figcaption { font-size: var(--step--1); color: var(--ink-faint); }

/* ── Reseller builder ─────────────────────────────────────────────────── */
.rows { display: grid; gap: var(--sp-3); }

.row-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: border-color 0.16s var(--ease);
}
.row-item[data-active='true'] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.row-item[data-disabled='true'] { opacity: 0.5; }

.stepper { display: flex; align-items: center; gap: var(--sp-1); }
.stepper input {
  width: 62px;
  height: 40px;
  text-align: center;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--paper);
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input[type=number] { -moz-appearance: textfield; }

.stepper button {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--rule);
  border-radius: 100px;
  background: var(--surface);
  cursor: pointer;
  transition: background-color 0.16s var(--ease);
}
.stepper button:hover:not(:disabled) { background: var(--paper-deep); }
.stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper svg { width: 15px; height: 15px; }

.gauge {
  position: sticky;
  top: calc(var(--nav-h) + var(--sp-3));
  z-index: 40;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--sp-4);
  display: grid;
  gap: var(--sp-3);
  box-shadow: var(--shadow-sm);
}
.gauge__stats { display: flex; gap: var(--sp-5); flex-wrap: wrap; }
.gauge__stat { display: grid; gap: 2px; }
.gauge__k { font-size: var(--step--1); color: var(--ink-faint); }

/* Says why Continue is disabled. A package is a fixed quantity, so it stays
   locked until the count is exact — that has to be legible, not a whisper. */
.gauge__hint {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
.gauge__hint[data-ready='true'] { color: var(--positive); }
.gauge__v { font-size: var(--step-1); }
.gauge__v.is-good { color: var(--positive); }
.gauge__v.is-over { color: var(--negative); }

/* ── Economics table ──────────────────────────────────────────────────── */
.tablewrap { overflow-x: auto; margin-top: var(--sp-5); }
table.data { width: 100%; border-collapse: collapse; min-width: 560px; }
table.data th, table.data td {
  text-align: left;
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--rule);
  font-size: var(--step-0);
}
table.data th {
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 400;
}
table.data td.num, table.data th.num { text-align: right; }
table.data tbody tr:last-child td { border-bottom: 0; }

/* ── Flow diagram ─────────────────────────────────────────────────────── */
.flow { display: grid; gap: var(--sp-2); list-style: none; margin: 0; padding: 0; }
.flow li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.flow__n {
  flex: none;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 100px;
  background: var(--paper-deep);
  font-size: var(--step--1);
}

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq { display: grid; gap: var(--sp-2); }
.faq details {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-5);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: var(--step-0);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--ink-faint); }
.faq details[open] summary::after { content: '\2212'; }
.faq p { margin-top: var(--sp-3); color: var(--ink-soft); max-width: var(--measure); }

/* ── Forms / checkout ─────────────────────────────────────────────────── */
.form { display: grid; gap: var(--sp-4); }
.field { display: grid; gap: var(--sp-2); }
.field label { font-size: var(--step--1); font-weight: 600; }
.field input, .field textarea, .field select {
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--surface);
  min-height: 48px;
}
.field input:focus, .field textarea:focus { outline-color: var(--ink); }
.field small { font-size: var(--step--1); color: var(--ink-faint); }
.field--error input { border-color: var(--negative); }
.field__err { font-size: var(--step--1); color: var(--negative); }

.pair { display: grid; gap: var(--sp-4); }
@media (min-width: 620px) { .pair { grid-template-columns: 1fr 1fr; } }

.checkout-grid { display: grid; gap: var(--sp-6); align-items: start; }
@media (min-width: 900px) { .checkout-grid { grid-template-columns: 1.25fr 0.75fr; gap: var(--sp-7); } }

.summary-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  position: sticky;
  top: calc(var(--nav-h) + var(--sp-4));
}

.notice {
  padding: var(--sp-4);
  border-radius: var(--radius);
  background: var(--paper-deep);
  color: var(--ink);
  border: 1px solid var(--rule);
  font-size: var(--step--1);
}
.notice--amber { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); }

/* ── Order status ─────────────────────────────────────────────────────── */
.track { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; }
.track li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: var(--sp-4);
  padding-bottom: var(--sp-5);
  position: relative;
}
.track li:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 12px; top: 22px; bottom: 4px;
  width: 2px;
  background: var(--rule);
}
.track__dot {
  width: 26px; height: 26px;
  border-radius: 100px;
  border: 2px solid var(--rule);
  background: var(--paper);
  display: grid; place-items: center;
  position: relative; z-index: 1;
}
.track li[data-done='true'] .track__dot { background: var(--positive); border-color: var(--positive); }
.track li[data-done='true'] .track__dot::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 100px;
  background: #fff;
}
.track__t { font-weight: 600; }
.track__d { font-size: var(--step--1); color: var(--ink-soft); }

/* ── Prose ────────────────────────────────────────────────────────────── */
.prose { max-width: var(--measure); }
.prose h2 { font-family: var(--display); font-size: var(--step-2); margin-top: var(--sp-6); margin-bottom: var(--sp-3); }
.prose h3 { font-size: var(--step-1); font-weight: 600; margin-top: var(--sp-5); margin-bottom: var(--sp-2); }
.prose p { margin-bottom: var(--sp-3); color: var(--ink-soft); }
.prose ul { margin: 0 0 var(--sp-4); padding-left: var(--sp-5); color: var(--ink-soft); }
.prose li { margin-bottom: var(--sp-2); }
.prose strong { color: var(--ink); }
