/**
 * NIR360 landing — mobile app shell (phones / small tablets).
 * Loaded last so it fully overrides desktop absolute hero layout.
 */

/* Sticky bottom app bar removed — CTAs live in the hero / menu drawer */
.landing-app-bar {
  display: none !important;
}

@media (max-width: 900px) {
  :root {
    --landing-header-offset: 3.75rem;
    --landing-app-bar-h: 4.25rem;
    --landing-section-gap: 2.25rem;
    --app-pad-x: max(1rem, env(safe-area-inset-left, 0px));
    --app-pad-r: max(1rem, env(safe-area-inset-right, 0px));
    --app-radius: 16px;
    --app-surface: #ffffff;
    --app-bg: #eef3f9;
    --app-ink: #0f172a;
    --app-muted: #64748b;
    --app-accent: #2563eb;
  }

  html {
    scroll-padding-top: calc(var(--landing-header-offset) + 0.5rem);
  }

  body.landing-page {
    background: var(--app-bg);
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    padding-bottom: 0;
  }

  /* ── App top bar ── */
  body.landing-page .header {
    position: sticky;
    top: 0;
    z-index: 200;
    padding: 0;
    padding-top: env(safe-area-inset-top, 0px);
    min-height: var(--landing-header-offset);
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  body.landing-page .header.is-scrolled {
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  }

  body.landing-page .header-inner {
    min-height: 3.5rem;
    padding-left: var(--app-pad-x);
    padding-right: var(--app-pad-r);
    max-width: none;
    width: 100%;
    gap: 0.75rem;
  }

  body.landing-page .header .container--wide {
    padding-left: var(--app-pad-x);
    padding-right: var(--app-pad-r);
  }

  body.landing-page .header-brand-logo {
    font-size: 1.05rem;
  }

  body.landing-page .header-toolbar {
    display: flex !important;
    gap: 0.4rem;
    margin-left: auto;
  }

  /* Login moves into drawer with download on phones */
  body.landing-page .header-toolbar-login {
    display: none !important;
  }

  body.landing-page .nav-toggle {
    width: 2.75rem;
    height: 2.75rem;
    min-width: 44px;
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid #dbe3ef;
    background: #f8fafc;
  }

  /* Full-height app drawer — above backdrop; tappable links */
  body.landing-page .nav {
    position: fixed !important;
    top: 0;
    right: 0;
    left: auto;
    width: min(100vw, 22rem);
    max-width: 92vw;
    height: 100vh;
    height: 100dvh;
    margin: 0 !important;
    padding: calc(var(--landing-header-offset) + 0.5rem) 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
    background: #ffffff;
    box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18);
    transform: translateX(105%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 230 !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    pointer-events: none;
  }

  body.nav-open .nav,
  body.landing-page.nav-open .nav {
    transform: translateX(0);
    pointer-events: auto !important;
  }

  body.landing-page.nav-open .header {
    z-index: 220 !important;
  }

  body.landing-page .nav-drawer-top {
    display: flex;
  }

  body.landing-page .header-nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    width: 100%;
  }

  body.landing-page .header-nav-link,
  body.landing-page .header-nav-link-btn {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 52px;
    padding: 0.85rem 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 14px;
    color: var(--app-ink);
    pointer-events: auto;
    touch-action: manipulation;
  }

  body.landing-page .header-nav-link.is-active {
    background: #eff6ff;
    color: var(--app-accent);
  }

  body.landing-page .header-nav-cta-item {
    margin-top: 0.75rem;
  }

  body.landing-page .header-nav-download-item {
    margin-top: 0.5rem;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  body.landing-page .header-download-apk {
    width: 100%;
    max-width: none;
    min-height: 52px;
    padding: 0.7rem 1rem;
    justify-content: flex-start;
  }

  body.landing-page .header-login-beside-download {
    width: 100%;
    min-height: 52px;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    border: 1.5px solid #bfd5f0;
    background: #f8fbff;
    color: #1e3a8a;
    justify-content: center;
  }

  body.landing-page .btn-nav-cta {
    width: 100%;
    min-height: 52px;
    border-radius: 14px;
    font-size: 1.05rem;
  }

  body.landing-page .header-nav-login {
    display: none !important;
  }

  body.landing-page .nav-backdrop {
    z-index: 210 !important;
  }

  /* ── Main content ── */
  body.landing-page .main {
    padding: 0;
    overflow-x: hidden;
  }

  body.landing-page .main > .container,
  body.landing-page .success-box,
  body.landing-page .error-box {
    margin-left: var(--app-pad-x);
    margin-right: var(--app-pad-r);
  }

  /* ── Hero: earthquake cover, white text side ── */
  body.landing-page .hero.hero--cover {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    min-height: min(78vh, 40rem);
    background: #f4f7fb;
    border: none;
    overflow: hidden;
  }

  body.landing-page .hero.hero--cover .hero-cover {
    position: absolute !important;
    inset: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  body.landing-page .hero.hero--cover .hero-cover__img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: 68% center;
    filter: brightness(1.06) saturate(1.02) !important;
  }

  body.landing-page .hero.hero--cover .hero-cover__shade {
    display: block !important;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.24) 12%, rgba(255, 255, 255, 0) 26%),
      linear-gradient(270deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 16%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 24%, rgba(255, 255, 255, 0.1) 100%) !important;
  }

  body.landing-page .hero.hero--cover .hero-inner {
    padding: 3.5rem 0 1.5rem;
    justify-content: center;
    flex: 1 1 auto;
  }

  body.landing-page .hero.hero--cover .container--hero {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    max-width: none !important;
    width: 100% !important;
    min-height: 0 !important;
    padding: 0 var(--app-pad-r) 0 var(--app-pad-x) !important;
    overflow: visible !important;
  }

  body.landing-page .hero.hero--cover .hero-brand {
    position: static !important;
    left: auto !important;
    top: auto !important;
    max-width: 34rem !important;
    width: 100%;
    margin: 0 auto;
    pointer-events: auto !important;
    text-align: center;
    background: none !important;
  }

  body.landing-page .hero.hero--cover .hero-brand-title {
    display: block !important;
    font-size: clamp(2.75rem, 12vw, 3.75rem) !important;
    line-height: 0.95;
    margin: 0 0 0.35rem;
    color: #0b1220 !important;
    text-align: center;
  }

  body.landing-page .hero.hero--cover .hero-brand-title-accent {
    color: #0b1220 !important;
  }

  body.landing-page .hero.hero--cover .hero-brand-tagline {
    margin: 0.55rem auto 0 !important;
    max-width: 22rem !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.01em;
    line-height: 1.4;
    text-align: center;
    text-transform: none;
    font-weight: 600;
    color: #0f172a !important;
  }

  body.landing-page .hero.hero--cover .hero-brand-lead {
    margin: 0.75rem auto 0 !important;
    max-width: 22rem !important;
    font-size: 0.95rem !important;
    line-height: 1.55;
    color: #0f172a !important;
    text-align: center;
    font-weight: 700;
  }

  body.landing-page .hero.hero--cover .hero-brand-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    width: 100%;
    max-width: 22rem;
    margin: 1rem auto 0 !important;
  }

  body.landing-page .hero.hero--cover .hero-cta-primary,
  body.landing-page .hero.hero--cover .hero-cta-login,
  body.landing-page .hero.hero--cover .hero-cta-apk,
  body.landing-page .hero.hero--cover .btn-download-apk {
    display: inline-flex !important;
    width: 100%;
    max-width: none;
    min-height: 48px;
    justify-content: center;
  }

  body.landing-page .hero.hero--cover .hero-cta-login {
    border-color: #64748b !important;
    color: #0f172a !important;
    background: rgba(255, 255, 255, 0.78) !important;
  }

  body.landing-page .hero.hero--cover .hero-scroll-cue {
    display: none !important;
  }

  body.landing-page .hero.hero--cover .hero-emergency-alert {
    margin: 0.75rem var(--app-pad-x) 0.85rem;
    margin-right: var(--app-pad-r);
    padding: 0;
  }

  /* Legacy map/phone collage — unused after cover hero */
  body.landing-page .hero-visual,
  body.landing-page .hero-map-wrap,
  body.landing-page .hero-mockups {
    display: none !important;
  }

  /* ── Highlights as app list rows ── */
  body.landing-page .landing-highlights {
    margin: 1.25rem 0 0;
    padding: 0 var(--app-pad-r) 0 var(--app-pad-x);
  }

  body.landing-page .landing-highlights .container--wide {
    max-width: none;
    padding: 0;
  }

  body.landing-page .landing-highlights-grid {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
  }

  body.landing-page .landing-highlight {
    display: grid;
    grid-template-columns: 2.75rem 1fr;
    grid-template-rows: auto auto;
    column-gap: 0.85rem;
    row-gap: 0.15rem;
    align-items: start;
    padding: 1rem;
    background: var(--app-surface);
    border: 1px solid #e2e8f0;
    border-radius: var(--app-radius);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  }

  body.landing-page .landing-highlight-icon {
    grid-row: 1 / span 2;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: var(--app-accent);
  }

  body.landing-page .landing-highlight-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
  }

  body.landing-page .landing-highlight-desc {
    margin: 0;
    font-size: 0.88rem;
    color: var(--app-muted);
    line-height: 1.45;
  }

  /* ── About / features sections ── */
  body.landing-page .about-nir360,
  body.landing-page .landing-section,
  body.landing-page .landing-cta-band,
  body.landing-page .landing-contact {
    padding: 1.75rem var(--app-pad-r) 1.75rem var(--app-pad-x);
    margin: 0;
  }

  body.landing-page .about-nir360 .container--wide,
  body.landing-page .landing-section .container--wide,
  body.landing-page .landing-cta-band .container--wide,
  body.landing-page .landing-contact .container--wide {
    max-width: none;
    padding: 0;
  }

  body.landing-page .about-intro {
    text-align: left;
    margin-bottom: 1.1rem;
  }

  body.landing-page .about-title,
  body.landing-page .landing-cta-title {
    font-size: clamp(1.4rem, 6.5vw, 1.75rem);
    line-height: 1.2;
  }

  body.landing-page .about-lead,
  body.landing-page .landing-cta-lead {
    font-size: 0.92rem;
    color: var(--app-muted);
  }

  body.landing-page .about-steps-grid,
  body.landing-page .about-features-grid {
    display: flex !important;
    flex-direction: column;
    gap: 0.65rem;
    grid-template-columns: none !important;
  }

  body.landing-page .about-step-card,
  body.landing-page .about-feature-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "num title"
      "icon desc";
    gap: 0.35rem 0.85rem;
    align-items: start;
    padding: 1rem;
    background: var(--app-surface);
    border: 1px solid #e2e8f0;
    border-radius: var(--app-radius);
    box-shadow: none;
    list-style: none;
  }

  body.landing-page .about-feature-card {
    grid-template-areas:
      "icon title"
      "icon desc";
  }

  body.landing-page .about-step-num {
    grid-area: num;
    width: 1.75rem;
    height: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--app-accent);
    font-size: 0.8rem;
    font-weight: 800;
  }

  body.landing-page .about-step-card .about-card-icon {
    grid-area: icon;
    margin-top: 0.15rem;
  }

  body.landing-page .about-feature-card .about-card-icon {
    grid-area: icon;
  }

  body.landing-page .about-card-title {
    grid-area: title;
    margin: 0;
    font-size: 1rem;
  }

  body.landing-page .about-card-desc {
    grid-area: desc;
    margin: 0;
    font-size: 0.88rem;
    color: var(--app-muted);
  }

  body.landing-page .about-step-card:hover,
  body.landing-page .about-feature-card:hover {
    transform: none;
  }

  body.landing-page .about-mission {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1.25rem;
    padding: 1.15rem;
    border-radius: var(--app-radius);
    background: var(--app-surface);
    border: 1px solid #e2e8f0;
  }

  body.landing-page .about-mission-media {
    width: auto;
  }

  body.landing-page .about-mission-title {
    font-size: 1.2rem;
  }

  body.landing-page .about-mission-text {
    font-size: 0.9rem;
    color: var(--app-muted);
  }

  body.landing-page .landing-cta-band {
    background: #0f2740;
    color: #fff;
    border-radius: 0;
  }

  body.landing-page .landing-cta-band__inner {
    text-align: left;
  }

  body.landing-page .landing-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
    max-width: none;
  }

  body.landing-page .landing-cta-actions .btn,
  body.landing-page .landing-cta-download {
    width: 100%;
    min-height: 52px;
    border-radius: 14px;
    justify-content: center;
  }

  body.landing-page .landing-contact-grid {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
  }

  body.landing-page .landing-contact-card {
    padding: 1rem;
    background: var(--app-surface);
    border: 1px solid #e2e8f0;
    border-radius: var(--app-radius);
  }

  body.landing-page .landing-contact-card a[href^="tel:"] {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--app-accent);
  }

  /* ── Sticky bottom app bar ── */
  .landing-app-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 190;
    gap: 0.65rem;
    align-items: center;
    padding: 0.65rem var(--app-pad-r) calc(0.65rem + env(safe-area-inset-bottom, 0px)) var(--app-pad-x);
    min-height: var(--landing-app-bar-h);
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .landing-app-bar__login,
  .landing-app-bar__start {
    flex: 1 1 0;
    min-height: 48px;
    border-radius: 14px;
    font-size: 0.98rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .landing-app-bar__login {
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #dbe3ef;
  }

  .landing-app-bar__start {
    background: var(--app-accent);
    color: #fff;
    border: none;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
  }

  body.nav-open .landing-app-bar {
    opacity: 0;
    pointer-events: none;
    transform: translateY(100%);
  }

  /* Hide CTA band duplicate primary when app bar is present */
  body.landing-page .landing-cta-actions .btn-primary,
  body.landing-page .landing-cta-actions .btn-ghost {
    display: none;
  }

  /* ── Auth modals (login / register / privacy) — centered card ── */
  body.landing-page .main .modal {
    padding: max(1rem, env(safe-area-inset-top, 0px)) 1rem max(1rem, env(safe-area-inset-bottom, 0px)) !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 320 !important;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  body.landing-page .main .modal-backdrop {
    z-index: 0;
  }

  body.landing-page .main .modal-box--login,
  body.landing-page .main .modal-box--register,
  body.landing-page .main .modal-box--privacy {
    position: relative;
    z-index: 1;
    width: 100% !important;
    max-width: min(100%, 26.25rem) !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: min(92vh, 100dvh) !important;
    margin: 0 auto !important;
    border-radius: 0.25rem !important;
    overflow: hidden !important;
    overflow-x: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
  }

  body.landing-page .main .modal-box--login {
    border-color: #dddbda !important;
    box-shadow: 0 8px 24px rgba(8, 7, 7, 0.12) !important;
  }

  body.landing-page .login-modal-header {
    background: #f3f3f3;
  }

  body.landing-page .btn-login-submit {
    min-height: 2.5rem;
    border-radius: 0.25rem !important;
    box-shadow: none !important;
  }

  body.landing-page .main .modal-box--privacy {
    max-height: min(94vh, 100dvh) !important;
  }

  body.landing-page .privacy-policy-scroll {
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  body.landing-page .privacy-consent-bar {
    flex-shrink: 0;
  }

  body.landing-page .privacy-consent-actions {
    flex-direction: column !important;
    gap: 0.5rem;
  }

  body.landing-page .privacy-btn {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 48px;
    white-space: normal !important;
  }

  body.landing-page .main .modal-box--login {
    max-height: min(90vh, 100dvh) !important;
  }

  body.landing-page .login-modal-header,
  body.landing-page .reg-modal-header,
  body.landing-page .privacy-modal-header {
    flex-shrink: 0;
  }

  body.landing-page .main .modal-box--login .login-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;
  }

  body.landing-page .login-form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
  }

  body.landing-page .login-form-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 1rem 1.1rem 0.35rem;
  }

  body.landing-page .login-form-actions {
    flex-shrink: 0;
    padding: 0.75rem 1.1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #e8eef6;
    background: #fff;
    box-shadow: 0 -6px 16px rgba(15, 23, 42, 0.06);
  }

  /* Keep focused inputs visible when the mobile keyboard opens */
  body.landing-page.nir360-keyboard-open .main .modal-box--login,
  body.landing-page.nir360-keyboard-open .main .modal-box--register,
  body.landing-page.nir360-keyboard-open .main .modal-box--privacy {
    max-height: var(--nir360-vvh, 70vh) !important;
  }

  body.landing-page .login-modal-subtitle {
    font-size: 0.82rem;
  }

  body.landing-page .login-recaptcha-wrap,
  body.landing-page .nir360-recaptcha-wrap {
    display: flex;
    justify-content: center;
    margin: 0.25rem 0 0.75rem;
    min-height: 68px;
  }

  body.landing-page .login-recaptcha-wrap .g-recaptcha,
  body.landing-page .nir360-recaptcha-wrap .g-recaptcha {
    transform: scale(0.9);
    transform-origin: center top;
  }

  body.landing-page .login-input-wrap input,
  body.landing-page .reg-input-wrap input,
  body.landing-page .reg-input-wrap select,
  body.landing-page .reg-form .form-group input,
  body.landing-page .reg-form .form-group select,
  body.landing-page .reg-form .form-group textarea,
  body.landing-page .main .modal-body input,
  body.landing-page .main .modal-body select,
  body.landing-page .main .modal-body textarea {
    font-size: 16px !important;
    min-height: 48px;
  }

  body.landing-page .btn-login-submit,
  body.landing-page .reg-wizard-nav .btn,
  body.landing-page #reg-submit-btn {
    min-height: 52px;
    border-radius: 14px;
    width: 100%;
  }

  body.landing-page .main .modal-box--register .modal-body,
  body.landing-page .reg-form-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.landing-page .reg-wizard-footer {
    flex-shrink: 0;
    padding-bottom: calc(0.7rem + env(safe-area-inset-bottom, 0px));
  }

  body.landing-page .reg-form-grid,
  body.landing-page .reg-form-grid--2,
  body.landing-page .reg-form-grid--3,
  body.landing-page .reg-form-grid--4,
  body.landing-page .reg-form-grid--id {
    grid-template-columns: 1fr !important;
  }

  body.landing-page .reg-step-label {
    display: none;
  }

  /* Keep bottom app bar under auth overlays */
  body.landing-page:has(.main .modal.is-open) .landing-app-bar {
    opacity: 0;
    pointer-events: none;
    transform: translateY(100%);
  }
}

