@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600&family=Instrument+Serif:ital@0;1&display=swap");

/* ------------------------------------------------------------------
   Design language: poster-first, monochrome, tight grotesk type.
   Color comes from each event's own accent + flyer art, not the chrome.
   ------------------------------------------------------------------ */
:root {
  --bg: #0a0a0a;
  --surface: #131313;
  --surface-2: #1c1c1c;
  --surface-3: #262626;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5f5;
  --muted: #8c8c8c;
  --faint: #5c5c5c;
  --accent: #ff3d6e;
  --ok: #3ddc97;
  --warn: #ffc857;
  --bad: #ff5a5f;
  --pill: 999px;
  --r: 18px;
  --r-sm: 12px;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }

h1, h2, h3 { font-weight: 400; margin: 0 0 .4em; letter-spacing: -0.035em; line-height: 1; }
h1 { font-size: clamp(2.6rem, 8vw, 5.6rem); letter-spacing: -0.055em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.02em; line-height: 1.2; font-weight: 500; }
p { margin: 0 0 1em; }
.serif { font-family: var(--serif); font-style: italic; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .85rem; }
.eyebrow { font-size: .78rem; color: var(--muted); letter-spacing: .02em; }
.lead { font-size: clamp(1.1rem, 2.2vw, 1.4rem); line-height: 1.4; letter-spacing: -0.015em; }
.lead b { font-weight: 500; color: var(--text); }
.lead span { color: var(--muted); }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 560px; }

/* ---------- Top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.04em; text-decoration: none; }
.brand sup { font-size: .55em; font-weight: 400; margin-left: 1px; }
.brand .sub { color: var(--muted); font-weight: 400; }

/* ---------- Layout */
.stack > * + * { margin-top: 14px; }
.grid { display: grid; gap: 14px; }
@media (min-width: 760px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.card { background: var(--surface); border-radius: var(--r); padding: 22px; }
.card.flat { background: transparent; border: 1px solid var(--line); }
hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.hidden { display: none !important; }

/* ---------- Buttons (pills) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 .92rem var(--sans); letter-spacing: -0.01em;
  border-radius: var(--pill); padding: 10px 18px; min-height: 42px;
  border: 0; background: var(--surface-2); color: var(--text);
  cursor: pointer; text-decoration: none; transition: transform .12s ease, background .15s ease, opacity .15s;
}
.btn:hover { background: var(--surface-3); }
.btn:active { transform: scale(.97); }
.btn.primary { background: #fff; color: #0a0a0a; }
.btn.primary:hover { background: #e9e9e9; }
.btn.accent { background: var(--accent); color: #fff; }
.btn.accent:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn.ghost:hover { background: var(--surface); }
.btn.small { padding: 6px 14px; min-height: 34px; font-size: .82rem; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- Chips & pills */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 500;
  padding: 5px 11px; border-radius: var(--pill); background: var(--surface-2); color: var(--text); }
.chip.accent { background: var(--accent); color: #fff; }
.chip.live::before, .chip.draft::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.live { color: var(--ok); }
.chip.draft { color: var(--warn); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 500;
  padding: 4px 10px; border-radius: var(--pill); background: var(--surface-2); color: var(--muted); }
.pill.live { color: var(--ok); }
.pill.draft { color: var(--warn); }

/* ---------- Forms */
label { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
input, textarea, select {
  width: 100%; font: 400 15px var(--sans); color: var(--text);
  background: var(--surface-2); border: 1px solid transparent; border-radius: var(--r-sm);
  padding: 12px 14px; transition: border-color .15s, background .15s;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--line-strong); background: var(--surface-3); }
textarea { min-height: 120px; resize: vertical; }
.field + .field { margin-top: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-size: .88rem; }
.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--accent); }

