/* Kiser Tire lead page */

:root {
  --glacier: #5B9BC6;
  --glacier-soft: #E6F0F6;
  --glacier-wash: #DCEAF3; /* slightly richer light blue from glacier, still AA with navy/slate */
  --burgundy: #7A2D3D;
  --burgundy-hover: #632433;
  --navy: #1A2744;
  --ivory: #F7F5F2;
  --slate: #3E4752;
  --white: #ffffff;
  --line: rgba(26, 39, 68, 0.22);
  --line-strong: var(--navy);
  --font-display: "Libre Baskerville", "Palatino Linotype", Palatino, "Iowan Old Style", serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  --measure: 70rem;
  --content: 64rem;
  --text-min: 1rem;
  --control-height: 3.25rem; /* 52px at 16px root */
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.25rem; /* 20px */
  line-height: 1.6;
  color: var(--navy);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

input,
select,
textarea,
button {
  font-family: inherit;
  font-size: 1rem;
}

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

a {
  color: var(--burgundy);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--burgundy-hover);
}

:focus-visible {
  outline: 3px solid var(--glacier);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4.5rem;
  z-index: 100;
  background: var(--ivory);
  color: var(--navy);
  padding: 0.7rem 1.1rem;
  font-size: 1rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: min(calc(100% - 2.5rem), var(--content));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(calc(100% - 2.5rem), 40rem);
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 1.15rem;
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: var(--control-height);
  padding: 0.85rem 2.25rem;
  border: 1px solid var(--burgundy);
  background: var(--burgundy);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  background: var(--burgundy-hover);
  border-color: var(--burgundy-hover);
  color: var(--ivory);
  text-decoration: none;
}

.btn:active {
  background: #54202c;
}

.btn-light {
  background: var(--ivory);
  border-color: var(--ivory);
  color: var(--navy);
}

.btn-light:hover {
  background: #fff;
  border-color: #fff;
  color: var(--navy);
}

/* Hero */

.hero {
  position: relative;
  background: var(--navy);
  color: var(--ivory);
  padding: 4.5rem 0 4.75rem;
  text-align: center;
  border-bottom: 1px solid var(--navy);
}

.hero .wrap {
  position: relative;
}

.logo {
  width: min(240px, 86vw);
  height: auto;
  margin: 0 auto 2.25rem;
}

.hero h1 {
  margin: 0 auto 1rem;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ivory);
}

.hero h1::before {
  content: "";
  display: block;
  width: 4rem;
  height: 1px;
  margin: 0 auto 2rem;
  background: rgba(247, 245, 242, 0.55);
}

.hero .subhead {
  margin: 0 auto 2.25rem;
  max-width: 32rem;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--ivory);
}

/* Shared sections */

section {
  padding: 5rem 0;
}

.section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy);
  line-height: 1.25;
}

.section-head h2::before {
  content: "";
  display: block;
  width: 3rem;
  height: 1px;
  margin: 0 auto 1.35rem;
  background: var(--burgundy);
}

.section-head p {
  margin: 0.9rem auto 0;
  max-width: 36rem;
  color: var(--slate);
  font-size: 1.25rem;
  line-height: 1.6;
}

/* How it works */

.how {
  background: var(--glacier-wash);
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.step {
  background: transparent;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.step:last-child {
  border-bottom: 1px solid var(--line);
}

.step-num {
  display: block;
  margin-bottom: 0.85rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: var(--burgundy);
}

.step h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.step p {
  margin: 0;
  color: var(--slate);
  font-size: 1.25rem;
  line-height: 1.6;
}

/* Why */

.why {
  background: var(--ivory);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--navy);
}

.why-card {
  background: transparent;
  padding: 2rem 0;
  border-bottom: 1px solid var(--navy);
}

.why-card h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.why-card p {
  margin: 0;
  color: var(--slate);
  font-size: 1.25rem;
  line-height: 1.6;
}

/* Pricing */

.pricing {
  background: var(--navy);
  color: var(--ivory);
  text-align: center;
  padding: 5.5rem 0;
}

.pricing h2 {
  margin: 0 auto 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--ivory);
}

