/* CRAM web join client — styles (linked from index.html as style.css). */

/* ===================================================================
 * CRAM web join client — design tokens (port of DESIGN.md / tokens.dart)
 * Dark, confident, energetic. One hot accent (electric lime).
 * =================================================================== */
:root {
  --background: #0a0a0c;
  --surface: #141419;
  --surface-raised: #1b1b22;
  --border: #26262f;
  --foreground: #f4f4ef;
  --muted: #8e8e9c;
  --accent: #c8ff2e;
  --accent-press: #b2e818;
  --accent-ink: #0a0a0c;
  --danger: #ff5d5d;
  --warn: #ffb54a;
  --boss: #ff4fd8;        /* Boss Round accent (magenta) — distinct from lime */
  --boss-press: #e83cc0;
  --boss-ink: #2a0022;

  --r-field: 12px;
  --r-card: 16px;
  --r-sheet: 24px;

  --shadow-float: 0 8px 30px rgb(0 0 0 / 0.45);

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0; height: 100%;
  background: var(--background);
  color: var(--foreground);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px; line-height: 1.4;
  overscroll-behavior: none;
}
#app { min-height: 100%; display: flex; flex-direction: column; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace; }

/* ---- Type ---- */
.t-display-xl { font-size: 40px; line-height: 1.05; font-weight: 900; letter-spacing: -1.6px; }
.t-display { font-size: 30px; line-height: 1.1; font-weight: 900; letter-spacing: -0.75px; }
.t-title { font-size: 20px; line-height: 1.2; font-weight: 800; letter-spacing: -0.4px; }
.t-label { font-size: 13px; line-height: 1.3; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; color: var(--muted); }
.t-hint { font-size: 14px; color: var(--muted); }
.t-sm { font-size: 14px; }

