/* WallStreetsAhead.ai — site styles
   Tokens taken from the Wall Streets Ahead logo canvas:
   deep navy ground, mint accent, Space Grotesk. */

:root {
  --ink:        #0B1220;
  --panel:      #121C30;
  --panel-2:    #16223A;
  --line:       #1E2A42;
  --line-2:     #2A3753;
  --slate:      #33415C;
  --slate-2:    #4A5B7A;

  --text:       #FFFFFF;
  --body:       #C9D4E6;
  --muted:      #9FB0CC;

  --accent:     #2EE6A6;
  --accent-ink: #0E8F63;
  --warn:       #F5B83D;

  --light:      #F4F6FA;
  --white:      #FFFFFF;
  --light-text: #0B1220;
  --light-body: #33415C;
  --light-mute: #5A6780;
  --light-line: #DCE3EE;

  --sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Consolas", "SFMono-Regular", monospace;

  --gutter: 16px;
  --maxw: 1120px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

img, svg { max-width: 100%; }

h1, h2, h3, h4 {
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 16px;
}

h1 { font-size: clamp(38px, 6.4vw, 68px); }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: clamp(19px, 2.2vw, 22px); line-height: 1.25; }

p { margin: 0 0 18px; }

a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(46, 230, 166, 0.35); }
a:hover { color: var(--text); border-bottom-color: var(--text); }

ul, ol { margin: 0 0 18px; padding-left: 22px; }
li { margin-bottom: 10px; }

code, kbd, pre { font-family: var(--mono); }

code {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 0.88em;
  color: var(--text);
  word-break: break-word;
}

pre {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 18px;
}

pre code { background: none; border: 0; padding: 0; font-size: inherit; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- layout ---------- */

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

/* the header is sticky, so anchored sections must not slide under it */
[id] { scroll-margin-top: 88px; }

.section { padding: 84px 0; border-top: 1px solid var(--line); }
.section--tight { padding: 56px 0; }

.section--light {
  background: var(--light);
  color: var(--light-body);
  border-top: 0;
}
.section--light h1, .section--light h2, .section--light h3 { color: var(--light-text); }
.section--light a { color: var(--accent-ink); border-bottom-color: rgba(14, 143, 99, 0.4); }
.section--light a:hover { color: var(--light-text); border-bottom-color: var(--light-text); }
.section--light .eyebrow { color: var(--light-mute); }
.section--light code { background: rgba(11, 18, 32, 0.05); border-color: var(--light-line); color: var(--light-text); }

.eyebrow {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}

.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--body); max-width: 62ch; }
.section--light .lead { color: var(--light-body); }

.measure { max-width: 68ch; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--ink);
  padding: 12px 18px;
  font-weight: 700;
  z-index: 100;
  border: 0;
}
.skip-link:focus { left: 0; }

/* ---------- logo ---------- */

.logo { display: inline-flex; align-items: center; gap: 14px; border: 0; }
.logo:hover { border: 0; }
.logo svg { flex: 0 0 auto; display: block; }

.logo-words { display: flex; flex-direction: column; gap: 1px; }
.logo-words .top {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--muted);
}
.logo-words .bottom {
  font-size: 25px;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--text);
}
.logo-words .dot { color: var(--accent); }

.logo--lg .logo-words .top { font-size: 14px; }
.logo--lg .logo-words .bottom { font-size: clamp(38px, 5vw, 54px); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  border: 0;
  padding: 6px 0;
}
.nav a:hover { color: var(--text); }

