/* ==========================================================================
   KREW-OPS MARKETING SITE — "Operator's Console" design system
   --------------------------------------------------------------------------
   Everything visual lives in this one file.
   - Brand colors are CSS variables, defined once for light mode and once
     for dark mode (dark switches automatically with the visitor's OS).
   - Fonts: Anton (big display headings), Inter (body), JetBrains Mono
     (numbers, labels, "eyebrow" tags). Loaded in templates/page.html.
   ========================================================================== */

/* ----- 1. BRAND TOKENS (light mode) --------------------------------------- */
:root {
  /* Core brand colors — must match the app */
  --blue:      #1E40DD;   /* primary blue */
  --blue-2:    #3D5BE3;   /* secondary blue */
  --navy:      #0A1640;   /* deep navy */
  --ink:       #0E1116;   /* near-black text */
  --paper:     #F4F6FB;   /* page background */
  --line:      #E0E5F0;   /* borders / grid lines */

  /* Derived colors (semi-transparent versions used for effects) */
  --blue-glow:   rgba(30, 64, 221, 0.35);  /* button glow shadow */
  --blue-tint:   rgba(30, 64, 221, 0.07);  /* faint blue wash panels */
  --grid-line:   rgba(14, 17, 22, 0.05);   /* background grid lines */

  /* Surfaces & text roles */
  --surface:     #FFFFFF;                 /* cards */
  --text:        var(--ink);
  --text-muted:  #4A5468;
  --header-bg:   rgba(244, 246, 251, 0.85);

  /* Shared measurements */
  --radius: 11px;                          /* brand border radius */
  --container: 1120px;                     /* max content width */

  /* Font stacks */
  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", "Consolas", monospace;
}

/* ----- 1b. DARK MODE — follows the visitor's OS setting ------------------- */
@media (prefers-color-scheme: dark) {
  :root {
    --paper:      #0b0f1a;                 /* near-navy background */
    --ink:        #e8ebf4;                 /* text inverts to off-white */
    --line:       #1e2740;
    --surface:    #10172a;
    --text:       #e8ebf4;
    --text-muted: #97a2bd;
    --header-bg:  rgba(11, 15, 26, 0.85);
    --blue-tint:  rgba(61, 91, 227, 0.10);
    --grid-line:  rgba(232, 235, 244, 0.045);
  }
}

/* ----- 2. RESET & BASE ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--paper);
  /* The signature "console" grid: faint engineering grid lines everywhere */
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- 3. TYPE HELPERS ----------------------------------------------------- */

/* Big display headings — Anton, always uppercase, tight */
h1, h2, .display {
  font-family: var(--font-display);
  font-weight: 400;               /* Anton only has one weight */
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  color: var(--text);
}
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
h3 { font-size: 1.15rem; font-weight: 700; }

/* "Eyebrow" — the small mono label above headings */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
/* Little tick mark before each eyebrow, like a console readout */
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--blue);
  display: inline-block;
}

.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 56ch; }

/* Huge outlined numerals (e.g. section numbers, stats) */
.stroke-num {
  font-family: var(--font-display);
  color: transparent;
  -webkit-text-stroke: 2px var(--blue);
  line-height: 1;
}

/* ----- 4. BUTTONS ----------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

/* Primary: solid blue with the brand glow */
.btn-primary {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 10px 30px var(--blue-glow);
}
.btn-primary:hover { box-shadow: 0 14px 36px var(--blue-glow); }

/* Ghost: border + brand-blue text */
.btn-ghost {
  border-color: var(--blue-2);
  color: var(--blue-2);
  background: transparent;
}

/* ----- 5. HEADER / NAV ------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}

/* Logo: Anton wordmark with a blue "unit" block, console style */
.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  text-transform: uppercase;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo .logo-mark {
  width: 14px; height: 14px;
  background: var(--blue);
  box-shadow: 0 0 12px var(--blue-glow);
}

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.site-nav a:hover { color: var(--blue-2); text-decoration: none; }

/* Highlight the link for the page you're on.
   build.js stamps data-page="..." onto <body>; these rules match it. */
body[data-page="product"]      .site-nav a[href="/product"],
body[data-page="how-it-works"] .site-nav a[href="/how-it-works"],
body[data-page="pricing"]      .site-nav a[href="/pricing"],
body[data-page="blog"]         .site-nav a[href="/blog"],
body[data-page="about"]        .site-nav a[href="/about"] {
  color: var(--blue-2);
}

