/**
 * Leading V2 — header, footer, and page.
 * Source: aifo_portal_web/assets/css/leading-v2.css
 */
#leading-v2 {
  --primary: #f98715;
  --bg-page: #070400;
  --text-main: #f9f9f9;
  --text-muted: #909090;
  --aifo-page-bg-height: 805px;
  --aifo-page-content-offset: 1.375rem;
  --lv2-header-height: 5.75rem;
  background: var(--bg-page);
  color: var(--text-main);
}

@media (max-width: 768px) {
  #leading-v2 {
    --aifo-page-bg-height: 445px;
    --aifo-page-content-offset: 1rem;
    --lv2-header-height: 72px;
  }
}

#leading-v2 {
  --aifo-nav-height: var(--lv2-header-height);
}

.lv2-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1541;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

@media (min-width: 992px) {
  .lv2-header.glass-panel {
    background-color: rgba(0, 0, 0, 0.5);
  }
}

.lv2-header__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  max-width: 1128px;
  margin: 0 auto;
  padding: 20px;
}

@media (min-width: 768px) {
  .lv2-header__inner {
    padding: 30px 32px;
  }
}

.lv2-header__logo {
  display: inline-flex;
  flex-shrink: 0;
}

.lv2-header__logo img {
  display: block;
  height: 32px;
  width: auto;
}

#leading-v2 .leading-v2-page {
  position: relative;
  z-index: 2;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 18px 24px;
}

#leading-v2 .lv2-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 0 0;
  text-align: center;
}

@media (min-width: 768px) {
  #leading-v2 .lv2-hero {
    padding-top: 80px;
  }
}

#leading-v2 .lv2-hero__title {
  margin: 0;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

#leading-v2 .lv2-hero__title-accent {
  color: var(--primary);
}

#leading-v2 .lv2-hero__subtitle {
  margin: 16px 0 0;
  font-size: clamp(18px, 2.5vw, 20px);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: #fff;
}

/* Limited-time offer bar (between hero copy & register) */
#leading-v2 .lv2-offer-bar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  width: 100%;
  max-width: 860px;
  margin-top: 64px;
  text-align: left;
}

#leading-v2 .lv2-offer-bar__text {
  flex-shrink: 0;
}

#leading-v2 .lv2-offer-bar__eyebrow {
  margin: 0 0 6px;
  color: #fff;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

#leading-v2 .lv2-offer-bar__value {
  margin: 0;
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

#leading-v2 .lv2-offer-bar__coupon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 14px 28px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(180deg, #ff9a2e 0%, #f98715 55%, #e8750c 100%);
  box-shadow: 0 8px 24px rgba(249, 135, 21, 0.35);
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

#leading-v2 .lv2-offer-bar__coupon:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(249, 135, 21, 0.45);
}

#leading-v2 .lv2-offer-bar__coupon:active {
  transform: translateY(0);
}

#leading-v2 .lv2-offer-bar__coupon:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

#leading-v2 .lv2-offer-bar__coupon.is-copied {
  filter: brightness(1.1);
}

#leading-v2 .lv2-offer-bar__coupon-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

#leading-v2 .lv2-offer-bar__coupon-icon img {
  display: block;
  width: 18px;
  height: 18px;
}

#leading-v2 .lv2-offer-bar__coupon-label {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

#leading-v2 .lv2-offer-bar__coupon-label strong {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  #leading-v2 .lv2-offer-bar {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
    text-align: center;
  }

  #leading-v2 .lv2-offer-bar__coupon {
    width: 100%;
    max-width: 320px;
    padding: 12px 20px;
  }

  #leading-v2 .lv2-offer-bar__coupon-label {
    font-size: 0.875rem;
  }

  #leading-v2 .lv2-offer-bar__coupon-label strong {
    font-size: 1.05rem;
  }

  #leading-v2 .lv2-hero__form {
    margin-top: 48px;
  }
}

#leading-v2 .lv2-hero__form {
  width: 100%;
  max-width: 900px;
  margin-top: 64px;
}

/* Copy toast — same as exclusive-offer (landing-welcome-rewards.css), above lv2 header */
#leading-v2 .landing-welcome-copy-toast,
body#leading-v2 > .landing-welcome-copy-toast,
.landing-welcome-copy-toast {
  position: fixed;
  top: calc(var(--aifo-nav-height, 5.75rem) + 12px);
  right: 16px;
  z-index: 10000;
  max-width: min(320px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(249, 135, 21, 0.45);
  background: rgba(20, 12, 0, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  font-size: 14px;
  line-height: 1.4;
  color: #fff;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#leading-v2 .landing-welcome-copy-toast.is-visible,
body#leading-v2 > .landing-welcome-copy-toast.is-visible,
.landing-welcome-copy-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}


#leading-v2 .lv2-hero .adl-register-top {
  padding: 0;
  background: transparent;
}

/* Align form with page gutters (.leading-v2-page 18px); kill nested .container padding */
#leading-v2 .lv2-hero__form .container {
  width: 100%;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  margin-right: 0;
}

#leading-v2 #promo-compare-module {
  width: 100%;
  margin-top: 64px;
}

@media (min-width: 768px) {
  #leading-v2 #promo-compare-module {
    margin-top: 112px;
  }
}

#leading-v2 #promo-compare-module .promo-section {
  padding: 48px 0 24px;
}

#leading-v2 #promo-compare-module .promo-section--compare {
  padding-top: 32px;
  padding-bottom: 24px;
}

@media (max-width: 768px) {
  #leading-v2 #promo-compare-module .promo-section {
    padding: 32px 0 16px;
  }

  #leading-v2 #promo-compare-module .promo-section__title {
    margin-bottom: 24px;
  }
}

.lv2-footer {
  position: relative;
  overflow: hidden;
  margin-top: 32px;
  padding: 40px 20px 48px;
  background: var(--bg-page);
}

@media (min-width: 768px) {
  .lv2-footer {
    padding: 40px 32px 48px;
  }
}

.lv2-footer__glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 120%;
  height: 400px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.25;
  filter: blur(175px);
  transform: translateX(-50%);
  pointer-events: none;
}

.lv2-footer__inner {
  position: relative;
  max-width: 1046px;
  margin: 0 auto;
}

.lv2-footer__logo-row {
  display: flex;
  justify-content: center;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(152, 151, 149, 0.5);
}

.lv2-footer__logo img {
  display: block;
  height: 32px;
  width: auto;
}

.lv2-footer__text {
  margin: 32px 0 0;
  font-size: 13px;
  line-height: 20px;
  letter-spacing: -0.01em;
  color: #fff;
}

.lv2-footer__companies {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 0;
  flex-wrap: wrap;
  margin-top: 20px;
}

.lv2-footer__company {
  margin: 0;
  flex: 1 1 240px;
  max-width: 50%;
  padding-right: 40px;
  box-sizing: border-box;
  font-size: 13px;
  line-height: 20px;
  color: #fff;
}

.lv2-footer__company:last-child {
  padding-right: 0;
  padding-left: 40px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.lv2-footer__company p {
  margin: 0 0 4px;
}

.lv2-footer__company p:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .lv2-footer__company {
    max-width: 100%;
    padding-right: 0;
  }

  .lv2-footer__company:last-child {
    padding-left: 0;
    border-left: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
}

.lv2-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.24px;
  color: #f9f9f9;
}

@media (min-width: 768px) {
  .lv2-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.lv2-footer__bottom > p {
  margin: 0;
}

.lv2-footer__bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
}

.lv2-footer__bottom-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.lv2-footer__bottom-links a:hover {
  color: var(--primary);
  text-decoration: none;
}
