/* ===========================================================
   Backroom OC — Static Marketing Site
   style.css
   One stylesheet. No frameworks. No build step.
   =========================================================== */

/* ----- FONT LOADING ----- */
/* v3: Fraunces removed. Newsreader is now the display + body font — a
   text-optimized serif whose optical sizes and italics work for both roles.
   This is a 2-family system (Newsreader + JetBrains Mono), not 3.
   The detector flagged Fraunces on the 2026 reflex-reject list. */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/newsreader/v20/cY9qfjOCX1h9V3GS3nE6v7Q.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/jetbrainsmono/v20/tDbY2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ----- CUSTOM PROPERTIES ----- */
:root {
  /* Core Canvas & Surfaces */
  --bg: #faf7f2;
  --bg-2: #f3ece0;
  --paper: #ffffff;
  --paper-tint: #fbf9f5;
  --ink: #1c1917;
  --ink-2: #44403c;
  --muted: #57534e;
  --rule: #e5ddd0;
  --rule-subtle: #f0eae1;

  /* Rich Brand & Functional Palette */
  --brick: #c2410c;
  --brick-ink: #9a3412;
  --brick-bg: #fff7ed;
  --brick-border: #fed7aa;
  
  --pacific: #0284c7;
  --pacific-ink: #0369a1;
  --pacific-bg: #f0f9ff;
  --pacific-border: #bae6fd;
  
  --sage: #15803d;
  --sage-ink: #166534;
  --sage-bg: #f0fdf4;
  --sage-border: #bbf7d0;
  
  --amber: #d97706;
  --amber-ink: #b45309;
  --amber-bg: #fffbeb;
  --amber-border: #fde68a;

  --purple: #7e22ce;
  --purple-bg: #faf5ff;
  --purple-border: #e9d5ff;

  --olive: #4f5a2c;
  --gold: #b98a2f;
  --ok: #15803d;

  /* Elevation & Shadows */
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.05);
  --shadow-md: 0 4px 12px rgba(28, 25, 23, 0.06), 0 1px 2px rgba(28, 25, 23, 0.04);
  --shadow-lg: 0 10px 25px -3px rgba(28, 25, 23, 0.08), 0 4px 6px -2px rgba(28, 25, 23, 0.04);

  /* Layout */
  --measure: 52ch;
  --page: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* Typography stacks */
  --font-heading: 'Newsreader', 'Source Serif Pro', Georgia, serif;
  --font-body: 'Newsreader', 'Source Serif Pro', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  /* Section padding */
  --section-pad: clamp(3.5rem, 8vw, 6rem);
}

/* ----- DARK THEME TOKENS ----- */
.dark {
  color-scheme: dark;
  --bg: #0c0a09;
  --bg-2: #191614;
  --paper: #141210;
  --paper-tint: #1a1715;
  --ink: #fafaf9;
  --ink-2: #f5f5f4;
  --muted: #d6d3d1;
  --rule: rgba(255, 255, 255, 0.15);
  --rule-subtle: rgba(255, 255, 255, 0.08);

  --brick: #ea580c;
  --brick-ink: #fb923c;
  --brick-bg: rgba(234, 88, 12, 0.15);
  --brick-border: rgba(234, 88, 12, 0.35);
  
  --pacific: #38bdf8;
  --pacific-ink: #7dd3fc;
  --pacific-bg: rgba(2, 132, 199, 0.18);
  --pacific-border: rgba(56, 189, 248, 0.35);
  
  --sage: #4ade80;
  --sage-ink: #86efac;
  --sage-bg: rgba(21, 128, 61, 0.18);
  --sage-border: rgba(74, 222, 128, 0.35);
  
  --amber: #fbbf24;
  --amber-ink: #fde68a;
  --amber-bg: rgba(217, 119, 6, 0.18);
  --amber-border: rgba(251, 191, 36, 0.35);

  --purple: #c084fc;
  --purple-bg: rgba(126, 34, 206, 0.18);
  --purple-border: rgba(192, 132, 252, 0.35);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.6);
}

.dark select option {
  background: #141210;
  color: #fafaf9;
}

