/* ============================================================
   Vinyl ID — Pre-order · Founding Edition
   Coherent with the main site: light, monochrome, Inter,
   restrained. Reuses Home's component vocabulary (bordered
   cards, circular outline icons, pill buttons, grey eyebrows).
   Rust is the SINGLE small accent — only on edition labels,
   exactly like the rust step-numbers on Home. No color
   gradients. Layers on styles.css + design2.css + simple.css.
   ============================================================ */

/* Light page — same as Home's statement / editorial / feature sections */
body.preorder { background: #fff; color: var(--ink); }

/* Nav: permanently solid (white, black text) like Home when scrolled —
   this page has no dark hero for the transparent state to sit over. */
.preorder .nav {
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(1.4) blur(18px);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  color: #000;
  border-bottom: 1px solid var(--grey-15);
}
.preorder .nav .nav-cta { border-color: #000; }
.preorder .nav .nav-cta:hover { background: #000; }
.preorder .nav .nav-cta:hover span { color: #fff; }
.preorder .nav-links a.active { border-bottom-color: var(--rust); }

/* ── Order layout: gallery + buy panel ──────────────────── */
.po-main {
  max-width: 1320px; margin: 0 auto;
  padding: calc(var(--nav-h) + 96px) var(--gutter) 100px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: start;
}

/* ── Gallery ─────────────────────────────────────────────── */
.gallery { position: sticky; top: calc(var(--nav-h) + 40px); }
.gallery-stage {
  position: relative;
  height: min(620px, 70vh);
  border-radius: 10px; overflow: hidden;
  background: #f4f4f4;
  box-shadow: inset 0 0 0 1px var(--grey-15);
}
.gallery-stage img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .35s ease;
}
.gallery-stage img.active { opacity: 1; }

/* Prev / next controls */
.g-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.92); color: var(--ink);
  border: 1px solid var(--grey-15); cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.10);
  transition: background .2s ease, transform .2s ease;
}
.g-nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.g-prev { left: 14px; }
.g-next { right: 14px; }

/* Dot indicators */
.g-dots {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  z-index: 2; display: flex; gap: 8px;
}
.g-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.55); box-shadow: 0 1px 4px rgba(0,0,0,.25);
  transition: background .2s ease, transform .2s ease;
}
.g-dots button.active { background: #fff; transform: scale(1.25); }

.gallery-foot { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 13px; color: var(--grey-60); }
.gallery-foot .seal {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--grey-15); color: var(--ink);
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.gallery-foot .seal::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--rust); }

/* ── Buy panel ──────────────────────────────────────────── */
.buy { padding-top: 4px; }
.buy .eyebrow { color: var(--grey-60); }
.buy h1 {
  font-weight: 500; font-size: clamp(34px, 3.8vw, 52px);
  line-height: 1.0; letter-spacing: -0.03em; margin: 16px 0 14px; text-wrap: balance;
}
.buy .lede { font-size: 17px; line-height: 1.55; color: var(--grey-60); max-width: 42ch; }

.price-row {
  display: flex; align-items: baseline; gap: 14px;
  margin: 28px 0 0; padding-bottom: 28px; border-bottom: 1px solid var(--grey-15);
}
.price { font-size: 42px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.price .cur { font-size: 24px; vertical-align: super; margin-right: 1px; }
.price-note { font-size: 13px; color: var(--grey-60); }
.price-note b { color: var(--ink); font-weight: 600; }

/* ── Scarcity meter — monochrome, flat ──────────────────── */
.scarce { margin: 26px 0 4px; }
.scarce-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; margin-bottom: 10px; }
.scarce-top .lbl { color: var(--grey-60); }
.scarce-top .left { color: var(--ink); font-weight: 500; }
.scarce-top .left b { font-weight: 600; }

/* ── Option groups ──────────────────────────────────────── */
.opt { margin-top: 28px; }
.opt-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.opt-head .k { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--grey-60); }
.opt-head .v { font-size: 14px; color: var(--ink); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 15px 10px 12px; border-radius: 10px;
  border: 1px solid var(--grey-15); background: #fff; color: var(--ink);
  cursor: pointer; transition: border-color .2s, background .2s;
}
.swatch:hover { border-color: var(--grey-30); }
.swatch.selected { border-color: var(--ink); }
.swatch .dot { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.swatch .nm { font-size: 14px; font-weight: 500; letter-spacing: -0.005em; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--grey-15); border-radius: 10px; overflow: hidden; }
.qty button { width: 46px; height: 46px; background: #fff; color: var(--ink); border: none; font-size: 20px; line-height: 1; display: grid; place-items: center; transition: background .2s; }
.qty button:hover { background: var(--grey-05); }
.qty button:disabled { opacity: .3; cursor: not-allowed; }
.qty .n { min-width: 46px; text-align: center; font-size: 16px; font-weight: 500; }
.opt .hint { margin-top: 9px; font-size: 12.5px; color: var(--grey-60); }
.member-note { margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--grey-60); }

