/* ==========================================================
   Core Exchange — coreexchangellc.com
   Blunt, proven, blue-collar. Dark workshop + safety orange.
   One ask: book the demo call. Show, don't claim.
   ========================================================== */

:root {
  /* Color — OKLCH. Dark neutrals tinted toward the brand hue. */
  --bg: oklch(0.17 0.012 255);
  --bg-alt: oklch(0.20 0.014 255);
  --surface: oklch(0.25 0.018 255);
  --border: oklch(0.34 0.02 255);
  --ink: oklch(0.965 0.005 85);
  --muted: oklch(0.76 0.018 255);
  --accent: oklch(0.72 0.185 55);
  --accent-hover: oklch(0.77 0.175 55);
  --accent-ink: oklch(0.18 0.02 55);
  --good: oklch(0.80 0.13 150);
  --bad: oklch(0.72 0.14 25);

  /* Paper — the estimate-sheet material */
  --paper: oklch(0.955 0.012 90);
  --paper-ink: oklch(0.28 0.02 260);
  --paper-line: oklch(0.72 0.03 90);
  --paper-red: oklch(0.52 0.19 28);

  /* Space — 4pt-derived scale */
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;

  /* Motion */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 150ms;
  --t-med: 250ms;

  /* Type */
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  /* Z scale */
  --z-header: 10;
  --z-skip: 100;

  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  letter-spacing: 0.01em; /* light-on-dark compensation */
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: var(--space-md);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); margin-bottom: var(--space-md); }
h3 { font-size: 1.45rem; font-weight: 700; }

h1 em, h2 em, .hero-line-2 em {
  font-style: normal;
  color: var(--accent);
}

p { color: var(--muted); text-wrap: pretty; }
p strong, li strong { color: var(--ink); }

a { color: var(--accent); text-decoration: none; }

::selection { background: var(--accent); color: var(--accent-ink); }

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: var(--space-xs);
  left: var(--space-xs);
  z-index: var(--z-skip);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
  transform: translateY(-300%);
}
.skip-link:focus { transform: none; }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: 8px;
  transition:
    transform var(--t-fast) var(--ease-out-quart),
    background var(--t-fast) var(--ease-out-quart);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }

.btn-sm { font-size: 1rem; padding: 10px 20px; }
.btn-lg { font-size: 1.45rem; padding: 18px 44px; }

.link-quiet {
  color: var(--muted);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color var(--t-fast) var(--ease-out-quart);
}
.link-quiet:hover { color: var(--ink); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: oklch(0.17 0.012 255 / 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  height: 68px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.logo span { color: var(--accent); }

.site-nav { display: flex; gap: 28px; margin-left: auto; }
.site-nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--t-fast) var(--ease-out-quart);
}
.site-nav a:hover { color: var(--ink); }
.nav-phone { color: var(--ink) !important; font-weight: 600 !important; }

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

.hero {
  padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 7vw, 5.5rem);
  background:
    radial-gradient(ellipse 75% 55% at 72% -8%, oklch(0.72 0.185 55 / 0.12), transparent),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  font-weight: 700;
  color: var(--muted);
  max-width: 24ch;
}

.hero-line-2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.9rem, 8vw, 5.6rem);
  line-height: 1.02;
  color: var(--ink);
  margin: 0.35rem 0 var(--space-md);
  text-wrap: balance;
}

.hero-sub {
  font-size: 1.2rem;
  max-width: 56ch;
  margin-bottom: var(--space-lg);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.hero-note { font-size: 0.9rem; opacity: 0.85; }

/* Signature entrance: one staggered rise on load, nowhere else. */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.hero .container > * {
  animation: rise 0.7s var(--ease-out-expo) backwards;
}
.hero .container > :nth-child(2) { animation-delay: 90ms; }
.hero .container > :nth-child(3) { animation-delay: 180ms; }
.hero .container > :nth-child(4) { animation-delay: 270ms; }
.hero .container > :nth-child(5) { animation-delay: 340ms; }

/* ---------- Sections (shared) ---------- */

.section { padding-block: clamp(4rem, 9vw, 6.5rem); }

.section-intro {
  font-size: 1.15rem;
  max-width: 62ch;
  margin-bottom: var(--space-lg);
}

/* ---------- The Leak ---------- */

.section-leak { padding-block: clamp(4.5rem, 10vw, 7.5rem); }

.leak-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.leak-facts { list-style: none; margin-top: var(--space-lg); }

.leak-facts li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: var(--space-md);
  align-items: baseline;
  padding-block: var(--space-md);
  border-top: 1px solid var(--border);
}

