/* ============================================================================
   ShopLeads design system
   One stylesheet: tokens + typography + components. Import this and nothing else.

     <link rel="stylesheet" href="css/shopleads.css">

   Layout assumption: this file lives in a `css/` folder that sits next to a
   `fonts/` folder, so the @font-face url below resolves on any host:

     <root>/css/shopleads.css
     <root>/fonts/Geist-Variable-latin.woff2
     <root>/brand/logo-white.svg

   Surfaces: light by default, dark when the page sets `data-theme="dark"` on
   <html> (or when the OS asks for dark and the page has not forced light).
   Marketing / launch pages use the dark surfaces: <html lang="en" data-theme="dark">.
   ========================================================================== */

/* --- font ---------------------------------------------------------------- */

@font-face {
  font-family: 'Geist';
  src: url('/fonts/Geist-Variable-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* --- tokens -------------------------------------------------------------- */

:root {
  /* brand constants — the same on every surface */
  --night: #1B2440;
  --iris: #657DB5;
  --iris-deep: #3E5488;
  --ice: #BECFE3;
  --citron: #DCE487;
  --citron-ink: #3B4508;
  --paper: #F6F4EA;

  /* status */
  --good: #1F8A4C; --good-soft: #E3F3E8;
  --warn: #A86F00; --warn-soft: #FBF0D9;
  --bad: #B4322B;  --bad-soft: #F8E4E2;
  --off: #8A90A0;  --off-soft: #EEEFF2;

  /* surfaces — light (app + light marketing pages) */
  --bg: #F4F5F8;
  --panel: #FFFFFF;
  --ink: #1B2440;
  --ink-strong: #1B2440;
  --muted: #62687A;
  --line: #E2E5EC;
  --soft: #F1F3F8;
  --head: #FAFBFD;
  --accent: #3E5488;
  --accent-soft: #E8ECF6;
  --shadow: 0 1px 2px rgba(27, 36, 64, .05), 0 18px 40px -26px rgba(27, 36, 64, .4);
  --shadow-lift: 0 24px 60px -28px rgba(27, 36, 64, .5);

  /* type */
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: var(--sans);
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* radii */
  --r: 10px;          /* buttons, inputs */
  --r-card: 14px;     /* tiles, cards */
  --r-stage: 16px;    /* video stage, big panels */
  --r-pill: 999px;

  /* layout */
  --wrap: 1160px;
  --gutter: 20px;
  --pad-inline-start: max(var(--gutter), env(safe-area-inset-left, 0px));
  --pad-inline-end: max(var(--gutter), env(safe-area-inset-right, 0px));

  /* text on a dark surface (frosted header, gradient cards, dark bands) */
  --on-dark: #F3F5FA;
  --on-dark-80: rgba(243, 245, 250, .84);
  --on-dark-70: rgba(243, 245, 250, .72);
  --on-dark-line: rgba(255, 255, 255, .14);
}

/* surfaces — dark */
:root[data-theme="dark"] {
  --bg: #0E1424;
  --panel: #151C30;
  --ink: #E9ECF4;
  --ink-strong: #F3F5FA;
  --muted: #9BA2B7;
  --line: #262E46;
  --soft: #1B2338;
  --head: #18203A;
  --accent: #B9C7EA;
  --accent-soft: #22305A;
  --good: #5CC98A; --good-soft: #163526;
  --warn: #E5B24A; --warn-soft: #3A2D10;
  --bad: #F08A80;  --bad-soft: #3D1D1B;
  --off: #7E869C;  --off-soft: #232A40;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -24px rgba(0, 0, 0, .8);
  --shadow-lift: 0 28px 70px -28px rgba(0, 0, 0, .85);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --bg: #0E1424;
    --panel: #151C30;
    --ink: #E9ECF4;
    --ink-strong: #F3F5FA;
    --muted: #9BA2B7;
    --line: #262E46;
    --soft: #1B2338;
    --head: #18203A;
    --accent: #B9C7EA;
    --accent-soft: #22305A;
    --good: #5CC98A; --good-soft: #163526;
    --warn: #E5B24A; --warn-soft: #3A2D10;
    --bad: #F08A80;  --bad-soft: #3D1D1B;
    --off: #7E869C;  --off-soft: #232A40;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -24px rgba(0, 0, 0, .8);
    --shadow-lift: 0 28px 70px -28px rgba(0, 0, 0, .85);
    color-scheme: dark;
  }
}

/* --- base ---------------------------------------------------------------- */

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body > main { flex: 1 0 auto; }

h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }

