/* The homepage (Concept B, Round 4; website redesign Stage 4), on top of
   site.css: the same tokens, nav, buttons, device frame and footer as Our
   story. The pricing page (Stage 5) reuses its founding bar, sections,
   cream paper, FAQ and closing; pricing.css holds pricing's own pieces. */

/* Founding bar: shown while spots remain and sign-ups are closed. The
   classes are set by public/bandstack.js; keep their names. */
.topbar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 14px; padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left)); background: var(--card); border-bottom: 1px solid var(--line-2); font-size: 15px; font-weight: 500; color: var(--text-2); text-align: center; }
.topbar strong { color: var(--text); font-weight: 700; }
.topbar a { display: inline-flex; align-items: center; min-height: 44px; color: var(--gold); font-weight: 700; text-decoration: none; }
body.signups-open .topbar { display: none; }
body:not(.founding-taken) .founding-left { display: none; }
body.founding-gone [data-founding] { display: none !important; }
.ref-note { border-left: 3px solid var(--gold); padding-left: 10px; }
.ref-note[hidden] { display: none !important; }

/* Sections and headings */
.sec { padding-block: clamp(72px, 9vw, 120px); }
.sec-alt { background: var(--card); border-block: 1px solid var(--line); }
.sec h2 { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 5vw, 64px); line-height: .96; margin: var(--s2) 0 0; max-width: 18ch; text-wrap: balance; }
.lead { margin-top: var(--s4); font-size: 19px; color: var(--text-2); max-width: 54ch; }
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }

/* Hero: the words, then the product (real screens) and one illustrated gig card */
.hero { overflow-x: clip; padding-block: clamp(8px, 2.5vh, 40px) var(--s6); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5.4fr) minmax(0, 6.6fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.pre { font-weight: 600; font-size: 16px; color: var(--gold); }
.hero h1 { font-size: clamp(44px, min(4.9vw, 8.4vh), 84px); line-height: .98; letter-spacing: -.005em; }
.hero h1 span { display: block; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--gold); }
.sub { margin-top: clamp(14px, 2.2vh, 24px); font-size: clamp(18px, 1.5vw, 20px); color: var(--text-2); max-width: 34ch; line-height: 1.5; text-wrap: pretty; }
.hero .actions { margin-top: clamp(20px, 3vh, 32px); }
.note { margin-top: var(--s4); font-size: 16px; line-height: 1.5; color: var(--text-2); max-width: 46ch; }
.note strong { color: var(--text); }
.stage { position: relative; aspect-ratio: 1.36 / 1; }
.stage .device { position: absolute; max-width: none; margin: 0; }
.stage .pad { right: 0; top: 0; width: 86%; padding: 1.4%; border-radius: 24px; }
.stage .pad img { border-radius: 14px; }
.stage .ph { left: 0; bottom: 0; width: 27%; }
.stage .ph .crop { aspect-ratio: 780 / 1688; overflow: hidden; border-radius: 21px; }
.stage .ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 0; outline: 0; }
.stage-cap { margin-top: var(--s3); font-size: 15px; color: var(--text-3); }

/* The gig card: an illustration on paper, not an app screen. No device
   frame, no date, and the caption under the stage says what it is. */
.bill { position: absolute; right: 5%; bottom: 3%; width: 38%; background: var(--paper); color: var(--ink); border-radius: var(--r-l); padding: var(--s4) 18px; box-shadow: 0 30px 60px -28px rgba(0,0,0,.95), 0 0 0 1px rgba(0,0,0,.2); transform: rotate(-2deg); }
.bill-d { font-weight: 700; font-size: 13px; color: var(--amber); }
.bill-v { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 34px; line-height: .9; margin-top: var(--s2); }
.bill-t { display: grid; grid-template-columns: 1fr 1.3fr .7fr; margin-top: var(--s3); border-top: 1.5px solid var(--ink); }
.bill-t div { padding-top: var(--s2); }
.bill-t div + div { padding-left: var(--s2); border-left: 1px solid var(--paper-line); }
.bill-t span { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.bill-t b { font-size: 18px; font-weight: 700; }
.bill-w { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s3); padding-top: var(--s2); border-top: 1px solid var(--paper-line); font-size: 14px; font-weight: 600; }
.pips { display: flex; gap: 3px; }
.pips i { width: 14px; height: 5px; border-radius: 3px; background: #2E7D4F; }
.pips i.o { background: var(--paper-line); }

/* The band, and where it started */
.bridge .photo { aspect-ratio: 2.72 / 1; }
.band-story { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 64px); align-items: end; margin-top: var(--s5); }
.band-story h2 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 3.6vw, 48px); line-height: .98; margin: var(--s2) 0 0; max-width: 16ch; }
.band-story .lead { margin-top: 0; font-size: 18px; }
.story-link { margin-top: var(--s3); }
.story-link a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--gold); }
.story-link a::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--gold); border-top: 2px solid var(--gold); transform: rotate(45deg); }
.story-link a:hover { color: var(--gold); }

