/* SkyFlip landing — port of docs/design/SkyFlip Landing.dc.html onto the
   live web surface. Page-specific: linked only from index.html.

   Palette mapping (design → site.css vars): the design's green brand accent
   becomes --accent (the site/nav brand is warm-phosphor orange and base.html
   is fixed); green/amber/red stay purely semantic — verdicts, P&L, warnings.
   All fonts are the site mono stack (CSP is self-only; no webfonts). */

/* The landing wants a wider stage than the 960px app column. Scoped via
   :has so only this page is affected — base.html is untouched. */
main:has(> .landing) { width: min(1120px, 94vw); }
/* Full-bleed bands below use 100vw breakouts; clip the stray scrollbar width. */
body:has(.landing) { overflow-x: clip; }

.landing { position: relative; }
.landing ::selection { background: rgba(217, 148, 74, 0.30); }
.landing p { text-wrap: pretty; }
.landing a:focus-visible,
.landing button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- shared ---------- */
.landing h1 {
  font-size: clamp(34px, 5vw, 52px); line-height: 1.08;
  font-weight: 700; letter-spacing: -0.02em; margin: 0 0 22px;
}
.landing h2 {
  font-size: clamp(26px, 3.5vw, 34px); font-weight: 700;
  letter-spacing: -0.015em; margin: 0 0 48px;
}
.landing .kicker {
  font-size: 11.5px; letter-spacing: 0.14em; color: var(--faint);
  margin-bottom: 14px;
}
.eyebrow {
  font-size: 11.5px; letter-spacing: 0.14em; color: var(--accent);
  margin-bottom: 20px;
}
.cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-block; background: var(--accent); color: #14100a;
  font-weight: 700; font-size: 14.5px; padding: 13px 26px;
  border-radius: 5px; white-space: nowrap;
  transition: filter 150ms ease, transform 150ms ease;
}
.btn-primary:hover { filter: brightness(1.12); transform: translateY(-1px); text-decoration: none; }
.btn-ghost {
  display: inline-block; color: var(--cream); font-size: 14px;
  padding: 12px 22px; border: 1px solid var(--border); border-radius: 5px;
  white-space: nowrap; transition: border-color 150ms ease;
}
.btn-ghost:hover { border-color: var(--dim); text-decoration: none; }

/* full-bleed band + recentred inner column */
.bleed { width: 100vw; margin-left: calc(50% - 50vw); }
.bleed-inner { width: min(1120px, 94vw); margin: 0 auto; }

/* reveal-on-scroll (added by landing.js only; no-JS users see everything) */
.reveal-pre { opacity: 0; transform: translateY(14px); }
.reveal-in {
  opacity: 1; transform: none;
  transition: opacity 220ms ease-out, transform 220ms ease-out;
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 36px 0 84px; }
.hero-sky {
  position: absolute; top: -28px; bottom: 0;
  left: calc(50% - 50vw); right: calc(50% - 50vw);
  overflow: hidden; pointer-events: none; z-index: 0;
}
.star-layer {
  position: absolute; top: 0; left: 0; border-radius: 50%;
  animation: driftSlow linear infinite alternate;
}
.ember {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: rgba(232, 194, 104, 0.55); filter: blur(0.5px);
  animation: emberFloat linear infinite;
}
.island {
  position: absolute; right: 2%; top: 12px; color: var(--dim);
  opacity: 0.11; pointer-events: none; z-index: 0;
  animation: islandFloat 16s ease-in-out infinite;
}
.hero-inner { position: relative; z-index: 1; max-width: 680px; }
.hero-sub {
  font-size: 16.5px; line-height: 1.6; color: var(--dim);
  margin: 0 0 32px; max-width: 560px;
}

/* ---------- flip board ---------- */
.board {
  position: relative; z-index: 1; margin-top: 56px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 6px; overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}
