/* ==========================================================================
   OnlineGroundWork — small business & trades online presence
   ========================================================================== */

:root {
  --ink: #12202f;
  --ink-2: #2b3a4a;
  --muted: #5b6878;
  --line: #dfe3e8;
  --paper: #ffffff;
  --paper-2: #f5f3ee;
  --paper-3: #ebe7de;
  --accent: #f2a516;
  --accent-ink: #1a1300;
  --accent-soft: #fdf1d6;
  --good: #1f8a5b;
  --good-soft: #e3f4ec;
  --warn: #c2461d;
  --warn-soft: #fbe8e1;
  --blue: #2f6fd6;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(18, 32, 47, 0.06), 0 8px 24px rgba(18, 32, 47, 0.08);
  --shadow-lg: 0 2px 4px rgba(18, 32, 47, 0.06), 0 24px 48px rgba(18, 32, 47, 0.14);

  --font-head: "Archivo", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --wrap: 1160px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: 1.3rem; font-weight: 700; }

p { margin: 0 0 1em; }

a { color: inherit; }

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 46ch; }

.section { padding: 104px 0; }
.section--tint { background: var(--paper-2); }
.section--dark { background: var(--ink); color: #fff; }
.section--dark .eyebrow { color: var(--accent); }
.section--dark .lead { color: #c3ccd6; }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 15px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px rgba(242, 165, 22, 0.35); }
.btn--primary:hover { background: #f7b232; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--block { width: 100%; justify-content: center; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--ink);
  display: grid;
  place-items: center;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; font-weight: 600; color: var(--ink-2); font-size: 1rem; }
.nav a:hover { color: var(--ink); }
.nav .btn { padding: 11px 20px; font-size: 0.95rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.hero {
  padding: 72px 0 96px;
  background:
    radial-gradient(1000px 500px at 85% 10%, var(--accent-soft), transparent 60%),
    var(--paper);
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 .hl {
  background: linear-gradient(transparent 62%, var(--accent) 62%, var(--accent) 92%, transparent 92%);
  padding: 0 4px;
}

.hero .lead { margin: 22px 0 34px; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-proof {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding: 0;
  list-style: none;
  font-size: 0.98rem;
  color: var(--ink-2);
}

.hero-proof li { display: flex; align-items: center; gap: 8px; }
.hero-proof svg { color: var(--good); flex: none; }

/* Hero visual: stacked cards */
.hero-visual { position: relative; min-height: 560px; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hv-listing {
  position: absolute;
  top: 44px;
  left: 0;
  width: 78%;
  padding: 22px;
  box-shadow: var(--shadow-lg);
}

.hv-listing .gtop { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--muted); margin-bottom: 12px; }
.hv-listing h4 { font-size: 1.25rem; margin-bottom: 4px; }
.hv-listing .meta { font-size: 0.92rem; color: var(--muted); }

.stars { display: inline-flex; gap: 2px; color: #f4b400; vertical-align: -2px; }

.hv-rating { display: flex; align-items: center; gap: 8px; margin: 6px 0 14px; font-weight: 600; }
.hv-rating small { color: var(--muted); font-weight: 400; }

.hv-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hv-actions span {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 0;
}

.hv-review {
  position: absolute;
  top: 290px;
  right: 0;
  width: 64%;
  padding: 18px 20px;
}

.hv-review .who { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 0.85rem;
  background: var(--paper-3); color: var(--ink-2);
}
.hv-review p { font-size: 0.95rem; margin: 0; color: var(--ink-2); }

.hv-call {
  position: absolute;
  bottom: 0;
  left: 6%;
  width: 60%;
  padding: 16px 18px;
  background: var(--ink);
  color: #fff;
  border: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hv-call .ring {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--good);
  display: grid; place-items: center;
  flex: none;
  animation: pulse 2s infinite;
}

.hv-call small { display: block; color: #9fb0c2; font-size: 0.8rem; }
.hv-call strong { font-family: var(--font-head); font-size: 1.05rem; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(31, 138, 91, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(31, 138, 91, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 138, 91, 0); }
}

.hv-paid {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}
.hv-paid .tick { width: 28px; height: 28px; border-radius: 50%; background: var(--good-soft); color: var(--good); display: grid; place-items: center; }

/* Problem strip ---------------------------------------------------------- */

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.problem {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
}

.problem .num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.6rem;
  color: var(--warn);
  line-height: 1;
  margin-bottom: 12px;
}

.problem p { color: var(--ink-2); margin: 0; }

.problem-note { margin-top: 28px; font-size: 0.85rem; color: var(--muted); }

/* System pipeline -------------------------------------------------------- */

.pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  counter-reset: step;
  position: relative;
}

.pipe-step {
  position: relative;
  padding: 0 14px;
  text-align: center;
}

.pipe-step::after {
  content: "";
  position: absolute;
  top: 34px;
  left: calc(50% + 40px);
  width: calc(100% - 80px);
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.35) 0 6px, transparent 6px 12px);
}

.pipe-step:last-child::after { display: none; }

.pipe-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  color: var(--accent);
}

.pipe-step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.pipe-step p { font-size: 0.95rem; color: #b6c1cd; margin: 0; }
.pipe-step .verb {
  display: block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.pipeline-foot {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.pipeline-foot p { margin: 0; color: #c3ccd6; max-width: 60ch; }

/* Services --------------------------------------------------------------- */

.service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.service:first-of-type { border-top: 0; padding-top: 0; }
.service:nth-of-type(even) .service-copy { order: 2; }

.service-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink-2);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.service h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.service-copy > p { color: var(--ink-2); }

.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { flex: none; margin-top: 4px; color: var(--good); }
.checks strong { font-family: var(--font-head); font-weight: 700; }

.service-visual {
  background: var(--paper-2);
  border-radius: 20px;
  padding: 36px;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Visual: GBP checklist */
.gbp-score { width: 100%; max-width: 400px; padding: 24px; }
.gbp-score header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.gbp-score header strong { font-family: var(--font-head); }
.gbp-score .big { font-family: var(--font-head); font-weight: 800; font-size: 1.8rem; color: var(--good); }
.bar { height: 8px; border-radius: 99px; background: var(--paper-3); overflow: hidden; margin-bottom: 20px; }
.bar i { display: block; height: 100%; width: 96%; background: var(--good); border-radius: inherit; }
.gbp-items { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 0.95rem; }
.gbp-items li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.gbp-items li:last-child { border-bottom: 0; padding-bottom: 0; }
.ok { color: var(--good); font-weight: 600; }

/* Visual: review timeline */
.timeline { width: 100%; max-width: 400px; display: grid; gap: 14px; }
.tl-item { display: flex; gap: 14px; padding: 16px 18px; align-items: center; }
.tl-dot { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--paper-2); color: var(--ink-2); }
.tl-item small { display: block; color: var(--muted); font-size: 0.82rem; }
.tl-item strong { font-family: var(--font-head); font-size: 0.98rem; }
.tl-item--done .tl-dot { background: var(--good-soft); color: var(--good); }
.tl-item--star .tl-dot { background: #fff6dc; color: #e0a100; }

/* Visual: website trust anatomy */
.browser { width: 100%; max-width: 420px; overflow: hidden; }
.browser-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fafafa; border-radius: var(--radius) var(--radius) 0 0; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser-body { padding: 22px; display: grid; gap: 12px; }
.bb-line { height: 10px; border-radius: 6px; background: var(--paper-3); }
.bb-h { height: 18px; width: 75%; background: var(--ink); border-radius: 6px; }
.bb-row { display: flex; gap: 10px; align-items: center; }
.bb-btn { padding: 9px 14px; border-radius: 999px; background: var(--accent); font-family: var(--font-head); font-weight: 700; font-size: 0.8rem; }
.bb-chip { font-size: 0.78rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--good-soft); color: var(--good); }
.bb-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bb-cards span { aspect-ratio: 4/3; border-radius: 8px; background: var(--paper-3); }

/* Visual: call routing */
.routing { width: 100%; max-width: 420px; display: grid; gap: 14px; justify-items: center; }
.route-num {
  padding: 16px 22px;
  text-align: center;
  width: 100%;
}
.route-num small { display: block; color: var(--muted); font-size: 0.82rem; }
.route-num strong { font-family: var(--font-head); font-size: 1.6rem; letter-spacing: 0.02em; }
.route-arrow { color: var(--muted); }
.route-targets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.route-targets .card { padding: 14px 10px; text-align: center; font-size: 0.86rem; }
.route-targets strong { display: block; font-family: var(--font-head); font-size: 0.95rem; }
.route-targets small { color: var(--muted); }

/* Visual: job board */
.jobs { width: 100%; max-width: 440px; padding: 20px; }
.jobs header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.jobs header strong { font-family: var(--font-head); }
.jobs header small { color: var(--muted); }
.job { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 0.92rem; }
.job b { font-weight: 600; }
.job small { color: var(--muted); grid-column: 1; }
.pill { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: 0.75rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.pill--sched { background: #e6eefb; color: var(--blue); }
.pill--prog { background: var(--accent-soft); color: #8a5a00; }
.pill--inv { background: var(--good-soft); color: var(--good); }
.pill--late { background: var(--warn-soft); color: var(--warn); }
.jobs-alert { margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--warn-soft); color: var(--warn); font-size: 0.88rem; font-weight: 600; display: flex; gap: 10px; align-items: center; }

/* Process ---------------------------------------------------------------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.step { padding: 28px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); position: relative; }
.step::before {
  counter-increment: s;
  content: counter(s);
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: #fff;
  font-family: var(--font-head); font-weight: 800;
  margin-bottom: 18px;
}
.step h3 { font-size: 1.15rem; }
.step p { color: var(--ink-2); font-size: 1rem; margin: 0; }
.step .when { display: block; margin-top: 14px; font-size: 0.85rem; font-weight: 700; color: var(--muted); font-family: var(--font-head); }

/* Pricing ---------------------------------------------------------------- */

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { padding: 32px; display: flex; flex-direction: column; }
.plan--featured { border: 2px solid var(--ink); position: relative; box-shadow: var(--shadow-lg); }
.plan-badge {
  position: absolute; top: -14px; left: 32px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-head); font-weight: 800; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.plan h3 { font-size: 1.35rem; margin-bottom: 4px; }
.plan .for { color: var(--muted); font-size: 0.98rem; min-height: 3em; }
.price { margin: 18px 0 4px; font-family: var(--font-head); }
.price strong { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; }
.price span { color: var(--muted); font-size: 1rem; }
.price-sub { font-size: 0.92rem; color: var(--muted); margin-bottom: 22px; }
.plan .checks { margin: 0 0 28px; font-size: 1rem; flex: 1; }
.plan .checks li.no { color: var(--muted); }
.plan .checks li.no svg { color: var(--line); }
.plans-note { text-align: center; margin-top: 28px; color: var(--muted); font-size: 0.95rem; }

/* Promise ---------------------------------------------------------------- */

.promise { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.promise-list { display: grid; gap: 18px; }
.promise-item { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); }
.promise-item svg { flex: none; color: var(--accent); margin-top: 3px; }
.promise-item h3 { font-size: 1.1rem; margin-bottom: 4px; }
.promise-item p { color: #b6c1cd; margin: 0; font-size: 1rem; }

/* FAQ -------------------------------------------------------------------- */

.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.12rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute; right: 6px; top: 50%;
  width: 12px; height: 12px;
  border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--ink-2); padding-bottom: 22px; margin: 0; max-width: 68ch; }

/* Contact ---------------------------------------------------------------- */

.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.contact-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.contact-points li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink-2); }
.contact-points svg { flex: none; color: var(--ink); margin-top: 3px; }

.form { padding: 32px; display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 1rem;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(18, 32, 47, 0.12); }
.field textarea { min-height: 110px; resize: vertical; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.chips legend { font-weight: 600; font-size: 0.95rem; margin-bottom: 8px; padding: 0; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block;
  padding: 8px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

.form-note { font-size: 0.85rem; color: var(--muted); margin: 0; text-align: center; }
.form-error { margin: 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--warn-soft); color: var(--warn); font-weight: 600; font-size: 0.95rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-success { display: none; text-align: center; padding: 40px 20px; }
.form-success.is-visible { display: block; }
.form-success .tick { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: var(--good-soft); color: var(--good); display: grid; place-items: center; }

/* Legal pages ------------------------------------------------------------ */

.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.legal h2 { font-size: 1.45rem; margin-top: 2.2em; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 1.3em; margin: 0 0 1em; display: grid; gap: 6px; }
.legal a { color: var(--blue); }
.legal-updated { font-size: 0.95rem; color: var(--muted); }
.legal .lead { max-width: none; margin: 28px 0 0; }
.legal ~ .site-footer { padding-top: 32px; }
.legal ~ .site-footer .footer-base { border-top: 0; padding-top: 0; }

/* CTA band --------------------------------------------------------------- */

.cta-band { background: var(--accent); padding: 64px 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; max-width: 22ch; color: var(--accent-ink); }
.cta-band .btn--ghost:hover { background: var(--ink); }

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

.site-footer { background: var(--ink); color: #b6c1cd; padding: 64px 0 32px; font-size: 0.98rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.site-footer .logo-mark { background: var(--accent); }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.88rem; }

/* Reveal on scroll ------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hv-call .ring { animation: none; }
}

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

@media (max-width: 1020px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; width: 100%; margin: 0 auto; }
  .pipeline { grid-template-columns: 1fr; gap: 28px; max-width: 520px; margin: 0 auto; }
  .pipe-step { display: grid; grid-template-columns: 68px 1fr; gap: 0 20px; text-align: left; padding: 0; }
  .pipe-icon { margin: 0; grid-row: span 3; }
  .pipe-step::after { top: 76px; left: 33px; width: 2px; height: calc(100% - 52px); background: repeating-linear-gradient(180deg, rgba(255,255,255,0.35) 0 6px, transparent 6px 12px); }
  .service { grid-template-columns: 1fr; gap: 36px; }
  .service:nth-of-type(even) .service-copy { order: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .promise, .contact { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 820px) {
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 24px;
    transform: translateY(-120%);
    transition: transform 0.25s ease;
    z-index: -1;
  }
  .nav.is-open { transform: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; justify-content: center; border-bottom: 0; }
  .nav-toggle { display: block; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .problem-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .section { padding: 72px 0; }
  .hero { padding: 40px 0 72px; }
  .hero-visual { min-height: 560px; }
  .hv-listing { width: 92%; }
  .hv-review { width: 84%; top: 300px; }
  .hv-call { width: 86%; left: 0; }
  .service { padding: 56px 0; }
  .service-visual { padding: 20px; min-height: 0; }
  .steps { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .form-row { grid-template-columns: 1fr; }
  .route-targets { grid-template-columns: 1fr; }
  .hero-ctas .btn { flex: 1 1 100%; justify-content: center; }
}
