:root {
  --concrete: #E6E5E0;
  --slab: #D3D1C9;
  --paper: #F6F6F3;
  --ink: #1A1D21;
  --graphite: #4A4F55;
  --chalk: #1F4FD8;
  --chalk-deep: #163BA6;
  --signal: #E8A400;
  --radius: 6px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--concrete);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-stretch: 100%;
  font-size: 18px;
  line-height: 1.55;
}

a { color: inherit; }
:focus-visible { outline: 3px solid var(--chalk); outline-offset: 3px; border-radius: 2px; }

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

h1, h2, h3 { font-stretch: 75%; line-height: 1.02; letter-spacing: -0.01em; margin: 0; }
h1 { font-weight: 850; font-size: clamp(48px, 7.4vw, 96px); }
h2 { font-weight: 800; font-size: clamp(32px, 4.4vw, 52px); max-width: 18ch; }
h3 { font-weight: 800; font-size: 28px; }
p { margin: 0; }

/* Nav */
.nav { border-bottom: 1px solid var(--slab); background: var(--concrete); position: sticky; top: 0; z-index: 10; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.wordmark { font-stretch: 62%; font-weight: 900; font-size: 30px; letter-spacing: 0.01em; text-decoration: none; }
.wordmark.small { font-size: 22px; }
.nav nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav nav a:not(.btn) { text-decoration: none; color: var(--graphite); }
.nav nav a:not(.btn):hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-block; background: var(--chalk); color: #fff; text-decoration: none;
  font: inherit; font-weight: 700; font-size: 17px; padding: 15px 24px; border: 0;
  border-radius: var(--radius); cursor: pointer;
}
.btn:hover { background: var(--chalk-deep); }
.btn-small { padding: 9px 16px; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--concrete); }

/* Hero */
.hero { padding: 88px 0 104px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
.locale { font-size: 15px; color: var(--graphite); margin-bottom: 20px; }
.lede { font-size: 21px; color: var(--graphite); max-width: 34em; margin-top: 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Phone thread: the one moment of motion on the page */
.phone {
  margin: 0; background: var(--paper); border: 1px solid var(--slab); border-radius: 28px;
  padding: 22px 20px 20px; box-shadow: 0 30px 60px -30px rgba(26, 29, 33, 0.35);
}
.phone-top { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 16px; border-bottom: 1px solid var(--slab); }
.phone-name { font-weight: 700; font-size: 16px; }
.phone-sub { font-size: 14px; color: var(--graphite); }
.thread { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15.5px; line-height: 1.4; }
.thread time { display: block; font-size: 12.5px; opacity: 0.7; margin-top: 4px; }
.event { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--graphite); padding: 4px; }
.event time { display: inline; margin: 0 0 0 auto; }
.event .dot { width: 9px; height: 9px; border-radius: 50%; }
.missed .dot { background: var(--signal); }
.booked .dot { background: var(--chalk); }
.booked { color: var(--ink); font-weight: 600; }
.bubble { max-width: 84%; padding: 11px 14px; border-radius: 16px; }
.bubble.out { align-self: flex-end; background: var(--chalk); color: #fff; border-bottom-right-radius: 4px; }
.bubble.in { align-self: flex-start; background: var(--concrete); border-bottom-left-radius: 4px; }
.phone figcaption { font-size: 14px; color: var(--graphite); margin-top: 18px; padding: 0 4px; }

@media (prefers-reduced-motion: no-preference) {
  .thread > li { opacity: 0; transform: translateY(6px); animation: arrive 0.45s ease-out forwards; }
  .thread > li:nth-child(1) { animation-delay: 0.3s; }
  .thread > li:nth-child(2) { animation-delay: 1.3s; }
  .thread > li:nth-child(3) { animation-delay: 2.5s; }
  .thread > li:nth-child(4) { animation-delay: 3.6s; }
  .thread > li:nth-child(5) { animation-delay: 4.5s; }
  @keyframes arrive { to { opacity: 1; transform: none; } }
}

/* Sections */
section { padding: 104px 0; }
.section-lede { font-size: 20px; color: var(--graphite); max-width: 36em; margin-top: 22px; }

/* The job line: a chalk line with the three systems placed where the leaks happen */
.leaks { background: var(--paper); border-top: 1px solid var(--slab); border-bottom: 1px solid var(--slab); }
.line {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 72px; position: relative;
  padding-top: 40px;
}
.line::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: repeating-linear-gradient(90deg, var(--chalk) 0 22px, transparent 22px 26px, var(--chalk) 26px 30px, transparent 30px 34px);
  opacity: 0.85;
}
.stage { position: relative; }
.stage::before {
  content: ""; position: absolute; top: -48px; left: 0; width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--chalk);
}
.when { font-size: 15px; font-weight: 700; color: var(--chalk); margin-bottom: 10px; }
.stage h3 { margin-bottom: 14px; }
.leak { font-weight: 600; margin-bottom: 12px; }
.stage p:last-child { color: var(--graphite); font-size: 17px; }
.honest { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--slab); color: var(--graphite); max-width: 44em; font-size: 17px; }

