/* ==========================================================================
   Bobert site template
   Shared by the parent home page (/), Digital Programs (/programs) and any
   division or program page built after them.

   HOW TO THEME A PAGE (e.g. a new school):
   Override the --brand tokens in a small <style> block on that page:

     :root {
       --brand:      #0B2A5B;   school primary color
       --brand-2:    #C8A24A;   school secondary color
       --brand-ink:  #FFFFFF;   text that sits ON --brand (white or near-black)
     }

   Each Bobert product has its OWN look (Decision 029, amended). This file is
   shared plumbing (layout, spacing, components, mobile). A product picks its
   look with a <body> class:
     .theme-bobert       near-black + red, Bobert AI company pages and Field Intelligence
     .theme-programhome  light, scoreboard type, Program Home (default navy/gold;
                         every program site swaps in its own colors)
     .theme-programs     deep navy (kept for reference; FieldPass-style)
   The Bobert wordmark is the one element every product carries.
   ========================================================================== */

:root {
  /* Brand. RAL 3020 Traffic Red, the portals' value on light grounds.
     Schools still override these three. */
  --brand: #CC0605;
  --brand-2: #101317;
  --brand-ink: #FFFFFF;

  /* Surfaces: theme-bobert. Lifted from the portal template (Rob, Nov 4 2026):
     bobert.ai and the portals are one product and should not look like two.
     The portals had already been light for weeks; this is the site catching up,
     not a new palette. */
  --bg: #eceef1;
  --surface: #ffffff;
  --surface-2: #f6f7f9;
  --line: #dde0e5;
  --line-strong: #c9cdd4;
  --text: #101317;
  --muted: #5d636c;
  --dim: #8a9099;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --content: 1140px;
  --gutter: 20px;
}

body.theme-programs {
  --bg: #07111D;
  --surface: #0D1C2E;
  --surface-2: #10233A;
  --line: rgba(240, 246, 255, 0.08);
  --line-strong: rgba(240, 246, 255, 0.18);
  --text: #F0F6FF;
  --muted: rgba(232, 241, 251, 0.68);
  --dim: rgba(232, 241, 251, 0.42);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--brand); color: var(--brand-ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

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

/* ---------- Nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.nav-brand img { height: 40px; width: auto; }
.nav-division {
  font-size: 13px; font-weight: 600; color: var(--muted);
  padding-left: 12px; border-left: 1px solid var(--line-strong); white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted);
  padding: 8px 12px; border-radius: 8px;
}
.nav-links a:hover { color: var(--text); background: var(--line); }
.nav-links a.btn { color: var(--brand-ink); }
@media (max-width: 760px) {
  .nav-links a:not(.btn) { display: none; }
  .nav-division { display: none; }
}

/* ---------- Nav dropdowns (Oct 29 2026) ----------
   <details class="nav-menu"> with a .nav-panel of .nav-item links.
   Works with no script; a small script in the page closes other menus,
   closes on outside click or Escape. .nav-desktop shows above 900px,
   .nav-mobile (one "Menu" panel holding every group) at 900px and below. */
.nav-menu { position: relative; }
.nav-menu > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 500; color: var(--muted);
  padding: 8px 12px; border-radius: 8px;
}
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary::after {
  content: ""; width: 7px; height: 7px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform .15s ease, margin .15s ease;
}
.nav-menu[open] > summary::after { transform: rotate(-135deg); margin-top: 3px; }
.nav-menu > summary:hover,
.nav-menu[open] > summary { color: var(--text); background: var(--line); }
.nav-menu > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.nav-panel {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 60;
  min-width: 300px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px;
  box-shadow: 0 1px 2px rgba(16,19,23,.06), 0 8px 24px -12px rgba(16,19,23,.18);
  display: grid; gap: 2px;
}
.nav-links .nav-panel a.nav-item {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px; border-radius: 8px; color: var(--text);
}
.nav-item strong { font-size: 15px; font-weight: 600; }
.nav-item span { font-size: 13px; font-weight: 400; color: var(--muted); }
.nav-links .nav-panel a.nav-item:hover { background: var(--line); }
.nav-group {
  margin: 10px 12px 4px; font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--brand);
}
.nav-group:first-child { margin-top: 4px; }
.nav-subgroup {
  margin: 8px 12px 2px; font-size: 12px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.nav-subgroup:first-child { margin-top: 4px; }
.nav-panel-cta { margin: 10px 4px 4px; }

.nav-links .nav-mobile { display: none; }
@media (max-width: 900px) {
  .nav-links .nav-desktop { display: none; }
  .nav-links .nav-mobile { display: block; }
  .nav-mobile > .nav-panel {
    position: fixed; top: 68px; left: var(--gutter); right: var(--gutter);
    min-width: 0; max-height: calc(100vh - 84px); overflow-y: auto;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 16px; font-weight: 700; text-decoration: none;
  padding: 13px 22px; border-radius: 12px; border: 1px solid transparent; cursor: pointer;
  background: var(--brand); color: var(--brand-ink);
  transition: transform .15s ease, filter .15s ease, background .15s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--line); filter: none; }
.nav-links .btn { padding: 9px 16px; font-size: 14px; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--brand); border-radius: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 7vw, 72px); font-weight: 900; }
h2 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: normal; color: var(--brand); }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 640px; margin: 22px 0 0; }
p { margin: 0; }
.muted { color: var(--muted); }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
section + section { border-top: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 18px; }
@media (max-width: 760px) { section { padding: 68px 0; } }

