/*
  Matinee: pricing page for an online course platform (Screenery template)
  A Victorian playhouse: deep velvet for the auditorium sections, programme paper for the reading sections, gilt for
  the fixed chrome. Seats are coloured by price band, the way box-office plans are. Abril Fatface for the bill matter,
  Rosarivo for everything you read.

  Contents
   1. Tokens          5. Hero and the plan        9. Add-ons, tax, currency
   2. Base            6. Tickets                 10. Questions
   3. Components      7. Estimator               11. Box office
   4. Header          8. Comparison              12. Footer, motion, narrow screens
*/

/* ---------- 1. Tokens ---------- */
:root {
  /* auditorium */
  --velvet-950: #1c0508;
  --velvet-900: #2a080d;
  --velvet-800: #3d0d15;
  --velvet-700: #561320;
  --velvet: #7a1424;
  --cream: #f3e6cf;
  --cream-2: #d9c6a8;         /* secondary text on velvet, 9:1 on velvet-900 */
  --gilt: #c99a3e;            /* frames and rules only */
  --gilt-lt: #e6c06a;         /* gilt text on velvet */
  --gilt-dk: #75510f;         /* gilt text on paper */

  /* programme paper */
  --paper: #f5ecda;
  --paper-2: #ebdfc6;
  --paper-hi: #fbf5e8;
  --ink: #23130f;
  --ink-2: #5a4436;
  --rule: #c9b593;

  /* price bands, as printed on the plan */
  --band-st: #e0566a;  --band-st-dk: #a3192b;
  --band-dc: #e6c06a;  --band-dc-dk: #8a6316;
  --band-uc: #5fb7a2;  --band-uc-dk: #2b6e60;
  --band-bx: #d99a62;  --band-bx-dk: #8a4a1f;   /* mahogany: the panelled boxes */

  --ok: #2b6e60;
  --bad: #a3192b;
  --bad-lt: #ff9aa6;

  /* type */
  --display: 'Abril Fatface', 'Rosarivo', Georgia, serif;
  --serif: 'Rosarivo', Georgia, 'Times New Roman', serif;
  --t-xs: 0.8125rem;   /* 13px meta */
  --t-sm: 0.9375rem;   /* 15px */
  --t-md: 1.0625rem;   /* 17px body */
  --t-lg: 1.3rem;
  --t-xl: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  --t-2xl: clamp(2.5rem, 1.4rem + 4.4vw, 5.25rem);

  /* space and shape */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 5rem; --s-9: 7rem;
  --r-1: 3px; --r-2: 6px; --r-3: 12px;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 10px 30px -12px rgba(35, 19, 15, 0.35), 0 2px 6px -2px rgba(35, 19, 15, 0.18);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--velvet-900); color: var(--cream);
  font: 400 var(--t-md)/1.6 var(--serif); font-variant-numeric: lining-nums;
  scrollbar-color: var(--gilt) var(--velvet-950);
}
::selection { background: var(--gilt-lt); color: var(--velvet-950); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--velvet-950); }
::-webkit-scrollbar-thumb { background: var(--gilt); border: 3px solid var(--velvet-950); border-radius: 8px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.04; margin: 0; text-wrap: balance; letter-spacing: 0.005em; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gilt-lt); outline-offset: 3px; border-radius: 2px; }
.paper :focus-visible, .extras :focus-visible { outline-color: var(--velvet); }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: var(--s-4); top: -4rem; z-index: 50; background: var(--gilt-lt); color: var(--velvet-950); padding: var(--s-2) var(--s-4); }
.skip:focus { top: var(--s-4); }
[hidden] { display: none !important; }