.dark input::placeholder,
.dark textarea::placeholder {
  color: #a8a29e;
}

/* Intentional Circular View Transitions */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-old(root) {
  z-index: 1;
}
::view-transition-new(root) {
  z-index: 9999;
}

/* Theme Toggle Button Micro-Interaction */
.theme-toggle-btn {
  background: var(--paper-tint);
  border: 1px solid var(--rule);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  font-size: 1rem;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, border-color 0.2s ease;
}

.theme-toggle-btn:hover {
  background: var(--bg-2);
  border-color: var(--brick);
  transform: scale(1.08) rotate(12deg);
}

.theme-toggle-btn:active {
  transform: scale(0.92) rotate(-12deg);
}

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

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brick);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brick-ink);
}

a:focus-visible {
  outline: 2px solid var(--brick);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ----- TYPOGRAPHY ----- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.3rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  font-weight: 450;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.35rem;
  font-weight: 500;
}

h4 {
  font-size: 1.1rem;
  font-weight: 500;
}

p, li, blockquote {
  max-width: var(--measure);
  text-wrap: pretty;
}

.lede {
  font-size: 1.2rem;
  color: var(--ink-2);
  max-width: 46ch;
  line-height: 1.55;
  text-wrap: pretty;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

small {
  font-size: 0.84rem;
  color: var(--muted);
}

.live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  display: inline-block;
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.25); }
}

.btn:active {
  transform: scale(0.98) translateY(1px) !important;
}

/* ----- LAYOUT ----- */
.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.wrap-narrow {
  max-width: 780px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}

section + section {
  border-top: 1px solid var(--rule);
}

.section-alt {
  background: var(--bg-2);
}

/* ----- HEADER ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.site-brand {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.site-brand:hover {
  color: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--brick);
}

.site-nav .nav-cta {
  background: var(--brick);
  color: var(--paper);
  padding: 0.4rem 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease;
}

.site-nav .nav-cta:hover {
  background: var(--brick-ink);
  color: var(--paper);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1;
}

.nav-toggle:hover {
  background: var(--bg-2);
}

/* ----- COLD-EMAIL BANNER ----- */
.cold-banner {
  display: none;
  background: var(--brick);
  color: var(--paper);
  text-align: center;
  padding: 0.5rem var(--gutter);
  font-size: 0.85rem;
}

.cold-banner a {
  color: var(--paper);
  text-decoration: underline;
  font-weight: 500;
}

.cold-banner.show {
  display: block;
}

/* ----- BUTTONS ----- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.65rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  line-height: 1.4;
}

.btn-primary {
  background: var(--brick);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--brick-ink);
  color: var(--paper);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}

.btn-outline:hover {
  border-color: var(--brick);
  color: var(--brick);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: transparent;
}

.btn-ghost:hover {
  color: var(--brick);
}

.btn-sm {
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
}

.btn-green {
  background: var(--ok);
  color: var(--paper);
}

.btn-green:hover {
  background: #2e5a2a;
  color: var(--paper);
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}

.btn-gold:hover {
  background: #a07828;
  color: var(--ink);
}

.btn-muted {
  background: var(--muted);
  color: var(--paper);
}

.btn-muted:hover {
  background: #554a3d;
  color: var(--paper);
}

/* ----- HERO ----- */
.hero {
  padding-top: clamp(4rem, 10vw, 7rem);
  padding-bottom: var(--section-pad);
}

.hero-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.hero-text h1 {
  margin-bottom: 1.2rem;
}

.hero-text .lede {
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ----- SCHEMATIC VISUAL CARD (HERO) ----- */
.schematic-box {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.schematic-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule-subtle);
  padding-bottom: 0.85rem;
  margin-bottom: 1.2rem;
}

.schematic-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.2);
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.7; }
}

.schematic-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: var(--brick-bg);
  color: var(--brick);
  border: 1px solid var(--brick-border);
}

