/* Reply landing — MAX mobile polish (phones & small tablets) */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  overflow-x: clip;
  -webkit-tap-highlight-color: rgba(232, 79, 58, 0.12);
}
a, button, .btn, summary {
  touch-action: manipulation;
}

/* ---------- ≤ 900px: tablet / large phone ---------- */
@media (max-width: 900px) {
  .wrap {
    width: min(100% - 32px, var(--max));
  }
  .topnav {
    position: sticky;
    top: 0;
    padding-top: env(safe-area-inset-top, 0);
  }
  .topnav__inner {
    min-height: 52px;
    gap: 8px;
  }
  .brand img {
    width: 32px !important;
    height: 32px !important;
    border-radius: 9px;
  }
  .brand span { font-size: 1.05rem; }
  .nav-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
  }
  .nav-links { display: none !important; }
  .topnav__actions { gap: 6px; }
  .topnav__actions .btn-ghost { display: none; }
  .topnav__actions .btn-primary {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.84rem;
  }

  .nav-drawer {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    padding: 10px 16px calc(14px + env(safe-area-inset-bottom, 0));
    background: rgba(255, 248, 244, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(26, 20, 18, 0.1);
    z-index: 50;
  }
  .topnav.is-open .nav-drawer {
    display: grid;
    gap: 2px;
  }
  .nav-drawer a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 650;
    text-decoration: none;
    color: var(--ink);
  }
  .nav-drawer a:active { background: rgba(255, 107, 87, 0.1); }
  .nav-drawer__login {
    margin-top: 8px;
    justify-content: center;
    border: 1px solid var(--line);
    font-weight: 700;
  }

  section {
    padding: 44px 0;
  }
  .section-kicker {
    font-size: 0.7rem;
    margin-bottom: 8px;
  }
  .section-title {
    max-width: none;
    font-size: clamp(1.55rem, 6.5vw, 2.15rem);
    line-height: 1.12;
    margin-bottom: 10px;
  }
  .section-lead {
    font-size: 0.98rem;
    line-height: 1.5;
    max-width: none;
    margin-bottom: 22px;
  }

  .btn {
    min-height: 50px;
    padding: 0 18px;
    font-size: 0.95rem;
  }
  .btn:hover { transform: none; }

  .audience-list li {
    gap: 12px;
    padding: 16px 0;
  }
  .audience-list strong {
    font-size: 1.08rem;
    line-height: 1.25;
  }
  .audience-list p {
    font-size: 0.92rem;
    line-height: 1.45;
  }
  .audience-num {
    font-size: 1rem;
    padding-top: 2px;
  }

  .ai-plus__grid { gap: 20px; }
  .ai-points { gap: 12px; }
  .ai-points li {
    grid-template-columns: 22px 1fr;
    gap: 10px;
    font-size: 0.95rem;
    line-height: 1.45;
  }
  .ai-badge {
    padding: 20px 18px;
    border-radius: 18px;
  }
  .ai-badge h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
  }
  .ai-badge p { font-size: 0.92rem; }

  .steps { gap: 18px; }
  .steps li::before {
    font-size: 1.85rem;
    margin-bottom: 6px;
  }
  .steps h3 {
    font-size: 1.12rem;
    margin-bottom: 6px;
  }
  .steps p { font-size: 0.92rem; line-height: 1.45; }

  .feature-row {
    grid-template-columns: 1fr !important;
    gap: 6px;
    padding: 18px 0;
  }
  .feature-row h3 {
    font-size: 1.15rem;
    line-height: 1.25;
  }
  .feature-row p {
    font-size: 0.94rem;
    line-height: 1.45;
  }

  .growth-note {
    padding: 18px;
    gap: 12px;
    border-radius: 16px;
  }
  .growth-note h3 { font-size: 1.15rem; }
  .growth-note p { font-size: 0.92rem; }

  .faq details { padding: 14px 0; }
  .faq summary {
    font-size: 0.98rem;
    line-height: 1.35;
    min-height: 48px;
    align-items: center;
    gap: 12px;
  }
  .faq details p {
    font-size: 0.92rem;
    line-height: 1.5;
    margin-top: 10px;
  }

  .cta-band__inner { gap: 22px; }
  .lead-form { gap: 10px; }
  .lead-form label {
    font-size: 0.68rem;
    margin-bottom: 6px;
    display: block;
  }
  .lead-form > div { display: grid; gap: 6px; }
  .lead-form input,
  .lead-form textarea {
    width: 100%;
    min-height: 52px;
    font-size: 16px;
    border-radius: 14px;
    padding: 0 14px;
  }
  .lead-form textarea {
    min-height: 110px;
    padding: 14px;
    resize: vertical;
  }
  .lead-form .btn {
    width: 100%;
    min-height: 54px;
    margin-top: 4px;
    font-size: 1rem;
  }

  .site-footer {
    padding: 36px 0 max(24px, env(safe-area-inset-bottom));
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 22px;
    margin-bottom: 22px;
  }
  .footer-brand {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }
  .footer-brand img {
    width: 32px !important;
    height: 32px !important;
  }
  .site-footer p,
  .footer-col li,
  .footer-bottom {
    font-size: 0.88rem;
    line-height: 1.45;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 6px;
    padding-top: 16px;
  }
}

/* ---------- ≤ 640px: phone ---------- */
@media (max-width: 640px) {
  .wrap { width: calc(100% - 24px); }

  .hero__cta {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .hero__cta .btn {
    width: 100%;
    min-height: 52px;
    font-size: 0.98rem;
  }
  .hero-proof {
    gap: 10px;
    margin-top: 16px;
  }
  .hero-avatars i {
    width: 28px;
    height: 28px;
  }
  .hero-proof p {
    max-width: none;
    font-size: 0.82rem;
    line-height: 1.35;
  }
  .hero__trust {
    margin-top: 12px;
    gap: 6px;
  }
  .hero__trust span {
    font-size: 0.7rem;
    padding: 6px 10px;
    line-height: 1.2;
  }

  section { padding: 40px 0; }
  .section-title {
    font-size: clamp(1.45rem, 7vw, 1.95rem);
  }
  .section-lead {
    font-size: 0.94rem;
    margin-bottom: 18px;
  }
}

/* ---------- ≤ 430px: compact phone ---------- */
@media (max-width: 430px) {
  .wrap { width: calc(100% - 20px); }
  .topnav__inner { min-height: 48px; }
  .topnav__actions .btn-primary {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.8rem;
  }
  .nav-toggle { width: 42px; height: 42px; }
  .brand span { font-size: 1rem; }

  .hero-proof { display: none; }
  .hero__trust span { font-size: 0.66rem; padding: 5px 8px; }

  section { padding: 36px 0; }
  .ai-badge { padding: 16px; }
  .growth-note { padding: 14px; }
  .faq summary { font-size: 0.92rem; }
}

/* Landscape phones */
@media (max-height: 480px) and (orientation: landscape) {
  .hero-stage { max-width: 260px; }
  .phone { width: min(100%, 220px); }
  .phone__screen,
  .hero-chat { min-height: 280px; }
  section { padding: 28px 0; }
}
