html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

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

main,
header,
footer,
nav,
section,
article,
aside,
form,
fieldset,
div {
  min-width: 0;
}

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

img,
video {
  height: auto;
}

input,
select,
textarea,
button {
  min-width: 0;
  max-width: 100%;
  font: inherit;
}

textarea {
  width: 100%;
}

table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

pre,
code {
  max-width: 100%;
  overflow-wrap: anywhere;
}

p,
li,
label,
button,
a {
  overflow-wrap: break-word;
}

a,
button,
input,
select,
textarea {
  touch-action: manipulation;
}

@media (max-width: 1040px) {
  .site-header {
    padding-right: env(safe-area-inset-right);
    padding-left: env(safe-area-inset-left);
  }

  .menu-toggle {
    min-width: 46px;
    min-height: 46px;
    flex: 0 0 auto;
  }

  .mobile-nav {
    width: 100%;
    max-height: calc(100dvh - var(--header-height, 82px));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-nav ul {
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }

  .mobile-nav a {
    display: flex;
    min-height: 48px;
    align-items: center;
  }

  .hero-grid,
  .split,
  .partner-grid,
  .audience-section-head,
  .form-card {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 760px) {
  body {
    min-width: 0 !important;
  }

  .container,
  .wrap,
  .page-shell {
    max-width: 100%;
  }

  .site-header .nav-shell,
  .site-header .container {
    gap: 10px;
  }

  .brand,
  .brand-copy {
    min-width: 0;
  }

  .brand-copy strong {
    line-height: 1.1;
    white-space: normal;
  }

  h1 {
    max-width: 100% !important;
    font-size: clamp(2.35rem, 12.5vw, 4rem) !important;
    overflow-wrap: normal;
  }

  h2 {
    max-width: 100%;
    font-size: clamp(1.65rem, 8vw, 2.35rem);
    overflow-wrap: anywhere;
  }

  h3,
  h4 {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero,
  section {
    scroll-margin-top: calc(var(--header-height, 72px) + 14px);
  }

  section:not(.hero):not(.step):not(.form-card):not(.facebook-social-section) {
    padding-top: clamp(46px, 12vw, 64px);
    padding-bottom: clamp(46px, 12vw, 64px);
  }

  .section-head {
    margin-bottom: clamp(24px, 7vw, 34px);
  }

  .section-head p,
  .hero-lead,
  .lead-copy,
  .lede {
    font-size: clamp(0.98rem, 4.4vw, 1.08rem);
  }

  .hero-card,
  .audience-card,
  .path-service-card,
  .review-card,
  .partner-card,
  .option-card,
  .method-copy,
  .equipment-card,
  .investment article {
    padding-right: clamp(18px, 5vw, 28px);
    padding-left: clamp(18px, 5vw, 28px);
  }

  .hero-grid,
  .audience-grid,
  .service-path-grid,
  .review-grid,
  .trust-grid,
  .process-grid,
  .card-grid,
  .who-grid,
  .partner-grid,
  .option-grid,
  .method-grid,
  .equipment-grid,
  .investment,
  .check-grid,
  .field-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .equipment-card {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .equipment-card img {
    width: 100%;
    height: auto;
    max-height: 260px;
  }

  .btn-row,
  .buttons,
  .page-actions,
  .success-actions,
  .downloads {
    width: 100%;
    align-items: stretch;
  }

  .btn-row > *,
  .buttons > *,
  .page-actions > *,
  .success-actions > *,
  .downloads > a,
  .portal-signup-button,
  .autotuner-button {
    width: 100% !important;
    white-space: normal !important;
    text-align: center;
  }

  .btn,
  .button,
  .portal-signup-button,
  .autotuner-button,
  .faq-question {
    min-height: 48px;
  }

  .btn,
  .button {
    line-height: 1.25;
  }

  .faq-question {
    padding-right: 16px;
    padding-left: 16px;
  }

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

  .footer-links {
    display: grid !important;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px !important;
  }

  .footer-links a {
    display: flex;
    min-height: 44px;
    align-items: center;
    overflow-wrap: anywhere;
  }

  .contact-button-set-footer {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(5, minmax(44px, 1fr));
    gap: 6px;
  }

  .contact-button-set-footer .contact-button {
    width: 100%;
    min-width: 44px;
    height: 44px;
  }

  .text-link {
    margin-left: 0 !important;
  }

  .downloads strong {
    text-align: center;
  }

  .mobile-contact {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .mobile-contact a {
    display: grid;
    min-height: 54px;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    place-items: center;
    line-height: 1.15;
  }

  input,
  select,
  textarea {
    font-size: 16px !important;
  }

  .form-card,
  .step,
  .shot,
  .cta {
    max-width: 100%;
  }

  .step,
  .guide-link,
  .form-card,
  .hero {
    border-radius: clamp(18px, 5vw, 24px);
  }

  .intro,
  .form-panel {
    padding-right: clamp(18px, 6vw, 30px) !important;
    padding-left: clamp(18px, 6vw, 30px) !important;
  }

  .brands {
    justify-content: center;
    gap: 12px;
  }

  .cta {
    padding-right: clamp(18px, 6vw, 30px);
    padding-left: clamp(18px, 6vw, 30px);
  }

  .review-ribbon {
    margin-inline: -13px;
    padding-inline: 13px;
    padding-bottom: 20px;
    scroll-padding-inline: 13px;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .review-grid {
    align-items: stretch;
  }

  .review-card {
    width: min(88vw, 520px) !important;
    height: auto !important;
    min-height: 246px;
    max-height: none !important;
    align-self: stretch;
    overflow: visible !important;
  }

  .review-card blockquote {
    display: block !important;
    max-height: none !important;
    overflow: visible !important;
    -webkit-box-orient: initial;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
  }

  .review-byline {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 5px !important;
  }

  .review-byline cite,
  .review-vehicle {
    width: 100%;
    text-align: left !important;
  }

  .review-controls {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .guide-link {
    align-items: stretch !important;
    flex-direction: column;
  }

  .guide-link .button {
    width: 100%;
  }

  body > header:not(.site-header) {
    padding-top: 20px;
    padding-bottom: 10px;
  }

  main.wrap {
    padding-top: 26px;
  }

  .step {
    gap: 20px !important;
    margin-bottom: 20px !important;
  }

  .shot img,
  .guide-hero-image img,
  .workflow-image img {
    width: 100%;
    height: auto !important;
  }

  .downloads {
    display: grid;
    gap: 10px;
  }

  .downloads > * {
    width: 100%;
  }

  .hero-logo-wrap {
    min-height: 170px !important;
  }

  .credential,
  .audience-card,
  .path-service-card,
  .partner-card {
    min-height: 0 !important;
  }

  .method img,
  .equipment-card img {
    height: auto !important;
  }

  .intro h1,
  .portal-title-copy,
  .portal-title-logo {
    max-width: 100%;
  }

  .portal-title-logo {
    width: min(3.7em, 210px) !important;
  }

  .submit-row {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .submit-row .button {
    width: 100%;
  }

  .topbar {
    gap: 14px;
  }

  .brand-lockup {
    max-width: 100%;
  }

  .success-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 430px) {
  .container {
    width: min(calc(100% - 20px), var(--max-width, 1200px)) !important;
  }

  .wrap,
  .page-shell {
    width: min(calc(100% - 16px), var(--max, 1180px)) !important;
  }

  h1 {
    font-size: clamp(2.15rem, 11.5vw, 3.2rem) !important;
    letter-spacing: -0.045em !important;
  }

  .hero {
    padding-right: clamp(16px, 5vw, 24px);
    padding-left: clamp(16px, 5vw, 24px);
  }

  .hero .container {
    width: 100% !important;
  }

  .workflow {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .flow-step {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    text-align: left;
  }

  .flow-step::before {
    grid-row: 1 / span 2;
    margin: 0;
  }

  .flow-step span {
    margin-top: 0;
  }

  .brands .swtc {
    width: 64px;
    height: 64px;
  }

  .brands .zt {
    width: 96px;
    height: 48px;
  }

  .brand-lockup .swtc {
    width: 62px !important;
    height: 62px !important;
  }

  .brand-lockup .zt {
    width: 82px !important;
    height: 44px !important;
  }

  .intro,
  .form-panel,
  .step,
  .cta {
    padding-right: 17px !important;
    padding-left: 17px !important;
  }

  .benefit {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .mobile-contact a {
    font-size: 0.68rem !important;
  }

  .review-card {
    width: min(calc(100vw - 28px), 520px) !important;
    padding: 21px 18px !important;
  }

  .review-card::after {
    top: 17px;
    right: 17px;
  }

  .review-stars {
    padding-right: 42px;
  }

  .review-card blockquote {
    font-size: 0.96rem;
    line-height: 1.6;
  }

  .review-vehicle {
    letter-spacing: 0.07em;
    line-height: 1.45;
  }

  .hero-logo-wrap {
    min-height: 145px !important;
  }

  .flow {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .flow div {
    min-width: 0;
  }

  .page-actions,
  .downloads {
    gap: 9px;
  }

  .consent {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .consent label {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 360px) {
  .container,
  .wrap,
  .page-shell {
    width: min(calc(100% - 14px), var(--max-width, 1200px)) !important;
  }

  h1 {
    font-size: clamp(2rem, 11vw, 2.65rem) !important;
  }

  .brand-copy strong {
    font-size: 0.74rem !important;
    letter-spacing: 0.045em !important;
  }

  .hero-card,
  .audience-card,
  .path-service-card,
  .partner-card,
  .option-card,
  .method-copy,
  .equipment-card,
  .investment article,
  .intro,
  .form-panel,
  .step,
  .cta {
    padding-right: 15px !important;
    padding-left: 15px !important;
  }

  .brands .swtc {
    width: 56px;
    height: 56px;
  }

  .brands .zt {
    width: 84px;
    height: 42px;
  }

  .page-navigation-link {
    font-size: 0.78rem;
  }

  .review-card {
    width: min(calc(100vw - 20px), 520px) !important;
  }
}

@media (max-width: 900px) and (max-height: 500px) {
  .mobile-nav {
    max-height: calc(100dvh - var(--header-height, 72px));
  }

  .mobile-nav a {
    min-height: 44px;
    padding-top: 9px;
    padding-bottom: 9px;
  }
}

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