.fact-figure {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 4vw, 3.4rem);
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.fact-figure small {
  font-size: 0.45em;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-left: 2px;
}

/* The estimate sheet — paper on the workbench */

.estimate {
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: 6px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow:
    0 1px 2px oklch(0 0 0 / 0.4),
    0 16px 48px oklch(0 0 0 / 0.45);
  transform: rotate(-0.6deg);
  font-size: 1rem;
  letter-spacing: 0;
}

.estimate-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-sm);
  border-bottom: 2px solid var(--paper-ink);
  padding-bottom: var(--space-2xs);
  margin-bottom: var(--space-sm);
}
.estimate-head strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
}
.estimate-head span { font-size: 0.8rem; color: oklch(0.45 0.02 260); }

.estimate-for {
  font-size: 0.92rem;
  color: oklch(0.40 0.02 260);
  margin-bottom: var(--space-md);
}
.estimate-for b { color: var(--paper-ink); }

.estimate-lines { display: grid; gap: var(--space-xs); margin-bottom: var(--space-md); }

.estimate-line {
  display: flex;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
}
.estimate-line span:last-child { font-weight: 700; }
.estimate-line i {
  flex: 1;
  border-bottom: 2px dotted var(--paper-line);
  margin: 0 0.6rem 0.3rem;
}

.estimate-total {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-md);
  border-top: 2px solid var(--paper-ink);
  padding-top: var(--space-sm);
}

.estimate-stamp {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  color: var(--paper-red);
  border: 3px solid var(--paper-red);
  border-radius: 4px;
  padding: 2px 12px;
  transform: rotate(-4deg);
  opacity: 0.9;
}

.estimate-amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 2.9rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.estimate-amount small { font-size: 0.45em; font-weight: 700; }

.estimate-foot {
  margin-top: var(--space-sm);
  font-size: 0.92rem;
  font-style: italic;
  color: oklch(0.40 0.02 260);
}

/* ---------- Live Demo + Phone ---------- */

.section-demo {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
  padding-block: clamp(4.5rem, 10vw, 7.5rem);
}

.demo-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.demo-text > p { max-width: 48ch; }

.demo-instruction {
  font-size: 1.2rem;
  color: var(--ink);
  font-weight: 600;
  margin-top: var(--space-md);
}

.demo-number {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 3.7rem);
  line-height: 1.15;
  color: var(--accent);
  letter-spacing: 0.03em;
  margin-block: var(--space-2xs) var(--space-sm);
  font-variant-numeric: tabular-nums;
  transition: color var(--t-fast) var(--ease-out-quart);
}
.demo-number:hover { color: var(--accent-hover); }

.demo-tagline { font-style: italic; color: var(--ink); margin-top: var(--space-sm); }

/* The phone — this page's imagery. A real conversation, not a stock photo. */

.phone {
  justify-self: center;
  width: min(360px, 100%);
  background: oklch(0.13 0.01 255);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: var(--space-md) var(--space-sm) var(--space-sm);
  box-shadow: 0 24px 64px oklch(0 0 0 / 0.5);
}

.phone-top {
  text-align: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-xs);
  margin-bottom: var(--space-sm);
}
.phone-contact {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}
.phone-status { font-size: 0.78rem; color: var(--muted); }

