@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #FAFAF7;
  --ink: #111111;
  --muted: #5A5A55;
  --rule: #E4E2DC;
  --accent: #C8462B;
  --accent-ink: #FFFFFF;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --side: 16px;
  --gap: 64px;
  color-scheme: light;
}
@media (min-width: 600px) { :root { --side: 24px; } }
@media (min-width: 1024px) { :root { --gap: 96px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
p { margin: 0 0 1rem; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }

h1, h2 { font-family: var(--serif); font-weight: 400; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 4.5vw, 3rem); line-height: 1.08; letter-spacing: -0.015em; margin-bottom: 1.25rem; max-width: 20em; }

.wrap { max-width: 72rem; margin-inline: auto; padding-inline: var(--side); }
.small, .small a { font-size: 0.875rem; color: var(--muted); }
.skip {
  position: absolute; left: 8px; top: -60px; z-index: 30;
  background: var(--ink); color: var(--bg); padding: 12px 16px;
}
.skip:focus { top: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 52px; padding: 0.75rem 1.5rem;
  border: 1px solid transparent; border-radius: 12px;
  font: 600 1.0625rem/1.2 var(--sans); text-decoration: none; text-align: center;
  cursor: pointer; transition: transform 0.12s ease, background-color 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-call { background: var(--accent); color: var(--accent-ink); }
.btn-call:hover { background: #B23C24; }
.btn-line { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--bg); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { background: #333; }
.btn-sm { min-height: 44px; padding: 0.5rem 0.875rem; font-size: 0.9375rem; }
.ico { flex: none; }

/* Header */
.top { padding-block: 10px; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: block; flex: none; padding-block: 4px; }
.logo img { width: 176px; }

/* Hero */
.hero { padding-top: 12px; padding-bottom: 28px; }
.sub { font-size: 1.125rem; line-height: 1.5; margin: 0.875rem 0 1.125rem; max-width: 38rem; }
.actions { display: grid; gap: 10px; }
.trust { margin: 0.875rem 0 0; font-size: 0.875rem; line-height: 1.45; color: var(--muted); }

/* Proof strip */
.proof ul { list-style: none; margin: 0 0 0.75rem; padding: 0; border-top: 1px solid var(--ink); }
.proof li { padding-block: 0.75rem 0.875rem; border-bottom: 1px solid var(--rule); }
.proof strong {
  display: block; font: 400 clamp(3.25rem, 11vw, 7rem)/1 var(--serif);
  letter-spacing: -0.02em; color: var(--accent);
}
.proof span { display: block; font-size: 0.9375rem; line-height: 1.4; }

/* Sections */
.sec { margin-top: var(--gap); }
.proof + .sec { margin-top: 40px; }
.label {
  border-top: 1px solid var(--ink); padding-top: 0.75rem; margin-bottom: 1.5rem;
  font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.intro { max-width: 38rem; margin-bottom: 1.25rem; }
.cta { margin: 1.5rem 0 0; }

/* Editorial tables: stacked cards on phones */
.ed { width: 100%; border-collapse: collapse; }
.ed thead { display: none; }
.ed, .ed tbody, .ed tr, .ed th, .ed td { display: block; text-align: left; }
.ed tr { padding-block: 1rem; border-top: 1px solid var(--rule); }
.ed tr:last-child { border-bottom: 1px solid var(--rule); }
.ed tbody th { font-weight: 600; font-size: 1.125rem; line-height: 1.3; margin-bottom: 0.625rem; }
.ed td { padding-block: 0.25rem; line-height: 1.5; font-size: 1rem; }
.ed td::before {
  content: attr(data-label); display: block;
  font-size: 0.8125rem; color: var(--muted);
}
.ed .price { font-weight: 600; font-size: 1.0625rem; }
.fit { display: block; margin-top: 0.25rem; font: 400 0.875rem/1.4 var(--sans); letter-spacing: 0; color: var(--muted); }

/* Prompts around the two tables */
.nudge { margin-top: 1.5rem; }
.nudge p { font-weight: 600; margin-bottom: 0.875rem; }
.addon { margin-top: 1.25rem; padding: 1rem; border: 1px solid var(--ink); border-radius: 8px; line-height: 1.5; font-size: 1rem; }
.addon p { margin: 0 0 0.5rem; }
.addon p:last-child { margin-bottom: 0; }
.addon-name { font-weight: 600; font-size: 1.125rem; }
.addon-name span { display: block; font-size: 0.8125rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.addon .price { font-weight: 600; font-size: 1.0625rem; }
.deadline { margin: 1.25rem 0 0.25rem; font-weight: 600; }
.reassure { margin-bottom: 1.25rem; max-width: 38rem; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.cta-row p { margin: 0; font-weight: 600; }


/* Beliefs: rows on phones and tablets, five columns on desktop */
.beliefs { list-style: none; counter-reset: b; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.beliefs li {
  counter-increment: b; display: grid; grid-template-columns: 76px 1fr; column-gap: 1rem; align-items: center;
  padding-block: 0.875rem; border-top: 1px solid var(--rule);
  font: 400 clamp(1.375rem, 3vw, 2rem)/1.2 var(--serif);
}
.beliefs img { width: 76px; height: 76px; }
.beliefs div::before { content: counter(b); display: block; font: 400 0.8125rem/1.4 var(--sans); color: var(--muted); margin-bottom: 0.125rem; }

/* How it works: a timeline, down the page on phones and across from tablet up */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.steps li {
  counter-increment: s; position: relative; display: grid; grid-template-columns: 76px 1fr; column-gap: 1rem;
  padding: 0 0 1.75rem 1.25rem; border-left: 1px solid var(--ink); line-height: 1.5;
}
.steps li:last-child { padding-bottom: 0.25rem; }
.steps img { width: 76px; height: 76px; }
.step-mark { position: absolute; left: -6px; top: 32px; width: 11px; height: 11px; border-radius: 50%; background: var(--ink); }
.steps li:last-child .step-mark { background: var(--bg); border: 2px solid var(--ink); }
.steps strong { display: block; font: 400 1.5rem/1.15 var(--serif); margin-bottom: 0.375rem; }
.steps strong::before { content: counter(s) ". "; }

/* Promise */
.promise { background: var(--ink); color: var(--bg); border-radius: 12px; padding: 2rem 1.25rem; }
.label-h {
  font: 400 0.8125rem/1.4 var(--sans); letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 1rem; color: inherit; max-width: none;
}
.promise p { font: 400 clamp(1.875rem, 5vw, 3.25rem)/1.1 var(--serif); letter-spacing: -0.015em; margin-bottom: 1.5rem; max-width: 22em; }

/* Sample and portrait */
.example { display: grid; gap: 1.5rem; }
.sample { margin: 0; display: grid; gap: 1.5rem; }
.sample-phone { width: min(260px, 100%); margin-inline: auto; }
.marks { list-style: none; counter-reset: m; margin: 0 0 1.25rem; padding: 0; }
.marks li {
  counter-increment: m; display: grid; grid-template-columns: 2.25rem 1fr; column-gap: 0.75rem;
  padding-block: 1rem; border-top: 1px solid var(--rule); line-height: 1.45;
}
.marks li:last-child { border-bottom: 1px solid var(--rule); }
.marks li::before {
  content: counter(m); display: grid; place-items: center; width: 2rem; height: 2rem;
  border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 0.9375rem; font-weight: 600;
}
.about { display: grid; gap: 1.5rem; }
.about > img { width: auto; max-width: 100%; max-height: 300px; }
.about p { max-width: 38rem; }
.about .pull { font: 400 clamp(1.75rem, 4.5vw, 3rem)/1.1 var(--serif); letter-spacing: -0.015em; margin-block: 1.25rem; max-width: 18em; }

/* Testimonials (only rendered when real ones exist) */
.quote { margin: 0; padding-block: 1.5rem; border-top: 1px solid var(--rule); }
.quote blockquote { margin: 0 0 1rem; font: 400 clamp(1.75rem, 4.5vw, 3rem)/1.12 var(--serif); }
.quote figcaption { font-size: 0.875rem; color: var(--muted); }

/* FAQ */
.faq { border-bottom: 1px solid var(--rule); }
.faq details { border-top: 1px solid var(--rule); max-width: 46rem; }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 52px; padding-block: 0.75rem; font-weight: 600; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 1.5rem/1 var(--serif); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 0.75rem; margin: 0; max-width: 38rem; }

/* Contact */
.reach { margin-bottom: 1.5rem; }
.reach a { display: inline-block; padding-block: 0.5rem; }
.form { display: grid; gap: 1rem; max-width: 34rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.field input, .field textarea {
  display: block; width: 100%; min-height: 52px; padding: 0.75rem;
  background: #fff; color: var(--ink);
  border: 1px solid var(--muted); border-radius: 8px;
  font: 400 1.0625rem/1.4 var(--sans);
}
.field textarea { resize: vertical; }
.form .btn { width: 100%; }
.form .small { margin: 0; }
.form .small a { display: inline-block; padding-block: 0.75rem; margin-block: -0.75rem; }
.contact-social { margin: 0.75rem 0 0 -10px; }
.social { display: inline-grid; place-items: center; width: 44px; height: 44px; color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error {
  max-width: 34rem; padding: 0.75rem 1rem; margin-bottom: 1rem;
  border: 2px solid var(--ink); border-radius: 8px; font-weight: 600;
}

/* Footer */
.foot { margin-top: var(--gap); padding-block: 1.5rem; border-top: 1px solid var(--ink); font-size: 0.875rem; color: var(--muted); }
.foot p { margin-bottom: 0.5rem; }
.foot a { display: inline-block; padding-block: 0.75rem; margin-block: -0.5rem; }

/* Plain pages */
.page { padding-top: 2rem; }
.page h1 { margin-bottom: 1.5rem; max-width: 16em; }
.page p { max-width: 38rem; }
.page a { display: inline-block; padding-block: 0.5rem; }

/* Leak cards on phones: the fix first, no repeated labels */
@media (max-width: 767.98px) {
  .ed-leaks tr { display: flex; flex-direction: column; padding-block: 0.875rem; }
  .ed-leaks tbody th { margin-bottom: 0.25rem; }
  .ed-leaks td::before { content: none; }
  .ed-leaks .leak-fix { order: 1; padding-block: 0; }
  .ed-leaks .leak-cost { order: 2; padding-block: 0.375rem 0; font-size: 0.875rem; line-height: 1.45; color: var(--muted); }
}

/* Sticky call bar: phones only, needs JS to know when to show */
.sticky { display: none; }
@media (max-width: 767.98px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .js .sticky {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; inset: auto 0 0; z-index: 20;
    padding: 10px var(--side) calc(10px + env(safe-area-inset-bottom));
    background: var(--bg); border-top: 1px solid var(--rule);
    transform: translateY(110%); visibility: hidden;
    transition: transform 0.2s ease, visibility 0.2s;
  }
  .js .sticky.on { transform: none; visibility: visible; }
  .sticky .btn { padding-inline: 0.5rem; }
}

/* Tablet and up */
@media (min-width: 768px) {
  .top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--rule); }
  html { scroll-padding-top: 88px; }
  .logo img { width: 200px; }
  .hero { padding-top: 56px; padding-bottom: 56px; }
  h1 { max-width: 13em; }
  .sub { font-size: 1.25rem; margin-block: 1.5rem; }
  .actions { display: flex; flex-wrap: wrap; gap: 12px; }
  .trust { margin-top: 1.25rem; }

  .proof ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; border-bottom: 1px solid var(--rule); }
  .proof li { border-bottom: 0; padding-block: 1.5rem; }
  .proof span { margin-top: 0.5rem; max-width: 18rem; font-size: 1rem; }

  .proof + .sec { margin-top: var(--gap); }

  .ed { display: table; }
  .ed thead { display: table-header-group; }
  .ed tbody { display: table-row-group; }
  .ed tr { display: table-row; border-top: 0; padding: 0; }
  .ed th, .ed td { display: table-cell; vertical-align: top; padding: 1.25rem 2rem 1.25rem 0; border-top: 1px solid var(--rule); }
  .ed tr:last-child th, .ed tr:last-child td { border-bottom: 1px solid var(--rule); }
  .ed thead th, .ed thead td {
    border-top: 1px solid var(--ink); padding-block: 0.625rem;
    font-size: 0.8125rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  }
  .ed tbody th { width: 28%; margin: 0; }
  .ed td::before { content: none; }
  .ed-prices tbody th { width: 22%; font: 400 1.75rem/1.1 var(--serif); }
  .ed-prices .price { width: 22%; padding-right: 0; }
  .ed-prices tbody th { width: 27%; }
  .ed-prices tbody .fit { font-size: 0.875rem; }
  .addon { display: grid; grid-template-columns: 24% 1fr 20%; column-gap: 2rem; padding: 1.25rem; }
  .addon p { margin: 0; }

  .beliefs li { grid-template-columns: 96px 1fr; column-gap: 1.5rem; }
  .beliefs img { width: 96px; height: 96px; }
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 2rem; }
  .steps li { display: block; padding: 0 1.5rem; border-left: 0; text-align: center; }
  .steps li:last-child { padding-bottom: 0; }
  .steps img { width: 140px; height: 140px; margin: 0 auto 1rem; }
  .step-mark { display: block; position: relative; left: auto; top: auto; margin: 0 auto 1.25rem; }
  .steps li::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 161px; height: 1px; background: var(--ink); }
  .steps { isolation: isolate; }
  .steps strong { font-size: 1.75rem; }

  .promise { padding: 3.5rem; }
  .example { gap: 2rem; }
  .sample { grid-template-columns: minmax(0, 2.85fr) minmax(0, 1fr); gap: 2rem; align-items: end; }
  .sample-phone { width: 100%; margin: 0; }
  .marks { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 2rem; border-bottom: 1px solid var(--rule); }
  .marks li:last-child { border-bottom: 0; }
  .about:has(> img) { grid-template-columns: 320px minmax(0, 1fr); gap: 3.5rem; align-items: center; }
  .about > img { width: 100%; max-height: none; }
  .form .btn { width: auto; min-width: 12rem; justify-self: start; }
}

@media (min-width: 1024px) {
  .beliefs { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--rule); }
  .beliefs li { display: block; border-top: 0; padding: 1.5rem 1.25rem; border-left: 1px solid var(--rule); font-size: 1.625rem; }
  .beliefs li:first-child { border-left: 0; padding-left: 0; }
  .beliefs li:last-child { padding-right: 0; }
  .beliefs img { width: 120px; height: 120px; margin-bottom: 1.25rem; }
}

/* Fade-up: only with JS on and motion allowed */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .js .fade { opacity: 0; transform: translateY(12px); transition: opacity 0.3s ease, transform 0.3s ease; }
  .js .fade.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .js .sticky { transition: none; }
}
