/* SkyFlip landing — the "SkyFlip Landing" design's cool blue-grey palette.
   Scoped under body.landing so the app terminal + admin keep their own look.
   No inline styles / no inline script (CSP is self-only). Ported from the
   owner's Claude Design mockup. */
body.landing {
  --l-bg: #07090d; --l-bg2: #0a0d12; --l-panel: #0d1117;
  --l-border: #1c232e; --l-border2: #26303d; --l-line: #141a22;
  --l-text: #e8ecf1; --l-muted: #8b96a5; --l-dim: #4a5666;
  --l-green: #45d48a; --l-green-hi: #5fe6a0; --l-accent: #d9944a; --l-accent-hi: #eaa85e; --l-amber: #e5b454; --l-ink: #07130c;
  background: var(--l-bg); color: var(--l-text);
  font-family: var(--sans); display: block; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.landing a { color: var(--l-muted); text-decoration: none; }
body.landing a:hover { color: var(--l-text); }
.lp .mono { font-family: var(--mono); }
.lp .dim { color: var(--l-dim); }
.lp .muted { color: var(--l-muted); }
.lp .green { color: var(--l-green); }
.lp .amber { color: var(--l-amber); }
.lp .r { text-align: right; }
.lp h1, .lp h2, .lp h3 { color: var(--l-text); }

/* ---------- nav ---------- */
.lp-nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1180px; margin: 0 auto; padding: 22px 32px; position: relative; z-index: 5;
}
.lp-logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 17px; font-weight: 600; letter-spacing: 0.04em; color: var(--l-text); }
.lp-logo span:first-of-type { color: var(--l-accent); }
.lp-logo-mark { display: block; height: 23px; width: auto; flex: none; }
.lp-ver { color: var(--l-dim); font-size: 11px; margin-left: 6px; font-weight: 400; }
.lp-navlinks { display: flex; align-items: center; gap: 28px; font-size: 13.5px; }
.lp-ghost {
  color: var(--l-text) !important; font-family: var(--mono); font-size: 12.5px;
  border: 1px solid var(--l-border2); padding: 7px 14px; border-radius: 4px;
  transition: border-color 150ms ease, background 150ms ease;
}
.lp-ghost:hover { border-color: var(--l-accent); background: rgba(217, 148, 74, 0.06); }

