/* ═══════════════════════════════════════════════════════════════════════════
   PERFECT PITCH MOBILE CSS - FIXED HIERARCHY
   
   AGGRESSIVE MOBILE COMPRESSION:
   Using existing tmps tokens but forcing much smaller sizes
   to create clear visual hierarchy on mobile
   ═══════════════════════════════════════════════════════════════════════════ */

@media screen and (max-width: 768px) {

  /* ═══════════════════════════════════════════════════════════════════════════
     GLOBAL SETTINGS
     ═══════════════════════════════════════════════════════════════════════════ */
  
  body {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
  }

  /* Container padding */
  .container-narrow,
  .container-wide {
    max-width: 100%;
    padding: 0 var(--tmps-6); /* 17.944px */
  }

  /* Section padding */
  .bg-white,
  .bg-dark,
  .bg-moonstone {
    padding: var(--tmps-8) 0; /* 46.978px */
  }

  /* Line breaks */
  .mobile-br { display: block; }
  .desktop-br { display: none; }

  /* ═══════════════════════════════════════════════════════════════════════════
     HEADER - ORIGINAL STYLE (from start of session)
     ═══════════════════════════════════════════════════════════════════════════ */

  .header-bar {
    height: var(--tmps-8); /* 46.978px - original height */
  }

  .header-container {
    padding: 0 var(--tmps-6);
  }

  .header-spacer {
    height: var(--tmps-8);
  }

  .header-auth {
    gap: var(--tmps-4);
  }

  .header-login-link,
  .header-user-email,
  .header-logout-btn {
    font-size: var(--tmps-5c); /* 15.910px - original size */
  }

  .header-user-email {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-logout-btn {
    padding: 0;
  }

  /* ═══════════════════════════════════════════════════════════════════════════
     AGGRESSIVE TYPOGRAPHY HIERARCHY
     Force ALL text into tight size range
     ═══════════════════════════════════════════════════════════════════════════ */

  /* HERO ONLY - Largest text on page */
  .bg-white h1[style*="font-size: var(--tmps-9a)"] {
    font-size: var(--tmps-7c) !important; /* 41.778px - only hero gets this */
    line-height: 1.1 !important;
    margin-bottom: var(--tmps-6) !important;
  }

  /* ALL SECTION TITLES - Force to medium size */
  h1:not(.bg-white h1),
  h2,
  .bg-moonstone h2,
  .bg-dark h2,
  h1[style*="font-size: var(--tmps-8a)"],
  h2[style*="font-size: var(--tmps-8a)"],
  h2[style*="font-size: var(--tmps-7b)"],
  h2[style*="font-size: var(--tmps-7c)"],
  h2[style*="font-size: var(--tmps-7a)"] {
    font-size: var(--tmps-6c) !important; /* 25.833px - all section titles */
    line-height: 1.2 !important;
    margin-bottom: var(--tmps-6) !important;
  }

  /* ALL SUBSECTION HEADINGS - Force smaller */
  h3,
  .problem-point h3,
  .faq-question,
  .question-title,
  .cost-title,
  .selling-point-title,
  h3[style*="font-size: var(--tmps-7a)"],
  h3[style*="font-size: var(--tmps-7)"],
  h3[style*="font-size: var(--tmps-6c)"] {
    font-size: var(--tmps-6a) !important; /* 20.309px - all subheadings */
    line-height: 1.3 !important;
    margin-bottom: var(--tmps-5) !important;
  }

  /* ALL BODY TEXT - Uniform size */
  p,
  .step p,
  .problem-point p,
  .faq-answer,
  .module-content-points p,
  .credibility-point span,
  .question-description,
  .role-item-expanded,
  p[style*="font-size: var(--tmps-7a)"],
  p[style*="font-size: var(--tmps-7)"],
  p[style*="font-size: var(--tmps-6c)"],
  p[style*="font-size: var(--tmps-6b)"],
  p[style*="font-size: var(--tmps-6a)"],
  p[style*="font-size: var(--tmps-6)"],
  p[style*="font-size: var(--tmps-5c)"] {
    font-size: var(--tmps-6) !important; /* 17.944px - all body text same */
    line-height: 1.5 !important;
    margin-bottom: var(--tmps-5) !important;
  }

  /* Small labels only */
  .stat-label-expanded,
  .footer-copyright,
  .step-number {
    font-size: var(--tmps-5c) !important; /* 15.910px - only for tiny labels */
  }

  /* ═══════════════════════════════════════════════════════════════════════════
     SPECIFIC OVERRIDES
     ═══════════════════════════════════════════════════════════════════════════ */

  /* Hero section */
  #logo-holder {
    margin: var(--tmps-6) auto var(--tmps-7b) auto;
  }

  .logo {
    height: var(--tmps-10); /* Keep logo prominent */
  }

  /* Hero subtitle - much smaller */
  .bg-white h2[style*="font-family: 'Aleo'"][style*="font-size: var(--tmps-7b)"] {
    font-size: var(--tmps-6) !important; /* 17.944px - same as body */
    font-weight: 400 !important;
    margin-top: var(--tmps-7) !important;
    margin-bottom: var(--tmps-7) !important;
  }

  /* Problem points - compact */
  .problem-point {
    padding: var(--tmps-6);
  }

  .problem-point h3 {
    font-size: var(--tmps-6) !important; /* Same as body for consistency */
    font-weight: 600;
  }

  /* Stats numbers - keep prominent */
  .stat-number-expanded {
    font-size: var(--tmps-7) !important; /* 29.034px */
    margin-bottom: var(--tmps-3) !important;
  }

  /* Economics section */
  .cost-amount {
    font-size: var(--tmps-7) !important; /* Keep price prominent */
  }

  /* ═══════════════════════════════════════════════════════════════════════════
     BUTTONS
     ═══════════════════════════════════════════════════════════════════════════ */

  .cta-primary,
  .cta-secondary,
  .cta-button {
    display: block !important;
    width: 100%;
    padding: var(--tmps-6) var(--tmps-7);
    margin: var(--tmps-5) 0;
    font-size: var(--tmps-6a);
    min-height: 44px;
    text-align: center;
  }

  /* ═══════════════════════════════════════════════════════════════════════════
     COMPONENTS & SPACING
     ═══════════════════════════════════════════════════════════════════════════ */

  .hero-ctas {
    margin-top: var(--tmps-7);
  }

  /* Grids */
  .problem-points,
  .steps,
  .credibility-points,
  .cta-options {
    grid-template-columns: 1fr;
    gap: var(--tmps-6);
    margin-bottom: 0;
  }

  .stats-grid-expanded {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--tmps-5);
  }

  /* Standard padding for boxes */
  .step,
  .credibility-point,
  .cta-option,
  .faq-box,
  .stat-item-expanded {
    padding: var(--tmps-6);
  }

  /* ═══════════════════════════════════════════════════════════════════════════
     EXPANDABLE SECTIONS
     ═══════════════════════════════════════════════════════════════════════════ */

  /* Hide by default */
  .expandable-preview .expandable-extra > * {
    display: none !important;
  }

  /* Show when expanded */
  .expandable-preview.expanded .expandable-extra > * {
    display: block !important;
  }

  /* Expand toggles */
  .expand-toggle {
    display: inline-block !important;
    font-size: var(--tmps-6);
    margin-top: var(--tmps-6b);
  }

  /* ═══════════════════════════════════════════════════════════════════════════
     ECONOMICS TABLE FIX - VS divider between items
     ═══════════════════════════════════════════════════════════════════════════ */

  .economics-table {
    display: flex;
    flex-direction: column;
    gap: var(--tmps-5);
    margin: var(--tmps-7) 0;
  }

  .traditional-cost {
    order: 1;
    padding: var(--tmps-6);
    background: var(--clr-moonstone);
  }

  .vs-divider {
    order: 2;
    font-size: var(--tmps-7);
    margin: var(--tmps-5) 0;
  }

  .perfect-pitch-cost {
    order: 3;
    padding: var(--tmps-6);
    background: var(--clr-moonstone);
  }

  .cost-title {
    font-size: var(--tmps-6a) !important;
    margin-bottom: var(--tmps-4);
  }

  .cost-amount {
    font-size: var(--tmps-7) !important;
    margin-bottom: var(--tmps-4);
  }

  .cost-details {
    font-size: var(--tmps-6) !important;
  }

  /* ═══════════════════════════════════════════════════════════════════════════
     FINAL SECTIONS - Force consistent sizing
     ═══════════════════════════════════════════════════════════════════════════ */

  /* Urgency section */
  .bg-moonstone h3[style*="font-size: var(--tmps-7c)"] {
    font-size: var(--tmps-6c) !important;
  }

  .bg-moonstone div[style*="font-size: var(--tmps-7)"] {
    font-size: var(--tmps-6) !important;
  }

  /* "Two Ways Forward" section */
  .bg-dark h2[style*="font-size: var(--tmps-8a)"] {
    font-size: var(--tmps-6c) !important;
  }

  /* CTA option boxes */
  .cta-option h3[style*="font-size: var(--tmps-7a)"] {
    font-size: var(--tmps-6a) !important;
  }

  .cta-option p[style*="font-size: var(--tmps-6c)"] {
    font-size: var(--tmps-6) !important;
  }

  /* Final CTA "The Choice Is Clear" */
  .bg-dark h2[style*="font-family: 'Lora'"][style*="font-size: var(--tmps-8a)"] {
    font-size: var(--tmps-6c) !important;
  }

  .bg-dark p[style*="font-size: var(--tmps-7)"] {
    font-size: var(--tmps-6) !important;
  }

  /* About section if present */
  .about-content p {
    font-size: var(--tmps-6) !important;
    margin-bottom: var(--tmps-5) !important;
  }

  /* Comparison table section text */
  .comparison-intro h2 {
    font-size: var(--tmps-6c) !important;
    margin-bottom: var(--tmps-6) !important;
  }

  .comparison-intro p {
    font-size: var(--tmps-6) !important;
  }

  /* ═══════════════════════════════════════════════════════════════════════════
     FOOTER
     ═══════════════════════════════════════════════════════════════════════════ */

  .site-footer {
    padding: var(--tmps-7) 0;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: var(--tmps-6);
    padding: var(--tmps-7) var(--tmps-6);
  }

  .footer-column {
    text-align: center;
  }

  .footer-title {
    font-size: var(--tmps-6);
    margin-bottom: var(--tmps-4);
  }

  /* Footer text sizes */
  .footer-link,
  .benefit-text,
  .footer-copyright p {
    font-size: var(--tmps-5c) !important;
  }

  .benefit-title {
    font-size: var(--tmps-6) !important;
  }

  /* ═══════════════════════════════════════════════════════════════════════════
     ECONOMICS TABLE FIX - VS divider between items
     ═══════════════════════════════════════════════════════════════════════════ */

  .economics-table {
    display: flex;
    flex-direction: column;
    gap: var(--tmps-5);
    margin: var(--tmps-7) 0;
  }

  .traditional-cost {
    order: 1;
    padding: var(--tmps-6);
    background: var(--clr-moonstone);
  }

  .vs-divider {
    order: 2;
    font-size: var(--tmps-7);
    margin: var(--tmps-5) 0;
  }

  .perfect-pitch-cost {
    order: 3;
    padding: var(--tmps-6);
    background: var(--clr-moonstone);
  }

  .cost-title {
    font-size: var(--tmps-6a) !important;
    margin-bottom: var(--tmps-4);
  }

  .cost-amount {
    font-size: var(--tmps-7) !important;
    margin-bottom: var(--tmps-4);
  }

  .cost-details {
    font-size: var(--tmps-6) !important;
  }

  /* ═══════════════════════════════════════════════════════════════════════════
     FINAL SECTIONS - Force consistent sizing
     ═══════════════════════════════════════════════════════════════════════════ */

  /* Urgency section */
  .bg-moonstone h3[style*="font-size: var(--tmps-7c)"] {
    font-size: var(--tmps-6c) !important;
  }

  .bg-moonstone div[style*="font-size: var(--tmps-7)"] {
    font-size: var(--tmps-6) !important;
  }

  /* "Two Ways Forward" section */
  .bg-dark h2[style*="font-size: var(--tmps-8a)"] {
    font-size: var(--tmps-6c) !important;
  }

  /* CTA option boxes */
  .cta-option h3[style*="font-size: var(--tmps-7a)"] {
    font-size: var(--tmps-6a) !important;
  }

  .cta-option p[style*="font-size: var(--tmps-6c)"] {
    font-size: var(--tmps-6) !important;
  }

  /* Final CTA "The Choice Is Clear" */
  .bg-dark h2[style*="font-family: 'Lora'"][style*="font-size: var(--tmps-8a)"] {
    font-size: var(--tmps-6c) !important;
  }

  .bg-dark p[style*="font-size: var(--tmps-7)"] {
    font-size: var(--tmps-6) !important;
  }

  /* About section if present */
  .about-content p {
    font-size: var(--tmps-6) !important;
    margin-bottom: var(--tmps-5) !important;
  }

  /* Comparison table section text */
  .comparison-intro h2 {
    font-size: var(--tmps-6c) !important;
    margin-bottom: var(--tmps-6) !important;
  }

  .comparison-intro p {
    font-size: var(--tmps-6) !important;
  }

  /* Footer text */
  .footer-link,
  .benefit-text,
  .footer-copyright p {
    font-size: var(--tmps-5c) !important;
  }

  .benefit-title {
    font-size: var(--tmps-6) !important;
  }

  /* ═══════════════════════════════════════════════════════════════════════════
     STICKY CTA BAR
     ═══════════════════════════════════════════════════════════════════════════ */

  .sticky-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--clr-magnetite);
    padding: var(--tmps-5);
    z-index: 900;
    display: none;
    animation: slideUp 0.3s ease-out;
  }

  .sticky-cta-bar.show {
    display: block;
  }

  .sticky-cta-btn {
    flex: 1;
    background: var(--clr-deep-clay);
    color: var(--clr-porcelain);
    border: none;
    padding: var(--tmps-5) var(--tmps-6);
    font-size: var(--tmps-6);
    min-height: 44px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SMALL MOBILE (320px - 480px)
   ═══════════════════════════════════════════════════════════════════════════ */

@media screen and (max-width: 480px) {
  /* Even smaller containers */
  .container-narrow,
  .container-wide {
    padding: 0 var(--tmps-5);
  }

  /* Hero slightly smaller */
  .bg-white h1[style*="font-size: var(--tmps-9a)"] {
    font-size: var(--tmps-7b) !important;
  }

  /* Logo smaller */
  .logo {
    height: var(--tmps-9);
  }

  /* Stats single column */
  .stats-grid-expanded {
    grid-template-columns: 1fr;
  }
}