/* Sound familiar: three group-text threads */
.qs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--s7); border-top: 1px solid var(--line); }
.q { padding: var(--s5) var(--s5) 0 0; }
.q + .q { padding-left: var(--s5); border-left: 1px solid var(--line); }
.q h3 { margin: 0; font-size: 20px; font-weight: 600; text-wrap: balance; }
.thread { margin: var(--s3) 0 0; padding: 0; list-style: none; font-size: 16px; color: var(--text-3); }
.thread li { padding: 3px 0; }
.thread b { color: var(--text-2); font-weight: 600; margin-right: 6px; }
.fix { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px dashed var(--line-2); font-size: 16px; color: var(--text); }

/* Lists of short points */
.ticks { margin: var(--s5) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.ticks li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--text-2); }
.ticks b { color: var(--text); font-weight: 600; }

/* How it works: the night as a running order */
.zoom-hint { margin-top: var(--s3); font-size: 15px; color: var(--text-3); }
.rail { position: relative; margin-top: var(--s7); }
.rail::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: var(--line-2); }
.stop { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; padding-left: 48px; }
.stop + .stop { margin-top: clamp(56px, 7vw, 96px); }
.stop::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--card); border: 2px solid var(--text-3); }
.stop.now::before { background: var(--gold); border-color: var(--gold); }
.when { font-weight: 700; font-size: 15px; color: var(--text-3); }
.stop.now .when { color: var(--gold); }
.stop h3 { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 3.4vw, 46px); line-height: 1; margin: var(--s2) 0 0; text-wrap: balance; }
.stop p { margin-top: var(--s4); color: var(--text-2); max-width: 44ch; }
.plan-tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: var(--r-s); border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; color: var(--text-2); vertical-align: 1px; }
.screens { display: flex; justify-content: center; align-items: flex-start; gap: clamp(12px, 2vw, 24px); }
.screens figure { width: min(46%, 250px); }
.screens figcaption, .gallery figcaption, .solo figcaption { text-align: center; }
.solo { max-width: 280px; margin-inline: auto; }
.sec-alt .device { --bezel: #302920; background: var(--bezel); }

/* The On stage gallery (public/bandstack.js: #stage-gallery, #gallery-pos, data-gallery) */
.gallery { min-width: 0; }
.stage-gallery { display: grid; grid-auto-flow: column; grid-auto-columns: min(260px, 72%); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 6px var(--s4); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.stage-gallery::-webkit-scrollbar { display: none; }
.stage-gallery figure { scroll-snap-align: center; }
.stage-gallery .device { max-width: none; }
.gallery-nav { display: flex; justify-content: center; align-items: center; gap: 12px; }
.gallery-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--raised); color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; }
.gallery-nav span { font-size: 15px; color: var(--text-3); min-width: 7ch; text-align: center; }

/* Tap a screenshot to see it full size (public/bandstack.js builds .lightbox) */
.zoom img { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: max(56px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom)); background: #0A0806; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: calc(100% - 40px); object-fit: contain; border-radius: 18px; }
.lightbox-cap { font-size: 15px; font-weight: 600; color: var(--text); text-align: center; }
.lightbox-close { position: absolute; top: max(10px, env(safe-area-inset-top)); right: 12px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--raised); color: var(--text); font-size: 26px; line-height: 1; cursor: pointer; }

