/* ==========================================================================
   REPLY60 — Design tokens
   Palette grounded in dispatch/service-ops vernacular, not generic SaaS.
   ========================================================================== */
:root {
  --ink: #12161c;          /* primary dark bg — dispatch board */
  --ink-soft: #1c222b;     /* elevated dark surface */
  --steel: #3a4552;        /* borders / muted dark text */
  --steel-soft: #5b6774;
  --fog: #e9e6de;          /* light neutral bg (warm gray, not cream) */
  --fog-soft: #f4f2ec;
  --paper: #ffffff;
  --amber: #ff8a2b;        /* dispatch / urgency / primary CTA */
  --amber-dark: #e6721a;
  --green: #2bb673;        /* confirmed / success */
  --text-on-dark: #f4f2ec;
  --text-on-light: #1b2126;
  --text-muted-dark: #a7afba;
  --text-muted-light: #5b6774;

  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  --radius: 3px;
  --max-width: 1160px;
  --edge: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-on-light);
  background: var(--paper);
  line-height: 1.55;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0;
  line-height: 1.05;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--edge);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--amber);
  border-radius: 50%;
  display: inline-block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--amber);
  color: var(--ink);
  font-weight: 600;
}
.btn-primary:hover { background: var(--amber-dark); transform: translateY(-1px); }
.btn-ghost {
  border: 1px solid var(--steel);
  color: var(--text-on-light);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber-dark); }
.btn-ghost-dark {
  border: 1px solid var(--steel-soft);
  color: var(--text-on-dark);
}
.btn-ghost-dark:hover { border-color: var(--amber); color: var(--amber); }

/* ============================== NAV ============================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 22, 28, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--steel);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-on-dark);
  letter-spacing: 0.02em;
}
.nav-logo span { color: var(--amber); }

/* ============================== HERO ============================== */
.hero {
  background: var(--ink);
  color: var(--text-on-dark);
  padding: 120px 0 96px;
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  margin-bottom: 24px;
  color: var(--text-on-dark);
}
.hero-subhead {
  font-size: 1.1rem;
  color: var(--text-muted-dark);
  max-width: 46ch;
  margin-bottom: 36px;
}
.hero-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Dispatch log — signature element */
.dispatch-panel {
  background: var(--ink-soft);
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  padding: 20px 22px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.dispatch-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px dashed var(--steel);
  color: var(--text-muted-dark);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dispatch-panel-header .dot { color: var(--green); }
.dispatch-line {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  padding: 9px 0;
  opacity: 0;
  transform: translateY(4px);
  animation: dispatch-in 0.4s ease forwards;
}
.dispatch-line:nth-child(1) { animation-delay: 0.3s; }
.dispatch-line:nth-child(2) { animation-delay: 1.3s; }
.dispatch-line:nth-child(3) { animation-delay: 2.3s; }
.dispatch-line:nth-child(4) { animation-delay: 3.3s; }
@keyframes dispatch-in { to { opacity: 1; transform: translateY(0); } }
.dispatch-time { color: var(--steel-soft); }
.dispatch-event { color: var(--text-on-dark); font-weight: 600; }
.dispatch-detail { color: var(--text-muted-dark); display: block; margin-top: 2px; font-weight: 400; }
.dispatch-line.confirmed .dispatch-event { color: var(--green); }

/* ============================== SECTIONS ============================== */
section { padding: 88px 0; }
.section-fog { background: var(--fog-soft); }
.section-header { max-width: 62ch; margin-bottom: 48px; }
.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 16px;
  color: var(--text-on-light);
}
.section-header p { font-size: 1.05rem; color: var(--text-muted-light); }

