/* BetSignal mobile web -- locked Signal palette, matching the desktop app. */
:root {
  --charcoal: #14171a;
  --gold: #f2b84b;
  --emerald: #2fbf8f;
  --coral: #ff6b5e;
  --cream: #f5f3ec;
  /* neutral card greys (locked) */
  --bg: #14171a;        /* page background (card lifts off this) */
  --card: #1a1e23;      /* card surface */
  --pill: #22262b;      /* pill / bar-track fill */
  --border: #23282e;
  --muted: #7c828a;
  --cream-soft: rgba(245, 243, 236, 0.9);   /* landing: secondary copy — bright, still under headlines */
  --cream-dim: rgba(245, 243, 236, 0.72);   /* landing: genuinely tertiary micro-copy — readable, not washed out */
  --best-ink: #0e4d3a;  /* darker-emerald text on the emerald best block */
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
#root {
  max-width: 680px;
  margin: 0 auto;
  min-height: 100vh;
}

/* ---- activation ---- */
.activation {
  padding: 18vh 24px 24px;
  text-align: center;
}
.brand {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.activation .sub {
  color: var(--muted);
  margin: 0 0 24px;
}
.key-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--cream);
  margin-bottom: 12px;
}
.btn {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  border: 0;
  border-radius: 12px;
  background: var(--emerald);
  color: var(--charcoal);
  cursor: pointer;
  margin-bottom: 10px;
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.msg {
  color: var(--muted);
  min-height: 20px;
  margin-top: 8px;
}

/* ============================================================================
   First-visit landing PAGE (full-bleed SaaS layout). Scoped to .landing-page;
   only rendered on first visit, so it can break the app's 680px column.
   ============================================================================ */
#root.landing-active {
  max-width: none; /* let the landing go full-viewport-width */
}
.landing-page {
  position: relative;
  overflow-x: clip; /* contain hero/final glows without breaking layout */
  color: var(--cream);
}
/* shared inner content column */
.lp-inner {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}
.lp-section {
  padding: 60px 0;
}
.lp-band {
  /* full-width tinted band */
  background: linear-gradient(180deg, rgba(26, 30, 35, 0), rgba(26, 30, 35, 0.55));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
}

/* ambient radial glow (hero + final band) */
.landing-glow {
  position: absolute;
  top: -18%;
  left: 50%;
  width: 120%;
  max-width: 900px;
  aspect-ratio: 1 / 1;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(closest-side, rgba(47, 191, 143, 0.2), rgba(47, 191, 143, 0) 70%),
    radial-gradient(closest-side, rgba(242, 184, 75, 0.12), rgba(242, 184, 75, 0) 70%);
  background-repeat: no-repeat;
  background-position: 42% 20%, 64% 32%;
  background-size: 90% 90%, 66% 66%;
}

/* ---- hero ---- */
.lp-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92vh;
  min-height: 92dvh;
  padding: 64px 0 56px;
  text-align: center;
}
.lp-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
}
.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 12px rgba(47, 191, 143, 0.75);
}
.brand-word {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--cream);
}
.landing-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(242, 184, 75, 0.1);
  border: 1px solid rgba(242, 184, 75, 0.22);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.landing-headline {
  font-size: clamp(34px, 8.5vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--cream);
  margin: 0 0 16px;
}
.landing-headline .accent {
  color: var(--gold);
}
.landing-sub {
  font-size: clamp(16px, 3.6vw, 20px);
  line-height: 1.5;
  /* cream-bright (not pure white) so it reads clearly on charcoal, still under the headline */
  color: var(--cream-soft);
  margin: 0 auto 30px;
  max-width: 30em;
}

/* ---- CTAs ---- */
.landing-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
}
.landing-cta {
  width: 100%;
  border: 0;
  cursor: pointer;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  padding: 17px 20px;
  border-radius: 15px;
  color: var(--charcoal);
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}
.cta-primary,
.cta-secondary {
  background: var(--gold);
  box-shadow: 0 10px 26px rgba(242, 184, 75, 0.22), 0 2px 6px rgba(0, 0, 0, 0.3);
}
.landing-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
}
.landing-cta:active {
  transform: translateY(1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.landing-note {
  font-size: 12.5px;
  /* tertiary micro-copy: still cream, just a touch softer than the subtext */
  color: var(--cream-dim);
  margin: 12px 0 0;
}
.landing-activate-link {
  display: inline-block;
  margin: 14px auto 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--cream-dim);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.landing-activate-link:hover {
  color: var(--cream);
}
.lp-scrollcue {
  margin-top: 30px;
  background: transparent;
  border: 0;
  color: var(--cream-dim); /* tertiary, brightens to full cream on hover */
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.lp-scrollcue:hover {
  color: var(--cream);
}

/* ---- trust strip (prominent proof line high in the hero) ---- */
.lp-trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 28px;
}
.lp-hero-trust {
  /* sits between the subtext and the CTAs, clearly spaced from both */
  margin: 4px auto 26px;
}
.trust-item {
  position: relative;
  padding-left: 20px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--cream);
}
.trust-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px rgba(47, 191, 143, 0.7); /* emerald accent, pronounced */
}

