/* StockClash site: shared styles. Light brand: cream, white cards, ink, one blue. */

/* Outfit, self-hosted (converted from the app's own TTFs). No third-party font requests. */
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/outfit-400.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/outfit-500.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/outfit-600.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/outfit-700.woff2') format('woff2'); }

:root {
  --bg: #FAF7F0;
  --card: #FFFFFF;
  --ink: #111827;
  --ink-2: #4B5563;
  --ink-3: #6B7280;
  --line: #E8E2D4;
  --line-2: #F0EBE0;
  --blue: #1A56DB;
  --blue-press: #1546B3;
  --blue-tint: #EAF0FD;
  --gain: #047A3E;
  --loss: #C42135;
  --reward: #B4430B;
  --reward-tint: #FCEFE6;
  --gold: #F5B82E;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 8px 24px rgba(17, 24, 39, 0.06);
  --font: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ─── Wordmark ─── */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.wordmark { font-weight: 700; font-size: 21px; letter-spacing: -0.02em; color: var(--ink); line-height: 1; }
.wordmark span { color: var(--blue); }

/* ─── Header ─── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 240, 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.header-inner .brand { min-width: 0; }
.header-inner .btn { flex-shrink: 0; }
/* Very narrow screens: the icon alone carries the brand so the button never overlaps it */
@media (max-width: 359px) { .site-header .wordmark { display: none; } }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-press); }
.btn-outline { background: var(--card); color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue-tint); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn[disabled] { cursor: default; }

/* ─── Pills ─── */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  font-size: 14px; font-weight: 500; color: var(--ink-2);
}
.pill svg { width: 16px; height: 16px; color: var(--blue); flex-shrink: 0; }

/* ─── Type ─── */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; color: var(--blue); margin-bottom: 14px;
}
.icon-tile {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue-tint); color: var(--blue);
}
.icon-tile svg { width: 22px; height: 22px; }
.icon-tile.reward { background: var(--reward-tint); color: var(--reward); }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; color: var(--ink); }
h1 { font-size: clamp(42px, 9vw, 68px); letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: clamp(30px, 6vw, 44px); }
h3 { font-size: 19px; letter-spacing: -0.01em; line-height: 1.3; }
.lede { font-size: clamp(18px, 2.4vw, 20px); color: var(--ink-2); line-height: 1.55; max-width: 34em; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; color: var(--ink-3); }

/* ─── Sections ─── */
.section { padding: 72px 0; }
@media (min-width: 960px) { .section { padding: 112px 0; } }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--ink-2); font-size: 18px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ─── Cards ─── */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px;
}
@media (min-width: 768px) { .card { padding: 32px; } }

/* ─── Phone frame ─── */
.phone {
  position: relative;
  width: min(300px, 74vw);
  padding: 9px;
  border-radius: 46px;
  background: #0F172A;
  box-shadow: 0 2px 4px rgba(17, 24, 39, 0.08), 0 30px 60px -12px rgba(17, 24, 39, 0.28);
  flex-shrink: 0;
}
.phone img { width: 100%; aspect-ratio: 540 / 1170; object-fit: cover; border-radius: 38px; background: var(--bg); }

/* ─── Footer ─── */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; margin-top: 24px; }
.footer-inner { display: flex; flex-direction: column; gap: 16px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 15px; }
.footer-links a { color: var(--ink-2); font-weight: 500; padding: 4px 0; }
.footer-links a:hover { color: var(--blue); }
.footer-links .dot { color: var(--ink-3); }
.footer-meta { font-size: 14px; color: var(--ink-3); }
.footer-meta a { color: var(--ink-2); }
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .footer-bottom { flex-basis: 100%; display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line-2); }
}

/* ─── Long-form pages (privacy, terms, support) ─── */
.doc { padding: 48px 0 64px; }
@media (min-width: 768px) { .doc { padding: 72px 0 96px; } }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(36px, 7vw, 52px); margin-bottom: 12px; }
.doc .date { font-size: 14px; color: var(--ink-3); margin-bottom: 36px; }
.doc .lede { margin-bottom: 32px; }
.doc h2 { font-size: 22px; letter-spacing: -0.015em; line-height: 1.3; margin: 44px 0 12px; }
.doc p, .doc li { color: var(--ink-2); font-size: 17px; line-height: 1.7; }
.doc p { margin-bottom: 16px; max-width: 68ch; }
.doc ul, .doc ol { padding-left: 22px; margin-bottom: 16px; max-width: 66ch; }
.doc li { margin-bottom: 8px; padding-left: 4px; }
.doc li::marker { color: var(--ink-3); }
.doc strong { color: var(--ink); font-weight: 600; }
.doc a { text-decoration: underline; text-decoration-color: rgba(26, 86, 219, 0.35); text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc a:hover { text-decoration-color: var(--blue); }
.doc .contact { margin-bottom: 8px; }
.doc .contact p { margin-bottom: 6px; }
.doc .contact .email { font-size: clamp(20px, 5vw, 26px); font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.doc .contact .email a { text-decoration: none; }