/* The band website, in a browser frame */
.browser { border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line-2); background: var(--sunken); box-shadow: var(--device-shadow); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.browser-bar span { margin-left: 8px; font-size: 13px; color: var(--text-3); }
.browser img { width: 100%; }

/* Pricing: the rate card on paper */
.cream { background: var(--paper); color: var(--ink); }
.cream .kicker { color: var(--amber); }
.cream .lead { color: var(--ink-2); }
.cream :focus-visible { outline-color: var(--ink); }
.rate-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.rate { margin-top: var(--s7); background: #FFFDF6; border: 1px solid var(--paper-line); border-radius: var(--r-l); box-shadow: 0 24px 48px -36px rgba(30,25,18,.55); overflow: hidden; }
.rate table { width: 100%; border-collapse: collapse; font-size: 16px; }
.rate th, .rate td { padding: 13px var(--s4); text-align: left; vertical-align: top; border-bottom: 1px solid var(--paper-line); }
.rate thead th { border-bottom: 1.5px solid var(--ink); padding-top: var(--s5); padding-bottom: var(--s4); }
.rate thead th + th, .rate td { border-left: 1px solid var(--paper-line); }
.rate .pn { display: block; font: 700 18px/1.2 var(--body); }
.rate .pp { display: block; font-family: var(--display); font-weight: 800; font-size: 52px; line-height: 1; margin-top: 6px; }
.rate .pp small { font: 500 14px var(--body); color: var(--ink-2); margin-left: 4px; }
.rate .pf { display: block; font: 400 15px/1.4 var(--body); color: var(--ink-2); margin-top: 8px; max-width: 30ch; }
.rate tbody th { font-weight: 600; width: 28%; }
.rate td.no { color: var(--ink-2); }
.rate td.no::before { content: "—"; }
.rate td.yes::before { content: ""; display: inline-block; width: 12px; height: 7px; border-left: 2px solid #2E7D4F; border-bottom: 2px solid #2E7D4F; transform: rotate(-45deg) translate(1px, -3px); margin-right: 8px; }
.rate tbody tr:last-child > * { border-bottom: 0; }
.rate .col-pro { background: rgba(232,160,32,.08); }
.everyone { padding: var(--s4); border-top: 1px solid var(--paper-line); font-size: 15px; color: var(--ink-2); }
.everyone b { color: var(--ink); }
.rate-foot { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); align-items: center; margin-top: var(--s5); font-size: 16px; color: var(--ink-2); }
.rate-foot .btn-line { border-color: rgba(30,25,18,.3); color: var(--ink); }
.plans-m { display: none; }
.plan-m { background: #FFFDF6; border: 1px solid var(--paper-line); border-radius: var(--r-l); padding: var(--s4); }
.plan-m + .plan-m { margin-top: var(--s3); }
.plan-m h3 { margin: 0; font: 700 18px var(--body); display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.plan-m h3 span { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; }
.plan-m h3 small { font: 500 14px var(--body); color: var(--ink-2); }
.plan-m p { margin-top: 4px; font-size: 15px; color: var(--ink-2); }
.plan-m ul { list-style: none; margin: var(--s3) 0 0; padding: 0; border-top: 1.5px solid var(--ink); }
.plan-m li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--paper-line); font-size: 15px; }
.plan-m li:last-child { border-bottom: 0; }
.plan-m li b { font-weight: 600; text-align: right; }
.plan-m li b.off { font-weight: 400; color: var(--ink-2); }

/* Founding offer and waitlist: the two forms (public/bandstack.js:
   foundingSignup, generalSignup; keep every id) */
.join { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.spots { margin-top: var(--s4); font-size: 16px; font-weight: 600; color: var(--gold); }
.forms { display: grid; gap: var(--s4); }
.claim { display: grid; gap: var(--s2); padding: var(--s5); border-radius: var(--r-l); background: var(--stage); border: 1px solid rgba(232,160,32,.35); }
.claim.quiet { background: transparent; border-color: var(--line-2); }
.quiet-head { font-weight: 700; }
.claim label { font-size: 15px; font-weight: 600; color: var(--text-2); }
.claim input { width: 100%; min-height: 48px; padding: 0 14px; margin-bottom: 6px; border-radius: var(--r-m); border: 1px solid var(--line-2); background: var(--sunken); color: var(--text); font: 400 17px var(--body); }
.claim input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.claim .btn { margin-top: 6px; cursor: pointer; }
.claim .btn:disabled { opacity: .6; cursor: default; }
.claim .ok { display: none; color: var(--ready, #7BB680); font-weight: 700; }
.claim.done > :not(.ok) { display: none; }
.claim.done .ok { display: block; }
.claim .form-error { margin: 4px 0 0; padding-left: 10px; border-left: 3px solid #EF4444; color: var(--text); font-size: 15px; line-height: 1.4; }
.claim select, .claim textarea { width: 100%; min-height: 48px; padding: 10px 14px; margin-bottom: 6px; border-radius: var(--r-m); border: 1px solid var(--line-2); background: var(--sunken); color: var(--text); font: 400 17px var(--body); }
.claim select:focus, .claim textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.claim textarea { min-height: 80px; resize: vertical; }
/* Beta form hidden until JS confirms the gate is open (or ?preview=beta). */
body:not(.beta-open) .beta-apply { display: none !important; }
.beta-apply { border-color: rgba(59,130,246,.35); }
.beta-apply h3 { margin: 0; font-size: 20px; font-weight: 700; }
.beta-intro { font-size: 15px; color: var(--text-2); line-height: 1.5; }
.optional { font-weight: 400; color: var(--text-3); }
.fine { font-size: 14px; color: var(--text-3); }
.fine a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); }

/* FAQ */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s7); margin-top: var(--s7); }
.faq h3 { margin: 0; font-size: 19px; font-weight: 700; }
.faq p { margin-top: var(--s2); font-size: 17px; color: var(--text-2); }

/* Closing */
.end { text-align: center; }
.end h2 { margin-inline: auto; }
.end h2 em { font-style: normal; color: var(--gold); }
.end .lead { margin-inline: auto; }
.end .actions { justify-content: center; }

/* Footer social links */
.foot-social { display: flex; gap: 4px; }
.foot-social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--text-3); }
.foot-social a:hover { color: var(--text); }