.schematic-pipeline {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pipeline-node {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  border: 1px solid var(--rule-subtle);
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.pipeline-node:hover {
  background: var(--paper);
  border-color: var(--rule);
  transform: translateX(3px);
}

.node-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.node-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.node-icon-blue { background: var(--pacific-bg); color: var(--pacific-ink); border: 1px solid var(--pacific-border); }
.node-icon-amber { background: var(--amber-bg); color: var(--amber-ink); border: 1px solid var(--amber-border); }
.node-icon-purple { background: var(--purple-bg); color: var(--purple); border: 1px solid var(--purple-border); }
.node-icon-green { background: var(--sage-bg); color: var(--sage-ink); border: 1px solid var(--sage-border); }
.node-icon-brick { background: var(--brick-bg); color: var(--brick-ink); border: 1px solid var(--brick-border); }

.node-text {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
}

.node-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
}

.node-tag-blue { background: var(--pacific-bg); color: var(--pacific-ink); }
.node-tag-amber { background: var(--amber-bg); color: var(--amber-ink); }
.node-tag-purple { background: var(--purple-bg); color: var(--purple); }
.node-tag-green { background: var(--sage-bg); color: var(--sage-ink); }
.node-tag-brick { background: var(--brick-bg); color: var(--brick-ink); }

.schematic-footer {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--rule-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
}

/* ----- ENTRY POINTS ----- */
.entry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin-top: 1.75rem;
}

.entry-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.entry-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--rule);
  transition: background 0.2s ease;
}

.entry-card-blue::before { background: var(--pacific); }
.entry-card-amber::before { background: var(--amber); }
.entry-card-green::before { background: var(--sage); }

.entry-card:hover {
  transform: translateY(-3px);
  border-color: var(--ink-2);
  box-shadow: var(--shadow-md);
}

.entry-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.entry-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.entry-card .mono {
  display: block;
  margin-bottom: 0;
}

.entry-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
}

.entry-card p {
  font-size: 0.92rem;
  color: var(--ink-2);
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.entry-card-bottom {
  margin-top: auto;
  border-top: 1px solid var(--rule-subtle);
  padding-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.entry-card .entry-price {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brick);
}

.entry-arrow {
  font-size: 1.1rem;
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.entry-card:hover .entry-arrow {
  transform: translateX(4px);
  color: var(--brick);
}

/* ----- OBJECTION KILLER ----- */
.objection-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.objection-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 0;
}

.objection-row + .objection-row {
  border-top: 1px solid var(--rule);
}

.objection-q {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  background: var(--paper-tint);
  border-right: 1px solid var(--rule);
  color: var(--ink);
}

.objection-a {
  padding: 1.25rem 1.5rem;
  font-size: 0.94rem;
  color: var(--ink-2);
  line-height: 1.55;
}

/* ----- LEAD RACE (VISUAL UPGRADE) ----- */
.lead-race-section {
  position: relative;
  overflow: hidden;
}

.lead-race {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 1.75rem;
  box-shadow: var(--shadow-md);
}

.lead-lane {
  padding: 2.25rem 1.75rem;
  min-height: 350px;
  position: relative;
  transition: background 0.3s ease;
}

.lead-lane h4 {
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lead-lane-left {
  background: var(--paper-tint);
  border-right: 1px solid var(--rule);
}

.lead-lane-right {
  background: var(--bg-2);
}

.lead-window {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-2);
  position: absolute;
  width: calc(100% - 3rem);
  transition: transform 0.6s ease, opacity 0.6s ease, border-color 0.4s ease;
  opacity: 0.7;
}

.lead-window.highlight {
  border-color: var(--brick);
  opacity: 1;
  z-index: 2;
}

.lead-window.done {
  opacity: 0.4;
}

.lead-lead {
  background: var(--amber-bg);
  border-color: var(--amber-border);
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--ink);
  z-index: 3;
}

.lead-lead.lost {
  background: var(--brick-bg);
  border-color: var(--brick-border);
  color: var(--brick-ink);
}

.lead-timer {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: var(--bg-2);
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.lead-timer .timer-value {
  font-weight: 500;
  color: var(--ink);
}

.lead-restart {
  text-align: center;
  padding: 0.75rem;
  border-top: 1px solid var(--rule);
}

/* ----- APPROVAL GATE ----- */
.approval-gate {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 1.5rem;
}

.ag-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg-2);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.ag-body {
  padding: 1.5rem;
  min-height: 200px;
}