/* ---------- Notices */
.banner { padding: 9px 16px; text-align: center; font-size: .8rem; background: var(--warn); color: #1a1400; font-weight: 500; }
.notice { padding: 12px 14px; border-radius: var(--r-sm); font-size: .88rem; }
.notice.bad { background: color-mix(in srgb, var(--bad) 14%, transparent); color: #ffb3b5; }
.notice.good { background: color-mix(in srgb, var(--ok) 14%, transparent); color: #b5f5d8; }

/* ---------- Stats */
.stat { padding: 18px; border-radius: var(--r); background: var(--surface); }
.stat .label { font-size: .78rem; color: var(--muted); }
.stat .value { font-size: 2rem; letter-spacing: -0.04em; margin-top: 6px; line-height: 1; }

/* ---------- Tables */
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--faint); font-weight: 500; font-size: .76rem; }
.table-scroll { overflow-x: auto; }

/* ---------- Tabs (segmented pills) */
.tabs { display: flex; gap: 4px; overflow-x: auto; padding: 4px; background: var(--surface); border-radius: var(--pill);
  width: max-content; max-width: 100%; margin-bottom: 22px; scrollbar-width: none; }
.tab { background: none; border: 0; color: var(--muted); font: 500 .86rem var(--sans); padding: 8px 14px;
  border-radius: var(--pill); cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--surface-3); color: var(--text); }