/* Audit */
.audit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 32px 64px; }
.steps li + li { padding-top: 32px; border-top: 1px solid var(--slab); }
.steps li::before {
  content: counter(step); position: absolute; left: 0; font-stretch: 62%; font-weight: 900;
  font-size: 44px; line-height: 1; color: var(--chalk);
}
.steps li + li::before { top: 32px; }
.steps h3 { font-size: 24px; margin-bottom: 8px; }
.steps p { color: var(--graphite); font-size: 17px; }

/* Details */
.details { padding-top: 0; }
.details-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; border-top: 2px solid var(--ink); padding-top: 48px; }
.details h2 { font-size: 30px; margin-bottom: 14px; }
.details p { color: var(--graphite); font-size: 17px; }

/* Contact */
.contact { background: var(--ink); color: var(--concrete); }
.contact .section-lede, .contact .direct { color: #B9BCBF; }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; }
.direct { list-style: none; padding: 0; margin: 36px 0 0; font-size: 19px; line-height: 2; }
.direct a { color: var(--concrete); }
.form { display: grid; gap: 16px; background: var(--paper); color: var(--ink); padding: 32px; border-radius: 10px; }
.form label { display: grid; gap: 6px; font-size: 15px; font-weight: 600; }
.form input, .form textarea {
  font: inherit; font-size: 17px; font-weight: 400; padding: 12px 14px; border: 1px solid var(--slab);
  border-radius: var(--radius); background: #fff; color: var(--ink); width: 100%;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--chalk); box-shadow: 0 0 0 3px rgba(31, 79, 216, 0.2); }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .btn { justify-self: start; margin-top: 4px; }
.fine { font-size: 13.5px; color: var(--graphite); }
.hp { position: absolute; left: -9999px; }

/* Footer */
.footer { padding: 32px 0; font-size: 14px; color: var(--graphite); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 20px; }

/* Legal pages */
.legal { padding: 72px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(40px, 6vw, 64px); }
.legal .updated { color: var(--graphite); margin: 16px 0 48px; }
.legal h2 { font-size: 26px; max-width: none; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--graphite); font-size: 17px; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .audit-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .line { grid-template-columns: 1fr; gap: 48px; padding-top: 0; padding-left: 36px; margin-top: 56px; }
  .line::before { top: 0; bottom: 0; left: 6px; right: auto; width: 3px; height: auto;
    background: repeating-linear-gradient(180deg, var(--chalk) 0 22px, transparent 22px 26px, var(--chalk) 26px 30px, transparent 30px 34px); }
  .stage::before { top: 4px; left: -38px; }
  .details-grid { grid-template-columns: 1fr; gap: 36px; }
  section { padding: 80px 0; }
  .hero { padding: 56px 0 80px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .nav nav a:not(.btn) { display: none; }
  .lede { font-size: 19px; }
  .form { padding: 22px; }
  .form .two { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 100%; text-align: center; }
}