/* ---- section headings ---- */
.lp-h2 {
  font-size: clamp(26px, 5.5vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--cream);
  text-align: center;
  margin: 0 0 8px;
}
.lp-h2-sub {
  text-align: center;
  color: var(--cream-soft);
  font-size: 15px;
  margin: 0 0 36px;
}

/* ---- icons ---- */
.lp-icon {
  display: inline-flex;
}
.lp-icon svg {
  width: 24px;
  height: 24px;
}

/* ---- how it works ---- */
.lp-steps {
  margin-top: 34px;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
.lp-step {
  text-align: center;
  padding: 8px;
}
.lp-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin-bottom: 14px;
  color: var(--emerald);
  background: rgba(47, 191, 143, 0.12);
  border: 1px solid rgba(47, 191, 143, 0.22);
}
.lp-step-icon.accent {
  /* the one, sparing coral accent */
  color: var(--coral);
  background: rgba(255, 107, 94, 0.12);
  border-color: rgba(255, 107, 94, 0.22);
}
.lp-step-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--cream);
  margin: 0 0 6px;
}
.lp-step-body {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--cream-soft);
  margin: 0 auto;
  max-width: 24em;
}

/* ---- cards ---- */
.lp-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.lp-card:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 191, 143, 0.35);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}
.lp-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
.lp-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--emerald);
  background: rgba(47, 191, 143, 0.1);
  margin-bottom: 12px;
}
.lp-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--cream);
  margin: 0 0 6px;
}
.lp-card-body {
  font-size: 14px;
  line-height: 1.5;
  color: var(--cream-soft);
  margin: 0;
}

/* ---- built for beginners ---- */
.lp-beginners-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.lp-lead {
  font-size: clamp(16px, 4vw, 19px);
  line-height: 1.55;
  color: var(--cream-soft);
  margin: 14px auto 0;
  max-width: 34em;
}

/* ---- choose your version ---- */
.lp-plans {
  margin-top: 34px;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.lp-plan {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 26px 22px;
}
.lp-plan-badge {
  align-self: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.badge-emerald {
  color: var(--emerald);
  background: rgba(47, 191, 143, 0.14);
}
.badge-gold {
  color: var(--gold);
  background: rgba(242, 184, 75, 0.14);
}
.lp-plan-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--cream);
  margin: 0 0 4px;
}
.lp-plan-price {
  font-size: 30px;
  font-weight: 800;
  color: var(--gold);
  margin: 2px 0 8px;
}
.lp-plan-body {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--cream-soft);
  margin: 0 0 20px;
  flex: 1;
}
.lp-plan .landing-cta {
  margin-top: auto;
}

/* ---- FAQ ---- */
.lp-faq-inner {
  max-width: 720px;
}
.lp-faq-item {
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.lp-faq-item:first-of-type {
  border-top: 0;
}
.lp-faq-q {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--cream);
  margin: 0 0 6px;
}
.lp-faq-a {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--cream-soft);
  margin: 0;
}

/* ---- final CTA band ---- */
.lp-final-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(180deg, rgba(47, 191, 143, 0.06), rgba(20, 23, 26, 0));
  border-top: 1px solid var(--border);
  padding: 72px 0;
}
.lp-final-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}
.lp-final-headline {
  font-size: clamp(28px, 6.5vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--cream);
  margin: 0 0 10px;
}
.lp-final-sub {
  font-size: 16px;
  color: var(--cream-soft);
  margin: 0 0 28px;
}