.nav-cta { padding: 10px 18px; }

/* "Sign in" — for returning customers. Same mono style as nav links but
   in brand blue so it reads as an action, not another page. */
.site-nav a.nav-signin { color: var(--blue-2); }
/* The ".site-nav a" gray wins over ".btn-primary" white on specificity,
   which made the CTA unreadable in light mode — force white here. */
.site-nav a.nav-cta,
.site-nav a.nav-cta:hover { color: #ffffff; }

/* Mobile menu button (hidden on desktop; JS in the template toggles it) */
.menu-btn {
  display: none;
  background: none;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  padding: 8px 12px;
  cursor: pointer;
}

@media (max-width: 820px) {
  .menu-btn { display: inline-block; }
  .site-nav {
    display: none;               /* hidden until the button opens it */
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; }
  .nav-cta { margin-top: 8px; }
}

/* ----- 6. HERO --------------------------------------------------------------- */
.hero { padding: 90px 0 70px; overflow: hidden; }
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 .accent { color: var(--blue); }
.hero .lead { margin: 22px 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
}

/* ----- 7. THE CONSOLE VISUAL (pure CSS dashboard mock in the hero) ---------- */
.console {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(10, 22, 64, 0.18);
  overflow: hidden;
}
/* Title bar with a LIVE tag */
.console-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--blue-tint);
}
.console-bar .label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}
.console-bar .live {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--blue-2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.console-bar .live::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue-glow);
  animation: pulse 2s infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }

.console-body { padding: 20px; display: grid; gap: 16px; }

/* One metric readout inside the console */
.metric {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.metric .metric-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.metric .metric-value {
  font-family: var(--font-display);
  font-size: 2.1rem;
  line-height: 1;
  color: var(--text);
}
.metric .metric-value .unit {
  font-size: 1rem;
  color: var(--text-muted);
  margin-left: 6px;
}
.metric-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Horizontal bar chart rows (job margins) */
.bar-row {
  display: grid;
  grid-template-columns: 110px 1fr 52px;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 8px;
}
.bar-track {
  height: 10px;
  background: var(--blue-tint);
  border-radius: 5px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-2), var(--blue));
  border-radius: 5px;
}

/* ----- 8. GENERIC SECTIONS ---------------------------------------------------- */
.section { padding: 80px 0; }
.section-head { margin-bottom: 44px; max-width: 640px; }
.section-head h2 { margin-top: 12px; }
.section-alt { background: var(--blue-tint); border-block: 1px solid var(--line); }

