/* ==========================================================================
   Ticket Acess — stylesheet
   1. Tokens  2. Base  3. Header & footer  4. Poster  5. Product info
   6. Form controls  7. Seating plan  8. Accordions  9. Toast  10. Help page
   11. Responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  /* Monochrome palette inspired by the Music, Fashion, Film era: black-and-white film */
  --brand: #0f0f0f;            /* header */
  --on-brand: #ffffff;
  --ink: #111111;              /* main text, buttons */
  --ink-soft: #444444;         /* secondary text (9.7:1 on white) */
  --muted: #666666;            /* small print (5.7:1 on white) */
  --line: #e5e4e0;
  --field: #cfcfcb;
  --paper: #f3f2ee;            /* warm off-white surfaces */
  --accent: #111111;           /* checks, highlights */
  --danger: #a3261b;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;

  --page: 1080px;
  --header-h: 64px;
}

/* 2. Base ------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, select { font: inherit; color: inherit; }
h1, h2, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 8px 12px; background: #fff; }
.skip-link:focus { top: 12px; }

[hidden] { display: none !important; }

/* 3. Header & footer -------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--brand); color: var(--on-brand); }
.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  height: var(--header-h);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}
.site-nav { display: flex; gap: 24px; margin-left: auto; font-size: 14px; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }

.logo {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  transform: translate(-50%, -50%);
  text-decoration: none;
}
.logo__image {
  display: block;
  width: 100px;
  max-width: 44vw;
  height: auto;
  object-fit: contain;
}

/* 4. Poster ----------------------------------------------------------------- */
.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  max-width: var(--page);
  margin: 0 auto;
  padding: 32px 24px 56px;
}

.poster-img { display: block; width: 100%; height: auto; border-radius: 8px; background: var(--paper); }

/* 5. Product info ----------------------------------------------------------- */
.product__title { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.025em; }
.product__sub { margin-top: 8px; font-size: 16px; color: var(--ink-soft); }
.product__price { margin: 20px 0 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); font-size: 2rem; font-weight: 700; letter-spacing: -0.01em; }
.product__per { font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; }



