/* Stock Analysis Tool website: one stylesheet for every page */
:root {
  --bg: #0a0c0b; --bg2: #0d100f; --panel: #111514; --panel2: #161b19; --line: #222826; --line2: #303834;
  --text: #f1f4f1; --muted: #98a39c; --dim: #6c7770;
  --accent: #c8f7a6; --accent2: #a8e57e; --ink: #0d1509;
  --bad: #ff8a80; --warn: #f3c969;
  --radius: 14px; --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(10, 12, 11, .86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 800; letter-spacing: .14em; font-size: 14px;
  white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; padding: 4px; border: 1px solid var(--accent); border-radius: 9px; background: #f4f7f3; }
.brand i { color: var(--accent); font-style: normal; }
.nav { display: flex; gap: 4px; margin: 0 auto; }
.nav a { color: var(--muted); font-size: 14.5px; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.nav a:hover, .nav a.on { color: var(--text); text-decoration: none; }
.nav a.on { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-actions .link { color: var(--text); font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line2); color: var(--text); border-radius: 9px;
  width: 42px; height: 40px; font-size: 18px; cursor: pointer; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 22px; border-radius: 10px;
  font: inherit; font-weight: 650; font-size: 15.5px; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, background .12s ease, border-color .12s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }
.btn .arrow { font-size: 13px; }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: #d6fbbb; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line2); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-danger { background: transparent; color: var(--bad); border-color: rgba(255, 138, 128, .4); }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 78px 0 64px; overflow: hidden;
  background: radial-gradient(900px 480px at 85% 0%, rgba(200, 247, 166, .07), transparent 60%), var(--bg); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12.5px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 { margin: 26px 0 26px; font-size: clamp(42px, 6.6vw, 80px); font-weight: 700; letter-spacing: -0.035em; }
.hero h1 span { display: block; }
.hero .lead { max-width: 640px; color: var(--muted); font-size: 18px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 44px; }
.cta-row .btn { padding: 16px 24px; }
.ticks { display: flex; flex-wrap: wrap; gap: 10px 30px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 14.5px; }
.ticks li::before { content: "◇"; color: var(--warn); margin-right: 9px; font-size: 13px; }

/* ---------- sections ---------- */
section { padding: 84px 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { margin: 18px 0 16px; font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.band { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- dashboard card ---------- */
.dash { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.dash-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 26px; font-size: 12.5px;
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.dash-top .tag { color: var(--muted); font-weight: 600; display: inline-flex; align-items: center; gap: 10px; }
.dash-top .tag::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.dash-top .eyebrow { color: var(--text); letter-spacing: .14em; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 26px; }
.kicker { color: var(--muted); font-size: 14px; }
.big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px; margin: 6px 0 22px; }
.big b { font-size: clamp(38px, 4.6vw, 54px); font-weight: 750; letter-spacing: -0.03em; line-height: 1; }
.big small { color: var(--accent); font-size: 14px; font-weight: 600; }
.chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; color: var(--muted);
  font-size: 13.5px; }
.legend { display: flex; gap: 18px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.legend li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.legend li + li i { background: #5d6a63; }
.chart { margin-top: 12px; }
.chart svg { width: 100%; height: auto; display: block; }
.side { display: grid; gap: 18px; align-content: start; }
.mini { background: var(--panel2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.mini.glow { border-color: rgba(200, 247, 166, .35); background: linear-gradient(160deg, rgba(200, 247, 166, .09), var(--panel2) 55%); }
.mini-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; }
.mini .value { font-size: 34px; font-weight: 750; letter-spacing: -0.02em; margin: 12px 0 6px; line-height: 1; }
.mini .value small { font-size: 16px; color: var(--muted); font-weight: 600; }
.mini .note { color: var(--accent); font-size: 13.5px; margin: 0; }
.donut { position: relative; width: 150px; margin: 14px auto 16px; }
.donut svg { display: block; transform: rotate(-90deg); }
.donut div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut b { font-size: 30px; line-height: 1; }
.donut span { font-size: 10.5px; letter-spacing: .14em; color: var(--muted); margin-top: 4px; }
.rows { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.rows li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; }
.rows i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 9px; }
.dash-foot { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12.5px; }

/* ---------- features ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { font-size: 19px; margin: 16px 0 10px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-content: center; border: 1px solid var(--line2);
  color: var(--accent); font-size: 17px; background: var(--panel2); }
.steps { counter-reset: step; }
.steps .card::before { counter-increment: step; content: "0" counter(step); color: var(--accent); font-weight: 700; font-size: 13px;
  letter-spacing: .16em; }

/* ---------- mock screener ---------- */
.shot { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.shot-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--dim);
  font-size: 12.5px; }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line2); }
.shot-bar span { margin-left: auto; letter-spacing: .12em; text-transform: uppercase; }
.table-scroll { overflow-x: auto; }
table.screen { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
table.screen th { text-align: left; color: var(--dim); font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  padding: 14px 16px; border-bottom: 1px solid var(--line); }
table.screen td { padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
table.screen tr:last-child td { border-bottom: 0; }
table.screen td b { color: var(--text); font-weight: 600; }
table.screen .num { text-align: right; font-variant-numeric: tabular-nums; }
.score { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.score i { height: 6px; border-radius: 3px; background: var(--accent); display: block; }
.score.mid i { background: #7fb0ff; }
.score.low i { background: var(--bad); }
.pill { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; border: 1px solid var(--line2); color: var(--muted); }
.pill.warn { color: var(--warn); border-color: rgba(243, 201, 105, .4); }

/* ---------- numbers ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.stat b { display: block; font-size: clamp(32px, 3.6vw, 46px); font-weight: 750; letter-spacing: -0.03em; line-height: 1.05; }
.stat span { color: var(--muted); font-size: 14.5px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.two .card h3 { margin-top: 0; }
.fine { color: var(--dim); font-size: 13px; margin-top: 22px; }

/* ---------- pricing ---------- */
.price-card { max-width: 560px; background: var(--panel); border: 1px solid rgba(200, 247, 166, .35); border-radius: 20px; padding: 34px;
  background-image: linear-gradient(160deg, rgba(200, 247, 166, .08), transparent 50%); }
.price-card h3 { font-size: 24px; }
.price { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 6px; }
.price b { font-size: 52px; font-weight: 750; letter-spacing: -0.03em; line-height: 1; }
.price span { color: var(--muted); }
.checks { margin: 22px 0 28px; padding: 0; list-style: none; color: var(--muted); }
.checks li { padding: 7px 0 7px 28px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.form-msg { margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-size: 14.5px; border: 1px solid rgba(255, 138, 128, .4);
  color: var(--bad); background: rgba(255, 138, 128, .07); }
.form-msg.ok { border-color: rgba(200, 247, 166, .4); color: var(--accent); background: rgba(200, 247, 166, .07); }
.form-msg.info { border-color: var(--line2); color: var(--muted); background: var(--panel2); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between;
  gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 18px; max-width: 700px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 34px; color: var(--muted); font-size: 14px; }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { color: var(--muted); }
.disclaimer { margin: 26px 0 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12.5px; max-width: 900px; }

/* ---------- sign-in pages ---------- */
.auth { min-height: calc(100vh - 68px - 190px); display: grid; place-items: center; padding: 56px 20px; }
.auth-card { width: 100%; max-width: 440px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 34px; }
.auth-card h1 { font-size: 28px; margin: 14px 0 8px; }
.auth-card > p { color: var(--muted); font-size: 15px; }
.field { margin: 16px 0; }
.field label { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 7px; }
.field input { width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg2); color: var(--text);
  font: inherit; }
.field input:focus { outline: none; border-color: var(--accent); }
.btn-google { background: #fff; color: #1f1f1f; border-color: #dadce0; margin-top: 18px; }
.btn-google:hover { background: #f3f5f3; }
.or { display: flex; align-items: center; gap: 14px; margin: 18px 0 2px; color: var(--dim); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-links { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-top: 18px; }
.auth-note { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* ---------- account ---------- */
.page { padding: 56px 0 84px; }
.page h1 { font-size: clamp(30px, 3.6vw, 42px); margin: 14px 0 6px; }
.stack { display: grid; gap: 18px; margin-top: 30px; }
.card h2 { font-size: 20px; margin-bottom: 14px; letter-spacing: -0.01em; }
table.plain { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
table.plain th { text-align: left; color: var(--dim); font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
table.plain td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.key { font-family: Consolas, "SF Mono", Menlo, monospace; letter-spacing: .04em; color: var(--text); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-size: 13.5px; cursor: pointer; margin-left: 10px; }
.linkbtn:hover { text-decoration: underline; }
.linkbtn.danger { color: var(--bad); }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.inline-form .field { margin: 0; flex: 1 1 240px; }
dialog { background: var(--panel); color: var(--text); border: 1px solid var(--line2); border-radius: 16px; padding: 28px; max-width: 440px;
  width: calc(100% - 40px); }
dialog::backdrop { background: rgba(0, 0, 0, .6); }
dialog h2 { font-size: 20px; margin-bottom: 10px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* ---------- documentation ---------- */
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding: 48px 0 90px; }
.toc { position: sticky; top: 92px; align-self: start; font-size: 14.5px; max-height: calc(100vh - 110px); overflow: auto; }
.toc b { display: block; color: var(--dim); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 10px; }
.toc a { display: block; color: var(--muted); padding: 6px 0 6px 14px; border-left: 1px solid var(--line); }
.toc a:hover, .toc a.on { color: var(--accent); border-left-color: var(--accent); text-decoration: none; }
.doc h1 { font-size: clamp(32px, 4vw, 46px); margin: 14px 0 12px; }
.doc h2 { font-size: 27px; margin: 54px 0 14px; padding-top: 26px; border-top: 1px solid var(--line); }
.doc h3 { font-size: 18.5px; margin: 28px 0 8px; letter-spacing: -0.01em; }
.doc p, .doc li { color: #c3cbc5; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 1em; }
.doc li { margin: 5px 0; }
.doc code { background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 13.5px;
  font-family: Consolas, "SF Mono", Menlo, monospace; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0 22px; font-size: 14.5px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--dim); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.doc td { color: #c3cbc5; }
.callout { border: 1px solid var(--line2); border-left: 3px solid var(--accent); background: var(--panel); border-radius: 10px;
  padding: 14px 18px; margin: 18px 0; }
.callout.warn { border-left-color: var(--warn); }
.callout p { margin: 0; }
.shot-slot { border: 1px dashed var(--line2); border-radius: 12px; padding: 34px 20px; text-align: center; color: var(--dim); font-size: 14px;
  margin: 16px 0 22px; background: var(--bg2); }

/* ---------- small screens ---------- */
@media (max-width: 980px) {
  .dash-grid, .docs { grid-template-columns: minmax(0, 1fr); }
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
  .toc { position: static; max-height: none; display: flex; flex-wrap: wrap; gap: 0 18px; }
  .toc b { width: 100%; }
  .toc a { border-left: 0; padding-left: 0; }
}
@media (max-width: 1080px) {
  .menu-btn { display: block; }
  .nav, .header-actions { display: none; }
  .site-header.open .wrap { height: auto; flex-wrap: wrap; padding-top: 14px; padding-bottom: 18px; gap: 12px; }
  .site-header.open .nav { display: flex; flex-direction: column; width: 100%; margin: 0; order: 3; }
  .site-header.open .header-actions { display: flex; width: 100%; order: 4; justify-content: space-between; align-items: center; }
}
@media (max-width: 820px) {
  .wrap { padding: 0 16px; }
  .brand span { letter-spacing: .1em; font-size: 12.5px; }
  section { padding: 60px 0; }
  .hero { padding: 52px 0 46px; }
  .grid3, .two { grid-template-columns: minmax(0, 1fr); }
  .dash { padding: 18px; }
  .cta-row .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* ---------- contact form, newsletter sign-up ---------- */
.field select, .field textarea { width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg2);
  color: var(--text); font: inherit; }
.field textarea { resize: vertical; }
.field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0; }
.news { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 40px; align-items: center; background: var(--panel);
  border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.news h2 { font-size: 26px; margin-bottom: 8px; }
.news p { margin: 0; }
.news-form { display: flex; gap: 10px; position: relative; }
.news-form input[type="email"] { flex: 1; min-width: 0; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg2);
  color: var(--text); font: inherit; }
.news-form input[type="email"]:focus { outline: none; border-color: var(--accent); }
.news .form-msg { grid-column: 1 / -1; margin-top: 0; }
@media (max-width: 820px) { .news { grid-template-columns: minmax(0, 1fr); padding: 22px; } .news-form { flex-wrap: wrap; } .news-form .btn { flex: 1 1 100%; } }
