:root {
  --navy: #0f2a44;
  --blue: #176b9a;
  --workwear: #245b7a;
  --red: #e94743;
  --green: #74c9a7;
  --yellow: #f4d77a;
  --offwhite: #fafaf7;
  --gray: #5a6470;
  --line: #d6dee6;
  --ink: #122335;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(116, 201, 167, 0.16), transparent 360px),
    var(--offwhite);
  color: var(--navy);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 16px clamp(18px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
nav,
.hero-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 850;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
}

nav {
  justify-content: center;
  gap: 8px;
}

nav a {
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--gray);
  font-weight: 750;
  text-decoration: none;
}

nav a:hover {
  background: #eef6fa;
  color: var(--blue);
}

.header-cta,
button,
.result-cta,
.primary-link,
.secondary-link,
.result-tools button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.header-cta:hover,
button:hover,
.result-cta:hover,
.primary-link:hover,
.result-tools button:hover {
  background: var(--navy);
}

.secondary-link {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--line);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.route-map,
.checker,
.results,
.toolbox,
.keyword-board,
.resources,
.download-pack,
.signal-strip {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(15, 42, 68, 0.08);
}

.hero-copy {
  padding: clamp(26px, 5vw, 52px);
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(2.45rem, 5.5vw, 4.8rem);
  line-height: 1.01;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.05rem;
  letter-spacing: 0;
}

.lede,
.section-heading p,
.form-heading p,
.tool-grid p,
.resource-grid span,
.signal-strip span,
.mini-card span,
.results p,
.result-context,
.copy-status,
fieldset label {
  color: var(--gray);
}

.lede {
  max-width: 680px;
  font-size: 1.1rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.route-map {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(244, 215, 122, 0.35), transparent 28%),
    linear-gradient(135deg, #f8fbfa, #eef8fb);
}

.map-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 107, 154, 0.09) 1px, transparent 1px),
    linear-gradient(rgba(23, 107, 154, 0.09) 1px, transparent 1px);
  background-size: 48px 48px;
}

.route-line {
  position: absolute;
  border: 8px solid transparent;
  border-radius: 48px;
}

.route-one {
  inset: 92px 58px 168px 72px;
  border-bottom-color: var(--yellow);
  border-left-color: var(--yellow);
  transform: rotate(-8deg);
}

.route-two {
  inset: 210px 100px 72px 116px;
  border-top-color: rgba(116, 201, 167, 0.9);
  border-right-color: rgba(116, 201, 167, 0.9);
  transform: rotate(10deg);
}

.pin,
.truck,
.mini-card {
  position: absolute;
  box-shadow: 0 16px 36px rgba(15, 42, 68, 0.15);
}

.pin,
.truck {
  display: grid;
  place-items: center;
  min-width: 78px;
  height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 850;
}

.pin {
  background: var(--red);
}

.pin-one {
  top: 52px;
  left: 48px;
}

.pin-two {
  right: 54px;
  top: 174px;
}

.pin-three {
  left: 40%;
  bottom: 44px;
  background: var(--green);
  color: var(--navy);
}

.truck {
  left: 42%;
  top: 43%;
  background: var(--workwear);
}

.mini-card {
  display: grid;
  gap: 4px;
  width: min(250px, 42%);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.mini-card strong {
  color: var(--navy);
}

.card-rank {
  right: 28px;
  bottom: 130px;
}

.card-phone {
  left: 28px;
  bottom: 112px;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 24px;
  overflow: hidden;
  background: var(--line);
}

.signal-strip div {
  display: grid;
  gap: 3px;
  min-height: 104px;
  padding: 20px;
  background: var(--white);
}

.signal-strip strong {
  color: var(--blue);
}

.audit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

.checker,
.results,
.toolbox,
.keyword-board,
.resources {
  padding: clamp(20px, 4vw, 34px);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}

label,
legend {
  font-weight: 800;
}

input[type="text"] {
  display: block;
  min-height: 44px;
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--navy);
  font: inherit;
}

fieldset {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #fbfdff);
}

legend {
  padding: 0 8px;
  color: var(--ink);
}

fieldset label {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  font-weight: 650;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--blue);
}

button {
  width: 100%;
  margin-top: 4px;
  font: inherit;
}

.results {
  position: sticky;
  top: 88px;
}

.score-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  margin-bottom: 18px;
}

