/* SHOTBYADDICT — book.css
   Booking flow (book.html) + booking status pages (booking-confirmed.html, mock-checkout.html).
   Layout only; components and tokens come from base.css. */

/* ---------- shared bits ---------- */

/* ==========================================================================
   book.html
   ========================================================================== */
.booking { padding-top: calc(var(--header-h) + clamp(1.25rem, 4vw, 3rem)); padding-bottom: clamp(3rem, 8vw, 6rem); }
.booking__head { display: grid; gap: var(--s-3); }
.booking__title { font-size: clamp(2.75rem, 1.6rem + 6vw, 5.5rem); }

/* ---------- without scripts: notice + the price list ---------- */
.booking__nojs { margin-block: var(--s-5) clamp(1.75rem, 4vw, 3rem); max-width: 40rem; }
.nojs-pkgs { display: grid; border-top: 1px solid var(--line); }
.nojs-pkgs li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.25rem 1rem; padding-block: 0.875rem; border-bottom: 1px solid var(--line); }
.nojs-pkgs b { font-family: var(--font-display); font-size: var(--fs-xl, 1.5rem); font-weight: 400; text-transform: uppercase; letter-spacing: 0.01em; }
.nojs-pkgs span { color: var(--muted); font-size: var(--fs-sm); }

/* ---------- progress ---------- */
.progress { margin-block: var(--s-5) clamp(1.75rem, 4vw, 3rem); }
.progress__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); }
.progress__step {
  position: relative;
  display: grid;
  gap: 0.2rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.7rem 0 0.25rem;
  text-align: left;
  color: var(--muted);
  -webkit-tap-highlight-color: transparent;
}
.progress__step::before, .progress__step::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--line-strong); }
.progress__step::after { background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform var(--t-slow) var(--ease-out); }
.progress__step.is-done::after, .progress__step[aria-current="step"]::after { transform: scaleX(1); }
.progress__num { font-family: var(--font-mono); font-size: var(--fs-2xs); font-weight: 500; letter-spacing: 0.14em; }
.progress__label { font-size: var(--fs-2xs); font-weight: 800; font-stretch: 105%; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress__step.is-done .progress__num, .progress__step[aria-current="step"] .progress__num { color: var(--red); }
.progress__step[aria-current="step"] { color: var(--white); }
.progress__step:disabled { color: var(--faint); cursor: default; }
.progress__step:not(:disabled):not([aria-current]):hover { color: var(--white); }
@media (min-width: 640px) {
  .progress__list { gap: var(--s-4); }
  .progress__step { grid-template-columns: auto 1fr; align-items: baseline; gap: 0.75rem; padding-top: 0.9rem; }
  .progress__label { font-size: var(--fs-xs); font-stretch: 112%; letter-spacing: 0.1em; }
}

/* ---------- layout ---------- */
.booking__layout { display: grid; }
.booking__main { min-width: 0; }
.summary { display: none; }
@media (min-width: 1000px) {
  .booking__layout { grid-template-columns: minmax(0, 1fr) 21rem; gap: clamp(2rem, 4vw, 4.5rem); align-items: start; }
  .summary { display: block; position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

/* ---------- step panel ---------- */
.bstep__head { display: grid; gap: var(--s-2); margin-bottom: var(--s-5); }
.bstep__title { font-size: clamp(1.875rem, 1.4rem + 2.2vw, 2.75rem); }
.bstep__title:focus-visible { outline: none; }
.bstep__text { color: var(--muted); max-width: 36rem; }
.bstep__aside { margin-top: var(--s-5); font-size: var(--fs-sm); color: var(--muted); max-width: 36rem; }
.bstep > .notice { margin-bottom: var(--s-5); }
.bstep > .notice:focus-visible { outline: none; }
.bstep__retry { margin-top: var(--s-3); }
.bstep.is-enter { animation: bstep-in 560ms var(--ease-out); }
.bstep.is-enter[data-dir="back"] { animation-name: bstep-in-back; }
@keyframes bstep-in { from { opacity: 0; transform: translate3d(2.25rem, 0, 0); } }
@keyframes bstep-in-back { from { opacity: 0; transform: translate3d(-2.25rem, 0, 0); } }
@keyframes rise-in { from { opacity: 0; transform: translate3d(0, 1.25rem, 0); } }

/* ---------- step 1: packages ---------- */
.pkgs { display: grid; gap: var(--s-3); min-width: 0; margin: 0; padding: 0; border: 0; }
.pkg {
  --tier-color: var(--white);
  position: relative;
  display: grid;
  gap: var(--s-3);
  align-content: start;
  padding: 1.15rem 1.15rem 1.25rem;
  background: var(--ink-2);
  border: 1px solid var(--line);
  overflow: hidden;
  animation: rise-in 620ms var(--ease-out) backwards;
  animation-delay: calc(var(--i, 0) * 70ms);
  transition: border-color var(--t-med) linear, background-color var(--t-med) linear;
}
.pkg[data-tier="silver"] { --tier-color: var(--tier-silver); }
.pkg[data-tier="platinum"] { --tier-color: var(--tier-platinum); }
.pkg[data-tier="diamond"] { --tier-color: var(--tier-diamond); }
.pkg[data-tier="champion"] { --tier-color: var(--tier-champion); }
.pkg::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--tier-color); transform: scaleX(0.18); transform-origin: left; transition: transform var(--t-slow) var(--ease-out); }
.pkg:hover { border-color: var(--line-strong); }
.pkg.is-selected { border-color: var(--white); background: var(--ink-3); }
.pkg.is-selected::before { transform: scaleX(1); }
.pkg--skeleton { min-height: 12.5rem; animation: none; }
.pkg--skeleton::before { display: none; }
.pkg__input { position: absolute; top: 1rem; left: 1rem; width: 1px; height: 1px; margin: 0; opacity: 0; }
.pkg__label { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-3); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pkg__label::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* whole card is the tap target */
.pkg__input:focus-visible ~ .pkg__label::after { outline: 2px solid var(--white); outline-offset: -4px; }
.pkg__label .tier-mark { width: 2.75rem; height: 2.75rem; }
.pkg__names { display: grid; gap: 0.2rem; min-width: 0; }
.pkg__kind { font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.pkg[data-tier="champion"] .pkg__kind { color: var(--red); }
.pkg__name { font-family: var(--font-display); font-size: clamp(1.75rem, 1.5rem + 1vw, 2.125rem); line-height: 1; text-transform: uppercase; color: var(--white); }
.pkg__price { font-family: var(--font-display); font-size: clamp(2rem, 1.7rem + 1.4vw, 2.75rem); line-height: 1; color: var(--white); }
.pkg__desc { display: grid; gap: var(--s-3); }
.pkg__meta { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pkg__meta b { color: var(--white); font-weight: 500; }
.pkg__list { display: grid; gap: 0.4rem; margin: 0; padding: var(--s-3) 0 0; list-style: none; border-top: 1px solid var(--line); font-size: var(--fs-sm); line-height: 1.45; color: var(--text); }
.pkg__list li { position: relative; padding-left: 1.25rem; }
.pkg__list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.6rem; height: 2px; background: var(--red); }
.pkg__tick {
  position: absolute; right: 0.9rem; bottom: 0.9rem;
  width: 1.5rem; height: 1.5rem;
  display: grid; place-items: center;
  background: var(--red);
  transform: scale(0);
  transition: transform var(--t-med) var(--ease-snap);
}
.pkg__tick::after { content: ""; width: 0.7rem; height: 0.4rem; border-left: 2.5px solid var(--black); border-bottom: 2.5px solid var(--black); transform: translateY(-1px) rotate(-45deg); }
.pkg.is-selected .pkg__tick { transform: scale(1); }
@media (min-width: 700px) {
  .pkgs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
  .pkg { padding: 1.4rem 1.4rem 1.5rem; }
  .pkg__tick { right: 1.15rem; bottom: 1.15rem; }
}

/* ---------- step 2: calendar ---------- */
.when { display: grid; gap: var(--s-6); }
@media (min-width: 760px) {
  .when { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
}
.cal__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-3); }
.cal__month { font-size: clamp(1.625rem, 1.4rem + 1vw, 2rem); }
.cal__nav {
  flex: none;
  width: 2.75rem; height: 2.75rem;
  display: grid; place-items: center;
  color: var(--white);
  border: 1px solid var(--line-strong);
  font-size: 1.125rem;
  transition: background-color var(--t-fast), color var(--t-fast), transform var(--t-med) var(--ease-out);
}
.cal__nav:hover { background: var(--white); color: var(--black); }
.cal__nav:active { transform: scale(0.92); }
.cal__nav:disabled { opacity: 0.28; pointer-events: none; }
.cal__load { height: 2px; margin-bottom: var(--s-2); background: var(--line); overflow: hidden; }
.cal__load i { display: block; width: 40%; height: 100%; background: var(--red); transform: translateX(-100%); }
.cal.is-loading .cal__load i { animation: cal-load 900ms linear infinite; }
@keyframes cal-load { to { transform: translateX(250%); } }
.cal__row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; margin-bottom: 2px; }
.cal__dow { padding-block: 0.4rem; font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: 0.1em; text-transform: uppercase; text-align: center; color: var(--muted); }
.cal__cell { aspect-ratio: 1; min-height: 2.75rem; }
.cal__day {
  position: relative;
  display: grid; place-items: center;
  width: 100%; height: 100%;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
  color: var(--dim);
  border: 1px solid transparent;
  cursor: default;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-med) var(--ease-out), opacity var(--t-med) linear;
}
.cal__day.is-open { color: var(--white); font-weight: 700; background: var(--ink-2); border-color: var(--line-strong); cursor: pointer; }
.cal__day.is-open:hover { background: var(--ink-3); border-color: var(--white); }
.cal__day.is-open:active { transform: scale(0.9); }
.cal__day.is-selected { background: var(--red); border-color: var(--red); color: var(--black); }
.cal__day.is-selected:hover { background: var(--red); border-color: var(--white); }
.cal__day.is-today::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.cal__day:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; box-shadow: none; z-index: 1; }
.cal.is-loading .cal__day { opacity: 0.45; }
.cal__state { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-3); }
.cal__legend { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); margin-top: var(--s-3); font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.cal__key::before { content: ""; display: inline-block; width: 0.7rem; height: 0.7rem; margin-right: 0.5em; vertical-align: -1px; background: var(--ink-2); border: 1px solid var(--line-strong); }
.cal__key--sel::before { background: var(--red); border-color: var(--red); }
.cal__key--off::before { background: transparent; border: 1px dashed var(--dim); }
@media (min-width: 480px) {
  .cal__row { gap: 5px; margin-bottom: 5px; }
}

