:root {
  --navy: #071a37;
  --blue: #0866d9;
  --blue-dark: #0755b4;
  --sky: #eaf4ff;
  --ink: #0d1e34;
  --muted: #52657a;
  --line: #dbe6f1;
  --white: #fff;
  --success: #087c63;
  --shadow: 0 24px 70px rgba(5, 28, 61, 0.16);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--white);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.site-header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 76px);
  border-bottom: 1px solid rgba(10, 44, 82, 0.09);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: var(--navy);
}
.brand-mark { width: 36px; height: 40px; }
.brand-mark svg { width: 100%; height: 100%; fill: none; stroke: var(--blue); stroke-width: 2.6; }
.brand-mark svg path:last-child { stroke: var(--navy); }
.brand b { display: block; font-size: 19px; letter-spacing: 0.18em; line-height: 1; }
.brand small { display: block; margin-top: 5px; font-size: 8px; letter-spacing: 0.23em; font-weight: 750; }
.header-cta {
  text-decoration: none;
  color: var(--white);
  background: var(--blue);
  font-weight: 780;
  border-radius: 999px;
  padding: 10px 18px;
  transition: transform 0.2s, background 0.2s;
}
.header-cta:hover { background: var(--blue-dark); transform: translateY(-1px); }

.hero {
  min-height: calc(100svh - 76px);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: clamp(44px, 7vw, 108px);
  align-items: center;
  padding: clamp(58px, 7vw, 96px) clamp(20px, 7vw, 110px);
  background: linear-gradient(135deg, #fbfdff 0%, #f2f8ff 58%, #e9f4ff 100%);
}
.hero-glow {
  position: absolute;
  width: 540px;
  height: 540px;
  right: -130px;
  top: -190px;
  border-radius: 50%;
  background: rgba(37, 137, 255, 0.13);
}
.hero-copy, .guide-visual { position: relative; z-index: 1; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 850;
}
h1, h2, p { margin-top: 0; }
h1 {
  max-width: 780px;
  margin-bottom: 24px;
  color: var(--navy);
  font-size: clamp(42px, 5.3vw, 70px);
  letter-spacing: -0.052em;
  line-height: 1;
}
.hero-lead {
  max-width: 690px;
  margin-bottom: 0;
  color: #334c68;
  font-size: clamp(17px, 1.6vw, 20px);
}
.value-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 30px;
  display: grid;
  gap: 10px;
}
.value-list li { display: flex; align-items: center; gap: 11px; font-weight: 650; }
.value-list li::before {
  content: "✓";
  display: grid;
  place-items: center;
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.guide-form {
  max-width: 710px;
  padding: 20px;
  border: 1px solid rgba(25, 97, 174, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 45px rgba(21, 76, 133, 0.1);
}
.guide-form > label:first-child { display: block; margin-bottom: 9px; font-size: 14px; font-weight: 780; }
.email-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
input[type="email"] {
  min-width: 0;
  min-height: 54px;
  border: 1.5px solid #b9cada;
  border-radius: 12px;
  background: var(--white);
  padding: 0 16px;
  color: var(--ink);
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
}
input[type="email"]:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(8, 102, 217, 0.13); }
input[aria-invalid="true"] { border-color: #bd2d3c; }
.primary-button {
  min-height: 54px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  font-weight: 820;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(8, 102, 217, 0.23);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.primary-button:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 13px 28px rgba(8, 102, 217, 0.28); }
.primary-button:disabled { opacity: 0.7; cursor: wait; }
.primary-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 9px;
  align-items: start;
  margin-top: 13px;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}
.consent input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--blue); }
.form-help { margin: 11px 0 0; color: var(--muted); font-size: 12px; }
.form-error { min-height: 0; margin: 8px 0 0; color: #a92234; font-size: 13px; font-weight: 680; }
.form-error:empty { display: none; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

.success-card {
  max-width: 710px;
  display: flex;
  gap: 16px;
  padding: 22px;
  border: 1px solid #a8dccf;
  border-radius: var(--radius);
  background: #eefaf7;
  box-shadow: 0 16px 45px rgba(4, 112, 84, 0.1);
}
.success-card[hidden] { display: none; }
.success-icon { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--success); font-weight: 900; }
.success-card h2 { margin-bottom: 4px; font-size: 22px; }
.success-card p { margin-bottom: 16px; color: #355d54; }
.success-card .primary-button { min-height: 48px; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}
.trust-row b { color: var(--navy); }

.guide-visual { max-width: 420px; margin: 0; justify-self: center; }
.guide-visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(21, 71, 130, 0.15);
  border-radius: 11px;
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}
.guide-badge {
  position: absolute;
  z-index: 2;
  top: -16px;
  right: -18px;
  padding: 10px 15px;
  border-radius: 999px;
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 10px 30px rgba(0, 28, 67, 0.25);
  font-size: 13px;
  font-weight: 820;
  transform: rotate(3deg);
}
.guide-visual figcaption {
  position: absolute;
  left: -45px;
  right: -20px;
  bottom: 24px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 13px 15px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(6, 32, 68, 0.17);
  font-size: 12px;
  font-weight: 720;
}
.guide-visual figcaption span { display: grid; place-items: center; flex: 0 0 25px; width: 25px; height: 25px; border-radius: 50%; color: var(--white); background: var(--blue); }

footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 28px clamp(20px, 7vw, 110px) 34px;
  color: var(--muted);
  font-size: 12px;
}
footer div { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer b { color: var(--navy); letter-spacing: 0.08em; }
footer a { text-decoration: none; color: var(--blue-dark); font-weight: 700; }

@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr 330px; gap: 40px; padding-left: 38px; padding-right: 38px; }
  .guide-visual { max-width: 350px; }
}