.score-ring svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.score-ring circle {
  fill: none;
  stroke: #e7eef4;
  stroke-width: 12;
}

#score-progress {
  stroke: var(--red);
  stroke-dasharray: 327;
  stroke-dashoffset: 327;
  stroke-linecap: round;
  transition: stroke-dashoffset 240ms ease;
}

.score-ring div {
  position: relative;
  display: grid;
  place-items: center;
}

#score {
  color: var(--ink);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}

.score-ring small {
  color: var(--gray);
  font-weight: 850;
  text-transform: uppercase;
}

.breakdown {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.breakdown div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
}

.breakdown span,
.breakdown b {
  font-size: 0.88rem;
}

.breakdown i {
  grid-column: 1 / -1;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef2;
}

.breakdown i::after {
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--green));
  content: "";
}

.action-plan {
  padding: 18px;
  border-radius: 8px;
  background: #f6fafb;
}

.action-plan ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--gray);
}

.result-context {
  margin-top: -4px;
  padding: 10px 12px;
  border-left: 4px solid var(--green);
  border-radius: 6px;
  background: #f4fbf8;
  font-weight: 750;
}

.result-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.result-tools button {
  min-height: 40px;
  margin: 0;
  padding: 0 12px;
  background: var(--workwear);
  font-size: 0.92rem;
}

.copy-status {
  min-height: 22px;
  margin: 8px 0 0;
  font-size: 0.9rem;
  font-weight: 750;
}

.result-cta {
  width: 100%;
  margin-top: 18px;
}

.toolbox,
.keyword-board,
.resources {
  margin-top: 24px;
}

.download-pack {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: 24px;
  padding: clamp(20px, 4vw, 34px);
  background: linear-gradient(135deg, #fff, #f5fbfa);
}

.download-pack p {
  max-width: 720px;
  color: var(--gray);
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 22px;
}

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

.tool-grid article,
.resource-grid a {
  min-height: 190px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  text-decoration: none;
}

.tool-grid article:nth-child(2),
.resource-grid a:nth-child(2) {
  background: #f7fcfa;
}

.tool-grid article:nth-child(3),
.resource-grid a:nth-child(3) {
  background: #fffaf0;
}

.tool-grid article:nth-child(4),
.resource-grid a:nth-child(4) {
  background: #fff6f5;
}

.tool-grid span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 850;
}

.keyword-board {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: start;
  background: var(--navy);
}

.keyword-board h2,
.keyword-board .eyebrow {
  color: var(--white);
}

.keyword-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.keyword-grid span {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--white);
  font-weight: 750;
}

.resource-grid a {
  display: grid;
  align-content: start;
  gap: 10px;
  color: var(--ink);
}

.resource-grid a:hover {
  border-color: var(--blue);
  box-shadow: 0 18px 34px rgba(15, 42, 68, 0.1);
}

footer {
  padding: 28px 16px 42px;
  color: var(--gray);
  text-align: center;
}

footer p {
  margin: 0;
}

@media (max-width: 960px) {
  .site-header,
  .hero,
  .audit-layout,
  .signal-strip,
  .tool-grid,
  .resource-grid,
  .download-pack,
  .keyword-board {
    grid-template-columns: 1fr;
  }

  .site-header {
    position: static;
  }

  nav {
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .results {
    position: static;
  }

  .route-map {
    min-height: 460px;
  }
}

@media (max-width: 640px) {
  main {
    width: min(100% - 20px, 1180px);
    padding-top: 20px;
  }

  .site-header,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .header-cta,
  .primary-link,
  .secondary-link {
    width: 100%;
  }

  .result-tools {
    grid-template-columns: 1fr;
  }

  .download-actions {
    justify-content: stretch;
  }

  .route-map {
    min-height: 390px;
  }

  .mini-card {
    width: 58%;
  }

  .card-rank {
    right: 14px;
  }

  .card-phone {
    left: 14px;
    bottom: 84px;
  }
}

@media print {
  .site-header,
  .hero,
  .signal-strip,
  .checker,
  .toolbox,
  .keyword-board,
  .resources,
  .download-pack,
  footer,
  .result-tools,
  .result-cta {
    display: none;
  }

  body {
    background: #fff;
  }

  main {
    width: 100%;
    padding: 0;
  }

  .audit-layout {
    display: block;
    margin: 0;
  }

  .results {
    position: static;
    box-shadow: none;
    border: 0;
  }
}
