/* River Rat landing page. Layout + vintage-scene styles. Reads site/tokens.css for
   all chrome color/scale. Standalone — does NOT load styles.css. */
*, *::before, *::after { box-sizing: border-box; }
body.page-landing { margin: 0; font-family: var(--font-system);
  background: var(--color-background); color: var(--color-text-primary);
  -webkit-font-smoothing: antialiased; }
.page-landing .defs { position: absolute; width: 0; height: 0; }
.page-landing a { color: var(--color-accent); text-decoration: none; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--color-surface);
  color: var(--color-text-primary); padding: var(--s-2) var(--s-4); border-radius: var(--r-md); z-index: 10; }
.skip-link:focus { left: var(--s-4); top: var(--s-4); }

/* Header */
.page-landing .site-bar { display: flex; align-items: center; justify-content: space-between;
  max-width: 1180px; margin: 0 auto; padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--color-border); }
.page-landing .wordmark { display: inline-flex; align-items: center; gap: var(--s-3);
  color: var(--color-text-primary); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; }
.page-landing .brand-emblem { border-radius: 50%; vertical-align: middle; }
.page-landing nav { display: flex; align-items: center; gap: var(--s-4); }
.page-landing nav a { color: var(--color-text-secondary); font-size: 0.92rem; font-weight: 500; }
.page-landing nav a:hover { color: var(--color-text-primary); }
.page-landing nav .sep { color: var(--color-border); }

/* Hero */
.hero { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: var(--s-7); padding: var(--s-5) var(--s-5) var(--s-5); align-items: center; }
.eyebrow { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--color-accent); font-weight: 700; margin: 0 0 var(--s-3); }
.hero h1 { font-size: 2.7rem; line-height: 1.06; letter-spacing: -0.02em; margin: 0 0 var(--s-4);
  font-weight: 700; color: var(--color-text-primary); }
.hero .tag { font-size: 1.08rem; color: var(--color-text-secondary); line-height: 1.5;
  margin: 0 0 var(--s-5); max-width: 42ch; }