.ag-phase {
  display: none;
}

.ag-phase.active {
  display: block;
}

.ag-email {
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.ag-email .ag-email-header {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.ag-email .ag-email-body {
  font-size: 0.92rem;
  color: var(--ink-2);
}

.ag-draft {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1rem;
  margin-top: 0.8rem;
}

.ag-draft .ag-draft-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.ag-draft .ag-draft-body {
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.5;
}

.ag-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.ag-spinner {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.ag-spinner .spinner-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--brick);
  border-radius: 50%;
  margin: 0 3px;
  animation: spindot 1.2s infinite ease-in-out;
}

.ag-spinner .spinner-dot:nth-child(2) { animation-delay: 0.2s; }
.ag-spinner .spinner-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes spindot {
  0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.2); }
}

.ag-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
}

.ag-status.sent {
  background: var(--sage-bg);
  color: var(--sage-ink);
  border: 1px solid var(--sage-border);
}

.ag-status.rejected {
  background: var(--brick-bg);
  color: var(--brick-ink);
  border: 1px solid var(--brick-border);
}

.ag-auto {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--ink-2);
}

.ag-auto-toggle {
  position: relative;
  width: 40px;
  height: 22px;
  background: var(--rule);
  border-radius: 11px;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease;
}

.ag-auto-toggle.active {
  background: var(--ok);
}

.ag-auto-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.ag-auto-toggle.active::after {
  transform: translateX(18px);
}

.ag-auto-rule {
  display: none;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-2);
  border-radius: 4px;
  font-size: 0.82rem;
  color: var(--ink-2);
  border: 1px solid var(--rule);
}

.ag-auto-rule.show {
  display: block;
}

.ag-log {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--rule);
  max-height: 150px;
  overflow-y: auto;
}

.ag-log-entry {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  padding: 0.2rem 0;
}

.ag-log-entry + .ag-log-entry {
  border-top: 1px solid var(--rule);
}

.ag-edit-area {
  display: none;
  margin-top: 0.8rem;
}

.ag-edit-area.show {
  display: block;
}

.ag-edit-area textarea {
  width: 100%;
  min-height: 80px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.6rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  resize: vertical;
}

.ag-edit-area textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: -1px;
}

.ag-edit-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

/* ----- PORTFOLIO CARDS ----- */
.case-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.case-card h3 {
  margin-bottom: 0.3rem;
}

.case-card .mono {
  display: block;
  margin-bottom: 0.8rem;
}

.case-card p {
  font-size: 0.92rem;
  color: var(--ink-2);
  margin-bottom: 0.6rem;
}

.case-meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

.case-meta-item .mono {
  display: block;
  margin-bottom: 0.2rem;
}

.case-meta-item .meta-value {
  font-size: 0.95rem;
  color: var(--ink);
}

/* ----- PRICING MATRIX ----- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin-top: 1.75rem;
}

.pricing-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--ink-2);
}

.pricing-card.featured {
  border-color: var(--brick);
  box-shadow: var(--shadow-md);
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brick);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.85rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-sm);
}

.pricing-card .mono {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--muted);
}

.pricing-card h3 {
  margin-bottom: 0.3rem;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ink);
}

.pricing-amount {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--brick);
  margin: 0.8rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
  flex: 1;
}

.pricing-card ul li {
  padding: 0.35rem 0;
  font-size: 0.9rem;
  color: var(--ink-2);
  padding-left: 1.4rem;
  position: relative;
  max-width: none;
  line-height: 1.45;
}

.pricing-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--sage);
  font-weight: 700;
}

.bundle-section {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
}

.bundle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: 1.5rem;
}

.bundle-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.bundle-card:hover {
  transform: translateY(-2px);
  border-color: var(--rule-subtle);
}

.bundle-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.u-bundle-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.bundle-price {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brick);
}

.bundle-save {
  display: inline-block;
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: var(--sage-bg);
  color: var(--sage-ink);
  border: 1px solid var(--sage-border);
}

/* ----- FORM ----- */
.contact-form {
  max-width: 600px;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  color: var(--ink-2);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brick);
  box-shadow: 0 0 0 2px rgba(164, 67, 43, 0.15);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