/* ---------- Posters (the hero element of the system) */
.poster { position: relative; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.poster-gen {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  padding: 8%; color: #fff; text-align: center;
  background:
    radial-gradient(120% 80% at 10% 0%, color-mix(in srgb, var(--pa, var(--accent)) 95%, #fff 5%) 0%, transparent 60%),
    radial-gradient(120% 90% at 100% 100%, color-mix(in srgb, var(--pa, var(--accent)) 55%, #000) 0%, transparent 70%),
    #0d0d0d;
}
.poster-gen::after { /* film grain */
  content: ""; position: absolute; inset: 0; opacity: .22; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.poster-gen .pt { font-family: var(--serif); font-style: italic; line-height: .92; letter-spacing: -0.02em;
  word-break: break-word; }
.poster { container-type: inline-size; }
.poster-gen .pt { font-size: 13cqw; }
.poster-gen .pm { font-size: 3.4cqw; text-transform: uppercase; letter-spacing: .2em; opacity: .85; display: flex; flex-direction: column; align-items: center; gap: .5em; }
.poster-gen .pm .rule { width: 18cqw; height: 1px; background: currentColor; opacity: .5; }
.poster-gen .pt { max-width: 92%; }
.poster-gen .age { position: absolute; top: 6cqw; right: 6cqw; font-size: 3.2cqw; letter-spacing: .1em; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; padding: .35em .7em; }

/* Event tile (poster + caption, like an app feed) */
.tile { display: block; text-decoration: none; color: inherit; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font: inherit; width: 100%; }
.tile .poster { transition: transform .25s ease; }
.tile:hover .poster { transform: translateY(-3px); }
.tile .cap { margin-top: 10px; }
.tile .cap h3 { margin: 0 0 2px; font-size: 1rem; }
.tile .cap p { margin: 0; font-size: .82rem; color: var(--muted); }

/* Horizontal poster rail */
.rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.rail > * { flex: 0 0 min(64vw, 240px); scroll-snap-align: start; }

/* ---------- Landing */
.hero-xl { padding: 72px 0 40px; }
.hero-xl h1 { font-size: clamp(3.4rem, 13vw, 9.5rem); letter-spacing: -0.065em; line-height: .88; margin: 0; }
.hero-xl .right { text-align: right; }
.feature { padding: 26px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
@media (min-width: 760px) { .feature { grid-template-columns: 220px 1fr; gap: 32px; } }
.feature .k { color: var(--muted); font-size: .85rem; }
.feature h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 400; letter-spacing: -0.035em; margin-bottom: 6px; }

/* ---------- Event page */
.event-layout { display: grid; gap: 28px; padding: 24px 0 140px; }
@media (min-width: 900px) { .event-layout { grid-template-columns: minmax(0, 440px) 1fr; gap: 56px; align-items: start; }
  .event-layout .poster-col { position: sticky; top: 88px; } }
.event-title { font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -0.055em; line-height: .95; margin: 10px 0 14px; }
.meta-list { display: grid; gap: 12px; margin: 20px 0; }
.meta-item { display: flex; gap: 14px; align-items: center; }
.meta-ico { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; font-size: .66rem; line-height: 1.05; text-align: center; color: var(--muted); }
.meta-ico b { display: block; color: var(--text); font-size: .95rem; font-weight: 500; }
.going { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); }
.going .dots { display: flex; }
.going .dots i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--bg); margin-left: -7px; background: linear-gradient(135deg, var(--accent), #6b5bff); }
.going .dots i:first-child { margin-left: 0; }
.going .dots i:nth-child(2) { background: linear-gradient(135deg, #ffb457, var(--accent)); }
.going .dots i:nth-child(3) { background: linear-gradient(135deg, #3ddc97, #2b7fff); }
.going b { color: var(--text); font-weight: 500; }

.tier { display: flex; gap: 14px; justify-content: space-between; align-items: center; padding: 16px 18px; border-radius: var(--r); background: var(--surface); }
.tier + .tier { margin-top: 8px; }
.tier.sel { box-shadow: inset 0 0 0 1px var(--accent); }
.tier .name { font-weight: 500; }
.qty { display: flex; align-items: center; gap: 4px; background: var(--surface-2); border-radius: var(--pill); padding: 3px; }
.qty button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: var(--text); font-size: 1.1rem; cursor: pointer; }
.qty button:hover { background: var(--surface-3); }
.qty output { min-width: 18px; text-align: center; font-weight: 500; }
.price { font-weight: 500; }
.prose { white-space: pre-wrap; color: #d6d6d6; line-height: 1.65; }

/* Floating checkout bar — the signature pill dock */
.dock { position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 140%); z-index: 30;
  width: min(560px, calc(100% - 24px)); background: #000; border: 1px solid var(--line-strong); border-radius: var(--pill);
  padding: 8px 8px 8px 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  box-shadow: 0 18px 50px rgba(0,0,0,.6); visibility: hidden;
  transition: transform .35s cubic-bezier(.2,.9,.3,1.2), visibility 0s .35s; }
.dock.show { transform: translate(-50%, 0); visibility: visible; transition: transform .35s cubic-bezier(.2,.9,.3,1.2); }
.dock .sum { font-size: .9rem; }
.dock .sum b { font-weight: 500; }

/* Checkout sheet */
.sheet-back { position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .2s; }
.sheet-back.show { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; z-index: 41; left: 50%; bottom: 0; transform: translate(-50%, 105%); width: min(520px, 100%);
  background: var(--surface); border-radius: 24px 24px 0 0; padding: 26px 22px 28px; max-height: 92vh; overflow-y: auto;
  visibility: hidden; opacity: 0;
  transition: transform .3s cubic-bezier(.2,.9,.3,1), opacity .2s, visibility 0s .3s; }
.sheet.show { visibility: visible; opacity: 1; transition: transform .3s cubic-bezier(.2,.9,.3,1), opacity .2s; }
@media (min-width: 760px) { .sheet { bottom: 50%; border-radius: 24px; transform: translate(-50%, 150%); }
  .sheet.show { transform: translate(-50%, 50%); } }
.sheet.show { transform: translate(-50%, 0); }
@media (min-width: 760px) { .sheet.show { transform: translate(-50%, 50%); } }
.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--surface-3); margin: -10px auto 18px; }

/* ---------- Portal */
.code-box { font: 500 1.8rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .22em;
  padding: 18px; border-radius: var(--r); background: var(--surface-2); text-align: center; }
.ticket { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 18px 20px; border-radius: var(--r); background: var(--surface); overflow: hidden; }
.ticket::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.ticket code { font-size: 1.05rem; letter-spacing: .14em; }
.sched-day { font-size: 1.5rem; letter-spacing: -0.03em; margin: 26px 0 6px; }
.sched-row { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.portal-head { display: grid; gap: 20px; align-items: end; margin: 20px 0 28px; }
@media (min-width: 760px) { .portal-head { grid-template-columns: 180px 1fr; } }

/* ---------- Organizer editor */
.editor-row { display: grid; gap: 10px; grid-template-columns: 1fr; padding: 14px; border-radius: var(--r-sm); background: var(--surface-2); }
.editor-row input, .editor-row textarea, .editor-row select { background: var(--surface-3); }
@media (min-width: 760px) { .editor-row.sched { grid-template-columns: 110px 90px 1fr 1fr auto; align-items: end; } }
.editor-row + .editor-row { margin-top: 8px; }

footer { padding: 48px 0 120px; color: var(--faint); font-size: .8rem; }

/* ---------- Site footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 48px 0 140px; color: var(--muted); font-size: .85rem; }
.site-footer .cols { display: grid; gap: 28px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .site-footer .cols { grid-template-columns: 1.6fr repeat(4, 1fr); } }
.site-footer h4 { margin: 0 0 12px; font-weight: 500; color: var(--text); font-size: .85rem; }
.site-footer a { display: block; text-decoration: none; padding: 3px 0; }
.site-footer a:hover { color: var(--text); }
.site-footer .bottom { margin-top: 40px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--faint); font-size: .78rem; }

/* ---------- Long-form info / legal pages */
.doc { display: grid; gap: 40px; padding: 40px 0 20px; }
@media (min-width: 900px) { .doc { grid-template-columns: 220px minmax(0, 720px); gap: 72px; } .doc .toc { position: sticky; top: 96px; align-self: start; } }
.doc .toc a { display: block; color: var(--muted); text-decoration: none; font-size: .85rem; padding: 4px 0; }
.doc .toc a:hover { color: var(--text); }
.doc h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); margin-bottom: 14px; }
.doc .updated { color: var(--faint); font-size: .82rem; margin-bottom: 36px; }
.doc h2 { font-size: 1.5rem; margin: 48px 0 12px; scroll-margin-top: 90px; }
.doc h3 { margin: 24px 0 8px; }
.doc p, .doc li { color: #cfcfcf; line-height: 1.7; }
.doc ul { padding-left: 1.2em; margin: 0 0 1em; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--text); font-weight: 500; }
.callout { background: var(--surface); border-radius: var(--r); padding: 18px 20px; margin: 20px 0; }
.callout.warn { box-shadow: inset 3px 0 0 var(--accent); }
.todo { background: color-mix(in srgb, var(--warn) 22%, transparent); color: var(--warn); padding: 0 .3em; border-radius: 4px; }
.no-list li::marker { content: "✕  "; color: var(--accent); }
.yes-list li::marker { content: "✓  "; color: var(--ok); }
.price-big { font-size: clamp(3rem, 9vw, 6rem); letter-spacing: -0.06em; line-height: 1; }

/* ---------- Organizer profiles */
.avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), #6b5bff); font-weight: 500; font-size: 1.1rem; color: #fff; position: relative; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.xl { width: 112px; height: 112px; font-size: 2.6rem; border: 4px solid var(--bg); }
.avatar.editable { cursor: pointer; }
.avatar .edit-badge { position: absolute; inset: auto 0 0 0; background: rgba(0,0,0,.65); font-size: .7rem; padding: 4px 0 8px; text-align: center; opacity: 0; transition: opacity .15s; }
.avatar.editable:hover .edit-badge { opacity: 1; }
.profile-hero { position: relative; aspect-ratio: 3 / 1; max-height: 360px; min-height: 140px; border-radius: var(--r); background-color: var(--surface);
  background-image: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--accent) 70%, transparent), transparent 60%),
    radial-gradient(100% 100% at 100% 100%, #3a2bff55, transparent 60%);
  background-size: cover; background-position: center; }
.profile-hero .cover-btn { position: absolute; right: 14px; top: 14px; z-index: 5; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); }
.profile-head { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; margin: -56px 0 0 20px; position: relative; }
.profile-head .grow { flex: 1; min-width: 200px; padding-bottom: 6px; }
.profile-head h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.verified { display: inline-grid; place-items: center; width: .5em; height: .5em; font-size: .9em; vertical-align: middle;
  background: var(--accent); color: #fff; border-radius: 50%; font-size: .4em; width: 1.6em; height: 1.6em; }
.host-card { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--r); background: var(--surface); text-decoration: none; }
.host-card:hover { background: var(--surface-2); }
.social { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

/* ---------- Door check-in */
.checkin-head { display: flex; gap: 24px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 18px; }
.checkin-count { font-size: clamp(2.6rem, 8vw, 4rem); letter-spacing: -0.05em; line-height: 1; }
.progress { flex: 1; min-width: 200px; height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-bottom: 10px; }
.progress i { display: block; height: 100%; width: 0; background: var(--ok); transition: width .3s; }
.checkin-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; position: sticky; top: 64px; z-index: 5; padding: 8px 0; background: var(--bg); }
.checkin-tools input { flex: 1; min-width: 220px; font-size: 16px; }
.checklist { display: grid; gap: 6px; }
.check-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 18px; border-radius: var(--r-sm); background: var(--surface); }
.check-row.in { opacity: .6; }
.check-row.in .nm::after { content: " ✓"; color: var(--ok); }
.check-row .nm { font-weight: 500; font-size: 1.02rem; }
.check-row .btn.primary { min-width: 110px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; }

