/* KB Capital: About page. Self-contained; the Predictions page keeps using style.css. */

:root {
  --bg: #15202B;
  --surface: #1E2A36;
  --stripe-a: #1B2733;
  --stripe-b: #22303E;
  --border: #26333F;
  --text: #E6EDF3;
  --text-2: #8B98A5;
  --muted: #6B7A88;
  --blue: #2E7CF6;
  --blue-hover: #5B9BFF;
  --green: #3DB468;
  --green-tint: #1C3329;
  --on-accent: #FFFFFF;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Open Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--blue-hover); outline-offset: 2px; border-radius: 6px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
section[id] { scroll-margin-top: 72px; }

/* typography */
h1 { font-size: clamp(38px, 5.2vw, 68px); font-weight: 700; line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
h3 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.body { color: var(--text-2); font-size: 18px; line-height: 1.65; text-wrap: pretty; }
.eyebrow { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--blue); margin-bottom: 20px; }

/* buttons */
.btn { display: inline-block; font-size: 15px; font-weight: 600; text-decoration: none; padding: 12px 20px; border-radius: 8px; color: var(--on-accent); background: var(--blue); transition: background .15s; }
.btn:hover { background: var(--blue-hover); }
.btn-green { background: var(--green); }
.btn-green:hover { background: #4cc779; }

/* top bar: same tabs as the Predictions and Calendar pages (sizes in rem to match style.css) */
html { font-size: 16px; }
@media (min-width: 1600px) { html { font-size: 18px; } }
@media (min-width: 2200px) { html { font-size: 22px; } }
@media (min-width: 3000px) { html { font-size: 30px; } }
.topbar { background: var(--bg); }
.topbar-in { max-width: 65rem; margin: 0 auto; padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) 0 max(1rem, env(safe-area-inset-left)); }
@media (min-width: 1600px) { .topbar-in { max-width: 72rem; } }
@media (min-width: 2200px) { .topbar-in { max-width: 78rem; } }
.topnav { border-bottom: 1px solid #2c3f4f; margin-bottom: 1rem; display: flex; align-items: flex-end; gap: 1.5rem; font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; line-height: 1.45; }
.topnav a { font-size: .9375rem; font-weight: 600; color: #7f8c9b; padding: .625rem 0 .875rem; position: relative; text-decoration: none; }
.topnav a:hover, .topnav a.on { color: #fff; }
.topnav a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: #fff; }
@media (max-width: 520px) { .topbar-in { padding-top: max(.5rem, env(safe-area-inset-top)); } .topnav { margin-bottom: .75rem; } }

/* image placeholders */
.ph { position: relative; border: 1px solid var(--border); background: repeating-linear-gradient(135deg, var(--stripe-a) 0 10px, var(--stripe-b) 10px 20px); }
.ph span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; font-family: var(--mono); font-size: 12px; color: var(--muted); background: var(--bg); border: 1px solid var(--border); padding: 5px 10px; border-radius: 6px; }

/* hero */
.hero { padding: 96px 0 112px; }
.hero-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--green); background: var(--green-tint); padding: 6px 12px; border-radius: 999px; margin-bottom: 24px; }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: block; }
.hero h1 { margin-bottom: 24px; }
.hero .body { max-width: 520px; }
.ph-hero { aspect-ratio: 1 / 1; border-radius: 16px; }

/* stat cards */
.stats { padding-bottom: 112px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.stat .label { font-size: 14px; color: var(--text-2); }
.stat .value { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin: 6px 0 18px; }
.bar { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--blue); border-radius: 3px; }
.fineprint { font-size: 13px; color: var(--muted); line-height: 1.55; margin-top: 20px; max-width: 880px; }
.bar .w25 { width: 25%; }
.bar .w40 { width: 40%; }
.bar .w75 { width: 75%; }

/* what we do */
.block { padding: 96px 0; border-top: 1px solid var(--border); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 24px; }
.tabs button { font-size: 14px; font-weight: 600; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-2); transition: color .15s, border-color .15s; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: var(--on-accent); }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; align-items: center; }
.panel[hidden] { display: none; }
.panel h3 { margin-bottom: 16px; }
.panel .body { font-size: 17px; }
.ph-panel { aspect-ratio: 16 / 10; border-radius: 12px; }

/* faq */
.faq-list { max-width: 880px; margin-top: 40px; display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; font-size: 16px; font-weight: 600; padding: 20px 24px; }
.faq-q::after { content: "+"; color: var(--blue); font-size: 22px; font-weight: 400; line-height: 1; flex: none; }
.faq-q[aria-expanded="true"]::after { content: "\2212"; }
.faq-a { padding: 0 24px 22px; font-size: 15px; color: var(--text-2); line-height: 1.65; }
.faq-a[hidden] { display: none; }

/* contact */
.contact { border-top: 1px solid var(--border); padding: 112px 0; text-align: center; }
.contact h2 { font-size: clamp(30px, 4vw, 52px); max-width: 820px; margin: 0 auto 20px; }
.contact .note { color: var(--text-2); font-size: 15px; margin-bottom: 32px; }
.contact .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 48px; font-size: 13px; color: var(--muted); line-height: 1.6; }

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .hero { padding: 56px 0 72px; }
  .stats { padding-bottom: 72px; }
  .block { padding: 64px 0; }
  .contact { padding: 72px 0; }
  .panel { padding: 24px; gap: 24px; }
  .hero-in { grid-template-columns: 1fr; gap: 40px; }
}

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