/* ── Membership tiers ───────────────────────────────────── */
.tiers-note {
  margin: 0 0 16px; padding: 11px 14px; border-radius: 10px;
  border: 1px solid var(--grey-15); background: var(--grey-05);
  font-size: 12.5px; line-height: 1.5; color: var(--grey-60);
}
.tiers-note::before {
  content: 'Work in progress'; display: block; margin-bottom: 3px;
  font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--rust);
}
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tier {
  border: 1px solid var(--grey-15); border-radius: 10px; padding: 18px 18px 20px;
  background: #fff; display: flex; flex-direction: column; gap: 14px;
}
.tier-plus { border-color: var(--ink); }
.tier-top { display: flex; justify-content: space-between; align-items: baseline; }
.tier-name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.tier-price { font-size: 13px; color: var(--grey-60); }
.tier-price b { color: var(--ink); font-weight: 600; font-size: 15px; }
.tier-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.tier-list li {
  position: relative; padding-left: 22px;
  font-size: 13px; line-height: 1.4; color: var(--ink);
}
.tier-list li::before {
  content: ''; position: absolute; left: 0; top: 5px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--rust) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/8px no-repeat;
}
.tier-list li.off { color: var(--grey-60); }
.tier-list li.off::before {
  background: none; box-shadow: inset 0 0 0 1px var(--grey-30);
}
.tier-list li.off::after {
  content: ''; position: absolute; left: 3px; top: 11px;
  width: 6px; height: 1px; background: var(--grey-30);
}
@media (max-width: 420px) { .tiers { grid-template-columns: 1fr; } }

/* ── CTA + email ────────────────────────────────────────── */
.po-form { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; }
.po-email {
  width: 100%; background: #fff; border: 1px solid var(--grey-30);
  border-radius: 10px; color: var(--ink); font-family: inherit; font-size: 16px;
  padding: 16px 18px; outline: none; transition: border-color .2s;
}
.po-email::placeholder { color: var(--grey-60); }
.po-email:focus { border-color: var(--ink); }
.po-email:disabled { display: none; }
.reserve {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
  background: var(--ink); color: #fff; border: none; border-radius: 999px;
  font-family: inherit; font-size: 16px; font-weight: 500; letter-spacing: -0.01em;
  padding: 17px 26px; transition: background .2s ease, transform .15s ease;
}
.reserve:hover { background: var(--grey-90); }
.reserve:active { transform: scale(.99); }
.reserve .amt { font-weight: 600; }
/* Disabled reserve button while pre-orders are closed */
.reserve.is-disabled { background: var(--grey-10); color: var(--grey-60); cursor: not-allowed; justify-content: center; }
.reserve.is-disabled:hover { background: var(--grey-10); }
.reserve.is-disabled:active { transform: none; }
/* Waitlist CTA reuses the reserve pill, centered */
.reserve.reserve-waitlist { justify-content: center; text-decoration: none; text-align: center; }
.po-error { font-size: 13px; color: var(--rust); min-height: 16px; padding-left: 2px; }
.assure { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.assure span { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--grey-60); }
.assure span::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--grey-30); }

/* Reserved (success) state */
.buy-confirm { display: none; }
.buy.done .po-intro, .buy.done .price-row, .buy.done .scarce, .buy.done .opt, .buy.done .po-form { display: none; }
.buy.done .buy-confirm { display: block; }
.buy-confirm .check {
  width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--ink);
  display: grid; place-items: center; color: var(--ink); margin-bottom: 20px;
  animation: wlpop .5s cubic-bezier(.16,1,.3,1);
}
.buy-confirm h2 { font-weight: 500; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.03em; line-height: 1.02; margin-bottom: 14px; }
.buy-confirm p { font-size: 16px; line-height: 1.6; color: var(--grey-60); max-width: 40ch; }
.buy-confirm .em { color: var(--ink); font-weight: 600; }
.buy-confirm .receipt { margin-top: 24px; border: 1px solid var(--grey-15); border-radius: 10px; padding: 4px 18px; }
.buy-confirm .receipt .r {
  display: flex; justify-content: space-between; gap: 16px; padding: 13px 0;
  border-bottom: 1px solid var(--grey-15); font-size: 14px;
}
.buy-confirm .receipt .r:last-child { border-bottom: none; }
.buy-confirm .receipt .r .k { color: var(--grey-60); }
.buy-confirm .receipt .r .v { color: var(--ink); font-weight: 500; }