/* ---------- Portal showcase (landing) */
.showcase { display: grid; gap: 40px; align-items: center; padding: 72px 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .showcase { grid-template-columns: 1fr 380px; gap: 72px; } }
.phone { width: min(340px, 100%); margin: 0 auto; aspect-ratio: 9 / 18.5; border-radius: 44px; padding: 12px; background: #000;
  box-shadow: 0 0 0 1px var(--line-strong), 0 40px 90px rgba(0,0,0,.6), 0 0 120px color-mix(in srgb, var(--accent) 22%, transparent); }
.phone .scr { height: 100%; border-radius: 34px; background: var(--bg); overflow: hidden; padding: 22px 16px; display: flex; flex-direction: column; gap: 12px; font-size: 12px; }
.phone .notch { width: 90px; height: 22px; border-radius: 20px; background: #000; margin: -10px auto 4px; box-shadow: 0 0 0 1px var(--line); }
.phone .t { font-size: 22px; letter-spacing: -0.04em; line-height: 1; }
.phone .mini-tabs { display: flex; gap: 4px; background: var(--surface); border-radius: 99px; padding: 3px; }
.phone .mini-tabs span { flex: 1; text-align: center; padding: 6px 0; border-radius: 99px; color: var(--muted); }
.phone .mini-tabs span.on { background: var(--surface-3); color: var(--text); }
.phone .blk { background: var(--surface); border-radius: 14px; padding: 12px; }
.phone .lock { display: flex; gap: 8px; align-items: center; color: var(--ok); font-size: 11px; }
.phone .srow { display: grid; grid-template-columns: 52px 1fr; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.showcase ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.showcase li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; color: var(--muted); }
.showcase li b { color: var(--text); font-weight: 500; display: block; }
.showcase li .ic { width: 28px; height: 28px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; color: var(--text); font-size: 13px; }

@media (max-width: 759px) { .grid-4 { grid-template-columns: 1fr 1fr; } .grid-4 .tile .cap h3 { font-size: .9rem; } }

/* ---------- Checkout agreement */
.agreement { border-radius: var(--r-sm); background: var(--surface-2); padding: 14px; }
.agreement .ag-title { font-weight: 500; margin-bottom: 8px; }
.agreement .ag-body { max-height: 160px; overflow-y: auto; font-size: .85rem; color: var(--muted); }
a.tab { text-decoration: none; display: inline-block; }
.btn.danger { background: var(--bad); color: #fff; box-shadow: none; }

/* ---------- Applications */
.answers { display: grid; gap: 4px 18px; margin: 14px 0 0; }
@media (min-width: 760px) { .answers { grid-template-columns: minmax(180px, 34%) 1fr; } }
.answers dt { color: var(--muted); font-size: .85rem; }
.answers dd { margin: 0 0 8px; white-space: pre-wrap; }

/* ---------- Landing marquee */
.rail.marquee { display: block; overflow: hidden; scroll-snap-type: none; padding-bottom: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track > * { flex: 0 0 min(56vw, 240px); }
.rail.marquee:hover .marquee-track, .rail.marquee:active .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 6px)); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .rail.marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}

