:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --faint: #86868b;
  --hairline: #d2d2d7;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --pos: #1d8a4e;
  --neg: #d0342c;
  --pos-bar: #34c759;
  --neg-bar: #ff453a;
  --radius: 20px;
  --maxw: 940px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
          Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 640px; }

/* ─── nav / footer ───────────────────────────────────────────── */
.nav {
  height: 52px; display: flex; align-items: center;
  border-bottom: 1px solid rgba(0,0,0,.06);
  background: rgba(251,251,253,.8); backdrop-filter: saturate(180%) blur(20px);
  position: sticky; top: 0; z-index: 10;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 19px; letter-spacing: -.02em;
  color: var(--ink);
}
.brand-logo { width: 24px; height: 24px; display: block; flex: none; }
.brand:hover { text-decoration: none; }
.nav-link { font-size: 15px; font-weight: 500; color: var(--muted); }
.nav-link:hover { color: var(--ink); text-decoration: none; }

.foot {
  margin-top: 80px; padding: 36px 24px 56px;
  border-top: 1px solid var(--hairline);
  color: var(--faint); font-size: 12px; text-align: center; line-height: 1.6;
}

/* ─── typography ─────────────────────────────────────────────── */
h1.hero {
  font-size: clamp(34px, 6vw, 56px); font-weight: 600;
  letter-spacing: -.03em; line-height: 1.05; margin: 0 0 18px;
}
.lede {
  font-size: clamp(17px, 2.4vw, 21px); color: var(--muted);
  line-height: 1.5; margin: 0 auto 36px; max-width: 620px;
}
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  color: var(--faint); text-transform: uppercase; margin: 0 0 12px;
}
.section-title {
  font-size: clamp(22px, 3vw, 30px); font-weight: 600;
  letter-spacing: -.02em; margin: 64px 0 24px;
}

