/* =========================================================================
   Reactivating Churned Drivers V3 — Page CSS (vanilla, drop-in)
   --------------------------------------------------------------------------
   Frame: mobile-first 440px container, centered on dark page.
   Fonts: Univia Pro (principal); Work Sans só como fallback no body.
   ========================================================================= */

/* ---------- 1. Fonts — Univia Pro (mesmos arquivos que lp-bfc em /public/fonts/) ---------- */
@font-face {
  font-family: "Univia Pro";
  src: url("/fonts/UniviaPro-UltraLight.otf") format("opentype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Univia Pro";
  src: url("/fonts/UniviaPro-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Univia Pro";
  src: url("/fonts/UniviaPro-LightItalic.otf") format("opentype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Univia Pro";
  src: url("/fonts/UniviaPro-Book.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Univia Pro";
  src: url("/fonts/UniviaPro-BookItalic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Univia Pro";
  src: url("/fonts/UniviaPro-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Univia Pro";
  src: url("/fonts/UniviaPro-MediumItalic.otf") format("opentype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Univia Pro";
  src: url("/fonts/UniviaPro-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- 2. Reset / base ---------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Univia Pro", "Work Sans", system-ui, -apple-system, sans-serif;
  background: #1e1e1e;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}
img, video { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }

/* ---------- 3. Wrapper mobile-frame (440px máx) -------------------- */
.page {
  width: 100%;
  max-width: 440px;
  position: relative;
  background: #1e1e1e;
}
.display { font-family: "Univia Pro", sans-serif; }
.work-sans { font-family: "Work Sans", sans-serif; }
.inter { font-family: "Inter", sans-serif; }

/* ---------- 4. HERO (vídeo) ---------------------------------------- */
.hero { position: relative; width: 100%; }
.hero__media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 440 / 385;
  overflow: hidden;
  background: #000;
}
.hero__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero__gradient {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 60%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(30, 30, 30, 0.7) 60%,
    #1e1e1e 100%
  );
  pointer-events: none;
}
.hero__content {
  position: relative;
  margin-top: -64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 0 24px 8px;
  text-align: center;
}
.hero__title {
  font-family: "Univia Pro", sans-serif;
  font-weight: 200;
  font-size: 42px;
  line-height: 0.92;
  letter-spacing: -1.26px;
}
.hero__title .accent { color: #557fd2; }
.hero__subtitle {
  max-width: 386px;
  font-family: "Univia Pro", sans-serif;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.16px;
}
.hero__subtitle .strong { font-weight: 600; }
.hero__subtitle .light  { font-weight: 300; }

/* ---------- 5. MAIN COLUMN ---------------------------------------- */
.main {
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding-bottom: 64px;
  position: relative;
  z-index: 1;
}
.main__video-wrap { padding-top: 40px; }

/* ---------- 6. VIDEO SECTION ("Watch and know more...") ----------- */
.video-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 0 24px;
}
.video-section__heading {
  font-family: "Univia Pro", sans-serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 0.92;
  letter-spacing: -1px;
  text-align: center;
}
.video-section__heading .accent { color: #557fd2; }
.video-placeholder {
  width: 254px;
  height: 450px;
  background: #e3e3e3;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9a9a9a;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  user-select: none;
}

/* YouTube Short embed (vertical, 9:16) */
.video-frame {
  width: 254px;
  height: 450px;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.video-frame__iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- 7. BLUE CTA BUTTON ----------------------------------- */
.btn-cta {
  width: 242px;
  height: 60px;
  border-radius: 12px;
  color: #fff;
  font-family: "Univia Pro", sans-serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -1px;
  background: linear-gradient(180deg, #3583ff 0%, #1447e6 100%);
  border-top:    2px solid rgba(255,255,255,0.10);
  border-left:   2px solid rgba(255,255,255,0.10);
  border-right:  0.5px solid rgba(255,255,255,0.10);
  border-bottom: 0.5px solid rgba(255,255,255,0.10);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.15s ease;
}
.btn-cta:active { transform: scale(0.98); }

/* ---------- 8. PROGRAMS (V3 — cards compactos) ------------------- */
.programs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 0 24px;
}
.programs__heading {
  font-family: "Univia Pro", sans-serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -1px;
  text-align: center;
  max-width: 100%;
  padding: 0 8px;
  box-sizing: border-box;
}
.programs__heading .accent { color: #557fd2; }

.programs__list {
  display: flex;
  gap: 8px;
  align-items: stretch;
  justify-content: center;
  width: 100%;
}
.program-card {
  position: relative;
  flex: 1 1 0%;
  min-width: 0;
  max-width: 129px;
  min-height: 201px;
  padding: 16px;
  border: 2px solid #105ef4;
  border-radius: 8px;
  background: #1e1e1e;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.program-card__icon { width: 24px; height: 24px; }
.program-card__top {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100px;
}
.program-card__sub {
  font-family: "Univia Pro", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1;
  color: #557fd2;
}
.program-card__title {
  font-family: "Univia Pro", sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 0.96;
  letter-spacing: -1px;
  color: #fff;
}
.program-card__btn {
  padding: 8px;
  border-radius: 8px;
  font-family: "Univia Pro", sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: #fff;
  background-image: linear-gradient(144deg, rgb(66,66,66) 20%, rgba(66,66,66,0) 99%);
  transition: opacity 0.15s ease, transform 0.15s ease;
  align-self: flex-start;
}
.program-card__btn:hover { opacity: 0.9; }
.program-card__btn:active { transform: scale(0.98); }

/* Most chosen badge */
.badge {
  position: absolute;
  top: -16px; right: -16px;
  width: 57px; height: 57px;
  pointer-events: none;
  user-select: none;
}
.badge__star {
  position: absolute; inset: 0;
  animation: spin 8s linear infinite;
  filter: drop-shadow(0 2px 8px rgba(20,71,230,0.4));
}
.badge__label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  transform: rotate(-10deg);
  color: #fff;
  font-family: "Univia Pro", sans-serif;
  font-style: italic;
  font-weight: 500;
  font-size: 12px;
  line-height: 0.76;
  text-align: center;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .badge__star { animation: none; }
}

/* ---------- 9. FINANCIAL SUPPORT --------------------------------- */
.financial {
  position: relative;
  width: 100%;
  height: 475px;
  background: #fafafa;
  overflow: hidden;
  border-bottom-left-radius: 104px;
}
.financial__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  pointer-events: none;
}
.financial__plus {
  position: absolute;
  left: max(24px, env(safe-area-inset-left, 0px));
  top: 32px;
  width: 28px; height: 28px;
}
.financial__plus::before,
.financial__plus::after {
  content: ""; position: absolute; background: #0063e2;
}
.financial__plus::before {
  left: 50%; top: 0; transform: translateX(-50%);
  width: 3px; height: 28px;
}
.financial__plus::after {
  top: 50%; left: 0; transform: translateY(-50%);
  width: 28px; height: 3px;
}
.financial__title {
  position: absolute;
  left: max(24px, env(safe-area-inset-left, 0px));
  right: max(24px, env(safe-area-inset-right, 0px));
  top: 68px;
  width: auto;
  max-width: none;
  font-family: "Univia Pro", sans-serif;
  font-weight: 300;
  font-size: 34px;
  line-height: 0.9;
  letter-spacing: -1.02px;
  color: #0063e2;
}
.financial__copy {
  position: absolute;
  left: max(24px, env(safe-area-inset-left, 0px));
  right: max(24px, env(safe-area-inset-right, 0px));
  top: 155px;
  width: auto;
  max-width: none;
  font-family: "Univia Pro", sans-serif;
  color: #1d283d;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: -0.48px;
  font-weight: 300;
}
.financial__copy .medium { font-weight: 500; }

/* ---------- 10. REPLACEMENT TRUCK (vídeo) ------------------------ */
.replacement {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.replacement__media-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #1e1e1e;
}
.replacement__media {
  width: 100%;
  height: auto;
  display: block;
}
.replacement__fade-top,
.replacement__fade-bottom {
  position: absolute; left: 0; right: 0;
  pointer-events: none;
}
.replacement__fade-top {
  top: 0; height: 96px;
  background: linear-gradient(to bottom, #1e1e1e, transparent);
}
.replacement__fade-bottom {
  bottom: 0; height: 128px;
  background: linear-gradient(to top, #1e1e1e, transparent);
}
.replacement__details {
  width: 100%;
  max-width: 320px;
  margin-top: -96px;
  padding: 0 24px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.replacement__title {
  font-family: "Univia Pro", sans-serif;
  font-weight: 300;
  font-size: 34px;
  line-height: 0.9;
  letter-spacing: -1.02px;
  color: #0063e2;
}
.replacement__copy {
  font-family: "Univia Pro", sans-serif;
  color: #fff;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.48px;
}

/* ---------- 11. FOOTER (azul Billor) ----------------------------- */
.footer {
  background: #105ef4;
  padding: 64px 32px;
  display: flex;
  justify-content: center;
}
.footer__inner {
  width: 100%;
  max-width: 305px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.footer__brand { position: relative; height: 130px; }
.footer__logo-block {
  position: absolute; top: 0; left: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.footer__logo {
  width: 86px; height: 107px; object-fit: contain; object-position: top left;
}
.footer__tagline {
  color: #d0dff6;
  font-family: "Univia Pro", sans-serif;
  font-style: italic;
  font-size: 11px;
}
.footer__social {
  position: absolute; bottom: 0; right: 0;
  display: flex; gap: 16px; align-items: center;
}
.footer__social img { width: 17px; height: 17px; }
.footer__social img.mail { width: 15px; height: 15px; }

.footer__about {
  color: #d0dff6;
  font-family: "Univia Pro", sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.4;
}
.footer__about .light { font-weight: 300; font-size: 14px; }
.footer__columns {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 32px;
}
.footer__col { width: 120px; display: flex; flex-direction: column; gap: 16px; }
.footer__col-label {
  color: #f4f4f5;
  font-family: "Univia Pro", sans-serif;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.7;
  text-transform: uppercase;
}
.footer__col-list {
  display: flex; flex-direction: column; gap: 4px;
  color: #f0f6ff;
  font-family: "Univia Pro", sans-serif;
  font-size: 12px;
  font-weight: 300;
  opacity: 0.6;
}
.footer__col-list a, .footer__col-list span {
  line-height: 2.3;
  transition: opacity 0.15s ease;
}
.footer__col-list a:hover { opacity: 1; }

.footer__addresses {
  display: flex; flex-direction: column; gap: 12px;
  color: #b0c7f5;
  font-family: "Univia Pro", sans-serif;
  font-size: 10px;
  font-weight: 300;
}
.footer__addresses .bold { font-weight: 700; }
.footer__copy {
  color: #b0c7f5;
  font-family: "Univia Pro", sans-serif;
  font-size: 8.9px;
  font-weight: 300;
  line-height: 12px;
}

/* ---------- 12. MODAL -------------------------------------------- */
.modal { display: none; }
.modal.is-open { display: flex; }
.modal {
  position: fixed; inset: 0; z-index: 50;
  align-items: center; justify-content: center;
  padding: 24px 16px;
  transition: opacity 320ms ease;
}
.modal.is-closing { opacity: 0; pointer-events: none; }
.modal.is-closing .modal__card {
  transform: translateY(8px) scale(0.985);
  transition: transform 320ms ease;
}
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.30);
  cursor: pointer;
}
.modal__card {
  position: relative;
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(46,46,47,0.95) 0%, rgba(31,31,32,0.95) 100%);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
}
.modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 20px;
}
.modal__sub {
  color: #557fd2;
  font-family: "Univia Pro", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1;
}
.modal__title {
  margin-top: 4px;
  color: #fff;
  font-family: "Univia Pro", sans-serif;
  font-weight: 400;
  font-style: italic;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -1px;
}
.modal__close {
  flex-shrink: 0;
  width: 36px; height: 36px;
  margin: -4px -4px 0 0;
  border-radius: 9999px;
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center; justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.modal__close:hover { color: #fff; background: rgba(255,255,255,0.05); }

/* Inner scroll card */
.modal__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  margin: 0 16px 16px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.015);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.18) transparent;
}
.modal__scroll::-webkit-scrollbar { width: 6px; }
.modal__scroll::-webkit-scrollbar-track { background: transparent; margin: 12px 0; }
.modal__scroll::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.18); border-radius: 3px;
}
.modal__scroll::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.30); }

.modal__sections { display: flex; flex-direction: column; }
.modal__section { padding: 20px 0; }
.modal__section + .modal__section {
  border-top: 1px solid rgba(255,255,255,0.07);
}
.modal__section-title {
  color: #557fd2;
  font-family: "Univia Pro", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}
.modal__section-body {
  color: #fff;
  font-family: "Univia Pro", sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.4;
}
.modal__section-body strong { font-weight: 600; }

/* CTA */
.modal__footer { padding: 0 16px 20px; }
.modal__cta {
  width: 100%;
  height: 56px;
  border-radius: 14px;
  color: #fff;
  font-family: "Univia Pro", sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.5px;
  background: linear-gradient(180deg, #3583ff 0%, #1447e6 100%);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 8px 24px rgba(20,71,230,0.4);
  transition: transform 0.15s ease;
}
.modal__cta:active { transform: scale(0.98); }
.modal__cta strong { font-weight: 700; }

/* ---------- 13. CONTACT FORM (dentro do modal) -------------------- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 4px 0 8px;
}
.contact-form__intro {
  margin: 0 0 6px;
  color: rgba(255,255,255,0.78);
  font-family: "Univia Pro", sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.2px;
}
.contact-form__error {
  margin: 0 0 4px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(220, 80, 80, 0.12);
  border: 1px solid rgba(255, 120, 120, 0.35);
  color: #ffb4b4;
  font-family: "Univia Pro", sans-serif;
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: -0.2px;
}
.contact-form__error[hidden] {
  display: none !important;
}
.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-form__label {
  color: #557fd2;
  font-family: "Univia Pro", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1;
  letter-spacing: -0.2px;
}
.contact-form__input {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #fff;
  font-family: "Univia Pro", sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.2px;
  outline: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-form__input::placeholder {
  color: rgba(255,255,255,0.35);
  font-weight: 300;
}
.contact-form__input:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
}
.contact-form__input:focus {
  border-color: #557fd2;
  background: rgba(85,127,210,0.08);
  box-shadow: 0 0 0 3px rgba(85,127,210,0.18);
}
.contact-form__input:invalid:not(:placeholder-shown) {
  border-color: rgba(255,120,120,0.6);
}

/* Hide form once it's in success state */
.contact-form.is-success { display: none; }

/* CTA: verde "Sent" + checkmark */
.modal__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 320ms ease, box-shadow 320ms ease, transform 0.15s ease;
}
.modal__cta--success {
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%) !important;
  border-color: rgba(255,255,255,0.18) !important;
  box-shadow: 0 8px 24px rgba(22,163,74,0.45) !important;
  cursor: default;
}
.modal__cta--success:active { transform: none; }
.modal__cta-check {
  width: 18px; height: 18px;
  display: inline-block;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 240ms ease 80ms, transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1) 80ms;
}
.modal__cta--success .modal__cta-check {
  opacity: 1;
  transform: scale(1);
}

/* ---------- 14. CONTACT SUCCESS view ----------------------------- */
.contact-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 8px 16px;
  animation: contact-success-in 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.contact-success[hidden] { display: none; }
.contact-success__title {
  margin: 0 0 12px;
  color: #fff;
  font-family: "Univia Pro", sans-serif;
  font-weight: 200;
  font-size: 38px;
  line-height: 0.95;
  letter-spacing: -1.14px;
}
.contact-success__title .accent { color: #557fd2; }
.contact-success__text {
  margin: 0;
  color: rgba(255,255,255,0.78);
  font-family: "Univia Pro", sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: -0.2px;
  max-width: 280px;
}
@keyframes contact-success-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .contact-success { animation: none; }
}
