/* ComputePrep site chrome — the shared shell for every STATIC page (about, how-to-play,
   drill-types, faq, legal). The PWA itself is Tailwind; these pages are hand-written HTML
   that must render with zero JS and zero build step, so the chrome lives here instead.

   Deliberately ONE stylesheet for chrome AND content: Deduce's static pages each carry a
   duplicated <style> block, which is how they drifted apart. Here a page ships <head> meta
   + a link to this file and nothing else, so a typography change lands everywhere at once.

   Palette mirrors tailwind.config.js exactly (brand = the icon gradient's two stops,
   #F97316 → #C2410C; ink = the warm stone ramp). Warm orange is the family rule: cool =
   reasoning (Deduce), warm = speed (ComputePrep). */

:root {
  --brand: #C2410C;
  --brand-mid: #EA580C;
  --brand-bright: #F97316;
  --brand-tint: #FFF7ED;
  --brand-line: #FED7AA;
  --ink: #1C1917;
  --ink-soft: #44403C;
  --muted: #78716C;
  --line: #E7E5E4;
  --bg: #FAFAF9;
  --card: #FFFFFF;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

/* Numerals are the product. Anything that shows a figure, a time limit or a worked step
   gets the same tabular monospace the drill screen uses (Drill.jsx font-drill). */
.num, .drill, table td, table th { font-variant-numeric: tabular-nums; }
.num, .drill { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; font-weight: 700; }

a { color: var(--brand); }
a:hover { color: var(--brand-mid); }

/* ── Header ──────────────────────────────────────────────────────────────── */

header.site {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

header.site .site-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

header.site .brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
}

header.site .brand img { width: 30px; height: 30px; border-radius: 8px; display: block; }

.wordmark {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.wordmark .wm-accent { color: var(--brand); }
.wordmark .tagline {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-right { display: flex; align-items: center; gap: 6px; }

nav#site-nav a {
  margin-left: 15px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
}
nav#site-nav a:hover { color: var(--brand); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 6px 8px;
  color: var(--ink-soft);
  cursor: pointer;
}

/* The app-shell breakpoint: on a phone the links collapse behind the hamburger, so the
   header never wraps into two lines above the content. */
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  nav#site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 6px 20px 14px;
  }
  header.site.nav-open nav#site-nav { display: block; }
  nav#site-nav a { display: block; margin: 0; padding: 9px 0; font-size: 15px; border-top: 1px solid var(--line); }
}

/* ── Content ─────────────────────────────────────────────────────────────── */

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 30px 20px 64px;
}

h1 { font-size: 31px; line-height: 1.18; letter-spacing: -0.025em; margin: 6px 0 14px; font-weight: 800; }
h2 { font-size: 21px; line-height: 1.3; letter-spacing: -0.015em; margin: 34px 0 8px; font-weight: 800; }
h3 { font-size: 16.5px; margin: 22px 0 6px; font-weight: 700; }

.lede { font-size: 18px; color: var(--ink-soft); }
.muted { color: var(--muted); font-size: 14px; }
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0;
}

ul, ol { padding-left: 20px; }
li { margin: 6px 0; }

/* The answer card — used by FAQ and by any "question as a heading" block. Leading with
   the direct answer in the first sentence is deliberate: it's what an AI answer engine
   lifts, and it's what a hurried aspirant reads. */
.qa {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 17px;
  margin: 12px 0;
}
.qa h2, .qa h3 { font-size: 17px; margin: 0 0 5px; }
.qa p { margin: 0 0 8px; color: var(--ink-soft); }
.qa p:last-child { margin-bottom: 0; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 14px 0;
}

.note {
  background: var(--brand-tint);
  border: 1px solid var(--brand-line);
  border-radius: 14px;
  padding: 14px 17px;
  margin: 16px 0;
}
.note p:first-child { margin-top: 0; }
.note p:last-child { margin-bottom: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 14.5px;
  display: block;
  overflow-x: auto;
}
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; }
tbody tr:hover { background: var(--brand-tint); }

.pill {
  display: inline-block;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0 4px 6px 0;
}
.pill.vedic { border-color: var(--brand-line); background: var(--brand-tint); color: var(--brand); }

.cta {
  display: inline-block;
  margin: 22px 0 6px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(194, 65, 12, 0.24);
}
.cta:hover { background: var(--brand-mid); color: #fff; }

/* The family bridge — the cross-promotion the 2026-07-30 separate-products decision made
   mandatory. Styled as a distinct block on every page so it reads as "our other product",
   never as an ad. */
.family {
  border: 1px dashed var(--brand-line);
  background: #fff;
  border-radius: 14px;
  padding: 14px 17px;
  margin: 30px 0 0;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.family strong { color: var(--ink); }

/* ── Footer ──────────────────────────────────────────────────────────────── */

footer.site {
  background: #fff;
  border-top: 1px solid var(--line);
  margin-top: 30px;
}

footer.site .site-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 26px 20px 34px;
}

.foot-group { margin-bottom: 16px; }
.foot-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot-links a { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink-soft); }
.foot-links a:hover { color: var(--brand); }

.foot-copy { font-size: 13px; color: var(--muted); margin: 18px 0 2px; }
.foot-company { font-size: 12.5px; color: var(--muted); margin: 0; }