/* ----- FAQ ----- */
.faq-group {
  margin-bottom: 2rem;
}

.faq-group h3 {
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}

.faq-item {
  border-bottom: 1px solid var(--rule);
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 0.8rem 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-q:hover {
  color: var(--brick);
}

.faq-q::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-q.open::after {
  content: '−';
}

.faq-a {
  display: none;
  padding: 0 0 0.8rem 0;
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.5;
}

.faq-a.open {
  display: block;
}

/* ----- TABLES ----- */
.table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

table th,
table td {
  text-align: left;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--rule);
}

table th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--bg-2);
}

table td {
  color: var(--ink-2);
}

/* ----- COMPARISON TABLE (AI Employee) ----- */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  margin-top: 1.5rem;
}

.compare-col {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.5rem;
}

.compare-col h4 {
  margin-bottom: 0.5rem;
}

.compare-col p {
  font-size: 0.9rem;
  color: var(--ink-2);
  margin-bottom: 0.6rem;
}

.compare-col ul {
  list-style: none;
  padding: 0;
}

.compare-col ul li {
  padding: 0.3rem 0;
  font-size: 0.88rem;
  color: var(--ink-2);
  padding-left: 1.2rem;
  position: relative;
  max-width: none;
}

.compare-col ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--ok);
  font-weight: 500;
}

/* ----- SHARED COMPONENTS ----- */
.steps-list {
  list-style: none;
  counter-reset: step;
}

.steps-list li {
  counter-increment: step;
  padding: 0.6rem 0 0.6rem 2rem;
  position: relative;
  font-size: 0.92rem;
  color: var(--ink-2);
  max-width: none;
}

.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--brick);
  font-weight: 500;
  width: 1.4rem;
  height: 1.4rem;
  border: 1px solid var(--brick);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tag-brick { background: var(--brick); color: var(--paper); }
.tag-olive { background: var(--olive); color: var(--paper); }
.tag-gold { background: var(--gold); color: var(--ink); }
.tag-muted { background: var(--bg-2); color: var(--muted); border: 1px solid var(--rule); }

.trust-list {
  list-style: none;
  padding: 0;
}

.trust-list li {
  padding: 0.3rem 0;
  font-size: 0.9rem;
  color: var(--ink-2);
  padding-left: 1.4rem;
  position: relative;
  max-width: none;
}

.trust-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--brick);
}

/* ----- FOOTER ----- */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--rule);
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: var(--gutter);
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--ink-2);
  margin-top: 0.5rem;
}

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: var(--ink-2);
  text-decoration: none;
  padding: 0.15rem 0;
}

.footer-col a:hover {
  color: var(--brick);
}

.footer-legal {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-legal a {
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 2px;
  transition: color 200ms ease;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--ink);
  text-decoration-color: var(--brick);
}

/* ----- 404 ----- */
.error-page {
  text-align: center;
  padding: clamp(4rem, 12vw, 8rem) var(--gutter);
}

