:root {
  --navy: #0b1d3a;
  --navy-2: #10284e;
  --green: #1e7e3f;
  --green-2: #176734;
  --off-white: #f7f8fa;
  --ink: #142033;
  --muted: #5d6877;
  --line: #dfe5ec;
  --white: #ffffff;
  --gold: #c9a24a;
  --shadow: 0 24px 70px rgba(11, 29, 58, 0.14);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--off-white);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(115deg, rgba(30, 126, 63, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(11, 29, 58, 0.08), transparent 420px);
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  color: var(--navy);
  background: rgba(247, 248, 250, 0.88);
  border-bottom: 1px solid rgba(223, 229, 236, 0.75);
  backdrop-filter: blur(18px);
  transition:
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.site-header[data-elevated="true"] {
  background: rgba(247, 248, 250, 0.96);
  box-shadow: 0 10px 30px rgba(11, 29, 58, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--white);
  background: var(--navy);
  border-radius: 7px;
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-cta {
  padding: 10px 16px;
  color: var(--white);
  background: var(--navy);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 750;
}

.section-pad {
  padding: clamp(72px, 10vw, 124px) clamp(18px, 4vw, 56px);
}

.section-inner,
.hero-grid {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.hero {
  padding-top: clamp(64px, 9vw, 108px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.72fr);
  gap: clamp(34px, 7vw, 88px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(3.25rem, 9vw, 6.7rem);
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.85rem);
}

h3 {
  font-size: clamp(1.12rem, 2vw, 1.35rem);
}

.hero-subhead {
  max-width: 650px;
  margin: 24px 0 0;
  color: #334155;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 14px 32px rgba(30, 126, 63, 0.24);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--green-2);
}

.button-secondary {
  color: var(--navy);
  background: var(--white);
  border-color: var(--line);
}

.cta-note {
  max-width: 260px;
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.audit-panel {
  position: relative;
  padding: clamp(22px, 4vw, 32px);
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(155deg, rgba(30, 126, 63, 0.26), transparent 42%),
    var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.audit-panel::before {
  position: absolute;
  top: -1px;
  right: 22px;
  width: 76px;
  height: 5px;
  content: "";
  background: var(--green);
}

.panel-topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 750;
}

.leak-map {
  display: grid;
  gap: 12px;
  margin: 34px 0;
}

.leak-node {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 14px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

.leak-node span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--navy);
  background: var(--white);
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 850;
}

.leak-node.active {
  background: rgba(30, 126, 63, 0.3);
}

.leak-node.warning {
  border-color: rgba(201, 162, 74, 0.7);
}

.leak-node.warning span {
  background: var(--gold);
}

.panel-summary {
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.panel-summary strong {
  display: block;
  margin-bottom: 8px;
}

.panel-summary p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.process-strip {
  padding: 46px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: var(--navy);
}

.process-strip h2,
.process-strip .eyebrow {
  color: var(--white);
}

.process-strip .eyebrow {
  opacity: 0.72;
}

.section-heading {
  max-width: 700px;
}

.section-heading.centered {
  margin: 0 auto 38px;
  text-align: center;
}

.section-heading.compact {
  margin-bottom: 24px;
}

.section-heading p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  margin: 0;
  list-style: none;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  overflow: hidden;
}

.process-list li {
  min-height: 172px;
  padding: 22px;
  background: var(--navy-2);
}

.process-list span {
  display: inline-grid;
  width: 32px;
  height: 32px;
  margin-bottom: 22px;
  place-items: center;
  color: var(--navy);
  background: var(--off-white);
  border-radius: 7px;
  font-weight: 850;
}

.process-list strong {
  display: block;
  font-size: 1rem;
}

.process-list p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 74px);
  align-items: start;
}

.problem-grid {
  display: grid;
  gap: 16px;
}

.problem-grid article {
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  box-shadow: 0 16px 45px rgba(11, 29, 58, 0.06);
}

.problem-grid p,
.feature-card p,
.fit-card li,
.audit-steps p {
  color: var(--muted);
}

.problem-grid p,
.feature-card p {
  margin: 12px 0 0;
}

.outcomes {
  background: var(--white);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  min-height: 250px;
  padding: 24px;
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  place-items: center;
  color: var(--white);
  background: var(--navy);
  border-radius: 7px;
  font-weight: 850;
}

.audit {
  background:
    linear-gradient(180deg, rgba(11, 29, 58, 0.04), rgba(30, 126, 63, 0.04)),
    var(--off-white);
}

.audit-steps {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.audit-steps li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.audit-steps span {
  color: var(--green);
  font-weight: 900;
}

.audit-steps p {
  margin: 10px 0 0;
}

.fit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.fit-card {
  padding: clamp(24px, 4vw, 34px);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: var(--radius);
  box-shadow: 0 14px 42px rgba(11, 29, 58, 0.06);
}

.fit-card.poor {
  border-top-color: var(--navy);
}

.fit-card ul {
  display: grid;
  gap: 12px;
  padding-left: 20px;
  margin: 20px 0 0;
}

.form-section {
  color: var(--white);
  background: var(--navy);
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 68px);
  align-items: start;
}

.form-copy {
  position: sticky;
  top: 98px;
}

.form-section h2,
.form-section .eyebrow {
  color: var(--white);
}

.form-copy p {
  margin: 18px 0 28px;
  color: rgba(255, 255, 255, 0.74);
}

.ghl-form-embed {
  height: 1200px;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.2);
}

