/* ============================================================
   REKO — marketing + front-door styles
   Self-contained: redeclares the app tokens (ivory build) so
   these pages render without the app stylesheets.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@600;700&display=swap');

:root {
  --bg: #0a0b0d;
  --bg-page: #060708;
  --surface: #111316;
  --surface-2: #16191d;
  --surface-3: #1c2026;
  --elevated: #20242b;
  --hairline: rgba(255,255,255,0.07);
  --hairline-2: rgba(255,255,255,0.11);
  --hairline-3: rgba(255,255,255,0.16);

  --ink: #f3f5f7;
  --ink-2: #aeb4ba;
  --ink-3: #767d85;
  --ink-4: #525860;

  /* ivory accent — matches the shipping build */
  --accent: #e3dccd;
  --accent-2: #f0ebdf;
  --accent-press: #d4cbb8;
  --accent-soft: rgba(227,220,205,0.10);
  --accent-line: rgba(227,220,205,0.30);
  --accent-ink: #14130f;

  --up: #34e29b;
  --up-soft: rgba(52,226,155,0.12);
  --up-line: rgba(52,226,155,0.30);
  --down: #ff5d6e;
  --down-soft: rgba(255,93,110,0.12);
  --down-line: rgba(255,93,110,0.30);
  --warn: #ffc24b;

  --sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;

  --r-xs: 8px; --r-sm: 12px; --r-md: 16px; --r-lg: 20px; --r-xl: 26px; --r-pill: 999px;
  --shadow-card: 0 1px 0 rgba(255,255,255,0.03) inset, 0 10px 30px rgba(0,0,0,0.4);
  --shadow-pop: 0 30px 80px rgba(0,0,0,0.6), 0 2px 0 rgba(255,255,255,0.04) inset;
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
html, body {
  background: var(--bg-page); color: var(--ink); font-family: var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  line-height: 1.5;
}
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.mono { font-family: var(--mono); font-feature-settings: "tnum" 1; letter-spacing: -0.02em; }
.up { color: var(--up); } .down { color: var(--down); }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ===== buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap;
  border-radius: var(--r-pill); padding: 13px 22px; border: 1px solid transparent;
  transition: transform .14s, background .16s, border-color .16s, color .16s;
}
.btn:active { transform: scale(.97); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; border-color: var(--hairline-2); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--hairline-3); }
.btn-lg { font-size: 16px; padding: 16px 28px; }
.btn-sm { font-size: 13.5px; padding: 9px 16px; }
.btn-block { width: 100%; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 4px var(--up-soft); }

