/* ==========================================================================
   Styles — mobile-first, system fonts only, no external resources.
   Colours chosen for WCAG AA contrast on the cream background.
   ========================================================================== */

:root {
  --bg: #faf7f2;          /* cream */
  --bg-alt: #f1ece3;      /* alternate section */
  --surface: #ffffff;
  --text: #1c1f23;        /* ~15:1 on --bg */
  --muted: #4a4f57;       /* ~7.6:1 on --bg */
  --border: #d8d1c4;
  --accent: #0b5e57;      /* deep teal; white text ~7.4:1 */
  --accent-dark: #084842;
  --accent-soft: #e3f0ee;
  --warn-bg: #fff4d6;
  --warn-border: #b7791f;
  --warn-text: #3d2a00;
  --error: #a3261b;       /* ~6.5:1 on white */
  --focus: #b45309;
  --radius: 10px;
  --maxw: 1120px;
  --maxw-narrow: 760px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem; /* keep anchors clear of the sticky header */
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-dark); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
main:focus, section:focus, .thank-you:focus { outline: none; }

code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--accent-soft);
  padding: 0.05em 0.35em;
  border-radius: 4px;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.75rem; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.container.narrow { max-width: var(--maxw-narrow); }
.muted { color: var(--muted); }

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -100px;
  z-index: 100;
  background: var(--text);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; color: #fff; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.96);
  border-bottom: 1px solid var(--border);
}
@supports (backdrop-filter: blur(6px)) {
  .site-header { background: rgba(250, 247, 242, 0.88); backdrop-filter: blur(6px); }
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}
.brand {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.25rem;
  font-size: 0.93rem;
}
.nav-list a {
  display: inline-block;
  padding: 0.4rem 0.55rem;
  color: var(--text);
  text-decoration: none;
  border-radius: 6px;
}
.nav-list a:hover { background: var(--bg-alt); color: var(--text); }
.nav-list a.nav-cta { background: var(--accent); color: #fff; font-weight: 600; }
.nav-list a.nav-cta:hover { background: var(--accent-dark); color: #fff; }

/* On very small screens the header stops being sticky so it doesn't eat the viewport. */
@media (max-width: 479px) {
  .site-header { position: static; }
  html { scroll-padding-top: 0.75rem; }
  .header-inner { justify-content: flex-start; }
  .nav-list { margin-left: -0.55rem; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  padding: 0.85rem 1.3rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  min-height: 48px;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-secondary:hover { background: var(--accent-soft); color: var(--accent-dark); }
.btn[disabled] { background: #8a8f96; color: #fff; cursor: not-allowed; }
.button-row { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
@media (min-width: 600px) {
  .button-row { flex-direction: row; flex-wrap: wrap; }
}

/* ---------- sections ---------- */
.hero { padding: 3rem 0 3.25rem; }
.eyebrow {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
.lead-in { color: var(--muted); margin: 0 0 1.25rem; max-width: 46rem; }
.microcopy { margin: 1rem 0 0; color: var(--muted); font-size: 0.98rem; }

.section { padding: 3rem 0; }
.section-alt { background: var(--bg-alt); }

@media (min-width: 768px) {
  .hero { padding: 5rem 0 5rem; }
  .section { padding: 4.5rem 0; }
}

/* ---------- replace / don't replace ---------- */
.two-col { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
@media (min-width: 768px) { .two-col { grid-template-columns: 1fr 1fr; } }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card-yes { border-top: 5px solid var(--accent); }
.card-no { border-top: 5px solid #6b6f76; }
.check-list, .cross-list { list-style: none; margin: 0; padding: 0; }
.check-list li, .cross-list li { position: relative; padding: 0.4rem 0 0.4rem 1.9rem; border-bottom: 1px solid #eee8dd; }
.check-list li:last-child, .cross-list li:last-child { border-bottom: 0; }
.check-list li::before, .cross-list li::before {
  position: absolute; left: 0; top: 0.4rem;
  width: 1.35rem; height: 1.35rem;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 0.8rem; font-weight: 700;
}
.check-list li::before { content: "✓"; background: var(--accent-soft); color: var(--accent); }
.cross-list li::before { content: "✕"; background: #ebe9e6; color: #4a4f57; }
.item-desc {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 400;
  padding-top: 0.15rem;
}
.dont-note { margin: 0.85rem 0 0; }
.honesty {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ---------- steps ---------- */
.steps { list-style: none; counter-reset: step; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.25rem;
}
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 2rem; height: 2rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}
.steps strong { display: block; margin-bottom: 0.25rem; }

/* ---------- pricing ---------- */
.disclaimer {
  background: var(--warn-bg);
  border: 2px solid var(--warn-border);
  color: var(--warn-text);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-size: 1.05rem;   /* deliberately NOT small */
}
.disclaimer p { margin: 0; }
.disclaimer-label { margin-right: 0.25rem; }

.table-wrap { overflow-x: auto; }
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.price-table caption {
  text-align: left;
  color: var(--muted);
  font-size: 0.95rem;
  padding-bottom: 0.5rem;
}
.price-table th, .price-table td {
  text-align: left;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.price-table thead th { background: #f6f2ea; font-size: 0.95rem; }
.price-table tbody th { font-weight: 500; }
.price-table tbody tr:last-child > * { border-bottom: 0; }
.price-table .num { text-align: right; white-space: nowrap; }
.price-table td.num { font-size: 1.25rem; font-weight: 700; }
.price-table { min-width: 36rem; }
.context { margin: 1.25rem 0 1rem; color: var(--muted); }
#pricing .btn { margin-top: 0.25rem; }

/* ---------- form ---------- */
.privacy-line {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
}
.lead-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 1rem;
}
@media (min-width: 600px) { .lead-form { padding: 2rem; } }
.required-note { color: var(--muted); font-size: 0.95rem; }
.req { color: var(--error); font-weight: 700; }

.field { margin: 0 0 1.4rem; }
fieldset.field { border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 0.35rem; padding: 0; }
.field.nested { margin: 0.75rem 0 0; }
.field.nested label { font-weight: 500; }
.hint { color: var(--muted); font-size: 0.95rem; margin: 0.35rem 0 0; }
legend + .hint { margin: 0 0 0.6rem; }

input[type="text"], input[type="email"], textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1.5px solid #8b8478;   /* 3:1+ against white for non-text contrast */
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  min-height: 48px;
}
textarea { resize: vertical; }
input:focus-visible, textarea:focus-visible { border-color: var(--accent); outline-offset: 1px; }
[aria-invalid="true"] { border-color: var(--error) !important; }

.choices { display: grid; gap: 0.35rem; }
.choice {
  display: flex !important;
  align-items: flex-start;
  gap: 0.65rem;
  font-weight: 400 !important;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  margin: 0 !important;
}
.choice:hover { background: #faf8f4; }
.choice input { width: 1.2rem; height: 1.2rem; margin: 0.2rem 0 0; flex: none; accent-color: var(--accent); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

.error { color: var(--error); font-weight: 600; margin: 0.4rem 0 0; }
.form-status { margin: 1rem 0 0; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); font-weight: 600; }
.notice {
  background: var(--warn-bg);
  border: 2px solid var(--warn-border);
  color: var(--warn-text);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin: 0 0 1rem;
}
#lead-form .btn { width: 100%; }
#lead-form .microcopy { margin-top: 0.75rem; }
@media (min-width: 600px) { #lead-form .btn { width: auto; } }

/* Heights measured from the live Google Form embed (~9 questions) at
   360–1440px viewports, plus a small buffer so the submit button is
   visible without a tall empty gap or an inner scrollbar. */
.form-iframe {
  width: 100%;
  height: 2700px;
  border: 0;
  background: #fff;
  border-radius: var(--radius);
}
@media (min-width: 600px) {
  .form-iframe { height: 2480px; }
}
@media (min-width: 768px) {
  .form-iframe { height: 2400px; }
}

.thank-you {
  margin-top: 1.25rem;
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.thank-you-text { font-size: 1.15rem; margin: 0; }
.preview-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-text);
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}

/* ---------- FAQ ---------- */
.faq { margin: 1.5rem 0 0; }
.faq > div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: 0.85rem;
}
.faq dt { font-weight: 700; margin-bottom: 0.35rem; }
.faq dd { margin: 0; color: var(--text); }

/* ---------- case study placeholder ---------- */
.placeholder-box {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  color: var(--muted);
  background: var(--surface);
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: #2a2d31;
  color: #e9e6e0;       /* ~11:1 on footer bg */
  padding: 2.5rem 0;
  font-size: 0.98rem;
}
.site-footer a { color: #b8e3dc; }
.site-footer a:hover { color: #fff; }
.site-footer :focus-visible { outline-color: #f5b46b; }
.copyright { margin-bottom: 0; color: #cfcac1; }

[hidden] { display: none !important; }
