/* Vanzy — mobile UX final polish (overrides; preserves premium look) */

/* Safe area + iPhone notch */
html {
  -webkit-text-size-adjust: 100%;
}

body {
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

.site-header {
  padding-top: env(safe-area-inset-top, 0px);
}

/* Remove app-like bottom nav */
.app-bottom-nav {
  display: none !important;
}

body:not(.page-legal),
body.page-home,
body.page-inner {
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)) !important;
}

body.has-download-banner:not(.banner-dismissed):not(.page-legal) {
  padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
}

@media (max-width: 430px) {
  body.has-download-banner:not(.banner-dismissed):not(.page-legal) {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* Restore header mobile menu (site chrome, not app chrome) */
@media (max-width: 1023px) {
  .menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  .nav-mobile {
    display: none;
  }

  .nav-mobile.open {
    display: block !important;
  }

  .header-cta {
    display: none !important;
  }

  .nav-desktop {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .menu-toggle,
  .nav-mobile {
    display: none !important;
  }
}

/* Dark marketing pages: mobile drawer matches premium glass look */
body:not(.page-legal) .menu-toggle {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

body:not(.page-legal) .menu-toggle span {
  background: #fff;
}

body:not(.page-legal) .nav-mobile {
  background: linear-gradient(180deg, rgba(8, 20, 38, 0.98), rgba(11, 23, 54, 0.98));
  border-top-color: rgba(255, 255, 255, 0.1);
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
}

body:not(.page-legal) .nav-mobile a {
  color: var(--text-secondary, #b8c9e8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body:not(.page-legal) .nav-mobile a.active,
body:not(.page-legal) .nav-mobile a:hover {
  color: #fff;
}

/* Large conversion CTAs — seed blue for WCAG contrast on white text */
.btn-primary,
.home-hero__cta-group .btn-primary,
.home-cta__actions .btn-primary {
  background: #1a56db !important;
  color: #fff !important;
}

.btn-primary:hover,
.home-hero__cta-group .btn-primary:hover {
  background: #1648b8 !important;
}
.home-hero__cta-group {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.home-hero__cta-group .btn,
.home-hero__cta-group .btn-ghost,
.home-hero__cta-group .btn-secondary {
  min-height: 52px;
  width: 100%;
  justify-content: center;
  font-size: 1.02rem;
  font-weight: 700;
  border-radius: 14px;
}

@media (min-width: 640px) {
  .home-hero__cta-group {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .home-hero__cta-group .btn,
  .home-hero__cta-group .btn-ghost,
  .home-hero__cta-group .btn-secondary {
    min-height: 48px;
    font-size: 0.98rem;
  }

  .home-hero__title {
    font-size: clamp(1.65rem, 7.2vw, 2.2rem);
  }

  .home-hero__lead {
    font-size: 0.95rem;
  }
}

@media (min-width: 320px) and (max-width: 359px) {
  .home-hero__inner {
    width: min(100% - 20px, var(--max-w));
  }

  .container {
    padding-inline: 12px;
  }
}

/* Hero screenshot carousel — full shots, fluid swipe, centered */
.app-showcase {
  overflow: visible;
}

.app-showcase__track {
  display: flex;
  gap: clamp(12px, 3vw, 20px);
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  scrollbar-width: none;
  padding: 12px max(16px, calc((100% - min(100%, 1100px)) / 2 + 16px)) 28px;
  justify-content: flex-start;
}

.app-showcase__track::-webkit-scrollbar {
  display: none;
}

.app-shot {
  flex: 0 0 auto;
  width: min(240px, 68vw);
  max-width: 280px;
  scroll-snap-align: center;
  border-radius: 0;
  overflow: visible;
  border: none;
  background: transparent;
  box-shadow: none;
}

.app-shot picture,
.app-shot img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(68vh, 560px);
  margin-inline: auto;
  object-fit: contain;
  object-position: center;
  aspect-ratio: auto;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  background: #0b1736;
}

@media (min-width: 768px) {
  .app-showcase__track {
    justify-content: center;
    padding-inline: 24px;
  }

  .app-shot {
    width: min(220px, 22vw);
  }
}

/* Download banner — reserved space, compact on iPhone, no content cover */
.app-download-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding:
    0
    max(10px, env(safe-area-inset-right, 0px))
    max(8px, env(safe-area-inset-bottom, 0px))
    max(10px, env(safe-area-inset-left, 0px));
  pointer-events: none;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.app-download-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.app-download-banner__inner {
  pointer-events: auto;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, #081426 0%, #1a56db 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(8, 20, 38, 0.32);
  border: 1px solid rgba(142, 197, 255, 0.25);
}

.app-download-banner__inner img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.app-download-banner__text strong {
  font-size: 0.88rem;
  line-height: 1.2;
}

.app-download-banner__text span {
  font-size: 0.72rem;
  line-height: 1.25;
}

.app-download-banner__close {
  width: 28px;
  height: 28px;
  font-size: 1rem;
}

@media (max-width: 430px) {
  .app-download-banner__inner {
    gap: 8px;
    padding: 8px 10px;
    border-radius: 12px;
  }

  .app-download-banner__inner img {
    width: 30px;
    height: 30px;
  }

  .app-download-banner__text span {
    display: none;
  }

  .app-download-banner__text strong {
    font-size: 0.82rem;
  }

  .app-download-banner__actions .btn {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}

@media (min-width: 1100px) {
  .app-download-banner {
    left: auto;
    right: 16px;
    bottom: 16px;
    max-width: 400px;
    padding: 0;
  }
}

body.banner-dismissed .app-download-banner {
  display: none !important;
}

#app-download-banner-spacer {
  width: 100%;
  pointer-events: none;
  flex-shrink: 0;
}

@media (min-width: 1100px) {
  #app-download-banner-spacer {
    display: none;
  }
}

/* Trust + SEO readability on dark surfaces */
.corridor-links a {
  color: #fff;
  background: rgba(77, 163, 255, 0.16);
  border-color: rgba(142, 197, 255, 0.28);
}

.corridor-links a:hover {
  color: #fff;
  background: rgba(77, 163, 255, 0.28);
}

.home-cta__actions {
  gap: 12px;
}

.home-cta__actions .btn {
  min-height: 52px;
  min-width: min(100%, 180px);
  justify-content: center;
}

.footer-col h3 {
  margin: 0 0 12px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: inherit;
}