/* ===== top nav ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px) saturate(1.3);
  background: rgba(8,9,11,0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.nav.scrolled { border-bottom-color: var(--hairline); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; }
/* Terminal-R mark: dark tile · off-white R · green cursor block */
.brand-logo {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  font-size: 0; color: transparent; overflow: hidden;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23f2f4f6' stroke-width='11.5' stroke-linecap='square'%3E%3Cpath d='M37 73 V33 H55 A11 11 0 0 1 55 55 H45 M48 55 L64 73'/%3E%3C/g%3E%3Crect x='73' y='60' width='11' height='13' rx='1.5' fill='%2334e29b'/%3E%3C/svg%3E") center / 62% no-repeat,
    linear-gradient(155deg, #2a313a, #14181d);
  box-shadow: 0 4px 14px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.08) inset, 0 0 0 1px rgba(255,255,255,0.10);
}
.brand-logo::after { content: none; }
/* Wordmark: Space Grotesk with the data-point dot in the aperture "o" */
.brand-name {
  position: relative; display: inline-block;
  font-family: 'Space Grotesk', var(--sans, sans-serif);
  font-size: 20px; font-weight: 700; letter-spacing: -0.03em; line-height: 1;
}
.brand-name::after {
  content: ""; position: absolute; right: .205em; top: .445em;
  width: .12em; height: .12em; border-radius: 50%; background: var(--up);
}
.brand-name small { display: none; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links a {
  font-size: 14.5px; font-weight: 600; color: var(--ink-2); padding: 8px 14px;
  border-radius: var(--r-pill); transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-login { font-size: 14.5px; font-weight: 600; color: var(--ink-2); padding: 8px 6px; transition: color .15s; }
.nav-login:hover { color: var(--ink); }
.nav-burger { display: none; }

/* ===== hero ===== */
.hero {
  position: relative; padding: 86px 0 70px; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 50% -8%, rgba(227,220,205,0.10), transparent 60%),
    radial-gradient(40% 40% at 88% 8%, rgba(52,226,155,0.07), transparent 60%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 54px; align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 5vw, 60px); font-weight: 800; letter-spacing: -0.035em;
  line-height: 1.02; margin: 20px 0 0; text-wrap: balance;
}
.hero h1 .hl { color: var(--up); }
.hero-sub {
  font-size: clamp(16px, 1.5vw, 18.5px); color: var(--ink-2); margin-top: 22px;
  max-width: 520px; line-height: 1.6; text-wrap: pretty;
}
.hero-actions { display: flex; align-items: center; gap: 13px; margin-top: 30px; flex-wrap: wrap; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 13px; color: var(--ink-3); font-weight: 500; }
.hero-note svg { color: var(--up); flex: none; }

/* hero product mock: betslip -> tracked */
.scanmock {
  position: relative; padding: 18px;
  background: linear-gradient(180deg, var(--surface), var(--bg));
  border: 1px solid var(--hairline-2); border-radius: var(--r-xl);
  box-shadow: var(--shadow-pop);
}
.scanmock-head { display: flex; align-items: center; gap: 9px; padding: 4px 6px 14px; }
.sm-dot { width: 10px; height: 10px; border-radius: 50%; }
.scanmock-head .sm-title { margin-left: 6px; font-size: 12.5px; font-weight: 700; color: var(--ink-3); letter-spacing: .02em; }
.scanmock-head .sm-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--up); letter-spacing: .08em; text-transform: uppercase; }
.scanmock-head .sm-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px var(--up-soft); }
.sm-flow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; }
@media (max-width: 1080px) { .sm-flow { grid-template-columns: 1fr; } .sm-arrow { transform: rotate(90deg); margin: 2px auto; } }

/* fake betslip */
.slipcard {
  background: var(--surface-2); border: 1px solid var(--hairline); border-radius: var(--r-md);
  padding: 14px; position: relative; overflow: hidden;
}
.slipcard .slip-book { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--ink-2); padding-bottom: 11px; border-bottom: 1px dashed var(--hairline-2); }
.slipcard .slip-book .bk { width: 7px; height: 7px; border-radius: 2px; }
.slipline { padding: 10px 0; border-bottom: 1px dashed var(--hairline); }
.slipline:last-child { border-bottom: 0; }
.slipline .sl-sel { font-size: 13px; font-weight: 600; }
.slipline .sl-meta { font-size: 11px; color: var(--ink-3); margin-top: 2px; display: flex; justify-content: space-between; }
.scan-sweep { position: absolute; left: 0; right: 0; height: 40px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(52,226,155,0.16), transparent);
  border-top: 1px solid var(--up-line); border-bottom: 1px solid var(--up-line);
  mix-blend-mode: screen; }
@media (prefers-reduced-motion: no-preference) { .scan-sweep { animation: sweep 3.4s cubic-bezier(.5,0,.5,1) infinite; } }
@keyframes sweep { 0% { top: -42px; opacity: 0; } 12% { opacity: 1; } 60% { top: 100%; opacity: 1; } 70%, 100% { opacity: 0; } }

.sm-arrow { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); border: 1px solid var(--hairline-2); color: var(--up); }

/* parsed/tracked result card */
.trackcard { background: var(--surface); border: 1px solid var(--up-line); border-radius: var(--r-md); padding: 14px; box-shadow: 0 0 0 4px var(--up-soft); }
.trackcard .tc-top { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--up); }
.tc-field { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--hairline); }
.tc-field:last-of-type { border-bottom: 0; }
.tc-k { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.tc-v { font-size: 13px; font-weight: 700; }
.tc-foot { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; padding-top: 11px; border-top: 1px dashed var(--hairline-2); }
.tc-foot .tc-ret { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.tc-foot .tc-ret b { display: block; font-size: 16px; color: var(--up); font-family: var(--mono); margin-top: 1px; }

/* ===== logo / books strip ===== */
.books { padding: 30px 0 8px; }
.books-label { text-align: center; font-size: 12.5px; color: var(--ink-3); font-weight: 600; letter-spacing: .04em; }
.books-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; margin-top: 18px; }
.book-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-pill);
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
}
.book-chip .bk { width: 8px; height: 8px; border-radius: 3px; }

