/*
 * mobile.css - Phase I (Session I, 2026-04-25)
 * Mobile-first conversion fixes for /angel-numbers/ landing.
 * Loaded after style.css and the inline <style> in index.html.
 *
 * Targets: Facebook iOS in-app, mobile Safari, Android Chrome.
 * Viewports verified: 375x667, 414x896, 360x800.
 */

/* ==== Base safety: no horizontal overflow ==== */
img, video, iframe { max-width: 100%; }
.lp-section, .container { box-sizing: border-box; }

/* ==== Scan highlight (gold accent on key phrases) - applies all sizes ==== */
.hl {
  color: #FFD700;
}

/* ==== Oracle book mockup image (premium offer block) - applies all sizes ==== */
.premium-block .oracle-mockup {
  display: block;
  width: 100%;
  max-width: 240px;
  margin: 0 auto 1.75rem;
  border-radius: 8px;
  filter: drop-shadow(0 14px 44px rgba(255, 215, 0, 0.18))
          drop-shadow(0 4px 16px rgba(0, 0, 0, 0.55));
}

/* ==== Calc mobile CTA: hidden on desktop, shown on mobile ==== */
.calc-mobile-cta { display: none; }

/* ==== Sticky CTA: hidden on desktop, shown on mobile ==== */
#mobile-sticky-cta { display: none; }