/* the nav's call to action is a button first and a nav link second */
.nav a.btn--primary { color: #06211A; }
.nav a.btn--primary:hover { color: #06211A; }
.nav a.btn--ghost { color: var(--text); }

@media (max-width: 880px) {
  .nav a:not(.btn) { display: none; }
  .site-header .wrap { min-height: 64px; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--primary { background: var(--accent); color: #06211A; border-color: var(--accent); }
.btn--primary:hover { background: #4DF0B6; color: #06211A; border-color: #4DF0B6; }

.btn--ghost { background: transparent; color: var(--text); border-color: var(--slate); }
.btn--ghost:hover { border-color: var(--text); color: var(--text); background: rgba(255, 255, 255, 0.04); }

.section--light .btn--ghost { color: var(--light-text); border-color: #C3CBD9; }
.section--light .btn--ghost:hover { border-color: var(--light-text); background: rgba(11, 18, 32, 0.04); }

.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 72px;
  background:
    radial-gradient(900px 420px at 78% -12%, rgba(46, 230, 166, 0.10), transparent 70%),
    var(--ink);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 56px;
  align-items: center;
}

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 48px 0 56px; }
}

.hero h1 { margin-bottom: 20px; }
/* General emphasis, not just in the headline. On light sections it switches to
   the darker green, since mint on near-white fails contrast. */
.accent { color: var(--accent); }
.section--light .accent { color: var(--accent-ink); }

.hero .lead { margin-bottom: 28px; }

.hero-art {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 15px;
}

.chat-line { display: flex; gap: 12px; align-items: flex-start; }

.chat-who {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  width: 52px;
  padding-top: 13px;
}

.chat-what {
  flex: 1 1 auto;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--body);
}

.chat-line--you .chat-what { color: var(--text); border-color: var(--line-2); }
.chat-what strong { color: var(--text); }
.chat-what .ok { color: var(--accent); }
.chat-what p { margin: 0 0 8px; }
.chat-what p:last-child { margin: 0; }

.download-meta {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

/* ---------- disclaimer band ---------- */

.band-disclaimer {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.band-disclaimer .wrap {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.band-disclaimer svg { flex: 0 0 auto; margin-top: 3px; }

.band-disclaimer p {
  margin: 0;
  font-size: 15px;
  color: var(--body);
  max-width: 92ch;
}

.band-disclaimer strong { color: var(--warn); }

/* ---------- cards ----------
   Not used by any current page: the card and step sections were cut. Kept as
   generic layout blocks for when a section needs them again; the repository
   holds the history either way. */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }

.section--light .card { background: var(--white); border-color: var(--light-line); }

.card-mark { margin-bottom: 16px; color: var(--accent); }
.section--light .card-mark { color: var(--accent-ink); }

/* ---------- steps ---------- */

.steps { counter-reset: step; display: grid; gap: 18px; }

.step {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(46, 230, 166, 0.12);
  border: 1px solid rgba(46, 230, 166, 0.4);
  color: var(--accent);
  font-weight: 700;
  font-size: 18px;
}

.step h3 { margin-bottom: 6px; }
.step p:last-child { margin-bottom: 0; }

.section--light .step { background: var(--white); border-color: var(--light-line); }
.section--light .step::before {
  background: rgba(14, 143, 99, 0.1);
  border-color: rgba(14, 143, 99, 0.35);
  color: var(--accent-ink);
}

@media (max-width: 520px) {
  .step { grid-template-columns: 1fr; gap: 14px; padding: 20px; }
}

/* ---------- table ---------- */

.table-scroll { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 460px;
}

th, td {
  text-align: left;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section--light th { color: var(--light-text); }
.section--light th, .section--light td { border-bottom-color: var(--light-line); }

/* ---------- download panel ---------- */

.download-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(22px, 4vw, 34px);
}

.hash {
  display: block;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
  word-break: break-all;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 0 0 14px;
}

.copy-ok { color: var(--accent); font-size: 14px; font-weight: 500; }

/* ---------- ask / answer examples ---------- */

.qa {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 20px;
}

.qa-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.qa-job {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.qa-q {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
}

.qa-a {
  margin: 0;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--body);
}

.qa-a p { margin: 0 0 9px; }
.qa-a p:last-child { margin: 0; }
.qa-a strong { color: var(--text); }
.qa-a .up { color: var(--accent); font-variant-numeric: tabular-nums; }
.qa-a .down { color: #FF9D7A; font-variant-numeric: tabular-nums; }
.qa-a .tick { color: var(--text); font-weight: 700; }

.qa-note {
  font-size: 14.5px;
  color: var(--muted);
  max-width: 78ch;
  margin: 26px 0 0;
}

/* the same cards on a light section */
.section--light .qa-card { background: var(--white); border-color: var(--light-line); }
.section--light .qa-job { color: var(--accent-ink); }
.section--light .qa-q { color: var(--light-text); border-left-color: var(--accent-ink); }
.section--light .qa-a {
  background: var(--light);
  border-color: var(--light-line);
  color: var(--light-body);
}
.section--light .qa-a strong,
.section--light .qa-a .tick { color: var(--light-text); }
.section--light .qa-a .up { color: var(--accent-ink); }
.section--light .qa-a .down { color: #B23A1E; }
.section--light .qa-note { color: var(--light-mute); }

/* ---------- faq ---------- */

.faq { display: grid; gap: 12px; }

details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 22px;
}

details[open] { padding-bottom: 6px; }

summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-weight: 700;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  color: var(--accent);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  flex: 0 0 auto;
}

details[open] summary::after { content: "\2212"; }

details > *:not(summary) { font-size: 16px; }

/* The FAQ keeps its dark cards inside a light section, so everything inside
   them has to stay light as well. Without this the section's dark body colour
   lands on a dark card and the answers cannot be read. */
.section--light details > *:not(summary) { color: var(--body); }
.section--light details a { color: var(--accent); border-bottom-color: rgba(46, 230, 166, 0.35); }
.section--light details a:hover { color: var(--text); border-bottom-color: var(--text); }
.section--light details code {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
  color: var(--text);
}

/* ---------- legal pages ---------- */

.legal { padding: 48px 0 84px; }
.legal h2 { font-size: clamp(22px, 2.6vw, 27px); margin-top: 44px; }
.legal h2:first-of-type { margin-top: 32px; }
.legal h3 { margin-top: 26px; }
.legal p, .legal li { max-width: 72ch; }
.legal .updated { font-size: 15px; color: var(--muted); }

.callout {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--warn);
  border-radius: 10px;
  padding: 20px 22px;
  margin: 0 0 28px;
  max-width: 72ch;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 56px;
  background: var(--ink);
  font-size: 15px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: var(--muted); border: 0; }
.footer-links a:hover { color: var(--text); }

.footer-small {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
  max-width: 94ch;
}
.footer-small p { margin-bottom: 10px; }
.footer-small p:last-child { margin-bottom: 0; }
