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

:root {
  --paper:      #f0ead8;
  --paper-2:    #e8e2cf;
  --paper-3:    #dfd9c7;
  --ink:        #111108;
  --ink-soft:   #3a3830;
  --ink-muted:  #7a7060;
  --ink-dim:    #b0a898;
  --red:        #bf2a11;
  --red-hover:  #9e2209;
  --line:       #c8bfaa;
  --dispatch:   #0b0b08;
  --term-green: #4dff91;
  --term-amber: #ffcc44;
  --term-blue:  #66ccff;
  --term-red:   #ff6655;
  --term-dim:   #555548;
  --term-text:  #d8d8cc;

  --serif:  'Fraunces', Georgia, serif;
  --body:   'Libre Baskerville', Georgia, serif;
  --mono:   'Courier Prime', 'Courier New', monospace;
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; }
strong { font-weight: 700; }
em { font-style: italic; }

/* ─── TICKER ─── */
.ticker-wrap {
  background: var(--ink);
  overflow: hidden;
  height: 32px;
  display: flex; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ticker-track {
  display: inline-flex; align-items: center; gap: 0;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,0.55);
}
.ticker-track:hover { animation-play-state: paused; }
.tick-item { padding: 0 28px; }
.tick-label {
  color: var(--term-green);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-right: 10px;
}
.tick-sep { color: rgba(255,255,255,0.2); padding: 0 4px; }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── MASTHEAD ─── */
.masthead {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 3px double var(--line);
}
.masthead-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 24px;
}
.masthead-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-muted);
  display: flex; align-items: center; gap: 8px;
}
.masthead-meta-right { justify-content: flex-end; gap: 16px; }
.masthead-title { text-align: center; }
.masthead-pre {
  font-family: var(--mono);
  font-size: 9px; letter-spacing: 0.2em;
  color: var(--ink-muted); text-transform: uppercase;
  line-height: 1; margin-bottom: 1px;
}
.masthead-wordmark {
  font-family: var(--serif);
  font-size: 28px; font-weight: 800;
  letter-spacing: -0.5px; line-height: 1;
  color: var(--ink);
}
.masthead-sub-line {
  font-family: var(--mono);
  font-size: 9px; letter-spacing: 0.1em;
  color: var(--ink-muted); line-height: 1;
  margin-top: 3px; text-transform: uppercase;
}
.slots-indicator {
  font-family: var(--mono); font-size: 11px;
  color: var(--red); font-weight: 700;
}
.masthead-cta {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  padding: 6px 16px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.masthead-cta:hover { background: var(--red); border-color: var(--red); }

/* ─── HERO ─── */
.hero {
  border-bottom: 1px solid var(--line);
  padding: 0 32px 64px;
  max-width: 1200px; margin: 0 auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 0;
  align-items: start;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

/* Copy column */
.hero-copy {
  padding: 56px 48px 48px 40px;
  border-right: 1px solid var(--line);
}
.hero-kicker {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--red); margin-bottom: 24px;
  display: flex; align-items: center; gap: 8px;
}
.hero-kicker::before {
  content: '';
  display: inline-block; width: 24px; height: 2px;
  background: var(--red); flex-shrink: 0;
}
.hero-headline {
  font-family: var(--serif);
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -3px;
  color: var(--ink);
  margin-bottom: 32px;
}
.hero-headline em {
  font-style: italic;
  font-weight: 300;
  color: var(--red);
}
.hero-body {
  font-size: 17px; line-height: 1.75;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }

.btn-claim {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  border: 2px solid var(--ink);
  padding: 14px 28px;
  text-decoration: none; cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-claim:hover { background: var(--red); border-color: var(--red); }
.btn-full { width: 100%; text-align: center; }
.btn-large { font-size: 14px; padding: 18px 32px; }

.btn-read {
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink-muted);
  text-decoration: none; padding: 14px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.15s, border-color 0.15s;
}
.btn-read:hover { color: var(--ink); border-color: var(--ink); }

.urgency-strip {
  display: flex; flex-direction: column; gap: 8px;
}
.urgency-bar {
  height: 4px; background: var(--line); position: relative;
}
.urgency-fill {
  position: absolute; left: 0; top: 0; height: 100%;
  width: 20%; /* 2/10 slots taken */
  background: var(--red);
  transition: width 1s ease;
}
.urgency-text {
  font-family: var(--mono); font-size: 12px; color: var(--ink-muted);
}
.urgency-text strong { color: var(--ink); }

/* Org chart column */
.hero-chart {
  padding: 40px 28px 40px;
  display: flex; flex-direction: column; align-items: center;
  gap: 0;
  background: var(--paper-2);
}
.chart-label-top {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-dim);
  margin-bottom: 20px; text-align: center;
}
.chart-row { display: flex; justify-content: center; width: 100%; }

