:root {
  --ink: #17201c;
  --muted: #5c6862;
  --line: #dbe3dc;
  --paper: #fbfaf6;
  --white: #ffffff;
  --blue: #114b8b;
  --blue-2: #0b376c;
  --blue-soft: #e3edf8;
  --clay: #b85f3d;
  --amber: #f3c66b;
  --shadow: 0 24px 70px rgba(23, 32, 28, 0.14);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.55;
}

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

[hidden] {
  display: none !important;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 54px);
  background: rgba(251, 250, 246, 0.91);
  border-bottom: 1px solid rgba(219, 227, 220, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: clamp(132px, 15vw, 188px);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav .nav-cta {
  margin-left: 8px;
  color: var(--white);
  background: var(--blue);
  border-radius: 6px;
}

.site-nav .nav-cta[aria-current="page"] {
  color: var(--white);
  background: var(--blue-2);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.section-band,
.section-wrap {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.section-wrap {
  padding: 88px 0;
}

.section-band {
  margin-top: 28px;
  padding: clamp(28px, 5vw, 58px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 35px rgba(23, 32, 28, 0.06);
}

.page-hero {
  display: grid;
  gap: 22px;
  max-width: var(--max);
}

.page-hero h1 {
  max-width: 980px;
  font-size: clamp(2.7rem, 6vw, 5.7rem);
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(28px, 5vw, 66px);
  min-height: calc(100vh - 118px);
}

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

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

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.25;
}

.hero-lede {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions,
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.section-actions {
  margin-top: 28px;
}

.hero-actions {
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: var(--blue);
}

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

.button.secondary {
  color: var(--ink);
  background: var(--blue-soft);
  border-color: #c9d9ed;
}

.hero-stats {
  padding: 0;
  margin: 38px 0 0;
}

.hero-stats div {
  min-width: 130px;
  padding-right: 20px;
  border-right: 1px solid var(--line);
}

.hero-stats div:last-child {
  border-right: 0;
}

.hero-stats dt {
  font-size: 1.2rem;
  font-weight: 900;
}

.hero-stats dd {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-media {
  position: relative;
  align-self: stretch;
  min-height: 430px;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-note {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: min(300px, calc(100% - 40px));
  padding: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(219, 227, 220, 0.9);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}

.hero-note span {
  display: block;
  margin-bottom: 4px;
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.pain {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.pain-copy {
  color: var(--muted);
  font-size: 1.1rem;
}

.pain-copy p:first-child {
  margin-top: 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 36px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.1rem;
}

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

.service-card,
.why-grid article,
.fit-panel,
.about-card,
.about-metrics {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.service-card,
.why-grid article {
  padding: 24px;
}

.service-card p,
.why-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.service-icon {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 900;
}

.fit {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 36px;
  background: var(--blue);
  color: var(--white);
}

.fit .eyebrow {
  color: var(--amber);
}

.fit .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.75);
}

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

.fit-panel {
  padding: 26px;
  color: var(--ink);
}

.fit-panel.quiet {
  background: #f1f3ed;
}

.check-list,
.x-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.check-list li,
.x-list li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
}

.check-list li::before,
.x-list li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 900;
}

.check-list li::before {
  color: var(--blue);
  content: "+";
}

.x-list li::before {
  color: var(--clay);
  content: "-";
}

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

.pricing-table {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.pricing-row {
  display: grid;
  grid-template-columns: 1.1fr repeat(3, 1fr);
  min-width: 720px;
}

.pricing-row span {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.pricing-row span + span {
  border-left: 1px solid var(--line);
}

.pricing-row.heading {
  color: var(--white);
  background: var(--blue);
  font-weight: 850;
}

.pricing-row:last-child span {
  border-bottom: 0;
}

.pricing-note {
  color: var(--muted);
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 16px;
  align-items: stretch;
}

.about-card,
.about-metrics {
  padding: clamp(26px, 4vw, 44px);
}

.about-card p {
  max-width: 730px;
  color: var(--muted);
  font-size: 1.08rem;
}

.about-metrics {
  display: grid;
  gap: 14px;
  background: var(--blue-soft);
}

.about-metrics div {
  padding-bottom: 14px;
  border-bottom: 1px solid #c8d7c9;
}

.about-metrics div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.about-metrics strong,
.about-metrics span {
  display: block;
}

.about-metrics span {
  margin-top: 4px;
  color: var(--muted);
}

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

.teaser-grid article {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(24px, 4vw, 36px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.teaser-grid h2 {
  font-size: clamp(1.65rem, 3vw, 2.75rem);
}

.teaser-grid p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.teaser-grid .button {
  justify-self: start;
}

.cta-band {
  display: grid;
  justify-items: start;
  gap: 18px;
  text-align: left;
}

.cta-band h2 {
  max-width: 820px;
}

.cta-band p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  gap: 34px;
  margin-bottom: 28px;
  background: #f4f1e9;
}

.contact-copy p:not(.eyebrow) {
  max-width: 550px;
  color: var(--muted);
  font-size: 1.08rem;
}

.contact-copy h1 {
  font-size: clamp(2.45rem, 5vw, 4.7rem);
}

.quote-funnel {
  display: grid;
  gap: 20px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.funnel-progress {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.funnel-progress-track {
  height: 10px;
  overflow: hidden;
  background: var(--blue-soft);
  border-radius: 999px;
}

.funnel-progress-track span {
  display: block;
  width: 20%;
  height: 100%;
  background: var(--blue);
  border-radius: inherit;
  transition: width 180ms ease;
}

.funnel-step {
  display: none;
  padding: 0;
  margin: 0;
  border: 0;
}

.funnel-step.is-active {
  display: grid;
  gap: 18px;
}

.funnel-step legend {
  padding: 0;
  margin: 0 0 2px;
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  font-weight: 900;
  line-height: 1.08;
}

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

.funnel-card {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 18px;
  color: var(--ink);
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.funnel-card strong {
  font-size: 1.05rem;
  line-height: 1.2;
}

.funnel-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.funnel-card:hover,
.funnel-card:focus-visible {
  border-color: #9eb9d8;
  box-shadow: 0 12px 30px rgba(17, 75, 139, 0.12);
}

.funnel-card.is-selected {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

.funnel-card.is-selected span {
  color: rgba(255, 255, 255, 0.78);
}

.funnel-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  background: var(--blue-soft);
  border: 1px solid #c9d9ed;
  border-radius: var(--radius);
}

.funnel-summary div {
  display: grid;
  gap: 2px;
}

.funnel-summary span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.funnel-summary strong {
  font-size: 0.96rem;
}

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

.funnel-fields label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 760;
}

.funnel-fields label span {
  color: var(--muted);
  font-weight: 650;
}

.funnel-fields .full {
  grid-column: 1 / -1;
}

.funnel-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.funnel-actions .button {
  min-width: 130px;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
.button:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid rgba(184, 95, 61, 0.28);
  outline-offset: 2px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto 28px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  background: var(--blue-2);
  border-radius: var(--radius);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.9fr) minmax(180px, 0.6fr);
  gap: 34px;
  padding: clamp(28px, 5vw, 54px);
}

.footer-brand img {
  width: min(210px, 80%);
  height: auto;
  padding: 10px 12px;
  background: var(--white);
  border-radius: 6px;
}

.footer-brand p {
  max-width: 390px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-column h2 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-column address {
  margin: 0;
  font-style: normal;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.86);
}

.footer-column a:hover,
.footer-column a:focus-visible,
.footer-bottom a:hover,
.footer-bottom a:focus-visible,
.footer-bottom button:hover,
.footer-bottom button:focus-visible {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(28px, 5vw, 54px);
  background: rgba(0, 0, 0, 0.16);
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.9rem;
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-bottom button {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.legal-dialog {
  width: min(640px, calc(100% - 36px));
  max-height: min(82vh, 780px);
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.legal-dialog::backdrop {
  background: rgba(23, 32, 28, 0.62);
}

.legal-dialog-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.legal-dialog-header h2 {
  font-size: 1.05rem;
  line-height: 1.2;
}

.legal-dialog-close {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 1.6rem;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
}

.legal-dialog-close:hover,
.legal-dialog-close:focus-visible {
  color: var(--ink);
  background: var(--blue-soft);
}

.legal-dialog-body {
  max-height: calc(min(82vh, 780px) - 67px);
  padding: 18px 20px 24px;
  overflow-y: auto;
}

.legal-dialog-body h3 {
  margin: 22px 0 10px;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.legal-dialog-body h4 {
  margin: 20px 0 8px;
  font-size: 1.24rem;
  line-height: 1.15;
}

.legal-dialog-body p {
  margin: 0 0 14px;
  color: var(--muted);
}

.legal-dialog-body a {
  color: var(--blue);
  font-weight: 750;
}

.legal-dialog-body address {
  margin: 0 0 16px;
  color: var(--muted);
  font-style: normal;
}

@media (max-width: 980px) {
  .hero,
  .pain,
  .fit,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media,
  .hero-media img {
    min-height: 360px;
  }

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

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

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

  .site-nav .nav-cta {
    margin-left: 0;
    text-align: center;
  }

  .section-wrap {
    padding: 66px 0;
  }

  .section-band {
    padding: 24px;
  }

  h1 {
    font-size: clamp(2.65rem, 14vw, 4.4rem);
  }

  h2 {
    font-size: clamp(1.9rem, 9vw, 3rem);
  }

  .hero-actions .button,
  .contact-copy .button {
    width: 100%;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-stats div {
    padding: 0 0 13px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-stats div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .hero-media,
  .hero-media img {
    min-height: 290px;
  }

  .hero-note {
    position: static;
    width: auto;
    margin-top: 12px;
  }

  .service-grid,
  .why-grid,
  .fit-columns,
  .teaser-grid,
  .funnel-options,
  .funnel-fields,
  .funnel-summary {
    grid-template-columns: 1fr;
  }

  .funnel-actions {
    flex-direction: column;
  }

  .funnel-actions .button {
    width: 100%;
  }

  .pricing-table {
    overflow-x: auto;
  }

  .footer-main,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .footer-main {
    gap: 28px;
  }

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