.phone-thread {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.msg {
  max-width: 82%;
  padding: 10px 14px;
  font-size: 0.95rem;
  line-height: 1.45;
  letter-spacing: 0;
}

.msg time {
  display: block;
  font-size: 0.68rem;
  opacity: 0.65;
  margin-top: 3px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.msg-in {
  align-self: flex-start;
  background: var(--surface);
  color: var(--ink);
  border-radius: 16px 16px 16px 4px;
}

.msg-out {
  align-self: flex-end;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 16px 16px 4px 16px;
}

.phone figcaption {
  margin-top: var(--space-sm);
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Messages arrive as you scroll — visible by default, animated where supported. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .msg {
      animation: msg-in linear both;
      animation-timeline: view();
      animation-range: entry 5% entry 45%;
    }
  }
}

@keyframes msg-in {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

/* ---------- The Enemy / comparison ---------- */

.table-wrap { overflow-x: auto; }

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
}

.compare-table thead th {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: var(--bg-alt);
}

.compare-table tbody th[scope="row"] {
  color: var(--ink);
  font-weight: 600;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: none; }

.col-bad { color: var(--bad); }
.col-good { color: var(--good); }

/* ---------- One Tuesday (job story timeline) ---------- */

.section-story {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
  padding-block: clamp(5rem, 11vw, 8rem);
}

.story {
  list-style: none;
  position: relative;
  margin-top: var(--space-lg);
  max-width: 760px;
}

.story::before {
  content: "";
  position: absolute;
  left: calc(6.5rem + 1.25rem + 5px);
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: var(--border);
}

.story li {
  display: grid;
  grid-template-columns: 6.5rem 12px 1fr;
  column-gap: 1.25rem;
  padding-block: var(--space-sm) var(--space-md);
}

.story li::before {
  content: "";
  grid-column: 2;
  grid-row: 1;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  margin-top: 0.5rem;
  position: relative;
  z-index: 1;
}

/* The 9-second beat is the whole pitch. Make its dot burn. */
.story li:nth-child(4)::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 16px oklch(0.72 0.185 55 / 0.55);
}
.story li:nth-child(4) .story-time { color: var(--accent); }

.story-time {
  grid-column: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  text-align: right;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

.story-body { grid-column: 3; max-width: 52ch; }
.story-body p { color: var(--ink); }

.story-tag {
  display: block;
  margin-top: var(--space-2xs);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
}

.story-summary {
  max-width: 62ch;
  margin-top: var(--space-lg);
  font-size: 1.15rem;
  border-top: 1px solid var(--border);
  padding-top: var(--space-md);
}

/* ---------- Dashboard ---------- */

.dashboard-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}

.dashboard-text p { max-width: 50ch; }

.dashboard-mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-md);
  font-size: 0.95rem;
}

.mock-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: var(--space-2xs);
}

.mock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  padding: 13px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.mock-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.mock-highlight {
  background: oklch(0.72 0.185 55 / 0.08);
  border-radius: 8px;
  border-bottom: none;
}
.mock-highlight .mock-val { color: var(--accent); }

.mock-foot {
  margin-top: var(--space-xs);
  font-size: 0.82rem;
  font-style: italic;
}

/* ---------- Guarantee ---------- */

.section-guarantee {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.guarantee-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: clamp(2.25rem, 5vw, 3.25rem) clamp(1.5rem, 4vw, 2.75rem);
  box-shadow: 0 0 80px oklch(0.72 0.185 55 / 0.10);
}

.guarantee-card h2 { text-align: center; }
.guarantee-card p { margin-top: var(--space-sm); }

/* ---------- How to start ---------- */

.section-start { text-align: center; padding-block: clamp(5rem, 11vw, 7.5rem); }

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin: var(--space-lg) 0 var(--space-xl);
  text-align: left;
}

.steps li {
  counter-increment: step;
  border-top: 1px solid var(--border);
  padding-top: var(--space-md);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-sm);
}

.steps li::before {
  content: counter(step);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--accent);
}

.steps h3 { margin-bottom: var(--space-2xs); }

.final-cta { margin-top: var(--space-sm); }

.cta-alt { margin-top: var(--space-md); font-size: 1rem; }

/* ---------- Legal pages (privacy, terms) ---------- */

.legal {
  max-width: 70ch;
  padding-block: clamp(3rem, 7vw, 5rem) clamp(4rem, 8vw, 6rem);
}

.legal-back {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: var(--space-lg);
  transition: color var(--t-fast) var(--ease-out-quart);
}
.legal-back:hover { color: var(--accent); }

.legal h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: var(--space-2xs);
}

.legal .updated { font-size: 0.9rem; margin-bottom: var(--space-md); }

.legal-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
}
.legal-summary strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  color: var(--ink);
  margin-bottom: var(--space-2xs);
}
.legal-summary p { color: var(--muted); }

