/* Beat the Beep. Palette borrowed from utility locate marks:
   blue = water line, yellow = gas line, orange-red = emergency.
   The page moves from night (the call) to morning (the report). */
:root {
  --night: #13243C;
  --night-deep: #0E1C30;
  --concrete: #E8EAE9;
  --paper: #F7F8F7;
  --ink: #1B2430;
  --ink-soft: #4A5563;
  --water: #1F5FAE;
  --water-deep: #16467F;
  --gas: #F2C200;
  --alert: #D9480F;
  --rule: #C9CDCF;
  --radius: 6px;
  --measure: 66ch;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Barlow", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
}

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

a { color: var(--water); text-underline-offset: 3px; }
a:hover { color: var(--water-deep); }

:focus-visible {
  outline: 3px solid var(--gas);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(3.1rem, 7.6vw, 6rem); font-weight: 800; }
h2 { font-size: clamp(2.1rem, 4.5vw, 3.25rem); }
h3 { font-size: 1.6rem; line-height: 1.1; }
p { margin: 0 0 1em; max-width: var(--measure); }

/* ---------- Header ---------- */
.site-header {
  padding: 18px 0;
  background: var(--night-deep);
  color: #fff;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.logo:hover { color: #fff; }
.logo svg { width: 34px; height: 34px; }
.header-call {
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.header-call:hover { color: var(--gas); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
}
.btn-primary { background: var(--water); color: #fff; }
.btn-primary:hover { background: var(--water-deep); color: #fff; }
.btn-gas { background: var(--gas); color: var(--ink); }
.btn-gas:hover { background: #fff; color: var(--ink); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-ghost:hover { background: #fff; color: var(--ink); }

/* ---------- Hero: night ---------- */
.hero {
  background: linear-gradient(180deg, var(--night-deep) 0%, var(--night) 100%);
  color: #fff;
  padding: 56px 0 0;
  overflow: hidden;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 26px;
  background: #0B1525;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
}
.hero-copy { padding-bottom: 72px; }
.hero h1 { margin-bottom: 0.15em; }
.hero-underline { width: min(520px, 90%); height: auto; margin: 0 0 26px -6px; }
.hero-lede {
  font-size: 1.3rem;
  color: #C9D4E3;
  max-width: 36ch;
  margin-bottom: 1.6em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 18px; font-size: 0.98rem; color: #9FB0C6; max-width: 44ch; }

.hero-scene {
  position: relative;
  min-height: 540px;
}
.scene-art {
  position: absolute;
  left: -40px;
  right: -60px;
  bottom: 0;
  width: calc(100% + 100px);
  max-width: none;
  height: auto;
}

/* The phone: the one bold element on the page */
.phone {
  position: relative;
  z-index: 1;
  width: 300px;
  margin: 0 -10px 150px auto;
  background: #0A1424;
  color: #E9EDF2;
  border: 2px solid #33475F;
  border-radius: 34px;
  padding: 30px 18px 20px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7), 0 0 0 6px rgba(255,255,255,0.04);
  font-size: 0.95rem;
}
.phone-notch {
  width: 90px; height: 6px;
  background: #33475F;
  border-radius: 6px;
  margin: -14px auto 14px;
}
.call-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid #2A3A52;
  font-size: 0.88rem;
  color: #AEB8C5;
}
.call-top strong { color: #fff; font-size: 1rem; }
.call-time {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.5rem;
  color: var(--gas);
  font-weight: 700;
}
.turn { margin: 0 0 10px; max-width: none; line-height: 1.4; }
.turn .who { display: block; font-size: 0.78rem; color: #8A97A8; margin-bottom: 2px; }
.turn.caller { padding-left: 12px; border-left: 3px solid #5A6B82; }
.turn.agent { padding-left: 12px; border-left: 3px solid var(--water); }
.alert-sent {
  margin-top: 12px;
  background: var(--alert);
  color: #fff;
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 0.9rem;
  line-height: 1.35;
}
.alert-sent b { display: block; font-size: 0.95rem; }

@media (prefers-reduced-motion: no-preference) {
  .phone .step {
    opacity: 0;
    transform: translateY(6px);
    animation: appear 0.45s ease-out forwards;
  }
  .phone .step:nth-child(2) { animation-delay: 0.3s; }
  .phone .step:nth-child(3) { animation-delay: 1.1s; }
  .phone .step:nth-child(4) { animation-delay: 1.9s; }
  .phone .step:nth-child(5) { animation-delay: 2.7s; }
  .phone .step:nth-child(6) { animation-delay: 3.6s; }
  @keyframes appear { to { opacity: 1; transform: none; } }
}

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-intro { max-width: 42ch; font-size: 1.2rem; color: var(--ink-soft); }

/* Icon tiles: shapes like a can of locate paint sprayed on concrete */
.tile {
  display: inline-grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 18px;
  border-radius: 46% 54% 52% 48% / 54% 44% 56% 46%;
}
.tile svg {
  width: 32px; height: 32px;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tile-blue { background: var(--water); }
.tile-blue svg { stroke: #fff; }
.tile-orange { background: var(--alert); }
.tile-orange svg { stroke: #fff; }
.tile-yellow { background: var(--gas); }
.tile-yellow svg { stroke: var(--ink); }
.tile.small { width: 52px; height: 52px; margin: 0; flex: none; }
.tile.small svg { width: 24px; height: 24px; }

/* How it works: a real sequence */
.steps {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.steps p { font-size: 1.02rem; color: var(--ink-soft); }

.divider {
  width: min(1120px, 92%);
  height: auto;
  margin: 0 auto;
  opacity: .9;
}

/* Morning report */
.report { padding-top: 64px; }
.report .wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.report-points { list-style: none; padding: 0; margin: 24px 0 0; }
.report-points li {
  padding: 10px 0 10px 30px;
  position: relative;
  border-bottom: 1px solid var(--rule);
}
.report-points li::before {
  content: "";
  position: absolute;
  left: 2px; top: 19px;
  width: 14px; height: 8px;
  border-left: 3px solid var(--water);
  border-bottom: 3px solid var(--water);
  transform: rotate(-45deg);
}
.inbox {
  background: #fff;
  border: 1px solid var(--rule);
  border-top: 6px solid var(--gas);
  border-radius: 10px;
  padding: 22px 24px;
  box-shadow: 0 24px 48px -28px rgba(27, 36, 48, 0.45);
  font-size: 0.98rem;
}
.inbox-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.inbox-from { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-subject {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1.1;
  margin: 8px 0 16px;
  max-width: none;
}
.call-row {
  border-left: 4px solid var(--water);
  background: var(--paper);
  padding: 9px 12px;
  margin-bottom: 8px;
  line-height: 1.35;
}
.call-row b { display: block; }
.call-row.hot { border-left-color: var(--alert); background: #FDF1EB; }
.call-row.muted { border-left-color: var(--rule); color: var(--ink-soft); }

/* Fit list */
.fit { background: var(--concrete); }
.fit .wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.fit-list { list-style: none; margin: 0; padding: 0; }
.fit-list li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.fit-list li:first-child { padding-top: 0; }
.fit-list strong { display: block; font-size: 1.15rem; }
.fit-list span { color: var(--ink-soft); font-size: 1.02rem; }
.fit-list .tile svg { stroke: #fff; }
.fit-list .tile-yellow svg { stroke: var(--ink); }

/* Trial band */
.trial {
  background: var(--water);
  color: #fff;
  padding: 64px 0;
}
.trial .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.trial h2 { margin-bottom: 0.25em; }
.trial p { color: #DCE7F5; margin: 0; }

/* FAQ */
.faq-list { max-width: 760px; margin-top: 32px; }
.faq-list details {
  border-bottom: 1px solid var(--rule);
  padding: 4px 0;
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 36px 16px 0;
  font-weight: 700;
  font-size: 1.15rem;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 10px;
  font-size: 1.6rem;
  color: var(--water);
  font-weight: 600;
}
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { color: var(--ink-soft); padding-bottom: 8px; }

/* Contact form */
.contact { background: var(--concrete); }
.contact .wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
}
.owner {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 28px 0 0;
}
.owner img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 46% 54% 52% 48% / 54% 44% 56% 46%;
  border: 5px solid var(--gas);
  flex: none;
}
.owner figcaption { font-size: 1.02rem; color: var(--ink-soft); max-width: 30ch; line-height: 1.4; }
.owner strong {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.6rem;
  color: var(--ink);
  line-height: 1.1;
}
.contact-direct { margin-top: 24px; }
.contact-direct p { margin-bottom: 0.4em; }
form.lead {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 28px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--ink-soft); font-size: 0.95rem; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 12px;
  border: 1.5px solid #9AA3AC;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--water);
  outline: 3px solid rgba(31, 95, 174, 0.25);
  outline-offset: 0;
}
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 6px 0 22px;
}
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--water); }
.hidden-field { position: absolute; left: -9999px; }

/* Footer */
.site-footer {
  background: var(--night-deep);
  color: #AEB8C5;
  padding: 40px 0;
  font-size: 0.98rem;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer a { color: #E9EDF2; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* Legal pages */
.legal { padding: 56px 0 80px; }
.legal h1 { font-size: clamp(2.6rem, 6vw, 4rem); }
.legal h2 { font-size: 1.9rem; margin-top: 1.6em; }
.legal .updated { color: var(--ink-soft); }
.legal ul { max-width: var(--measure); padding-left: 1.2em; }
.legal li { margin-bottom: 0.5em; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding-bottom: 32px; }
  .hero-scene { min-height: 0; padding-top: 8px; }
  .scene-art { left: -20px; right: -20px; width: calc(100% + 40px); }
  .phone { margin: 0 auto 150px; }
  .report .wrap, .fit .wrap, .contact .wrap { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr 1fr; }
  section { padding: 64px 0; }
}
@media (max-width: 560px) {
  body { font-size: 1.06rem; }
  .hero { padding-top: 40px; }
  .steps { grid-template-columns: 1fr; }
  .two-up { grid-template-columns: 1fr; }
  .header-call .full { display: none; }
  form.lead { padding: 20px; }
  .inbox { padding: 18px; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .phone { width: 100%; max-width: 320px; margin-bottom: 110px; }
}