.ghl-form-embed iframe {
  display: block;
  width: 100%;
  height: 1200px;
  min-height: 1200px;
  border: 0;
  background: var(--white);
}

.audit-form {
  padding: clamp(22px, 4vw, 34px);
  color: var(--ink);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.2);
}

.form-help {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.94rem;
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 750;
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--off-white);
  border: 1px solid #ccd5df;
  border-radius: 7px;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

input:focus,
select:focus {
  background: var(--white);
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(30, 126, 63, 0.13);
}

input[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: #b42318;
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.1);
}

.consent {
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
  margin-top: 18px;
  color: var(--ink);
  font-weight: 650;
}

.consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
  accent-color: var(--green);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 750;
}

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

.site-footer {
  padding: 30px clamp(18px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.72);
  background: #07152a;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, var(--max));
  margin: 0 auto;
}

.site-footer .brand {
  color: var(--white);
}

.site-footer .brand-mark {
  background: var(--green);
}

.site-footer p {
  max-width: 560px;
  margin: 0;
  text-align: right;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-size: 0.92rem;
  font-weight: 750;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.84);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-hero {
  padding-bottom: clamp(42px, 7vw, 74px);
  background:
    linear-gradient(180deg, rgba(11, 29, 58, 0.08), rgba(30, 126, 63, 0.04)),
    var(--off-white);
}

.legal-wrap {
  max-width: 900px;
}

.legal-hero h1 {
  font-size: clamp(2.7rem, 8vw, 5.4rem);
}

.draft-banner {
  display: inline-flex;
  margin: 24px 0 0;
  padding: 10px 14px;
  color: var(--navy);
  background: rgba(201, 162, 74, 0.18);
  border: 1px solid rgba(201, 162, 74, 0.54);
  border-radius: var(--radius);
  font-weight: 850;
}

.legal-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 34px 0 0;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.legal-meta div {
  min-height: 110px;
  padding: 20px;
  background: var(--white);
}

.legal-meta dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-meta dd {
  margin: 0;
  color: var(--navy);
  font-weight: 750;
}

.legal-meta a,
.legal-content a {
  color: var(--green);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content {
  padding-top: clamp(42px, 7vw, 72px);
  background: var(--white);
}

.legal-content article {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.legal-content article:first-child {
  border-top: 0;
}

.legal-content h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.legal-content p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .form-layout {
    grid-template-columns: 1fr;
  }

  .audit-panel,
  .form-copy {
    position: static;
  }

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

@media (max-width: 720px) {
  .site-header {
    gap: 12px;
  }

  .site-nav {
    display: none;
  }

  .header-cta {
    padding: 10px 12px;
  }

  h1 {
    font-size: clamp(2.75rem, 15vw, 3.75rem);
  }

  .hero {
    padding-top: 54px;
    padding-bottom: 42px;
  }

  .audit-panel {
    display: none;
  }

  .hero-actions,
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .cta-note {
    width: 100%;
  }

  .process-list,
  .feature-grid,
  .fit-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .process-list li,
  .feature-card {
    min-height: auto;
  }

  .audit-steps li {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer p {
    text-align: left;
  }

  .legal-meta {
    grid-template-columns: 1fr;
  }
}

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