/*
 * ╔══════════════════════════════════════════════════════════════╗
 * ║              NUDGE — SHARED MOBILE STYLES                    ║
 * ║  max-width: 768px  ·  Desktop layout is completely untouched ║
 * ╚══════════════════════════════════════════════════════════════╝
 */

@media (max-width: 768px) {

  /* ── OVERFLOW GUARD ── */
  html, body { overflow-x: hidden !important; max-width: 100%; }
  .section-dark { overflow: hidden !important; }

  /* ─────────────────────────────────────────────
     NAV — full-width rectangular sticky bar
     Layout on mobile: [hamburger]  [logo]  [Get Started]
     ───────────────────────────────────────────── */
  #nav-links, #nav-login, .theme-toggle { display: none !important; }
  #mob-menu-btn   { display: inline-flex !important; }
  .nav            { top: 0 !important; }
  .nav .gc-ext-inner { padding-inline: 0 !important; }
  .nav-pill {
    position: relative !important;
    border-radius: 0 !important;
    border-left:   none !important;
    border-right:  none !important;
    border-top:    none !important;
    border-bottom: 1px solid rgba(231,229,228,0.9) !important;
    box-shadow:    none !important;
    padding:       11px 14px !important;
    background:    rgba(250,249,247,0.96) !important;
  }
  #mob-menu { top: 62px !important; }

  /* Flatten the right cluster wrapper so its children (login/CTA/menu-btn)
     become direct flex children of .nav-pill and can be re-ordered. */
  .nav-pill > div:last-child { display: contents !important; }

  /* Hamburger button: lives on the LEFT */
  #mob-menu-btn {
    order: -1;
    width: 36px !important;
    height: 36px !important;
    background: rgba(41,37,36,0.06) !important;
  }

  /* Logo: absolutely centered regardless of side widths */
  .nav-pill > a[href="/"]:first-child {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: auto;
  }
  .nav-pill > a[href="/"]:first-child img {
    height: 30px !important;
    width: auto;
  }

  /* Get Started CTA: lives on the RIGHT, slimmed for mobile */
  #nav-get-started {
    display: inline-flex !important;
    order: 1;
    margin-left: auto;
    padding: 7px 14px !important;
    font-size: 0.8125rem !important;
    gap: 0 !important;
  }
  #nav-get-started svg { display: none !important; }

  /* Remove the duplicate Get Started link from inside the dropdown */
  #mob-menu > a:last-of-type,
  #mob-menu > div:last-of-type { display: none !important; }

  /* ─────────────────────────────────────────────
     HERO
     ───────────────────────────────────────────── */
  #hero-section { padding-top: 96px !important; padding-bottom: 0 !important; }
  .hero-h1 { margin-bottom: 16px !important; }
  #hero-section .anim > p { margin-bottom: 40px !important; }
  #hero-prompt  { margin-bottom: clamp(200px, 30svh, 340px) !important; }
  .prompt-input { min-height: 80px !important; font-size: 0.875rem !important; margin-bottom: 28px !important; }
  .prompt-box   { padding: 5px !important; }
  #prompt-chips { margin-bottom: 0 !important; }
  #prompt-chips {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  #prompt-chips::-webkit-scrollbar { display: none; }

  /* ─────────────────────────────────────────────
     HERO ANIMATION MOCKUP
     ───────────────────────────────────────────── */
  #hero-anim-split   { height: 420px !important; }
  .hero-hdr-btn      { display: none !important; }
  #nudge-hero-anim > div:first-child { padding: 6px 12px !important; gap: 5px !important; }
  #nudge-hero-anim > div:first-child > img { height: 17px !important; }
  #hero-chat-messages { padding: 8px 10px 5px !important; gap: 5px !important; }
  #hero-anim-chat > div:last-child { padding: 4px 6px 5px !important; }
  #hero-anim-chat > div:last-child > div {
    border-radius: 8px !important;
    padding: 6px 6px 6px 9px !important;
    gap: 5px !important;
    min-height: 28px !important;
  }
  #hero-anim-chat > div:last-child > div > div { font-size: 9px !important; min-height: 11px !important; }
  #hero-input-text:empty::before { font-size: 9px !important; }
  #hero-cursor   { width: 1px !important; height: 9px !important; }
  #hero-send-btn { width: 20px !important; height: 20px !important; }
  #hero-send-btn svg { width: 9px !important; height: 9px !important; }
  #hero-web-mobile-bar { display: none !important; }
  #hero-right-content  { padding: 8px 6px !important; }
  #hero-email-scroll   { width: 66% !important; }
  #hero-image-wrap     { border-radius: 12px !important; }

  /* ─────────────────────────────────────────────
     SOCIAL PROOF BAR
     ───────────────────────────────────────────── */
  #social-proof-row     { flex-direction: column !important; gap: 14px !important; align-items: flex-start !important; }
  #social-proof-divider { display: none !important; }

  /* ─────────────────────────────────────────────
     SECTION PADDING
     ───────────────────────────────────────────── */
  .mob-section { padding-top: 64px !important; padding-bottom: 64px !important; }

  /* ─────────────────────────────────────────────
     LAYOUT HELPERS
     ───────────────────────────────────────────── */
  .mob-stack {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .mob-stack-2 { grid-template-columns: 1fr !important; gap: 20px !important; }
  .mob-hide    { display: none !important; }

  /* Step rows: reversed image/text order */
  .mob-step-rev > .step-img  { order: 2 !important; }
  .mob-step-rev > .step-text { order: 1 !important; }
  .step-row { margin-bottom: 64px !important; }
  .step-row:last-child { margin-bottom: 0 !important; }

  /* ─────────────────────────────────────────────
     WHY-SWITCH CARDS
     ───────────────────────────────────────────── */
  #why-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .why-card-amber > div,
  .why-card-indigo > div,
  .why-card-green > div {
    min-height: auto !important;
    padding: 28px 24px 32px !important;
  }

  /* ─────────────────────────────────────────────
     FEATURES SECTION
     ───────────────────────────────────────────── */
  #feat-card { display: none !important; }
  #feat-mob  { display: block !important; }

  /* Mobile carousel cards */
  #feat-mob-card {
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 48px rgba(75,78,128,0.13), 0 2px 8px rgba(0,0,0,0.05);
  }
  #feat-mob-label {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    padding: 18px 20px 14px;
    margin: 0;
    background: #fff;
    letter-spacing: -0.01em;
  }
  #feat-mob-imgwrap {
    width: 100%;
    overflow: hidden;
    background: #F8F8F7;
    line-height: 0;
  }
  #feat-mob-img {
    width: 100%;
    display: block;
    object-fit: cover;
    transition: opacity 0.3s ease;
  }
  #feat-mob-img.fmd-fade { opacity: 0; }
  #feat-mob-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 16px 0 18px;
    background: #fff;
  }
  .fmd {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(75,78,128,0.18);
    transition: background 0.25s ease, transform 0.25s ease;
    cursor: pointer;
    display: inline-block;
    flex-shrink: 0;
  }
  .fmd.fmd-active {
    background: var(--primary);
    transform: scale(1.35);
  }

  /* Integrations bar: order below carousel + scrolling */
  #features-section .gc-inner {
    display: flex;
    flex-direction: column;
  }
  #feat-mob        { order: 2; }
  #feat-integ-bar  { order: 3; margin-top: 40px !important; }
  #feat-integ-bar > div { width: 100%; overflow: hidden; position: relative; }
  #feat-integ-track { animation: integ-scroll-left 18s linear infinite; }
  #feat-integ-dup   { display: contents !important; }

  /* ─────────────────────────────────────────────
     EMAIL MARQUEE CARDS
     ───────────────────────────────────────────── */
  .email-marquee-item  { width: 185px !important; }
  .email-marquee-card  { height: 262px !important; padding: 28px 28px 0 !important; }
  .email-marquee-card img { height: 234px !important; }
  #marquee-fade-left,
  #marquee-fade-right  { display: none !important; }
  .prompt-pill {
    font-size: 11px !important;
    padding: 8px 12px 8px 10px !important;
    gap: 5px !important;
  }

  /* ─────────────────────────────────────────────
     TRUST BAR
     ───────────────────────────────────────────── */
  #trust-bar              { padding: 64px 0 !important; }
  #trust-bar-marquee      { max-width: 100% !important; }
  #trust-bar-fade-left,
  #trust-bar-fade-right   { display: none !important; }
  .logo-row               { gap: 36px !important; padding-right: 36px !important; }
  .logo-row img           { height: 32px !important; }
  #trust-bar .gc-inner > p { font-size: 1.125rem !important; margin-bottom: 32px !important; }

  /* ─────────────────────────────────────────────
     CAMPAIGN SECTION
     ───────────────────────────────────────────── */
  #campaign-section { padding: 64px 0 !important; }

  /* ─────────────────────────────────────────────
     INDUSTRY SECTION
     ───────────────────────────────────────────── */
  #industry-section    { padding: 64px 0 !important; }
  #industry-header     { padding: 0 16px 36px !important; }
  #industry-accordion  { padding: 0 16px !important; }

  /* ─────────────────────────────────────────────
     EMAIL MARQUEE SECTION
     ───────────────────────────────────────────── */
  #email-marquee-section { padding: 64px 0 0 !important; }

  /* ─────────────────────────────────────────────
     TESTIMONIALS
     ───────────────────────────────────────────── */
  #testimonials-section { padding: 64px 0 !important; }
  #testimonials-section > div:first-child { padding: 0 20px 40px !important; }

  /* ─────────────────────────────────────────────
     FAQ + CLOSING CTA
     ───────────────────────────────────────────── */
  #faq         { padding: 72px 0 !important; }
  #closing-cta { padding: 72px 0 !important; }

  /* ─────────────────────────────────────────────
     FOOTER
     ───────────────────────────────────────────── */
  .footer-grid  { grid-template-columns: 1fr 1fr !important; gap: 36px 24px !important; }
  .footer-brand { grid-column: 1 / -1 !important; }

}
