/* DB Chart — shared visual system for index.html, support.html and privacy.html.
   Tokens match the iOS app; teal is taken from the logo. No build step, no dependencies. */

:root {
  --bg: #0E0F11;
  --surface: #131416;
  --raised: #17181B;
  --hair: #1F2125;
  --border: #26282C;
  --border-strong: #2E3136;
  --text: #F2F1EC;
  --muted: #9DA1A8;
  --dim: #7F838A;
  --accent: #2BC48F;
  --gold: #E8C486;
  --up: #26B383;
  --down: #D9464B;

  --page: 1120px;
  --measure: 46em;
  --gutter: clamp(20px, 5vw, 80px);
  --section: clamp(48px, 8vw, 96px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3, p, ul, figure { margin: 0; }
ul { list-style: none; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: var(--text); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding-inline: var(--gutter); }
.measure { max-width: var(--measure); }

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

.site-header { border-bottom: 1px solid var(--hair); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  overflow: hidden;
  flex: none;
}
.brand-mark img { width: 100%; height: 100%; }
.brand-name { font-size: 13px; letter-spacing: 0.18em; font-weight: 700; }
.brand-name span { font-weight: 400; color: var(--muted); }

.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 720px) { .nav .nav-jump { display: none; } }

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

.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn--primary { background: var(--text); color: #0E0F11; }
.btn--ghost { border-color: var(--border-strong); color: var(--text); font-weight: 500; }
@media (max-width: 480px) { .actions { display: grid; } .btn { width: 100%; } }

/* ---------- shared text ---------- */

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.lede { font-size: clamp(17px, 2vw, 20px); line-height: 1.5; color: var(--muted); }
.note { font-size: 15px; color: var(--dim); }
.section { padding-block: var(--section); border-top: 1px solid var(--hair); }
.section > .wrap > h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.16; letter-spacing: -0.02em; }

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

.hero { padding-block: clamp(40px, 7vw, 96px); }
.hero .wrap { display: grid; gap: clamp(36px, 5vw, 72px); align-items: start; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: minmax(0, 1fr) 340px; } }
.hero h1 {
  font-size: clamp(38px, 6.2vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-top: 18px;
}
.hero .lede { margin-top: 18px; max-width: 30em; }
.hero .actions { margin-top: 28px; }
.hero .note { margin-top: 18px; }

/* ---------- analysis panel ---------- */

.panel {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg);
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  font-size: 13px;
}
.panel-head b { font-weight: 600; }
.panel-head span { color: var(--dim); font-size: 11px; font-variant-numeric: tabular-nums; }
.panel-body { padding: 12px 14px 14px; }
.structure { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.structure b { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.chip {
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 4px 8px;
  white-space: nowrap;
}
.rows { margin-top: 8px; }
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  border-top: 1px solid var(--hair);
  font-size: 13px;
  color: var(--muted);
}
.row b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- what it does ---------- */

.grid { display: grid; gap: 40px 40px; margin-top: 48px; }
@media (min-width: 620px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.grid > li { border-top: 1px solid var(--border-strong); padding-top: 18px; }
.grid h3 { font-size: 19px; line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; }
.grid p { margin-top: 10px; font-size: 16px; line-height: 1.55; color: var(--muted); }

/* ---------- multi-timeframe ---------- */

.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 460px) minmax(0, 1fr); } }
.split h2 { margin-top: 18px; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.16; letter-spacing: -0.02em; }
.split .lede { margin-top: 16px; }
.facts { margin-top: 24px; border-top: 1px solid var(--hair); }
.facts .row { min-height: 46px; border-top: 0; border-bottom: 1px solid var(--hair); font-size: 15px; }

.tfcard {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  padding: clamp(16px, 2.5vw, 24px);
}
.tfcard-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; }
.tfcard-head b { font-weight: 600; }
.tfcard-head span { font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
.tf { display: flex; align-items: center; gap: clamp(10px, 2vw, 16px); padding-block: 14px; border-bottom: 1px solid var(--hair); }
.tf:last-of-type { border-bottom: 0; }
.tf svg { flex: 1 1 auto; min-width: 0; height: auto; }
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 22px;
  padding: 0 7px;
  border-radius: 6px;
  background: var(--text);
  color: #0E0F11;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  flex: none;
}
.tf-meta { display: flex; flex-direction: column; gap: 3px; width: 92px; flex: none; font-size: 13px; }
.tf-meta span { font-size: 12px; color: var(--dim); }
@media (max-width: 620px) { .tf-meta { width: auto; } .tf-meta span { display: none; } }
.verdict {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-strong);
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.verdict .dot { width: 8px; height: 8px; }