/* ==== MOBILE (<=768px) ==== */
@media (max-width: 768px) {

  /* ----- Section padding tighter ----- */
  .lp-section { padding: 3rem 0; }

  /* ----- Header / nav-toggle: enforce 44x44 tap target ----- */
  .site-header .nav-toggle {
    min-width: 44px;
    min-height: 44px;
    padding: 0.55rem;
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }

  /* ----- Hero ----- */
  .lp-hero { padding: 4rem 0 3rem; }
  .lp-hero h1 {
    font-size: 1.95rem;
    line-height: 1.18;
    padding: 0 0.25rem;
  }
  .lp-hero p {
    font-size: 1rem;
    padding: 0 0.5rem;
  }
  .lp-hero .cta-row {
    flex-direction: column;
    gap: 0.65rem;
    padding: 0 0.5rem;
  }
  .lp-hero .cta-row .btn {
    width: 100%;
    min-height: 52px;
    padding: 0.95rem 1.25rem;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
  }
  .lp-hero .meta-bar {
    font-size: 0.78rem;
    gap: 0.85rem;
    padding: 0 0.5rem;
  }

  /* ----- Section H2 + sub-lead ----- */
  .lp-section h2 {
    font-size: 1.55rem;
    padding: 0 0.5rem;
  }
  .lp-section .sub-lead {
    font-size: 0.97rem;
    padding: 0 0.75rem;
  }

  /* ----- Pain cards ----- */
  .pain-card { padding: 1.25rem; }
  .pain-card .num { font-size: 1.55rem; }
  .pain-card p { font-size: 0.95rem; }

  /* ----- Calculator: replace iframe with CTA on mobile ----- */
  .calc-frame-wrap iframe { display: none; }
  .calc-frame-wrap .frame-note { display: none; }
  .calc-frame-wrap {
    padding: 1.5rem 1.25rem;
    border-radius: 14px;
  }
  .calc-mobile-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
  }
  .calc-mobile-cta .calc-cta-line {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.97rem;
    line-height: 1.55;
    margin: 0;
  }
  .calc-mobile-cta .calc-cta-btn {
    background: rgba(255, 215, 0, 0.10);
    border: 1.5px solid #FFD700;
    color: #FFD700;
    padding: 0.95rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.15s;
  }
  .calc-mobile-cta .calc-cta-btn:active {
    background: rgba(255, 215, 0, 0.20);
    transform: scale(0.98);
  }
  .calc-mobile-cta .calc-cta-sub {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.82rem;
    margin-top: 0.25rem;
  }

  /* ----- Preview cards ----- */
  .preview-card { padding: 1.4rem 1.15rem; }
  .preview-card .seq { font-size: 1.85rem; }
  .preview-card .layer-text { font-size: 0.95rem; }

  /* ----- Email capture: stacked + 52px tap targets ----- */
  .capture-block {
    padding: 1.85rem 1.25rem;
    border-radius: 14px;
  }
  .capture-block h3 { font-size: 1.3rem; }
  .capture-block p { font-size: 0.97rem; }
  .capture-block form {
    flex-direction: column;
    gap: 0.75rem;
    flex-wrap: nowrap;
  }
  .capture-block input[type="email"] {
    width: 100%;
    min-height: 52px;
    padding: 1rem 1.1rem;
    font-size: 16px; /* Prevents iOS zoom-on-focus */
    box-sizing: border-box;
    min-width: 0;
  }
  .capture-block button {
    width: 100%;
    min-height: 52px;
    padding: 1rem 1.25rem;
    font-size: 1.02rem;
    box-sizing: border-box;
  }

  /* ----- Premium offer block ----- */
  .premium-block {
    padding: 2.25rem 1.25rem;
    border-radius: 16px;
  }
  .premium-block .oracle-mockup {
    max-width: 200px;
    margin-bottom: 1.4rem;
  }
  .premium-block h3 {
    font-size: 1.7rem;
    line-height: 1.15;
  }
  .premium-block .product-desc { font-size: 1rem; }
  .premium-block .price { font-size: 2.6rem; }
  .premium-block .price-row {
    flex-wrap: wrap;
    gap: 0.4rem 0.75rem;
  }
  .premium-block .feature-list li { font-size: 0.97rem; }
  .premium-block .urgency-callout {
    font-size: 0.92rem;
    padding: 0.85rem 1rem;
  }
  .gumroad-button.lp-buy {
    display: block;
    width: 100%;
    padding: 1.05rem 1.25rem;
    font-size: 1.05rem;
    text-align: center;
    box-sizing: border-box;
    min-height: 56px;
    line-height: 1.4;
  }

  /* ----- Trust strip ----- */
  .trust-card { padding: 1.25rem 1rem; }
  .trust-card h4 { font-size: 1rem; }
  .trust-card p { font-size: 0.88rem; }

  /* ----- FAQ ----- */
  .faq-item { padding: 1.05rem 1.15rem; }
  .faq-item h3 { font-size: 1rem; line-height: 1.35; }
  .faq-item p { font-size: 0.93rem; line-height: 1.6; }

  /* ----- Closer ----- */
  .closer p {
    font-size: 1.2rem;
    line-height: 1.4;
    padding: 0 0.5rem;
  }
  .closer .closer-sub { font-size: 0.92rem; }

  /* ----- Footer link tap targets: 44px minimum ----- */
  .site-footer .footer-col a {
    min-height: 44px;
    padding: 0.55rem 0;
    line-height: 1.4;
    display: block;
    box-sizing: border-box;
  }

  /* ----- Push body content above sticky CTA bar ----- */
  body { padding-bottom: 78px; }

  /* ----- Sticky bottom CTA bar (visible on mobile) ----- */
  #mobile-sticky-cta {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 50;
    background: rgba(8, 8, 12, 0.96);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 215, 0, 0.32);
    padding: 0.55rem 0.85rem;
    padding-bottom: calc(0.55rem + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    gap: 0.7rem;
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.25s ease, opacity 0.25s ease;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5);
  }
  #mobile-sticky-cta.is-hidden {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
  }
  #mobile-sticky-cta .price-bit {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.05;
    flex-shrink: 0;
  }
  #mobile-sticky-cta .price-bit .now {
    color: #FFD700;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.01em;
  }
  #mobile-sticky-cta .price-bit .with-code {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.68rem;
    margin-top: 0.18rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  #mobile-sticky-cta .cta-btn {
    flex: 1;
    background: #FFD700;
    color: #08080C;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.98rem;
    padding: 0.85rem 0.5rem;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(255, 215, 0, 0.28);
    transition: transform 0.15s;
  }
  #mobile-sticky-cta .cta-btn:active { transform: scale(0.97); }
}

/* ==== Small phones (<=380px) ==== */
@media (max-width: 380px) {
  .lp-hero h1 { font-size: 1.7rem; }
  .lp-hero p { font-size: 0.95rem; }
  .premium-block h3 { font-size: 1.5rem; }
  .premium-block .price { font-size: 2.3rem; }
  .closer p { font-size: 1.1rem; }
  .lp-section h2 { font-size: 1.45rem; }
  #mobile-sticky-cta .price-bit .now { font-size: 1.2rem; }
  #mobile-sticky-cta .cta-btn {
    font-size: 0.9rem;
    padding: 0.8rem 0.4rem;
  }
}

/* ==== Desktop (>=769px) - never show sticky / mobile CTA ==== */
@media (min-width: 769px) {
  #mobile-sticky-cta { display: none !important; }
  .calc-mobile-cta { display: none !important; }
}