/* Problem callouts */
.callout-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.callout {
  border-left: 2px solid var(--amber);
  padding-left: 18px;
}
.callout-label { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.callout-detail { color: var(--text-muted-light); font-size: 0.92rem; }

/* Deliverables — work order manifest */
.manifest {
  border: 1px solid var(--steel-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.manifest-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 28px var(--edge);
  border-bottom: 1px solid #ddd8cb;
  align-items: start;
}
.manifest-item:last-child { border-bottom: none; }
.manifest-ticket {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--amber-dark);
  font-weight: 700;
  padding-top: 3px;
}
.manifest-title { font-size: 1.15rem; margin-bottom: 6px; }
.manifest-desc { color: var(--text-muted-light); font-size: 0.98rem; max-width: 60ch; }

/* Process — pipeline stages */
.process-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--steel-soft);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 40px;
}
.process-step {
  background: var(--ink);
  color: var(--text-on-dark);
  padding: 32px 28px;
}
.process-stage {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}
.process-step h3 { font-size: 1.35rem; margin-bottom: 6px; color: var(--text-on-dark); }
.process-duration {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--steel-soft);
  margin-bottom: 14px;
  display: block;
}
.process-desc { color: var(--text-muted-dark); font-size: 0.92rem; }

/* Pricing — estimate ticket */
.estimate {
  background: var(--paper);
  border: 1px solid var(--steel-soft);
  border-radius: var(--radius);
  max-width: 640px;
  margin-top: 40px;
}
.estimate-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 28px var(--edge);
  border-bottom: 1px dashed #ccc5b3;
}
.estimate-row:last-child { border-bottom: none; }
.estimate-label { font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; }
.estimate-terms { color: var(--text-muted-light); font-size: 0.9rem; }
.estimate-price {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  white-space: nowrap;
  padding-left: 24px;
}
.pricing-cta { margin-top: 32px; }

/* FAQ */
.faq-item {
  border-bottom: 1px solid #ddd8cb;
  padding: 22px 0;
}
.faq-item:first-child { border-top: 1px solid #ddd8cb; }
.faq-q {
  font-family: var(--font-display);
  text-transform: none;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: normal;
  margin-bottom: 8px;
}
.faq-a { color: var(--text-muted-light); font-size: 0.98rem; max-width: 60ch; }

/* Testimonials */
.testimonial-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.testimonial-card {
  background: var(--paper);
  border: 1px solid #ddd8cb;
  border-radius: var(--radius);
  padding: 26px;
}
.testimonial-quote {
  font-size: 0.98rem;
  color: var(--text-on-light);
  margin-bottom: 18px;
  font-style: italic;
}
.testimonial-name { font-weight: 700; font-size: 0.92rem; }
.testimonial-role { color: var(--text-muted-light); font-size: 0.85rem; }

/* ============================== LEAD FORM ============================== */
.lead-section {
  background: var(--ink);
  color: var(--text-on-dark);
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
.lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.lead-copy h2 { color: var(--text-on-dark); font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 16px; }
.lead-copy p { color: var(--text-muted-dark); font-size: 1.05rem; margin-bottom: 28px; }
.lead-contact-line {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted-dark);
  display: block;
  margin-top: 6px;
}
.lead-contact-line a:hover { color: var(--amber); }

.lead-form {
  background: var(--ink-soft);
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  padding: 32px;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted-dark);
  margin-bottom: 8px;
}
.form-row input,
.form-row select {
  width: 100%;
  padding: 12px 14px;
  background: var(--ink);
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--amber);
}
.form-submit {
  width: 100%;
  margin-top: 6px;
}
.form-note {
  font-size: 0.78rem;
  color: var(--text-muted-dark);
  margin-top: 14px;
  text-align: center;
}
.form-status {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  display: none;
}
.form-status.visible { display: block; }
.form-status.error { color: #ff6b6b; }
.form-status.loading { color: var(--text-muted-dark); }

/* ============================== FOOTER ============================== */
.footer {
  background: var(--ink);
  color: var(--text-muted-dark);
  padding: 40px 0;
  border-top: 1px solid var(--steel);
  font-size: 0.85rem;
}
.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-logo { font-family: var(--font-mono); color: var(--text-on-dark); font-weight: 700; }

/* ============================== RESPONSIVE ============================== */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .callout-row { grid-template-columns: 1fr; gap: 24px; }
  .process-row { grid-template-columns: 1fr; }
  .manifest-item { grid-template-columns: 1fr; gap: 6px; }
  .testimonial-row { grid-template-columns: 1fr; }
  .lead-grid { grid-template-columns: 1fr; gap: 40px; }
  .estimate-row { flex-direction: column; gap: 10px; }
  .estimate-price { padding-left: 0; }
  section { padding: 64px 0; }
  .hero { padding: 96px 0 64px; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}