a { color: var(--accent); }

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

button, input, select, textarea { font: inherit; color: inherit; }

[hidden] { display: none !important; }

/* one focus ring everywhere */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
video:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--iris);
  outline-offset: 2px;
  border-radius: 4px;
}

/* screen-reader only */
.sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* skip link */
.skip {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 60;
  background: var(--citron);
  color: var(--night);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: var(--r);
  text-decoration: none;
  transition: top .15s ease;
}
.skip:focus-visible { top: 12px; }

/* --- layout -------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad-inline-start) var(--pad-inline-end);
}
.wrap-narrow { max-width: 880px; }

/* vertical section rhythm */
.sec {
  padding-block: clamp(48px, 7vw, 92px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
/* a tighter block whose children read as one unit (CTA + terms + proof) */
.sec-tight { padding-block: clamp(30px, 4.5vw, 52px); gap: 12px; }
.sec-head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }

.stack { display: flex; flex-direction: column; gap: 16px; }
.center { text-align: center; align-items: center; }
.center .sec-head,
.center .lead,
.center .sub { margin-inline: auto; }

/* --- typography ---------------------------------------------------------- */

.display,
.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 1.02;
  letter-spacing: -.05em;
  color: var(--ink-strong);
}

.sec h2,
.h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.08;
  letter-spacing: -.04em;
  color: var(--ink-strong);
}

.h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.12;
  letter-spacing: -.03em;
}

/* citron accent inside a headline: <em> */
h1 em, h2 em, h3 em, .display em {
  font-style: normal;
  color: var(--citron);
}
:root[data-theme="light"] h1 em,
:root[data-theme="light"] h2 em { color: var(--iris-deep); }

.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 62ch; }
.sub  { font-size: clamp(16px, 1.7vw, 18.5px); color: var(--muted); max-width: 54ch; }
.muted { color: var(--muted); }
.fine { font-size: 13px; color: var(--muted); }
.nw { white-space: nowrap; }

.eyebrow,
.label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
}

/* small outlined chip, e.g. "Launch film" above a headline */
.pillx {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink);
}
.center .pillx { align-self: center; }
.pillx .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--citron);
  flex: none;
}

/* --- buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--r);
  padding: 11px 18px;
  font: 600 15px/1.2 var(--sans);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  background: var(--citron);
  color: #1B2440;
  transition: filter .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { filter: brightness(1.04); }
.btn:active { filter: brightness(.98); }

/* dark: night on light surfaces, flipped to light-on-night in dark mode */
.btn.dark { background: var(--night); color: #fff; }
:root[data-theme="dark"] .btn.dark { background: #E9ECF4; color: #0E1424; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .btn.dark { background: #E9ECF4; color: #0E1424; }
}

/* line: transparent with a hairline in the current text colour */
.btn.line {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
}
.btn.line:hover { background: color-mix(in srgb, currentColor 8%, transparent); filter: none; }

/* ghost: frosted, for use over a dark cover or gradient card */
.btn.ghost {
  background: rgba(255, 255, 255, .08);
  color: var(--on-dark);
  border: 1px solid rgba(255, 255, 255, .25);
}
.btn.ghost:hover { background: rgba(255, 255, 255, .14); filter: none; }

.btn.lg { padding: 14px 22px; font-size: 16px; border-radius: 12px; }
.btn.sm { padding: 8px 13px; font-size: 13.5px; }
.btn.block { display: flex; width: 100%; }
.btn .ico { width: 17px; height: 17px; flex: none; }

/* a row of CTAs + the reassurance line under them */
.ctarow {
  display: flex;
  gap: 10px 12px;
  flex-wrap: wrap;
  align-items: center;
}
.center .ctarow { justify-content: center; }

.checks {
  display: flex;
  gap: 10px 18px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--muted);
}
.center .checks { justify-content: center; }
.checks span { display: inline-flex; align-items: center; gap: 6px; }
.checks .ico { width: 15px; height: 15px; color: var(--citron); flex: none; }
:root[data-theme="light"] .checks .ico { color: var(--iris-deep); }

