:root {
  /* Theme B — Paper Ledger (dense desk) */
  --bg: #f4f5f2;
  --bg-2: #ffffff;
  --ink: #14201a;
  --muted: #5c6b63;
  --mint: #1b4d3e;
  --mint-bright: #247a5c;
  --mint-dim: rgba(27, 77, 62, 0.1);
  --line: rgba(20, 32, 26, 0.1);
  --warn: #9a6b16;
  --down: #b42318;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--bg);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.aurora {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  height: 28vh;
  background: linear-gradient(180deg, rgba(27, 77, 62, 0.06), transparent);
  pointer-events: none;
  z-index: 0;
}

.grid-fade {
  display: none;
}

.top,
main,
.foot {
  position: relative;
  z-index: 1;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 245, 242, 0.95);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 30;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1rem;
  max-width: 13rem;
  line-height: 1.15;
  color: var(--mint);
}

nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

nav a:hover {
  color: var(--ink);
}

.nav-cta {
  color: #f7f8f5 !important;
  background: var(--mint);
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--mint-bright);
}

/* —— Compact hero strip —— */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 1.35rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}

.hero-main {
  min-width: 0;
}

.brand-sub {
  margin: 0 0 0.35rem;
  color: var(--mint);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

.lede {
  margin: 0.55rem 0 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.45;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn.primary {
  background: var(--mint);
  color: #f7f8f5;
}

.btn.primary:hover {
  background: var(--mint-bright);
}

.btn.ghost {
  border-color: var(--line);
  background: var(--bg);
  color: var(--ink);
}

.btn.ghost:hover {
  border-color: rgba(27, 77, 62, 0.35);
}

.btn.ghost.subtle {
  font-size: 0.88rem;
  padding: 0.55rem 0.85rem;
  color: var(--muted);
  background: transparent;
}

.cta-note {
  margin: 0.55rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  min-width: 9.5rem;
}

.store-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}

.store-qr img {
  width: 112px;
  height: 112px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.store-qr p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.hero-aside-cta {
  width: 100%;
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  align-items: center;
}

.social a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.social a:hover {
  color: var(--mint);
}

.social-hero {
  justify-content: center;
  width: 100%;
  margin-top: 0.15rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
}

.foot-brand {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

html[data-store="ios"] .cta-android {
  display: none !important;
}

html[data-store="android"] .cta-ios {
  display: none !important;
}

html[data-store="android"] .cta-android {
  background: var(--mint);
  color: #f7f8f5;
  border-color: transparent;
}

html[data-store="ios"] .store-qr,
html[data-store="android"] .store-qr {
  display: none;
}

.play-page .store-qr {
  display: flex;
}

.play-page .store-qr img {
  width: 168px;
  height: 168px;
}

/* —— Dense hub desk —— */
.hub {
  width: min(var(--max), calc(100% - 2rem));
  margin: 1.15rem auto 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hub-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
}

.hub-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hub-toolbar-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.hub-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: auto auto;
  gap: 0.75rem;
}

.hub-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1rem 0.8rem;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.hub-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.hub-card-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.hub-live {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.hub-loading {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hub-card .disclaimer {
  max-width: none;
  margin: auto 0 0;
  padding: 0.65rem 0 0;
  font-size: 0.72rem;
}

.outlook-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin: 0 0 0.65rem;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  text-transform: uppercase;
  background: rgba(92, 107, 99, 0.12);
  color: var(--ink);
}

.outlook-tag[data-tag="CALLS"] {
  background: var(--mint-dim);
  color: var(--mint);
}

.outlook-tag[data-tag="PUTS"] {
  background: rgba(180, 35, 24, 0.1);
  color: var(--down);
}

.index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.index-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-variant-numeric: tabular-nums;
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}

.index-list .sym {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
}

.index-list .pct {
  font-size: 1.05rem;
  font-weight: 700;
}

.index-list .pct.up { color: var(--mint-bright); }
.index-list .pct.down { color: var(--down); }
.index-list .pct.flat { color: var(--muted); }

.fomc-date {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.fomc-status-text {
  margin: 0.5rem 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.95rem;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  flex: 1;
}

.news-list a {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}

.news-list li:last-child a {
  border-bottom: none;
}

.news-list a:hover .news-title {
  color: var(--mint);
}

.news-title {
  font-weight: 600;
  line-height: 1.3;
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  font-size: 0.72rem;
  color: var(--muted);
}

.earn-table-wrap {
  overflow: auto;
  max-height: 280px;
  flex: 1;
}

.earn-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}

.earn-table th,
.earn-table td {
  text-align: left;
  padding: 0.4rem 0.3rem;
  border-bottom: 1px solid var(--line);
}

.earn-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: sticky;
  top: 0;
  background: var(--bg-2);
}

.earn-table .sym {
  font-family: var(--font-display);
  font-weight: 700;
}

.earn-table .move {
  color: var(--warn);
  font-weight: 600;
}

/* —— Winners strip —— */
.winners {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto 1.25rem;
  padding: 0.85rem 0 0.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-2);
}

