/* Billor for Truck Owners — LP
   Built from Figma "LP / BfTO V2 — Mobile 391" (mobile-only spec).
   Sections stay single-column and are centered in a max-width container
   above mobile size, since no desktop comp was provided. */

:root {
  --color-primary: #105ef4;
  --color-primary-dark: #0d4fd1;
  --color-bg-dark: #0d0d0d;
  --color-bg-darker: #1e1e1e;
  --color-bg-light: #fafafa;
  --color-navy: #13294c;
  --color-card-blue: #557fd2;
  --color-text-dark: #1d283d;
  --color-text-dark-2: #1c2b3a;
  --color-text-body: #435063;
  --color-text-muted: #8a94a6;
  --color-border-light: #d6dee9;
  --font-sans: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container-width: 480px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text-dark);
  background: var(--color-bg-light);
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

a {
  color: inherit;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Shared text styles ---------- */

.eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--color-primary);
  margin: 0 0 14px;
}

.eyebrow--light {
  color: #ffffff;
  text-align: center;
  width: 100%;
}

.eyebrow--center {
  text-align: center;
}

.section__title {
  font-weight: 300;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: -1.4px;
  color: var(--color-text-dark);
  margin: 0 0 10px;
}

.section__title--light {
  color: var(--color-bg-light);
}

.section__title--center {
  text-align: center;
}

.text-accent {
  color: var(--color-primary);
}

.section__lede {
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.4px;
  color: rgba(29, 40, 61, 0.8);
  margin-bottom: 32px;
}

.section__sub {
  font-size: 15px;
  color: rgba(250, 250, 250, 0.8);
  text-align: center;
  margin-bottom: 30px;
}

.fine-print {
  font-size: 12.5px;
  color: rgba(208, 223, 246, 0.65);
  margin-top: 16px;
}

.note {
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(29, 40, 61, 0.75);
  margin: 24px 0 32px;
}

/* ---------- Buttons ---------- */

.btn {
  border: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: background-color 0.15s ease, transform 0.05s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--color-primary);
  color: #ffffff;
  font-size: 17px;
  padding: 17px 24px;
  box-shadow: 0 8px 30px 0 rgba(16, 94, 244, 0.35);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
}

.btn--block {
  display: block;
  width: 100%;
  text-align: center;
}

.btn--pill {
  background: #ffffff;
  color: #3573eb;
  font-size: 15px;
  padding: 13px 20px;
  border-radius: 5px;
  white-space: nowrap;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 12px;
  z-index: 100;
  margin-bottom: -60px;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 8px 8px 8px 18px;
  background: rgba(42, 44, 56, 0.6);
  border: 1px solid rgba(85, 127, 210, 0.17);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 51.8px 0 rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header__logo {
  display: flex;
  align-items: center;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 76px 0 45px;
  overflow: hidden;
  background: var(--color-bg-dark);
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 640px;
  height: 519px;
  overflow: hidden;
  filter: blur(2px);
}

.hero__bg-img {
  position: absolute;
  top: -52.82%;
  left: -130.9%;
  width: 290.65%;
  height: 145.62%;
  max-width: none;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13, 13, 13, 0) 29.865%, #0d0d0d 72.243%);
}

.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 19px;
  padding-top: 214px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 21px 8px 20px;
  background: rgba(101, 173, 255, 0.2);
  border: 1px solid rgba(101, 174, 255, 0.4);
  border-radius: 26px;
  color: #65adff;
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
}

