/* === BRAIN. DESIGN SYSTEM === */
/* Monochrome. Off-white ground. One accent. Linear/Vercel/Mercury aesthetic. */

/* === TOKENS === */
:root {
  --bg: #FAFAF8;
  --bg-surface: #F4F4F2;
  --bg-card: #FFFFFF;
  --fg: #0A0A0A;
  --fg-muted: #525252;
  --fg-dim: #A3A3A3;
  --accent: #1F7A4A;
  --accent-subtle: rgba(31, 122, 74, 0.08);
  --border: #E5E5E2;
  --border-strong: #D4D4D0;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius: 12px;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --max-prose: 640px;
  --max-layout: 1200px;
  --section-v: 112px;
  --section-v-mobile: 64px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* === FOCUS RINGS (WCAG AA) === */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* === TYPOGRAPHY UTILITIES === */
.mono { font-family: var(--font-mono); }
.muted { color: var(--fg-muted); }
.dim { color: var(--fg-dim); }

/* === NAV === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0;
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-layout);
  margin: 0 auto;
  padding: 0 40px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-wordmark {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.nav-wordmark span { color: var(--accent); }
.nav-cta {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  padding: 8px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  transition: border-color 0.15s, background 0.15s;
}
.nav-cta:hover { border-color: var(--fg-dim); background: var(--bg-surface); }

/* === HERO === */
.hero {
  padding: calc(var(--section-v) + 60px) 0 var(--section-v);
  position: relative;
}
.hero-inner {
  max-width: var(--max-layout);
  margin: 0 auto;
  padding: 0 40px;
}
.hero-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-subtle);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 32px;
  letter-spacing: 0.01em;
}
.hero-headline {
  font-size: clamp(48px, 6vw, 68px);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.03em;
  color: var(--fg);
  max-width: 780px;
  margin-bottom: 28px;
}
.hero-sub {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: var(--max-prose);
  margin-bottom: 40px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: #FFFFFF;
  background: var(--fg);
  padding: 12px 24px;
  border-radius: 10px;
  transition: background 0.15s, transform 0.1s;
}
.btn-primary:hover { background: #1a1a1a; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.hero-note {
  font-size: 14px;
  color: var(--fg-dim);
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  max-width: var(--max-prose);
  font-style: italic;
}

/* === PULLQUOTE === */
.pullquote {
  max-width: var(--max-layout);
  margin: 0 auto;
  padding: 0 40px;
}
.pullquote-text {
  font-size: 18px;
  font-style: italic;
  color: var(--fg-muted);
  line-height: 1.6;
  border-left: 2px solid var(--accent);
  padding-left: 24px;
  max-width: 680px;
}
.pullquote-cite {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  font-style: normal;
  color: var(--fg-dim);
}