/* ---------- 3. Components ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 2.75rem; padding: 0.55rem 1.2rem; border-radius: var(--r-1); border: 1.5px solid transparent;
  font: 400 var(--t-sm)/1.2 var(--serif); letter-spacing: 0.02em; text-decoration: none;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--gilt { background: var(--gilt-lt); color: var(--velvet-950); border-color: var(--gilt-lt); }
.btn--gilt:hover { background: #f1d48c; }
.btn--velvet { background: var(--velvet); color: var(--cream); border-color: var(--velvet); }
.btn--velvet:hover { background: var(--velvet-700); }
.btn--line { background: transparent; color: var(--velvet); border-color: var(--velvet); }
.btn--line:hover { background: var(--velvet); color: var(--cream); }
.btn--line-light { background: transparent; color: var(--cream); border-color: var(--gilt-lt); }
.btn--line-light:hover { background: var(--gilt-lt); color: var(--velvet-950); }
.btn--big { min-height: 3.25rem; padding-inline: 1.6rem; font-size: var(--t-md); }
.btn[disabled] { opacity: .6; cursor: progress; }

.field { display: grid; gap: var(--s-1); }
.field label { font-size: var(--t-sm); }
.field small { color: inherit; opacity: .8; font-size: var(--t-xs); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 2.75rem; padding: 0.55rem 0.75rem; border-radius: var(--r-1);
  border: 1.5px solid var(--cream-2); background: var(--velvet-950); color: var(--cream); caret-color: var(--gilt-lt);
}
.field input::placeholder, .field textarea::placeholder { color: #b8a183; }
.field [aria-invalid="true"] { border-color: var(--bad-lt); }
.err { color: var(--bad-lt); font-size: var(--t-sm); line-height: 1.35; }
.select { position: relative; }
.select select { appearance: none; padding-right: 2.5rem; }
.select .i { position: absolute; right: 0.75rem; top: 50%; translate: 0 -50%; pointer-events: none; color: var(--gilt-lt); }
.check { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--t-sm); line-height: 1.45; cursor: pointer; }
.check input { width: 1.25rem; height: 1.25rem; margin: 0.1rem 0 0; accent-color: var(--gilt-lt); flex: none; }

/* pressed-button groups: billing, currency, compare switch */
.billing, .cur, .cmp-switch { display: inline-flex; border: 1.5px solid var(--gilt); border-radius: var(--r-1); padding: 3px; gap: 3px; }
.billing button, .cur button, .cmp-switch button {
  border: 0; background: transparent; padding: 0.45rem 0.9rem; min-height: 2.5rem; border-radius: 2px;
  color: var(--cream); font-size: var(--t-sm); transition: background-color .25s var(--ease), color .25s var(--ease);
}
.billing button span { font-style: italic; color: var(--gilt-lt); margin-left: .3em; }
.billing [aria-pressed="true"], .cur [aria-pressed="true"] { background: var(--gilt-lt); color: var(--velvet-950); }
.billing [aria-pressed="true"] span { color: var(--velvet-800); }