/* ---------- step 2: start times ---------- */
.times { scroll-margin-top: calc(var(--header-h) + 1rem); min-width: 0; }
.times__title { font-size: clamp(1.625rem, 1.4rem + 1vw, 2rem); }
.times__title:focus-visible { outline: none; }
.times__tz { margin-top: 0.4rem; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.times__body { display: grid; gap: var(--s-4); margin-top: var(--s-4); }
.times.is-empty .times__body { min-height: 6rem; border: 1px dashed var(--line-strong); }
.times__label { margin-bottom: var(--s-2); font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.times__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); }
.times__group { animation: rise-in 520ms var(--ease-out) backwards; }
.times__group:nth-child(2) { animation-delay: 60ms; }
.times__group:nth-child(3) { animation-delay: 120ms; }
.slot { position: relative; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.slot__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.slot__text {
  display: grid; place-items: center;
  min-height: 3rem;
  padding-inline: 0.25rem;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--white);
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-med) var(--ease-out);
}
.slot:hover .slot__text { border-color: var(--white); background: var(--ink-3); }
.slot:active .slot__text { transform: scale(0.94); }
.slot__input:checked + .slot__text { background: var(--red); border-color: var(--red); color: var(--black); font-weight: 700; }
.slot__input:focus-visible + .slot__text { outline: 2px solid var(--white); outline-offset: 2px; }
.times__kept { font-size: var(--fs-sm); color: var(--muted); }