/* ---- Layout primitives ---- */
.screen {
  flex: 1; display: flex; flex-direction: column;
  padding: calc(16px + var(--safe-top)) 16px calc(16px + var(--safe-bottom));
  gap: 20px;
  max-width: 480px; width: 100%; margin: 0 auto;
}
.screen-center { justify-content: center; align-items: stretch; }
.grow { flex: 1; }
.col { display: flex; flex-direction: column; }
.row { display: flex; flex-direction: row; align-items: center; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-5 { gap: 20px; }
.center { text-align: center; }

/* ---- Card ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
}

/* ---- Buttons ---- */
.btn {
  border: 1px solid transparent; border-radius: var(--r-field);
  font-weight: 800; letter-spacing: -0.2px;
  min-height: 48px; padding: 0 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .12s ease, background .12s ease, opacity .12s ease;
  color: var(--foreground); background: transparent; font-size: 16px;
}
.btn:active:not(:disabled) { transform: scale(0.96); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:active:not(:disabled) { background: var(--accent-press); }
.btn-ghost { background: var(--surface-raised); border-color: var(--border); }
.btn-danger { background: var(--danger); color: #2a0000; }
.btn-xl { min-height: 64px; font-size: 24px; font-weight: 900; letter-spacing: -0.6px; border-radius: var(--r-card); }
.btn-full { width: 100%; }

/* ---- Inputs ---- */
.input {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-field); color: var(--foreground); font-size: 16px;
  outline: none;
}
.input:focus { border-color: var(--accent); }
textarea.input { resize: none; line-height: 1.5; }
select.input { appearance: none; -webkit-appearance: none; }

/* ---- Pills ---- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 700;
  border: 1px solid var(--border); background: var(--surface-raised); color: var(--muted);
}
.pill-accent { background: rgba(200,255,46,.15); border-color: rgba(200,255,46,.4); color: var(--accent); }
.pill-warn { background: rgba(255,181,74,.15); border-color: rgba(255,181,74,.4); color: var(--warn); }
.pill-danger { background: rgba(255,93,93,.15); border-color: rgba(255,93,93,.4); color: var(--danger); }

/* ---- Avatar ---- */
.avatar {
  border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; color: var(--accent-ink); flex-shrink: 0; overflow: hidden;
}

/* ---- Toasts ---- */
#toasts {
  position: fixed; left: 0; right: 0; bottom: calc(12px + var(--safe-bottom));
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none; z-index: 100; padding: 0 12px;
}
.toast {
  pointer-events: auto; max-width: 440px; width: 100%;
  background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: var(--r-field); padding: 12px 14px; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-float);
  animation: toastIn .26s ease;
}
.toast-warn { border-color: rgba(255,181,74,.5); color: var(--warn); }
.toast-danger { border-color: rgba(255,93,93,.5); color: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---- Spinner ---- */
.spinner {
  width: 34px; height: 34px; border-radius: 999px;
  border: 3px solid var(--border); border-top-color: var(--accent);
  animation: spin 0.8s linear infinite; margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
.pulse { animation: pulse 1.4s ease-in-out infinite; }

/* ---- Header ---- */
.header {
  display: flex; align-items: center; gap: 10px;
  padding: calc(10px + var(--safe-top)) 16px 10px;
  border-bottom: 1px solid var(--border);
}
.header .code {
  font-weight: 900; letter-spacing: -0.4px; font-size: 17px;
}

/* ---- Tab bar ---- */
.tabbar {
  display: flex; border-top: 1px solid var(--border);
  padding-bottom: var(--safe-bottom); background: var(--background);
}
.tab {
  flex: 1; background: transparent; border: none; color: var(--muted);
  padding: 12px 4px; font-weight: 800; font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 56px; position: relative;
}
.tab.active { color: var(--accent); }
.tab .badge {
  position: absolute; top: 6px; right: 24px; background: var(--accent); color: var(--accent-ink);
  border-radius: 999px; font-size: 10px; min-width: 16px; height: 16px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center; font-weight: 900;
}

/* ---- Room body ---- */
.room { flex: 1; display: flex; flex-direction: column; min-height: 0; max-width: 480px; width: 100%; margin: 0 auto; }
.tabpane { flex: 1; overflow-y: auto; padding: 16px; display: none; flex-direction: column; gap: 16px; -webkit-overflow-scrolling: touch; }
.tabpane.active { display: flex; }

/* ---- Quiz option ---- */
.opt {
  width: 100%; text-align: left; border: 1px solid var(--border); background: var(--surface);
  border-radius: var(--r-card); padding: 16px; font-size: 16px; font-weight: 600; color: var(--foreground);
  min-height: 56px; display: flex; align-items: center; gap: 12px;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.opt:active:not(:disabled) { transform: scale(0.98); }
.opt .optkey {
  width: 28px; height: 28px; border-radius: 8px; background: var(--surface-raised);
  display: flex; align-items: center; justify-content: center; font-weight: 900; flex-shrink: 0; font-size: 14px;
}
.opt.picked { border-color: var(--accent); background: rgba(200,255,46,.1); }
.opt.correct { border-color: var(--accent); background: rgba(200,255,46,.18); color: var(--foreground); }
.opt.correct .optkey { background: var(--accent); color: var(--accent-ink); }
.opt.wrong { opacity: .4; }
.opt.wrongpick { border-color: var(--danger); background: rgba(255,93,93,.12); }
.opt.wrongpick .optkey { background: var(--danger); color: #2a0000; }

/* ---- Countdown bar ---- */
.countdown { height: 8px; border-radius: 999px; background: var(--surface-raised); overflow: hidden; }
.countdown > i { display: block; height: 100%; background: var(--accent); border-radius: 999px; width: 100%; transition: width .2s linear; }
.countdown.warn > i { background: var(--warn); }
.countdown.danger > i { background: var(--danger); }
.countdown.boss > i { background: var(--boss); }

/* ---- Boss Round ---- */
.boss-badge {
  align-self: flex-start;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: var(--boss-ink);
  background: var(--boss);
  box-shadow: 0 0 0 1px rgba(255,79,216,.4), 0 0 18px rgba(255,79,216,.35);
  animation: bosspulse 1.6s ease-in-out infinite;
}
@keyframes bosspulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255,79,216,.4), 0 0 12px rgba(255,79,216,.25); }
  50%      { box-shadow: 0 0 0 1px rgba(255,79,216,.6), 0 0 22px rgba(255,79,216,.5); }
}
.btn-boss { background: var(--boss); color: var(--boss-ink); }
.btn-boss:active:not(:disabled) { background: var(--boss-press); }
.btn-boss:disabled { opacity: .55; }
.boss-offer {
  border-color: rgba(255,79,216,.4);
  background: linear-gradient(180deg, rgba(255,79,216,.10), var(--surface));
}

/* ---- Squad Brain ticker ---- */
.squad-brain {
  border-color: rgba(200,255,46,.3);
  background: linear-gradient(180deg, rgba(200,255,46,.06), var(--surface));
}

/* ---- Chat ---- */
#chatDrawer {
  position: fixed; inset: 0; z-index: 90; display: none;
  background: rgba(0,0,0,.5); align-items: flex-end;
}
#chatDrawer.open { display: flex; }
.sheet {
  background: var(--surface); border-top-left-radius: var(--r-sheet); border-top-right-radius: var(--r-sheet);
  border-top: 1px solid var(--border); width: 100%; max-width: 480px; margin: 0 auto;
  max-height: 80vh; display: flex; flex-direction: column;
  box-shadow: var(--shadow-float); animation: sheetUp .32s cubic-bezier(.2,.8,.2,1);
  padding-bottom: var(--safe-bottom);
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.chat-list { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { font-size: 15px; line-height: 1.4; word-break: break-word; }
.chat-msg .who { font-weight: 800; margin-right: 6px; }
.chat-input-row { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); align-items: flex-end; }
.react-row { display: flex; gap: 8px; padding: 0 16px 10px; }
.react { background: var(--surface-raised); border: 1px solid var(--border); border-radius: 999px; min-height: 40px; min-width: 48px; font-size: 20px; }
.react:active { transform: scale(0.9); }

/* ---- Roster row ---- */
.roster-row { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); }
.roster-row .name { font-weight: 700; flex: 1; }

