:root {
  color-scheme: light dark;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --text: #17202f;
  --muted: #4b5565;
  --line: #d8dde5;
  --accent: #2f6f68;
  --accent-hover: #245952;
  --navy: #1b2a41;
  --radius: 12px;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --container: min(1100px, calc(100% - 2rem));
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1724;
    --surface: #182234;
    --text: #ebf0f7;
    --muted: #b4bfce;
    --line: #2a3a55;
    --accent: #5ca79e;
    --accent-hover: #77b9b1;
    --navy: #d8e6ff;
  }
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1724;
  --surface: #182234;
  --text: #ebf0f7;
  --muted: #b4bfce;
  --line: #2a3a55;
  --accent: #5ca79e;
  --accent-hover: #77b9b1;
  --navy: #d8e6ff;
}

[data-theme="light"] {
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.narrow {
  max-width: 760px;
}

.section {
  padding: var(--space-7) 0;
}

.section-alt {
  background: color-mix(in oklab, var(--surface) 86%, var(--accent) 4%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.2;
  margin-top: 0;
  text-align: left;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: var(--space-4);
}

h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-2);
}

p {
  margin: 0 0 var(--space-3);
  color: var(--muted);
}

ul {
  margin: 0;
  padding-left: 1.2rem;
}

li {
  margin-bottom: 0.4rem;
}

.skip-link,
.sr-only {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0.5rem 0.75rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 4.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.site-brand-mark,
.site-logo-mark {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}

.site-brand-text,
.site-logo-wordmark {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1rem;
}

.audit-page-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.audit-page-brand .site-brand-mark,
.audit-page-brand .site-logo-mark {
  width: 2.5rem;
  height: 2.5rem;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

.nav-list a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-list a:hover {
  color: var(--text);
}

.theme-toggle,
.nav-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
  cursor: pointer;
}

.theme-toggle {
  margin-left: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 2.35rem;
  height: 2.35rem;
  position: relative;
}

.nav-toggle-line,
.nav-toggle-line::before,
.nav-toggle-line::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1rem;
  height: 2px;
  background: var(--text);
  transform: translateX(-50%);
}

.nav-toggle-line {
  top: 50%;
}
.nav-toggle-line::before {
  top: -6px;
}
.nav-toggle-line::after {
  top: 6px;
}

.site-header.nav-open .nav-toggle-line {
  background: transparent;
}
.site-header.nav-open .nav-toggle-line::before {
  top: 0;
  transform: translateX(-50%) rotate(45deg);
}
.site-header.nav-open .nav-toggle-line::after {
  top: 0;
  transform: translateX(-50%) rotate(-45deg);
}

.hero {
  text-align: center;
}

.hero-content {
  max-width: 900px;
}

.hero h1,
.hero .hero-sub,
.hero .hero-service-area,
.hero .eyebrow,
.hero .hero-proof {
  text-align: center;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero-sub {
  font-size: 1.15rem;
  max-width: 70ch;
  margin: 0 auto var(--space-4);
}

.hero-service-area {
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 62ch;
  margin: -0.35rem auto var(--space-4);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-2);
}

.hero-proof {
  font-weight: 600;
  font-size: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 0.72rem 1.05rem;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-small {
  font-size: 0.88rem;
  padding: 0.55rem 0.8rem;
}

.grid-3,
.grid-2,
.pricing-grid {
  display: grid;
  gap: 1rem;
}

.grid-2,
.pricing-grid {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

.section-intro {
  max-width: 68ch;
  margin-bottom: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.card-featured {
  border: 2px solid var(--accent);
  box-shadow: 0 8px 26px rgba(17, 35, 54, 0.09);
}

.badge {
  display: inline-block;
  margin-bottom: 0.7rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.stage-flow {
  display: grid;
  gap: 0.9rem;
}

.stage-card {
  min-height: 100%;
}

.stage-kicker {
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stage-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.stage-fit {
  margin-top: 0.85rem;
  margin-bottom: 1rem;
}

.stage-connector {
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 700;
  font-size: 1.2rem;
}

.why-grid h3 {
  margin-bottom: 0.5rem;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

.steps li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin: 0;
}

.stats-grid h3 {
  font-size: 1.05rem;
}

.source {
  font-weight: 700;
  font-size: 0.84rem;
  margin-top: 0.5rem;
}

.callout {
  margin-top: var(--space-4);
  border-left: 4px solid var(--accent);
  background: var(--surface);
  padding: 1rem 1rem 1rem 1.1rem;
  border-radius: 0 10px 10px 0;
  font-weight: 600;
  color: var(--text);
}

.section-cta {
  border-top: 1px solid var(--line);
}

.cta-sub {
  margin-bottom: var(--space-4);
}

.audit-intro {
  margin-bottom: 1rem;
}

.audit-service-area {
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 52ch;
  margin: 0 auto 1rem;
  line-height: 1.45;
  text-align: center;
}

.price-tag {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
}

.form-intro {
  max-width: 62ch;
  margin-bottom: var(--space-4);
}

.form-note {
  margin-bottom: 0;
}

.lead-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-weight: 600;
  color: var(--text);
}

.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  border-radius: 8px;
  padding: 0.65rem 0.72rem;
  font: inherit;
  width: 100%;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: #c83b3b;
}

.form-error {
  margin: 0;
  font-size: 0.85rem;
  color: #c83b3b;
  min-height: 1.1rem;
}

.form-actions {
  margin-top: 0.6rem;
}

.lead-form button[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.form-status {
  margin-top: 0.75rem;
  font-weight: 600;
}

.form-status.success {
  color: var(--accent);
}

.form-status.error {
  color: #c83b3b;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2rem;
  background: var(--surface);
}

.footer-logo {
  margin-bottom: 0.6rem;
}

.footer-inner p {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
}

.footer-locale {
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-domain {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.footer-domain:hover {
  color: var(--accent);
  text-decoration: underline;
}

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

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 1rem;
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    margin-bottom: 0.6rem;
  }

  .theme-toggle {
    margin-left: 0;
  }

  .site-brand-mark,
  .site-logo-mark {
    width: 1.8rem;
    height: 1.8rem;
  }

  .audit-page-brand .site-brand-mark,
  .audit-page-brand .site-logo-mark {
    width: 2.1rem;
    height: 2.1rem;
  }

  .site-brand-text,
  .site-logo-wordmark {
    font-size: 0.95rem;
  }
}

@media (min-width: 760px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pricing-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }

  .stage-flow {
    grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr);
    align-items: stretch;
  }

  .stage-connector {
    display: flex;
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn {
    transition: none;
  }
}