@media (max-height: 850px) and (min-width: 761px) {
  .hero { min-height: calc(100svh - 76px); padding-top: 30px; padding-bottom: 30px; }
  h1 { margin-bottom: 16px; font-size: clamp(48px, 4.8vw, 61px); }
  .hero-lead { font-size: 17px; }
  .value-list { margin-top: 17px; margin-bottom: 18px; gap: 7px; }
  .guide-form { padding: 16px; }
  .trust-row { margin-top: 14px; }
  .guide-visual { max-width: 330px; }
}

@media (max-width: 760px) {
  .site-header { height: 66px; padding: 0 17px; }
  .brand-mark { width: 31px; height: 34px; }
  .brand b { font-size: 16px; }
  .brand small { font-size: 7px; }
  .header-cta { padding: 8px 14px; font-size: 13px; }
  .hero { min-height: auto; display: flex; flex-direction: column; gap: 42px; padding: 48px 18px 62px; }
  .hero-copy { width: 100%; }
  h1 { font-size: clamp(40px, 12.2vw, 57px); }
  .hero-lead { font-size: 17px; }
  .guide-form { padding: 16px; }
  .email-row { grid-template-columns: 1fr; }
  .email-row .primary-button { width: 100%; }
  .trust-row { justify-content: space-between; gap: 10px; }
  .guide-visual { width: min(80vw, 345px); }
  .guide-visual figcaption { left: -14px; right: -14px; bottom: 20px; }
  .guide-badge { right: -8px; }
  footer { flex-direction: column; padding: 28px 20px 42px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Waterguard assessment */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.assessment-page { background: #f2f7fc; }
.assessment-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(520px, 1fr);
  gap: clamp(48px, 7vw, 110px);
  align-items: start;
  padding: clamp(52px, 6vw, 86px) clamp(20px, 7vw, 110px) 82px;
  overflow: hidden;
  background:
    radial-gradient(circle at 4% 8%, rgba(8, 102, 217, 0.1), transparent 28%),
    linear-gradient(135deg, #fbfdff 0%, #f0f7ff 100%);
}
.assessment-intro { position: sticky; top: 126px; }
.assessment-intro h1 {
  max-width: 640px;
  margin-bottom: 22px;
  font-size: clamp(43px, 5vw, 67px);
}
.assessment-lead {
  max-width: 610px;
  margin-bottom: 30px;
  color: #334c68;
  font-size: clamp(17px, 1.5vw, 20px);
}
.assessment-steps {
  list-style: none;
  display: grid;
  gap: 16px;
  max-width: 560px;
  margin: 0;
  padding: 0;
}
.assessment-steps li { display: grid; grid-template-columns: 38px 1fr; gap: 13px; align-items: start; }
.assessment-steps li > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue);
  font-size: 14px;
  font-weight: 850;
}
.assessment-steps b { display: block; color: var(--navy); font-size: 16px; }
.assessment-steps small { display: block; color: var(--muted); font-size: 14px; }
.assessment-guide-note {
  display: flex;
  gap: 16px;
  align-items: center;
  max-width: 560px;
  margin-top: 30px;
  padding: 14px;
  border: 1px solid rgba(25, 97, 174, 0.15);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
}
.assessment-guide-note img {
  width: 58px;
  height: 78px;
  object-fit: cover;
  object-position: top;
  border-radius: 6px;
  box-shadow: 0 7px 20px rgba(5, 28, 61, 0.17);
}
.assessment-guide-note p { margin: 0; color: var(--muted); font-size: 14px; }
.assessment-guide-note b { color: var(--navy); }

.assessment-panel { position: relative; z-index: 1; }
.assessment-form,
.assessment-success {
  max-width: 720px;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid rgba(25, 97, 174, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(5, 28, 61, 0.13);
}
.form-heading { margin-bottom: 18px; }
.form-heading p { margin-bottom: 4px; color: var(--blue-dark); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.form-heading h2,
.contact-heading h2 { margin: 0; color: var(--navy); font-size: clamp(23px, 2vw, 29px); line-height: 1.2; }
.choice-fieldset { margin: 0; padding: 0; border: 0; }
.level-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.level-option {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 76px;
  padding: 14px 14px 14px 48px;
  border: 1.5px solid #c8d6e4;
  border-radius: 14px;
  background: var(--white);
  cursor: pointer;
  transition: border 0.2s, background 0.2s, box-shadow 0.2s;
}
.level-option:hover { border-color: #8bb6e7; background: #f8fbff; }
.level-option input {
  position: absolute;
  left: 16px;
  width: 19px;
  height: 19px;
  accent-color: var(--blue);
}
.level-option:has(input:checked) { border-color: var(--blue); background: #edf6ff; box-shadow: 0 0 0 3px rgba(8, 102, 217, 0.1); }
.level-option:has(input:focus-visible) { outline: 3px solid rgba(8, 102, 217, 0.22); outline-offset: 2px; }
.level-option b { display: block; color: var(--navy); font-size: 15px; }
.level-option small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; }
.level-option-wide { grid-column: 1 / -1; }
.field-help { margin: 8px 0 24px; color: var(--muted); font-size: 13px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field > span { color: var(--navy); font-size: 14px; font-weight: 750; }
.field > span small { color: var(--muted); font-size: 12px; font-weight: 500; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  border: 1.5px solid #b9cada;
  border-radius: 11px;
  background: var(--white);
  padding: 11px 13px;
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 92px; resize: vertical; line-height: 1.45; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(8, 102, 217, 0.12); }
.field [aria-invalid="true"] { border-color: #bd2d3c; }
.photo-field {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  margin: 2px 0 27px;
  padding: 12px 14px;
  border: 1.5px dashed #9db5cc;
  border-radius: 14px;
  background: #f8fbfe;
  cursor: pointer;
}
.photo-field input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.photo-field:has(input:focus-visible) { outline: 3px solid rgba(8, 102, 217, 0.22); outline-offset: 2px; }
.photo-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--blue); background: var(--sky); }
.photo-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.photo-field b { display: block; color: var(--navy); font-size: 14px; }
.photo-field small { display: block; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.photo-action { color: var(--blue-dark); font-size: 13px; font-weight: 800; }
.contact-heading { margin: 0 0 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.assessment-consent { margin: 4px 0 0; font-size: 12px; }
.assessment-submit { width: 100%; margin-top: 12px; }
.assessment-reassurance { margin: 10px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.assessment-success { min-height: 420px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.assessment-success[hidden] { display: none; }
.assessment-success .success-icon { width: 46px; height: 46px; margin-bottom: 24px; font-size: 21px; }
.assessment-success .eyebrow { margin-bottom: 8px; }
.assessment-success h2 { margin-bottom: 12px; color: var(--navy); font-size: clamp(32px, 4vw, 48px); line-height: 1.05; }
.assessment-success p:not(.eyebrow) { max-width: 540px; margin-bottom: 26px; color: var(--muted); font-size: 17px; }

@media (max-width: 980px) {
  .assessment-shell { grid-template-columns: minmax(0, 0.7fr) minmax(470px, 1fr); gap: 34px; padding-left: 34px; padding-right: 34px; }
  .assessment-intro h1 { font-size: 47px; }
}

@media (max-width: 800px) {
  .assessment-shell { display: block; padding: 42px 18px 60px; }
  .assessment-intro { position: static; }
  .assessment-intro h1 { font-size: clamp(40px, 11.6vw, 58px); }
  .assessment-lead { margin-bottom: 24px; }
  .assessment-steps { margin-bottom: 28px; }
  .assessment-guide-note { display: none; }
  .assessment-panel { margin-top: 32px; }
  .assessment-form, .assessment-success { max-width: none; padding: 22px 16px; border-radius: 19px; }
}

@media (max-width: 560px) {
  .level-options, .field-grid { grid-template-columns: 1fr; }
  .level-option-wide { grid-column: auto; }
  .photo-field { grid-template-columns: 36px minmax(0, 1fr); }
  .photo-action { grid-column: 2; }
  .assessment-steps small { font-size: 13px; }
}