/* ===== section scaffolding ===== */
.section { padding: 76px 0; position: relative; }
.section-head { max-width: 660px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; margin-top: 14px; text-wrap: balance; }
.section-head p { font-size: 17px; color: var(--ink-2); margin-top: 16px; line-height: 1.6; text-wrap: pretty; }

/* feature split rows */
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feat + .feat { margin-top: 96px; }
.feat.flip .feat-media { order: -1; }
.feat-copy h3 { font-size: clamp(24px, 2.6vw, 31px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.12; margin-top: 14px; }
.feat-copy p { font-size: 16.5px; color: var(--ink-2); margin-top: 15px; line-height: 1.62; }
.feat-list { margin-top: 22px; display: flex; flex-direction: column; gap: 13px; }
.feat-list li { display: flex; gap: 12px; align-items: flex-start; list-style: none; font-size: 15px; color: var(--ink-2); }
.feat-list .tick { width: 22px; height: 22px; border-radius: 7px; flex: none; display: grid; place-items: center; background: var(--up-soft); color: var(--up); margin-top: 1px; }
.feat-list b { color: var(--ink); font-weight: 700; }

.feat-media {
  background: linear-gradient(180deg, var(--surface), var(--bg));
  border: 1px solid var(--hairline-2); border-radius: var(--r-xl);
  box-shadow: var(--shadow-card); padding: 20px; position: relative; overflow: hidden;
}
.feat-media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 60% at 70% 0%, rgba(227,220,205,0.05), transparent 60%); pointer-events: none; }