/* ---------- Landing hero with vertical poster wall */
.hero-v { display: grid; gap: 36px; padding-top: 44px; padding-bottom: 40px; align-items: center; }
.hero-v h1 { font-size: clamp(3rem, 7.4vw, 6.4rem); letter-spacing: -0.06em; line-height: .9; margin: 18px 0 22px; }
.hero-v .lead { max-width: 520px; }
@media (min-width: 900px) { .hero-v { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; min-height: calc(100vh - 64px); padding-top: 0; padding-bottom: 0; } }
.vmarquee { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; height: clamp(460px, 78vh, 760px); overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); }
@media (max-width: 899px) { .vmarquee { height: 460px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } }
.vcol { overflow: hidden; }
.vtrack { display: flex; flex-direction: column; gap: 12px; animation: vscroll var(--dur, 44s) linear infinite; }
@media (max-width: 899px) { .vtrack { gap: 8px; } }
.vcol.down .vtrack { animation-direction: reverse; }
.vcol.down { margin-top: -60px; }
.vmarquee:hover .vtrack { animation-play-state: paused; }
@keyframes vscroll { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 6px)); } }
@media (prefers-reduced-motion: reduce) { .vtrack { animation: none; } .vmarquee { overflow-y: auto; } }

@media (max-width: 520px) { .hide-sm { display: none; } }

