:root {
  color-scheme: light;
  --ink: #17201d;
  --muted: #61706a;
  --line: #d9e1dc;
  --paper: #f7f8f4;
  --surface: #ffffff;
  --accent: #16624f;
  --accent-2: #b73e28;
  --steel: #24323f;
  --blue: #2364aa;
  --amber: #d29c2f;
  --shadow: 0 18px 50px rgba(23, 32, 29, 0.11);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

code {
  background: #edf2ef;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.05rem 0.3rem;
}

.topbar {
  align-items: center;
  background: rgba(247, 248, 244, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  height: 64px;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 56px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 6px;
}

.nav a {
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  padding: 0.45rem 0.7rem;
  text-decoration: none;
}

.nav a.active,
.nav a:hover {
  background: #e6eee9;
  color: var(--ink);
}

.hero {
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.8fr);
  min-height: calc(100vh - 64px);
  padding: clamp(34px, 6vw, 82px) clamp(18px, 6vw, 88px) clamp(42px, 7vw, 92px);
}

.hero-copy {
  align-self: center;
  max-width: 760px;
}

.eyebrow {
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 0.65rem;
  text-transform: uppercase;
}

h1,
h2 {
  letter-spacing: 0;
  line-height: 1.02;
  margin: 0;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.7rem);
  max-width: 940px;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 3.3rem);
}

.subheadline {
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.28rem);
  margin: 1.1rem 0 0;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2rem;
}

.button {
  align-items: center;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: white;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--accent);
}

.product-shot {
  align-self: center;
  background:
    linear-gradient(135deg, rgba(22, 98, 79, 0.12), rgba(35, 100, 170, 0.08)),
    var(--surface);
  border: 1px solid #cbd7d1;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  min-height: 500px;
  padding: clamp(18px, 3vw, 30px);
}

.phone-strip {
  background: var(--steel);
  border-radius: 6px;
  color: white;
  display: grid;
  gap: 4px;
  padding: 18px;
}

.phone-strip span,
.phone-strip small {
  color: #c6d1cb;
  font-weight: 700;
}

.phone-strip strong {
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  line-height: 1.1;
}

.mini-metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-metrics span,
.metric,
.detail-block,
.pricing {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mini-metrics span {
  color: var(--muted);
  display: grid;
  min-height: 98px;
  padding: 15px;
}

.mini-metrics strong {
  color: var(--ink);
  display: block;
  font-size: 2.2rem;
  line-height: 1;
}

.chat-preview {
  display: grid;
  gap: 10px;
}

.chat-preview p {
  background: #eef3f0;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 0;
  padding: 14px;
}

.chat-preview b {
  color: var(--accent);
  display: block;
  margin-bottom: 2px;
}

.demo-band,
.content-band,
.split-band,
.contact-band,
.dashboard-shell,
.thanks {
  padding: clamp(36px, 6vw, 76px) clamp(18px, 6vw, 88px);
}

.demo-band {
  align-items: center;
  background: #20313d;
  color: white;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
}

.demo-band .eyebrow {
  color: #e4b44d;
}

.demo-steps {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.demo-steps span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: #e8efec;
  display: grid;
  gap: 8px;
  min-height: 104px;
  padding: 13px;
}

.demo-steps b {
  color: #e4b44d;
  font-size: 1.4rem;
}

.section-heading {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-heading span {
  color: var(--muted);
  font-weight: 700;
}

.process-list {
  counter-reset: process;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.process-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 132px;
  padding: 18px;
}

.process-list li::before {
  color: var(--accent-2);
  content: counter(process, decimal-leading-zero);
  counter-increment: process;
  display: block;
  font-weight: 850;
  margin-bottom: 18px;
}

.split-band {
  align-items: center;
  background: #e8eee9;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
}

.split-band p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 720px;
}

.pricing {
  padding: 22px;
}

.pricing span {
  color: var(--accent-2);
  font-weight: 850;
  text-transform: uppercase;
}

.pricing strong {
  display: block;
  font-size: 2.4rem;
  line-height: 1;
  margin: 12px 0;
}

.contact-band {
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, 0.65fr) minmax(320px, 0.8fr);
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form label {
  color: var(--muted);
  display: grid;
  font-weight: 750;
  gap: 6px;
}

.contact-form input {
  background: var(--surface);
  border: 1px solid #bdc9c3;
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  min-height: 44px;
  padding: 0.68rem 0.75rem;
  width: 100%;
}

.contact-form input:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(22, 98, 79, 0.16);
}