.error-page h1 {
  font-size: clamp(4rem, 12vw, 8rem);
  color: var(--rule);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.error-page .lede {
  margin: 0 auto 1.5rem;
}

/* ----- REDUCED MOTION ----- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .lead-window {
    transition: none !important;
  }

  .ag-spinner .spinner-dot {
    animation: none !important;
    opacity: 1;
  }
}

/* ----- RESPONSIVE: 720px BREAKPOINT ----- */
@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    padding: 1rem var(--gutter);
    gap: 0.8rem;
    z-index: 100;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav .nav-cta {
    text-align: center;
  }

  .hero-split {
    grid-template-columns: 1fr;
  }

  .entry-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .bundle-grid {
    grid-template-columns: 1fr;
  }

  .compare-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .lead-race {
    grid-template-columns: 1fr;
  }

  .lead-lane {
    min-height: 280px;
  }

  .lead-window {
    position: static;
    width: 100%;
    margin-bottom: 0.4rem;
  }

  .objection-row {
    grid-template-columns: 1fr;
  }

  .objection-q {
    border-right: none;
    border-bottom: 1px solid var(--rule);
  }

  .case-meta {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* ----- ABOUT PAGE ----- */

.operator-mark {
  width: 64px;
  height: 64px;
  display: block;
  color: var(--brick);
  margin-bottom: 0.5rem;
}

.operator-mark-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.hero-side-about {
  color: var(--ink);
}

.quick-facts {
  margin-top: 0.5rem;
}

.quick-fact {
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--rule);
}

.quick-fact:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.quick-fact dt {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.quick-fact dd {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
}

.quick-fact-note {
  color: var(--muted);
  font-size: 0.85rem;
  display: inline-block;
  margin-top: 0.15rem;
}

.career-block {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.career-block:first-of-type {
  border-top: none;
  padding-top: 1rem;
  margin-top: 1.5rem;
}

.career-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.career-block h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.career-block p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 60ch;
}

.portfolio-link-section {
  background: var(--bg-2);
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.portfolio-link-card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: background-color 350ms ease, border-color 350ms ease, transform 350ms ease, box-shadow 350ms ease;
}

.portfolio-link-card:hover,
.portfolio-link-card:focus-visible {
  background: var(--bg);
  border-color: var(--brick);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px color-mix(in oklab, var(--ink) 8%, transparent);
}

.portfolio-link-card:focus-visible {
  outline: 2px solid var(--brick);
  outline-offset: 4px;
}

.portfolio-link-kicker {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brick);
  margin-bottom: 0.25rem;
}

.portfolio-link-card h3 {
  margin: 0.5rem 0 1rem;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
}

.portfolio-link-card p {
  color: var(--ink-2);
  margin-bottom: 1.5rem;
  max-width: 55ch;
}

.portfolio-link-cta {
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: none;
  font-family: var(--font-heading);
  padding: 0.85rem 1.5rem;
  pointer-events: none; /* the whole card is the link */
}

.portfolio-link-meta {
  display: block;
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.contact-card {
  display: grid;
  gap: 0.75rem;
}

.contact-row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  align-items: baseline;
  gap: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}

.contact-row:last-child {
  border-bottom: none;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.contact-value {
  color: var(--ink-2);
}

.footer-brand-meta,
.footer-contact-phone,
.footer-contact-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

.footer-contact-phone {
  color: var(--ink-2);
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

/* a11y: skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  z-index: 200;
  text-decoration: none;
}

.skip-link:focus,
.skip-link:focus-visible {
  left: 1rem;
  top: 1rem;
  outline: 2px solid var(--brick);
  outline-offset: 2px;
}

/* a11y: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .portfolio-link-card,
  .career-block {
    transition: none !important;
    transform: none !important;
  }
  .portfolio-link-card:hover,
  .portfolio-link-card:focus-visible {
    transform: none !important;
  }
}

/* ----- TYPE HIERARCHY (v3) ----- */

.faq-cta-line {
  font-size: 1.05rem;
  color: var(--ink-2);
  margin-bottom: 1rem;
  font-weight: 500;
}

.price-tag {
  font-size: 1.5rem;
  font-family: var(--font-heading);
  color: var(--brick);
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.price-included {
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.price-tagline {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0;
}

/* ----- UTILITIES (v3) ----- */

.u-mt-0 { margin-top: 0; }
.u-mt-1 { margin-top: 1rem; }
.u-mt-2 { margin-top: 2rem; }
.u-mt-auto { margin-top: auto; }
.u-mb-0 { margin-bottom: 0; }
.u-mb-half { margin-bottom: 0.5rem; }

.u-brand-meta {
  font-size: 0.82rem;
  margin-top: 0.5rem;
  color: var(--muted);
}

.u-bundle-desc {
  font-size: 0.85rem;
  color: var(--ink-2);
  margin: 0.5rem 0;
}

.u-cursor-default { cursor: default; }

.u-process-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0;
}

.u-small-body { font-size: 0.9rem; }