/* ---------- step 4: review ---------- */
.review { display: grid; gap: var(--s-6); }
.review__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 2.75rem; border-bottom: 1px solid var(--line-strong); }
.review__title { font-size: 1.5rem; }
.review__edit {
  min-height: 2.75rem;
  padding-inline: 0.5rem;
  margin-right: -0.5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}
.review__edit:hover { color: var(--red); }
.review .kv dd { white-space: pre-line; }
.review__pay { padding: 2.25rem 1.4rem 1.1rem; background: var(--ink-2); border: 1px solid var(--line); }
.review__pay .review__title { margin-bottom: var(--s-2); }
.money { display: grid; margin: 0; }
.money > div { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); padding-block: 0.7rem; border-bottom: 1px solid var(--line); }
.money > div:last-child { border-bottom: 0; }
.money dt { font-size: var(--fs-sm); color: var(--text); }
.money dd { flex: none; font-family: var(--font-mono); font-weight: 500; font-variant-numeric: tabular-nums; color: var(--white); }
.money__due dt { font-weight: 800; font-stretch: 112%; letter-spacing: 0.06em; text-transform: uppercase; color: var(--white); }
.money .money__due dd { font-family: var(--font-display); font-size: 2.5rem; line-height: 1; }
.policy { display: grid; gap: var(--s-3); }
.policy__text { padding: 1rem 1.1rem; background: var(--ink-2); border-left: 3px solid var(--red); font-size: var(--fs-sm); line-height: 1.65; color: var(--text); }
.review__fine { font-size: var(--fs-sm); color: var(--muted); max-width: 38rem; }