/* mini app chrome inside media */
.mini-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mini-h .mh-t { font-size: 13px; font-weight: 700; }
.mini-h .mh-s { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.mini-stat { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.mini-tile { background: var(--surface-2); border: 1px solid var(--hairline); border-radius: var(--r-sm); padding: 12px; }
.mini-tile .mt-k { font-size: 10px; color: var(--ink-3); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.mini-tile .mt-v { font-size: 19px; font-weight: 700; margin-top: 7px; letter-spacing: -0.02em; }
.mini-bar { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.mini-bar .mb-name { width: 78px; font-size: 12px; font-weight: 600; color: var(--ink-2); flex: none; }
.mini-bar .mb-track { flex: 1; height: 7px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.mini-bar .mb-track > i { display: block; height: 100%; border-radius: 6px; }
.mini-bar .mb-v { width: 56px; text-align: right; font-size: 12.5px; font-weight: 700; font-family: var(--mono); flex: none; }

/* exposure overlap mini */
.ov-item { background: var(--surface-2); border: 1px solid var(--hairline); border-radius: var(--r-sm); padding: 12px 13px; }
.ov-item + .ov-item { margin-top: 9px; }
.ov-item .ov-t { font-size: 13px; font-weight: 700; }
.ov-item .ov-s { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.ov-flag { float: right; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--warn); }

/* ===== how it works ===== */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 50px; }
.step { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 28px 24px; position: relative; }
.step .step-n { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--accent-ink); width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--accent); }
.step h4 { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; margin-top: 18px; }
.step p { font-size: 14.5px; color: var(--ink-2); margin-top: 9px; line-height: 1.55; }

/* ===== stats band ===== */
.bigstats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden; }
.bigstat { background: var(--bg); padding: 28px 24px; }
.bigstat .bs-v { font-size: clamp(28px, 3.2vw, 38px); font-weight: 800; letter-spacing: -0.03em; }
.bigstat .bs-k { font-size: 13.5px; color: var(--ink-3); font-weight: 600; margin-top: 6px; }

/* ===== pricing ===== */
.price-toggle { display: inline-flex; gap: 3px; padding: 4px; background: var(--surface-2); border: 1px solid var(--hairline); border-radius: var(--r-pill); margin: 26px auto 0; }
.price-toggle button { border: 0; background: transparent; color: var(--ink-3); font: inherit; font-size: 14px; font-weight: 700; padding: 9px 20px; border-radius: var(--r-pill); cursor: pointer; transition: .15s; }
.price-toggle button.on { background: var(--ink); color: var(--accent-ink); }
.price-toggle .save { font-size: 11px; color: var(--up); font-weight: 700; margin-left: 6px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 44px; max-width: 860px; margin-left: auto; margin-right: auto; }
.plan { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-xl); padding: 32px 30px; position: relative; }
.plan.feature { border-color: var(--accent-line); background: linear-gradient(180deg, rgba(227,220,205,0.06), var(--surface) 40%); box-shadow: var(--shadow-card); }
.plan-badge { position: absolute; top: 22px; right: 24px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); padding: 5px 11px; border-radius: var(--r-pill); }
.plan-name { font-size: 15px; font-weight: 800; letter-spacing: .01em; }
.plan-price { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; margin-top: 14px; line-height: 1; }
.plan-price span { font-size: 16px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.plan-desc { font-size: 14px; color: var(--ink-2); margin-top: 12px; min-height: 40px; }
.plan .btn { margin-top: 22px; }
.plan-feats { margin-top: 24px; display: flex; flex-direction: column; gap: 13px; }
.plan-feats li { display: flex; gap: 11px; align-items: flex-start; list-style: none; font-size: 14.5px; color: var(--ink-2); }
.plan-feats .tick { width: 20px; height: 20px; border-radius: 6px; flex: none; display: grid; place-items: center; background: var(--up-soft); color: var(--up); margin-top: 1px; }
.plan-feats .tick.off { background: var(--surface-3); color: var(--ink-4); }

/* ===== FAQ ===== */
.faq { max-width: 780px; margin: 44px auto 0; }
.faq details { border-bottom: 1px solid var(--hairline); padding: 4px 0; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; padding: 22px 4px; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { width: 26px; height: 26px; border-radius: 8px; flex: none; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--hairline); color: var(--ink-3); transition: transform .2s, color .2s; }
.faq details[open] summary .chev { transform: rotate(45deg); color: var(--ink); }
.faq .faq-a { font-size: 15.5px; color: var(--ink-2); line-height: 1.65; padding: 0 4px 24px; max-width: 660px; }

/* ===== final CTA ===== */
.cta {
  margin: 0 auto; max-width: var(--maxw);
  border-radius: var(--r-xl); overflow: hidden; position: relative;
  padding: 70px 40px; text-align: center;
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(227,220,205,0.12), transparent 60%),
    linear-gradient(180deg, var(--surface), var(--bg));
  border: 1px solid var(--hairline-2);
}
.cta h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
.cta p { font-size: 17.5px; color: var(--ink-2); margin: 18px auto 0; max-width: 520px; }
.cta .hero-actions { justify-content: center; margin-top: 30px; }

/* ===== footer ===== */
.footer { border-top: 1px solid var(--hairline); padding: 56px 0 40px; margin-top: 90px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer .brand { margin-bottom: 16px; }
.footer-tag { font-size: 14px; color: var(--ink-3); max-width: 280px; line-height: 1.6; }
.footer-col h5 { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14.5px; color: var(--ink-2); padding: 6px 0; transition: color .14s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--hairline); flex-wrap: wrap; }
.footer-bottom p { font-size: 13px; color: var(--ink-4); }
.footer-bottom .disc { font-size: 12px; color: var(--ink-4); max-width: 540px; line-height: 1.5; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .scan-sweep { animation: none; } html { scroll-behavior: auto; } }

/* ===== responsive ===== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .feat, .feat.flip .feat-media { grid-template-columns: 1fr; }
  .feat.flip .feat-media { order: 0; }
  .feat-media { order: -1; }
  .steps { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 460px; }
  .bigstats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .nav-links, .nav-login { display: none; }
  .hero { padding: 54px 0 48px; }
  .section { padding: 56px 0; }
  .bigstats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