/* Chart nodes */
.chart-node {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; text-align: center;
  border: 2px solid var(--ink);
  padding: 14px 20px;
  background: var(--paper);
  position: relative;
}
.chart-node-customer {
  border-color: var(--red);
  min-width: 200px;
}
.chart-node-cto {
  background: var(--ink);
  min-width: 220px;
}
.chart-node-agent {
  min-width: 80px; max-width: 88px;
  padding: 10px 8px;
  border-width: 1.5px;
}

.cn-role {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 700;
  color: var(--ink);
}
.chart-node-cto .cn-role { color: var(--paper); }

.cn-title {
  font-family: var(--body); font-size: 11px;
  color: var(--ink-muted);
  font-style: italic;
}
.chart-node-cto .cn-title { color: rgba(240,234,216,0.6); }

.cn-badge {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--red);
  border-top: 1px solid var(--line);
  padding-top: 6px; margin-top: 4px;
  width: 100%; text-align: center;
}

.cn-live {
  display: flex; align-items: center; gap: 6px;
  margin-top: 6px; padding-top: 6px;
  border-top: 1px solid rgba(240,234,216,0.15);
  width: 100%; justify-content: center;
}
.cn-live span:last-child {
  font-family: var(--mono); font-size: 9px;
  color: var(--term-green); letter-spacing: 0.04em;
}

.cn-icon {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--ink); color: var(--paper);
  padding: 2px 5px; margin-bottom: 4px;
}
.chart-node-agent .cn-role { font-size: 9px; }
.cn-live-sm {
  display: flex; align-items: center; gap: 4px;
  margin-top: 4px;
}
.cn-live-sm .agent-status {
  font-family: var(--mono); font-size: 8px; color: var(--ink-dim);
}

/* Live dot */
.live-dot {
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--term-green);
  flex-shrink: 0;
  animation: live-pulse 2s ease-in-out infinite;
}
.live-dot-sm { width: 5px; height: 5px; }
@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
}

/* Connectors */
.chart-connector { display: flex; flex-direction: column; align-items: center; gap: 0; height: 72px; }
.chart-connector-down { position: relative; }
.conn-line { flex: 1; width: 2px; background: var(--ink); }
.conn-msg {
  display: flex; align-items: center; gap: 6px;
  background: var(--paper-3);
  border: 1px solid var(--line);
  padding: 3px 10px;
  font-family: var(--mono); font-size: 9px; color: var(--ink-soft);
  white-space: nowrap;
  animation: msg-appear 0.4s ease-out;
}
@keyframes msg-appear {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.conn-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--term-green); flex-shrink: 0; }

/* T-connector */
.chart-connector-tree {
  width: 100%; display: flex; flex-direction: column; align-items: center;
  height: 52px; position: relative;
}
.tree-stem { width: 2px; height: 16px; background: var(--ink); }
.tree-branch {
  height: 2px;
  width: calc(100% - 40px);
  background: var(--ink);
}
.tree-drops {
  width: calc(100% - 40px);
  display: flex; justify-content: space-between;
}
.tree-drop { width: 2px; height: 24px; background: var(--ink); }

.chart-agents {
  display: flex; gap: 8px; width: 100%; justify-content: space-between;
  padding: 0 4px;
}
.chart-override {
  margin-top: 20px;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  width: 100%;
}
.override-text {
  font-family: var(--mono); font-size: 9px; color: var(--ink-dim);
  text-align: center; display: block;
}
.override-text strong { color: var(--ink-muted); }

/* ─── SECTION RULE ─── */
.section-rule {
  display: flex; align-items: center;
  padding: 0 32px;
  max-width: 1200px; margin: 0 auto;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.section-rule::before, .section-rule::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}
.section-rule span {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-dim);
  padding: 0 16px; flex-shrink: 0;
}
.section-rule-inv {
  background: var(--dispatch);
  border-color: rgba(255,255,255,0.06);
}
.section-rule-inv::before, .section-rule-inv::after { background: rgba(255,255,255,0.08); }
.section-rule-inv span { color: rgba(255,255,255,0.2); }