/* ---------- 4. Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: var(--s-5);
  padding: var(--s-3) var(--gutter); background: var(--velvet-950); color: var(--cream);
  border-bottom: 1px solid rgba(201, 154, 62, .45);
}
.mark { display: grid; text-decoration: none; line-height: 1; }
.mark__word { font: 400 1.65rem/1 var(--display); color: var(--gilt-lt); }
.mark__sub { font-size: var(--t-xs); font-style: italic; color: var(--cream-2); margin-top: 3px; }
.nav { display: flex; gap: var(--s-5); margin-left: auto; font-size: var(--t-sm); }
.nav a { text-decoration: none; padding-block: var(--s-2); }
.nav a:hover { color: var(--gilt-lt); text-decoration: underline; }
.cur button { padding: 0.3rem 0.6rem; min-height: 2.1rem; font-size: var(--t-xs); letter-spacing: .06em; }
.top__cta { min-height: 2.5rem; }

/* ---------- 5. Hero and the plan ---------- */
.hero {
  position: relative; color: var(--cream); overflow: clip;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-6) var(--s-7); align-items: center;
  padding: var(--s-7) var(--gutter) var(--s-8);
  /* curtain folds at the edges: the house tabs, drawn not photographed */
  background:
    radial-gradient(120% 70% at 62% 105%, rgba(230, 192, 106, .10), transparent 60%),
    repeating-linear-gradient(90deg, rgba(0,0,0,.20) 0 14px, rgba(255,255,255,.025) 14px 22px, rgba(0,0,0,.12) 22px 34px) left / 34px 100% no-repeat,
    var(--velvet-900);
}
.hero::before, .hero::after { /* the two curtain legs */
  content: ""; position: absolute; top: 0; bottom: 0; width: clamp(14px, 2.4vw, 38px); pointer-events: none;
  background: repeating-linear-gradient(90deg, #4a0d17 0 6px, #2a070c 6px 11px, #5d1220 11px 15px);
  box-shadow: inset -6px 0 12px rgba(0,0,0,.45);
}
.hero::before { left: 0; }
.hero::after { right: 0; transform: scaleX(-1); }
.hero__text { max-width: 34rem; display: grid; gap: var(--s-5); justify-self: end; }
.hero h1 { font-size: var(--t-2xl); color: var(--cream); }
.hero__lede { color: var(--cream-2); max-width: 60ch; }
.billing { justify-self: start; }
.hero__note { font-size: var(--t-sm); color: var(--cream-2); font-style: italic; }

.key { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(201,154,62,.5); }
.key li { border-bottom: 1px solid rgba(201,154,62,.5); }
.key__row {
  width: 100%; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "dot name price" "dot lim price";
  column-gap: var(--s-3); align-items: center; text-align: left; border: 0; background: transparent; color: var(--cream);
  padding: var(--s-3) var(--s-2); transition: background-color .3s var(--ease);
}
.key__row:hover { background: rgba(230,192,106,.07); }
.key__row[aria-pressed="true"] { background: rgba(230,192,106,.13); }
.key__row .dot { grid-area: dot; }
.key__name { grid-area: name; font: 400 var(--t-lg)/1.15 var(--display); }
.key__lim { grid-area: lim; font-size: var(--t-sm); color: var(--cream-2); }
.key__price { grid-area: price; font-size: var(--t-lg); color: var(--gilt-lt); text-align: right; font-variant-numeric: tabular-nums; }
.key li:last-child .key__price { font-size: var(--t-sm); max-width: 9rem; line-height: 1.3; }
.dot { width: 1rem; height: 1rem; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 3px rgba(255,255,255,.06); }
.dot--st { background: var(--band-st); } .dot--dc { background: var(--band-dc); }
.dot--uc { background: var(--band-uc); } .dot--bx { background: var(--band-bx); }
.key__row[aria-pressed="true"] .dot { box-shadow: 0 0 0 3px var(--velvet-900), 0 0 0 5px var(--gilt-lt); }

.plan { margin: 0; display: grid; gap: var(--s-3); }
.plan__head { display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; font-size: var(--t-sm); color: var(--cream-2); border-bottom: 1px solid rgba(201,154,62,.5); padding-bottom: var(--s-2); }
.plan__head span:first-child { color: var(--gilt-lt); font-family: var(--display); font-size: var(--t-lg); line-height: 1.1; }
.plan__svg, .est__svg { width: 100%; height: auto; display: block; overflow: visible; }

/* the reused seat symbol: fills and opacities come in as custom properties */
.stage path { fill: #120305; stroke: var(--gilt); stroke-width: 2; }
.stage text { fill: var(--gilt-lt); font: 400 15px var(--serif); letter-spacing: .4em; text-anchor: middle; }
.lv { transition: opacity .6s var(--ease); }
.lv text { font: 400 10px var(--serif); fill: var(--cream-2); text-anchor: middle; opacity: .8; }
.lv-st { fill: var(--band-st); opacity: var(--o-st, 1); }
.lv-dc { fill: var(--band-dc); opacity: var(--o-dc, 1); }
.lv-uc { fill: var(--band-uc); opacity: var(--o-uc, 1); }
.lv-bx { fill: var(--band-bx); opacity: var(--o-bx, 1); }
.lv-bx .box { fill: rgba(0,0,0,.35); stroke: var(--band-bx); stroke-width: 1.5; }
[data-sec="stalls"] { --o-dc: .32; --o-uc: .32; --o-bx: .32; }
[data-sec="dress"]  { --o-st: .32; --o-uc: .32; --o-bx: .32; }
[data-sec="upper"]  { --o-st: .32; --o-dc: .32; --o-bx: .32; }
[data-sec="boxes"]  { --o-st: .32; --o-dc: .32; --o-uc: .32; }

.plan__labels text { font: 400 22px var(--display); letter-spacing: .14em; text-anchor: middle; fill: var(--cream); paint-order: stroke; stroke: var(--velvet-900); stroke-width: 7px; stroke-linejoin: round; pointer-events: none; }
.plan__labels .sm { font-size: 13px; letter-spacing: .2em; stroke-width: 5px; }

/* the follow spot: glides to the chosen section (signature moment) */
.spot { mix-blend-mode: screen; opacity: .62; pointer-events: none; transition: cx .9s var(--ease), cy .9s var(--ease), r .9s var(--ease); }
.hit { fill: transparent; cursor: pointer; outline: none; }
.hit:hover { fill: rgba(255, 241, 196, .06); }
.hit:focus-visible { stroke: var(--gilt-lt); stroke-width: 3; stroke-dasharray: 6 5; }

.plan__readout { display: grid; grid-template-columns: 1fr auto; gap: 0 var(--s-5); align-items: end; border-top: 1px solid rgba(201,154,62,.5); padding-top: var(--s-3); }
.plan__sec { font: 400 var(--t-lg)/1.1 var(--display); color: var(--gilt-lt); }
.plan__line { color: var(--cream-2); font-size: var(--t-sm); grid-column: 1; }
.plan__go { grid-column: 2; grid-row: 1 / 3; display: inline-flex; gap: var(--s-2); align-items: center; font-size: var(--t-sm); min-height: 2.75rem; color: var(--cream); }
.plan__go:hover { color: var(--gilt-lt); }

/* ---------- section scaffolding ---------- */
.paper { background: var(--paper); color: var(--ink); }
.sections, .compare, .faq { padding: var(--s-9) 0; }
.sec-head { display: grid; gap: var(--s-4); max-width: 46rem; margin-bottom: var(--s-7); }
.sec-head h2 { font-size: var(--t-xl); color: var(--velvet); }
.sec-head p { color: var(--ink-2); max-width: 62ch; }
.sec-head--light h2 { color: var(--gilt-lt); }
.sec-head--light p { color: var(--cream-2); }
.sec-head a { color: var(--velvet); }

/* ---------- 6. Tickets ---------- */
.tickets { display: grid; gap: var(--s-5); }
.ticket {
  --notch: 14px;
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 17rem;
  background: var(--paper-hi); border: 1.5px solid var(--ink); border-radius: var(--r-2);
  box-shadow: var(--shadow);
  /* two half-circle notches at the perforation */
  -webkit-mask: radial-gradient(circle var(--notch) at calc(100% - 17rem) 0, transparent 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at calc(100% - 17rem) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle var(--notch) at calc(100% - 17rem) 0, transparent 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at calc(100% - 17rem) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.ticket.is-picked { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--velvet), var(--shadow); }
.ticket__main { padding: var(--s-6) var(--s-6) var(--s-5); display: grid; gap: var(--s-3); align-content: start; }
.ticket__rows { font-size: var(--t-sm); font-style: italic; color: var(--ink-2); margin-top: calc(-1 * var(--s-2)); }
.ticket h3 { font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem); color: var(--ink); }
.ticket[data-plan="upper"] h3 { color: var(--band-uc-dk); }
.ticket[data-plan="dress"] h3 { color: var(--band-dc-dk); }
.ticket[data-plan="stalls"] h3 { color: var(--band-st-dk); }
.ticket[data-plan="boxes"] h3 { color: var(--band-bx-dk); }
.ticket__for { max-width: 62ch; color: var(--ink); }
.ticket__stamp { display: flex; gap: var(--s-3); align-items: flex-start; max-width: 64ch; padding: var(--s-3) var(--s-4); border: 1.5px solid var(--gilt-dk); border-radius: var(--r-1); color: var(--gilt-dk); background: rgba(201,154,62,.1); }
.ticket__stamp .i { margin-top: .2em; width: 1.3em; height: 1.3em; }
.ticket__lims { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); margin: var(--s-2) 0; font-variant-numeric: tabular-nums; }
.ticket__lims dt { font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.ticket__lims dd { margin: 0; font-size: var(--t-md); }
.ticket__view { font-size: var(--t-sm); color: var(--ink-2); border-top: 1px dashed var(--rule); padding-top: var(--s-3); max-width: 70ch; }
.ticket__view strong { color: var(--ink); font-weight: 400; font-style: italic; }
.ticket__stub {
  display: grid; align-content: center; gap: var(--s-3); padding: var(--s-6) var(--s-5);
  border-left: 2px dashed var(--rule); background: var(--paper);
}
.ticket--rec .ticket__stub { background: var(--velvet); color: var(--cream); border-left-color: var(--velvet-700); }
.ticket--rec .ticket__eq { color: var(--cream-2); }
.ticket--rec .btn--velvet { background: var(--gilt-lt); color: var(--velvet-950); border-color: var(--gilt-lt); }
.ticket--rec .btn--velvet:hover { background: #f1d48c; }
.ticket__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--s-2); font: 400 2.6rem/1 var(--display); font-variant-numeric: tabular-nums; }
.ticket__price small { font: italic 400 var(--t-sm) var(--serif); }
.ticket__eq { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.45; }

/* ---------- 7. Estimator ---------- */
.est { padding: var(--s-9) 0; color: var(--cream); background: radial-gradient(90% 60% at 75% 0%, rgba(230,192,106,.08), transparent 60%), var(--velvet-900); }
.est__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-7); align-items: start; }
.est__inputs { display: grid; gap: var(--s-5); }
.est__inputs h2 { font-size: var(--t-xl); color: var(--gilt-lt); }
.est__inputs > p { color: var(--cream-2); }
.range { display: grid; grid-template-columns: 1fr 7.5rem; gap: var(--s-3); align-items: center; }
.range input[type="number"] { text-align: right; font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 2.75rem; background: transparent; padding: 0; border: 0; min-height: 0; accent-color: var(--gilt-lt); }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(90deg, var(--gilt-lt) var(--fill, 30%), rgba(217,198,168,.3) var(--fill, 30%)); border-radius: 2px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--gilt-lt); border: 3px solid var(--velvet-900); box-shadow: 0 0 0 1.5px var(--gilt-lt); }
input[type="range"]::-moz-range-track { height: 4px; background: rgba(217,198,168,.3); border-radius: 2px; }
input[type="range"]::-moz-range-progress { height: 4px; background: var(--gilt-lt); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--gilt-lt); border: 3px solid var(--velvet-900); }
.est__fine { font-size: var(--t-sm); color: var(--cream-2); font-style: italic; }