/* ---------- hero ---------- */
.lp-hero { position: relative; padding: 64px 32px 90px; }
.lp-fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.lp-island { position: absolute; right: 3%; top: 30px; opacity: 0.11; animation: islandFloat 16s ease-in-out infinite; }
.lp-starfield, .lp-embers { position: absolute; inset: 0; }
.lp-star { position: absolute; border-radius: 50%; background: #cddaeb; animation: driftSlow linear infinite alternate; }
.lp-ember { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: rgba(229, 180, 84, 0.55); animation: emberFloat linear infinite; }
@keyframes islandFloat { 0%, 100% { transform: translateY(0) rotate(-0.6deg); } 50% { transform: translateY(-13px) rotate(0.4deg); } }

/* Scattered background islands — the hero's signature wireframe motif,
   echoed small down the page so it feels placed, not tiled. Decorative
   only: pointer-events off, aria-hidden, behind content. Hidden < 760px
   (they crowd small screens). Three float variants carry distinct base
   rotations; per-island position/size/opacity/timing are set on .lp-isleN. */
.lp-isle { position: absolute; pointer-events: none; z-index: 0; }
.lp-isle svg { display: block; width: 100%; height: auto; }
.lp-isle svg polygon, .lp-isle svg line, .lp-isle svg path { stroke: #9FB6CE; fill: none; }
@keyframes isleFloatA { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-11px) rotate(-1.6deg); } }
@keyframes isleFloatB { 0%, 100% { transform: translateY(0) rotate(4deg); } 50% { transform: translateY(-15px) rotate(2.4deg); } }
@keyframes isleFloatC { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-9px) rotate(-6deg); } }
/* near top, right of the stats strip */
.lp-isle1 { width: 150px; top: -46px; right: 6%; opacity: 0.07; animation: isleFloatB 19s ease-in-out infinite; }
/* how-it-works: one left-low, one right-high */
.lp-isle2 { width: 210px; top: 40px; left: -70px; opacity: 0.06; animation: isleFloatA 23s ease-in-out infinite; animation-delay: -4s; }
.lp-isle3 { width: 120px; bottom: 30px; right: 2%; opacity: 0.08; animation: isleFloatC 17s ease-in-out infinite; animation-delay: -9s; }
/* features: large soft one bleeding off the right edge */
.lp-isle4 { width: 300px; top: 8%; right: -110px; opacity: 0.05; animation: isleFloatA 26s ease-in-out infinite; animation-delay: -2s; }
/* trust: mid-left, small */
.lp-isle5 { width: 160px; bottom: 8%; left: 3%; opacity: 0.07; animation: isleFloatB 21s ease-in-out infinite; animation-delay: -12s; }
/* final CTA: one drifting above the footer */
.lp-isle6 { width: 240px; top: -60px; left: 4%; opacity: 0.05; animation: isleFloatC 24s ease-in-out infinite; animation-delay: -6s; }
.lp-isle7 { width: 130px; bottom: -30px; right: 8%; opacity: 0.08; animation: isleFloatA 18s ease-in-out infinite; animation-delay: -15s; }
@keyframes driftSlow { from { transform: translateY(0); } to { transform: translateY(-120px); } }
@keyframes emberFloat { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: 0.55; } 85% { opacity: 0.15; } 100% { transform: translateY(-46vh); opacity: 0; } }
@keyframes lpPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.lp-hero-inner { max-width: 1180px; margin: 0 auto; position: relative; z-index: 2; }
.lp-hero-copy { max-width: 680px; }
.lp-eyebrow { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; color: var(--l-accent); margin-bottom: 20px; }
.lp-h1 { font-size: 56px; line-height: 1.06; font-weight: 700; letter-spacing: -0.022em; margin: 0 0 22px; }
.lp-sub { font-size: 17.5px; line-height: 1.6; color: var(--l-muted); margin: 0 0 32px; max-width: 560px; }
.lp-cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.lp-cta.center { justify-content: center; }
.lp-btn {
  background: var(--l-accent); color: #17110a !important; font-weight: 600; font-size: 14.5px;
  padding: 13px 26px; border-radius: 4px; white-space: nowrap;
  transition: background 150ms ease, transform 150ms ease;
}
.lp-btn:hover { background: var(--l-accent-hi); color: #17110a !important; transform: translateY(-1px); }
.lp-btn-ghost {
  color: var(--l-text) !important; font-size: 14px; font-family: var(--mono);
  padding: 13px 22px; border: 1px solid var(--l-border2); border-radius: 4px; white-space: nowrap;
  transition: border-color 150ms ease;
}
.lp-btn-ghost:hover { border-color: var(--l-muted); }

/* ---------- flip board ---------- */
.scrollx { overflow-x: auto; }
.lp-board {
  margin-top: 56px; background: rgba(13, 17, 23, 0.92); border: 1px solid var(--l-border);
  border-radius: 6px; overflow: hidden; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}
.lp-board-min { min-width: 720px; }
.lp-board-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; border-bottom: 1px solid var(--l-border); }
.lp-board-title b { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--l-text); font-weight: 600; margin-right: 12px; }
.lp-board-title span { font-family: var(--mono); font-size: 11px; color: var(--l-dim); }
.lp-board-live { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--l-muted); }
.lp-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--l-amber); animation: lpPulse 2.2s ease-in-out infinite; }
.lp-dot.live { background: var(--l-accent); }
.lp-brow {
  display: grid; grid-template-columns: 2.1fr 0.9fr 0.9fr 1fr 0.65fr 0.7fr 0.7fr 0.75fr; gap: 8px;
  align-items: center; padding: 10px 18px; border-bottom: 1px solid var(--l-line);
}
.lp-brow:hover { background: rgba(255, 255, 255, 0.02); }
.lp-bhead { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--l-dim); }
.lp-bitem { min-width: 0; display: flex; align-items: center; gap: 8px; }
.lp-bico { width: 18px; height: 18px; image-rendering: pixelated; flex-shrink: 0; }
.lp-bname { font-size: 13.5px; font-weight: 500; color: var(--l-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-bsub { font-family: var(--mono); font-size: 10.5px; color: var(--l-dim); }
.lp-bn { font-family: var(--mono); font-size: 13px; color: var(--l-text); }
.lp-bn.muted { color: var(--l-muted); }
.lp-brow.v-buy .pv { color: var(--l-green); }
.lp-brow.v-watch .pv { color: var(--l-amber); }
.lp-verdict { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; font-weight: 600; border: 1px solid currentColor; padding: 2px 7px; border-radius: 3px; }
.lp-board-foot { display: flex; justify-content: space-between; padding: 10px 18px; font-family: var(--mono); font-size: 11px; color: var(--l-dim); }

/* ---------- stats strip ---------- */
.lp-stats { border-top: 1px solid #12181f; border-bottom: 1px solid #12181f; background: var(--l-bg2); position: relative; overflow: hidden; }
.lp-stats-inner { position: relative; z-index: 1; }
.lp-stats-inner { max-width: 1180px; margin: 0 auto; padding: 36px 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.lp-stat-big { font-family: var(--mono); font-size: 30px; font-weight: 600; color: var(--l-text); }
.lp-stat-big.green { color: var(--l-green); }
.lp-stat-sub { font-size: 12.5px; color: var(--l-muted); margin-top: 4px; }

/* ---------- sections ---------- */
.lp-sec { max-width: 1180px; margin: 0 auto; padding: 96px 32px 80px; position: relative; overflow: hidden; }
.lp-sec-tight { padding-top: 24px; padding-bottom: 96px; }
.lp-kicker { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; color: var(--l-dim); margin-bottom: 14px; }
.lp-h2 { font-size: 34px; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 48px; max-width: 560px; }
.lp-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-step { border-top: 1px solid var(--l-border); padding-top: 22px; }
.lp-step-num { font-family: var(--mono); font-size: 12px; color: var(--l-accent); margin-bottom: 12px; }
.lp-step h3 { font-size: 17px; font-weight: 600; margin: 0 0 8px; }
.lp-step p { font-size: 14px; line-height: 1.6; color: var(--l-muted); margin: 0; }

.lp-feat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.lp-card { background: var(--l-panel); border: 1px solid var(--l-border); border-radius: 6px; padding: 30px; }
.lp-feat-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--l-accent); margin-bottom: 14px; }
.lp-feat-kicker.amber { color: var(--l-amber); }
.lp-card h3 { font-size: 19px; font-weight: 600; margin: 0 0 10px; }
.lp-card p { font-size: 14px; line-height: 1.65; color: var(--l-muted); margin: 0; }
.lp-peek, .lp-undercut { font-family: var(--mono); font-size: 11.5px; background: var(--l-bg2); border: 1px solid var(--l-line); border-radius: 4px; padding: 12px 14px; margin-top: 16px; line-height: 1.7; }
.lp-peek-row { display: flex; justify-content: space-between; }
.lp-peek-exit { border-top: 1px solid var(--l-line); margin-top: 6px; padding-top: 6px; color: var(--l-accent); }
.lp-undercut { display: flex; align-items: center; gap: 10px; }

/* ---------- trust ---------- */
.lp-trust { border-top: 1px solid #12181f; background: var(--l-bg2); position: relative; overflow: hidden; }
.lp-trust-inner { position: relative; z-index: 1; }
.lp-trust-inner { max-width: 1180px; margin: 0 auto; padding: 96px 32px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.lp-lede { font-size: 15.5px; line-height: 1.65; color: var(--l-muted); margin: 0 0 32px; max-width: 460px; }
.lp-lede.center { margin: 0 auto 30px; text-align: center; }
.lp-term { font-family: var(--mono); font-size: 12.5px; line-height: 2; background: var(--l-bg); border: 1px solid var(--l-border); border-radius: 5px; padding: 18px 20px; color: var(--l-muted); }
.lp-term .hi { color: var(--l-text); }
.lp-term-out { color: var(--l-accent); }
.lp-tcards { display: grid; gap: 14px; }
.lp-tcard { display: flex; gap: 16px; border: 1px solid var(--l-border); border-radius: 6px; padding: 20px 22px; background: var(--l-panel); }
.lp-mark { font-family: var(--mono); color: var(--l-green); font-size: 13px; }
.lp-mark.amber { color: var(--l-amber); }
.lp-tcard-t { font-size: 15px; font-weight: 600; margin-bottom: 4px; color: var(--l-text); }
.lp-tcard-s { font-size: 13.5px; line-height: 1.55; color: var(--l-muted); }

/* ---------- final + footer ---------- */
.lp-final { border-top: 1px solid #12181f; max-width: 1180px; margin: 0 auto; padding: 80px 32px 64px; text-align: center; position: relative; overflow: hidden; }
.lp-final .lp-h2, .lp-final .lp-lede, .lp-final .lp-cta { position: relative; z-index: 1; }
.lp-final .lp-h2 { margin: 0 auto 14px; }
.lp-foot { border-top: 1px solid #12181f; }
.lp-foot-inner { max-width: 1180px; margin: 0 auto; padding: 26px 32px; display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--l-dim); }
.lp-foot-links { display: flex; gap: 22px; }

/* ---------- custom cursor (fx.js) ---------- */
@media (pointer: fine) {
  /* !important + html scope: button/link rules set cursor:pointer and
   Safari ignores unreinforced cursor:none — without this the native
   cursor rides on top of the ring (field report 2026-07-13). */
html:has(body.landing.has-cursor), body.landing.has-cursor,
body.landing.has-cursor * { cursor: none !important; }
}
/* Cursor is AMBER (owner 2026-07-13: "same color as everything accented");
   green stays semantic-only. */
.lp-cursor { position: fixed; left: 0; top: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; border: 1px solid rgba(229, 180, 84, 0.9); border-radius: 50%; pointer-events: none; z-index: 9999; opacity: 0; transition: transform 120ms ease, opacity 150ms ease; will-change: transform; }
.lp-cursor::after { content: ""; position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px; border-radius: 50%; background: var(--l-amber); }

/* ---------- reveal-on-scroll (fx.js) ---------- */
.lp [data-reveal].pre { opacity: 0; transform: translateY(14px); }
.lp [data-reveal].in { opacity: 1; transform: none; transition: opacity 220ms ease-out, transform 220ms ease-out; }

@media (prefers-reduced-motion: reduce) {
  body.landing * { animation: none !important; transition: none !important; }
  .lp-cursor { display: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .lp-nav { padding: 16px 18px; }
  .lp-navlinks { gap: 14px; font-size: 12.5px; }
  .hidem { display: none; }
  .lp-hero { padding: 40px 18px 60px; }
  .lp-h1 { font-size: 36px; }
  .lp-stats-inner { grid-template-columns: 1fr 1fr; }
  .lp-how, .lp-feat, .lp-trust-inner { grid-template-columns: 1fr; gap: 32px; }
  .lp-sec { padding: 56px 18px; }
  .lp-foot-inner { flex-direction: column; gap: 10px; align-items: flex-start; }
  /* scattered islands crowd small screens — hide below 760px */
  .lp-isle { display: none; }
}

/* Hero two-up (owner 2026-07-13, option 2): the tuned decode card returns
   beside the headline; wraps under it on narrow screens. */
.lp-hero-top { display: flex; gap: 44px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.lp-hero-copy { flex: 1 1 480px; min-width: 0; }

/* Islands sit at z-index:0 (positioned), so static section content would
   paint under them. Lift the real content above the decoration. */
.lp-sec > :not(.lp-isle) { position: relative; z-index: 1; }
