/* OmniView showcase. Same palette as the app (src/theme/theme.css): near-black, rainbow accents, green/red P&L.
   No web fonts: the system font stack. Mobile first; clips sit beside their steps from 960 px. */
:root {
  color-scheme: dark;
  --bg: #0a0a0c;
  --card: #141418;
  --card-raised: #1b1b21;
  --border: #26262e;
  --border-strong: #34343e;
  --text: #e8e8ed;
  --muted: #a3a3ae;
  --profit: #4ade80;
  --loss: #f87171;
  --hue-0: #ff5f6d; --hue-1: #ff9f43; --hue-2: #ffd93d; --hue-3: #6bdc7a; --hue-4: #3fd6e0; --hue-5: #5b8cff; --hue-6: #b07cff;
  --rainbow: linear-gradient(90deg, var(--hue-0), var(--hue-1), var(--hue-2), var(--hue-3), var(--hue-4), var(--hue-5), var(--hue-6));
  --focus: var(--hue-4);
  --radius: 14px;
  --gutter: 16px;
}
/* Dark only, like the app; a light-mode request keeps the same tokens. */
:root[data-theme="light"], :root[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--text); }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 5; background: rgba(10, 10, 12, 0.88); backdrop-filter: blur(8px); }
.top::after { content: ''; display: block; height: 1px; background: var(--rainbow); opacity: 0.5; }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; text-decoration: none; }
.mark { width: 26px; height: 26px; border-radius: 50%; flex: none; background: conic-gradient(var(--hue-0), var(--hue-1), var(--hue-2), var(--hue-3), var(--hue-4), var(--hue-5), var(--hue-6), var(--hue-0)); position: relative; }
.mark::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: var(--bg); }
.topnav { display: none; gap: 4px; margin-left: auto; }
.topnav a { color: var(--muted); text-decoration: none; font-size: 14px; padding: 6px 10px; border-radius: 8px; }
.topnav a:hover { color: var(--text); background: var(--card); }
.top .btn { margin-left: auto; }
@media (min-width: 1100px) { .topnav { display: flex; } .top .btn { margin-left: 8px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  border-radius: 10px; font-weight: 600; text-decoration: none; color: var(--text); border: 1px solid transparent;
  background: linear-gradient(var(--card-raised), var(--card-raised)) padding-box, var(--rainbow) border-box;
}
.btn:hover { background: linear-gradient(#24242c, #24242c) padding-box, var(--rainbow) border-box; color: #fff; }
.btn.small { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.btn.ghost { background: transparent; border-color: var(--border-strong); }
.btn.ghost:hover { background: var(--card); }

/* ---------- hero ---------- */
.hero { padding-top: 40px; padding-bottom: 8px; }
.hero h1 { font-size: clamp(40px, 9vw, 68px); line-height: 1.02; margin: 0; letter-spacing: -0.03em; }
.hero h1 .sub { display: block; font-size: clamp(17px, 3.6vw, 22px); font-weight: 500; letter-spacing: 0; color: var(--muted); margin-top: 10px; }
.tagline { font-size: clamp(22px, 4.6vw, 32px); font-weight: 650; line-height: 1.25; margin: 22px 0 8px; max-width: 26ch; }
.tagline .pay { background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .facts { color: var(--muted); margin: 0 0 20px; }
.hero .facts strong { color: var(--text); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 8px; }

/* ---------- feature sections ---------- */
main section { padding: 40px 0; border-top: 1px solid var(--border); }
main section.hero-clip { border-top: 0; padding-top: 20px; }
section h2 { font-size: clamp(24px, 5vw, 32px); line-height: 1.2; margin: 0 0 18px; letter-spacing: -0.015em; }
.feature { display: grid; gap: 22px; }
@media (min-width: 960px) {
  .feature { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; gap: 36px; }
  .feature.mobile-clip { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
}

.clip { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--border); }
.clip::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--rainbow); z-index: 1; }
.clip video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; background: var(--card); }
.clip.tall { max-width: 300px; margin: 0 auto; width: 100%; }
.clip.tall video { aspect-ratio: 390 / 844; }
.clip-ctl { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; z-index: 2; }
.clip-ctl button {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-strong); cursor: pointer;
  background: rgba(10, 10, 12, 0.82); color: var(--text); display: grid; place-items: center; padding: 0;
}
.clip-ctl button:hover { background: var(--card-raised); }
.clip-ctl svg { width: 16px; height: 16px; fill: currentColor; }
.sample { position: absolute; left: 10px; bottom: 10px; z-index: 2; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgba(10, 10, 12, 0.82); border: 1px solid var(--border-strong); color: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { position: relative; padding-left: 44px; min-height: 30px; color: var(--muted); counter-increment: s; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -1px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--bg); background: var(--h, var(--hue-4));
}
.steps li:first-child { color: var(--text); }
.steps li:nth-child(7n+1) { --h: var(--hue-0); } .steps li:nth-child(7n+2) { --h: var(--hue-1); } .steps li:nth-child(7n+3) { --h: var(--hue-2); }
.steps li:nth-child(7n+4) { --h: var(--hue-3); } .steps li:nth-child(7n+5) { --h: var(--hue-4); }

.formats { margin-top: 22px; }
.formats h3 { font-size: 15px; margin: 0 0 10px; color: var(--muted); font-weight: 600; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 14px; padding: 5px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--border-strong); }

.coming ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
@media (min-width: 720px) { .coming ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.coming li { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; color: var(--muted); }
.coming li::before { content: 'Next'; display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--bg); background: var(--hue-6); border-radius: 6px; padding: 1px 7px; margin-right: 8px; vertical-align: 1px; }
.coming .intro { color: var(--muted); margin: -8px 0 16px; }

.cta-end { text-align: center; padding: 48px 0 24px; }
.cta-end p { color: var(--muted); margin: 10px 0 0; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer p { margin: 6px 0; }
footer .legal { font-size: 13px; }

.noscript { padding: 40px 16px; }