.est__out { display: grid; gap: var(--s-4); background: var(--velvet-950); border: 1.5px solid rgba(201,154,62,.55); border-radius: var(--r-3); padding: var(--s-5); }
.est__map { margin: calc(-1 * var(--s-2)) 0 0; }
.you circle { fill: none; stroke: var(--cream); stroke-width: 2.5; }
.you .you__core { fill: var(--cream); stroke: none; }
.you { transition: transform .9s var(--ease); }
.est__verdict { font: 400 var(--t-xl)/1.1 var(--display); color: var(--gilt-lt); text-wrap: balance; }
.est__why { color: var(--cream-2); }
.sums { width: 100%; border-collapse: collapse; font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
.sums th, .sums td { text-align: left; padding: var(--s-2) var(--s-2); border-bottom: 1px solid rgba(201,154,62,.3); vertical-align: top; }
.sums thead th { font-weight: 400; font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--cream-2); }
.sums td:last-child, .sums th:last-child { text-align: right; white-space: nowrap; }
.sums tbody th { font-weight: 400; white-space: nowrap; }
.sums tbody th .dot { width: .7rem; height: .7rem; margin-right: .45rem; vertical-align: -.05rem; }
.sums .no { color: #c9b190; }
.sums .no td:nth-child(2) { font-style: italic; }
.sums .best { background: rgba(230,192,106,.12); }
.sums .best th, .sums .best td:last-child { color: var(--gilt-lt); }
.warn { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3) var(--s-4); border: 1.5px solid var(--bad-lt); border-radius: var(--r-1); color: #ffd2d7; font-size: var(--t-sm); }
.warn .i { color: var(--bad-lt); margin-top: .15em; }
.est__out .btn { justify-self: start; }

/* ---------- 8. Comparison ---------- */
.cmp-switch { display: none; border-color: var(--velvet); margin-bottom: var(--s-4); flex-wrap: wrap; }
.cmp-switch button { color: var(--velvet); }
.cmp-switch [aria-pressed="true"] { background: var(--velvet); color: var(--cream); }
.cmp-frame { border: 1.5px solid var(--ink); border-radius: var(--r-2); background: var(--paper-hi); }
.cmp { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: var(--t-sm); }
.cmp th, .cmp td { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.cmp thead th { position: sticky; top: 4.1rem; background: var(--paper-hi); z-index: 2; font: 400 var(--t-lg)/1.1 var(--display); vertical-align: bottom; border-bottom: 0; }
.cmp thead td { background: var(--paper-hi); position: sticky; top: 4.1rem; border-bottom: 0; }
.cmp thead th span { display: block; font: 400 var(--t-sm)/1.3 var(--serif); color: var(--ink-2); margin-top: var(--s-1); }
.cmp thead .c-upper { color: var(--band-uc-dk); } .cmp thead .c-dress { color: var(--band-dc-dk); }
.cmp thead .c-stalls { color: var(--band-st-dk); } .cmp thead .c-boxes { color: var(--band-bx-dk); }
.cmp tbody th { font-weight: 400; width: 26%; }
.cmp .c-dress { background: rgba(201,154,62,.09); }
.cmp thead th.c-dress { background: #f5ead3; }
.cmp thead th, .cmp thead td { box-shadow: inset 0 -1.5px 0 var(--ink); }
.cmp .grp th { font: 400 var(--t-xs)/1 var(--serif); letter-spacing: .16em; text-transform: uppercase; color: var(--velvet); padding-top: var(--s-5); background: var(--paper-hi); }
.cmp i { font-style: normal; display: inline-flex; align-items: center; gap: .35em; }
.cmp i.y::before, .cmp i.n::before { content: ""; width: 1em; height: 1em; background: currentColor; flex: none;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.cmp i.y { color: var(--ok); --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4 4 9-9'/%3E%3C/svg%3E"); }
.cmp i.n { color: var(--ink-2); --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M7 12h10'/%3E%3C/svg%3E"); }

/* ---------- 9. Add-ons, tax, currency ---------- */
.extras { background: var(--paper-2); color: var(--ink); padding: var(--s-9) 0; }
.extras__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--s-6); }
.bar { display: grid; gap: var(--s-3); align-content: start; border-top: 3px double var(--ink); padding-top: var(--s-4); }
.bar h3 { font-size: var(--t-lg); color: var(--velvet); }
.bar p { font-size: var(--t-sm); color: var(--ink); }
.bar__fine { color: var(--ink-2) !important; font-style: italic; }
.menu { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
.menu li { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; column-gap: var(--s-2); }
.menu__item { font-size: var(--t-md); }
.menu__lead { border-bottom: 2px dotted var(--rule); transform: translateY(-.3em); min-width: 1rem; }
.menu__price { font: 400 var(--t-lg) var(--display); color: var(--velvet); font-variant-numeric: tabular-nums; }
.menu__note { grid-column: 1 / -1; font-size: var(--t-xs); color: var(--ink-2); font-style: italic; }
.rates { display: flex; gap: var(--s-5); margin: 0; font-variant-numeric: tabular-nums; }
.rates div { display: flex; gap: var(--s-2); align-items: baseline; }
.rates dt { color: var(--ink-2); font-size: var(--t-sm); }
.rates dt::after { content: " ="; }
.rates dd { margin: 0; font: 400 var(--t-lg) var(--display); color: var(--velvet); }

/* ---------- 10. Questions ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s-7); align-items: start; }
.faq .sec-head { position: sticky; top: 6rem; margin-bottom: 0; }
.faq__list { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--s-4); align-items: center; padding: var(--s-4) 0; min-height: 3rem; font-size: var(--t-lg); line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--velvet); }
.faq summary .i { color: var(--velvet); transition: rotate .35s var(--ease); }
.faq details[open] summary .i { rotate: 180deg; }
.faq details p { padding: 0 0 var(--s-5); max-width: 65ch; color: var(--ink-2); }

/* ---------- 11. Box office ---------- */
.boxoffice { padding: var(--s-9) 0; color: var(--cream); background: var(--velvet-800); }
.counter { display: grid; grid-template-columns: 21rem minmax(0, 1fr); gap: var(--s-6); align-items: start; }

/* the printed ticket on the counter */
.stub {
  position: sticky; top: 6rem; background: var(--paper-hi); color: var(--ink); border-radius: var(--r-2); padding: var(--s-5);
  display: grid; gap: var(--s-4); box-shadow: 0 18px 40px -16px rgba(0,0,0,.6);
  -webkit-mask: radial-gradient(circle 12px at 0 9.5rem, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 9.5rem, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 12px at 0 9.5rem, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 9.5rem, transparent 98%, #000) right / 51% 100% no-repeat;
}
.stub__top { min-height: 7rem; border-bottom: 2px dashed var(--rule); padding-bottom: var(--s-4); display: grid; gap: var(--s-1); align-content: end; }
.stub__house { font-size: var(--t-xs); letter-spacing: .24em; text-transform: uppercase; color: var(--velvet); border-top: 1px solid var(--rule); padding-top: var(--s-3); }
.stub h3 { font-size: 2rem; color: var(--velvet); }
.stub__seat { font-style: italic; color: var(--ink-2); }
.stub__lines { margin: 0; display: grid; gap: var(--s-2); font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
.stub__lines div { display: flex; justify-content: space-between; gap: var(--s-3); }
.stub__lines dt { color: var(--ink-2); }
.stub__lines dd { margin: 0; text-align: right; white-space: nowrap; }
.stub__lines .minus dd { color: var(--ok); }
.stub__total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1.5px solid var(--ink); padding-top: var(--s-3); }
.stub__total strong { font: 400 2rem/1 var(--display); color: var(--velvet); font-variant-numeric: tabular-nums; }
.stub__renew, .stub__fee { font-size: var(--t-sm); color: var(--ink-2); }
.stub__fee { font-style: italic; }

/* the box-office window: an arched opening with a brass rail */
.window {
  position: relative; background: var(--velvet-950); border: 2px solid var(--gilt); border-radius: 12rem 12rem var(--r-2) var(--r-2) / 5rem 5rem var(--r-2) var(--r-2);
  padding: var(--s-8) clamp(1rem, 4vw, 3rem) var(--s-6);
  box-shadow: inset 0 0 0 6px var(--velvet-950), inset 0 0 0 7px rgba(201,154,62,.45);
}
.window::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: -14px; height: 12px; border-radius: 0 0 4px 4px; background: linear-gradient(#e6c06a, #8a6316); }
.book { display: grid; gap: var(--s-6); }
.book fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: var(--s-4); min-width: 0; }
.book legend { font: 400 var(--t-lg)/1.1 var(--display); color: var(--gilt-lt); margin-bottom: var(--s-3); padding: 0; }
.book__who { grid-template-columns: 1fr 1fr; }
.book__who legend, .book__who .check, .book__who .err#e-rules, .book__who .field--wide { grid-column: 1 / -1; }
.field label { color: var(--cream); }
.seg { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.4rem 1rem; border: 1.5px solid var(--cream-2); border-radius: var(--r-1); font-size: var(--t-sm); transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.seg input:checked + span { background: var(--gilt-lt); color: var(--velvet-950); border-color: var(--gilt-lt); }
.seg input:focus-visible + span { outline: 2px solid var(--gilt-lt); outline-offset: 3px; }
.seg--sm span { min-height: 2.5rem; }
.step { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding-bottom: var(--s-3); border-bottom: 1px solid rgba(201,154,62,.3); }
.step__name { display: grid; }
.step__name small { color: var(--cream-2); font-size: var(--t-xs); font-style: italic; }
.step__ctl { display: inline-flex; align-items: center; gap: var(--s-2); }
.step__ctl button { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--cream-2); background: transparent; color: var(--cream); }
.step__ctl button:hover:not([disabled]) { border-color: var(--gilt-lt); color: var(--gilt-lt); }
.step__ctl button[disabled] { opacity: .35; cursor: not-allowed; }
.step__ctl output { min-width: 2ch; text-align: center; font-variant-numeric: tabular-nums; font-size: var(--t-lg); }
.step.is-off { opacity: .45; }
.step__msg { font-size: var(--t-sm); color: var(--gilt-lt); }
.step__msg:empty { display: none; }
.book__go { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }
.book__status { font-size: var(--t-sm); color: var(--cream-2); }
.book__status.is-bad { color: var(--bad-lt); }
.book.is-loading .btn--big { position: relative; }
.book.is-loading .btn--big .i { animation: tear 1s var(--ease) infinite; }
@keyframes tear { 50% { transform: translateX(4px) rotate(-8deg); } }

.done { display: grid; gap: var(--s-4); justify-items: start; outline: none; }
.done__i { width: 3rem; height: 3rem; fill: none; stroke: var(--gilt-lt); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.done h3 { font-size: var(--t-xl); color: var(--gilt-lt); }
.done p { color: var(--cream-2); max-width: 60ch; }
.done__ref { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: var(--s-2) var(--s-5); font-variant-numeric: tabular-nums; border-top: 1px solid rgba(201,154,62,.45); border-bottom: 1px solid rgba(201,154,62,.45); padding: var(--s-4) 0; width: 100%; }
.done__ref dt { color: var(--cream-2); font-size: var(--t-sm); }
.done__ref dd { margin: 0; }

/* ---------- 12. Footer ---------- */
.foot { background: var(--velvet-950); color: var(--cream-2); padding: var(--s-8) 0 var(--s-6); font-size: var(--t-sm); border-top: 1px solid rgba(201,154,62,.45); }
.foot__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s-6); }
.foot__mark { font: 400 2.2rem/1 var(--display); color: var(--gilt-lt); margin-bottom: var(--s-3); }
.foot__h { font: 400 var(--t-md) var(--display); color: var(--cream); margin-bottom: var(--s-3); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1); }
.foot a { display: inline-block; padding-block: 2px; }
.foot a:hover { color: var(--gilt-lt); }
.foot__small { margin-top: var(--s-7); padding-top: var(--s-4); border-top: 1px solid rgba(201,154,62,.25); font-style: italic; }

/* ---------- Motion: house lights come up level by level, from a visible default ---------- */
@media (prefers-reduced-motion: no-preference) {
  .plan__svg .lv { animation: houselights 1.4s var(--ease) both; }
  .plan__svg .lv-st { animation-delay: .1s; }
  .plan__svg .lv-dc { animation-delay: .35s; }
  .plan__svg .lv-uc { animation-delay: .6s; }
  .plan__svg .lv-bx { animation-delay: .85s; }
  @keyframes houselights { from { filter: brightness(.45); } to { filter: none; } }
}
@media (prefers-reduced-motion: reduce) {
  .spot, .you, .lv, .ticket { transition: none !important; }
}

/* ---------- Narrow screens ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .cur { margin-left: auto; }
}
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding-top: var(--s-6); }
  /* single column: the plan comes straight after the headline */
  .hero__text { display: contents; }
  .hero h1 { order: 1; } .plan { order: 2; } .hero__lede { order: 3; } .billing { order: 4; } .key { order: 5; } .hero__note { order: 6; }
  .hero { gap: var(--s-5); }
  .plan { max-width: 46rem; width: 100%; justify-self: center; }
  .est__grid, .faq__grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .faq .sec-head { position: static; }
  .counter { grid-template-columns: 18rem minmax(0, 1fr); gap: var(--s-5); }
  .extras__grid { grid-template-columns: 1fr 1fr; }
  .extras__grid .bar:first-child { grid-column: 1 / -1; }
  .cmp thead th, .cmp thead td { top: 3.9rem; }
}
@media (max-width: 760px) {
  .ticket { grid-template-columns: 1fr;
    -webkit-mask: radial-gradient(circle var(--notch) at 0 var(--cut, 70%), transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% var(--cut, 70%), transparent 98%, #000) right / 51% 100% no-repeat;
            mask: none; }
  .ticket__stub { border-left: 0; border-top: 2px dashed var(--rule); }
  .ticket__main { padding: var(--s-5) var(--s-4) var(--s-4); }
  .ticket__stub { padding: var(--s-4); }
  .ticket { -webkit-mask: none; }

  /* comparison: one section at a time */
  .cmp-switch { display: inline-flex; }
  .cmp th, .cmp td { padding: var(--s-3); }
  .cmp tbody th { width: 52%; }
  .compare[data-show="upper"]  .cmp :is(.c-dress, .c-stalls, .c-boxes),
  .compare[data-show="dress"]  .cmp :is(.c-upper, .c-stalls, .c-boxes),
  .compare[data-show="stalls"] .cmp :is(.c-upper, .c-dress, .c-boxes),
  .compare[data-show="boxes"]  .cmp :is(.c-upper, .c-dress, .c-stalls) { display: none; }
  .cmp .c-dress { background: none; }
  .cmp thead th, .cmp thead td { position: static; }
  .extras__grid { grid-template-columns: 1fr; }
  .counter { grid-template-columns: 1fr; }
  .stub { position: static; }
  .book__who { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__grid > div:first-child { grid-column: 1 / -1; }
  .sections, .compare, .faq, .est, .extras, .boxoffice { padding: var(--s-8) 0; }
}
@media (max-width: 560px) {
  .top { gap: var(--s-3); padding-inline: var(--s-4); }
  .mark__sub { display: none; }
  .top__cta { min-height: 2.25rem; padding: .3rem .7rem; font-size: var(--t-xs); }
  .cur button { padding: .3rem .45rem; }
  .mark__word { font-size: 1.4rem; }
  .hero { padding: var(--s-5) var(--s-4) var(--s-7); }
  .hero::before, .hero::after { width: 8px; }
  .plan__head span:last-child { font-size: var(--t-xs); }
  .plan__readout { grid-template-columns: 1fr; }
  .plan__go { grid-column: 1; grid-row: auto; }
  .plan__labels text { font-size: 30px; stroke-width: 9px; }
  .plan__labels .sm { display: none; }
  .lv text { display: none; }
  .billing { width: 100%; }
  .billing button { flex: 1; }
  .range { grid-template-columns: 1fr 6rem; }
  .est__out { padding: var(--s-4); }
  .sums { font-size: var(--t-xs); }
  .sums th, .sums td { padding: var(--s-2) var(--s-1); }
  .window { border-radius: 6rem 6rem var(--r-2) var(--r-2) / 2.5rem 2.5rem var(--r-2) var(--r-2); padding-top: var(--s-7); }
  .seg label { flex: 1 1 calc(50% - var(--s-2)); }
  .seg span { width: 100%; justify-content: center; }
  .btn--big { width: 100%; }
}