.pricing p {
  margin: 0 auto 2rem;
  max-width: 34rem;
  color: var(--ivory);
  font-size: 1.25rem;
  line-height: 1.6;
}

/* Request form */

.request {
  padding: 5.5rem 0 5rem;
  background: var(--ivory);
}

.form-card {
  background: var(--white);
  border: 1px solid var(--navy);
  padding: 2rem 1.5rem 2.15rem;
}

.form-card h2 {
  text-align: center;
}

.form-error {
  margin: 0 0 1.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--burgundy);
  background: #f6eef0;
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.5;
}

.form-error a {
  color: var(--burgundy);
  font-weight: 600;
}

#request-form {
  display: grid;
  gap: 1.25rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label,
.fieldset-legend {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}

.optional {
  margin-left: 0.2em;
  font-weight: 400;
  color: var(--slate);
  font-size: 1.125rem;
}

.field-sets input {
  max-width: 8.5rem;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field select {
  width: 100%;
  min-height: var(--control-height);
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--navy);
  background: var(--ivory);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 1.25rem;
  line-height: 1.4;
}

.field input::placeholder,
.field select::placeholder {
  color: var(--slate);
  opacity: 1;
  font-size: 1.25rem;
}

.field input:hover,
.field select:hover {
  border-color: var(--burgundy);
}

.field input:focus,
.field select:focus {
  outline: 3px solid var(--glacier);
  outline-offset: 2px;
  border-color: var(--navy);
}

fieldset {
  margin: 0;
  padding: 0;
  border: none;
  display: grid;
  gap: 0.55rem;
}

.choices {
  display: grid;
  gap: 0.6rem;
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--control-height);
  padding: 0.75rem 1rem;
  background: var(--ivory);
  border: 1px solid var(--navy);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1.4;
}

.choice:hover {
  border-color: var(--burgundy);
}

.choice:has(input:checked) {
  border-color: var(--burgundy);
  background: #f6eef0;
}

.choice input {
  margin: 0;
  accent-color: var(--burgundy);
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  font-size: 1.25rem;
}

.choices:focus-within {
  outline: none;
}

.choice:focus-within {
  outline: 3px solid var(--glacier);
  outline-offset: 2px;
}

.form-actions {
  margin-top: 0.5rem;
}

.form-actions .btn {
  width: 100%;
}

.form-note {
  margin: 0.9rem 0 0;
  text-align: center;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--slate);
}

.thanks {
  text-align: center;
  padding: 2.5rem 1.25rem;
}

.thanks .thanks-kicker {
  margin: 0 0 1.5rem;
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--burgundy);
  line-height: 1.4;
}

.thanks .thanks-kicker::after {
  content: "";
  display: block;
  width: 3rem;
  height: 1px;
  margin: 1.15rem auto 0;
  background: var(--burgundy);
}

.thanks h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
}

.thanks p {
  margin: 0 auto;
  max-width: 28rem;
  color: var(--slate);
  font-size: 1.25rem;
  line-height: 1.6;
}

/* FAQ */

.faq {
  background: var(--glacier-wash);
  padding-top: 5rem;
  padding-bottom: 5.25rem;
}

.faq-list {
  display: grid;
  gap: 0;
  width: min(calc(100% - 2.5rem), 44rem);
  margin-inline: auto;
  border-top: 1px solid var(--navy);
}

.faq-item {
  background: transparent;
  border-bottom: 1px solid var(--navy);
  padding: 0;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 2.75rem 1.15rem 0;
  font-weight: 650;
  font-size: 1.25rem;
  line-height: 1.45;
  position: relative;
  color: var(--navy);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 0.15rem;
  top: 50%;
  width: 0.65rem;
  height: 0.65rem;
  border-right: 2px solid var(--burgundy);
  border-bottom: 2px solid var(--burgundy);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.15s ease;
}