.legal h2 {
  font-size: 1.5rem;
  margin: var(--space-lg) 0 0;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.legal p, .legal li { margin-top: var(--space-xs); }

.legal ul {
  padding-left: 1.25rem;
  color: var(--muted);
}

.legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Funnel: booking + thank-you ---------- */

.funnel-header {
  background: oklch(0.17 0.012 255 / 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.funnel-header .container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 68px;
}

.funnel {
  padding-block: clamp(2.5rem, 6vw, 4.25rem) clamp(4rem, 9vw, 6rem);
  text-align: center;
  background:
    radial-gradient(ellipse 75% 50% at 50% -10%, oklch(0.72 0.185 55 / 0.11), transparent),
    var(--bg);
}

.funnel-eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.funnel-title {
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  max-width: 24ch;
  margin: 0 auto var(--space-md);
}

.funnel-sub {
  font-size: 1.2rem;
  color: var(--ink);
  font-weight: 600;
  max-width: 46ch;
  margin: 0 auto;
}

.funnel-bonus {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-top: var(--space-md);
  padding: 8px 18px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: oklch(0.72 0.185 55 / 0.08);
}

/* The booking widget sits on paper, like the estimate sheet — same material. */
.booking-card {
  max-width: 940px;
  margin: clamp(2.25rem, 5vw, 3.5rem) auto 0;
  background: var(--paper);
  border-radius: var(--radius);
  padding: clamp(0.5rem, 1.2vw, 0.85rem);
  box-shadow:
    0 1px 2px oklch(0 0 0 / 0.4),
    0 18px 52px oklch(0 0 0 / 0.45);
  overflow: hidden;
}

.booking-card iframe {
  width: 100%;
  min-height: 720px;
  border: none;
  border-radius: 8px;
  display: block;
  background: var(--paper);
}

.funnel-reassure {
  max-width: 52ch;
  margin: var(--space-lg) auto 0;
  font-size: 1.05rem;
}

/* ---------- Thank-you ---------- */

.thanks {
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
  text-align: center;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, oklch(0.72 0.185 55 / 0.12), transparent),
    var(--bg);
}

.thanks-inner { max-width: 640px; }

.thanks-badge {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: 0 auto var(--space-md);
  border-radius: 50%;
  background: oklch(0.72 0.185 55 / 0.12);
  border: 2px solid var(--accent);
  box-shadow: 0 0 48px oklch(0.72 0.185 55 / 0.30);
}
.thanks-badge svg { width: 44px; height: 44px; stroke: var(--accent); }

.thanks h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  margin-bottom: var(--space-md);
}

.thanks-lead {
  font-size: 1.2rem;
  max-width: 50ch;
  margin: 0 auto var(--space-lg);
}

.thanks-steps {
  list-style: none;
  counter-reset: step;
  text-align: left;
  max-width: 520px;
  margin: 0 auto var(--space-lg);
}

.thanks-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-sm);
  align-items: baseline;
  padding-block: var(--space-sm);
  border-top: 1px solid var(--border);
}

.thanks-steps li::before {
  content: counter(step);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.thanks-steps strong { color: var(--ink); }

.thanks-proof {
  max-width: 50ch;
  margin: 0 auto var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}
.thanks-proof a { font-weight: 700; }

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

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: var(--space-xl) var(--space-lg);
  background: var(--bg-alt);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-lg);
  font-size: 0.92rem;
}

.footer-contact,
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.footer-contact a,
.footer-legal a {
  color: var(--muted);
  transition: color var(--t-fast) var(--ease-out-quart);
}
.footer-contact a:hover,
.footer-legal a:hover { color: var(--accent); }

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

@media (max-width: 900px) {
  .leak-grid,
  .demo-grid,
  .dashboard-inner {
    grid-template-columns: 1fr;
  }

  .estimate { transform: rotate(0deg); max-width: 480px; }

  .phone { justify-self: start; }
}

@media (max-width: 700px) {
  .site-nav { display: none; }

  .hero { padding-block: 3rem 2.75rem; }
  .hero-sub { font-size: 1.1rem; margin-bottom: var(--space-md); }
  .section { padding-block: 3.5rem; }

  .leak-facts li { grid-template-columns: 5.5rem 1fr; }

  .story::before { left: 5px; }
  .story li {
    grid-template-columns: 12px 1fr;
    column-gap: var(--space-sm);
  }
  .story li::before { grid-column: 1; }
  .story-time {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
    margin-bottom: 2px;
  }
  .story-body { grid-column: 2; }

  .steps { grid-template-columns: 1fr; gap: var(--space-md); }

  .footer-inner { flex-direction: column; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
