/**
 * NOBTI home page (index.php) — mobile layout polish only.
 */

:root {
    --nobti-home-nav-clearance: calc(112px + env(safe-area-inset-bottom, 0px) + 36px);
}

@media (max-width: 768px) {
  .landing-page.nobti-home-page {
    width: min(100%, 100%);
    padding: 14px 12px var(--nobti-home-nav-clearance) !important;
    margin: 0 auto;
  }

  /* Bottom nav clearance (override generic polish where needed) */
  body:has(.nobti-home-page) main.landing-page {
    padding-bottom: var(--nobti-home-nav-clearance) !important;
  }

  /* —— Hero —— */
  .nobti-home-page .landing-hero {
    grid-template-columns: 1fr;
    padding: 18px 16px 16px;
    border-radius: 24px;
    gap: 14px;
    margin-bottom: 14px;
  }

  .nobti-home-page .landing-kicker {
    font-size: 0.78rem;
    padding: 6px 11px;
    margin-bottom: 10px;
  }

  .nobti-home-page .landing-hero h1 {
    font-size: clamp(1.65rem, 7vw, 2rem);
    line-height: 1.12;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
  }

  .nobti-home-page .landing-hero p {
    font-size: 0.9rem;
    line-height: 1.62;
    margin-bottom: 14px;
    font-weight: 700;
  }

  /* Phone mockup: smaller, below copy */
  .nobti-home-page .phone-preview {
    width: min(260px, 88vw);
    margin: 4px auto 0;
    padding: 10px;
    border-radius: 28px;
    transform: none;
    order: 2;
  }

  .nobti-home-page .landing-hero > div:first-child {
    order: 1;
  }

  .nobti-home-page .phone-screen {
    min-height: 300px;
    border-radius: 20px;
  }

  .nobti-home-page .phone-card {
    padding: 11px;
    margin-bottom: 8px;
    border-radius: 16px;
  }

  .nobti-home-page .phone-card h3 {
    font-size: 0.9rem;
  }

  .nobti-home-page .phone-card p {
    font-size: 0.78rem;
  }

  /* —— CTAs —— */
  .nobti-home-page .landing-actions--stacked {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
  }

  .nobti-home-page .landing-cta-primary,
  .nobti-home-page .landing-cta-report {
    grid-column: 1 / -1;
  }

  .nobti-home-page .landing-actions .btn {
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    font-size: 0.9rem;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  }

  .nobti-home-page .landing-cta-report {
    padding: 11px 14px;
  }

  /* Trust + growth chips */
  .nobti-home-page .landing-trust-note {
    gap: 6px;
    font-size: 0.8rem;
    margin-bottom: 8px;
  }

  .nobti-home-page .landing-trust-note span {
    padding: 6px 10px;
    font-size: 0.78rem;
  }

  .nobti-home-page .nobti-growth-strip {
    gap: 6px;
    margin-top: 8px;
  }

  .nobti-home-page .nobti-growth-pill {
    font-size: 0.74rem;
    padding: 6px 10px;
  }

  /* —— Stats: compact 2-column —— */
  .nobti-home-page .landing-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
  }

  .nobti-home-page .landing-stat {
    padding: 12px 14px;
    border-radius: 18px;
  }

  .nobti-home-page .landing-stat span {
    font-size: 0.78rem;
    margin-bottom: 4px;
  }

  .nobti-home-page .landing-stat strong {
    font-size: 1.55rem;
  }

  /* —— Quick links: 2-column compact —— */
  .nobti-home-page .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
  }

  .nobti-home-page .quick-card {
    padding: 14px 12px;
    border-radius: 18px;
  }

  .nobti-home-page .quick-icon {
    width: 42px;
    height: 42px;
    font-size: 1.25rem;
    margin-bottom: 8px;
    border-radius: 14px;
  }

  .nobti-home-page .quick-card h3 {
    font-size: 0.95rem;
    margin-bottom: 4px;
  }

  .nobti-home-page .quick-card p {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  /* —— Feature + step cards —— */
  .nobti-home-page .landing-section {
    margin-bottom: 14px;
  }

  .nobti-home-page .section-head {
    margin-bottom: 12px;
  }

  .nobti-home-page .section-head h2 {
    font-size: 1.35rem;
    margin-bottom: 6px;
  }

  .nobti-home-page .section-head p {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .nobti-home-page .section-pill {
    font-size: 0.78rem;
    padding: 6px 11px;
    margin-bottom: 8px;
  }

  .nobti-home-page .features-grid,
  .nobti-home-page .steps-grid {
    gap: 10px;
  }

  .nobti-home-page .feature-card,
  .nobti-home-page .step-card,
  .nobti-home-page .home-live-panel {
    padding: 14px 14px;
    border-radius: 18px;
  }

  .nobti-home-page .feature-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    margin-bottom: 8px;
    border-radius: 14px;
  }

  .nobti-home-page .feature-card h3,
  .nobti-home-page .step-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .nobti-home-page .feature-card p,
  .nobti-home-page .step-card p {
    font-size: 0.84rem;
    line-height: 1.55;
  }

  .nobti-home-page .step-number {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
    margin-bottom: 8px;
    border-radius: 12px;
  }

  .nobti-home-page .home-live-grid {
    gap: 10px;
    margin-bottom: 14px;
  }

  .nobti-home-page .home-live-item {
    padding: 10px;
    border-radius: 14px;
    margin-bottom: 8px;
  }

  .nobti-home-page .install-banner {
    padding: 18px 16px;
    border-radius: 20px;
    margin-bottom: 8px;
  }

  .nobti-home-page .install-banner h2 {
    font-size: 1.15rem;
  }

  .nobti-home-page .install-banner p {
    font-size: 0.86rem;
    line-height: 1.55;
  }

  /* —— Floating bell: top-right, not over cards —— */
  body:has(.nobti-home-page) .nobti-notif-float {
    top: calc(env(safe-area-inset-top, 0px) + 56px) !important;
    left: auto !important;
    right: 12px !important;
    z-index: 2400 !important;
  }

  body:has(.nobti-home-page) .nobti-notif-panel {
    top: calc(env(safe-area-inset-top, 0px) + 108px) !important;
    left: 12px !important;
    right: 12px !important;
  }

  /* —— Scroll to top: above nav, smaller —— */
  body:has(.nobti-home-page) .nobti-back-to-top {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    left: 12px !important;
    right: auto !important;
    bottom: calc(112px + env(safe-area-inset-bottom, 0px) + 10px) !important;
    z-index: 2550 !important;
    font-size: 1.15rem !important;
    box-shadow: 0 10px 24px rgba(29, 78, 216, 0.22) !important;
  }

  body:has(.nobti-home-page) .nobti-back-to-top:not(.is-visible) {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(8px);
  }
}

@media (max-width: 420px) {
  .nobti-home-page .quick-grid {
    grid-template-columns: 1fr;
  }

  .nobti-home-page .landing-trust-note span:nth-child(3) {
    display: none;
  }

  .nobti-home-page .nobti-growth-pill:nth-child(3) {
    display: none;
  }
}
