/* ===========================================================
   Recoverly — marketing site styles
   Design grounded in the HVAC trade: equipment nameplates,
   dispatch boards, and the actual recovered-call artifact.
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ink: #0F2036;
  --ink-soft: #35455A;
  --steel: #EFF1F3;
  --steel-deep: #E1E4E8;
  --duct: #C7CCD1;
  --paper: #FFFFFF;
  --ember: #E2571C;
  --ember-deep: #C2440F;
  --coil: #2C6E8E;
  --green: #2F7D4F;

  --display: 'Barlow Condensed', sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--steel);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 0.4em;
  letter-spacing: 0.2px;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; max-width: 62ch; }
a { color: inherit; }

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Navigation ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--duct);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.4rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo img { height: 34px; width: auto; display: block; }
.logo .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ember); display: inline-block; }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--ember);
}

.nav-cta {
  background: var(--ink);
  color: white;
  padding: 10px 18px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--ember); }

.nav-toggle { display: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--ember); color: white; }
.btn-primary:hover { background: var(--ember-deep); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: white; }

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 64px;
  background: var(--paper);
  border-bottom: 1px solid var(--duct);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero .eyebrow {
  color: var(--coil);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero-ctas { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 0.88rem; color: var(--ink-soft); }

/* Recovered-call artifact — the signature visual element */
.phone-mock {
  background: var(--ink);
  border-radius: 20px;
  padding: 10px;
  max-width: 320px;
  margin-left: auto;
  box-shadow: 0 24px 48px -20px rgba(15,32,54,0.45);
}
.phone-screen {
  background: var(--steel);
  border-radius: 14px;
  padding: 18px 14px 14px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.phone-header {
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-align: center;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--duct);
  padding-bottom: 8px;
}
.bubble {
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 0.88rem;
  max-width: 84%;
  line-height: 1.4;
}
.bubble.ai { background: var(--paper); border: 1px solid var(--duct); align-self: flex-start; border-bottom-left-radius: 3px; }
.bubble.customer { background: var(--coil); color: white; align-self: flex-end; border-bottom-right-radius: 3px; }
.bubble.system {
  align-self: center;
  background: transparent;
  color: var(--green);
  font-weight: 600;
  font-size: 0.78rem;
  border: 1px dashed var(--green);
  padding: 5px 10px;
}

/* ---------- Stat strip ---------- */

.stat-strip {
  background: var(--ink);
  color: white;
  padding: 36px 0;
}
.stat-strip .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.stat { border-left: 2px solid var(--ember); padding-left: 16px; }
.stat .num { font-family: var(--display); font-size: 2.4rem; font-weight: 700; line-height: 1; }
.stat .label { color: #A9B4C2; font-size: 0.92rem; margin-top: 6px; }

/* ---------- Sections ---------- */

section.block { padding: 80px 0; }
.block-head { max-width: 640px; margin-bottom: 44px; }
.block-head p { color: var(--ink-soft); }

/* Dispatch ledger — feature rows, not uniform cards */
.ledger {
  border-top: 1px solid var(--duct);
}
.ledger-row {
  display: grid;
  grid-template-columns: 44px 1fr 1.4fr;
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--duct);
  align-items: start;
}
.ledger-row .icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 4px;
}
.ledger-row h3 { margin-bottom: 6px; }
.ledger-row p { color: var(--ink-soft); margin: 0; }

/* Sequential process — numbering is legitimate here, it's a real sequence */
.process { counter-reset: step; }
.process-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--duct);
}
.process-step .step-num {
  font-family: var(--display);
  font-size: 2.1rem;
  color: var(--duct);
  font-weight: 700;
}
.process-step:first-child { border-top: 1px solid var(--duct); }

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.price-tile {
  background: var(--paper);
  border: 1px solid var(--duct);
  border-top: 3px solid var(--ink);
  padding: 28px 24px;
}
.price-tile.featured { border-top-color: var(--ember); }
.price-tile .amount { font-family: var(--display); font-size: 2.6rem; font-weight: 700; margin: 10px 0 4px; }
.price-tile .amount span { font-size: 1rem; font-weight: 500; color: var(--ink-soft); }
.price-tile ul { list-style: none; padding: 0; margin: 18px 0 24px; }
.price-tile li { padding: 7px 0; border-top: 1px solid var(--steel-deep); font-size: 0.92rem; color: var(--ink-soft); }
.price-tile li:first-child { border-top: none; }

/* Testimonial / proof */
.proof-strip {
  background: var(--paper);
  border: 1px solid var(--duct);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.proof-strip blockquote { margin: 0; font-size: 1.15rem; font-family: var(--display); font-weight: 500; }
.proof-strip cite { display: block; margin-top: 10px; font-style: normal; color: var(--ink-soft); font-size: 0.9rem; }

/* CTA band */
.cta-band {
  background: var(--ink);
  color: white;
  padding: 64px 0;
  text-align: left;
}
.cta-band h2 { color: white; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band p { color: #C4CCD7; }

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; }
input, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--duct);
  border-radius: 4px;
  font-family: var(--body);
  font-size: 0.95rem;
  background: var(--paper);
}
input:focus, textarea:focus {
  outline: 2px solid var(--coil);
  outline-offset: 1px;
}
textarea { resize: vertical; min-height: 120px; }
.form-status { margin-top: 16px; font-weight: 600; }
.form-status.ok { color: var(--green); }
.form-status.error { color: var(--ember-deep); }

/* Blog */
.post-list { border-top: 1px solid var(--duct); }
.post-row {
  display: block;
  padding: 26px 0;
  border-bottom: 1px solid var(--duct);
  text-decoration: none;
  color: inherit;
}
.post-row .meta { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 6px; }
.post-row h3 { margin-bottom: 6px; }
.post-row:hover h3 { color: var(--ember); }

article.post-body { max-width: 68ch; }
article.post-body h2 { margin-top: 1.6em; }
article.post-body p { max-width: none; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--duct);
  padding: 48px 0 32px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-grid h4 { font-family: var(--body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.6px; color: var(--ink); margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { text-decoration: none; color: var(--ink-soft); }
.footer-grid a:hover { color: var(--ember); }
.footer-bottom { border-top: 1px solid var(--duct); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phone-mock { margin: 0 auto; }
  .stat-strip .wrap { grid-template-columns: 1fr; gap: 20px; }
  .ledger-row { grid-template-columns: 40px 1fr; }
  .ledger-row > p:last-child { grid-column: 2 / -1; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .proof-strip { grid-template-columns: 1fr; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

:focus-visible {
  outline: 2px solid var(--coil);
  outline-offset: 2px;
}
