/* ============================================================
   Your Growdesk — Mobile polish
   Phone-first: readable, breathable, brand-forward, no clutter
   ============================================================ */

@media (max-width: 940px) {
  :root {
    --nav-h: 58px;
  }

  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

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

  /* Sticky header — compact, language always visible */
  .top {
    background: rgba(3, 16, 26, 0.92);
  }
  .nav {
    height: var(--nav-h);
    gap: 10px;
  }
  .brand {
    font-size: 16.5px;
    gap: 8px;
    min-width: 0;
  }
  .brand .mark {
    height: 18px;
    flex: none;
  }
  .nav-actions {
    gap: 6px !important;
    margin-left: auto;
  }
  .nav-actions .btn {
    display: none !important;
  }
  .menu-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border-color: rgba(144, 255, 108, 0.28);
    background: rgba(144, 255, 108, 0.06);
  }
  .lang-switch {
    margin-right: 0 !important;
  }
  .lang-switch__btn {
    height: 40px !important;
    padding: 0 11px 0 9px !important;
    border-radius: 12px !important;
    border-color: rgba(144, 255, 108, 0.55) !important;
  }
  .lang-switch__menu {
    right: 0;
    left: auto;
    min-width: min(240px, calc(100vw - 28px));
    z-index: 80;
  }

  .mobile-menu.open {
    display: grid;
    gap: 2px;
    padding: 8px 0 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    animation: tgd-menu-in 0.28s ease;
  }
  .mobile-menu a {
    padding: 14px 2px;
    font-size: 17px;
    letter-spacing: -0.02em;
  }
  .mobile-menu .btn {
    margin-top: 14px;
    width: 100%;
    justify-content: center;
    min-height: 48px;
    border-radius: 14px;
  }

  /* Sections breathe on phone */
  .sec {
    padding-block: 56px;
  }
  .sec.tight {
    padding-block: 40px;
  }
  .sec-head {
    margin-bottom: 22px;
    align-items: flex-start;
  }
  .sec-head h2 {
    font-size: clamp(26px, 7.2vw, 34px);
    letter-spacing: -0.04em;
    line-height: 1.12;
  }
  .sec-head p {
    font-size: 15.5px;
    margin-top: 10px;
  }

  /* Hero — one clear composition */
  .hero {
    min-height: auto;
  }
  .hero-grid {
    padding-block: 28px 36px !important;
    gap: 28px !important;
  }
  .hero h1 {
    font-size: clamp(32px, 9vw, 42px) !important;
    margin: 14px 0 12px !important;
    line-height: 1.05;
  }
  .hero .lead {
    font-size: 15.5px;
    line-height: 1.55;
    max-width: none;
  }
  .hero-checks {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px 12px !important;
    margin: 18px 0 20px !important;
    font-size: 13px !important;
  }
  .hero-checks span {
    white-space: normal;
    background: rgba(144, 255, 108, 0.06);
    border: 1px solid rgba(144, 255, 108, 0.14);
    border-radius: 999px;
    padding: 7px 10px;
  }
  .cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .cta-row .btn {
    width: 100%;
    justify-content: center;
    min-height: 50px;
    border-radius: 14px;
    font-size: 15.5px;
  }
  .hero-micro {
    display: grid;
    gap: 8px;
    margin-top: 16px;
  }
  .hero-micro span {
    font-size: 13px;
  }
  .lang-cue {
    font-size: 12.5px;
    margin-top: 10px;
  }
  .scan-link {
    display: inline-flex;
    margin-top: 12px;
    font-size: 13.5px;
  }

  /* Device mock — phone first, laptop scaled */
  .devices {
    padding: 0 0 8px !important;
    transform: none;
  }
  .laptop {
    margin-right: 0 !important;
    transform: scale(0.98);
    transform-origin: top center;
  }
  .laptop .screen {
    border-width: 8px;
    border-bottom-width: 10px;
    border-radius: 14px 14px 4px 4px;
  }
  .phone,
  .phones .phone.front {
    width: min(200px, 52vw) !important;
    margin: -90px 0 0 auto !important;
    position: relative !important;
  }
  .phones .phone.back {
    display: none;
  }

  /* Video block */
  .vid-block,
  .vid-grid {
    gap: 18px;
  }
  .vid-frame,
  .vid-frame--auto {
    border-radius: 18px;
    overflow: hidden;
  }
  .vid-sound {
    right: 10px;
    bottom: 10px;
    padding: 10px 12px;
    font-size: 11px;
  }

  /* Bestsellers */
  .bestsellers .best-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .best-card {
    border-radius: 18px;
  }
  .best-body {
    padding: 16px;
  }
  .best-body h3 {
    font-size: 20px;
  }
  .best-foot {
    flex-wrap: wrap;
  }
  .best-foot .btn {
    width: 100%;
    justify-content: center;
  }

  /* Grids collapse cleanly */
  .pkg-grid,
  .branch-grid,
  .ex-grid,
  .plans,
  .values,
  .stat-row,
  .steps {
    gap: 12px;
  }
  .versus {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }
  .versus .vs-mid {
    justify-self: center;
  }

  /* Forms / demo */
  .form-grid,
  .fields {
    grid-template-columns: 1fr !important;
  }
  input,
  textarea,
  select,
  .combo-opt {
    font-size: 16px !important; /* iOS zoom prevent */
  }
  .combo-upsell {
    padding: 14px;
    border-radius: 16px;
  }

  /* Footer */
  .foot-grid {
    grid-template-columns: 1fr !important;
    gap: 28px;
  }
  .foot-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 12.5px;
  }

  /* Floating CTA — replace cluttered FAB on phone */
  .fab {
    left: 12px !important;
    right: 12px !important;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    display: grid !important;
    grid-template-columns: 1fr 1.25fr;
    gap: 8px;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
  }
  .fab a {
    min-height: 48px;
    border-radius: 14px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 13.5px !important;
    padding: 0 12px !important;
    box-shadow: 0 14px 34px -16px rgba(0, 0, 0, 0.75);
  }
  .fab-save {
    background: rgba(8, 28, 34, 0.92) !important;
    border: 1px solid rgba(144, 255, 108, 0.35) !important;
    color: #e8fff0 !important;
  }
  .tgd-lang-switch {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    right: 10px !important;
    transform: scale(0.92);
    transform-origin: bottom right;
  }

  /* Page heroes */
  .phero {
    padding-block: 42px 36px !important;
  }
  .phero h1 {
    font-size: clamp(30px, 8.5vw, 40px) !important;
  }
  .bhero {
    min-height: 420px;
  }
  .bhero-grid {
    padding-block: 48px 36px !important;
  }

  /* Thank-you / success */
  .tgd-success {
    padding: 96px 16px 80px !important;
  }
  .tgd-success h1 {
    font-size: clamp(34px, 9vw, 48px) !important;
  }
  .slingers,
  .slingers--feest {
    top: 52px !important;
    height: 96px !important;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 30px !important;
  }
  .hero-checks {
    grid-template-columns: 1fr !important;
  }
  .brand {
    font-size: 15px;
  }
  .lang-switch__code {
    /* keep code visible */
  }
}

/* Soft entrance for mobile menu */
@keyframes tgd-menu-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .mobile-menu.open {
    animation: none;
  }
}

/* Touch targets */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .menu-btn,
  .lang-switch__btn,
  .combo-opt,
  .mobile-menu a {
    min-height: 44px;
  }
  a,
  button {
    -webkit-tap-highlight-color: rgba(144, 255, 108, 0.18);
  }
}