/* Card grid (three questions, how-it-works steps, etc.) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 820px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(10, 22, 64, 0.12);
}
.card .card-num { font-size: 2.6rem; display: block; margin-bottom: 14px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 0.97rem; }

/* ----- 9. PRICING TEASER / BIG CTA BANDS --------------------------------------- */
.price-band { text-align: center; }
.price-band .price,
.plan-card .price {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 9vw, 6rem);
  color: var(--text);
  line-height: 1;
}
.price-band .price .per,
.plan-card .price .per {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.price-band .price-terms,
.plan-card .price-terms {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 14px 0 30px;
}

/* Final call-to-action band on navy, light AND dark mode */
.cta-band {
  background: var(--navy);
  color: #e8ebf4;
  text-align: center;
  padding: 90px 24px;
  /* brighter grid lines on navy */
  background-image:
    linear-gradient(rgba(232, 235, 244, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 235, 244, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
}
.cta-band h2 { color: #ffffff; }
.cta-band .lead { color: #97a2bd; margin: 18px auto 32px; }

/* ----- 10. CHECKLIST (the "built for operators" strip) -------------------------- */
.check-list { list-style: none; display: grid; gap: 14px; max-width: 620px; }
.check-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  color: var(--text-muted);
}
.check-list li::before {
  content: "▸";
  color: var(--blue);
  font-weight: 700;
}
.check-list li strong { color: var(--text); }

/* ----- 11. FOOTER ----------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.footer-nav a:hover { color: var(--blue-2); }

/* ----- 12. SCROLL-REVEAL MOTION ----------------------------------------------------
   Elements get the .reveal class from the small script in templates/page.html,
   then .visible when they scroll into view. Without JS, everything just shows
   normally (the classes are added by JS, so nothing is ever stuck hidden). */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* Stagger cards inside a grid so they arrive one after another */
.card-grid .card:nth-child(2) { transition-delay: 0.1s; }
.card-grid .card:nth-child(3) { transition-delay: 0.2s; }

/* Console bars sweep in from zero once the console is visible */
.reveal .bar-fill { transform: scaleX(0); transform-origin: left; }
.reveal.visible .bar-fill { transform: scaleX(1); transition: transform 0.9s ease 0.35s; }

/* Visitors with "reduce motion" turned on in their OS get a static site */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal .bar-fill { transform: none; transition: none; }
  .console-bar .live::before { animation: none; }
}

/* ----- 13. STUB PAGES ("coming soon" placeholders until Phase S2) ---------------- */
.stub {
  min-height: 45vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 100px 24px;
}
.stub .eyebrow { justify-content: center; }
.stub h1 { margin: 14px 0 10px; }
.stub p { color: var(--text-muted); }
.stub .btn { margin-top: 26px; }

/* ==========================================================================
   PHASE S2 ADDITIONS — real pages
   Sections 14–18 below were added for the Product, How It Works, Pricing,
   and About pages. Everything above is unchanged from S1.
   ========================================================================== */

/* ----- 14. SEMANTIC COLORS (green = making money, red = losing it) -----------
   Matches the app's rule: color carries MEANING only, never decoration. */
:root {
  --good: #059669;   /* emerald-600, same as the app in light mode */
  --bad:  #DC2626;   /* red-600 */
}
@media (prefers-color-scheme: dark) {
  :root {
    --good: #34D399; /* emerald-400 */
    --bad:  #F87171; /* red-400 */
  }
}

/* ----- 15. THE DASHBOARD RECREATION (Product page) ---------------------------
   A faithful, pure-CSS rendering of the real app dashboard — same layout,
   same panels, example numbers. No screenshots, no JS, no images. */

/* Page-head intro shared by all S2 pages */
.page-head { padding: 70px 0 10px; }
.page-head h1 { margin: 14px 0 18px; }
.page-head .lead { margin-bottom: 8px; }

/* The dashboard frame — reuses .console's card look, but full width */
.dash {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(10, 22, 64, 0.18);
  overflow: hidden;
}

/* App top bar: brand left, shop readout middle, action buttons right */
.dash-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.dash-top .dash-brand {
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.dash-top .dash-brand .accent { color: var(--blue); }
.dash-top .dash-shop {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.dash-top .dash-btn {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 16px var(--blue-glow);
  white-space: nowrap;
}
.dash-body { padding: 22px; }

/* Month heading inside the dashboard */
.dash-month .dash-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-2);
}
.dash-month h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.7rem;
  text-transform: uppercase;
  margin: 2px 0 0;
}
.dash-month .dash-sub { font-size: 0.8rem; color: var(--text-muted); }

/* The six KPI "gauges" — mono label, big mono number, thin blue underline */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin: 18px 0;
}
@media (max-width: 1000px) { .kpi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px)  { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }

.kpi {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.kpi::after {                    /* the app's signature accent underline */
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 0;
  height: 2px;
  background: var(--blue);
  opacity: 0.25;
}
.kpi-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.kpi-value {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
}
.kpi-sub {
  margin-top: 8px;
  font-size: 0.66rem;
  line-height: 1.35;
  color: var(--text-muted);
}
.kpi-sub.up   { color: var(--good); font-family: var(--font-mono); }
.kpi-sub.down { color: var(--bad);  font-family: var(--font-mono); }

/* Panels: white cards with a mono title line, like the app's PanelShell */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.panel + .panel, .dash .panel { margin-top: 0; }
.panel-title {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.panel-note { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 14px; }

/* Two-up panel row (cash flow + flat-rate accuracy, like the app) */
.dash-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
@media (max-width: 820px) { .dash-row { grid-template-columns: 1fr; } }
.dash-body > .panel { margin-top: 12px; }

/* CSS bar chart — six months of revenue, no chart library needed */
.chart {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  height: 190px;
  padding-top: 6px;
}
/* Each column: bar pinned to the bottom, month label under it.
   Bar heights are set in px on the page (percentages don't resolve
   reliably here — that bug shipped once already). */
.chart .col {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  height: 100%;
}
.chart .chart-bar {
  background: var(--blue);
  border-radius: 4px 4px 0 0;
  width: 100%;
}
.chart .col span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-align: center;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Cash-flow forecast rows — reads like a bank statement */
.cash-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
}
.cash-row .amt { font-family: var(--font-mono); font-size: 0.8rem; }
.cash-net {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 12px;
}
.cash-net .net-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.cash-net .net-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
}
.pos { color: var(--good); }
.neg { color: var(--bad); }

/* Flat-rate accuracy rows: label, %, and a bar (red when under 90%) */
.acc-row { padding: 8px 0; }
.acc-row .acc-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
  font-size: 0.82rem;
}
.acc-row .acc-line .pct { font-family: var(--font-mono); font-size: 0.8rem; }
.bar-fill.bad { background: var(--bad); }
.flag-note { margin-top: 6px; font-size: 0.68rem; color: var(--bad); }