/* ---------- pro ---------- */

.pro { display: grid; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (min-width: 760px) { .pro { grid-template-columns: 132px minmax(0, 1fr); } }
.pro img { width: clamp(88px, 12vw, 132px); height: auto; }
.pro .eyebrow { color: var(--gold); }
.pro h2 { margin-top: 16px; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.16; letter-spacing: -0.02em; }
.pro p { margin-top: 16px; color: var(--muted); }
.pro .note { margin-top: 14px; }
.pro .actions { margin-top: 26px; }

/* ---------- documents (support, privacy) ---------- */

.page-head { padding-block: clamp(36px, 6vw, 72px) clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--hair); }
.page-head h1 { font-size: clamp(32px, 5.4vw, 48px); line-height: 1.1; letter-spacing: -0.025em; }
.page-head .updated { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.page-head h1 + .lede, .page-head .updated + h1 { margin-top: 18px; }
.page-head .lede { max-width: 38em; }
.page-head .actions { margin-top: 26px; align-items: center; }
.page-head .actions .note { margin: 0; }

.doc { display: grid; gap: clamp(32px, 5vw, 72px); align-items: start; padding-block: clamp(36px, 5vw, 64px) clamp(56px, 8vw, 96px); }
@media (min-width: 980px) { .doc { grid-template-columns: 220px minmax(0, 1fr); } }
.doc-index { position: sticky; top: 24px; }
@media (max-width: 979px) { .doc-index { display: none; } }
.doc-index p { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); padding-bottom: 10px; }
.doc-index a {
  display: flex;
  align-items: center;
  min-height: 44px;
  border-top: 1px solid var(--hair);
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
}
.doc-index li:last-child a { border-bottom: 1px solid var(--hair); }
.doc-index a:hover { color: var(--text); }

.prose > section + section { margin-top: clamp(36px, 5vw, 52px); }
.prose h2 { font-size: clamp(22px, 2.6vw, 26px); line-height: 1.24; letter-spacing: -0.015em; }
.prose p { margin-top: 14px; color: var(--muted); max-width: var(--measure); }
.prose p b, .prose p strong { color: var(--text); font-weight: 600; }
.prose a { text-decoration: none; border-bottom: 1px solid #4B4F56; }
.prose a:hover { border-bottom-color: var(--text); }

.defs { margin-top: 20px; border-top: 1px solid var(--hair); }
.defs li { padding-block: 16px; border-bottom: 1px solid var(--hair); max-width: var(--measure); }
.defs b { display: block; font-size: 17px; font-weight: 600; color: var(--text); }
.defs b + span { display: block; margin-top: 6px; font-size: 16px; line-height: 1.55; color: var(--muted); }
.defs.plain li { color: var(--muted); font-size: 17px; }
.defs.plain li strong { color: var(--text); font-weight: 600; }
.defs.split-rows li { display: flex; gap: 20px; }
.defs.split-rows b { width: 118px; flex: none; }
@media (max-width: 520px) { .defs.split-rows li { display: block; } .defs.split-rows b { width: auto; } }

/* ---------- disclaimer + footer ---------- */

.disclaimer { padding-block: clamp(28px, 4vw, 40px); border-top: 1px solid var(--hair); }
.disclaimer p { font-size: 14px; line-height: 1.65; color: var(--dim); }

.site-footer { border-top: 1px solid var(--hair); padding-block: 36px 44px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
}
.site-footer a:hover { color: var(--text); }
.copyright { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--dim); }
.copyright .brand-mark { width: 28px; height: 28px; border-radius: 7px; }

.panel svg { width: 100%; height: auto; }
.panel figcaption { padding: 4px 14px 14px; font-size: 12px; color: var(--dim); }
