/* ============================================================
   POCOSHIFT — design tokens
   Editorial fintech: warm cream + deep ink + muted green accent
   ============================================================ */

:root {
  /* Light mode (default) */
  --bg: oklch(0.975 0.006 80);
  --bg-elev: oklch(0.99 0.004 80);
  --surface: oklch(0.945 0.012 80);
  --surface-2: oklch(0.91 0.014 80);
  --ink: oklch(0.18 0.025 250);
  --ink-2: oklch(0.32 0.025 250);
  --ink-3: oklch(0.5 0.02 250);
  --line: oklch(0.86 0.012 80);
  --line-2: oklch(0.79 0.014 80);

  --accent: oklch(0.46 0.09 145);
  --accent-ink: oklch(0.97 0.01 145);
  --accent-soft: oklch(0.92 0.04 145);

  --pos: oklch(0.5 0.11 150);
  --neg: oklch(0.55 0.16 25);
  --warn: oklch(0.7 0.14 80);

  --gold: oklch(0.72 0.13 75);
  --silver: oklch(0.78 0.01 250);
  --bronze: oklch(0.62 0.1 50);

  --serif: "Newsreader", "Source Serif 4", Georgia, serif;
  --sans: "Inter Tight", "Geist", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 18px;
  --r-xl: 28px;

  --shadow-sm: 0 1px 0 0 oklch(0.18 0.025 250 / 0.05);
  --shadow-md: 0 1px 2px oklch(0.18 0.025 250 / 0.04), 0 8px 24px oklch(0.18 0.025 250 / 0.05);
  --shadow-lg: 0 1px 2px oklch(0.18 0.025 250 / 0.05), 0 24px 64px oklch(0.18 0.025 250 / 0.09);

  --maxw: 1240px;
  --gutter: 32px;
}

[data-theme="dark"] {
  --bg: oklch(0.155 0.015 250);
  --bg-elev: oklch(0.185 0.018 250);
  --surface: oklch(0.21 0.02 250);
  --surface-2: oklch(0.255 0.022 250);
  --ink: oklch(0.96 0.008 80);
  --ink-2: oklch(0.82 0.012 80);
  --ink-3: oklch(0.62 0.015 250);
  --line: oklch(0.28 0.02 250);
  --line-2: oklch(0.36 0.022 250);

  --accent: oklch(0.78 0.14 145);
  --accent-ink: oklch(0.15 0.025 250);
  --accent-soft: oklch(0.3 0.06 145);

  --pos: oklch(0.78 0.15 150);
  --neg: oklch(0.7 0.17 25);
  --warn: oklch(0.82 0.14 80);

  --shadow-sm: 0 1px 0 0 oklch(0 0 0 / 0.3);
  --shadow-md: 0 1px 2px oklch(0 0 0 / 0.2), 0 8px 24px oklch(0 0 0 / 0.25);
  --shadow-lg: 0 1px 2px oklch(0 0 0 / 0.25), 0 24px 64px oklch(0 0 0 / 0.45);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 220ms ease, color 220ms ease;
  /* `clip` — NOT `hidden`: setting overflow-x:hidden forces overflow-y to
     compute to `auto`, which turns html/body into a scroll container and
     silently breaks `position: sticky` (e.g. the hero's .hero__viz). `clip`
     stops sideways scroll without creating a scroll container. */
  overflow-x: clip;
  max-width: 100vw;
}

img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}

input, textarea, select { max-width: 100%; }

::selection { background: var(--accent); color: var(--accent-ink); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

/* ---- Typography ---- */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.mono  { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1rem;
}
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

/* ---- Layout ---- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section { padding: 96px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: none; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--ink);
  color: var(--bg);
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  transition: transform 120ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn--ghost:hover { background: var(--surface); }

.btn--accent {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn .arrow {
  display: inline-block;
  transition: transform 220ms cubic-bezier(.2,.7,.3,1);
}
.btn:hover .arrow { transform: translateX(3px); }

/* ---- Chip ---- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}
.chip .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--pos);
}
.chip .dot.live { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 oklch(0.5 0.11 150 / 0.55); }
  50%      { box-shadow: 0 0 0 7px oklch(0.5 0.11 150 / 0); }
}

/* ---- Cards ---- */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

hr.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

.muted { color: var(--ink-3); }
.fg-2 { color: var(--ink-2); }
.pos { color: var(--pos); }
.neg { color: var(--neg); }

/* numeric flicker on ticker updates */
@keyframes flick {
  0% { background: oklch(0.5 0.11 150 / 0.18); }
  100% { background: transparent; }
}
.flick { animation: flick 600ms ease-out; }
.flick.neg-flick { animation-name: flickneg; }
@keyframes flickneg {
  0% { background: oklch(0.55 0.16 25 / 0.18); }
  100% { background: transparent; }
}

/* ---- Stripe placeholder (for any image slots) ---- */
.stripe {
  background-image: repeating-linear-gradient(
    135deg,
    var(--surface-2) 0 6px,
    var(--surface) 6px 12px
  );
}

/* ---- Marquee ---- */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