.board-scroll { overflow-x: auto; }
.board-min { min-width: 820px; }
.board-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 18px; border-bottom: 1px solid var(--border);
}
.board-title { display: flex; align-items: baseline; gap: 12px; }
.board-title b { font-size: 12px; letter-spacing: 0.12em; color: var(--cream); font-weight: 600; }
.board-title span { font-size: 11px; color: var(--faint); }
.board-live { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--dim); }
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--yellow);
  animation: pulseDot 2.2s ease-in-out infinite;
}
.bgrid {
  display: grid; gap: 8px; align-items: center; padding: 10px 18px;
  grid-template-columns: 2.1fr 0.9fr 0.9fr 1fr 0.65fr 0.7fr 0.7fr 0.75fr;
}
.bgrid > * { text-align: right; min-width: 0; }
.bgrid > :first-child { text-align: left; }
.bcols {
  padding: 9px 18px; border-bottom: 1px solid var(--border);
  font-size: 10.5px; letter-spacing: 0.1em; color: var(--faint);
}
.brow { border-bottom: 1px solid var(--panel-hi); }
.brow:hover { background: rgba(255, 255, 255, 0.02); }
.brow-in { animation: rowIn 240ms ease-out; }
.brow-taken { animation: takenFlash 900ms ease-out; }
.bname {
  font-size: 13.5px; font-weight: 500; color: var(--cream);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bsub { font-size: 10.5px; color: var(--faint); margin-top: 1px; }
.bnum { font-size: 13px; }
.bbuy { color: var(--dim); }
.bsell { color: var(--cream); }
.bprofit { font-weight: 600; }
.bmeta { font-size: 12px; color: var(--dim); }
.bverdict {
  display: inline-block; font-size: 10.5px; letter-spacing: 0.08em;
  font-weight: 600; border: 1px solid currentColor; opacity: 0.9;
  padding: 2px 7px; border-radius: 3px;
}
/* verdict semantics color profit/conf/verdict together (design's r.color) */
.v-buy .pv { color: var(--green); }
.v-watch .pv { color: var(--yellow); }
.v-pass .pv { color: var(--red); }
.board-foot {
  display: flex; justify-content: space-between; padding: 10px 18px;
  font-size: 11px; color: var(--faint);
}

/* ---------- stats strip ---------- */
.stats { background: #070a0f; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats .bleed-inner {
  padding: 36px 0; display: grid;
  grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.stat-big { font-size: 30px; font-weight: 600; color: var(--cream); }
.stat-big.green { color: var(--green); }
.stat-sub { font-size: 12.5px; color: var(--dim); margin-top: 4px; }

/* ---------- how it works ---------- */
.how { padding: 92px 0 80px; }
.how h2 { max-width: 560px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { border-top: 1px solid var(--border); padding-top: 22px; }
.step-num { font-size: 12px; color: var(--accent); margin-bottom: 12px; }
.step h3 { font-size: 17px; font-weight: 600; margin: 0 0 8px; }
.step p { font-size: 14px; line-height: 1.6; color: var(--dim); margin: 0; }

/* ---------- features ---------- */
.features { padding: 0 0 96px; }
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feat {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 6px; padding: 30px;
}
.feat-kicker { font-size: 11px; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 14px; }
.feat h3 { font-size: 19px; font-weight: 600; margin: 0 0 10px; }
.feat p { font-size: 14px; line-height: 1.65; color: var(--dim); margin: 0; }
.comp-peek {
  margin-top: 16px; font-size: 11.5px; color: var(--dim);
  background: #070a0f; border: 1px solid var(--panel-hi);
  border-radius: 4px; padding: 12px 14px; line-height: 1.7;
}
.comp-line { display: flex; justify-content: space-between; }
.comp-line .lbl { color: var(--faint); }
.comp-exit {
  display: flex; justify-content: space-between; color: var(--green);
  border-top: 1px solid var(--panel-hi); margin-top: 6px; padding-top: 6px;
}
.undercut {
  margin-top: 16px; display: flex; align-items: center; gap: 10px;
  font-size: 11.5px; background: #070a0f; border: 1px solid var(--panel-hi);
  border-radius: 4px; padding: 12px 14px;
}
.undercut .warn { color: var(--yellow); white-space: nowrap; }
.undercut .msg { color: var(--dim); }

/* ---------- trust ---------- */
.trust { background: #070a0f; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust .bleed-inner {
  padding: 92px 0; display: grid; align-items: start;
  grid-template-columns: 1.1fr 1fr; gap: 64px;
}
.trust h2 { margin-bottom: 18px; }
.trust-lede {
  font-size: 15.5px; line-height: 1.65; color: var(--dim);
  margin: 0 0 32px; max-width: 460px;
}
.term {
  font-size: 12.5px; line-height: 2; background: var(--bg);
  border: 1px solid var(--border); border-radius: 5px;
  padding: 18px 20px; color: var(--dim);
}
.term .ps { color: var(--faint); }
.term .hi { color: var(--cream); }
.term .out { color: var(--green); }
.trust-cards { display: grid; gap: 14px; }
.tcard {
  display: flex; gap: 16px; border: 1px solid var(--border);
  border-radius: 6px; padding: 20px 22px; background: var(--panel);
}
.tcard .mark { color: var(--green); font-size: 13px; }
.tcard .mark.amber { color: var(--yellow); }
.tcard-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.tcard-sub { font-size: 13.5px; line-height: 1.55; color: var(--dim); }

/* ---------- final CTA ---------- */
.final { padding: 84px 0 28px; text-align: center; }
.final h2 { margin-bottom: 14px; }
.final-sub { font-size: 15px; color: var(--dim); margin: 0 0 30px; }
.final .cta-row { justify-content: center; }
.affil { margin-top: 36px; font-size: 12px; color: var(--faint); }

/* ---------- motion ---------- */
@keyframes pulseDot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(232, 194, 104, 0.5); }
  50% { opacity: 0.55; box-shadow: 0 0 0 5px rgba(232, 194, 104, 0); }
}
@keyframes rowIn { from { transform: translateY(-9px); } to { transform: none; } }
@keyframes takenFlash {
  0% { background: rgba(69, 212, 138, 0); }
  20% { background: rgba(69, 212, 138, 0.2); }
  100% { background: rgba(69, 212, 138, 0); }
}
@keyframes driftSlow { from { transform: translateY(0); } to { transform: translateY(-120px); } }
@keyframes islandFloat {
  0%, 100% { transform: translateY(0) rotate(-0.6deg); }
  50% { transform: translateY(-13px) rotate(0.4deg); }
}
@keyframes emberFloat {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: 0.55; }
  85% { opacity: 0.15; }
  100% { transform: translateY(-46vh); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .landing, .landing * { animation: none !important; transition: none !important; }
}

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  .hero { padding: 20px 0 56px; }
  .island { display: none; }
  .stats .bleed-inner { grid-template-columns: 1fr 1fr; }
  .how { padding: 44px 0 36px; }
  .how-grid, .feat-grid { grid-template-columns: 1fr; gap: 24px; }
  .features { padding: 0 0 44px; }
  .trust .bleed-inner { grid-template-columns: 1fr; gap: 32px; padding: 44px 0; }
  .final { padding: 44px 0 20px; }

  /* Board fits the phone: ITEM / BUY / EST.SELL / PROFIT / VERDICT.
     Conf/liq/hold live one tap away in the product; on a phone-width
     marketing board they were forcing a sideways scroll (field
     feedback 2026-07-12). */
  .board-min { min-width: 0; }
  .bgrid { grid-template-columns: 1.9fr 0.8fr 0.9fr 0.95fr 0.85fr; gap: 6px; padding: 9px 12px; }
  .bcols span:nth-child(5), .bcols span:nth-child(6), .bcols span:nth-child(7),
  .brow .bconf, .brow .bliq, .brow .bhold { display: none; }
  .bname { font-size: 12.5px; }
  .bsub { font-size: 9.5px; }
  .bnum, .bverdict { font-size: 11.5px; }

  /* Density: the sections under the board read calmer on a phone. */
  .hero-sub { font-size: 15px; }
  .stat-big { font-size: 24px; }
  .stat-sub { font-size: 11.5px; }
  .term { font-size: 11px; }
  .step p, .feat p, .tcard-sub { font-size: 13.5px; }
}