/* Tablet portrait and small laptops: stacked hero, product full width */
@media (max-width: 1100px) and (orientation: portrait), (max-width: 860px) {
  .hero-grid, .band-story, .rate-head, .split, .stop, .join { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .hero h1 { font-size: clamp(48px, 8.4vw, 80px); }
  .stage { max-width: 820px; width: 100%; margin-inline: auto; }
}
@media (max-width: 860px) {
  .rate th, .rate td { padding-inline: 12px; }
  .rate .pp { font-size: 42px; }
  .faq { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .qs { grid-template-columns: minmax(0, 1fr); }
  .q, .q + .q { padding: var(--s5) 0 0; border-left: 0; }
  .q + .q { margin-top: var(--s5); border-top: 1px solid var(--line); }
  .rate-wide { display: none; }
  .plans-m { display: block; margin-top: var(--s5); }
  .plans-m + .rate { margin-top: var(--s4); }
  .bridge .photo { aspect-ratio: 1.5 / 1; }
  .bridge .photo img { object-position: 70% 50%; }
  /* The photo credit takes its own line, without a dot left behind */
  .photo-credit { display: block; }
  .photo-credit .sep { display: none; }
}
/* Phones: the product shows on the first screen, under the buttons */
@media (max-width: 560px) {
  .hero { padding-top: var(--s2); }
  .hero h1 { font-size: clamp(42px, 12.4vw, 54px); }
  .sub { font-size: 17px; margin-top: var(--s3); }
  .hero .actions .btn { flex: 1 1 0; padding: 0 var(--s3); font-size: 16px; }
  .stage { aspect-ratio: 1 / 1.15; margin-top: var(--s4); }
  .stage .pad { display: none; }
  .stage .ph { left: 4%; top: 0; bottom: auto; width: 54%; }
  .bill { right: 0; bottom: 4%; width: 60%; }
  .bill-v { font-size: 30px; }
  .stop { padding-left: 32px; }
  .rail::before { left: 5px; }
  .stop::before { width: 12px; height: 12px; top: 8px; }
  .screens figure { width: 47%; }
}