/* ---------- Hero ---------- */
.hero { padding: 92px 0 84px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px;
  /* No red glow (Rob, Oct 29 2026: never tint or fade the red, no glows or
     washes). Kept as an element so page layout is unchanged. */
  background: none;
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero h1 { margin-top: 18px; max-width: 880px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--dim); }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; transition: border-color .15s ease, background .15s ease;
}
.card:hover { border-color: color-mix(in srgb, var(--brand) 45%, transparent); }
.card h3 { margin-top: 14px; }
.card p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.card .icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand);
}
.card .icon svg { width: 22px; height: 22px; }

.tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted);
}
.tag-live { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 50%, transparent); }

/* Division cards on the parent page */
.division { display: flex; flex-direction: column; padding: 32px; min-height: 100%; }
.division h3 { font-size: 26px; margin-top: 18px; }
.division .tagline { margin-top: 8px; font-weight: 600; color: var(--text); font-size: 17px; }
.division ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.division li { position: relative; padding-left: 26px; color: var(--muted); font-size: 16px; }
.division li::before {
  content: ""; position: absolute; left: 2px; top: 9px; width: 10px; height: 10px; border-radius: 3px;
  background: var(--brand);
}
.division .actions { margin-top: auto; padding-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }

/* Numbered steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 58px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 22px; left: 26px; font-weight: 900; font-size: 15px; color: var(--brand);
}

/* Checklist */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; color: var(--muted); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 6px;
  background: color-mix(in srgb, var(--brand) 18%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 55%, transparent);
}
.checks li::after {
  content: ""; position: absolute; left: 6px; top: 8px; width: 5px; height: 9px;
  border: solid var(--brand); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.checks strong { color: var(--text); }

/* Packages */
.package { display: flex; flex-direction: column; }
.package.featured { border-color: color-mix(in srgb, var(--brand) 60%, transparent); }
.package .name { font-size: 22px; font-weight: 800; margin-top: 12px; }
.package .for { color: var(--muted); font-size: 15px; margin-top: 6px; }
.package .checks { margin-top: 20px; font-size: 15px; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 24%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
  border-radius: 24px; padding: 48px; display: flex; flex-wrap: wrap; gap: 24px;
  align-items: center; justify-content: space-between;
}
.cta-band h2 { font-size: clamp(26px, 3.6vw, 36px); }
.cta-band p { color: var(--muted); margin-top: 10px; max-width: 560px; }
@media (max-width: 640px) { .cta-band { padding: 30px 22px; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 56px; font-size: 14px; color: var(--dim); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; text-decoration: none; }
.footer-brand img { height: 34px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a { text-decoration: none; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-legal { flex-basis: 100%; }
.footer-cols { flex-basis: 100%; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px 32px; }
.footer-cols .fc { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.footer-cols h3 { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.footer-cols a { color: var(--muted); text-decoration: none; }
.footer-cols a:hover { color: var(--text); }
.footer-cols .fc-brand p, .footer-cols .fc-note { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--dim); }
.footer-cols .fc-brand .footer-brand { margin-bottom: 6px; }
@media (max-width: 860px) { .footer-cols { grid-template-columns: 1fr 1fr; } .footer-cols .fc-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-cols { grid-template-columns: 1fr; } }
.footer-story { flex-basis: 100%; max-width: none; padding-bottom: 28px; margin-bottom: 4px; border-bottom: 1px solid var(--line); display: grid; gap: 12px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.footer-story p { margin: 0; max-width: 62ch; }
.footer-story .fs-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #DC2626; }
.footer-story .fs-sign { color: var(--text); font-weight: 600; }

/* ---------- Sample program preview (Digital Programs page) ---------- */
.preview {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(16,19,23,.06), 0 18px 48px -20px rgba(16,19,23,.22);
}
.preview-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px; background: var(--brand); color: var(--brand-ink);
  transition: background .3s ease, color .3s ease;
}
.preview-school { display: flex; align-items: center; gap: 12px; min-width: 0; }
.preview-crest {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center;
  font-weight: 900; font-size: 18px; background: var(--brand-2); color: var(--brand);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--brand-ink) 35%, transparent);
  transition: background .3s ease;
}
.preview-school b { display: block; font-size: 16px; line-height: 1.2; }
.preview-school span { display: block; font-size: 12px; opacity: .82; }
.preview-tabs { display: flex; gap: 4px; padding: 10px 14px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.preview-tabs span {
  font-size: 12px; font-weight: 600; color: var(--muted); padding: 6px 10px; border-radius: 8px; white-space: nowrap;
}
.preview-tabs span.on { color: var(--text); background: var(--line); }
.preview-body { padding: 18px; display: grid; gap: 12px; }
.preview-player {
  display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 14px; background: var(--surface-2);
  border: 1px solid var(--line);
}
.preview-num {
  width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center;
  font-weight: 900; font-size: 22px; background: var(--brand); color: var(--brand-ink); transition: background .3s ease;
}
.preview-player b { display: block; font-size: 15px; }
.preview-player span { font-size: 13px; color: var(--muted); }
.preview-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.preview-stat { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.preview-stat b { display: block; font-size: 20px; font-weight: 800; }
.preview-stat span { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.preview-history { display: grid; gap: 6px; }
.preview-row {
  display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 9px 12px;
  border-radius: 10px; background: var(--surface-2); color: var(--muted);
}
.preview-row b { color: var(--text); font-weight: 600; }
.swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; font-size: 14px; color: var(--muted); }
.swatch {
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer; padding: 0;
  border: 2px solid var(--line-strong); background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%);
}
.swatch[aria-pressed="true"] { border-color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 25%, transparent); }

.hero-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero-split { grid-template-columns: minmax(0, 1fr); gap: 44px; } }

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

.package .tag { align-self: flex-start; }

/* ==========================================================================
   Program Home look: light, editorial, scoreboard headings
   ========================================================================== */
body.theme-programhome {
  --brand: #0B2A5B;
  --brand-2: #C8A24A;
  --brand-ink: #FFFFFF;
  --bg: #F6F3EC;
  --surface: #FFFFFF;
  --surface-2: #F1EDE4;
  --line: rgba(20, 24, 33, 0.10);
  --line-strong: rgba(20, 24, 33, 0.22);
  --text: #141821;
  --muted: rgba(20, 24, 33, 0.70);
  --dim: rgba(20, 24, 33, 0.50);
}
body.theme-programhome h1,
body.theme-programhome h2,
.ph-type {
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 0.98;
}
body.theme-programhome h1 { font-size: clamp(48px, 8vw, 92px); }
body.theme-programhome h2 { font-size: clamp(36px, 5.4vw, 58px); }
body.theme-programhome h1 em, body.theme-programhome h2 em { color: var(--brand-2); }
body.theme-programhome .eyebrow, body.theme-programhome .eyebrow::before { color: var(--brand); }
body.theme-programhome .eyebrow::before { background: var(--brand-2); }
body.theme-programhome .hero { background:
  linear-gradient(180deg, color-mix(in srgb, var(--brand) 7%, transparent), transparent 70%); }
body.theme-programhome .hero::before { display: none; }
body.theme-programhome .card { box-shadow: 0 1px 2px rgba(20, 24, 33, .05); }
body.theme-programhome .card:hover { border-color: color-mix(in srgb, var(--brand) 35%, transparent); }
body.theme-programhome .preview { box-shadow: 0 24px 60px rgba(11, 42, 91, .18); }
body.theme-programhome .cta-band {
  background: var(--brand); border-color: var(--brand); color: var(--brand-ink);
}
body.theme-programhome .cta-band p { color: color-mix(in srgb, var(--brand-ink) 82%, transparent); }
body.theme-programhome .cta-band .btn { background: var(--brand-2); color: #141821; }
body.theme-programhome .site-footer { background: var(--surface-2); }
.ph-logo { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--text); }
.ph-logo .ph-type { font-size: 30px; line-height: 1; }
.ph-logo .ph-type b { color: var(--brand-2); font-weight: 800; }
.by-bobert { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--dim); text-decoration: none; }
.by-bobert img { height: 18px; width: auto; }

/* Two-path chooser (high school vs travel/club) */
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 760px) { .paths { grid-template-columns: minmax(0, 1fr); } }
.path { border-top: 4px solid var(--brand); }
.path.alt { border-top-color: var(--brand-2); }
.path h3 { font-size: 24px; }