/* --- header -------------------------------------------------------------- */

/* Frosted and dark by default — it sits over dark marketing pages and over the
   top of a gradient cover. `.hdr.hdr-light` is the light-surface variant. */
.hdr {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(14, 20, 36, .72);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
/* paint the iOS status-bar strip so the frosted bar never shows the page through it */
.hdr::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 100%;
  height: env(safe-area-inset-top, 0px);
  background: #0E1424;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-block: 12px;
}
.nav img, .nav svg.logo { height: 26px; width: auto; display: block; }
.nav .sp { margin-left: auto; }
.nav a { white-space: nowrap; }
.nav a.link {
  color: rgba(243, 245, 250, .86);
  text-decoration: none;
  font-weight: 500;
  font-size: 14.5px;
}
.nav a.link:hover { color: #fff; }

/* light header variant: use with brand/logo-ink.svg */
.hdr.hdr-light {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom-color: var(--line);
}
.hdr.hdr-light::before { background: var(--bg); }
.hdr.hdr-light .nav a.link { color: var(--ink); opacity: .86; }
.hdr.hdr-light .nav a.link:hover { opacity: 1; }

/* small screens: drop the nav links, keep anything marked .keep and the CTA */
@media (max-width: 760px) {
  .nav { gap: 12px; }
  .nav a.link:not(.keep) { display: none; }
  .nav .btn { padding: 9px 13px; font-size: 14px; }
}
@media (max-width: 420px) {
  .nav { gap: 10px; }
  .nav img, .nav svg.logo { height: 21px; }
  .nav a.link.keep { display: none; }
  .nav .btn { padding: 8px 11px; font-size: 13.5px; }
}

/* --- hero ---------------------------------------------------------------- */

.hero {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 880px;
  padding-block: clamp(40px, 6vw, 80px) clamp(28px, 4vw, 44px);
}
.hero.center { max-width: 920px; margin-inline: auto; align-items: center; }
.hero h1 { max-width: 18ch; }
.hero.center h1 { max-width: 17ch; }
.hero .sub { font-size: clamp(16px, 1.7vw, 18.5px); color: var(--muted); max-width: 56ch; }

/* on dark surfaces the subhead reads better slightly brighter than --muted */
:root[data-theme="dark"] .hero .sub { color: var(--on-dark-80); }

/* --- video stage --------------------------------------------------------- */

.vstage {
  position: relative;
  width: 100%;
  border-radius: var(--r-stage);
  overflow: hidden;
  background: #080C16;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  line-height: 0;
}
:root[data-theme="dark"] .vstage { border-color: rgba(255, 255, 255, .1); }

.vstage video,
.vstage img,
.vstage iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #080C16;
  border: 0;
  vertical-align: top;
}

/* optional soft citron/iris bloom behind the stage on dark pages */
.vstage-glow { position: relative; isolation: isolate; }
.vstage-glow::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -10% 0 -16%;
  background:
    radial-gradient(42% 52% at 78% 10%, rgba(220, 228, 135, .20), transparent 70%),
    radial-gradient(46% 56% at 16% 92%, rgba(101, 125, 181, .26), transparent 72%);
  filter: blur(28px);
  pointer-events: none;
}
:root[data-theme="light"] .vstage-glow::before { opacity: .55; }

/* caption under a stage */
.vcap { margin-top: 12px; font-size: 13px; color: var(--muted); }

@media (max-width: 600px) {
  .vstage { border-radius: 12px; }
}

