/* ============ MOBILE RESPONSIVE ============ */
/* Fixes for ≤ 720px screens */

/* BASE: hide mobile-only elements on all widths. Media query below overrides. */
.mobile-menu-btn { display: none; }
.mobile-nav-drawer { display: none; }

@media (max-width: 720px) {
  /* Announce bar: let it wrap, smaller text */
  .announce {
    padding: 10px 16px;
    font-size: 11px;
    line-height: 1.4;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    text-align: center;
  }
  .announce .pill-ea {
    font-size: 10px;
    padding: 3px 8px;
  }

  /* Nav: compact */
  .nav {
    padding: 10px 0;
  }
  .nav-inner {
    gap: 12px;
    padding: 0 16px;
  }
  .brand-name { font-size: 14px; }
  .brand-logo { width: 28px; height: 28px; }
  .nav-links { display: none; }
  .nav-right { gap: 8px; }
  .lang-switch {
    padding: 6px 8px !important;
    font-size: 11px !important;
  }
  .lang-switch #langCode { display: none; }
  .nav-right .btn {
    padding: 6px 10px !important;
    font-size: 11px !important;
  }

  /* Mobile menu toggle */
  .mobile-menu-btn {
    display: inline-flex !important;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 6px;
    align-items: center;
    justify-content: center;
  }
  .mobile-menu-btn svg {
    width: 22px;
    height: 22px;
  }

  /* Mobile menu drawer */
  .mobile-nav-drawer {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    display: none;
    flex-direction: column;
    padding: 20px;
  }
  .mobile-nav-drawer.active { display: flex; }
  .mobile-nav-drawer .close-btn {
    align-self: flex-end;
    background: none;
    border: none;
    color: var(--text);
    font-size: 28px;
    cursor: pointer;
    padding: 4px 10px;
  }
  .mobile-nav-drawer a {
    color: var(--text);
    text-decoration: none;
    font-size: 22px;
    font-weight: 600;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
  }

  /* Hero */
  .hero {
    padding: 40px 0 60px !important;
  }
  .hero-grid {
    gap: 32px !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .hero-grid > * { min-width: 0 !important; }
  .hero h1 {
    font-size: clamp(32px, 8vw, 44px) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.025em;
  }
  .hero-sub {
    font-size: 16px !important;
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-cta-note {
    flex-wrap: wrap;
    gap: 12px !important;
    font-size: 12px !important;
  }
  .hero-demo {
    aspect-ratio: 16/10 !important;
    border-radius: 14px !important;
  }

  /* Section spacing */
  section {
    padding-left: 0;
    padding-right: 0;
  }
  .feature-grid, .stories, .shortcuts, .pricing, .install, .faq, .tech-badge {
    padding: 60px 0 !important;
  }
  .container {
    padding: 0 20px !important;
  }

  /* Section headers */
  .section-header h2,
  .stories .section-header h2,
  h2 {
    font-size: clamp(26px, 6vw, 36px) !important;
    line-height: 1.2 !important;
  }
  .section-header p {
    font-size: 15px;
  }

  /* Feature cards */
  .fcard {
    padding: 20px !important;
  }
  .fcard h3 {
    font-size: 17px !important;
  }

  /* Bonus card: stack vertically */
  .fcard-bonus {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  /* Stories: stack + smaller notch visual */
  .story h3 {
    font-size: 22px !important;
    line-height: 1.25;
  }
  .story p {
    font-size: 15px;
  }

  /* Tech badge */
  .badge-row {
    gap: 16px !important;
    font-size: 11px !important;
    flex-direction: column;
    gap: 8px !important;
  }
  .badge-row .sep { display: none; }

  /* Keyboard shortcuts */
  .sc-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px !important;
    padding: 18px 20px !important;
  }
  .sc-label { font-size: 13px !important; }

  /* Pricing */
  .pricing-box {
    padding: 32px 24px !important;
    border-radius: 16px !important;
  }
  .pricing-price {
    font-size: 56px !important;
  }
  .pricing-price .cur { font-size: 24px !important; }
  .pricing-features {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 10px !important;
  }
  .platforms {
    flex-wrap: wrap;
    justify-content: center;
  }
  .price-old { font-size: 18px !important; }
  .pricing-box .btn { width: 100%; justify-content: center; }

  /* FAQ */
  .faq-q {
    font-size: 16px !important;
    padding: 18px 20px !important;
  }
  .faq-a {
    padding: 0 20px 20px !important;
    font-size: 14px !important;
  }

  /* Install steps */
  .step {
    padding: 20px !important;
  }

  /* Tweaks panel - keep usable */
  #tweaksPanel {
    right: 12px !important;
    left: 12px !important;
    bottom: 12px !important;
    width: auto !important;
  }

  /* Footer */
  footer {
    padding: 32px 20px !important;
    font-size: 12px;
  }
  .footer-row {
    flex-direction: column;
    gap: 16px !important;
    text-align: center;
  }
}

/* Hero h1 - reduce default max size for narrower phones */
@media (max-width: 480px) {
  .hero h1 { font-size: 30px !important; }
  .announce { font-size: 10px !important; }
  .announce .pill-ea { font-size: 9px !important; }
  .section-header h2, h2 { font-size: 24px !important; }
  .story h3 { font-size: 20px !important; }
  .pricing-price { font-size: 48px !important; }
}

/* ============ LIVE DEMO (notch) MOBILE FIXES ============ */
/* On mobile the fake macOS desktop just adds clutter and squeezes the notch.
   Hide it entirely and show only the notch as a centered card. */
@media (max-width: 720px) {
  /* Neutralize the sim wrapper — no background, no curve, no menubar */
  .hero-demo, .story-visual {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
  }
  .hero-demo {
    aspect-ratio: auto !important;
    height: auto !important;
    min-height: 0 !important;
  }
  .story-visual {
    aspect-ratio: auto !important;
    height: auto !important;
    min-height: 0 !important;
  }

  /* Hide the faux desktop chrome inside the sim */
  .v-sim {
    position: static !important;
    background: transparent !important;
    inset: auto !important;
    overflow: visible !important;
  }
  .v-sim::after,
  .v-sim .v-curve,
  .v-sim-menu,
  .v-sim-menu-right,
  .v-widgets,
  .v-sim-dock,
  .v-sim-wallpaper { display: none !important; }

  /* Scene containers should flow in-line, not position:absolute */
  .hero-demo .v-scene,
  .story-visual .v-scene {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Notch holder: from absolutely-positioned top-center pill → regular card */
  .v-sim-notch-holder {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  /* The notch itself: show as a rounded card with breathing room */
  .v-notch {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 20px !important;
    background: #0A0A0C !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5) !important;
  }
  .v-notch-top { display: none !important; }
  .v-notch-wide, .v-notch-pill {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .v-notch-inner { padding: 18px !important; }

  /* Header */
  .v-head { margin-bottom: 12px !important; gap: 10px !important; }
  .v-head .v-title { font-size: 13px !important; }
  .v-head .v-count { font-size: 11px !important; }
  .v-head .v-gear { width: 22px !important; height: 22px !important; }

  /* Code / command block — readable, scrollable if too wide */
  .v-code-header { font-size: 11px !important; margin-bottom: 6px !important; }
  .v-code {
    font-size: 11px !important;
    line-height: 1.5 !important;
    padding: 10px 12px !important;
    max-height: 200px !important;
    overflow: auto !important;
    white-space: pre !important;
    -webkit-overflow-scrolling: touch;
  }

  /* Action buttons */
  .v-actions { gap: 8px !important; margin-top: 14px !important; }
  .v-btn {
    font-size: 12px !important;
    padding: 10px 8px !important;
    min-width: 0 !important;
  }
  .v-btn kbd, .v-btn .v-kbd {
    font-size: 10px !important;
    padding: 2px 5px !important;
  }

  /* Choice chips / question lists / toasts / keep-awake rows */
  .v-choice, .v-q-item {
    font-size: 12px !important;
    padding: 10px 12px !important;
  }
  .v-toast {
    font-size: 12px !important;
    padding: 10px 12px !important;
  }
  .v-awake-row {
    font-size: 12px !important;
    padding: 10px 12px !important;
  }

  /* Hide label overlay that was positioned at bottom of fake desktop */
  .hero-demo-label {
    position: static !important;
    margin-top: 10px !important;
    text-align: center !important;
    font-size: 11px !important;
    opacity: 0.6;
  }

  /* Story section: let visual and text stack nicely */
  .story-visual { order: -1; }
  .story-text { padding: 0 !important; }

  /* ============ KEYBOARD SHORTCUTS ============ */
  .sc-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .sc-card {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 12px 14px !important;
    border-radius: 10px !important;
  }
  .sc-keys {
    flex-shrink: 0;
    gap: 3px !important;
  }
  .sc-keys kbd {
    font-size: 11px !important;
    padding: 3px 6px !important;
    min-width: 22px !important;
    height: 22px !important;
  }
  .sc-sep { font-size: 10px !important; margin: 0 1px !important; }
  .sc-label {
    font-size: 13px !important;
    text-align: right !important;
    line-height: 1.3 !important;
  }
}