/* ─── buttons / inputs ───────────────────────────────────────── */
.btn {
  display: inline-block; background: var(--accent); color: #fff;
  font-size: 17px; font-weight: 500; padding: 14px 30px; border: 0;
  border-radius: 980px; cursor: pointer; transition: background .2s;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn.secondary { background: #e8e8ed; color: var(--ink); }
.btn.secondary:hover { background: #dedee3; }
.btn.block { display: block; width: 100%; text-align: center; }

.handle-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.input-wrap { position: relative; flex: 1; }
.input-wrap .at {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  color: var(--faint); font-size: 17px; pointer-events: none;
}
input[type=text] {
  width: 100%; font-size: 17px; font-family: var(--font);
  padding: 14px 16px 14px 34px; border: 1px solid var(--hairline);
  border-radius: 14px; background: #fff; color: var(--ink); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input[type=text]:focus {
  border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0,113,227,.12);
}

/* ─── cards ──────────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid rgba(0,0,0,.07);
  border-radius: var(--radius); padding: 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

/* ─── landing: how it works ──────────────────────────────────── */
.steps { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; margin-top: 24px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step .num {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.step p { margin: 3px 0 0; color: var(--muted); font-size: 15px; }
.step b { color: var(--ink); font-weight: 600; }

/* ─── preview / profile ──────────────────────────────────────── */
.profile { display: flex; gap: 18px; align-items: center; }
.profile img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.profile .name { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.profile .at { color: var(--faint); font-size: 15px; }
.profile .bio { color: var(--muted); font-size: 14px; margin-top: 6px; }
.facts { display: flex; gap: 28px; margin: 22px 0; flex-wrap: wrap; }
.fact .v { font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.fact .k { font-size: 13px; color: var(--faint); }

/* ─── verdict + hero stats (report) ──────────────────────────── */
.report-hero { text-align: center; padding-top: 24px; padding-bottom: 8px; }
.verdict {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; letter-spacing: .01em;
  padding: 9px 18px; border-radius: 980px; margin-bottom: 26px;
}
.verdict::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.verdict.follow   { background: #e7f6ec; color: var(--pos); }
.verdict.marginal { background: #fbf0da; color: #9a6700; }
.verdict.avoid    { background: #fcebe9; color: var(--neg); }
.verdict.neutral  { background: #f0f0f2; color: var(--muted); }

.headline {
  font-size: clamp(24px, 3.6vw, 36px); font-weight: 600;
  letter-spacing: -.025em; line-height: 1.18; max-width: 740px;
  margin: 0 auto 40px;
}
.headline .pos { color: var(--pos); }
.headline .neg { color: var(--neg); }

.heroes { display: flex; justify-content: center; gap: 56px; flex-wrap: wrap; margin-bottom: 8px; }
.hero-stat { text-align: center; }
.hero-stat .num { font-size: clamp(46px, 8vw, 72px); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.hero-stat .num.pos { color: var(--pos); }
.hero-stat .num.neg { color: var(--neg); }
.hero-stat .lbl { font-size: 15px; color: var(--muted); margin-top: 10px; }
.hero-stat .sub { font-size: 13px; color: var(--faint); margin-top: 2px; }

/* win/lose split */
.split { max-width: 520px; margin: 40px auto 0; }
.split-bar { display: flex; height: 14px; border-radius: 8px; overflow: hidden; background: #eee; }
.split-bar .w { background: var(--pos-bar); }
.split-bar .l { background: #e2e2e7; }
.split-legend { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ─── bars (breakdowns) ──────────────────────────────────────── */
.bars { display: grid; gap: 16px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 76px; align-items: center; gap: 14px; }
.bar-label { font-size: 14px; color: var(--ink); }
.bar-label small { display: block; color: var(--faint); font-size: 12px; }
.bar-track { background: #eef0f2; border-radius: 7px; height: 12px; position: relative; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 7px; }
.bar-fill.pos { background: var(--pos-bar); }
.bar-fill.neg { background: var(--neg-bar); }
.bar-val { text-align: right; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bar-val.pos { color: var(--pos); }
.bar-val.neg { color: var(--neg); }

.grid2 { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; }
.grid2 > * { min-width: 0; }

/* ─── horizon table ──────────────────────────────────────────── */
table.horizons { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.horizons th, table.horizons td { text-align: right; padding: 12px 10px; font-size: 14px; border-bottom: 1px solid var(--hairline); }
table.horizons th { color: var(--faint); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .02em; }
table.horizons td:first-child, table.horizons th:first-child { text-align: left; font-weight: 500; }
table.horizons .pos { color: var(--pos); }
table.horizons .neg { color: var(--neg); }

/* ─── best / worst calls ─────────────────────────────────────── */
.calls { display: flex; flex-direction: column; gap: 12px; }
.call { display: flex; align-items: baseline; gap: 12px; min-width: 0; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.call .sym { font-weight: 600; font-size: 16px; flex: none; min-width: 64px; max-width: 104px; overflow-wrap: anywhere; }
.call .meta { flex: 1; min-width: 0; }
.call .q { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.call .tags { font-size: 12px; color: var(--faint); margin-top: 2px; }
.call .tags .x-link { font-weight: 600; color: var(--accent); white-space: nowrap; }
.call .a { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.call .a.pos { color: var(--pos); }
.call .a.neg { color: var(--neg); }
.call-post { margin-top: 7px; }
.call-post > summary { list-style: none; cursor: pointer; font-size: 0; }
.call-post > summary::-webkit-details-marker { display: none; }
.call-post > summary::before { content: "Full post ▾"; font-size: 12px; color: var(--accent); }
.call-post[open] > summary::before { content: "Hide post ▴"; }
.call-post:not([open]) > .call-post-text { display: none; }
.call-post-text { font-size: 13px; color: var(--ink); line-height: 1.55; white-space: pre-wrap;
  margin-top: 8px; padding: 11px 13px; background: var(--bg); border: 1px solid var(--hairline); border-radius: 10px; }

/* ─── status page ────────────────────────────────────────────── */
.status-wrap { text-align: center; padding-top: 40px; padding-bottom: 40px; }
.progress { height: 8px; background: #e8e8ed; border-radius: 6px; overflow: hidden; margin: 28px 0 16px; }
.progress .fill { height: 100%; background: var(--accent); border-radius: 6px; transition: width .6s ease; }
.spinner {
  width: 22px; height: 22px; border: 2.5px solid #d7d7dc; border-top-color: var(--accent);
  border-radius: 50%; display: inline-block; animation: spin 0.8s linear infinite; vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.center { text-align: center; }
.permalink {
  display: inline-block; margin-top: 14px; font-size: 13px; color: var(--faint);
  background: #f0f0f2; padding: 8px 14px; border-radius: 10px; word-break: break-all;
}

/* ─── gallery (all past analyses) ────────────────────────────── */
.gallery { display: flex; flex-direction: column; gap: 14px; }
.gallery-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; transition: box-shadow .2s, transform .08s;
}
.gallery-row:hover { text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,.08); transform: translateY(-1px); }
.g-handle { font-size: 18px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.g-sum { font-size: 13px; color: var(--faint); margin-top: 2px; }
.g-right { display: flex; align-items: center; gap: 16px; flex: none; }
.gallery-row .verdict { margin-bottom: 0; font-size: 13px; padding: 6px 14px; }
.g-alpha { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 62px; text-align: right; }
.g-alpha.pos { color: var(--pos); }
.g-alpha.neg { color: var(--neg); }
.g-horizons { display: flex; align-items: baseline; gap: 14px; }
.g-hz { text-align: center; min-width: 50px; }
.g-hz-num { display: block; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.g-hz-num.pos { color: var(--pos); }
.g-hz-num.neg { color: var(--neg); }
.g-hz-cap { display: block; font-size: 11px; color: var(--faint); margin-top: 2px; }

/* ─── explore (deep-dive) entry CTA ──────────────────────────── */
.explore-cta {
  text-align: center; margin: 44px auto 8px; max-width: 560px;
  padding: 30px 26px; border: 1px solid var(--hairline);
  border-radius: 20px; background: var(--surface);
}
.explore-cta-text {
  font-size: 15px; color: var(--muted); line-height: 1.5; margin: 0 auto 20px; max-width: 440px;
}
.explore-cta-btn { font-size: 16px; transition: background .2s, transform .08s; }
.explore-cta-btn:hover { transform: translateY(-1px); }

/* ─── misc ───────────────────────────────────────────────────── */
.notice { background: #fbf0da; color: #7a5200; padding: 12px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 24px; }
.error-box { background: #fcebe9; color: var(--neg); padding: 16px 18px; border-radius: 14px; font-size: 15px; }
details { margin-top: 16px; }
summary { cursor: pointer; color: var(--accent); font-size: 14px; }
.disclaimer { font-size: 12px; color: var(--faint); line-height: 1.6; margin-top: 10px; }
.spacer-sm { height: 14px; }
.spacer { height: 28px; }

@media (max-width: 680px) {
  .steps, .grid2 { grid-template-columns: 1fr; }
  .heroes { gap: 32px; }
  .handle-form { flex-direction: column; }
  .bar-row { grid-template-columns: 96px 1fr 64px; gap: 10px; }
  .gallery-row { flex-wrap: wrap; gap: 12px; padding: 18px 20px; }
  .g-right { width: 100%; justify-content: space-between; }
  .card { padding: 20px; }
  table.horizons th, table.horizons td { padding: 11px 8px; }
}
