/* =========================================================
   ArbiCube — Arbitrage AI Assistant website
   Tokens mirror the extension + mobile redesign (Paper file)
   ========================================================= */

:root {
  /* Raw palette: light */
  --bg-l: #ffffff;
  --surface-l: #f6f7f8;
  --elevated-l: #ffffff;
  --border-l: #e6e8eb;
  --text-l: #111315;
  --muted-l: #5e646e;
  --profit-l: #0d7a52;
  --loss-l: #d12929;
  --warn-l: #b4690e;
  --link-l: #1d4ed8;

  /* Raw palette: dark */
  --bg-d: #121418;
  --surface-d: #1a1d24;
  --elevated-d: #222630;
  --border-d: #2e3442;
  --text-d: #f9fafb;
  --muted-d: #a1aab8;
  --profit-d: #34e09f;
  --loss-d: #ff6b72;
  --warn-d: #ffb838;
  --link-d: #60a5fa;

  /* Semantic tokens */
  --bg: light-dark(var(--bg-l), var(--bg-d));
  --surface: light-dark(var(--surface-l), var(--surface-d));
  --elevated: light-dark(var(--elevated-l), var(--elevated-d));
  --border: light-dark(var(--border-l), var(--border-d));
  --text: light-dark(var(--text-l), var(--text-d));
  --muted: light-dark(var(--muted-l), var(--muted-d));
  --profit: light-dark(var(--profit-l), var(--profit-d));
  --profit-bg: light-dark(#e7f5ee, rgb(52 224 159 / 0.12));
  --loss: light-dark(var(--loss-l), var(--loss-d));
  --loss-bg: light-dark(#fdecec, rgb(255 107 114 / 0.12));
  --warn: light-dark(var(--warn-l), var(--warn-d));
  --warn-bg: light-dark(#fdf3e3, rgb(255 184 56 / 0.12));
  --link: light-dark(var(--link-l), var(--link-d));
  --amazon: #f97316;
  --ink-btn: light-dark(#111315, #f9fafb);
  --ink-btn-text: light-dark(#ffffff, #111315);
  --shadow: light-dark(0 1px 2px rgb(17 19 21 / 0.06), 0 1px 2px rgb(0 0 0 / 0.4));
  --shadow-lg: light-dark(0 30px 60px -20px rgb(17 19 21 / 0.22), 0 30px 60px -20px rgb(0 0 0 / 0.7));

  /* Type: hero exempt, then 3 body steps */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --text-display: clamp(2.75rem, 6.6vw, 5.75rem);
  --text-heading: clamp(2rem, 3.6vw, 2.875rem);
  --text-body: 1.0625rem;
  --text-sm: 0.875rem;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 22px;
  --radius-full: 999px;

  --page: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light dark;
  accent-color: var(--profit);

  /* Manual override from the theme toggle (see dark-mode-toggle guidance) */
  &:has(> head > meta[name="color-scheme"][content="dark"]) { color-scheme: dark; }
  &:has(> head > meta[name="color-scheme"][content="light"]) { color-scheme: light; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.035em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
::selection { background: light-dark(#cdeedd, rgb(52 224 159 / 0.3)); }
.num { font-variant-numeric: tabular-nums; }
.wrap { width: min(100% - 48px, var(--page)); margin-inline: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink-btn); color: var(--ink-btn-text);
  padding: 10px 16px; border-radius: var(--radius-md); text-decoration: none;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: var(--radius-full);
  font: 600 var(--text-body)/1 var(--font);
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform 160ms var(--ease), background-color 160ms var(--ease), border-color 160ms var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink-btn); color: var(--ink-btn-text); }
.btn-primary:hover { background: light-dark(#2a2d31, #ffffff); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--elevated); }
.btn-ghost:hover { border-color: var(--muted); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.store-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px 9px 14px; min-height: 52px;
  border-radius: var(--radius-md);
  background: var(--elevated); border: 1px solid var(--border);
  color: var(--text); text-decoration: none;
  transition: border-color 160ms var(--ease), transform 160ms var(--ease);
}
.store-badge:hover { border-color: var(--muted); }
.store-badge.is-soon { cursor: default; opacity: 0.78; border-style: dashed; }
.store-badge.is-soon:hover { border-color: var(--border); }
.store-badge svg { width: 24px; height: 24px; flex-shrink: 0; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.15; font-size: var(--text-sm); color: var(--muted); }
.store-badge strong { font-size: var(--text-body); color: var(--text); font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  position: relative; z-index: 10;
}
.site-header:has(+ main > .hero) {
  position: absolute; inset: 0 0 auto;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 750; font-size: 1.25rem; letter-spacing: -0.025em; white-space: nowrap; }
.brand img { width: 36px; height: 36px; }
.brand b { font-weight: 750; color: var(--profit); }
.nav-links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: var(--text-sm); transition: color 160ms var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-actions .btn { min-height: 40px; padding: 10px 18px; font-size: var(--text-sm); }

.theme-toggle {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: var(--radius-full);
  border: 1px solid var(--border); background: var(--elevated); color: var(--text);
  cursor: pointer; transition: border-color 160ms var(--ease);
}
.theme-toggle:hover { border-color: var(--muted); }
.theme-toggle svg { width: 18px; height: 18px; }
/* Show the icon for the scheme you would switch TO, and match brand logo to active scheme */
.theme-toggle .to-light, .logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not(:has(> head > meta[name="color-scheme"][content="light"])) .theme-toggle .to-dark,
  :root:not(:has(> head > meta[name="color-scheme"][content="light"])) .logo-light { display: none; }
  :root:not(:has(> head > meta[name="color-scheme"][content="light"])) .theme-toggle .to-light,
  :root:not(:has(> head > meta[name="color-scheme"][content="light"])) .logo-dark { display: block; }
}
:root:has(> head > meta[name="color-scheme"][content="dark"]) .theme-toggle .to-dark,
:root:has(> head > meta[name="color-scheme"][content="dark"]) .logo-light { display: none; }
:root:has(> head > meta[name="color-scheme"][content="dark"]) .theme-toggle .to-light,
:root:has(> head > meta[name="color-scheme"][content="dark"]) .logo-dark { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(56px, 9vw, 112px) 0 0; text-align: center; overflow: clip; }
.site-header + main > .hero { padding-top: calc(72px + clamp(56px, 9vw, 112px)); }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 960px; z-index: -1;
  background: radial-gradient(70% 56% at 50% -4%, light-dark(rgb(13 122 82 / 0.11), rgb(52 224 159 / 0.12)), transparent 72%);
}
.hero h1 {
  font-size: var(--text-display); font-weight: 800; letter-spacing: -0.05em; line-height: 0.96;
  max-width: 14ch; margin-inline: auto;
}
.hero h1 .profit { color: var(--profit); }
.hero-lede { max-width: 54ch; margin: 24px auto 0; color: var(--muted); font-size: 1.1875rem; }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 36px; }
.hero-meta { font-size: var(--text-sm); color: var(--muted); }
.hero-meta a { color: var(--text); font-weight: 600; text-underline-offset: 3px; }

/* Product stage */
.stage { position: relative; margin: 64px auto 0; width: min(100% - 48px, 1220px); padding-bottom: 40px; display: flex; align-items: flex-end; gap: 24px; }
.browser {
  position: relative; flex: 1; min-width: 0; border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: var(--surface); border: 1px solid var(--border); border-bottom: 0;
  box-shadow: var(--shadow-lg); overflow: hidden; text-align: left;
  height: 560px;
}
.browser-bar { display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 16px; border-bottom: 1px solid var(--border); background: var(--elevated); }
.dots { display: flex; gap: 7px; flex-shrink: 0; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--border); }
.url { flex: 1; min-width: 0; max-width: 520px; height: 28px; line-height: 28px; border-radius: var(--radius-full); background: var(--surface); padding: 0 14px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-body { display: grid; grid-template-columns: 1fr 380px; height: calc(100% - 46px); }
.retail-page { padding: 32px 28px; display: grid; grid-template-columns: 190px 1fr; gap: 24px; align-content: start; }
.retail-img { aspect-ratio: 1; border-radius: var(--radius-lg); background: linear-gradient(145deg, light-dark(#eef0f3, #262a34), light-dark(#e2e5ea, #1d2029)); display: grid; place-items: center; }
.retail-img svg { width: 55%; }
.retail-info { display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--muted); }
.retail-info .store { font-weight: 700; color: #cc0000; font-size: 13px; }
.retail-info .t { color: var(--text); font-size: 20px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.25; }
.retail-info .p { color: var(--text); font-size: 28px; font-weight: 750; letter-spacing: -0.02em; }
.retail-info .clear { color: #cc0000; font-weight: 600; }
.skeleton { height: 10px; border-radius: 6px; background: var(--border); opacity: 0.7; }

/* Extension panel mock */
.panel { border-left: 1px solid var(--border); background: var(--bg); padding: 14px; display: flex; flex-direction: column; gap: 10px; font-size: 12px; overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; }
.panel-head .name { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; }
.panel-head img { width: 20px; height: 20px; }
.seg { display: inline-flex; padding: 3px; border-radius: var(--radius-full); background: var(--surface); border: 1px solid var(--border); gap: 2px; }
.seg span { padding: 4px 10px; border-radius: var(--radius-full); color: var(--muted); font-weight: 600; font-size: 11px; }
.seg span.on { background: var(--elevated); color: var(--text); box-shadow: var(--shadow); }
.card { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); padding: 10px; }
.card-label { font-size: 10.5px; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 8px; }
.match { display: flex; gap: 10px; align-items: center; }
.thumb { width: 40px; height: 40px; border-radius: 8px; background: light-dark(#eef0f3, #2a2f3a); display: grid; place-items: center; flex-shrink: 0; }
.thumb svg { width: 24px; }
.match b { display: block; font-size: 12.5px; line-height: 1.3; }
.match small { color: var(--muted); font-size: 11px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cell { background: var(--elevated); border: 1px solid var(--border); border-radius: 8px; padding: 7px 9px; }
.cell small { display: block; color: var(--muted); font-size: 10.5px; }
.cell b { font-size: 12.5px; font-weight: 650; }
.c-profit { color: var(--profit); }
.c-loss { color: var(--loss); }
.c-warn { color: var(--warn); }
.c-link { color: var(--link); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.trio div { border-radius: 8px; padding: 8px 4px; text-align: center; background: var(--elevated); border: 1px solid var(--border); }
.trio div.win { background: var(--profit-bg); border-color: color-mix(in srgb, var(--profit) 35%, transparent); }
.trio b { display: block; font-size: 15px; font-weight: 750; letter-spacing: -0.02em; }
.trio small { color: var(--muted); font-size: 10px; }
.flame { display: inline-block; margin-left: 4px; padding: 1px 5px; border-radius: 4px; background: var(--warn-bg); color: var(--warn); font-size: 10px; font-weight: 700; }

/* Phone mock */
.phone {
  position: relative; flex-shrink: 0; width: 270px; height: 560px;
  border-radius: 44px; padding: 10px; background: #0b0d10;
  box-shadow: var(--shadow-lg), 0 0 0 1px light-dark(rgb(0 0 0 / 0.1), rgb(255 255 255 / 0.08));
  text-align: left; z-index: 2;
}
.phone-screen { height: 100%; border-radius: 35px; overflow: hidden; background: #0d0f13; display: flex; flex-direction: column; position: relative; }
.cam { flex: 0 0 210px; position: relative; background: radial-gradient(80% 70% at 50% 40%, #2b3140, #0d0f13); display: grid; place-items: center; }
.cam .notch { position: absolute; top: 9px; left: 50%; translate: -50% 0; width: 82px; height: 22px; border-radius: 20px; background: #000; }
.cam .chip { position: absolute; top: 42px; left: 14px; font-size: 10px; color: #f9fafb; background: rgb(255 255 255 / 0.12); padding: 4px 9px; border-radius: 99px; display: flex; gap: 6px; align-items: center; }
.cam .chip i { width: 6px; height: 6px; border-radius: 50%; background: #ffb838; }
.reticle { width: 66%; height: 70px; border: 1.5px solid #34e09f; border-radius: 14px; display: grid; place-items: center; box-shadow: 0 0 30px rgb(52 224 159 / 0.25); margin-top: 26px; }
.reticle::after { content: ""; width: 84%; height: 1.5px; background: #34e09f; animation: scan 2.4s var(--ease) infinite alternate; }
@keyframes scan { from { translate: 0 -22px; } to { translate: 0 22px; } }
.cam .upc { position: absolute; bottom: 14px; font-size: 10px; color: #a1aab8; }
.sheet { flex: 1; background: var(--bg-l); color: var(--text-l); border-radius: 22px 22px 0 0; margin-top: -16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.sheet .grab { width: 34px; height: 4px; border-radius: 4px; background: #d6d9de; margin: 0 auto 2px; }
.sheet .pt { font-size: 13px; font-weight: 650; display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.sheet .safe { font-size: 10px; font-weight: 700; color: var(--profit-l); background: #e7f5ee; padding: 3px 7px; border-radius: 99px; white-space: nowrap; }
.sheet .meta { font-size: 10.5px; color: var(--muted-l); margin-top: -6px; }
.sheet .big { font-size: 34px; font-weight: 800; letter-spacing: -0.04em; color: var(--profit-l); line-height: 1; }
.sheet .row { display: flex; justify-content: space-between; align-items: end; padding-bottom: 10px; border-bottom: 1px solid var(--border-l); }
.sheet .row small { display: block; font-size: 10.5px; color: var(--muted-l); }
.sheet .row .r { text-align: right; font-size: 13px; font-weight: 700; }
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.chips span { font-size: 10.5px; font-weight: 600; text-align: center; padding: 6px 0; border-radius: 7px; background: var(--surface-l); border: 1px solid var(--border-l); }
.sheet .save { margin-top: auto; background: #111315; color: #fff; text-align: center; font-size: 12px; font-weight: 600; padding: 11px; border-radius: 12px; }

/* ---------- Retailer strip ---------- */
.works-on { border-block: 1px solid var(--border); padding: 28px 0; }
.works-on .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.works-on p { color: var(--muted); font-size: var(--text-sm); }
.works-on ul { display: flex; gap: 12px 40px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.works-on li { font-weight: 750; font-size: 1.125rem; letter-spacing: -0.02em; color: var(--muted); opacity: 0.85; }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section h2 { font-size: var(--text-heading); font-weight: 780; }
.section-head p { margin-top: 18px; color: var(--muted); }
.section h3 { font-size: var(--text-body); font-weight: 650; letter-spacing: -0.01em; line-height: 1.35; }
.muted { color: var(--muted); }

/* Steps (genuine sequence) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--border); counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { padding: 32px 32px 0 0; counter-increment: step; }
.steps li + li { padding-left: 32px; border-left: 1px solid var(--border); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink-btn); color: var(--ink-btn-text); font-weight: 700; font-size: var(--text-sm); margin-bottom: 20px; }
.steps p { margin-top: 8px; color: var(--muted); }
.kbd { font: 600 var(--text-sm) var(--font); padding: 2px 7px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); white-space: nowrap; }

/* Split feature */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 7vw, 96px); align-items: center; }
.split > * { min-width: 0; }
.split.flip > :first-child { order: 2; }
.feature-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 22px; }
.feature-list li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; }
.feature-list svg { width: 22px; height: 22px; margin-top: 2px; color: var(--profit); }
.feature-list p { color: var(--muted); margin-top: 2px; }

/* Interactive calculator */
.calc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); }
.calc-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.calc-top strong { font-weight: 650; }
.tabs { display: inline-flex; padding: 4px; border-radius: var(--radius-full); background: var(--bg); border: 1px solid var(--border); gap: 2px; }
.tabs button { font: 600 var(--text-sm) var(--font); color: var(--muted); background: none; border: 0; padding: 7px 14px; border-radius: var(--radius-full); cursor: pointer; transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.tabs button[aria-selected="true"] { background: var(--ink-btn); color: var(--ink-btn-text); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: var(--text-sm); font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field input {
  width: 100%; height: 52px; padding: 0 14px; border-radius: var(--radius-md);
  border: 1px solid var(--border); background: var(--elevated); color: var(--text);
  font: 650 1.125rem var(--font); font-variant-numeric: tabular-nums;
  transition: border-color 160ms var(--ease);
}
.field input:focus { outline: none; border-color: var(--text); }
.field .hint { font-size: var(--text-sm); color: var(--muted); margin-top: 6px; min-height: 1.6em; }
.results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.result { min-width: 0; border-radius: var(--radius-lg); padding: 18px 10px; text-align: center; background: var(--elevated); border: 1px solid var(--border); transition: background-color 200ms var(--ease), border-color 200ms var(--ease); }
.result output { display: block; font-size: clamp(1.125rem, 2.5vw, 2rem); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.result span { font-size: var(--text-sm); color: var(--muted); }
.result.is-profit { background: var(--profit-bg); border-color: color-mix(in srgb, var(--profit) 35%, transparent); }
.result.is-profit output { color: var(--profit); }
.result.is-loss { background: var(--loss-bg); border-color: color-mix(in srgb, var(--loss) 35%, transparent); }
.result.is-loss output { color: var(--loss); }
.calc-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); font-size: var(--text-sm); color: var(--muted); }
.calc-foot b { color: var(--text); font-variant-numeric: tabular-nums; }
.calc-note { font-size: var(--text-sm); color: var(--muted); margin-top: 14px; }

/* Risk board */
.risk-board { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; }
.risk-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 18px 22px; }
.risk-row + .risk-row { border-top: 1px solid var(--border); }
.risk-icon { width: 40px; height: 40px; border-radius: var(--radius-md); display: grid; place-items: center; }
.risk-icon svg { width: 20px; height: 20px; }
.risk-row p { font-size: var(--text-sm); color: var(--muted); }
.status { font-size: var(--text-sm); font-weight: 650; padding: 5px 11px; border-radius: var(--radius-full); white-space: nowrap; }
.s-loss { color: var(--loss); background: var(--loss-bg); }
.s-warn { color: var(--warn); background: var(--warn-bg); }
.s-ok { color: var(--profit); background: var(--profit-bg); }

/* Marketplaces */
.market { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.market-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 28px; }
.market-panel[hidden] { display: none; }
.market-panel h3 { font-size: var(--text-body); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-top: 18px; }
.stat-grid div { background: var(--elevated); padding: 16px 18px; }
.stat-grid small { display: block; color: var(--muted); font-size: var(--text-sm); }
.stat-grid b { font-size: 1.25rem; font-weight: 750; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.market-tabs { margin-top: 32px; }

/* Mobile band (always dark, like the scanner) */
.mobile-band {
  color-scheme: dark;
  --text: var(--text-d); --muted: var(--muted-d); --border: var(--border-d); --surface: var(--surface-d); --elevated: var(--elevated-d); --profit: var(--profit-d); --ink-btn: #f9fafb; --ink-btn-text: #111315; --link: var(--link-d);
  background: #0b0d10; color: var(--text);
  border-radius: clamp(0px, 2.5vw, 32px);
  width: min(100% - 24px, 1360px); margin-inline: auto;
  overflow: hidden; position: relative;
}
.mobile-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 78% 50%, rgb(52 224 159 / 0.14), transparent 70%); pointer-events: none; }
.mobile-grid { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.mobile-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin: 40px 0; padding: 0; list-style: none; }
.mobile-feats p { color: var(--muted); margin-top: 4px; }
.mobile-band .store-links { justify-content: flex-start; }
.phone-stage { position: relative; height: 600px; }
.phone-stage .phone { position: absolute; left: 50%; right: auto; translate: -50% 0; bottom: auto; top: 20px; width: 290px; height: 590px; }

/* Privacy */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; border-top: 1px solid var(--border); padding-top: 40px; }
.trust .big { font-size: clamp(2.25rem, 4vw, 3.25rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.trust p { color: var(--muted); margin-top: 6px; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-weight: 650; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; flex-shrink: 0; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); rotate: 45deg; translate: 0 -3px; transition: rotate 200ms var(--ease), translate 200ms var(--ease); }
.faq details[open] summary::after { rotate: 225deg; translate: 0 3px; }
.faq details p { padding: 0 48px 24px 0; color: var(--muted); max-width: 65ch; }
.faq details a { color: var(--link); }

/* Final CTA */
.final { text-align: center; }
.final h2 { font-size: clamp(2.5rem, 5vw, 4.25rem); letter-spacing: -0.045em; max-width: 16ch; margin-inline: auto; }
.final p { color: var(--muted); margin: 20px auto 0; max-width: 46ch; }
.final .hero-cta { margin-top: 36px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 64px 0 40px; font-size: var(--text-sm); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.foot-grid p { color: var(--muted); margin-top: 14px; max-width: 34ch; }
.foot-grid h2 { font-size: var(--text-sm); font-weight: 650; letter-spacing: 0; margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-grid a { color: var(--muted); text-decoration: none; }
.foot-grid a:hover { color: var(--text); }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); }

/* ---------- Inner pages (support / legal) ---------- */
.page-hero { padding: clamp(56px, 8vw, 96px) 0 40px; border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(2.5rem, 5.5vw, 4.25rem); font-weight: 800; letter-spacing: -0.045em; }
.page-hero p { margin-top: 16px; color: var(--muted); max-width: 60ch; }
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; padding: 56px 0 120px; }
.toc { position: sticky; top: 32px; align-self: start; font-size: var(--text-sm); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--text); }
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.625rem; font-weight: 750; letter-spacing: -0.03em; margin: 48px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--text-body); font-weight: 650; margin: 28px 0 8px; letter-spacing: -0.01em; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 1.2em; display: grid; gap: 8px; margin: 14px 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--link); }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: var(--text-sm); }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { color: var(--text); font-weight: 650; background: var(--surface); }
.prose td { color: var(--muted); }
.callout { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 22px; margin: 22px 0; }

.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; margin: 56px 0 0; }
.help-grid a { background: var(--bg); padding: 28px; text-decoration: none; display: flex; flex-direction: column; gap: 8px; transition: background-color 160ms var(--ease); }
.help-grid a:hover { background: var(--surface); }
.help-grid svg { width: 24px; height: 24px; color: var(--profit); margin-bottom: 8px; }
.help-grid p { color: var(--muted); }
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; padding: 96px 0 120px; border-top: 1px solid var(--border); }
.form { display: grid; gap: 16px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: var(--text-sm); font-weight: 600; color: var(--muted); }
.form input, .form select, .form textarea {
  font: 400 var(--text-body) var(--font); color: var(--text);
  background: var(--elevated); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 12px 14px; min-height: 48px; width: 100%;
  transition: border-color 160ms var(--ease);
}
.form textarea { min-height: 150px; resize: vertical; }
.form :is(input, select, textarea):focus { outline: none; border-color: var(--text); }
.form :is(input, textarea):user-invalid { border-color: var(--loss); }
.form .btn { justify-self: start; }

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; translate: 0 24px; transition: opacity 700ms var(--ease), translate 700ms var(--ease); }
  .reveal.is-in { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reticle::after { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .browser { width: 100%; }
  .browser-body { grid-template-columns: 1fr 340px; }
  .retail-page { grid-template-columns: 1fr; }
  .retail-img { max-width: 200px; }
  .phone { display: none; }
  .phone-stage .phone { display: block; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .split, .market, .mobile-grid, .contact { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .steps, .trust, .help-grid { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--border); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .doc { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; }
  .mobile-band .section { padding-bottom: 0; }
}
@media (max-width: 640px) {
  .browser { height: 520px; }
  .browser-body { grid-template-columns: 1fr; }
  .retail-page { display: none; }
  .panel { border-left: 0; }
  .nav-actions .btn { display: none; }
  .brand { font-size: 1.0625rem; }
  .fields, .mobile-feats, .form .row2 { grid-template-columns: 1fr; }
  .results { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .result { padding: 14px 6px; }
  .risk-row { grid-template-columns: 36px 1fr; }
  .risk-row .status { grid-column: 2; justify-self: start; }
  .faq details p { padding-right: 0; }
  .phone-stage { height: 560px; }
  .phone-stage .phone { width: 270px; height: 550px; }
}