/* ---- Moderation (mute / report) ---- */
/* Per-member overflow trigger — used on squad rows and chat bubbles. */
.mod-btn {
  flex: 0 0 auto; min-width: 32px; min-height: 32px; padding: 0 8px;
  background: none; border: 0; color: var(--muted); font-size: 20px; line-height: 1;
  border-radius: 999px; cursor: pointer;
}
.mod-btn:active { transform: scale(0.9); }
.mod-btn:hover { color: var(--fg); }
.chat-msg { display: flex; align-items: baseline; gap: 4px; }
.chat-msg > span:nth-child(2) { flex: 1; }
.mod-btn-inline { align-self: center; opacity: .55; }
.mod-btn-inline:hover { opacity: 1; }
/* Reusable bottom-sheet scrim (mirrors #chatDrawer) for the moderation menu. */
.sheet-scrim {
  position: fixed; inset: 0; z-index: 95; display: none;
  background: rgba(0,0,0,.5); align-items: flex-end;
}
.sheet-scrim.open { display: flex; }
/* Thin divider between room-menu groups (legal / AI note / reset). */
.menu-sep { height: 1px; background: var(--border); margin: 4px 0; }

/* ---- Podium ---- */
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 10px; }
.podium .col { align-items: center; gap: 6px; }
.podium .bar { border-radius: 12px 12px 0 0; width: 72px; background: var(--surface-raised); border: 1px solid var(--border); display: flex; align-items: flex-start; justify-content: center; padding-top: 8px; font-weight: 900; }
.podium .p1 .bar { background: rgba(200,255,46,.18); border-color: rgba(200,255,46,.5); color: var(--accent); height: 120px; }
.podium .p2 .bar { height: 88px; }
.podium .p3 .bar { height: 64px; }

