/* ================================================
   LUMERA — MOBILE RESPONSIVE CSS
   Add <link rel="stylesheet" href="mobile.css"> 
   to the <head> of every page
   ================================================ */

@media (max-width: 768px) {

  /* ── BASE ── */
  body { overflow-x: hidden; }
  .wrap { padding: 0 20px !important; }

  /* ── NAV ── */
  .nav {
    top: 10px !important;
    width: calc(100% - 24px) !important;
    height: 60px !important;
    border-radius: 14px !important;
  }
  .nav-inner { padding: 0 18px !important; }
  .nav-logo { font-size: 20px !important; }
  .nav-links { display: none !important; }
  .nav-cta { display: none !important; }

  /* Hamburger — shown on mobile */
  .nav-hamburger {
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
  }
  .nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #0a0a0a;
    border-radius: 2px;
  }

  /* Mobile menu overlay */
  .mobile-menu {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 300;
  }
  .mobile-menu.open { display: block; }
  .mobile-menu-panel {
    position: absolute;
    top: 0; left: 0; right: 0;
    background: #fff;
    border-radius: 0 0 20px 20px;
    padding: 24px 20px 32px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.14);
  }
  .mobile-menu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
  }
  .mobile-menu-logo { font-size: 20px; font-weight: 800; color: #0a0a0a; text-decoration: none; }
  .mobile-menu-close {
    width: 32px; height: 32px;
    border-radius: 8px;
    border: 1px solid #e4e4e7;
    background: #f4f4f5;
    font-size: 16px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
  }
  .mobile-menu-links { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; }
  .mobile-menu-link {
    font-size: 17px; font-weight: 500; color: #0a0a0a;
    text-decoration: none; padding: 12px 16px;
    border-radius: 10px; transition: background .15s;
  }
  .mobile-menu-link:hover { background: #f4f4f5; }
  .mobile-menu-cta {
    display: flex; align-items: center; justify-content: center;
    padding: 14px; background: #7c3aed; color: #fff;
    font-size: 16px; font-weight: 700; border-radius: 12px;
    text-decoration: none;
  }

  /* ── HERO (homepage) ── */
  .hero {
    min-height: auto !important;
    padding-top: 90px !important;
    padding-bottom: 48px !important;
  }
  #ribbonCanvas {
    width: 100% !important;
    height: 280px !important;
    top: 0 !important;
    opacity: 0.5 !important;
  }
  .hero-content {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    padding: 24px 20px !important;
    max-width: 100% !important;
  }
  .hero h1 {
    font-size: clamp(36px, 9vw, 52px) !important;
    letter-spacing: -2px !important;
  }
  .hero-sub { font-size: 16px !important; max-width: 100% !important; }
  .hero-btns {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .btn-dark, .btn-ghost {
    width: 100% !important;
    justify-content: center !important;
    padding: 14px 20px !important;
    font-size: 16px !important;
  }
  .dash {
    font-size: 90% !important;
  }
  .dash-metrics { grid-template-columns: 1fr 1fr 1fr !important; }
  .dm-val { font-size: 28px !important; }
  .dash-th, .dash-row { grid-template-columns: 1.2fr 1fr .7fr .8fr !important; padding: 10px 14px !important; }
  .dr-name { font-size: 13px !important; }
  .dr-proc { font-size: 12px !important; }

  /* ── TICKER ── */
  .ticker-lbl { padding: 0 16px !important; font-size: 10px !important; }

  /* ── SECTIONS ── */
  .section { padding: 64px 0 !important; }
  .sec-title { font-size: clamp(28px, 7vw, 42px) !important; letter-spacing: -1px !important; }
  .sec-sub { font-size: 16px !important; max-width: 100% !important; }

  /* ── PROBLEM SECTION ── */
  .prob-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .rc-stat { font-size: 72px !important; }
  .reality { padding: 28px !important; }

  /* ── SERVICES ── */
  .svc-grid { grid-template-columns: 1fr !important; gap: 14px !important; margin-top: 36px !important; }
  .svc-card { padding: 28px !important; }
  .svc-card.wide { grid-column: span 1 !important; grid-template-columns: 1fr !important; gap: 24px !important; }
  .svc-name { font-size: 20px !important; }
  .svc-desc { font-size: 15px !important; }

  /* ── HOW IT WORKS ── */
  .hiw-grid { grid-template-columns: 1fr !important; gap: 1px !important; }
  .hiw-step { padding: 32px 24px !important; }
  .hiw-step h3 { font-size: 20px !important; }
  .hiw-step p { font-size: 15px !important; }

  /* ── STATS ── */
  .stats-grid { grid-template-columns: 1fr 1fr !important; }
  .stat-box { padding: 32px 20px !important; }
  .stat-num { font-size: 38px !important; }
  .stat-lbl { font-size: 14px !important; }

  /* ── ABOUT ── */
  .about-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .about-p { font-size: 16px !important; }
  .about-pt { font-size: 15px !important; }

  /* ── FAQ ── */
  .faq-wrap { max-width: 100% !important; margin-top: 32px !important; }
  .faq-q { font-size: 17px !important; padding: 16px 0 !important; }
  .faq-a { font-size: 15px !important; }

  /* ── CTA SECTION ── */
  .cta-bg { padding: 72px 0 !important; }
  .cta-bg h2 { font-size: clamp(28px, 7vw, 42px) !important; }
  .cta-bg p { font-size: 16px !important; }
  .cta-section { padding: 72px 0 !important; }
  .cta-section h2 { font-size: clamp(26px, 7vw, 40px) !important; }
  .cta-section p { font-size: 16px !important; }

  /* ── FOOTER ── */
  .footer { padding: 48px 0 0 !important; }
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
    margin-bottom: 40px !important;
  }
  .footer-brand { grid-column: span 2 !important; }
  .footer-col a { font-size: 14px !important; }
  .footer-bottom {
    flex-direction: column !important;
    gap: 12px !important;
    text-align: center !important;
    padding: 16px 0 !important;
  }

  /* ── SERVICE PAGES ── */
  .hero-inner {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    padding: 24px 20px !important;
  }
  .hero-stats { gap: 24px !important; flex-wrap: wrap !important; }
  .hs-item strong { font-size: 24px !important; }
  .hs-item span { font-size: 13px !important; }
  .features-grid { grid-template-columns: 1fr !important; gap: 14px !important; margin-top: 36px !important; }
  .feat-card { padding: 24px !important; }
  .feat-name { font-size: 18px !important; }
  .feat-desc { font-size: 14px !important; }
  .mockup { font-size: 85% !important; }

  /* ── DEMO PAGE ── */
  .page {
    grid-template-columns: 1fr !important;
    padding: 100px 20px 48px !important;
    gap: 32px !important;
  }
  .left { padding: 0 !important; }
  .right { padding: 0 !important; }
  .form-card { padding: 28px 20px !important; }
  .form-row { grid-template-columns: 1fr !important; gap: 14px !important; }
  .page-headline { font-size: clamp(32px, 8vw, 48px) !important; letter-spacing: -1.5px !important; }
  .stats-row { gap: 20px !important; flex-wrap: wrap !important; }
  .stat-val { font-size: 22px !important; }
  .submit-btn { font-size: 16px !important; padding: 16px !important; }
  .form-title { font-size: 24px !important; }
  .form-sub { font-size: 15px !important; }

  /* ── RESOURCES PAGE ── */
  .res-hero { min-height: auto !important; padding-top: 100px !important; padding-bottom: 48px !important; }
  .articles-grid { grid-template-columns: 1fr !important; gap: 16px !important; margin-top: 32px !important; }
  .article-card { padding: 24px !important; }
  .article-card.featured { grid-column: span 1 !important; grid-template-columns: 1fr !important; gap: 20px !important; }
  .art-title { font-size: 18px !important; }
  .art-excerpt { font-size: 14px !important; }
  .gloss-grid { grid-template-columns: 1fr !important; gap: 12px !important; margin-top: 32px !important; }
  .filter-tabs { gap: 6px !important; }
  .filter-btn { font-size: 13px !important; padding: 7px 14px !important; }

  /* ── PRIVACY / LEGAL PAGES ── */
  .legal-hero { padding: 110px 0 48px !important; }
  .legal-hero h1 { font-size: clamp(28px, 7vw, 44px) !important; }
  .legal-body { padding: 48px 0 72px !important; }
  .legal-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .legal-nav { position: static !important; display: none !important; }
  .legal-content h2 { font-size: 20px !important; margin: 32px 0 10px !important; }
  .legal-content p, .legal-content li { font-size: 15px !important; }

  /* ── HERO RIBBON CANVAS on service pages ── */
  #ribbonCanvas {
    width: 100% !important;
    height: 220px !important;
    opacity: 0.4 !important;
  }
  #resRibbon {
    width: 100% !important;
    height: 220px !important;
    opacity: 0.4 !important;
  }
  #demoRibbon {
    width: 100% !important;
    height: 220px !important;
    opacity: 0.3 !important;
  }

}

/* ── EXTRA SMALL PHONES ── */
@media (max-width: 420px) {
  .hero h1 { font-size: 32px !important; }
  .sec-title { font-size: 26px !important; }
  .stats-grid { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr !important; }
  .footer-brand { grid-column: span 1 !important; }
  .hero-btns { gap: 8px !important; }
}