/* ChipsMind — shared design system
   Dark theme only. System font stack, gold accent, poker-chip brand. */

:root {
  --bg: #0A0E12;
  --bg-2: #0C1218;
  --card: #161D26;
  --card-2: #1A222D;
  --gold: #E9B949;
  --gold-2: #F4D27A;
  --cream: #FFF3D6;
  --green: #34D399;
  --red: #F0776B;
  --text: #F3F6F9;
  --dim: #9AA7B4;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;   /* rounded-2xl */
  --r-xl: 28px;

  --maxw: 1140px;
  --pad: clamp(20px, 5vw, 40px);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --gold-grad: linear-gradient(135deg, #F4D27A 0%, #E9B949 45%, #C9971F 100%);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient glow behind the page — quiet, single source */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(680px 420px at 78% -6%, rgba(233, 185, 73, 0.10), transparent 70%),
    radial-gradient(760px 520px at 8% 4%, rgba(52, 211, 153, 0.05), transparent 72%);
  pointer-events: none;
}

img { max-width: 100%; display: block; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-2); }

h1, h2, h3 { line-height: 1.1; margin: 0; letter-spacing: -0.02em; font-weight: 700; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

.eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
}

.muted { color: var(--dim); }

/* Gold gradient wordmark */
.wordmark {
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 650;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold {
  background: var(--gold-grad);
  color: #201700;
  box-shadow: 0 10px 30px -12px rgba(233, 185, 73, 0.6);
}
.btn-gold:hover { color: #201700; filter: brightness(1.05); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-2);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--text); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 18, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand img { width: 38px; height: 38px; }
.brand .wordmark { font-size: 21px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  color: var(--dim);
  font-size: 15px;
  font-weight: 550;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold);
  border: 1px solid rgba(233, 185, 73, 0.32);
  background: rgba(233, 185, 73, 0.08);
  padding: 6px 13px;
  border-radius: 999px;
}
.nav-pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18);
}
.nav-toggle { display: none; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding-block: clamp(64px, 9vw, 116px); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4.6vw, 44px); }
.section-head p { color: var(--dim); font-size: 18px; margin: 16px 0 0; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(48px, 7vw, 90px); padding-bottom: clamp(56px, 8vw, 104px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 5vw, 68px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 62px);
  letter-spacing: -0.035em;
  margin: 0 0 22px;
}
.hero h1 .accent {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(17px, 2vw, 20px); color: var(--dim); max-width: 520px; margin: 0 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-trust {
  display: flex; align-items: center; gap: 10px;
  margin-top: 28px; color: var(--dim); font-size: 14.5px;
}
.hero-trust svg { flex: none; }

/* Store badges (non-linking placeholders) */
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 10px 18px 10px 15px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.02);
  cursor: default;
  user-select: none;
}
.store-badge svg { flex: none; }
.store-badge .lbl { line-height: 1.15; }
.store-badge .lbl small { display: block; font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
.store-badge .lbl b { font-size: 16px; font-weight: 650; color: var(--text); }

/* ---------- Signature: score-sheet → ledger ---------- */
.scan {
  position: relative;
  display: grid;
  gap: 13px;
  padding: 18px;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.sheet, .ledger {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  padding: 13px 18px;
  background: var(--card);
}
/* Raw handwritten sheet */
.sheet {
  position: relative;
  background:
    repeating-linear-gradient(180deg, transparent 0 28px, rgba(255,255,255,0.05) 28px 29px),
    var(--card);
  overflow: hidden;
}
.sheet-cap { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.sheet-cap span { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.hand { font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive; color: var(--cream); }
.hand-row {
  display: flex; justify-content: space-between; align-items: baseline;
  height: 29px; font-size: 15.5px;
}
.hand-row .n { color: #EAD9A6; }
.hand-row.a1 { transform: rotate(-0.6deg); }
.hand-row.a2 { transform: rotate(0.5deg); padding-left: 6px; }
.hand-row.a3 { transform: rotate(-0.3deg); padding-left: 2px; }
.hand-row .strike { text-decoration: line-through; text-decoration-color: rgba(240,119,107,0.8); opacity: 0.7; }
/* scan sweep */
.scanline {
  position: absolute; left: 0; right: 0; top: 0; height: 44px;
  background: linear-gradient(180deg, rgba(233,185,73,0.28), rgba(233,185,73,0));
  border-top: 2px solid rgba(233,185,73,0.9);
  box-shadow: 0 0 26px 4px rgba(233,185,73,0.35);
  animation: sweep 5s cubic-bezier(.6,.05,.35,1) infinite;
}
/* Sweep the full sheet by animating `top` to 100% — stays correct for any
   number of rows (transform-by-pixels would need retuning per row count). */
@keyframes sweep {
  0%   { top: -44px; opacity: 0; }
  10%  { opacity: 1; }
  68%  { top: calc(100% - 8px); opacity: 1; }
  80%, 100% { top: calc(100% - 8px); opacity: 0; }
}
/* AI connector chip */
.scan-arrow {
  justify-self: center;
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 650; letter-spacing: 0.04em;
  color: var(--gold);
  padding: 7px 15px; border-radius: 999px;
  border: 1px solid rgba(233,185,73,0.3); background: rgba(233,185,73,0.07);
}
/* Parsed ledger */
.ledger-cap { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
.ledger-cap b { font-size: 14px; }
.ledger-cap .chk {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 650; color: var(--green);
  padding: 4px 11px; border-radius: 999px;
  background: rgba(52,211,153,0.12); border: 1px solid rgba(52,211,153,0.28);
}
.lrow { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 12px; padding: 5px 0; border-top: 1px solid var(--line); }
.lrow:first-of-type { border-top: 0; }
.lrow .av {
  width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: #201700;
  background: var(--gold-grad);
}
.lrow .amt { font-family: var(--mono); font-size: 15px; font-variant-numeric: tabular-nums; }
.lrow .pos { color: var(--green); }
.lrow .neg { color: var(--red); }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative;
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
}
.step .num {
  font-family: var(--mono);
  font-size: 13px; font-weight: 600; color: var(--gold);
  letter-spacing: 0.1em;
}
.step h3 { font-size: 20px; margin: 14px 0 8px; }
.step p { color: var(--dim); font-size: 15.5px; margin: 0; }
.step .ico { width: 38px; height: 38px; color: var(--gold); margin-bottom: 4px; }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat {
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--card), var(--bg-2));
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feat:hover { border-color: var(--line-2); transform: translateY(-3px); }
.feat .ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 18px;
  color: var(--gold);
  background: rgba(233,185,73,0.10);
  border: 1px solid rgba(233,185,73,0.22);
}
.feat h3 { font-size: 19px; margin-bottom: 9px; }
.feat p { color: var(--dim); font-size: 15px; margin: 0; }
.feat .tag {
  display: inline-block; margin-top: 14px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); padding: 3px 9px; border-radius: 6px;
  background: rgba(233,185,73,0.1); border: 1px solid rgba(233,185,73,0.25);
}

/* ---------- Magic Zeros band ---------- */
.band {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(600px 300px at 85% 20%, rgba(233,185,73,0.10), transparent 70%),
    var(--card);
  padding: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}
.band h2 { font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 16px; }
.band p { color: var(--dim); font-size: 17px; margin: 0 0 12px; }
.mask-demo {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  font-family: var(--mono);
}
.mask-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.mask-row:first-child { border-top: 0; }
.mask-row .who { color: var(--text); font-family: var(--sans); font-weight: 600; }
.mask-row .shorthand { color: var(--cream); font-size: 18px; }
.mask-row .real { color: var(--dim); font-size: 13px; }
.mask-row .real b { color: var(--green); font-weight: 600; }
.mask-note { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 12.5px; color: var(--dim); font-family: var(--sans); }

/* ---------- Privacy strip ---------- */
.privacy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
.priv { display: flex; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.priv .ico { flex: none; width: 26px; height: 26px; color: var(--green); }
.priv h3 { font-size: 16px; margin-bottom: 5px; }
.priv p { font-size: 14px; color: var(--dim); margin: 0; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 780px; margin-inline: auto; }
.plan {
  padding: 34px 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
}
.plan.pro {
  border-color: rgba(233,185,73,0.4);
  background:
    radial-gradient(400px 200px at 80% 0%, rgba(233,185,73,0.12), transparent 70%),
    var(--card);
}
.plan .pname { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; letter-spacing: 0.02em; }
.plan .badge-pro { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: #201700; background: var(--gold-grad); padding: 2px 9px; border-radius: 6px; }
.plan .price { margin: 16px 0 4px; font-size: 40px; font-weight: 800; letter-spacing: -0.03em; }
.plan .price span { font-size: 16px; font-weight: 500; color: var(--dim); }
.plan .price-alt { color: var(--dim); font-size: 14px; margin-bottom: 20px; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.plan li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: var(--text); }
.plan li svg { flex: none; margin-top: 3px; color: var(--green); }
.plan li.off { color: var(--dim); }
.plan li.off svg { color: var(--dim); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin-inline: auto; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-size: 17px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--gold); font-size: 22px; font-weight: 400;
  transition: transform 0.2s ease; line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 24px 22px; color: var(--dim); font-size: 15.5px; }
.faq .ans a { font-weight: 600; }

/* ---------- CTA footer band ---------- */
.closer {
  text-align: center;
  padding: clamp(56px, 8vw, 96px) var(--pad);
}
.closer img { width: 76px; height: 76px; margin: 0 auto 22px; }
.closer h2 { font-size: clamp(28px, 4.4vw, 42px); margin-bottom: 16px; }
.closer p { color: var(--dim); font-size: 18px; max-width: 480px; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 52px; background: var(--bg-2); }
.footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer .brand img { width: 34px; height: 34px; }
.footer .brand .wordmark { font-size: 19px; }
.footer-col h4 { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin: 0 0 14px; font-weight: 700; }
.footer-col a { display: block; color: var(--text); font-size: 15px; margin-bottom: 10px; font-weight: 500; }
.footer-col a:hover { color: var(--gold); }
.footer-blurb { color: var(--dim); font-size: 14px; max-width: 320px; margin: 16px 0 0; }
.footer-legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; color: var(--dim); font-size: 13px; }
.footer-legal .pub { color: var(--dim); }

/* ---------- Legal / prose pages ---------- */
.legal { padding-block: clamp(48px, 7vw, 88px); }
.legal .prose { max-width: 760px; margin-inline: auto; }
.legal h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 12px; }
.legal .updated { color: var(--dim); font-size: 14px; margin-bottom: 40px; }
.prose h2 { font-size: 22px; margin: 40px 0 12px; color: var(--text); }
.prose h3 { font-size: 17px; margin: 26px 0 8px; color: var(--cream); }
.prose p, .prose li { color: #C6CFD8; font-size: 16px; }
.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 18px; padding-left: 22px; display: grid; gap: 8px; }
.prose strong { color: var(--text); }
.prose .lead { font-size: 18px; color: var(--dim); margin-bottom: 28px; }
.prose .callout {
  border: 1px solid rgba(233,185,73,0.3);
  background: rgba(233,185,73,0.06);
  border-radius: var(--r);
  padding: 20px 24px;
  margin: 28px 0;
}
.prose .callout p { margin: 0; color: var(--cream); }
.prose a { font-weight: 600; }
.contact-card {
  border: 1px solid var(--line); background: var(--card);
  border-radius: var(--r); padding: 22px 24px; margin: 24px 0;
}
.contact-card p { margin: 4px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .scan { max-width: 460px; }
  .band { grid-template-columns: 1fr; }
  .steps, .features, .privacy-grid { grid-template-columns: 1fr 1fr; }
  .footer-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .steps, .features, .privacy-grid, .plans, .footer-in { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .badges { justify-content: flex-start; }
}

/* ---------- A11y ---------- */
a:focus-visible, .btn:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto; }
  /* Keep the signature scan sweep — it's small, slow and central to the hero
     graphic (and the reason it was invisible on phones with Reduce Motion on). */
  .scanline { animation-duration: 5s !important; animation-iteration-count: infinite !important; }
}
