/* Mobile-only UI layer for the main website experience. */

.mobile-bottom-nav {
  display: none;
}

.mobile-pricing-cards {
  display: none;
}

@media (max-width: 930px) {
  html {
    font-size: 15px;
  }

  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  main {
    padding-top: 64px;
  }

  .top-nav {
    backdrop-filter: blur(10px);
  }

  .nav-inner {
    min-height: 64px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    align-items: center;
  }

  .top-nav .nav-links,
  .mobile-toggle {
    display: none !important;
  }

  .brand {
    min-width: 0;
    font-size: 0.96rem;
  }

  .theme-toggle {
    min-width: 42px;
    min-height: 36px;
  }

  section {
    padding: 3.25rem 0;
  }

  .hero {
    padding-top: 3.6rem;
  }

  h1 {
    font-size: clamp(1.65rem, 8vw, 2.3rem);
  }

  h2 {
    font-size: clamp(1.35rem, 6vw, 1.75rem);
  }

  h3 {
    font-size: 1.08rem;
  }

  .subtitle {
    font-size: 0.98rem;
  }

  .container {
    width: min(1120px, 94vw);
  }

  .surface,
  .hero-card,
  .feature-card,
  .problem-card,
  .product-card,
  .trust-card,
  .plan-card,
  .legal-card,
  .info-card {
    border-radius: 14px;
  }

  .hero-card,
  .feature-card,
  .problem-card,
  .product-card,
  .trust-card,
  .plan-card,
  .legal-card,
  .info-card {
    padding: 1rem;
  }

  .actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .actions .btn {
    width: 100%;
  }

  .btn,
  input,
  select,
  textarea,
  .pill {
    min-height: 44px;
  }

  .btn {
    font-size: 0.95rem;
  }

  .field {
    gap: 0.4rem;
    margin-bottom: 0.95rem;
  }

  .footer-inner {
    min-height: auto;
    padding: 1rem 0 1.2rem;
  }

  .footer-links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.7rem 1rem;
  }

  .mock-ui .btn {
    width: 100%;
    justify-self: stretch;
  }

  .quote-panel {
    z-index: 320;
    padding: 0.5rem 0.5rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
  }

  .quote-panel-inner {
    max-height: calc(100dvh - 1rem - env(safe-area-inset-bottom, 0px));
    padding: 1rem;
  }

  body.quote-panel-open {
    padding-bottom: 0;
  }

  body.quote-panel-open .mobile-bottom-nav {
    display: none;
  }

  .cal-embed {
    min-height: 500px;
  }

  .desktop-pricing-matrix {
    display: none;
  }

  .mobile-pricing-cards {
    display: grid;
    gap: 0.9rem;
    margin-top: 1rem;
  }

  .mobile-plan-card {
    padding: 1rem;
    display: grid;
    gap: 0.7rem;
  }

  .mobile-plan-card-featured {
    position: relative;
    border-color: rgba(247, 85, 144, 0.5);
    background:
      linear-gradient(180deg, rgba(247, 85, 144, 0.06), rgba(255, 255, 255, 0.94)),
      var(--surface);
    box-shadow:
      0 18px 36px rgba(247, 85, 144, 0.14),
      0 0 0 1px rgba(247, 85, 144, 0.08) inset;
  }

  .mobile-plan-card-featured::before {
    content: "Recommended";
    justify-self: start;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.28rem 0.7rem;
    background: rgba(247, 85, 144, 0.14);
    color: var(--brand);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .mobile-plan-card-featured .mobile-plan-price-grid {
    border-color: rgba(247, 85, 144, 0.35);
    background: rgba(247, 85, 144, 0.08);
  }

  [data-theme="dark"] .mobile-plan-card-featured {
    border-color: rgba(247, 85, 144, 0.62);
    background:
      linear-gradient(180deg, rgba(247, 85, 144, 0.12), rgba(23, 50, 80, 0.96)),
      var(--surface);
    box-shadow:
      0 18px 40px rgba(4, 12, 28, 0.34),
      0 0 0 1px rgba(247, 85, 144, 0.12) inset;
  }

  [data-theme="dark"] .mobile-plan-card-featured .mobile-plan-price-grid {
    border-color: rgba(247, 85, 144, 0.42);
    background: rgba(247, 85, 144, 0.12);
  }

  .mobile-plan-card h3 {
    margin: 0;
    font-size: 1.24rem;
  }

  .mobile-plan-price-grid {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(160, 210, 219, 0.12);
    padding: 0.7rem 0.8rem;
    display: grid;
    gap: 0.35rem;
  }

  .mobile-plan-price-grid p {
    margin: 0;
    font-size: 0.92rem;
  }

  .mobile-plan-list {
    margin: 0;
    padding-left: 1rem;
    display: grid;
    gap: 0.34rem;
  }

  .mobile-plan-footnote {
    margin: 0;
  }

  #ppo .ppo-offers-grid {
    gap: 1rem;
  }

  #ppo .ppo-offers-grid > .product-card {
    display: grid;
    gap: 0.7rem;
    align-content: start;
    padding: 1.05rem;
  }

  #ppo .ppo-offers-grid .price {
    font-size: 1.72rem;
    margin: 0.3rem 0;
  }

  #ppo .ppo-offers-grid .flow {
    margin: 0;
    padding-left: 1.1rem;
  }

  #ppo .ppo-offers-grid .field {
    margin-bottom: 0.45rem;
  }

  #ppo .ppo-offers-grid .btn,
  #ppo .ppo-offers-grid .actions,
  #ppo .ppo-offers-grid .actions .btn,
  #ppo .ppo-offers-grid #unlock-btn,
  #ppo .ppo-offers-grid #expert-download-wrap .btn {
    width: 100%;
  }

  #ppo .ppo-offers-grid .actions {
    margin-top: 0.15rem;
  }

  #ppo .ppo-edition-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  #ppo .ppo-tab {
    justify-content: center;
    padding: 0.55rem 0.55rem;
  }

  #ppo .ppo-stage {
    gap: 0.35rem;
  }

  #ppo .ppo-slideshow-footer {
    gap: 0.55rem;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 140;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    gap: 0;
    padding: 0.45rem 0.4rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid rgba(160, 210, 219, 0.7);
    backdrop-filter: blur(12px);
    box-shadow: 0 -6px 18px rgba(89, 65, 87, 0.12);
  }

  [data-theme="dark"] .mobile-bottom-nav {
    background: rgba(12, 27, 45, 0.96);
    border-top-color: rgba(120, 166, 245, 0.28);
    box-shadow: 0 -6px 18px rgba(2, 10, 22, 0.48);
  }

  .mobile-bottom-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: color 0.18s ease, background 0.18s ease;
  }

  .mobile-bottom-nav-link:hover,
  .mobile-bottom-nav-link:focus-visible {
    color: var(--brand);
    background: rgba(247, 85, 144, 0.12);
    outline: none;
  }

  .mobile-bottom-nav-link.is-active,
  .mobile-bottom-nav-link[aria-current="page"] {
    color: var(--brand);
    background: rgba(247, 85, 144, 0.14);
  }
}

@media (max-width: 540px) {
  .container {
    width: min(1120px, 95vw);
  }

  .hero {
    padding-top: 3.2rem;
  }

  .mobile-bottom-nav-link {
    font-size: 0.75rem;
  }

  .price {
    font-size: 1.7rem;
  }

  .pt-setup {
    font-size: 1.5rem;
  }
}