/* ─── SHARED SECTION ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 680px; margin: 0 auto; padding: 0 32px; }

.section-headline {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 12px;
}
.section-headline-inv { color: var(--paper); }
.section-deck {
  font-family: var(--body); font-size: 16px; font-style: italic;
  color: var(--ink-muted); margin-bottom: 48px;
}
.section-deck-inv { color: rgba(240,234,216,0.5); }

/* ─── HOW IT WORKS ─── */
.section-how {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}
.section-how .container { border-left: 1px solid var(--line); border-right: 1px solid var(--line); padding: 0 64px 0 40px; }
.how-columns {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  gap: 0;
  align-items: start;
}
.how-col { padding: 8px 40px 8px 0; }
.how-col:last-child { padding-right: 0; padding-left: 40px; }
.how-col:nth-child(3) { padding-left: 40px; padding-right: 40px; }
.how-divider { background: var(--line); height: auto; width: 1px; }
.how-num {
  font-family: var(--serif);
  font-size: 56px; font-weight: 300; font-style: italic;
  color: var(--line); line-height: 1;
  margin-bottom: 16px;
}
.how-title {
  font-family: var(--serif);
  font-size: 20px; font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
}
.how-body { font-size: 14px; color: var(--ink-soft); line-height: 1.75; }

/* ─── DEPT TABLE ─── */
.section-dept {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}
.section-dept .container { border-left: 1px solid var(--line); border-right: 1px solid var(--line); padding: 0 40px; }
.dept-table { border-top: 2px solid var(--ink); }
.dept-row {
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  gap: 0;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  align-items: start;
}
.dept-row-header {
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  gap: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-muted);
}
.dept-row-override { background: var(--paper-2); }
.dept-role { display: flex; align-items: center; gap: 10px; padding-right: 24px; }
.dept-badge {
  font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: 0.08em;
  background: var(--ink); color: var(--paper);
  padding: 3px 7px; flex-shrink: 0;
}
.dept-badge-cto { background: var(--red); }
.dept-badge-human { background: var(--ink-muted); }
.dept-name { font-family: var(--body); font-size: 14px; font-weight: 700; }
.dept-desc { font-size: 13px; color: var(--ink-soft); line-height: 1.6; padding: 0 24px; }
.dept-tags { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 16px; }
.tag {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-muted);
  border: 1px solid var(--line);
  padding: 3px 8px;
}

/* ─── DISPATCH / TERMINAL ─── */
.section-dispatch {
  background: var(--dispatch);
  padding: 64px 0;
}
.section-dispatch .container { border-left: 1px solid rgba(255,255,255,0.05); border-right: 1px solid rgba(255,255,255,0.05); padding: 0 40px; }
.dispatch-header { margin-bottom: 40px; }

.terminal {
  border: 1px solid rgba(255,255,255,0.1);
  max-width: 820px;
}
.terminal-bar {
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 10px 16px;
  display: flex; align-items: center; gap: 12px;
}
.t-controls { display: flex; gap: 6px; }
.t-dot { width: 11px; height: 11px; border-radius: 50%; }
.t-red { background: #ff5f56; }
.t-yellow { background: #ffbd2e; }
.t-green { background: #27c93f; }
.t-title { font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,0.25); flex: 1; text-align: center; }
.t-live { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; color: var(--term-green); }

.terminal-body {
  padding: 24px 28px;
  display: flex; flex-direction: column; gap: 6px;
  max-height: 360px; overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.t-line {
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--mono); font-size: 12px;
  line-height: 1.6;
}
.t-ts { color: var(--term-dim); flex-shrink: 0; }
.t-a {
  font-size: 9px; font-weight: 700; letter-spacing: 0.08em;
  padding: 1px 6px; flex-shrink: 0; min-width: 38px; text-align: center;
}
.t-a-cto { background: rgba(77,255,145,0.12); color: var(--term-green); }
.t-a-fe  { background: rgba(102,204,255,0.12); color: var(--term-blue); }
.t-a-be  { background: rgba(255,204,68,0.12);  color: var(--term-amber); }
.t-a-ops { background: rgba(77,255,145,0.07);  color: rgba(77,255,145,0.7); }
.t-a-qa  { background: rgba(255,102,85,0.12);  color: var(--term-red); }
.t-t { color: var(--term-text); flex: 1; }
.t-url { color: var(--term-blue); text-decoration: underline; cursor: pointer; }
.t-line-done .t-t { color: var(--term-green); }
.t-cursor { font-family: var(--mono); color: var(--term-green); font-size: 14px; animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ─── PRICING ─── */
.section-pricing {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}
.section-pricing .container { border-left: 1px solid var(--line); border-right: 1px solid var(--line); padding: 0 40px; }
.pricing-spread {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0;
  border-top: 2px solid var(--ink);
}
.pricing-divider { background: var(--line); }

.pricing-card { padding: 40px 40px 40px 0; display: flex; flex-direction: column; gap: 20px; }
.pricing-card-future { padding: 40px 0 40px 40px; opacity: 0.65; }
.pricing-eyebrow {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--red);
}
.pricing-eyebrow-dim { color: var(--ink-muted); }
.pricing-amount {
  font-family: var(--serif); font-size: 72px; font-weight: 800;
  letter-spacing: -3px; line-height: 1;
  color: var(--ink);
}
.pricing-amount sup { font-size: 28px; font-weight: 300; letter-spacing: 0; vertical-align: super; }
.pricing-amount-dim { color: var(--ink-muted); }
.pricing-name { font-family: var(--serif); font-size: 20px; font-weight: 700; font-style: italic; }
.pricing-name-dim { color: var(--ink-muted); }
.pricing-list {
  list-style: none; display: flex; flex-direction: column; gap: 10px;
  border-top: 1px solid var(--line); padding-top: 20px;
}
.pricing-list li { font-size: 14px; color: var(--ink-soft); padding-left: 20px; position: relative; }
.pricing-list li::before { content: '—'; position: absolute; left: 0; color: var(--ink-dim); }
.pricing-list-dim li, .pricing-list-dim li::before { color: var(--ink-dim); }
.pricing-locked {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-dim);
  border: 1px dashed var(--line); padding: 12px 16px; text-align: center;
}
.pricing-footnote { font-family: var(--mono); font-size: 11px; color: var(--ink-muted); line-height: 1.5; }
.pricing-footnote-dim { color: var(--ink-dim); }

/* ─── CLAIM ─── */
.section-claim { padding: 80px 0; }
.claim-block {
  display: flex; flex-direction: column; gap: 20px;
  border: 2px solid var(--ink);
  padding: 48px;
}
.claim-eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--red); display: flex; align-items: center; gap: 8px;
}
.claim-headline {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800; letter-spacing: -1.5px; line-height: 1.05;
}
.claim-headline em { font-style: italic; font-weight: 300; color: var(--red); }
.claim-body { font-size: 16px; color: var(--ink-soft); }

