/* Hosted-only chrome: sign-in gate, onboarding, settings, site footer.
   dashboard.css is the untouched local stylesheet; everything here layers on
   top of it and reuses its tokens. */

/* Sign-in gate */
.gate {
  /* The fixed footer's space is reserved by body padding. Subtract that space
     here so the signed-out screen is exactly one viewport, not one viewport
     plus a footer (which forced a needless pre-login scroll). */
  min-height: calc(100vh - 56px);
  display: grid;
  place-items: center;
  padding: 24px;
}
.gate-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 48px 40px;
  text-align: center;
  max-width: 380px;
  width: 100%;
}
.gate-logo { width: 40px; height: 40px; color: var(--accent); margin-bottom: 16px; }
.gate-card h1 { font-family: var(--font-head); font-size: 24px; margin: 0; }
.gate-sub { color: var(--text-soft); margin: 8px 0 0; }
.gate-btn { margin-top: 24px; width: 100%; justify-content: center; background: var(--bg-card); color: var(--text); border: 1px solid var(--border-strong); }
.gate-btn:hover { background: var(--bg-sunken); }

.gate-divider {
  display: flex; align-items: center; gap: 16px;
  margin: 24px 0; color: var(--text-faint); font-size: 13px;
}
.gate-divider::before, .gate-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.gate-email-form { display: grid; gap: 8px; text-align: left; }
.gate-email-form input {
  font: inherit; color: var(--text);
  background: var(--bg-sunken); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 16px;
}
.gate-email-form input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.gate-email-form .gate-btn { margin-top: 8px; }
.gate-error { color: #c2186a; font-size: 13px; margin: 0; }
.gate-email-links { display: flex; justify-content: space-between; margin-top: 4px; }
.gate-link {
  background: none; border: none; padding: 4px 0;
  font: inherit; font-size: 13px; color: var(--text-soft);
  cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
}
.gate-link:hover { color: var(--accent); }

/* Onboarding */
.onboarding { min-height: 100vh; display: grid; place-items: center; padding: 48px 24px 96px; }
.onboard-card { max-width: 640px; width: 100%; }
.onboard-card h1 { font-family: var(--font-head); font-size: 28px; margin: 0; }
.onboard-sub { color: var(--text-soft); margin: 8px 0 32px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.step {
  display: flex; gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 24px;
}
.step-num {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: var(--accent-soft); color: var(--accent);
  font-weight: 600;
}
.step.done .step-num { background: #e7f4ec; color: #1f7a48; }
.step-body { flex: 1; min-width: 0; }
.step-body h2 { font-family: var(--font-head); font-size: 16px; margin: 4px 0 0; }
.step-body p { color: var(--text-soft); margin: 8px 0 0; font-size: 14px; }
.step-action { display: flex; align-items: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.step-status { color: var(--text-soft); font-size: 14px; }
.step.done .step-status { color: #1f7a48; }

/* Settings */
.settings-card { max-width: 640px; }
.set-block { padding: 24px 0; border-top: 1px solid var(--border); }
.set-block:first-child { border-top: 0; padding-top: 0; }
.set-block h4 { font-family: var(--font-head); font-size: 15px; margin: 0; }
.set-note { color: var(--text-soft); font-size: 14px; margin: 8px 0 0; }
.set-note a { color: var(--accent); }
.set-row { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
/* One pattern for every section: text on the left, its control pinned right. */
.set-text { flex: 1; min-width: 0; margin: 0; }
.set-text > .set-note:first-child, .set-status:empty + .set-note { margin-top: 0; }
.set-status { display: block; color: var(--text); font-size: 14px; font-weight: 500; }
.set-status:empty { display: none; }
.set-row > .btn, .set-row > .seg, .set-row > .tz-menu { flex: 0 0 auto; }
/* Field rows (input + its button) use the tighter 8px gap, same as key rows. */
.set-row.set-field { gap: 8px; }

/* BYOK key rows */
#ai-keys { display: grid; }
.key-row { margin-top: 16px; }
.key-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.key-head .provider-name { flex: 1; font-size: 14px; font-weight: 600; text-transform: capitalize; }
.key-field { display: flex; align-items: center; gap: 8px; }
.key-row input {
  flex: 1; min-width: 180px;
  font: inherit; color: var(--text);
  background: var(--bg-sunken); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 12px;
}
.key-row input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.key-row .masked { color: var(--text-soft); font-family: ui-monospace, monospace; flex: 1; }
.usage-chip {
  font-size: 12px; color: var(--text-soft);
  background: var(--bg-sunken); border-radius: var(--r-pill);
  padding: 4px 12px; white-space: nowrap;
}
.usage-chip.at-cap { color: #8a5a00; background: #fbf0dc; }
.key-row .rank-btns { display: flex; gap: 4px; }
.btn.btn-icon { width: var(--ctl-h); padding: 0; }

/* Top-bar icon actions — outline icon in an outline container, equal size,
   right aligned with an 8px gap. */
#dash .action-row { justify-content: flex-end; gap: 8px; }
.icon-btn {
  /* 36px matches the dashboard's own .iconbtn controls; the 18px/1.7 icon
     inside matches the view-tab and filter icons. */
  width: var(--ctl-h); height: var(--ctl-h);
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
  border: 1px solid var(--nav-fg);
  border-radius: var(--r-pill);
  background: none;
  color: var(--nav-fg);
  cursor: pointer;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.16); }
.icon-btn svg { display: block; }
.icon-btn.spinning svg { animation: icon-spin 0.6s linear infinite; }
@keyframes icon-spin { to { transform: rotate(360deg); } }

/* List view — the compact mode, driven by the same filters and sort. */
.listview { display: block; padding: 0 var(--pad-x) 32px; }
.list-week {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin: 32px 0 0; padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.list-week:first-child { margin-top: 16px; }
.list-week h2 { font-family: var(--font-head); font-size: 17px; margin: 0; letter-spacing: -0.01em; }
.list-week .count { font-size: 13px; color: var(--text-soft); }
.list-day { font-size: 13px; font-weight: 600; color: var(--text-soft); margin: 24px 0 8px; }
.list-group { display: grid; gap: 8px; }
/* One column: time, then name + location, then chips — so a row never needs
   horizontal space it does not have. */
.list-row {
  /* minmax(0,1fr): without it a long unbreakable word or chip widens the
     track and pushes the row past the viewport. */
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
  cursor: pointer;
  transition: border-color 150ms ease, transform 120ms ease;
}
.list-row:hover { border-color: var(--accent); transform: translateY(-1px); }
/* Copy-link button on a list row: hidden until the row is hovered or focused,
   same behavior as the gallery cards. Touch has no hover, so always visible. */
.list-row { position: relative; }
.list-row .card-copy { position: absolute; top: 12px; right: 12px; }
.list-row:hover .card-copy, .list-row:focus-within .card-copy { opacity: 1; }
@media (hover: none) { .list-row .card-copy { opacity: 1; } }
.list-row.cancelled { opacity: 0.55; }
.list-row.cancelled .list-name { text-decoration: line-through; }
.list-time {
  font-size: 13px; font-weight: 600; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.list-main { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.list-time, .list-main, .list-chips { min-width: 0; }
.list-name, .list-where { min-width: 0; overflow-wrap: anywhere; }
.list-name { font-weight: 600; }
.list-where { font-size: 13px; color: var(--text-soft); }
.list-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* Dashboard chips are nowrap by default; in a stacked row a long host name
   ("Cooperman Business Center") has to be allowed to wrap. */
.list-chips .chip {
  margin: 0; max-width: 100%;
  white-space: normal; overflow-wrap: anywhere;
}

/* The per-card source line needs sourceFrom (sender name), which stays
   local-only — hidden rather than shown as "From —". The Inbox-only toggle
   works now that fromWeb + sourceEmailId sync (her call, 2026-08-12). */
#dash .card-source { display: none; }

/* Modals must clear the fixed site footer. The dashboard ships them at
   z-index 100, which sat UNDER the footer's 400 — filters/event/settings all
   appeared clipped along the bottom. Kept below #copyFloat (1000). */
#dash .modal, #settingsModal { z-index: 500; }

/* Interests */
.interest-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.interest-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--accent); background: var(--accent-soft);
  border-radius: var(--r-pill); padding: 4px 12px;
}
.interest-chip button {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: inherit; font-size: 14px; line-height: 1; opacity: 0.7;
}
.interest-chip button:hover { opacity: 1; }
.set-row input[type="text"] {
  flex: 1; min-width: 180px;
  font: inherit; color: var(--text);
  background: var(--bg-sunken); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 12px;
}
.set-row input[type="text"]:focus { outline: 2px solid var(--accent); outline-offset: -1px; }

/* Privacy policy page */
.policy {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}
.policy-back {
  display: inline-block; margin-bottom: 32px;
  color: var(--text-soft); font-size: 14px; text-decoration: none;
}
.policy-back:hover { color: var(--accent); }
.policy h1 { font-family: var(--font-head); font-size: 28px; margin: 0; }
.policy h2 {
  font-family: var(--font-head); font-size: 17px;
  margin: 40px 0 0; padding-top: 24px;
  border-top: 1px solid var(--border);
}
.policy-updated { color: var(--text-faint); font-size: 14px; margin: 8px 0 0; }
.policy-lede { font-size: 17px; margin: 24px 0 0; }
.policy p { margin: 16px 0 0; }
.policy ul { margin: 16px 0 0; padding-left: 24px; display: grid; gap: 8px; }
.policy li { line-height: 1.6; }
.policy a { color: var(--accent); }
.policy code {
  font-family: ui-monospace, monospace; font-size: 13px;
  background: var(--bg-sunken); border-radius: 4px; padding: 2px 4px;
}

/* Gate link to the policy — required to be reachable from the app itself */
.gate-legal { margin-top: 24px; font-size: 13px; color: var(--text-faint); }
.gate-legal a { color: var(--text-soft); }

/* Site footer — pinned to the bottom of the viewport */
.site-footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 400;
  display: flex; align-items: center;
  height: 56px;
  padding: 0 24px;
  background: var(--accent-soft);
}
.site-footer-text { font-size: 14px; color: var(--accent); opacity: 0.9; }
.site-footer-link { color: inherit; font-weight: 600; text-decoration: none; }
.site-footer-link:hover { text-decoration: underline; }
body { padding-bottom: 56px; }
@media (max-width: 640px) {
  .site-footer { height: 48px; }
  body { padding-bottom: 48px; }
}

/* Toast */
.toast {
  position: fixed; bottom: 72px; left: 50%; transform: translateX(-50%);
  z-index: 600;   /* above modals so confirmations are never hidden */
  background: var(--text); color: #fff;
  border-radius: var(--r-md); padding: 8px 16px;
  box-shadow: var(--shadow);
}

/* ── Boot state ───────────────────────────────────────────────────────────────
   First paint. The rest of the page is `hidden` until Firebase auth resolves, so
   without this the user saw an empty page with only the footer — indistinguishable
   from a broken app (owner note, 2026-09-01). `body.booting` also holds the footer back,
   so the loading state is the whole first frame rather than a stray line of legal. */
body.booting .site-footer { visibility: hidden; }
.boot {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg, #f9fafb);
}
body:not(.booting) .boot { display: none; }
.boot-card { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 24px; }
.boot-logo { width: 40px; height: 40px; color: var(--accent, #e01e7b); }
/* An indeterminate bar, not a spinner: it says "working" without implying progress
   we cannot measure. One accent color, matching every other control on the page. */
.boot-bar {
  width: 160px; height: 4px; border-radius: 999px;
  background: var(--accent-soft, #fdebf4); overflow: hidden;
}
.boot-bar span {
  display: block; width: 40%; height: 100%; border-radius: 999px;
  background: var(--accent, #e01e7b); animation: bootSlide 1.2s ease-in-out infinite;
}
@keyframes bootSlide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(320%); }
}
.boot-msg { margin: 0; font-size: 14px; color: var(--text-soft, #6b7280); text-align: center; max-width: 34ch; }
.boot-retry { margin-top: 8px; }
@media (prefers-reduced-motion: reduce) {
  .boot-bar span { animation: none; width: 100%; opacity: .55; }
}

/* ── View tabs: sliding pill + view-switch transition ──
   list-view.js adds .seg-thumb and positions it on the active tab. The tab's
   own background goes transparent once the pill is placed (.has-thumb), so
   only the icon color changes — on the same timing as the slide. */
#viewTabs { position: relative; }
#viewTabs .seg-thumb {
  position: absolute; top: 4px; left: 0;
  height: var(--ctl-h); width: 0;
  border-radius: var(--r-pill); background: var(--accent);
  transition: transform .28s cubic-bezier(.3,.7,.2,1), width .28s cubic-bezier(.3,.7,.2,1);
  pointer-events: none;
}
#viewTabs .seg-btn { position: relative; z-index: 1; transition: color .28s ease; }
#viewTabs.has-thumb .seg-btn.active { background: transparent; }

/* List's header row sits beside the tabs exactly like Gallery's, in the same
   order (title, arrows, count on the right), so switching never moves it. */
@media (min-width: 720px) { #listSub { flex: 1 1 auto; } }
#listSub #listCount { margin-left: auto; }

/* Only the named pieces animate during a view switch; everything else swaps
   in place. The header row fades/slides out and the new one in; the content
   cross-fades with a small lift. */
html.mr-view-switch { view-transition-name: none; }
html.mr-view-switch #viewTabs .seg-thumb { view-transition-name: mr-tab-thumb; }
html.mr-view-switch #viewTabs .seg-btn[data-view="list"]     { view-transition-name: mr-tab-list; }
html.mr-view-switch #viewTabs .seg-btn[data-view="gallery"]  { view-transition-name: mr-tab-gallery; }
html.mr-view-switch #viewTabs .seg-btn[data-view="calendar"] { view-transition-name: mr-tab-calendar; }
html.mr-view-switch #viewTabs .seg-btn[data-view="map"]      { view-transition-name: mr-tab-map; }
html.mr-view-switch #listSub    { view-transition-name: mr-sub-list; }
html.mr-view-switch #gallerySub { view-transition-name: mr-sub-gallery; }
html.mr-view-switch #calSub     { view-transition-name: mr-sub-cal; }
html.mr-view-switch #mapSub     { view-transition-name: mr-sub-map; }
html.mr-view-switch #view, html.mr-view-switch #mapWrap { view-transition-name: mr-body; }
::view-transition-group(*) { animation-duration: .28s; animation-timing-function: cubic-bezier(.3,.7,.2,1); }
::view-transition-old(mr-sub-list), ::view-transition-old(mr-sub-gallery),
::view-transition-old(mr-sub-cal), ::view-transition-old(mr-sub-map) { animation: mr-sub-out .12s ease-in both; }
::view-transition-new(mr-sub-list), ::view-transition-new(mr-sub-gallery),
::view-transition-new(mr-sub-cal), ::view-transition-new(mr-sub-map) { animation: mr-sub-in .24s cubic-bezier(.3,.7,.2,1) .1s both; }
::view-transition-old(mr-body) { animation: mr-fade-out .12s ease-in both; }
::view-transition-new(mr-body) { animation: mr-body-in .28s cubic-bezier(.3,.7,.2,1) .1s both; }
::view-transition-group(mr-body) { animation: none; }
@keyframes mr-sub-out { to { opacity: 0; transform: translateY(-4px); } }
@keyframes mr-sub-in  { from { opacity: 0; transform: translateY(8px); } }
@keyframes mr-fade-out { to { opacity: 0; } }
@keyframes mr-body-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  #viewTabs .seg-thumb, #viewTabs .seg-btn { transition: none; }
}

/* ── No sideways scroll at any width ──
   dashboard.css only stops long unbroken text (a host name, a URL, a title)
   from widening cards and month cells on phones. On wider screens one long
   host chip pushed its card — and the whole page — past the window edge, and
   long titles stretched every month column. Same rules, every width. */
.card, .cal-cell { min-width: 0; }
.card-title, .card-loc, .card-reasons, .card-source, .card-desc { overflow-wrap: anywhere; }
.chip { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.cal-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.day-chip { min-width: 0; overflow-wrap: anywhere; }

/* ── Mobile (hosted chrome) ─────────────────────────────
   The dashboard's own phone rules live in dashboard.css; these cover the
   gate, onboarding, settings and list view. Same 640px threshold. */
@media (max-width: 640px) {
  .gate { min-height: calc(100dvh - 48px); }
  .onboarding { min-height: 100dvh; }
  .gate-card { padding: 32px 24px; }
  .onboarding { padding: 32px 16px 96px; }
  .onboard-card h1 { font-size: 24px; }
  .step { padding: 16px; gap: 12px; }
  .listview { padding: 0 var(--pad-x) 32px; }
  /* Key rows: provider name on its own line, the field takes the full width,
     the action buttons share the next line — nothing gets narrower than 180px */
  .set-row:not(.set-field) { flex-wrap: wrap; }
  .set-row:not(.set-field) > .set-text { flex: 1 1 100%; }
  .set-row:not(.set-field) > .btn, .set-row > .seg, .set-row > .tz-menu { margin-left: auto; }
  .site-footer { padding: 0 16px; }
  .policy { padding: 32px 16px 96px; }
}
@media (hover: none) and (pointer: coarse) {
  .gate-link { padding: 12px 0; }
  .interest-chip button { padding: 8px; margin: -8px -4px -8px 0; }


}

/* Settings CTAs: link-styled buttons never underline, and every row keeps its
   text on the left and its button pinned right, like Sign out. */
.settings-card a.btn { text-decoration: none; display: inline-flex; align-items: center; }

/* Friend view banner (/?friend=<id>) */
.friend-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 16px var(--pad-x); background: var(--accent-soft); color: var(--text); }
.friend-bar-text { flex: 1; font-size: 14px; }

/* Embedded in the Friends page: just the controls and views, no app chrome. */
html.embed .topbar, html.embed .site-footer, html.embed .footer, html.embed .friend-bar { display: none !important; }
html.embed body { background: transparent; }
html.embed { --pad-x: 0px; }
html.embed body { overflow-x: hidden; }

/* Embedded view: nothing may size itself off the iframe's own height (100vh inside
   an auto-sized iframe feeds back into the frame height). Fixed, sensible sizes. */
html.embed, html.embed body { height: auto; min-height: 0; }
html.embed #map { height: 640px; }
html.embed .tg-body { max-height: 720px; }

/* Consent banner (bakedgood-init.js), built from the app's own card and buttons. */
.bakedgood-card{padding:24px;border-radius:16px;background:var(--bg-card);border:1px solid var(--border);box-shadow:0 8px 32px rgba(0,0,0,.16);display:flex;flex-direction:column;gap:16px;color:var(--text)}
.bakedgood-title{font-size:16px;font-weight:700}
.bakedgood-actions{display:flex;flex-wrap:wrap;gap:8px}
.bakedgood-actions .btn{flex:1 1 auto}
.bakedgood-link{color:var(--accent)}
.bakedgood-muted{color:var(--text-soft);font-size:14px}

/* Landing page (signed out) — one join card: sign in or join the waitlist.
   Every field and button shares one height, radius and inset. */
.gate.landing { display: block; place-items: initial; max-width: 1120px; margin: 0 auto; padding: 24px 40px 96px; }
.landing-nav { display: flex; align-items: center; justify-content: space-between; height: 48px; }
.landing-brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 20px; font-weight: 600; }
.landing-brand svg { width: 24px; height: 24px; color: var(--accent); }
.landing-nav-link { color: var(--text); font-weight: 600; text-decoration: none; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--border-strong); line-height: 1; }
.landing-nav-link:hover { background: var(--bg-sunken); }
.landing-top { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 64px; align-items: start; margin-top: 64px; }
.landing-hero h1 { font-family: var(--font-head); font-size: 48px; line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
.landing-body { color: var(--text-soft); font-size: 18px; line-height: 1.6; max-width: 560px; margin: 24px 0 0; }
.landing-steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 24px; }
.landing-steps li { display: flex; gap: 16px; align-items: flex-start; }
.landing-steps h3 { font-size: 16px; margin: 0; }
.landing-steps p { color: var(--text-soft); font-size: 15px; margin: 4px 0 0; }

.join-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 32px; }
.join-title { font-family: var(--font-head); font-size: 24px; margin: 0; }
.join-card .gate-sub { margin: 8px 0 24px; }
.join-form { display: grid; gap: 8px; }
.join-field {
  width: 100%; box-sizing: border-box; min-height: 48px; font: inherit; color: var(--text);
  background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: 12px; padding: 12px 16px;
}
textarea.join-field { resize: vertical; }
.join-field:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.join-btn { width: 100%; min-height: 48px; justify-content: center; border-radius: 12px; }
.join-google { background: var(--bg-card); color: var(--text); border: 1px solid var(--border-strong); gap: 8px; }
.join-google:hover { background: var(--bg-sunken); }
.join-link { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--text-soft); text-decoration: underline; cursor: pointer; }
#emailToggle { display: block; margin: 16px auto 0; }
#emailForm { margin-top: 16px; }
.join-links { display: flex; justify-content: space-between; margin-top: 8px; }
.join-divider { display: flex; align-items: center; gap: 16px; margin: 24px 0; color: var(--text-faint); font-size: 14px; }
.join-divider::before, .join-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.join-card .gate-legal { margin: 24px 0 0; text-align: center; }
.waitlist-msg { margin: 8px 0 0; font-size: 15px; }
.waitlist-msg.is-error { color: #c2186a; }
.gate-notice { margin: 0 0 24px; padding: 16px; border-radius: 12px; background: var(--accent-soft, #fdebf4); font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.landing-shot { margin: 80px 0 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.landing-shot img { display: block; width: 100%; height: auto; }

@media (max-width: 960px) {
  .gate.landing { padding: 16px 24px 96px; }
  .landing-top { grid-template-columns: 1fr; gap: 40px; margin-top: 40px; }
  .landing-shot { margin-top: 48px; }
}
@media (max-width: 529px) {
  .gate.landing { padding: 16px 16px 96px; }
  .landing-hero h1 { font-size: 32px; }
  .landing-body { font-size: 16px; }
  .join-card { padding: 24px 16px; }
}