.empty { text-align: center; color: var(--muted); padding: 32px 16px; font-size: 15px; }
.flash { animation: flash .4s ease; }
@keyframes flash { 0% { transform: scale(1); } 50% { transform: scale(1.06); } 100% { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .spinner { animation-duration: .8s !important; }
  .countdown > i { transition: none; }
}

/* ===================================================================
 * LANDING (Home page) — shared stylesheet, landing-scoped section.
 * All selectors are prefixed `lp-` so they never collide with the
 * game UI classes above. Design tokens (:root), base resets, the
 * .mono helper, and prefers-reduced-motion are single-sourced above
 * and reused here — nothing is re-declared.
 * The landing document has no #app; it flows normally inside <main>.
 * =================================================================== */
.lp-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace; font-variant-numeric: tabular-nums; }

/* ---- Ambient background (study energy, NOT cosmic) ---- */
.lp-ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.lp-ambient .lp-glow {
  position: absolute; border-radius: 999px; filter: blur(90px); opacity: .5;
  will-change: transform;
}
.lp-ambient .lp-glow--lime {
  width: 46vw; height: 46vw; top: -12vw; left: -8vw;
  background: radial-gradient(circle, rgba(200,255,46,.30), transparent 68%);
  animation: lpDriftA 22s ease-in-out infinite;
}
.lp-ambient .lp-glow--lime2 {
  width: 38vw; height: 38vw; top: 30vh; right: -12vw;
  background: radial-gradient(circle, rgba(200,255,46,.16), transparent 68%);
  animation: lpDriftB 28s ease-in-out infinite;
}
.lp-ambient .lp-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
@keyframes lpDriftA { 0%,100% { transform: translate(0,0); } 50% { transform: translate(4vw, 5vh); } }
@keyframes lpDriftB { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-5vw, -4vh); } }

/* ---- Shared shell ---- */
.lp-wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* ---- Nav ---- */
.lp-nav {
  position: sticky; top: 0; z-index: 50;
  padding: calc(12px + var(--safe-top)) 0 12px;
  background: rgba(10,10,12,.72);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.lp-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
/* Landing anchors never inherit the UA link color/underline (matters on the
   /play nav where the brand link isn't .is-active). */
.lp-brand, .lp-nav__link, .lp-btn, .lp-footer__links a { text-decoration: none; }
.lp-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 900; letter-spacing: -0.5px; font-size: 20px; color: var(--foreground); }
.lp-brand__mark {
  width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 15px;
  box-shadow: 0 0 22px rgba(200,255,46,.45);
}
.lp-brand.is-active { color: var(--accent); }
.lp-nav__links { display: flex; align-items: center; gap: 6px; }
.lp-nav__link {
  color: var(--muted); font-weight: 700; font-size: 14px; padding: 8px 10px; border-radius: var(--r-field);
  min-height: 40px; display: none; align-items: center;
}
.lp-nav__link:hover { color: var(--foreground); }
.lp-nav__link.is-active { color: var(--accent); }
@media (min-width: 720px) { .lp-nav__link { display: inline-flex; } }

/* ---- Buttons (landing-scoped so they don't touch the game's .btn) ---- */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: var(--r-field);
  font-weight: 800; font-size: 16px; letter-spacing: -0.2px; border: 1px solid transparent;
  background: transparent; color: var(--foreground); cursor: pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.lp-btn:active { transform: scale(0.96); }
.lp-btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 26px rgba(200,255,46,.25); }
.lp-btn--primary:active { background: var(--accent-press); }
.lp-btn--ghost { background: var(--surface-raised); border-color: var(--border); }
.lp-btn--lg { min-height: 56px; font-size: 18px; padding: 0 26px; border-radius: var(--r-card); }
.lp-btn--sm { min-height: 44px; font-size: 15px; padding: 0 16px; }