/* === RECONSTRUCTION TAX === */
.recon {
  padding: var(--section-v) 0;
  border-top: 1px solid var(--border);
}
.recon-inner {
  max-width: var(--max-layout);
  margin: 0 auto;
  padding: 0 40px;
}
.recon-header {
  margin-bottom: 64px;
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-headline {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--fg);
  max-width: 640px;
}
.section-sub {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: var(--max-prose);
  margin-top: 16px;
}
.recon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.recon-col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.recon-col-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 24px;
}
.recon-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--fg-muted);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.recon-item:last-child { border-bottom: none; }
.recon-item.visible {
  opacity: 1;
  transform: translateY(0);
}
.recon-icon {
  width: 28px;
  height: 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.recon-icon svg { width: 14px; height: 14px; stroke: var(--fg-dim); }
.recon-right .recon-item {
  color: var(--fg);
  font-weight: 500;
}
.recon-right .recon-icon { background: var(--accent-subtle); border-color: rgba(31,122,74,0.2); }
.recon-right .recon-icon svg { stroke: var(--accent); }

/* === SECTION SEPARATOR WITH QUOTE === */
.section-quote-wrap {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

/* === PRODUCT PREVIEW === */
.preview {
  padding: var(--section-v) 0;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}
.preview-inner {
  max-width: var(--max-layout);
  margin: 0 auto;
  padding: 0 40px;
}
.preview-header {
  margin-bottom: 48px;
}
/* Product chrome */
.product-chrome {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s;
}
.product-chrome:hover { box-shadow: var(--shadow-hover); }
.chrome-topbar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 0;
  height: 44px;
}
.chrome-dots {
  display: flex;
  gap: 6px;
  margin-right: 16px;
}
.chrome-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}
.chrome-tabs {
  display: flex;
  gap: 0;
  height: 100%;
  align-items: stretch;
}
.chrome-tab {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-dim);
  padding: 0 16px;
  cursor: pointer;
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  transition: color 0.15s, background 0.15s;
  border-bottom: 2px solid transparent;
  user-select: none;
}
.chrome-tab:first-child { border-left: 1px solid var(--border); }
.chrome-tab:hover { color: var(--fg-muted); background: var(--bg); }
.chrome-tab.active {
  color: var(--fg);
  background: var(--bg-card);
  border-bottom-color: var(--accent);
}
.chrome-body {
  padding: 28px;
  min-height: 380px;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Commitment card */
.commitment-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 16px;
}
.commitment-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.commitment-title {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.4;
}
.commitment-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge-silent {
  background: rgba(239,68,68,0.08);
  color: #DC2626;
  border: 1px solid rgba(239,68,68,0.15);
}
.badge-on-track {
  background: var(--accent-subtle);
  color: var(--accent);
  border: 1px solid rgba(31,122,74,0.2);
}
.commitment-meta {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
}
.commitment-meta strong { color: var(--fg); font-weight: 500; }

/* Behavioral surface card */
.behavior-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 16px;
}
.behavior-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 10px;
}
.behavior-stat {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 8px;
}
.behavior-trend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.trend-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 24px;
}
.trend-bar {
  width: 6px;
  background: var(--border-strong);
  border-radius: 2px;
}
.trend-bar.current { background: var(--accent); }
.trend-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-dim);
}
.behavior-note {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* Sources panel */
.sources-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
}
.sources-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 16px;
}
.sources-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.source-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
}
.source-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.source-icon svg { width: 20px; height: 20px; stroke: var(--fg-muted); stroke-width: 1.5; fill: none; }
.source-name {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  font-weight: 500;
}
.source-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
}

/* Open loop items */
.loop-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.loop-item:last-child { border-bottom: none; }
.loop-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
  flex-shrink: 0;
  margin-top: 6px;
}
.loop-dot.urgent { background: #DC2626; }
.loop-dot.pending { background: var(--accent); }
.loop-content { flex: 1; }
.loop-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 4px;
  line-height: 1.4;
}
.loop-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-dim);
}

/* === WHY NOW === */
.why {
  padding: var(--section-v) 0;
  border-top: 1px solid var(--border);
}
.why-inner {
  max-width: var(--max-layout);
  margin: 0 auto;
  padding: 0 40px;
}
.why-header { margin-bottom: 64px; }
.why-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.why-pillar {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.why-number {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.why-pillar h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--fg);
  margin-bottom: 12px;
  line-height: 1.3;
}
.why-pillar p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* === FOR THE OPERATOR === */
.operator {
  padding: var(--section-v) 0;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}
.operator-inner {
  max-width: var(--max-layout);
  margin: 0 auto;
  padding: 0 40px;
}
.operator-header { margin-bottom: 48px; }
.operator-body {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: var(--max-prose);
  margin-bottom: 48px;
}
.works-with-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 20px;
}
.integrations-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.integration-chip {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  gap: 6px;
}
.integration-chip svg { width: 13px; height: 13px; stroke: var(--fg-dim); stroke-width: 1.5; fill: none; }