.hero__title {
  font-weight: 300;
  font-size: 52px;
  line-height: 1.12;
  letter-spacing: -1.5px;
  text-align: center;
  background: linear-gradient(to top, #fafafa, #6e9efc);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero__body {
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.4px;
  text-align: center;
  color: rgba(250, 250, 250, 0.85);
  max-width: 322px;
}

.hero__hint {
  font-size: 13px;
  text-align: center;
  color: rgba(208, 223, 246, 0.7);
}

/* ---------- Sections ---------- */

.section {
  padding: 72px 0;
}

.section--light {
  background: var(--color-bg-light);
}

.section--dark {
  background: var(--color-bg-dark);
}

.section--apply {
  background: var(--color-bg-darker);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section--apply .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- Why Partner: benefit cards ---------- */

.benefit-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.benefit-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 40px 28px;
  background: var(--color-card-blue);
  border-radius: var(--radius-md);
  text-align: center;
}

.benefit-card__title {
  font-weight: 500;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.8px;
  color: #f8fafb;
}

.benefit-card__body {
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: -0.3px;
  color: rgba(248, 250, 251, 0.95);
}

/* ---------- What You Get: chip grid ---------- */

.chip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.chip {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 16px;
  background: rgba(50, 65, 88, 0.28);
  border: 1px solid rgba(85, 127, 210, 0.14);
  border-radius: var(--radius-md);
}

.chip p {
  font-weight: 500;
  font-size: 14.5px;
  line-height: 1.3;
  letter-spacing: -0.3px;
  color: #fafafa;
}

/* ---------- Good Fit: requirements card ---------- */

.requirements-card {
  padding: 28px 24px;
  background: var(--color-navy);
  border-radius: var(--radius-md);
}

.requirements-card__title {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 2.5px;
  color: #86aefb;
  margin-bottom: 18px;
}

.requirement {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.requirement--last {
  border-bottom: none;
}

.requirement p {
  flex: 1;
  font-size: 16px;
  letter-spacing: -0.3px;
  color: #f8fafb;
}

/* ---------- Wizard (shared: inline + modal) ---------- */

.wizard-mount {
  width: 100%;
}

.wizard {
  width: 100%;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 26px 22px 24px;
  box-shadow: 0 20px 60px 0 rgba(0, 0, 0, 0.45);
}

.wizard__progress {
  height: 4px;
  border-radius: 2px;
  background: #e7ebf2;
  overflow: hidden;
  margin-bottom: 22px;
}

.wizard__progress-fill {
  height: 100%;
  width: 16.66%;
  background: var(--color-primary);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.wizard__step {
  display: none;
}

.wizard__step.is-active {
  display: block;
  animation: wizard-fade-in 0.2s ease;
}

@keyframes wizard-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.wizard__step-label {
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.wizard__question {
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.4px;
  color: var(--color-text-dark-2);
  margin-bottom: 20px;
}

.wizard__hint {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: -14px 0 16px;
}

.wizard__consent {
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--color-text-muted);
  margin: 10px 0;
}

.field {
  margin-bottom: 16px;
}

.field__label {
  display: block;
  font-weight: 500;
  font-size: 13.5px;
  color: var(--color-text-body);
  margin-bottom: 7px;
}

.field__input {
  width: 100%;
  padding: 15px 16px;
  font-family: inherit;
  font-size: 16.5px;
  color: var(--color-text-dark-2);
  background: #ffffff;
  border: 1.5px solid var(--color-border-light);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.15s ease;
}

.field__input::placeholder {
  color: var(--color-text-muted);
}

.field__input:focus {
  border-color: var(--color-primary);
}

.field__select-wrap {
  position: relative;
}

.field__select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
}

.field__chevron {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.field__error {
  display: none;
  font-size: 13px;
  color: #d43f3f;
  margin-top: 6px;
}

.field--invalid .field__input {
  border-color: #d43f3f;
}

.field--invalid .field__error {
  display: block;
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.option-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 17px 18px;
  background: #ffffff;
  border: 1.5px solid var(--color-border-light);
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 17px;
  color: var(--color-text-dark-2);
  text-align: left;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.option-btn.is-selected {
  background: #f0f6ff;
  border-color: var(--color-primary);
}

.option-btn__indicator {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.option-btn__indicator--radio {
  background-image: url("../assets/images/radio-unselected.svg");
}

.option-btn.is-selected .option-btn__indicator--radio {
  background-image: url("../assets/images/radio-selected.svg");
}

.option-btn__indicator--checkbox {
  border: 2.5px solid #17202b;
  border-radius: 7px;
}

.option-btn.is-selected .option-btn__indicator--checkbox {
  border: none;
  background-image: url("../assets/images/checkbox-checked.svg");
}

.option-group__error {
  display: none;
  font-size: 13px;
  color: #d43f3f;
  margin: -8px 0 16px;
}

.option-group--invalid .option-group__error {
  display: block;
}

.option-group--invalid .option-btn {
  border-color: #d43f3f;
}

.wizard__nav {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.wizard__nav--split .btn--back {
  flex-shrink: 0;
}

.wizard__nav--split .btn--continue,
.wizard__nav--split .btn--submit {
  flex: 1;
}

.btn--continue,
.btn--submit {
  background: var(--color-primary);
  color: #ffffff;
  font-size: 16.5px;
  padding: 15px;
  width: 100%;
}

.btn--continue:hover,
.btn--submit:hover {
  background: var(--color-primary-dark);
}

.btn--back {
  background: #eef2f8;
  color: #43506d;
  font-size: 15.5px;
  padding: 15px 20px;
}

.btn--back:hover {
  background: #e2e8f2;
}

.wizard__step--success {
  text-align: center;
  padding-top: 6px;
}

.wizard__success-check {
  margin: 0 auto 22px;
  width: 72px;
}

.wizard__success-title {
  font-weight: 600;
  font-size: 23px;
  letter-spacing: -0.5px;
  color: var(--color-text-dark-2);
  margin-bottom: 10px;
}

.wizard__success-body {
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--color-text-body);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-primary);
  padding: 72px 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 56px;
  color: #d0dff6;
}

.footer__top {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer__logo-mark {
  width: 60px;
  height: auto;
  margin-bottom: 8px;
}

.footer__tagline {
  font-style: italic;
  font-size: 12px;
  color: #d0dff6;
}

.footer__social {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer__social img {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer__about {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: #d0dff6;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__about--muted {
  font-weight: 300;
  opacity: 0.85;
}

.footer__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 24px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__col-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12px;
  color: #f4f4f5;
  opacity: 0.7;
}

.footer__col a,
.footer__col nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col a {
  font-family: var(--font-body);
  font-size: 13px;
  color: #f0f6ff;
  opacity: 0.75;
  text-decoration: none;
}

.footer__col a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer__addresses {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.6;
  color: #b0c7f5;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__copy {
  font-family: var(--font-body);
  font-size: 11px;
  color: #b0c7f5;
}

/* ---------- Modal ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  background: rgba(13, 13, 13, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-overlay.is-open {
  display: flex;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 386px;
  margin: auto;
}

.modal__close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ---------- Responsive ---------- */

@media (min-width: 560px) {
  .chip-grid {
    gap: 14px;
  }

  .footer__links {
    grid-template-columns: repeat(4, auto);
    justify-content: space-between;
  }
}

@media (min-width: 900px) {
  :root {
    --container-width: 720px;
  }

  .hero__content {
    padding-top: 260px;
  }

  .benefit-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