/* ---- Hero ---- */
.lp-hero { padding: 56px 0 40px; text-align: center; }
.lp-hero__badge {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid rgba(200,255,46,.4); background: rgba(200,255,46,.12); color: var(--accent);
  border-radius: 999px; padding: 6px 13px; font-size: 13px; font-weight: 800; letter-spacing: .3px;
  margin-bottom: 22px;
}
.lp-hero__title {
  font-size: clamp(46px, 13vw, 104px); line-height: .92; font-weight: 900; letter-spacing: -3px;
  margin: 0; text-transform: uppercase;
}
.lp-hero__title .lp-ink { color: var(--accent); text-shadow: 0 0 40px rgba(200,255,46,.4); }
.lp-hero__tagline {
  font-size: clamp(22px, 5vw, 34px); font-weight: 900; letter-spacing: -0.8px;
  margin: 18px auto 0; max-width: 16ch;
}
.lp-hero__blurb { color: var(--muted); font-size: 17px; max-width: 46ch; margin: 14px auto 0; }
.lp-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.lp-hero__meta { color: var(--muted); font-size: 13px; margin-top: 18px; }
.lp-hero__meta strong { color: var(--foreground); }

/* ---- Join-by-code box ---- */
.lp-join {
  margin: 26px auto 0; max-width: 460px; width: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 16px; text-align: left; display: flex; flex-direction: column; gap: 10px;
}
.lp-join__label { font-size: 13px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.lp-join__row { display: flex; gap: 10px; }
.lp-join__input {
  flex: 1; min-height: 48px; padding: 12px 14px;
  background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--r-field);
  color: var(--foreground); font-size: 16px; font-weight: 700; letter-spacing: .5px; outline: none;
}
.lp-join__input::placeholder { color: var(--muted); font-weight: 500; letter-spacing: 0; }
.lp-join__input:focus { border-color: var(--accent); }
.lp-join__hint { font-size: 13px; color: var(--muted); }

/* ---- Rejoin last room shortcut (Home only; shown by script.js) ---- */
.lp-rejoin {
  margin: 14px auto 0; max-width: 460px; width: 100%;
  display: flex; align-items: center; gap: 12px; text-align: left; flex-wrap: wrap;
}
.lp-rejoin__label { font-size: 13px; color: var(--muted); font-weight: 700; }
.lp-rejoin__btn { margin-left: auto; }
.lp-rejoin__btn .lp-mono { margin-left: 6px; letter-spacing: .5px; }

/* ---- App Store button + "get the app" cluster (hero secondary + section) ----
 * The <a class="lp-appstore"> mirrors Big Bang's .appstore badge, CRAM-styled.
 * Default markup renders the `.is-coming` (Coming to the App Store) state;
 * script.js removes `.is-coming` and sets href only when LP_APP_STORE_URL is set. */
.lp-appget { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 22px; }
.lp-appget__pre { font-size: 13px; font-weight: 700; color: var(--muted); }
.lp-appget--stack { align-items: flex-start; margin-top: 22px; }
.lp-appget__meta { color: var(--muted); font-size: 13px; margin: 0; }

.lp-appstore {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 8px 18px; border-radius: var(--r-field);
  background: var(--surface-raised); border: 1px solid var(--border);
  color: var(--foreground); cursor: pointer;
  transition: transform .12s ease, border-color .15s ease, background .12s ease;
}
.lp-appstore:active { transform: scale(0.96); }
.lp-appstore:hover { border-color: rgba(200,255,46,.45); }
.lp-appstore__logo { flex-shrink: 0; }
.lp-appstore__txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; text-align: left; }
.lp-appstore__small { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--muted); }
.lp-appstore__store { font-size: 17px; font-weight: 800; letter-spacing: -0.2px; }
.lp-appstore--lg { min-height: 56px; padding: 12px 24px; }
.lp-appstore--lg .lp-appstore__store { font-size: 20px; }
/* Coming-soon state: no href, not a live link — read as a tasteful badge, not a dead link. */
.lp-appstore.is-coming { cursor: default; opacity: .92; }
.lp-appstore.is-coming:active { transform: none; }
.lp-appstore.is-coming:hover { border-color: var(--border); }

/* ---- Download / About iOS section ---- */
.lp-download__panel {
  background: linear-gradient(135deg, rgba(200,255,46,.08), rgba(20,20,25,.35));
  border: 1px solid rgba(200,255,46,.24); border-radius: var(--r-sheet);
  padding: 34px 26px; display: grid; gap: 26px; grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 820px) { .lp-download__panel { grid-template-columns: 1.4fr 1fr; padding: 40px 36px; } }