/* Job-costing table — mono numbers, meaning-colored margins */
.jobs-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.jobs-table th {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: right;
  padding: 0 8px 8px;
}
.jobs-table th:first-child, .jobs-table td:first-child { text-align: left; padding-left: 0; }
.jobs-table td {
  font-family: var(--font-mono);
  text-align: right;
  padding: 8px;
  border-top: 1px solid var(--line);
}
.jobs-table td:first-child { font-family: var(--font-body); }
.jobs-table-wrap { overflow-x: auto; }

/* Caption under the dashboard: what this is (and isn't) */
.dash-caption {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-align: center;
}

/* ----- 16. STEP ROWS (How It Works page) -------------------------------------
   Alternating rows: big outlined number + copy on one side, a visual on
   the other. Stacks to one column on phones. */
.step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 44px 0;
}
.step:nth-child(even) .step-visual { order: -1; }   /* zig-zag on desktop */
@media (max-width: 820px) {
  .step { grid-template-columns: 1fr; gap: 28px; }
  .step:nth-child(even) .step-visual { order: 0; }  /* copy first on phones */
}
.step .step-num { font-size: 3.4rem; display: block; margin-bottom: 10px; }
.step h3 { font-size: 1.35rem; margin-bottom: 10px; }
.step p { color: var(--text-muted); }
.step .step-time {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-2);
  margin-top: 14px;
}

/* A mini CSS mock of the app's forms (intake / monthly entry) */
.form-mock {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(10, 22, 64, 0.14);
  padding: 20px;
}
.form-mock .fm-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-2);
  margin-bottom: 4px;
}
.form-mock .fm-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.form-mock .fm-field { margin-bottom: 12px; }
.form-mock .fm-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.form-mock .fm-input {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text);
  background: var(--paper);
}
.form-mock .fm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ----- 17. PRICING PAGE -------------------------------------------------------- */
.plan-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  padding: 44px 36px;
  text-align: center;
  box-shadow: 0 24px 60px var(--blue-glow);
}
.plan-card .price { margin-top: 10px; }
.plan-card .check-list { text-align: left; margin: 0 auto 30px; max-width: 440px; }
/* Narrower rule column inside the plan card — it's a tighter space */
.plan-card .check-list.split li { grid-template-columns: 18px 150px 1fr; }
.plan-card .btn { width: 100%; max-width: 320px; }
.plan-fine {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* Simple FAQ list: bold question, muted answer */
.faq { max-width: 680px; display: grid; gap: 26px; }
.faq h3 { margin-bottom: 6px; }
.faq p { color: var(--text-muted); font-size: 0.95rem; }

/* ----- 18. ABOUT PAGE ------------------------------------------------------------
   .photo-slot is a clearly-labeled placeholder until real founder photos
   land in a later session — a dashed box, not a fake face. */
.prose { max-width: 62ch; }
.prose p { margin-bottom: 18px; color: var(--text-muted); font-size: 1.02rem; }
.prose p strong { color: var(--text); }

.crew-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 820px) { .crew-grid { grid-template-columns: 1fr; } }

.photo-slot {
  aspect-ratio: 4 / 5;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  display: grid;
  place-content: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--blue-tint);
  margin-bottom: 14px;
}
/* Real crew photo — same shape as the placeholder slot it replaces.
   object-fit: cover crops any photo (even a square one) to the 4:5 frame
   without squashing it. */
.crew-photo {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
}

.crew-card h3 { margin-bottom: 2px; }

/* Short founder bio under the name/role. Same class for all three cards
   once Matt's and Jean's bios arrive. */
.crew-bio {
  margin-top: 10px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.crew-role {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-2);
}

/* Split checklist (About page "rules"): rule name in a fixed left column,
   description on the right, a divider line under each row. On phones the
   two columns stack. */