/* ---- footer ---- */
.lp-footer {
  border-top: 1px solid var(--border);
  padding: 26px 24px calc(26px + env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 12px;
  text-align: center;
}
.lp-footer-note {
  font-size: 13px;
  color: var(--cream-soft);
}

/* ---- scroll-reveal motion ---- */
.lp-reveal.armed {
  opacity: 0;
  transform: translateY(22px);
}
.lp-reveal.armed.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* faint slow drift on the hero glow */
@keyframes lp-drift {
  0%, 100% {
    transform: translateX(-50%) translateY(0) scale(1);
  }
  50% {
    transform: translateX(-50%) translateY(2.5%) scale(1.06);
  }
}
.lp-hero .landing-glow {
  animation: lp-drift 16s ease-in-out infinite;
}

/* ---- responsive scale-up ---- */
@media (min-width: 720px) {
  .lp-section {
    padding: 84px 0;
  }
  .lp-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .lp-grid {
    grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
    gap: 16px;
  }
  .lp-plans {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---- reduced motion: everything static + visible ---- */
@media (prefers-reduced-motion: reduce) {
  .lp-reveal,
  .lp-reveal.armed,
  .lp-reveal.armed.in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .lp-hero .landing-glow {
    animation: none;
  }
  .landing-cta,
  .lp-card {
    transition: none;
  }
}

/* ---- app shell ---- */
.appbar {
  position: sticky;
  top: 0;
  z-index: 6;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.brand-sm {
  font-weight: 800;
  letter-spacing: -0.02em;
}
.tabs {
  display: flex;
  gap: 6px;
}
.tab {
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
}
.tab.active {
  background: var(--card);
  color: var(--cream);
  border-color: var(--gold);
}
.content {
  padding: 16px 18px 28px;
}
.content.board-host {
  padding: 0 0 28px;
}

/* pinned sport filter bar */
.filterbar {
  position: sticky;
  top: 56px;
  z-index: 5;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 18px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}
.filterbar::-webkit-scrollbar {
  display: none;
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 7px 13px;
  background: var(--pill);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.filter-pill.active {
  background: var(--gold);
  color: var(--charcoal);
}
.pill-count {
  font-size: 11px;
  opacity: 0.75;
}

/* compact rows */
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.row-main {
  flex: 1;
  min-width: 0;
}
.row-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.row-sport {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.sig-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.sig-dot.dot-strong {
  background: var(--emerald);
}
.sig-dot.dot-medium {
  background: var(--gold);
}
.sig-dot.dot-weak {
  background: var(--muted);
}
.row-pick {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--cream);
  margin-top: 3px;
  /* Wrap the title to at most 2 lines (full prop text like "Rhyne Howard Over
     2.5 3-Pointers"); ellipsis only if it somehow exceeds two. The row grows
     vertically to fit; align-items:center keeps the right-side %/price aligned. */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.row-matchup {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-side {
  flex: 0 0 auto;
  min-width: 0;
  max-width: 44%; /* keep the title the majority of the row; the best-price line abbreviates to fit here */
  text-align: right;
}
.row-agree {
  line-height: 1.1; /* stacks the % over its tiny context label */
}
.agree-num {
  color: var(--gold);
  font-weight: 800;
  font-size: 15px;
}
.agree-label {
  color: var(--muted); /* #7C828A */
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  margin-top: 1px;
}
.row-price {
  color: var(--emerald);
  font-size: 12px;
  font-weight: 600;
  margin-top: 2px;
  /* one line; fitBestPrices drops "pays" if it overflows, ellipsis as last resort */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chev {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  transition: transform 0.15s ease;
}
.row.open .chev {
  transform: rotate(90deg);
}
.row-detail {
  padding: 4px 14px 14px;
  border-bottom: 1px solid var(--border);
}
.row-detail .card {
  margin-bottom: 0;
}
.empty {
  color: var(--muted);
  text-align: center;
  padding: 40px 0;
}
.foot {
  padding: 8px 18px 28px;
  text-align: center;
}
.link {
  background: none;
  border: 0;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
  font-size: 13px;
}

/* ---- card ---- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 14px;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sport-pill {
  background: var(--pill);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(47, 191, 143, 0.15);
  color: var(--emerald);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
}
.pick {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--cream);
  margin: 16px 0 4px;
}
.matchup {
  font-size: 14px;
  color: var(--muted);
}
.sentence {
  font-size: 18px;
  color: var(--cream);
  margin: 16px 0;
}

/* thin agreement bar */
.bar {
  height: 10px;
  background: var(--pill);
  border-radius: 8px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 8px;
}
.agreement-row {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 13px;
}
.agree-pct {
  color: var(--gold);
  font-weight: 700;
}
.agree-count {
  color: var(--muted);
}

/* solid emerald best-price footer */
.best-block {
  background: var(--emerald);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 18px;
}
.best-head {
  display: flex;
  justify-content: space-between;
}
.best-tag {
  color: var(--best-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.best-main {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 6px;
}
.best-book,
.best-amt {
  color: var(--charcoal);
  font-size: 22px;
  font-weight: 800;
}