.winners-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 0 1rem 0.55rem;
}

.winners-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.winners-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.ticker-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.ticker {
  display: flex;
  width: 100%;
}

.ticker-track {
  display: flex;
  gap: 0.55rem;
  width: max-content;
  padding: 0.15rem 1rem 0.65rem;
  animation: marquee 48s linear infinite;
}

.ticker-wrap:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 999px;
  white-space: nowrap;
  font-size: 0.84rem;
}

.chip .sym {
  font-family: var(--font-display);
  font-weight: 700;
}

.chip .contract {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.chip .pct {
  color: var(--mint-bright);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ticker-loading {
  color: var(--muted);
  padding: 0.4rem 0;
}

.disclaimer {
  max-width: none;
  margin: 0;
  padding: 0 1rem 0.65rem;
  color: rgba(92, 107, 99, 0.9);
  font-size: 0.75rem;
}

/* —— Promo + how side by side —— */
.split {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto 1.5rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0.75rem;
  align-items: stretch;
}

.promo {
  width: auto;
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-2);
}

.promo-head {
  max-width: none;
  margin-bottom: 0.75rem;
}

.promo-head h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
}

.promo-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.promo-frame {
  position: relative;
  max-width: 100%;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #111;
}

.promo-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  max-height: 360px;
  object-fit: cover;
  background: #000;
}

.how {
  max-width: none;
  margin: 0;
  padding: 1.15rem 1.25rem;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.how h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  letter-spacing: -0.03em;
}

.how-copy {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 36rem;
}

.how-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.15rem;
  align-items: center;
  margin-top: 1.1rem;
}

.how-links a:not(.btn) {
  color: var(--mint);
  font-weight: 600;
  font-size: 0.95rem;
}

.how-links a:not(.btn):hover {
  text-decoration: underline;
}

/* —— Sticky gains —— */
.gains-banner {
  position: sticky;
  bottom: 0;
  z-index: 20;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  padding: 0.45rem 0 calc(0.45rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 18px rgba(20, 32, 26, 0.06);
}

.gains-banner-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
}

.gains-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mint);
  white-space: nowrap;
}

.gains-track-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.gains-track {
  display: flex;
  gap: 0.55rem;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.gains-track .chip {
  padding: 0.32rem 0.65rem;
  font-size: 0.78rem;
}

.gains-cta {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  background: var(--mint);
  color: #f7f8f5;
  white-space: nowrap;
}

.gains-cta:hover {
  background: var(--mint-bright);
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem 1.25rem 1.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--line);
}

.foot a:hover {
  color: var(--mint);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}

.page {
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vh, 2.5rem) 1.25rem 3rem;
}

.page h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.page h2 {
  margin: 1.5rem 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.page p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.how-copy a {
  color: var(--mint);
  font-weight: 600;
}

@media (max-width: 900px) {
  .hub-grid {
    grid-template-columns: 1fr 1fr;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .promo-frame {
    max-width: 220px;
    margin: 0 auto;
  }

  .promo-video {
    max-height: 320px;
  }
}

@media (max-width: 640px) {
  nav a:not(.nav-cta) {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero-aside {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hub-grid {
    grid-template-columns: 1fr;
  }

  .index-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .ticker-track {
    animation-duration: 36s;
  }

  .gains-banner-inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }

  .gains-label {
    grid-column: 1 / -1;
  }

  .gains-track-wrap {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track,
  .gains-track {
    animation: none !important;
  }
}
