/* ReplyGAI — coming soon. Design tokens per HANDOFF-README.md. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/archivo-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibmplexmono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibmplexmono-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibmplexmono-500.woff2') format('woff2');
}

:root {
  --bg: #100E0C;
  --bg-alt: #0B0A08;
  --card: #17140F;
  --card-alt: #14110D;
  --card-autopilot: #1A130D;
  --border: #221F1B;
  --border-card: #2E2A25;
  --text: #F2EDE5;
  --text-body: #B8AFA3;
  --text-muted: #8A8177;
  --text-faint: #7A7268;
  --text-fine: #5C554D;
  --accent: #C25A2E;
  --accent-light: #E08350;
  --ai-bubble-text: #16110C;
  --lead-bubble-bg: #26221C;
  --lead-bubble-text: #E8E2D8;
  --font-sans: 'Archivo', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-light); text-decoration: none; }
a:hover { color: #F0A075; }
::selection { background: var(--accent); color: var(--bg); }

@keyframes buzz {
  0%, 100% { transform: rotate(0); }
  4% { transform: rotate(-2deg); }
  8% { transform: rotate(2deg); }
  12% { transform: rotate(-1.5deg); }
  16% { transform: rotate(1.5deg); }
  20% { transform: rotate(0); }
}
@keyframes glowpulse {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}

.wrap { max-width: 1100px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px 0 24px;
}
.wordmark { font-weight: 900; font-size: 20px; letter-spacing: -0.02em; }
.wordmark .accent { color: var(--accent-light); }
.pill {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid var(--border-card);
  border-radius: 999px;
  padding: 6px 14px;
}

/* Hero */
.hero { max-width: 1100px; margin: 0 auto; padding: 96px 24px 72px 24px; }
.hero h1 {
  font-size: clamp(40px, 6.2vw, 76px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 15ch;
  text-wrap: balance;
}
.hero h1.line2 { margin: 8px 0 0 0; max-width: 20ch; color: var(--accent-light); }
.hero .subhead {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
  color: var(--text-body);
  max-width: 52ch;
  margin: 28px 0 0 0;
  text-wrap: pretty;
}
.hero .cta-row { display: flex; align-items: center; gap: 18px; margin-top: 40px; flex-wrap: wrap; }
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-weight: 800;
  font-size: 17px;
  padding: 16px 32px;
  border-radius: 10px;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background-color .15s ease;
}
.btn-primary:hover, .btn-primary:focus-visible { background: var(--accent-light); color: var(--bg); }
.hero .side-note { font-family: var(--font-mono); font-size: 13px; color: var(--text-faint); }

/* Problem */
.section-problem { border-top: 1px solid var(--border); background: var(--bg-alt); }
.section-problem .inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 88px 24px;
  display: flex;
  flex-wrap: wrap-reverse;
  gap: 64px;
  align-items: center;
  justify-content: center;
}
.phone-card-wrap { display: flex; justify-content: center; }
.phone-card {
  width: 320px;
  background: var(--card);
  border: 1px solid var(--border-card);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  animation: buzz 4s ease-in-out infinite;
  transform-origin: 50% 100%;
}
.phone-card .time { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); text-align: center; }
.phone-card .msg {
  margin-top: 14px;
  background: #211D17;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.phone-card .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--border-card);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-body);
}
.phone-card .msg-title { font-weight: 700; font-size: 14px; }
.phone-card .msg-body { font-size: 14px; color: var(--text-body); margin-top: 2px; }
.phone-card .seen {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  text-align: center;
  animation: glowpulse 2.6s ease-in-out infinite;
}
.problem-copy { flex: 1 1 420px; min-width: 280px; }
.problem-copy h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  max-width: 22ch;
  text-wrap: balance;
}
.problem-copy p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-body);
  max-width: 52ch;
  margin: 20px 0 0 0;
  text-wrap: pretty;
}
.problem-copy p + p { margin-top: 16px; }

/* Section shared */
.section { border-top: 1px solid var(--border); }
.section.alt { background: var(--bg-alt); }
.section .inner { max-width: 1100px; margin: 0 auto; padding: 88px 24px; }
.kicker { font-family: var(--font-mono); font-size: 13px; color: var(--accent-light); letter-spacing: .08em; }
.section h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 12px 0 0 0;
  max-width: 24ch;
  text-wrap: balance;
}
.section h2.no-kicker { margin-top: 0; }
.section .lede { font-size: 17px; color: var(--text-muted); margin: 14px 0 0 0; max-width: 52ch; }