/* Extra-small phones */
@media (max-width: 380px) {
  :root {
    --landing-app-bar-h: 4rem;
  }

  body.landing-page .hero-brand-title {
    font-size: 2.35rem !important;
  }

  body.landing-page .hero-mockups {
    width: min(52vw, 170px) !important;
  }

  .landing-app-bar__login,
  .landing-app-bar__start {
    font-size: 0.9rem;
    min-height: 46px;
  }
}

/* Landscape phones: keep content usable */
@media (max-width: 900px) and (max-height: 480px) and (orientation: landscape) {
  body.landing-page .hero-map-wrap {
    aspect-ratio: 21 / 9;
    max-height: 42vh;
    max-height: 42dvh;
  }

  body.landing-page .hero-mockups {
    display: none !important;
  }

  .landing-app-bar {
    padding-top: 0.45rem;
    padding-bottom: calc(0.45rem + env(safe-area-inset-bottom, 0px));
  }
}

/* ── Cross-browser responsive hardening (Chrome / Edge / Firefox) ── */
html {
  -moz-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.landing-page,
body.landing-page .main,
body.landing-page .hero,
body.landing-page .hero-inner,
body.landing-page .container--hero,
body.landing-page .hero-visual,
body.landing-page .hero-brand,
body.landing-page .hero-brand-actions,
body.landing-page .landing-highlights-grid,
body.landing-page .about-steps-grid,
body.landing-page .about-features-grid,
body.landing-page .landing-contact-grid {
  min-width: 0;
}

body.landing-page img,
body.landing-page video {
  max-width: 100%;
  height: auto;
}

body.landing-page .reg-input-wrap--select select,
body.landing-page select {
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
}

/* Firefox: prevent flex/grid children from forcing horizontal scroll */
@-moz-document url-prefix() {
  body.landing-page .container--hero,
  body.landing-page .hero-visual,
  body.landing-page .main .modal-box,
  body.landing-page .reg-form-scroll,
  body.landing-page .login-form-scroll {
    min-width: 0;
  }

  body.landing-page .main .modal-box--register,
  body.landing-page .main .modal-box--login {
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  body.landing-page .hero-brand-actions > *,
  body.landing-page .landing-cta-actions > * {
    max-width: 100%;
  }

  body.landing-page .nav {
    width: min(100%, 22rem);
    max-width: 100vw;
  }

  body.landing-page .main .modal {
    -webkit-overflow-scrolling: touch;
  }

  body.landing-page .main .modal-box,
  body.landing-page .main .modal-box--login,
  body.landing-page .main .modal-box--register,
  body.landing-page .main .modal-box--privacy {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 640px) {
  body.landing-page .container,
  body.landing-page .container--wide,
  body.landing-page .container--hero {
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
  }

  body.landing-page .hero-map-wrap,
  body.landing-page .hero-mockups {
    max-width: 100%;
  }
}