.lp-download__title { font-size: clamp(24px, 5vw, 34px); font-weight: 900; letter-spacing: -1px; margin: 8px 0 0; }
.lp-download__blurb { color: var(--muted); font-size: 16px; margin: 14px 0 0; max-width: 52ch; }
.lp-download__blurb strong { color: var(--foreground); }
.lp-download__points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.lp-download__points li {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 14px 16px; font-size: 14px; font-weight: 600;
}
.lp-download__points li span { font-size: 18px; flex-shrink: 0; }

/* ---- Section scaffolding ---- */
.lp-section { padding: 52px 0; }
.lp-section__head { text-align: center; max-width: 44ch; margin: 0 auto 34px; }
.lp-section__eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent); }
.lp-section__title { font-size: clamp(28px, 6vw, 40px); font-weight: 900; letter-spacing: -1.2px; margin: 8px 0 0; }
.lp-section__sub { color: var(--muted); font-size: 16px; margin: 10px 0 0; }

/* ---- How it works ---- */
.lp-steps { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .lp-steps { grid-template-columns: repeat(3, 1fr); } }
.lp-step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 22px; display: flex; flex-direction: column; gap: 10px;
}
.lp-step__num {
  width: 40px; height: 40px; border-radius: 12px; background: rgba(200,255,46,.14);
  border: 1px solid rgba(200,255,46,.4); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 18px;
}
.lp-step h3 { margin: 4px 0 0; font-size: 20px; font-weight: 800; letter-spacing: -0.4px; }
.lp-step p { margin: 0; color: var(--muted); font-size: 15px; }
.lp-step__punch { color: var(--accent); font-weight: 800; }

/* ---- Features grid ---- */
.lp-features { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .lp-features { grid-template-columns: repeat(2, 1fr); } }
.lp-feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 20px; display: flex; flex-direction: column; gap: 8px;
  transition: border-color .15s ease, transform .15s ease;
}
.lp-feature:hover { border-color: rgba(200,255,46,.4); transform: translateY(-2px); }
.lp-feature__icon { font-size: 24px; }
.lp-feature h3 { margin: 2px 0 0; font-size: 18px; font-weight: 800; letter-spacing: -0.3px; }
.lp-feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---- Why CRAM band ---- */
.lp-why {
  background: linear-gradient(135deg, rgba(200,255,46,.10), rgba(20,20,25,.4));
  border: 1px solid rgba(200,255,46,.28); border-radius: var(--r-sheet);
  padding: 40px 26px; text-align: center;
}
.lp-why__title { font-size: clamp(26px, 6vw, 38px); font-weight: 900; letter-spacing: -1px; margin: 0; }
.lp-why__quotes { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 28px; text-align: left; }
@media (min-width: 760px) { .lp-why__quotes { grid-template-columns: repeat(3, 1fr); } }
.lp-quote {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 18px;
}
.lp-quote p { margin: 0; font-size: 15px; }
.lp-quote__who { display: block; margin-top: 12px; color: var(--muted); font-size: 13px; font-weight: 700; }

/* ---- Final CTA ---- */
.lp-final { text-align: center; padding: 60px 0 40px; }
.lp-final__title { font-size: clamp(30px, 7vw, 52px); font-weight: 900; letter-spacing: -1.6px; margin: 0 0 22px; text-transform: uppercase; }

/* ---- Footer ---- */
.lp-footer { border-top: 1px solid var(--border); padding: 30px 0 calc(30px + var(--safe-bottom)); margin-top: 30px; }
.lp-footer__inner { display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
@media (min-width: 640px) { .lp-footer__inner { flex-direction: row; justify-content: space-between; text-align: left; } }
.lp-footer__links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.lp-footer__links a { color: var(--muted); font-size: 14px; font-weight: 600; }
.lp-footer__links a:hover { color: var(--foreground); }
.lp-footer__copy { color: var(--muted); font-size: 13px; }
.lp-footer__copy .lp-runs { color: var(--foreground); font-weight: 700; }