/* Conversation */
.thread { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 48px; max-width: 780px; }
.msg-row { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; margin-bottom: 28px; }
.msg-bubble-wrap { flex: 1 1 320px; max-width: 480px; display: flex; }
.msg-bubble-wrap.lead { justify-content: flex-start; }
.msg-bubble-wrap.ai { justify-content: flex-end; }
.bubble {
  max-width: 40ch;
  padding: 14px 18px;
  border-radius: 20px;
  font-size: 16px;
  line-height: 1.45;
}
.bubble.lead { background: var(--lead-bubble-bg); color: var(--lead-bubble-text); border-bottom-left-radius: 6px; }
.bubble.ai { background: var(--accent); color: var(--ai-bubble-text); border-bottom-right-radius: 6px; }
.annotation {
  flex: 1 1 220px;
  min-width: 220px;
  border-left: 2px solid var(--accent);
  padding: 2px 0 2px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-body);
}
.thread-timestamp {
  max-width: 480px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-fine);
  padding-right: 6px;
}

.tire-kicker {
  margin-top: 72px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(24px, 4vw, 40px);
  max-width: 780px;
}
.tire-kicker .row { display: flex; flex-wrap: wrap; gap: 20px 24px; align-items: center; margin-top: 28px; }
.tire-kicker .bubbles { flex: 1 1 320px; max-width: 480px; display: flex; flex-direction: column; gap: 12px; }
.tire-kicker .bubble.lead { align-self: flex-start; }
.tire-kicker .bubble.ai { align-self: flex-end; }

/* Three brains */
.brains-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 48px; }
.brain-card { background: var(--card); border: 1px solid var(--border-card); border-radius: 16px; padding: 28px; }
.brain-card .num { font-family: var(--font-mono); font-size: 12px; color: var(--accent-light); }
.brain-card h3 { font-size: 21px; font-weight: 800; margin: 10px 0 0 0; letter-spacing: -0.01em; }
.brain-card p { font-size: 15px; line-height: 1.6; color: var(--text-body); margin: 10px 0 0 0; text-wrap: pretty; }
.brains-footnote { font-family: var(--font-mono); font-size: 13px; color: var(--text-faint); margin: 32px 0 0 0; }

/* Differentiators */
.diffs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 36px 48px; margin-top: 52px; }
.diff-item { display: flex; flex-direction: column; gap: 8px; }
.diff-item h3 { font-size: 18px; font-weight: 800; margin: 0; letter-spacing: -0.01em; }
.diff-item p { font-size: 15px; line-height: 1.6; color: var(--text-body); margin: 0; text-wrap: pretty; }

.modes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 64px; }
.mode-card { border: 1px solid var(--border-card); border-radius: 16px; padding: 28px; background: var(--card-alt); }
.mode-card.autopilot { border-color: var(--accent); background: var(--card-autopilot); }
.mode-card .head { display: flex; align-items: center; gap: 12px; }
.mode-card h3 { font-size: 22px; font-weight: 900; margin: 0; }
.mode-pill { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); border: 1px solid var(--border-card); border-radius: 999px; padding: 4px 10px; }
.mode-card.autopilot .mode-pill { color: var(--accent-light); border-color: var(--accent); }
.mode-card p { font-size: 15px; line-height: 1.6; color: var(--text-body); margin: 12px 0 0 0; text-wrap: pretty; }

/* Credibility */
.credibility .inner { max-width: 780px; margin: 0 auto; padding: 88px 24px; text-align: center; }
.credibility .quote {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
.credibility .founder-line { font-size: 16px; line-height: 1.6; color: var(--text-muted); margin: 24px 0 0 0; text-wrap: pretty; }

/* CTA */
.cta .inner { max-width: 640px; margin: 0 auto; padding: 96px 24px 80px 24px; text-align: center; }
.cta h2 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 900; letter-spacing: -0.03em; margin: 0; }
.cta .body { font-size: 18px; line-height: 1.6; color: var(--text-body); margin: 18px auto 0 auto; max-width: 44ch; text-wrap: pretty; }

.signup-form { display: flex; flex-direction: column; gap: 12px; margin-top: 36px; text-align: left; }
.field-input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 16px;
  color: var(--text);
  font-family: var(--font-sans);
  outline: none;
  transition: border-color .15s ease;
}
.field-input:focus { border-color: var(--accent); }
.field-input::placeholder { color: var(--text-faint); }
select.field-input { appearance: none; padding: 16px 14px; }
.honeypot-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}
.form-error {
  display: none;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-light);
}
.form-error.visible { display: block; }
.signup-form .btn-primary { width: 100%; padding: 17px; }
.signup-form .btn-primary:disabled { opacity: .6; cursor: default; }

.success-card {
  display: none;
  margin-top: 36px;
  border: 1px solid var(--accent);
  border-radius: 14px;
  padding: 28px;
  background: var(--card-autopilot);
  text-align: left;
}
.success-card.visible { display: block; }
.success-card .heading { font-weight: 800; font-size: 19px; }
.success-card .body { font-size: 15px; color: var(--text-body); margin-top: 8px; }

.fine-print { font-family: var(--font-mono); font-size: 12px; color: var(--text-fine); margin: 20px 0 0 0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-fine);
}
.site-footer .accent { color: var(--text-muted); }

@media (max-width: 640px) {
  .section .inner, .hero, .section-problem .inner { padding-left: 20px; padding-right: 20px; }
}