/* ---------- step nav ---------- */
.bnav { display: grid; gap: var(--s-2); margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.bnav__row { display: flex; gap: var(--s-3); }
.bnav__back { flex: none; }
.bnav__next { flex: 1; }
.bnav__sum { font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bnav__msg { font-size: var(--fs-sm); font-weight: 600; line-height: 1.35; color: var(--danger); }
.bnav__msg::before { content: "! "; font-family: var(--font-mono); }
@media (max-width: 999.98px) {
  .bnav {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom));
    background: var(--black);
    border-top-color: var(--line-strong);
  }
}
@media (min-width: 1000px) {
  .bnav__sum { display: none; }
  .bnav__row { justify-content: space-between; }
  .bnav__next { flex: 0 1 auto; min-width: 17rem; margin-left: auto; }
}

/* ---------- summary (desktop) ---------- */
.summary__card { display: grid; gap: var(--s-4); padding: 2rem 1.5rem 1.5rem; background: var(--ink); border: 1px solid var(--line); }
.summary__rec { display: flex; align-items: center; gap: 0.6em; font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.summary__pkg { display: flex; align-items: center; gap: var(--s-3); min-height: 3.25rem; }
.summary__mark:empty { display: none; }
.summary__name { font-family: var(--font-display); font-size: 2.25rem; line-height: 1; text-transform: uppercase; color: var(--white); }
.summary__kv dd { font-size: var(--fs-sm); }
.summary__due { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); }
.summary__due span { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.summary__due b { font-family: var(--font-display); font-weight: 400; font-size: 3rem; line-height: 1; color: var(--white); }
.summary__fine { font-size: var(--fs-sm); line-height: 1.5; color: var(--muted); }

/* ==========================================================================
   booking-confirmed.html + mock-checkout.html
   ========================================================================== */
.status-page { padding-top: calc(var(--header-h) + clamp(1.5rem, 5vw, 4rem)); padding-bottom: clamp(3.5rem, 9vw, 7rem); min-height: 80svh; }
.result { display: grid; gap: var(--s-5); }
.result > * { animation: rise-in 700ms var(--ease-out) backwards; }
.result > :nth-child(2) { animation-delay: 70ms; }
.result > :nth-child(3) { animation-delay: 140ms; }
.result > :nth-child(4) { animation-delay: 210ms; }
.result > :nth-child(5) { animation-delay: 280ms; }
.result > :nth-child(n+6) { animation-delay: 350ms; }
.result__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); }
.result__title { font-size: clamp(3rem, 1.6rem + 8vw, 6.5rem); }
.result__title:focus-visible { outline: none; }
.result__lead { font-size: var(--fs-lg); line-height: 1.45; color: var(--text); max-width: 36rem; }
.result__wait { display: flex; align-items: center; gap: var(--s-3); color: var(--muted); }
.slate { padding: 2.25rem 1.4rem 1rem; background: var(--ink-2); border: 1px solid var(--line); }
.slate__ref { margin-bottom: var(--s-2); font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.slate .kv > div:last-child { border-bottom: 0; }
.result__actions { display: grid; gap: var(--s-3); }
@media (min-width: 640px) {
  .slate { padding: 2.25rem 2rem 1.25rem; }
  .result__actions { display: flex; flex-wrap: wrap; }
}
.nexts { display: grid; margin: 0; padding: 0; list-style: none; counter-reset: nexts; border-top: 1px solid var(--line); }
.nexts__title { font-size: var(--fs-xl); margin-top: var(--s-4); }
.nexts li { position: relative; display: grid; gap: 0.2rem; padding: 1.1rem 0 1.1rem 3.5rem; border-bottom: 1px solid var(--line); counter-increment: nexts; }
.nexts li::before { content: "0" counter(nexts); position: absolute; left: 0; top: 0.85rem; font-family: var(--font-display); font-size: 2rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.25px var(--white); }
@supports not (-webkit-text-stroke: 1px #fff) { .nexts li::before { color: var(--white); } }
.nexts b { font-weight: 800; font-stretch: 112%; letter-spacing: 0.04em; text-transform: uppercase; color: var(--white); }
.nexts span { color: var(--muted); }
.result__links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }

/* mock checkout: loud, obviously not real */
.mock { position: relative; display: grid; gap: var(--s-5); padding: 0 0 1.5rem; background: var(--ink); border: 2px dashed var(--red); }
.mock__tape { background: var(--red); color: var(--black); border: 0; font-weight: 700; }
.mock__body { display: grid; gap: var(--s-5); padding-inline: clamp(1.1rem, 4vw, 2rem); }
.mock__title { font-size: clamp(2.25rem, 1.4rem + 5vw, 4rem); }
.mock__note { color: var(--muted); max-width: 34rem; }
.mock__cancel { justify-self: start; }

/* narrow phones: Back collapses to its arrow so the pay button always fits */
.bnav__next { min-width: 0; }
@media (max-width: 479.98px) {
  .bnav__back { padding-inline: 1.05rem; }
  .bnav__back-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .bnav__next { padding-inline: 0.75rem; letter-spacing: 0.05em; }
}

/* ---------- bookings switched off (payments_ready:false from /api/config) ---------- */
.booking__closed { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); justify-items: start; max-width: 44rem; margin-block: var(--s-5) clamp(1.75rem, 4vw, 3rem); padding: 1.25rem 1.25rem 1.4rem; border-left-width: 4px; }
.booking__closed[hidden] { display: none; }
.booking__closed-title { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); line-height: 1.05; color: var(--white); }
.booking__closed p { color: var(--text); max-width: 38rem; }
.booking__closed .btn { max-width: 100%; white-space: normal; text-align: center; }
[data-closed-mode] .progress,
[data-closed-mode] .bnav,
[data-closed-mode] .summary,
[data-closed-mode] .pkg__tick { display: none; }
[data-closed-mode] .booking__layout { grid-template-columns: minmax(0, 1fr); }
[data-closed-mode] .pkg__label { cursor: default; }
[data-closed-mode] .pkg__label::after { display: none; }
[data-closed-mode] .pkg:hover { border-color: var(--line); }