/* --- feature grid -------------------------------------------------------- */

.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; }

.tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.tile h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--ink-strong); }
.tile p { color: var(--muted); font-size: 14.5px; }
.tile .n { font-family: var(--mono); font-size: 24px; font-weight: 500; color: var(--accent); }
.tile .ic {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 4px;
  flex: none;
}
.tile .ic .ico { width: 18px; height: 18px; }
.tile .k {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- social proof strip -------------------------------------------------- */

.proofstrip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 16px 20px;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 14.5px;
  color: var(--muted);
}
.center .proofstrip { justify-content: center; text-align: center; }
.proofstrip b {
  color: var(--ink-strong);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.proofstrip .big {
  font-size: 22px;
  line-height: 1;
  letter-spacing: -.03em;
}
.proofstrip .div {
  width: 1px;
  align-self: stretch;
  min-height: 22px;
  background: var(--line);
}

/* quieter, borderless variant for directly under a CTA */
.proofline {
  font-size: 14.5px;
  color: var(--muted);
}
.proofline b { color: var(--ink-strong); font-weight: 600; font-variant-numeric: tabular-nums; }

/* --- gradient card / dark band ------------------------------------------ */

/* The signature ShopLeads cover: a soft multi-stop gradient with a grain
   overlay. Pure CSS — no image assets needed. */
.gcard {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 22px;
  padding: clamp(22px, 4vw, 48px);
  color: var(--on-dark);
  box-shadow: 0 40px 80px -48px rgba(5, 12, 30, .7);
}
.gcard::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.62' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.gcard h2, .gcard h3, .gcard .display { color: #fff; }
.gcard p, .gcard .lead, .gcard .sub, .gcard .fine { color: var(--on-dark-80); }
.gcard .checks { color: var(--on-dark-70); }

.gcard.gc-hero  { background: radial-gradient(70% 70% at 90% 0%, #E8EDB0, #DCE487 25%, transparent 62%), radial-gradient(60% 70% at 0% 100%, #BECFE3, #657DB5 45%, transparent 80%), #3E5488; }
.gcard.gc-iris  { background: radial-gradient(28% 40% at 8% 26%, #5869AB, transparent 70%), radial-gradient(60% 30% at 62% 90%, #B7BDDD, #8586C1 40%, transparent 75%), #101424; }
.gcard.gc-night { background: radial-gradient(55% 60% at 90% 10%, #8EA3D6, transparent 70%), radial-gradient(60% 70% at 0% 100%, #DCE487, #7A9064 40%, transparent 75%), #1D2A3E; }
.gcard.gc-glacier { background: radial-gradient(50% 55% at 50% 52%, transparent 30%, #82A8BA88 48%, transparent 70%), radial-gradient(70% 70% at 50% 50%, #244455, transparent 85%), #101E29; }

/* closing CTA band */
.closing {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.closing.center { align-items: center; text-align: center; }
.closing h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.02;
  letter-spacing: -.05em;
  max-width: 20ch;
}

/* --- footer -------------------------------------------------------------- */

.foot {
  border-top: 1px solid var(--line);
  margin-top: auto;
  padding-block: 26px calc(28px + env(safe-area-inset-bottom, 0px));
  color: var(--muted);
  font-size: 13.5px;
}
:root[data-theme="dark"] .foot { border-top-color: rgba(255, 255, 255, .08); }
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}
.foot img, .foot svg.logo { height: 20px; width: auto; display: block; opacity: .9; }
.foot .sp { margin-left: auto; }
.foot .links { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.foot a { color: var(--ink); opacity: .8; text-decoration: none; }
.foot a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

/* --- restrained motion --------------------------------------------------- */

/* Opt-in reveal. Nothing is hidden unless JS has run (html[data-js]), so the
   page is fully readable with JS off or blocked. */
html[data-js] [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
}
html[data-js] [data-reveal].shown { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html[data-js] [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- print --------------------------------------------------------------- */

@media print {
  .hdr, .skip, .vstage { display: none; }
  body { background: #fff; color: #000; }
}