.faq-item[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.faq-item summary:focus-visible {
  outline: 3px solid var(--glacier);
  outline-offset: 3px;
}

.faq-item p {
  margin: 0;
  padding: 0 0 1.35rem;
  color: var(--slate);
  font-size: 1.25rem;
  line-height: 1.6;
}

/* Footer */

.site-footer {
  background: var(--navy);
  color: var(--ivory);
  text-align: center;
  padding: 3.25rem 0 3rem;
}

.footer-logo {
  width: min(200px, 70vw);
  height: auto;
  margin: 0 auto 1.15rem;
}

.site-footer .footer-name {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ivory);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.site-footer p {
  margin: 0.25rem 0;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ivory);
}

.site-footer a {
  color: #f4e6e8;
}

.site-footer a:hover {
  color: var(--ivory);
}

/* Layout from tablet up */

@media (min-width: 640px) {
  .wrap {
    width: min(calc(100% - 3.5rem), var(--content));
  }

  .hero {
    padding: 6rem 0 6.25rem;
  }

  .logo {
    width: 300px;
    height: auto;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .step {
    padding: 2.25rem 2rem;
    border-top: none;
    border-bottom: none;
    border-right: 1px solid var(--line);
  }

  .step:first-child {
    padding-left: 0;
  }

  .step:last-child {
    padding-right: 0;
    border-right: none;
    border-bottom: none;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    border: 1px solid var(--navy);
    border-bottom: none;
    border-right: none;
  }

  .why-card {
    padding: 2.25rem 2rem;
    border-bottom: 1px solid var(--navy);
    border-right: 1px solid var(--navy);
  }

  .form-card {
    padding: 2.5rem 2.5rem 2.6rem;
  }

  .wheels-choices,
  .swap-choices {
    grid-template-columns: 1fr;
  }

  .wheels-choices {
    grid-template-columns: repeat(3, 1fr);
  }

  .form-actions .btn {
    width: auto;
    min-width: 16rem;
    margin-inline: auto;
    display: flex;
  }

  .faq-list {
    width: min(calc(100% - 3.5rem), 44rem);
  }
}

@media (min-width: 900px) {
  section {
    padding: 6.25rem 0;
  }

  .why-card {
    padding: 2.5rem 2.25rem;
  }
}

@media (max-width: 389px) {
  .wrap,
  .wrap-narrow,
  .faq-list {
    width: min(calc(100% - 1.75rem), var(--content));
  }

  .hero h1 {
    max-width: 12ch;
  }
}

/* Honeypot field: hidden from people, present so bots fill it and the waitlist function drops the submission */
.hp {
  display: none !important;
}

/* Compact header used on thanks.html */
.hero-compact {
  padding: 2.5rem 0;
}

.hero-compact .logo {
  width: min(200px, 80vw);
  height: auto;
  margin-bottom: 0;
}

.hero-compact .logo-link {
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

/* Standalone thank-you page */
.thanks-page {
  padding: 4rem 0 5rem;
}

.thanks-page .form-card {
  text-align: center;
}

.thanks h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}

.thanks .btn {
  margin-top: 1.85rem;
}

@media (min-width: 640px) {
  .hero-compact {
    padding: 2.75rem 0;
  }

  .hero-compact .logo {
    width: 220px;
    height: auto;
  }

  .thanks-page {
    padding: 5rem 0 6rem;
  }
}


/* Privacy policy page */
.policy-page {
  padding: 3rem 0 5rem;
}

.policy-page h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}

.policy-updated {
  margin: 0 0 2.25rem;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--slate);
}

.policy-page h2 {
  margin: 2rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
}

.policy-page p,
.policy-page li {
  margin: 0 0 1rem;
  color: var(--slate);
  font-size: 1.25rem;
  line-height: 1.6;
}

.policy-page ul {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.policy-page li {
  margin-bottom: 0.45rem;
}

@media (min-width: 640px) {
  .policy-page {
    padding: 4rem 0 6rem;
  }
}