.ticket-box {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid #d3eadb;
  border-radius: 12px;
  background: #f4faf6;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.ticket-box__title { margin-bottom: 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #2e7d4f; }
.ticket-box__apps { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.ticket-box__apps img { display: block; width: 136px; height: 40px; }

/* 6. Form controls ---------------------------------------------------------- */
.field { margin-bottom: 18px; }
.field__label { display: block; margin-bottom: 8px; font-size: 14px; color: var(--ink-soft); }
.select {
  width: 100%;
  height: 50px;
  padding: 0 44px 0 16px;
  border: 1px solid var(--field);
  border-radius: 10px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%237a7a7a' stroke-width='1.5'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 16px center;
  font-size: 15px;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.15s;
}
.select:hover { border-color: #8f8f8b; }
.select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.12); }

.section-tag {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--ink);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.buy__row { display: flex; gap: 10px; }
.qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 112px;
  height: 52px;
  padding: 0 6px;
  border: 1px solid var(--field);
  border-radius: 999px;
}
.qty__btn { width: 34px; height: 36px; padding: 0; border: 0; background: none; font-size: 18px; color: var(--ink-soft); cursor: pointer; }
.qty__btn:hover { color: var(--ink); }
.qty__value { font-size: 15px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 32px;
  border: 0;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { flex: 1; background: var(--ink); color: #fff; }
.btn--primary:hover { background: #000; }

.pay-icons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.pay-icons img { display: block; width: 38px; height: 24px; }

/* 7. Seating plan ----------------------------------------------------------- */
.plan { max-width: 640px; margin: 0 auto; padding: 0 20px; text-align: center; }
.plan::before { content: ""; display: block; max-width: 480px; margin: 0 auto 56px; border-top: 1px solid var(--line); }
.plan__title { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.3rem); font-weight: 400; line-height: 1.15; }
.plan__map { max-width: 480px; margin: 20px auto 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.plan__hint { margin-top: 10px; font-size: 13px; color: var(--muted); }
.plan__faq-title { margin-top: 56px; font-family: var(--serif); font-size: 1.6rem; font-weight: 400; }

.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 12px; font-size: 13px; color: var(--ink); }
.legend__item { display: inline-flex; align-items: center; gap: 6px; }
.legend__swatch { width: 12px; height: 12px; border-radius: 3px; background: var(--swatch); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }

.seatmap__svg { width: 100%; height: auto; }
.seatmap__stage { fill: var(--ink); }
.seatmap__stage-label { fill: #fff; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-anchor: middle; dominant-baseline: central; }
.seatmap__label { font-family: var(--sans); font-size: 10px; font-weight: 600; fill: #9a9994; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.seatmap__label--sm { font-size: 8.5px; }
.seatmap__label.is-on { fill: var(--label, #fff); }
.seatmap__label--floor { fill: var(--label, #fff); }
.seatmap__label--floor { font-size: 12px; letter-spacing: 0.2em; }
.seat-area { fill: var(--tier); stroke: #fff; stroke-width: 1.5; transition: fill-opacity 0.15s; }
.seat-area.is-muted { fill: #f1f0ec; }
.seat-area.is-available { fill-opacity: 0.9; cursor: pointer; }
.seat-area.is-available:hover,
.seat-area.is-available:focus-visible { fill-opacity: 1; outline: none; }
.seat-area.is-selected { fill: var(--ink); fill-opacity: 1; stroke: #fff; stroke-width: 2; }
.seatmap__label.is-selected { fill: #fff; }

/* 8. Accordions ------------------------------------------------------------- */
.accordion { max-width: 480px; margin: 12px auto 0; text-align: left; }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 0;
  border: 0;
  background: none;
  font-family: var(--serif);
  font-size: 17px;
  text-align: left;
  cursor: pointer;
}
.accordion__trigger svg { color: var(--muted); transition: transform 0.2s; }
.accordion__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.accordion__panel { padding: 0 0 18px; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.accordion__panel ul { padding-left: 18px; list-style: disc; }
.accordion__panel li { margin-bottom: 6px; }
.accordion__panel strong { color: var(--ink); font-weight: 600; }
.accordion__panel p { margin-top: 8px; }

.event-details { display: grid; gap: 8px; margin: 0; }
.event-details div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; }
.event-details dt { color: var(--muted); }
.event-details dd { margin: 0; color: var(--ink); }

.tier-list { display: grid; gap: 12px; padding: 0 !important; list-style: none !important; }
.tier-list li { display: flex; align-items: center; gap: 12px; margin: 0 !important; }
.tier-list__swatch { flex-shrink: 0; width: 12px; height: 12px; border-radius: 3px; background: var(--swatch); }
.tier-list__text { display: flex; flex-direction: column; flex: 1; line-height: 1.35; }
.tier-list__text strong { color: var(--ink); font-weight: 600; }
.tier-list__price { font-size: 14px; color: var(--ink); white-space: nowrap; }

/* 9. Toast ------------------------------------------------------------------ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  max-width: calc(100% - 32px);
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 0.2s, transform 0.2s;
}
.toast[data-tone="error"] { background: var(--danger); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* 10. Help page ------------------------------------------------------------- */
.help { max-width: 820px; margin: 0 auto; padding: 40px 24px 0; }
.help__title { font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 3.25rem); font-weight: 400; line-height: 1.1; }
.help__intro { margin-top: 6px; font-size: 16px; color: var(--ink-soft); }

.help-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0 40px; }
.help-card {
  display: flex;
  flex-direction: column;
  padding: 16px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.help-card:hover { border-color: #c9c8c3; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); }
.help-card__icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 16px; border-radius: 10px; background: var(--paper); color: var(--ink); }
.help-card__title { font-size: 16px; font-weight: 600; }
.help-card__text { margin-top: 2px; font-size: 14px; color: var(--ink-soft); }

.faq-group { margin-bottom: 36px; scroll-margin-top: calc(var(--header-h) + 16px); }
.faq-group__label { margin-bottom: 4px; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq .accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 60px;
  padding: 14px 0;
  border: 0;
  background: none;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}
.faq .accordion__trigger::after {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23777' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.2s;
}
.faq .accordion__trigger[aria-expanded="true"]::after { transform: rotate(180deg); }
.faq .accordion__trigger:hover { color: #000; }
.faq__answer { padding: 0 32px 18px 0; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.faq__answer .tier-list { margin-top: 4px; }

.help-contact {
  margin-top: 8px;
  padding: 32px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8f8f6;
  text-align: center;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.help-contact__title { font-family: var(--serif); font-size: 1.75rem; font-weight: 400; }
.help-contact p { margin-top: 6px; font-size: 16px; color: var(--ink-soft); }
.help-contact__btn { flex: none; margin-top: 20px; padding: 0 34px; }

/* 11. Trust checklist & mobile buy bar ------------------------------------- */
.checklist { display: grid; gap: 8px; margin-top: 18px; font-size: 14px; color: var(--ink); }
.checklist li { display: flex; gap: 8px; align-items: flex-start; }
.checklist svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); }

.buy-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(110%);
  transition: transform 0.25s ease;
}
.buy-bar.is-visible { transform: none; }
.buy-bar__info { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.buy-bar__section { overflow: hidden; font-size: 12px; color: var(--ink-soft); white-space: nowrap; text-overflow: ellipsis; }
.buy-bar__price { font-size: 17px; }
.buy-bar .btn { flex: none; height: 46px; padding: 0 26px; margin-left: auto; }

/* 12. Checkout -------------------------------------------------------------- */
body.is-locked { overflow: hidden; }
.page-checkout { background: var(--paper); }

.co { max-width: 1160px; margin: 0 auto; padding: 32px 24px 0; }
.co__title { margin-bottom: 22px; font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 2.75rem); font-weight: 400; line-height: 1.1; }
.co__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-areas: "tickets summary";
  gap: 28px;
  align-items: start;
}
.co__tickets { grid-area: tickets; }
.co__summary { grid-area: summary; position: sticky; top: calc(var(--header-h) + 20px); }

.co-card { padding: 24px 24px 26px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.co-card__label { margin-bottom: 18px; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

.co-event { display: flex; gap: 16px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.co-event__thumb { flex-shrink: 0; width: 82px; height: auto; border-radius: 4px; border: 1px solid var(--line); }
.co-event__title { font-size: 17px; font-weight: 600; line-height: 1.3; }
.co-event__meta { margin-top: 2px; font-size: 15px; color: var(--ink-soft); }


.co-specs { display: grid; gap: 10px; margin: 20px 0 0; font-size: 15px; }
.co-specs div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.co-specs dt { color: var(--muted); }
.co-specs dd { margin: 0; }

.co-sum { margin: 0; font-size: 15px; }
.co-sum div { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.co-sum dt { color: var(--ink-soft); }
.co-sum dd { margin: 0; color: var(--ink-soft); }
.co-sum__total { margin: 16px 0 20px !important; padding-top: 16px; border-top: 1px solid var(--line); }
.co-sum__total dt,
.co-sum__total dd { font-size: 20px; font-weight: 700; color: var(--ink) !important; }

.btn--block { width: 100%; flex: none; }
.co__buy { height: 60px; font-size: 17px; }
.co__pay-icons .pay-icons { justify-content: center; margin-top: 20px; }
.co__summary .checklist { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.co__change { display: block; margin-top: 18px; font-size: 14px; color: var(--ink-soft); text-align: center; }
.co__change:hover { color: var(--ink); }
.co__status { margin-top: 14px; padding: 10px 12px; border-radius: 8px; background: #fbeeec; font-size: 14px; color: var(--danger); text-align: center; }


.co--done,
.co--empty { max-width: 560px; padding-top: 48px; }
.co-done { text-align: center; }
.co-done p { color: var(--ink-soft); }
.co-done .co__title { margin-bottom: 10px; }
.co-done__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 16px; border-radius: 50%; background: var(--ink); color: #fff; }
.co-done__icon svg { width: 26px; height: 26px; }
.co-done__ref { margin-top: 10px; }
.co-done__specs { margin: 22px 0 24px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; }

/* Payment window */
.pay-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; }
.pay-modal__backdrop { position: absolute; inset: 0; background: rgba(17, 17, 17, 0.55); }
.pay-modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(520px, 100%);
  max-height: calc(100vh - 48px);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
.pay-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.pay-modal__title { font-size: 18px; font-weight: 600; }
.pay-modal__amount { margin-top: 2px; font-size: 13px; color: var(--ink-soft); }
.pay-modal__close { display: grid; flex-shrink: 0; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--paper); cursor: pointer; }
.pay-modal__close:hover { background: #e7e6e1; }
.pay-modal__body { position: relative; flex: 1; min-height: 420px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.pay-modal__iframe { display: block; width: 100%; height: 560px; border: 0; }
.pay-modal__loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; font-size: 14px; color: var(--ink-soft); background: #fff; }
.pay-modal__error { margin: 0 20px 12px; padding: 10px 12px; border-radius: 8px; background: #fbeeec; font-size: 14px; color: var(--danger); }
.pay-modal__foot { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 13. Responsive ------------------------------------------------------------ */
@media (max-width: 820px) {
  .product { grid-template-columns: 1fr; gap: 24px; padding-top: 16px; }
  .buy-bar { display: flex; }

  .co { padding: 20px 16px 0; }
  .co__grid { grid-template-columns: 1fr; grid-template-areas: "tickets" "summary"; gap: 16px; }
  .co__summary { position: static; }
  .co-card { padding: 20px 18px 22px; }
  .pay-modal { padding: 0; place-items: end stretch; }
  .pay-modal__panel { width: 100%; max-height: 94vh; border-radius: 16px 16px 0 0; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .site-header__inner { padding: 0 16px; }
  .site-nav { gap: 4px; font-size: 14px; }
  .site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0 0 10px; }
  .product { padding-left: 16px; padding-right: 16px; }
  .product__title { font-size: 2.1rem; }
  .product__price { margin: 16px 0 20px; padding-bottom: 20px; font-size: 1.8rem; }
  .select { font-size: 16px; }
  .qty { width: 104px; }

  .plan { padding: 0 16px; }
  .plan__map { padding: 6px; }
  .accordion__trigger { min-height: 52px; }
  .co-specs div { grid-template-columns: 96px 1fr; }
  .co-event__thumb { width: 68px; }
  .co-event__title { font-size: 16px; }
  .co-event__meta, .co-specs { font-size: 14px; }
  .event-details div { grid-template-columns: 100px 1fr; }
  .help { padding: 28px 16px 0; }
  .help-cards { grid-template-columns: 1fr; gap: 10px; }
  .help-card { display: grid; grid-template-columns: 42px 1fr; column-gap: 14px; align-items: center; padding: 14px 16px; }
  .help-card__icon { grid-row: span 2; margin-bottom: 0; }
  .faq .accordion__trigger { font-size: 16px; }
  .faq__answer { padding-right: 0; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
