:root {
  --ink: #16202b;
  --ink-soft: #55657a;
  --line: #e2e7ee;
  --bg: #ffffff;
  --bg-tint: #f6f8fa;
  --navy: #1d2a3a;
  --accent: #c2410c;
  --accent-dark: #9a3308;
  --radius: 10px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: clamp(2rem, 4.4vw, 3.15rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 2.9vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.06rem; font-weight: 650; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.eyebrow {
  font-size: 0.775rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ---------- Logo ---------- */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: inherit;
}

.logo-mark {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--accent);
  position: relative;
  flex: none;
}

/* Two stacked bars — a filling bay. */
.logo-mark::before,
.logo-mark::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  height: 3px;
  border-radius: 2px;
  background: #fff;
}
.logo-mark::before { bottom: 5px; }
.logo-mark::after { bottom: 11px; opacity: 0.5; }

.logo-text {
  font-weight: 700;
  font-size: 1.14rem;
  letter-spacing: -0.02em;
}

/* ---------- Header ---------- */

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.btn {
  display: inline-block;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  padding: 9px 16px;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink-soft); }

.btn-primary {
  border: 0;
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); }

.btn-lg {
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 9px;
}

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

.hero { padding: clamp(48px, 7vw, 86px) 0 clamp(40px, 5vw, 64px); }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.hero h1 { margin-bottom: 20px; }

.lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 34em;
  margin-bottom: 28px;
}

/* ---------- Signup form ---------- */

.signup {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 480px;
}

.signup input {
  flex: 1 1 220px;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.signup input::placeholder { color: #9aa7b6; }

.signup input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.14);
}

.signup input.invalid {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.signup button {
  flex: 0 0 auto;
  font: inherit;
  font-size: 1rem;
  font-weight: 640;
  padding: 13px 22px;
  border: 0;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.15s;
}
.signup button:hover { background: var(--accent-dark); }
.signup button:disabled { opacity: 0.6; cursor: default; }

.form-status {
  flex: 1 0 100%;
  font-size: 0.93rem;
  min-height: 1.2em;
  margin-top: 2px;
}
.form-status.ok { color: #1a7a4c; font-weight: 550; }
.form-status.err { color: #c0392b; }

.form-note {
  font-size: 0.85rem;
  color: #8493a4;
  margin-top: 12px;
}

/* ---------- Hero demo (phone) ---------- */

.phone {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 34px -18px rgba(22, 32, 43, 0.3);
  overflow: hidden;
}

.phone-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  background: var(--navy);
  color: #cfd8e3;
  font-size: 0.82rem;
  font-weight: 550;
  letter-spacing: 0.01em;
}

.phone-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #e8724a;
  flex: none;
}

.thread {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-tint);
}

.bubble {
  max-width: 86%;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 0.93rem;
  line-height: 1.5;
}

.bubble.out {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}

.bubble.in {
  align-self: flex-end;
  background: var(--navy);
  color: #eef2f7;
  border-bottom-right-radius: 4px;
}

.handoff {
  padding: 16px 18px 18px;
  border-top: 1px solid var(--line);
}

.handoff-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.handoff dl { margin: 0; display: grid; gap: 6px; }
.handoff dl > div { display: flex; gap: 10px; font-size: 0.9rem; }
.handoff dt { color: var(--ink-soft); width: 72px; flex: none; }
.handoff dd { margin: 0; font-weight: 600; }

/* ---------- How it works ---------- */

.how {
  border-top: 1px solid var(--line);
  padding: clamp(56px, 7vw, 88px) 0;
}
.how h2 { margin-bottom: 44px; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
  counter-reset: step;
}

