/* Fault Current & SCCR Label: marketing site
   Tokens from /Volumes/Mac OS/new_apps/sccr_apps
   (02_fault_current.md, assets_gen/scripts/lib/brand.mjs, src/index.css).
   Shared skeleton: sites/_shared/design-notes.md + _shared/css/site.css structure.
   Do not reuse hydronic cyan/orange, box yellow, tile terracotta, drywall kraft,
   or laneo / memvi / chiply / mockinterview palettes. */

:root {
  color-scheme: dark;
  /* Dark = app default [data-theme='dark'] / brand.mjs field */
  --bg: #0d1117;
  --bg-elev: #161b22;
  --surface: #161b22;
  --surface-2: #1f2630;
  --fg: #e6edf3;
  --body: #e6edf3;
  --muted: #8b97a6;
  --brand: #ff5a36;
  --brand-ink: #ff7354;
  --accent: #ff5a36;
  --accent-dim: #1f2630;
  --line: #2d3440;
  --table-line: #3d4654;
  --ok: #3fb950;
  --warn: #d29922;
  --fail: #f85149;
  --danger: #f85149;
  --on-brand: #0b0f14;
  --ink-on-accent: #0b0f14;
  --radius: 12px;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  /* App uses Inter; field-tool sans, not editorial serif */
  --font: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    /* Light = app [data-theme='sun'] */
    --bg: #ffffff;
    --bg-elev: #f2f4f7;
    --surface: #f2f4f7;
    --surface-2: #e4e7ec;
    --fg: #0b0f14;
    --body: #0b0f14;
    --muted: #475467;
    --brand: #ff5a36;
    --brand-ink: #cc482b;
    --accent: #ff5a36;
    --accent-dim: #e4e7ec;
    --line: #d0d5dd;
    --table-line: #c5cad3;
    --ok: #067647;
    --warn: #b54708;
    --fail: #b42318;
    --danger: #b42318;
    --on-brand: #ffffff;
    --ink-on-accent: #ffffff;
    --shadow: 0 10px 28px rgba(11, 15, 20, 0.08);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1100px 480px at 8% -10%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 58%),
    radial-gradient(900px 420px at 92% 0%, color-mix(in srgb, var(--muted) 12%, transparent), transparent 55%),
    var(--bg);
  color: var(--fg);
  font: 17px/1.65 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-ink); }
a:hover { color: var(--brand); }

.wrap { max-width: 980px; margin: 0 auto; padding: 24px 18px 72px; }

.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 8px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 28px;
}

/* Exact header anchors per design-notes / product-routing: iOS app · Web · Android */
.product-nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; }
.product-nav a { font-weight: 600; color: var(--fg); text-decoration: none; }
.product-nav a:hover { color: var(--brand-ink); }
.product-nav a[aria-current="page"] { color: var(--brand); }
.product-chooser { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }

.brand {
  font-family: var(--font); font-size: 28px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--fg); text-decoration: none;
}
.brand span { color: var(--brand); }
.nav { display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; font-weight: 600; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--fg); }

.hero {
  display: grid; gap: 28px; align-items: center;
  grid-template-columns: 1.15fr 0.85fr; margin: 12px 0 40px;
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .brand { font-size: 24px; }
}

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--brand-ink); margin-bottom: 10px;
}
h1 {
  font-family: var(--font); font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12; letter-spacing: -0.03em; margin: 0 0 14px; font-weight: 700;
}
h2 {
  font-family: var(--font); font-size: 1.55rem; line-height: 1.25;
  letter-spacing: -0.02em; margin: 36px 0 10px; font-weight: 700;
}
h3 { font-size: 1.05rem; margin: 22px 0 6px; font-weight: 650; }
.lead { font-size: 1.12rem; color: var(--muted); margin: 0 0 20px; max-width: 42rem; }
.muted { color: var(--muted); font-size: 0.95rem; }
p, li { color: var(--body); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 12px 18px; font-weight: 700; text-decoration: none;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-ink); color: var(--on-brand); }
.btn-secondary {
  background: var(--bg-elev); color: var(--fg); border-color: var(--line); box-shadow: var(--shadow);
}
.btn-secondary:hover { border-color: var(--brand); }

.hero-media, .card, .callout, .quiz-card {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero-media { overflow: hidden; aspect-ratio: 4/3; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 18px 0; }
.card { padding: 18px; }
.card h3 { margin-top: 0; font-family: var(--font); }

.callout {
  padding: 18px 20px; margin: 24px 0; border-left: 4px solid var(--brand);
}
.callout.fail-rail { border-left-color: var(--fail); }
.callout.ok-rail { border-left-color: var(--ok); }

.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand-ink); }

.prose p { margin: 0 0 14px; max-width: 46rem; }
.prose ul, .prose ol { padding-left: 1.2rem; margin: 0 0 16px; max-width: 46rem; }
.prose li { margin: 0 0 8px; }

.table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; background: var(--bg-elev); }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); }

.quiz-card { padding: 22px; max-width: 640px; }
.quiz-options { display: grid; gap: 10px; margin: 16px 0; }
.quiz-options button, .quiz-options a.option, .option {
  display: block; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); color: var(--fg); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
}
.quiz-options button:hover, .quiz-options a.option:hover, .option:hover { border-color: var(--brand); }

.site-footer {
  margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line);
  display: grid; gap: 10px; color: var(--muted); font-size: 14px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--fg); }

.tag {
  display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 8px;
  border-radius: 999px; background: color-mix(in srgb, var(--brand) 18%, transparent); color: var(--brand-ink);
}
.tag.ok { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.tag.fail { background: color-mix(in srgb, var(--fail) 18%, transparent); color: var(--fail); }
.stat-row { display: flex; flex-wrap: wrap; gap: 18px; margin: 18px 0; }
.stat { min-width: 120px; }
.stat strong { display: block; font-family: var(--font); font-size: 1.6rem; line-height: 1.1; }
.related { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.related a { display: block; margin: 6px 0; }
.related h2 { margin-top: 0; }

.nums, .num { font-variant-numeric: tabular-nums; }