/* ---------- Photo cropper */
.crop-modal { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.7); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; }
.crop-card { width: min(560px, 100%); background: var(--surface); border-radius: 22px; padding: 22px; }
.crop-frame { position: relative; margin: 0 auto; overflow: hidden; border-radius: 12px; background: #000; cursor: grab; touch-action: none; user-select: none; }
.crop-frame:active { cursor: grabbing; }
.crop-frame img { position: absolute; top: 0; left: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.crop-frame.circle::after { content: ""; position: absolute; inset: 0; border-radius: 12px; pointer-events: none;
  background: radial-gradient(circle at center, transparent 0 calc(50% - 1px), rgba(0,0,0,.6) 50%); }
.crop-frame:not(.circle)::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); border-radius: 12px; }
.crop-zoom { width: 100%; margin-top: 16px; accent-color: var(--accent); background: none; padding: 0; }

/* ---------- Referral strip */
.ref-strip { display: flex; gap: 14px 24px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  margin-top: 16px; padding: 14px 16px 14px 20px; border-radius: var(--r); background: var(--surface);
  box-shadow: inset 3px 0 0 var(--accent); }
.ref-strip:empty { display: none; }
.ref-strip .ref-link { display: flex; gap: 8px; flex: 1; min-width: 260px; max-width: 520px; }
.ref-strip .ref-link input { padding: 8px 12px; font-size: .85rem; }
.btn { white-space: nowrap; }