.step {
  border-top: 2px solid var(--line);
  padding-top: 20px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.step h3 { margin-bottom: 8px; }

.step p {
  font-size: 0.96rem;
  color: var(--ink-soft);
}

/* ---------- Reasons ---------- */

.reasons {
  background: var(--bg-tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(52px, 6.5vw, 80px) 0;
}

.reasons-inner h2 { margin-bottom: 36px; max-width: 18em; }

.reason-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px 40px;
}

.reason-list h3 { margin-bottom: 6px; }

.reason-list p {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- Final CTA ---------- */

.cta { padding: clamp(60px, 7.5vw, 96px) 0; }

.cta-inner {
  max-width: 620px;
  text-align: center;
}

.cta h2 { margin-bottom: 14px; }

.cta p {
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.signup-cta { margin: 0 auto; justify-content: center; }
.signup-cta .form-status { text-align: center; }

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.87rem;
  color: var(--ink-soft);
  text-decoration: none;
}
.footer-links a:hover { color: var(--accent); text-decoration: underline; }

.site-footer p {
  font-size: 0.87rem;
  color: #8493a4;
}

/* ---------- Flow (missed call -> booked) ---------- */

.flow {
  border-top: 1px solid var(--line);
  padding: clamp(56px, 7vw, 88px) 0;
}
.flow h2 { margin-bottom: 44px; }

.flow-track {
  list-style: none;
  margin: 0 0 44px;
  padding: 0;
  display: flex;
  align-items: flex-start;
}

.flow-step {
  flex: 1;
  position: relative;
  text-align: center;
  padding: 0 6px;
}

/* connector chevron between steps */
.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 20px;
  right: -5px;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: rotate(45deg);
}

.flow-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 16px -12px rgba(22, 32, 43, 0.35);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.flow-icon svg { width: 22px; height: 22px; }

.flow-step.is-done .flow-icon {
  border-color: var(--accent);
  background: #fff8f4;
  color: var(--accent);
}

.flow-label {
  display: block;
  font-size: 0.87rem;
  font-weight: 600;
  line-height: 1.35;
  max-width: 11em;
  margin: 0 auto;
}

/* ---------- Week mockup ---------- */

.week {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 34px -18px rgba(22, 32, 43, 0.3);
  overflow: hidden;
}

.week-bar {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  padding: 13px 18px;
  background: var(--navy);
  color: #eef2f7;
}
.week-title { font-size: 0.92rem; font-weight: 650; }
.week-meta { font-size: 0.8rem; color: #a9b8c9; }

.week-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.day { border-left: 1px solid var(--line); padding: 14px 12px 18px; }
.day:first-child { border-left: 0; }

.day-name {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.slots { display: flex; flex-direction: column; gap: 7px; }

.slot {
  background: #fff8f4;
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  padding: 7px 9px;
}
.slot-time { display: block; font-size: 0.73rem; font-weight: 700; color: var(--accent); }
.slot-job { display: block; font-size: 0.8rem; line-height: 1.35; margin-top: 1px; }

.week-caption {
  font-size: 0.8rem;
  color: #8493a4;
  text-align: center;
  margin-top: 12px;
}

/* ---------- Results / KPI row ---------- */

.results {
  border-top: 1px solid var(--line);
  padding: clamp(56px, 7vw, 88px) 0;
}
.results h2 { margin-bottom: 40px; }

.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.kpi {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 16px 18px 18px;
}

.kpi-label {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

/* proportional figures: tabular-nums only belongs in aligned columns */
.kpi-value {
  display: block;
  font-size: 2rem;
  font-weight: 680;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 12px;
}

/* single-hue meter: track is a lighter step of the fill's own ramp */
.kpi-track {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: #f3e3da;
  overflow: hidden;
}
.kpi-fill {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
}

/* ---------- Estimated booked opportunity (hero figure) ---------- */

.opportunity {
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
  padding: clamp(22px, 3.4vw, 32px) clamp(20px, 3vw, 34px);
  text-align: center;
}

.opp-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #9fb0c2;
  margin-bottom: 8px;
}

.opp-value {
  display: block;
  font-size: clamp(3rem, 6.6vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.opp-basis {
  display: block;
  font-size: 0.87rem;
  color: #a9b8c9;
  margin-top: 8px;
}

.disclaimer {
  font-size: 0.82rem;
  line-height: 1.5;
  color: #8493a4;
  text-align: center;
  max-width: 44em;
  margin: 16px auto 0;
}

/* ---------- Simple inner pages ---------- */

.page { padding: clamp(52px, 7vw, 84px) 0; }

.page-inner { max-width: 620px; }
.page-inner h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 14px; }

.page-note {
  color: var(--ink-soft);
  margin-bottom: 26px;
}

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

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-demo { max-width: 460px; }

  .kpi-row { grid-template-columns: repeat(2, 1fr); }

  /* stack the flow vertically */
  .flow-track { flex-direction: column; align-items: stretch; gap: 22px; }
  .flow-step { display: flex; align-items: center; gap: 14px; text-align: left; padding: 0; }
  .flow-icon { margin: 0; flex: none; }
  .flow-label { max-width: none; margin: 0; font-size: 0.95rem; }
  /* connector points down between stacked steps */
  .flow-step:not(:last-child)::after {
    top: auto;
    bottom: -16px;
    left: 22px;
    right: auto;
    transform: rotate(135deg);
  }

  /* week becomes day rows */
  .week-grid { grid-template-columns: 1fr; }
  .day { display: grid; grid-template-columns: 52px 1fr; gap: 12px;
         border-left: 0; border-top: 1px solid var(--line); padding: 12px 16px; }
  .day:first-child { border-top: 0; }
  .day-name { margin: 0; padding-top: 4px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .signup { flex-direction: column; }
  /* flex-basis becomes HEIGHT once the form goes column - pin it back to auto */
  .signup input { flex: 0 0 auto; }
  .signup button { width: 100%; }
  .header-inner .btn-ghost { display: none; }
  .hero-copy .btn-lg { display: block; text-align: center; }
  .kpi-row { grid-template-columns: 1fr; gap: 12px; }
  .kpi { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 14px; }
  .kpi-label { margin: 0; }
  .kpi-value { font-size: 1.6rem; margin: 0; text-align: right; }
  .kpi-track { grid-column: 1 / -1; margin-top: 8px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