/* === PRICING === */
.pricing {
  padding: var(--section-v) 0;
  border-top: 1px solid var(--border);
}
.pricing-inner {
  max-width: var(--max-layout);
  margin: 0 auto;
  padding: 0 40px;
}
.pricing-header { margin-bottom: 48px; }
.pricing-card {
  max-width: 480px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 40px;
  box-shadow: var(--shadow-card);
}
.pricing-amount {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 8px;
}
.pricing-amount span {
  font-size: 20px;
  font-weight: 400;
  color: var(--fg-dim);
  letter-spacing: -0.01em;
}
.pricing-period {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-dim);
  margin-bottom: 28px;
}
.pricing-perks {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pricing-perks li {
  font-size: 15px;
  color: var(--fg-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.pricing-perks li::before {
  content: '';
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%231F7A4A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='2 7 5.5 10.5 12 4'/%3E%3C/svg%3E") no-repeat center;
  flex-shrink: 0;
  margin-top: 2px;
}
.pricing-cta {
  width: 100%;
  padding: 14px 24px;
  background: var(--fg);
  color: #FFF;
  font-size: 15px;
  font-weight: 500;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s, transform 0.1s;
}
.pricing-cta:hover { background: #1a1a1a; transform: translateY(-1px); }
.pricing-fine {
  font-size: 13px;
  color: var(--fg-dim);
  margin-top: 16px;
  text-align: center;
}

/* === FOOTER === */
.footer {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  max-width: var(--max-layout);
  margin: 0 auto;
  padding: 0 40px;
}
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 10px;
}
.footer-brand span { color: var(--accent); }
.footer-tagline {
  font-size: 14px;
  color: var(--fg-dim);
  max-width: 320px;
  line-height: 1.55;
  font-style: italic;
}
.footer-email-form { display: flex; flex-direction: column; gap: 12px; max-width: 360px; }
.footer-email-label {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.5;
}
.footer-input-row {
  display: flex;
  gap: 8px;
}
.footer-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--fg);
  background: var(--bg-card);
  outline: none;
  transition: border-color 0.15s;
}
.footer-input:focus { border-color: var(--accent); }
.footer-input::placeholder { color: var(--fg-dim); }
.footer-submit {
  padding: 10px 18px;
  background: var(--fg);
  color: #FFF;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.15s;
}
.footer-submit:hover { background: #1a1a1a; }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 13px; color: var(--fg-dim); }
.footer-contact { font-size: 13px; color: var(--fg-dim); }
.footer-contact a { color: var(--fg-muted); text-decoration: underline; text-underline-offset: 3px; }
.footer-contact a:hover { color: var(--fg); }

/* === MODAL OVERLAY === */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 10, 10, 0.5);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 90%;
  max-width: 600px;
  padding: 32px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  color: var(--fg-dim);
  transition: background 0.15s, color 0.15s;
}
.modal-close:hover { background: var(--bg-surface); color: var(--fg); }
.modal-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--fg);
  margin-bottom: 8px;
}
.modal-sub {
  font-size: 14px;
  color: var(--fg-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}
.calendly-placeholder {
  width: 100%;
  height: 320px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-dim);
}

/* === SCROLL ANIMATIONS === */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  :root { --section-v: 80px; }
  .nav-inner { padding: 0 24px; }
  .hero-inner, .recon-inner, .preview-inner, .why-inner,
  .operator-inner, .pricing-inner, .footer-inner { padding: 0 24px; }
  .why-pillars { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --section-v: var(--section-v-mobile); }
  .hero-headline { font-size: 40px; }
  .recon-grid { grid-template-columns: 1fr; }
  .why-pillars { grid-template-columns: 1fr; gap: 16px; }
  .sources-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .nav-cta { display: none; }
  .pricing-card { padding: 28px 24px; }
}

@media (max-width: 390px) {
  .hero-headline { font-size: 34px; }
  .footer-input-row { flex-direction: column; }
  .footer-submit { width: 100%; }
}

/* === DARK MODE (optional) === */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0B0A;
    --bg-surface: #111110;
    --bg-card: #171716;
    --fg: #F5F5F3;
    --fg-muted: #A3A3A1;
    --fg-dim: #525250;
    --accent: #22A05B;
    --accent-subtle: rgba(34, 160, 91, 0.10);
    --border: #272724;
    --border-strong: #3A3A37;
  }
  .nav { background: rgba(11, 11, 10, 0.85); }
}