/* ==========================================================================
   Product cards on the Bobert AI home page: each card wears its product's look
   ========================================================================== */
.product {
  --p-bg: #141414; --p-surface: rgba(255,255,255,.06); --p-text: #FFFFFF;
  --p-muted: rgba(255,255,255,.68); --p-accent: #DC2626; --p-ink: #FFFFFF;
  display: flex; flex-direction: column; border-radius: 22px; overflow: hidden;
  background: var(--p-bg); color: var(--p-text); border: 1px solid rgba(255,255,255,.10);
  min-height: 100%;
}
.product-head { padding: 28px 28px 0; }
.product-name { font-size: 30px; font-weight: 900; letter-spacing: -0.02em; line-height: 1.05; margin-top: 16px; }
.product-tagline { margin-top: 8px; font-weight: 700; color: var(--p-accent); }
.product-body { padding: 14px 28px 0; color: var(--p-muted); font-size: 16px; }
.product ul { list-style: none; margin: 16px 0 0; padding: 0 28px; display: grid; gap: 9px; }
.product li { position: relative; padding-left: 22px; color: var(--p-muted); font-size: 15px; }
.product li::before { content: ""; position: absolute; left: 0; top: 8px; width: 9px; height: 9px; border-radius: 3px; background: var(--p-accent); }
.product-foot { margin-top: auto; padding: 26px 28px 28px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.product .btn { background: var(--p-accent); color: var(--p-ink); }
.product-who { font-size: 13px; color: var(--p-muted); }
.product .tag { border-color: color-mix(in srgb, var(--p-text) 25%, transparent); color: var(--p-muted); }
.product .tag-live { border-color: var(--p-accent); color: var(--p-accent); }

.product--programhome {
  --p-bg: #F6F3EC; --p-text: #141821; --p-muted: rgba(20,24,33,.70);
  --p-accent: #0B2A5B; --p-ink: #FFFFFF; border-color: #F6F3EC;
}
.product--programhome .product-name { font-family: "Barlow Condensed", Inter, sans-serif; font-weight: 800; text-transform: uppercase; font-size: 38px; letter-spacing: 0; }
.product--programhome .product-name b { color: #C8A24A; font-weight: 800; }
.product--programhome .product-tagline { color: #0B2A5B; }
.product--fieldpass {
  --p-bg: #07111D; --p-text: #F0F6FF; --p-muted: rgba(232,241,251,.68);
  --p-accent: #1DB954; --p-ink: #07111D; border-color: rgba(29,185,84,.25);
}
.product--fieldpass .product-name { font-family: Geist, Inter, sans-serif; }
.product--field {
  --p-bg: #0A0A0A; --p-text: #FFFFFF; --p-muted: rgba(255,255,255,.66);
  --p-accent: #DC2626; --p-ink: #FFFFFF; border-color: rgba(220,38,38,.35);
}

/* ---------- Sell sheet (home page) ---------- */
.glance { gap: 14px; }
.glance-item {
  border-left: 3px solid var(--brand); padding: 4px 0 4px 16px;
}
.glance-item b { display: block; font-size: 40px; font-weight: 900; line-height: 1; letter-spacing: -0.02em; }
.glance-item span { display: block; margin-top: 6px; color: var(--muted); font-size: 15px; }
.example-card { padding: 28px; }
.example-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.example-head .ph-type { font-size: 26px; line-height: 1; }
.example-head .ph-type b { color: #C8A24A; font-weight: 800; }
.example-title { margin-top: 22px; font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
.example-sub { margin-top: 4px; color: var(--muted); font-size: 15px; }
.contact-text {
  font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; letter-spacing: -0.01em;
  padding: 12px 20px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface);
}

/* ==========================================================================
   Product "worlds" on the sell sheet: each product section wears its own look.
   Tokens are scoped to the section, so shared components (.card, .eyebrow,
   .checks, .btn) pick up each product's personality automatically.
   ========================================================================== */
section.world { padding: 110px 0; border-top: 0; position: relative; overflow: hidden; background: var(--bg); color: var(--text); }
.world .section-head { margin-bottom: 40px; }
.world-label {
  display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 22px;
}
.world-label img { height: 18px; width: auto; }
.world-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .world-split { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
.world .sub-head { font-size: 22px; font-weight: 800; margin: 56px 0 18px; }

/* --- Program Home: light, editorial, scoreboard type --- */
.world--programhome {
  --brand: #0B2A5B; --brand-2: #C8A24A; --brand-ink: #FFFFFF;
  --bg: #F6F3EC; --surface: #FFFFFF; --surface-2: #F1EDE4;
  --line: rgba(20,24,33,.10); --line-strong: rgba(20,24,33,.22);
  --text: #141821; --muted: rgba(20,24,33,.70); --dim: rgba(20,24,33,.50);
}
.world--programhome h2, .world--programhome .sub-head, .world--programhome .ph-name {
  font-family: "Barlow Condensed", Inter, sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: 0; line-height: .98;
}
.world--programhome h2 { font-size: clamp(42px, 6.4vw, 76px); }
.world--programhome h2 em { color: var(--brand-2); font-style: normal; }
.world--programhome .sub-head { font-size: 30px; }
.world--programhome .eyebrow::before { background: var(--brand-2); }
.world--programhome .card { box-shadow: 0 1px 2px rgba(20,24,33,.05); }
.world--programhome .preview { box-shadow: 0 24px 60px rgba(11,42,91,.18); }
.ph-name { font-size: 44px; }
.ph-name b { color: var(--brand-2); font-weight: 800; }
.world--programhome .path { border-top: 4px solid var(--brand); }
.world--programhome .path.alt { border-top-color: var(--brand-2); }
.option-price { margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .06em; }

/* --- FieldPass: night game, green, app-like and rounded --- */
.world--fieldpass {
  --brand: #1DB954; --brand-2: #22C55E; --brand-ink: #07111D;
  --bg: #07111D; --surface: #0D1C2E; --surface-2: #10233A;
  --line: rgba(240,246,255,.08); --line-strong: rgba(240,246,255,.18);
  --text: #F0F6FF; --muted: rgba(232,241,251,.68); --dim: rgba(232,241,251,.42);
  font-family: Geist, Inter, sans-serif;
  background:
    radial-gradient(700px 420px at 85% 10%, rgba(29,185,84,.16), transparent 70%),
    radial-gradient(600px 400px at 0% 100%, rgba(29,185,84,.08), transparent 70%),
    var(--bg);
}
.world--fieldpass h2 { font-family: Geist, Inter, sans-serif; font-weight: 900; letter-spacing: -0.035em; font-size: clamp(40px, 6vw, 68px); }
.world--fieldpass h2 em { color: var(--brand); font-style: normal; }
.world--fieldpass .card { border-radius: 22px; }
.world--fieldpass .eyebrow { color: var(--brand); }
.fp-board { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.fp-board-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 14px; }
.fp-board-head b { font-size: 16px; }
.fp-pill { font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: rgba(29,185,84,.14); color: var(--brand); }
.fp-game {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center;
  padding: 14px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); margin-top: 10px;
}
.fp-date { text-align: center; border-radius: 14px; background: rgba(29,185,84,.12); padding: 8px 0; }
.fp-date span { display: block; font-size: 11px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .08em; }
.fp-date b { display: block; font-size: 22px; font-weight: 900; line-height: 1.1; }
.fp-game strong { display: block; font-size: 15px; }
.fp-game small { color: var(--muted); font-size: 13px; }
.fp-action { font-size: 13px; font-weight: 800; padding: 9px 14px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); white-space: nowrap; }
.fp-action.ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1px rgba(29,185,84,.5); }
.fp-steps .card { position: relative; padding-top: 64px; }
.fp-steps .num {
  position: absolute; top: 22px; left: 26px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 900; font-size: 14px; background: var(--brand); color: var(--brand-ink);
}
@media (max-width: 480px) { .fp-game { grid-template-columns: 54px 1fr; } .fp-action { grid-column: 2; justify-self: start; } }

/* --- Field Intelligence: black, red, field-ops and bracketed --- */
.world--field {
  /* Light, to match the portals (Rob, Nov 4 2026, option A). Field
     Intelligence is part of Bobert lighting, so it follows the one look.
     FieldPass below keeps its own night-game world: it is a separate
     product, not a section of this one. What makes this band itself is
     the bracketed corners, the grid and the mono type, not the blackness. */
  --brand: #CC0605; --brand-2: #101317; --brand-ink: #FFFFFF;
  --bg: #ffffff; --surface: #f6f7f9; --surface-2: #eceef1;
  --line: #dde0e5; --line-strong: #c9cdd4;
  --text: #101317; --muted: #5d636c; --dim: #8a9099;
  background:
    linear-gradient(rgba(16,19,23,.045) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(16,19,23,.045) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--bg);
}
.world--field h2 { font-weight: 900; letter-spacing: -0.03em; font-size: clamp(40px, 6vw, 68px); }
.world--field .mono, .world--field .eyebrow {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em;
}
.world--field .card { border-radius: 4px; position: relative; }
.world--field .card::before, .world--field .card::after {
  content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid var(--brand);
}
.world--field .card::before { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.world--field .card::after { bottom: -1px; left: -1px; border-right: 0; border-top: 0; border-color: rgba(16,19,23,.35); }
.fi-capture { background: var(--surface); border: 1px solid var(--line); padding: 22px; position: relative; }
.fi-capture .viewfinder {
  height: 170px; position: relative; background: linear-gradient(135deg, #f6f7f9, #eceef1);
  display: grid; place-items: center; color: var(--dim); font-size: 13px;
}
.fi-capture .viewfinder::before, .fi-capture .viewfinder::after {
  content: ""; position: absolute; width: 28px; height: 28px; border: 3px solid #FFFFFF;
}
.fi-capture .viewfinder::before { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.fi-capture .viewfinder::after { top: 14px; right: 14px; border-left: 0; border-bottom: 0; border-color: var(--brand); }
.fi-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fi-meta span { font-size: 12px; padding: 5px 9px; border: 1px solid var(--line-strong); color: var(--muted); }
.fi-meta span.hot { border-color: var(--brand); color: var(--brand); }
.fi-rows { margin-top: 14px; display: grid; gap: 6px; }
.fi-rows div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 9px 12px; background: var(--surface-2); color: var(--muted); }
.fi-rows b { color: var(--text); font-weight: 600; }
.fi-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 30px; }
.fi-stats div { border-left: 3px solid var(--brand); padding-left: 14px; }
.fi-stats b { display: block; font-size: 30px; font-weight: 900; }
.fi-stats span { font-size: 13px; color: var(--muted); }

/* Overview card link down to its section */
.product .jump {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 15px; text-decoration: none;
  padding: 11px 16px; border-radius: 12px; background: var(--p-accent); color: var(--p-ink);
}
.product .jump:hover { filter: brightness(1.08); }
.world-back { margin-top: 48px; font-size: 14px; }
.world-back a { color: var(--muted); text-decoration: none; }
.world-back a:hover { color: var(--text); }

section[id], header[id] { scroll-margin-top: 68px; }

/* ==========================================================================
   Lighting Intelligence home (Decision 033, Oct 29 2026)
   Bobert black and red, Inter, JetBrains Mono for data. One red accent per
   screen. Sample data is always labeled.
   ========================================================================== */
.mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }

/* Hero takeoff card */
.takeoff {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px;
  padding: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.takeoff-head, .takeoff-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 12px; text-transform: uppercase; color: var(--muted); padding: 2px 4px 12px;
}
.takeoff-foot { padding: 14px 4px 2px; border-top: 1px solid var(--line); margin-top: 8px; }
.takeoff-flag {
  font-size: 11px; text-transform: uppercase; padding: 4px 8px; border-radius: 6px;
  border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap;
}
.takeoff-row {
  display: grid; grid-template-columns: 44px 1fr 48px 132px; gap: 12px; align-items: center;
  padding: 11px 12px; border-radius: 8px; font-size: 14px; color: var(--text);
}
.takeoff-row + .takeoff-row { margin-top: 4px; }
.takeoff-row:not(.takeoff-cols) { background: var(--surface-2); }
.takeoff-cols { font-size: 11px; text-transform: uppercase; color: var(--dim); padding-top: 0; padding-bottom: 6px; }
.takeoff-row b { font-weight: 700; }
.takeoff-row .src { font-size: 12px; color: var(--muted); }
.takeoff-row.is-flag .src { color: var(--brand); font-weight: 600; }
@media (max-width: 480px) {
  .takeoff-row { grid-template-columns: 34px 1fr 36px; }
  .takeoff-row .src, .takeoff-cols span:last-child { grid-column: 2 / -1; }
  .takeoff-cols span:last-child { display: none; }
}

/* How it works */
.flow-step { display: flex; flex-direction: column; text-decoration: none; color: var(--text); }
.flow-step p { flex: 1; }
.flow-link { margin-top: 18px; font-size: 14px; font-weight: 700; color: var(--brand); }
.flow-step:hover .flow-link { text-decoration: underline; }

/* Why the number holds up */
.tier { position: relative; padding-top: 70px; }
.tier-num {
  position: absolute; top: 24px; left: 28px; width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
  border: 1px solid var(--line-strong); color: var(--text);
}
.trust-checks { margin-top: 36px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; }
@media (max-width: 760px) { .trust-checks { grid-template-columns: minmax(0, 1fr); } }

/* Smarter every job */
.ledger { display: grid; gap: 8px; }
.ledger-row {
  display: grid; grid-template-columns: 190px 1fr; gap: 16px; align-items: baseline;
  padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
}
.ledger-row b { font-weight: 700; }
.ledger-row span { color: var(--muted); font-size: 15px; }
.soon {
  font-style: normal; font-size: 10px; font-weight: 700; text-transform: uppercase;
  padding: 2px 6px; border-radius: 4px; margin-left: 6px; vertical-align: 2px;
  border: 1px solid var(--line-strong); color: var(--muted);
}
@media (max-width: 560px) { .ledger-row { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* Built on real jobs */
.job-kind { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--text); }
.job p { margin-top: 12px; }

/* Portals teaser */
.portal-mini {
  display: block; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.portal-mini:hover { border-color: color-mix(in srgb, var(--brand) 45%, transparent); }
.portal-mini-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.portal-mini-head b { display: block; font-size: 16px; }
.portal-mini-head span:not(.takeoff-flag) { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.portal-mini-tabs { display: flex; gap: 4px; padding: 10px 14px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.portal-mini-tabs span { font-size: 13px; font-weight: 600; color: var(--muted); padding: 6px 10px; border-radius: 6px; white-space: nowrap; }
.portal-mini-tabs span.on { color: var(--text); background: var(--line); }
.portal-mini-row {
  display: flex; justify-content: space-between; gap: 12px; padding: 14px 20px; font-size: 15px; color: var(--muted);
}
.portal-mini-row + .portal-mini-row { border-top: 1px solid var(--line); }
.portal-mini-row b { color: var(--text); }

/* Development Ideas strip: quieter than the lighting sections */
.dev-strip { padding: 72px 0; }
.dev-title { font-size: clamp(24px, 3vw, 30px); margin-top: 12px; }
.dev-card { text-decoration: none; color: var(--text); }
.dev-kind { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.dev-card h3 { margin-top: 10px; }
.fp-page { padding-top: 72px; }

/* Sample portal page (/portals, Decision 033) */
.portal-banner { background: var(--surface-2); border-bottom: 1px solid var(--line); padding: 12px 0; font-size: 14px; color: var(--muted); }
.portal-banner strong { color: var(--text); }
.portal-head { padding: 64px 0 0; }
.portal-title { margin-top: 14px; font-size: clamp(36px, 5.6vw, 58px); }
.portal-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 34px; max-width: 720px; }
.portal-facts div { border-left: 3px solid var(--brand); padding-left: 14px; }
.portal-facts b { display: block; font-size: 28px; font-weight: 900; }
.portal-facts span { font-size: 13px; color: var(--muted); }
.portal-tabs { display: flex; gap: 4px; margin-top: 40px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.portal-tabs a {
  text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; white-space: nowrap;
  padding: 12px 14px; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.portal-tabs a:hover { color: var(--text); border-bottom-color: var(--brand); }
.portal-head + section { border-top: 0; }
.portal-h2 { font-size: clamp(26px, 3.4vw, 34px); }
.portal-sub { margin-top: 8px; }
.portal-table-wrap { margin-top: 24px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.portal-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.portal-table th {
  text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--dim); background: var(--surface); padding: 12px 16px; border-bottom: 1px solid var(--line);
}
.portal-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.portal-table tr:last-child td { border-bottom: 0; }
.portal-table td:first-child { color: var(--text); font-weight: 600; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill-ok { background: rgba(255,255,255,.08); color: var(--text); }
.pill-warn { background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand); }
.stage { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 18px; }
.stage span { height: 4px; border-radius: 2px; background: var(--line-strong); }
.stage span.on { background: var(--text); }
@media (max-width: 560px) { .portal-facts { grid-template-columns: minmax(0, 1fr); } }

/* Sample tool screens (/tour) and beta hub (/beta), Decision 033 */
.tour-body { padding-top: 56px; }
.portal-head + .tour-body { border-top: 0; }
.tour-next { display: block; text-decoration: none; color: var(--text); margin-top: 32px; }
.tour-next h3 { margin-top: 10px; }
.tour-mock { box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.tour-mock .viewfinder { margin-top: 4px; }
.tour-sheets { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 14px; }
.tour-sheets span { font-size: 11px; padding: 5px 8px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--muted); }
.mi-score { display: flex; align-items: center; gap: 14px; padding: 8px 4px 4px; }
.mi-score b { font-size: 48px; font-weight: 900; line-height: 1; }

/* Workflow walkthrough (/tour, Decision 036): one job, one scrolling page.
   Everything is on the page; details open in place instead of a new screen. */
.wf-step { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.wf-step b { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 13px; letter-spacing: 0; }
.wf-section h2 { margin-top: 14px; }
.facts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.fact { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--surface); }
.fact span { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.fact b { display: block; margin-top: 6px; font-size: 17px; color: var(--text); }
.fact p { margin-top: 4px; font-size: 14px; color: var(--muted); }
@media (max-width: 800px) { .facts-grid { grid-template-columns: minmax(0, 1fr); } }
.files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.file { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--muted); background: var(--surface); }
.file::before { content: ""; width: 10px; height: 12px; border: 1.5px solid currentColor; border-radius: 2px; }
.lines { margin-top: 24px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.line + .line { border-top: 1px solid var(--line); }
.line > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr) auto 18px; gap: 16px; align-items: center; padding: 14px 18px; }
.line > summary::-webkit-details-marker { display: none; }
.line > summary::after { content: "+"; color: var(--muted); font-weight: 700; text-align: right; }
.line[open] > summary::after { content: "−"; }
.line > summary:hover { background: var(--surface); }
.line .t { font-weight: 700; color: var(--text); }
.line .spec, .line .alt { font-size: 15px; color: var(--muted); }
.line .alt b, .line .spec b { color: var(--text); font-weight: 600; }
.line-body { padding: 4px 18px 20px; background: var(--surface); border-top: 1px solid var(--line); }
.compare { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 14px; }
.compare th, .compare td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.compare th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.compare td { color: var(--muted); }
.compare td:first-child { color: var(--text); font-weight: 600; width: 22%; }
.compare tr:last-child td { border-bottom: 0; }
.note-flag { margin-top: 12px; font-size: 14px; color: var(--brand); }
@media (max-width: 760px) {
  .line > summary { grid-template-columns: 52px minmax(0, 1fr) 18px; }
  .line .alt, .line > summary .pill { grid-column: 2; }
  .line > summary .pill { justify-self: start; }
}
.timeline { list-style: none; margin: 24px 0 0; padding: 0 0 0 22px; border-left: 2px solid var(--line-strong); display: grid; gap: 18px; }
.timeline li { position: relative; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; left: -29px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-strong); }
.timeline li.done::before { background: var(--text); border-color: var(--text); }
.timeline li.now::before { background: var(--brand); border-color: var(--brand); }
.timeline b { color: var(--text); }
.timeline .when { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.tour-cta { margin: 20px 0 0; }