.check-list.split { max-width: 760px; gap: 0; }
.check-list.split li {
  display: grid;
  grid-template-columns: 18px 210px 1fr;   /* ▸ marker | rule | description */
  gap: 4px 20px;
  align-items: baseline;
  padding: 12px 0;
}
@media (max-width: 640px) {
  /* Stack: marker + rule name on their own line, description below */
  .check-list.split li { display: block; position: relative; padding-left: 20px; }
  .check-list.split li::before { position: absolute; left: 0; top: 12px; }
  .check-list.split li strong { display: block; margin-bottom: 4px; }
}

/* ----- 19. S2 MOTION HOOKS ---------------------------------------------------------
   New reveal targets follow the same rules as section 12: classes are added
   by JS, so no-JS visitors (and reduced-motion visitors) see everything. */
.kpi-grid .kpi:nth-child(2) { transition-delay: 0.06s; }
.kpi-grid .kpi:nth-child(3) { transition-delay: 0.12s; }
.kpi-grid .kpi:nth-child(4) { transition-delay: 0.18s; }
.kpi-grid .kpi:nth-child(5) { transition-delay: 0.24s; }
.kpi-grid .kpi:nth-child(6) { transition-delay: 0.30s; }

/* Chart bars grow up from the baseline once the dashboard is visible */
.reveal .chart-bar { transform: scaleY(0); transform-origin: bottom; }
.reveal.visible .chart-bar { transform: scaleY(1); transition: transform 0.8s ease 0.3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal .chart-bar { transform: none; transition: none; }
}

/* ==========================================================================
   PHASE S3 ADDITIONS — the blog
   Section 20 styles the blog index cards and the article pages that
   build.js generates from posts/*.md.
   ========================================================================== */

/* ----- 20. BLOG ---------------------------------------------------------------- */

/* --- Index: one card per post, newest first --- */
.post-list { display: grid; gap: 20px; max-width: 760px; }

.post-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  color: var(--text);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.post-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(10, 22, 64, 0.12);
}

/* Date + category line, console-style */
.post-card-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-2);
}

/* Post titles on cards: Anton like every h2, but article-sized */
.post-card h2 { font-size: 1.45rem; margin: 10px 0 8px; }
.post-card p { color: var(--text-muted); font-size: 0.97rem; }

.post-card-more {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-2);
}
.post-card:hover .post-card-more { text-decoration: underline; }

/* --- Article pages --- */
.post { padding: 80px 0; }

/* Comfortable reading measure, narrower than the site container */
.post-wrap { max-width: 720px; }

.post-header { margin-bottom: 36px; }
.post-header h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); margin-top: 12px; }
.post-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 14px;
}

/* Article body typography — sizes chosen for long-form reading */
.post-body { font-size: 1.05rem; }
.post-body p { margin-bottom: 1.15em; }
.post-body h2 { font-size: 1.6rem; margin: 1.6em 0 0.6em; }
.post-body h3 { font-size: 1.15rem; margin: 1.5em 0 0.5em; }
.post-body h4 { font-size: 1rem; margin: 1.4em 0 0.4em; }
.post-body ul, .post-body ol { margin: 0 0 1.15em 1.3em; }
.post-body li { margin-bottom: 0.35em; }
.post-body img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin: 1.4em 0;
}
.post-body blockquote {
  border-left: 3px solid var(--blue);
  padding-left: 18px;
  color: var(--text-muted);
  margin: 0 0 1.15em;
}
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.post-body code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--blue-tint);
  padding: 2px 6px;
  border-radius: 5px;
}

/* --- The CTA band at the end of every post (link carries the post's UTM) --- */
.post-cta {
  margin-top: 56px;
  background: var(--blue-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
}
.post-cta .eyebrow { justify-content: center; }
.post-cta h2 { font-size: 1.6rem; margin: 10px 0 8px; }
.post-cta p { color: var(--text-muted); max-width: 46ch; margin: 0 auto 22px; }

.post-back { margin-top: 12px; }
.post-back a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ----- 21. SOCIAL FOLLOW LINE ----------------------------------------------------
   The small "Follow Krew-Ops — Instagram · LinkedIn" line used on the blog
   index, under each post's CTA, and in the About crew section. (The footer's
   social links just reuse the existing .footer-nav styles.) */
.follow-line {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.follow-line a { color: var(--blue-2); }

/* Footer social icons — sized to sit on the same line as the text links */
.footer-nav .social-icon {
  display: inline-flex;
  align-items: center;
}
.footer-nav .social-icon svg { width: 17px; height: 17px; }
.footer-nav .social-icon:hover { color: var(--blue-2); }
