/**
 * Landing page — professional mobile & tablet layout
 * Scoped to .landing-page (loads after styles.css + responsive.css)
 */

/* Prevent horizontal scroll */
.landing-page {
  overflow-x: hidden;
}

.landing-page .landing-main {
  overflow-x: hidden;
}

/* Tablet + mobile nav & hero visual (override styles.css 1024px rules) */
@media (max-width: 1024px) {
  .landing-page .hero {
    min-height: auto !important;
    height: auto !important;
    padding: calc(var(--nav-h) + 28px) 16px 20px !important;
    gap: 0;
  }

  .landing-page .hero__content > .hero__visual,
  .landing-page .hero__content > .hero__visual-mobile {
    margin: 0 !important;
  }

  .landing-page .hero__visual,
  .landing-page .hero__visual--desktop,
  .landing-page .hero__visual-mobile {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
  }

  .landing-page .trust-strip.reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .landing-page .nav__burger {
    display: flex;
  }

  .landing-page .nav__links,
  .landing-page .nav__actions .nav__icon-btn,
  .landing-page .nav__actions .btn--sm {
    display: none;
  }

  .landing-page .nav.nav--open {
    height: auto;
    min-height: var(--nav-h, 60px);
    flex-wrap: wrap;
    align-items: stretch;
    max-height: calc(100dvh - 16px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
  }

  .landing-page .nav.nav--open .nav__links {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    order: 3;
    width: 100%;
    gap: 4px;
    padding: 10px 10px 6px;
    background: transparent;
    border-top: 1px solid var(--border);
    border-radius: 0;
  }

  .landing-page .nav.nav--open .nav__actions {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    order: 4;
    width: 100%;
    gap: 10px;
    padding: 6px 10px 12px;
    background: transparent;
  }

  .landing-page .nav.nav--open .nav__actions .nav__icon-btn,
  .landing-page .nav.nav--open .nav__actions .btn--sm {
    display: inline-flex !important;
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }
}

@media (max-width: 768px) {
  .landing-page {
    --nav-h: 60px;
  }

  .landing-page .nav {
    top: max(8px, env(safe-area-inset-top, 0px));
    width: calc(100% - 16px);
    padding: 0 12px;
    height: var(--nav-h);
    border-radius: 14px;
  }

  .landing-page .brand-logo--nav {
    flex-shrink: 0;
    max-width: calc(100% - 52px);
  }

  .landing-page .nav__burger {
    display: flex;
    position: relative;
    z-index: 5;
    flex-shrink: 0;
    margin-left: auto;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: background 0.2s;
  }

  .landing-page .nav__burger:active {
    background: rgba(255, 255, 255, 0.08);
  }

  .landing-page .nav.nav--open .nav__links .nav__link {
    display: block;
    padding: 13px 14px;
    text-align: center;
    border-radius: 10px;
    white-space: normal;
    font-size: 0.9rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .landing-page .nav.nav--open .nav__links .nav__link:hover,
  .landing-page .nav.nav--open .nav__links .nav__link--active {
    background: rgba(255, 255, 255, 0.06);
  }

  /* Hero */
  .landing-page .hero {
    min-height: auto;
    padding: calc(var(--nav-h) + 24px) 16px 32px;
    gap: 24px;
  }

  .landing-page .hero__content {
    padding: 0 4px;
  }

  .landing-page .hero__title {
    font-size: clamp(1.75rem, 7.5vw, 2.2rem);
    line-height: 1.2;
    word-wrap: break-word;
  }

  .landing-page .hero__subtitle {
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 22px;
    max-width: 100%;
  }

  .landing-page .hero__ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 24px;
  }

  .landing-page .hero__ctas .btn {
    width: 100%;
    min-height: 48px;
    font-size: 0.9rem;
  }

  .landing-page .hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 12px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 0;
  }

  .landing-page .hero__stats .stat {
    text-align: center;
    padding: 8px 4px;
  }

  .landing-page .hero__stats .stat strong {
    font-size: 1.05rem;
    line-height: 1.2;
  }

  .landing-page .hero__stats .stat span {
    font-size: 0.58rem;
    letter-spacing: 0.05em;
    line-height: 1.3;
  }

  /* Hero visual hidden on mobile — text, CTAs, and stats only */
  .landing-page .hero__visual,
  .landing-page .hero__visual--desktop,
  .landing-page .hero__visual-mobile {
    display: none !important;
  }

  .landing-page .trust-strip.reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Trust strip */
  .landing-page .trust-strip {
    padding: 8px 16px 16px;
  }

  .landing-page .trust-strip__inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 16px;
    padding: 18px 16px;
  }

  .landing-page .trust-strip__label {
    grid-column: 1 / -1;
    margin-bottom: 0;
    font-size: 0.68rem;
  }

  .landing-page .trust-item strong {
    font-size: 1rem;
  }

  /* Sections */
  .landing-page .section {
    padding: 48px 16px;
  }

  .landing-page .section--products {
    padding-top: 24px;
    padding-bottom: 48px;
  }

  .landing-page .section__header {
    margin-bottom: 28px;
    padding: 0 4px;
  }

  .landing-page .section__header h2 {
    font-size: clamp(1.4rem, 5.5vw, 1.75rem);
    line-height: 1.25;
  }

  .landing-page .section__header p {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  /* Loan cards */
  .landing-page .loan-products__grid {
    max-width: 100%;
    gap: 14px;
    padding: 0 2px;
  }

  .landing-page .loan-card {
    padding: 20px 18px;
  }

  .landing-page .loan-card__title {
    font-size: 1.05rem;
    padding-right: 72px;
  }

  .landing-page .loan-card__desc {
    font-size: 0.84rem;
  }

  .landing-page .loan-card__btn {
    min-height: 44px;
    width: 100%;
  }

  /* Timeline */
  .landing-page .timeline {
    padding: 0 4px;
    max-width: 100%;
  }

  .landing-page .timeline__step {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 28px;
    text-align: center;
  }

  .landing-page .timeline__content--left,
  .landing-page .timeline__content--right {
    text-align: center;
  }

  .landing-page .timeline__visual {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    order: -1;
  }

  .landing-page .timeline__line {
    left: 50%;
    transform: translateX(-50%);
  }

  .landing-page .timeline__visual svg {
    width: 26px;
    height: 26px;
  }

  .landing-page .timeline__content h3 {
    font-size: 1rem;
  }

  .landing-page .timeline__content p {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  /* CTA */
  .landing-page .cta__box {
    padding: 28px 18px;
    border-radius: 14px;
    margin: 0 2px;
  }

  .landing-page .cta__box h2 {
    font-size: clamp(1.25rem, 5.5vw, 1.55rem);
    line-height: 1.3;
  }

  .landing-page .cta__box > p {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .landing-page .cta__buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .landing-page .cta__buttons .btn {
    width: 100%;
    min-height: 48px;
  }

  /* Footer */
  .landing-page .landing-pre-footer {
    padding: 32px 16px 20px;
  }

  .landing-page .footer__funding-cta {
    flex-direction: column;
    align-items: stretch;
    padding: 20px 18px 20px 24px;
    gap: 20px;
  }

  .landing-page .footer__funding-cta__content {
    max-width: none;
    width: 100%;
  }

  .landing-page .footer__funding-cta__text {
    max-width: none;
  }

  .landing-page .footer__funding-cta__btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
    min-height: 48px;
  }

  .landing-page .footer {
    padding: 40px 16px 24px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .landing-page .footer__grid {
    gap: 28px;
    margin-bottom: 24px;
  }

  .landing-page .footer__brand p {
    max-width: none;
    font-size: 0.86rem;
  }

  .landing-page .footer__col h4 {
    font-size: 0.8rem;
    margin-bottom: 12px;
  }

  .landing-page .footer__col a {
    font-size: 0.86rem;
    display: block;
    padding: 4px 0;
    min-height: 32px;
  }

  .landing-page .footer__subscribe {
    padding-top: 4px;
  }

  .landing-page .footer__subscribe h4 {
    color: var(--text);
    margin-bottom: 10px;
  }

  .landing-page .footer__subscribe p {
    color: var(--text-muted);
    margin-bottom: 14px;
  }

  .landing-page .subscribe-form {
    flex-direction: column;
    gap: 10px;
  }

  .landing-page .subscribe-form input,
  .landing-page .subscribe-form .btn {
    width: 100%;
    min-height: 48px;
  }

  .landing-page .subscribe-form .btn--icon {
    width: 100%;
    border-radius: 10px;
  }

  .landing-page .footer__copy {
    font-size: 0.72rem;
    padding-top: 16px;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .landing-page .hero-mobile-card__row {
    grid-template-columns: 1fr;
  }

  .landing-page .hero__stats {
    grid-template-columns: 1fr;
    max-width: 220px;
    gap: 12px;
  }

  .landing-page .hero__stats .stat {
    padding: 10px 8px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
  }

  .landing-page .hero-mockup__row {
    flex-direction: column;
  }

  .landing-page .hero-mockup__card {
    min-height: 60px;
  }

  .landing-page .trust-strip__inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .landing-page .badge {
    font-size: 0.6rem;
    padding: 5px 11px;
  }

  .landing-page .loan-card__badge {
    top: 12px;
    right: 12px;
    font-size: 0.6rem;
  }
}

@media (max-width: 360px) {
  .landing-page .nav {
    width: calc(100% - 12px);
    padding: 0 10px;
  }

  .landing-page .hero__title {
    font-size: 1.65rem;
  }

  .landing-page .hero__canvas .hero-mockup {
    padding: 10px;
    gap: 6px;
  }

  .landing-page .hero-mockup__value {
    font-size: 0.92rem;
  }

  .landing-page .hero-mockup__card {
    padding: 10px 12px;
  }

  .landing-page .section {
    padding: 40px 12px;
  }
}

/* Touch devices — no hover lift */
@media (hover: none) {
  .landing-page .loan-card:hover,
  .landing-page .btn:hover {
    transform: none;
  }
}

/* Mobile nav backdrop */
.landing-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.landing-nav-backdrop.is-visible {
  display: block;
}

body.landing-nav-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}

body.landing-nav-open .landing-page .nav {
  z-index: 1001;
}