.ctas { display: flex; gap: var(--s-4); align-items: center; flex-wrap: wrap; }
.appstore { display: inline-flex; align-items: center; gap: var(--s-2); background: #000;
  border: 1px solid #2c3344; color: #fff; padding: 11px 17px; border-radius: var(--r-md); }
.appstore .ai { flex: none; display: block; } /* inline Apple-logo SVG (reliable cross-platform; not the PUA \f8ff glyph) */
.appstore .at small { display: block; font-size: 0.6rem; opacity: 0.85; }
.appstore .at b { font-size: 1.05rem; font-weight: 600; }
.ghost { color: var(--color-accent); font-weight: 600; font-size: 0.98rem; }
.ghost:hover { text-decoration: underline; }

/* Phone mock (illustrative app screenshot) */
.phonewrap { display: flex; justify-content: center; }
.phone { width: 208px; height: 424px; background: #000; border-radius: 34px; padding: 10px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45); border: 1px solid #2c3344; }
.screen { width: 100%; height: 100%; border-radius: 25px; background: #0a0f1e; overflow: hidden; position: relative; color: #e8f4fd; }
.notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 84px; height: 19px; background: #000; border-radius: 0 0 12px 12px; }
.scr-pad { padding: 26px 14px 14px; }
.scr-river { font-size: 0.56rem; text-transform: uppercase; letter-spacing: 0.08em; color: #5b8db8; font-weight: 700; }
.scr-sec { font-size: 0.95rem; font-weight: 600; margin-top: 3px; }
.scr-num { font-size: 2.6rem; font-weight: 300; line-height: 1; margin-top: 14px; }
.scr-num span { font-size: 0.75rem; color: #5b8db8; font-weight: 400; margin-left: 3px; }
.scr-badge { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; padding: 4px 9px; border-radius: 7px;
  font-size: 0.7rem; font-weight: 600; background: rgba(52,211,153,0.16); color: #34d399; }
.scr-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: #34d399; }
.scr-verdict { margin-top: 9px; font-size: 0.78rem; line-height: 1.34; color: #d7e8e0; }
.scr-verdict b { color: #34d399; font-weight: 600; }
.scr-chart { margin: 11px 0; }
.scr-chart svg { display: block; width: 100%; height: auto; }
.scr-stats { display: flex; }
.scr-stats div { flex: 1; text-align: center; }
.scr-stats .v { font-size: 0.9rem; font-weight: 600; }
.scr-stats .l { font-size: 0.58rem; color: #5b8db8; margin-top: 2px; }
.scr-hatch { display: flex; align-items: center; gap: 8px; margin-top: 13px; padding-top: 10px; border-top: 1px solid rgba(91,141,184,0.16); }
.scr-hatch-txt { display: flex; flex-direction: column; line-height: 1.2; }
.scr-hatch-lbl { font-size: 0.52rem; text-transform: uppercase; letter-spacing: 0.08em; color: #5b8db8; font-weight: 700; }
.scr-hatch-name { font-size: 0.8rem; color: #e8f4fd; margin-top: 1px; }
.scr-hatch-pill { margin-left: auto; font-size: 0.52rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; background: #30d158; color: #ffffff; padding: 2px 7px; border-radius: 5px; }

/* Feature tiles */
.features { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(3,1fr);
  gap: var(--s-5); padding: 0 var(--s-5) var(--s-6); }
.feat { position: relative; }
.feat .label { display: flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-3); }
.feat .ico { width: 30px; height: 30px; border-radius: var(--r-md);
  background: var(--color-surface-subtle); display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.feat h3 { font-size: 0.96rem; font-weight: 600; margin: 0; color: var(--color-text-primary); }
.feat .livepill { margin-left: auto; display: flex; align-items: center; gap: var(--s-1);
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.1em; color: var(--color-text-secondary); text-transform: uppercase; }
.feat .livepill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-flow-green); animation: rr-pulse 2s infinite; }
@keyframes rr-pulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,0.5); } 70% { box-shadow: 0 0 0 7px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }

/* Rotating mini river cards */
/* min-height reserves the TALLEST card (live: scene 96 + body with stage+temp+"updated") so
   the rivers strip never jumps when JS swaps the 1-line static fallback for a taller live card. */
.rotator { position: relative; min-height: 212px; }
.mcard { position: absolute; inset: 0; opacity: 0; transform: translateY(6px);
  pointer-events: none;
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--color-border);
  background: var(--color-surface); box-shadow: var(--shadow-card); }
.mcard.on { opacity: 1; transform: translateY(0); pointer-events: auto;
  transition: opacity 0.5s ease, transform 0.5s ease; }
.scene { height: 96px; position: relative; }
.scene svg { display: block; width: 100%; height: 100%; }
.scene .ovr { position: absolute; left: 13px; top: 11px; font-size: 0.62rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: #eafaff; font-weight: 800; text-shadow: 0 1px 4px rgba(0,0,0,0.6); }
.scene .ovb { position: absolute; right: 11px; top: 10px; padding: 3px 9px; border-radius: 7px;
  font-size: 0.66rem; font-weight: 700; backdrop-filter: blur(3px); }
.scene .ovb.live, .scene .ovb.hatch { background: rgba(52,211,153,0.22); color: #caffe8; }
.scene .ovb.seasonal { background: rgba(126,200,227,0.22); color: #dff3fb; }
.mcbody { padding: 11px 14px 14px; }
.mcbody .big { font-size: 1.85rem; font-weight: 600; line-height: 1; letter-spacing: -0.01em; color: var(--color-text-primary); }
.mcbody .big.txt { font-size: 1.35rem; }
.mcbody .big .u { font-size: 0.74rem; color: var(--color-text-secondary); font-weight: 400; margin-left: 3px; }
.mcbody .det { font-size: 0.8rem; color: var(--color-text-secondary); margin-top: 7px; }
.mcbody .det b { color: var(--color-text-primary); font-weight: 600; }
.mcbody .updated { margin-top: 9px; font-size: 0.66rem; color: var(--color-text-secondary); display: flex; align-items: center; gap: var(--s-1); }
.mcbody .updated .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-flow-green); animation: rr-pulse 2s infinite; }

/* Rivers strip */
.rivers { max-width: 1180px; margin: 0 auto; padding: var(--s-1) var(--s-5) var(--s-7); }
.rivers .lbl { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--color-text-secondary); font-weight: 700; margin-bottom: var(--s-3); text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: center; }
.chip { background: var(--color-surface-subtle); border: 1px solid var(--color-border);
  border-radius: 999px; padding: 7px 14px; font-size: 0.84rem; color: var(--color-text-primary); }
.chip .c { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--color-flow-green); margin-right: 6px; }

/* Footer */
.page-landing .page-footer { border-top: 1px solid var(--color-border); padding: var(--s-6) var(--s-5);
  text-align: center; color: var(--color-text-secondary); font-size: 0.85rem; background: var(--color-surface-subtle); }
.page-landing .page-footer .fbrand { color: var(--color-text-primary); font-weight: 700; margin-bottom: var(--s-2); }
.page-landing .page-footer a { color: var(--color-accent); }
.page-landing .page-footer .est { display: block; margin-top: var(--s-3); font-size: 0.7rem;
  color: var(--color-text-tertiary); letter-spacing: 0.16em; text-transform: uppercase; }
.page-landing .page-footer .legal { display: block; margin-top: var(--s-2); font-size: 0.7rem;
  color: var(--color-text-tertiary); }
.page-landing .page-footer .legal-links { margin-top: var(--s-2); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .phonewrap { order: -1; }
}
@media (prefers-reduced-motion: reduce) {
  .mcard, .mcard.on { transition: none; }
  .feat .livepill .dot, .mcbody .updated .dot { animation: none; }
}