/* ── What your pre-order gets you (mirrors Home's feature grid) ── */
.perks { padding: 120px var(--gutter); border-top: 1px solid var(--grey-15); }
.perks-inner { max-width: 1320px; margin: 0 auto; }
.perks .eyebrow { color: var(--grey-60); }
.perks h2 { font-weight: 500; font-size: clamp(32px, 4vw, 60px); letter-spacing: -0.035em; line-height: 1.0; margin-top: 16px; max-width: 16ch; text-wrap: balance; }
.perk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 52px; }
.perk {
  border: 1px solid var(--grey-15); border-radius: 10px; padding: 34px 30px 36px;
  background: var(--white); display: flex; flex-direction: column; gap: 13px;
  transition: transform .4s cubic-bezier(.16,1,.3,1), border-color .3s ease;
}
.perk:hover { transform: translateY(-5px); border-color: var(--grey-30); }
.perk .icon { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; color: var(--ink); margin-bottom: 2px; }
.perk .num { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--rust); }
.perk h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.12; }
.perk p { font-size: 14.5px; line-height: 1.55; color: var(--grey-60); }

/* ── Companion app — one flat dark band (like Home's media moments) ── */
.appband { background: #0a0a0a; color: #fff; padding: 120px var(--gutter); }
.appband-inner {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center;
}
.app-copy .eyebrow { color: rgba(255,255,255,.55); }
.app-copy h2 { font-weight: 500; font-size: clamp(32px, 4vw, 60px); letter-spacing: -0.035em; line-height: 1.0; margin: 16px 0 20px; max-width: 14ch; text-wrap: balance; }
.app-copy p { font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.7); max-width: 44ch; margin-bottom: 32px; }
.app-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.appstore {
  display: inline-flex; align-items: center; gap: 12px;
  background: #fff; color: #000; border-radius: 12px; padding: 11px 20px;
  transition: transform .18s ease, background .2s ease;
}
.appstore:hover { transform: translateY(-2px); background: var(--grey-10); }
.appstore svg { width: 25px; height: 25px; flex-shrink: 0; }
.appstore .t { display: flex; flex-direction: column; line-height: 1.12; text-align: left; }
.appstore .t small { font-size: 10px; letter-spacing: .03em; text-transform: uppercase; opacity: .66; }
.appstore .t b { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.app-meta { font-size: 13px; color: rgba(255,255,255,.5); }
.app-meta b { color: rgba(255,255,255,.82); font-weight: 600; }
.app-visual { display: flex; justify-content: center; }
.app-phone {
  width: 264px; aspect-ratio: 9/19; background: #000; border-radius: 38px; padding: 9px;
  box-shadow: 0 40px 90px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.08);
}
.app-phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 30px; overflow: hidden; background: #111; }
.app-phone .ph-slot {
  width: 100%; height: 100%; border-radius: 30px; background: #111;
  display: flex; align-items: center; justify-content: center;
}
.app-phone .ph-slot span {
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.4); text-align: center; padding: 0 20px;
}

/* Footer App Store link tint */
.footer-slim .legal a.ext { color: #888; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1080px) { .perk-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 980px) {
  .po-main { grid-template-columns: 1fr; gap: 44px; padding-top: calc(var(--nav-h) + 76px); }
  .gallery { position: static; }
  .gallery-stage { height: min(560px, 84vw); }
  .appband-inner { grid-template-columns: 1fr; gap: 48px; }
  .app-visual { order: -1; }
  .perks, .appband { padding: 84px var(--gutter); }
  .nav { padding: 10px 20px; }
  .footer-slim { padding: 32px 20px; }
}
@media (max-width: 820px) {
  .gallery-stage { height: min(480px, 92vw); }
  .perks { padding-top: 64px; }
  .appband { padding-top: 64px; }
  .po-main { padding-top: calc(var(--nav-h) + 54px); }
}
@media (max-width: 620px) {
  .gallery-stage { height: min(420px, 92vw); }
  .gallery-stage img { object-fit: cover; }
  .g-nav { width: 38px; height: 38px; }
  .perk-grid { grid-template-columns: 1fr; }
  .price-row { flex-wrap: wrap; gap: 8px 14px; }
  .app-phone { width: 220px; }
  .po-main { padding: calc(var(--nav-h) + 30px) 20px 60px; }
  .buy { padding-top: 0; }
  .gallery-foot { flex-direction: column; align-items: flex-start; gap: 10px; }
  .reserve { width: 100%; justify-content: center; }
  .assure { justify-content: center; }
}