.claim-form { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-muted);
}
.form-input {
  font-family: var(--body); font-size: 15px; color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-bottom: 2px solid var(--ink);
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  -webkit-appearance: none; appearance: none;
}
.form-input:focus {
  background: var(--paper);
  border-color: var(--line);
  border-bottom-color: var(--red);
}
.form-input::placeholder { color: var(--ink-dim); font-style: italic; }
.form-textarea { min-height: 96px; resize: vertical; }
.form-note {
  font-family: var(--mono); font-size: 11px; color: var(--ink-dim);
  text-align: center; line-height: 1.5;
}

/* ─── FOOTER ─── */
.footer {
  background: var(--ink);
  padding: 28px 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-brand {
  font-family: var(--serif); font-size: 20px; font-weight: 800;
  color: var(--paper);
}
.footer-brand em { font-style: italic; font-weight: 300; color: rgba(240,234,216,0.5); }
.footer-text { font-family: var(--mono); font-size: 11px; color: rgba(240,234,216,0.35); }
.footer-text a { color: rgba(240,234,216,0.55); text-decoration: none; }
.footer-text a:hover { color: var(--paper); }
.footer-email { font-family: var(--mono); font-size: 11px; color: rgba(240,234,216,0.4); text-decoration: none; }
.footer-email:hover { color: var(--paper); }

/* ─── RESPONSIVE ─── */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { border-right: none; border-bottom: 1px solid var(--line); padding: 40px 24px; }
  .hero-chart { padding: 32px 24px; }
  .masthead-meta-left { display: none; }
  .how-columns { grid-template-columns: 1fr; }
  .how-divider { height: 1px; width: 100%; }
  .how-col, .how-col:last-child, .how-col:nth-child(3) { padding: 24px 0; }
  .dept-row, .dept-row-header { grid-template-columns: 1fr; }
  .dept-desc { padding: 8px 0; }
  .dept-tags { padding-left: 0; margin-top: 8px; }
  .pricing-spread { grid-template-columns: 1fr; }
  .pricing-divider { height: 1px; width: 100%; }
  .pricing-card, .pricing-card-future { padding: 32px 0; }
  .claim-block { padding: 28px 20px; }
  .section-how .container, .section-dept .container, .section-pricing .container, .section-dispatch .container { padding: 0 20px; }
  .hero { padding: 0 16px 40px; }
  .hero-grid { border-left: none; border-right: none; }
  .chart-agents { gap: 6px; }
  .chart-node-agent { min-width: 70px; }
}