.dashboard-shell {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.dashboard-heading {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.dashboard-heading h1 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.metric-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 26px;
}

.metric {
  min-height: 122px;
  padding: 18px;
}

.metric span {
  color: var(--muted);
  display: block;
  font-weight: 750;
}

.metric strong {
  display: block;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1;
  margin-top: 12px;
}

.table-section {
  margin-top: 26px;
}

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 13px 15px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.status {
  border-radius: 999px;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 850;
  padding: 0.25rem 0.58rem;
}

.status-new,
.status-conversing {
  background: #e6edf5;
  color: var(--blue);
}

.status-qualified,
.status-booking_sent {
  background: #eef6e9;
  color: var(--accent);
}

.status-booked {
  background: #f8efd8;
  color: #815c13;
}

.status-human_required,
.status-stopped {
  background: #fae7e2;
  color: var(--accent-2);
}

.detail-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-block {
  padding: 18px;
}

.detail-block h2 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

dl div {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  grid-template-columns: 150px minmax(0, 1fr);
  padding-top: 10px;
}

dt {
  color: var(--muted);
  font-weight: 750;
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.conversation {
  margin-top: 28px;
}

.message {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 10px 0;
  max-width: 820px;
  padding: 13px;
}

.message span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.message p {
  margin: 4px 0 7px;
  overflow-wrap: anywhere;
}

.message time {
  color: var(--muted);
  font-size: 0.82rem;
}

.message.inbound {
  background: #eef3f0;
}

.message.outbound {
  background: #f6f0e3;
  margin-left: auto;
}

.back-link {
  color: var(--accent);
  display: inline-block;
  font-weight: 800;
  margin-bottom: 18px;
}

.empty {
  color: var(--muted);
}

.thanks {
  min-height: calc(100vh - 64px);
}

@media (max-width: 920px) {
  .hero,
  .demo-band,
  .split-band,
  .contact-band,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .product-shot {
    min-height: 0;
  }

  .demo-steps,
  .process-list,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .topbar {
    height: auto;
    min-height: 60px;
  }

  .nav a {
    padding: 0.4rem 0.45rem;
  }

  h1 {
    font-size: 2.65rem;
  }

  .hero-actions,
  .dashboard-heading,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .mini-metrics,
  .demo-steps,
  .process-list,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  dl div {
    grid-template-columns: 1fr;
  }
}

/* Revenue recovery and founding pilot */
html { scroll-padding-top: 100px; }
section[id] { scroll-margin-top: 30px; }
.topbar { gap: 20px; }
.nav { flex-wrap: wrap; justify-content: flex-end; }
.revenue-hero { min-height: auto; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.revenue-hero h1 { font-size: clamp(2.7rem, 5.1vw, 5.3rem); letter-spacing: -0.04em; line-height: 1.06; }
.revenue-preview { min-height: 0; }
.revenue-preview h2 { font-size: clamp(1.8rem, 2.5vw, 2.7rem); line-height: 1.12; }
.fine-print { color: var(--muted); font-size: 0.88rem; line-height: 1.6; }
.section-intro { color: var(--muted); font-size: 1.12rem; max-width: 780px; margin: 22px 0 30px; }
h2 { line-height: 1.12; letter-spacing: -0.025em; }
h3 { font-size: 1.35rem; line-height: 1.25; margin: 14px 0; }
.intake-section { background: white; }
.intake-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: start; margin-top: 30px; }
.intake-card, .pilot-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: clamp(20px, 3vw, 36px); }
.intake-card { border-top: 4px solid var(--accent); }
.chat-preview p { max-width: 92%; }
.chat-preview .assistant-bubble { background: #e3eee8; margin-left: auto; }
.leaks-section { background: #20313d; color: #fff; }
.leaks-section .eyebrow { color: #e4b44d; }
.leaks-section .section-intro { color: #d1ddd7; }
.leak-timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 36px; gap: 20px; }
.leak-timeline article { border-top: 2px solid #e4b44d; padding-top: 18px; }
.subsection-title { margin-top: 54px; }
.recovery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.recovery-card { padding: 24px; background: #2b404d; border: 1px solid #48606d; border-radius: 8px; }
.recovery-card p { color: #dae4df; }
.feature-status { color: #edc774; font-size: 0.75rem; font-weight: 700; }
.intake-fields { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.intake-fields span { padding: 12px 18px; background: white; border: 1px solid var(--line); border-radius: 6px; font-weight: 650; }
.automotive-section { border-top: 1px solid var(--line); }
.benefit-list { padding-left: 22px; line-height: 1.7; }
.benefit-list li { margin: 12px 0; }
.founding-section { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; background: white; align-items: center; }
.faq-section { max-width: 1120px; margin: auto; }
.faq-section h2 { margin-bottom: 28px; }
details { padding: 20px 0; border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 750; font-size: 1.05rem; }
details p { color: var(--muted); max-width: 800px; }
.contact-band { background: #e8eee9; }
.contact-form textarea { background: white; border: 1px solid #bdc9c3; border-radius: 6px; color: var(--ink); font: inherit; padding: 12px; width: 100%; resize: vertical; }
.optional { font-size: 0.8rem; font-weight: 400; }
.site-footer { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 32px clamp(18px, 6vw, 88px); border-top: 1px solid var(--line); font-size: 0.9rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.legal-page { max-width: 960px; margin: auto; }
.legal-page h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 32px; }
.legal-page h2 { font-size: 1.4rem; margin-top: 32px; }
a:focus-visible, button:focus-visible, summary:focus-visible, textarea:focus-visible { outline: 3px solid #b77c14; outline-offset: 4px; }
@media (max-width: 1000px) {
  .topbar { height: auto; min-height: 64px; padding-top: 12px; padding-bottom: 12px; }
  .revenue-hero, .intake-grid, .founding-section { grid-template-columns: 1fr; }
  .leak-timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .recovery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .topbar { position: static; flex-direction: column; align-items: flex-start; gap: 8px; }
  .nav { justify-content: flex-start; gap: 0; }
  .nav a { font-size: 0.8rem; }
  .revenue-hero h1 { font-size: 2.7rem; }
  .leak-timeline, .recovery-grid { grid-template-columns: 1fr; }
  .revenue-preview .mini-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini-metrics strong { font-size: 1.8rem; }
  .mini-metrics span { padding: 10px; font-size: 0.85rem; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}
