/* ==========================================================================
   STUDIO DARDO · RESPONSIVIDADE MOBILE & TOUCH TARGETS AUDITADOS
   Compatibilidade canônica: 320px (iPhone SE), 375px, 390px, 768px (Tablets)
   ========================================================================== */

/* --- TABLETS E TELAS MÉDIAS (<= 900px) --- */
@media (max-width: 900px) {
  .container {
    padding: 40px 20px;
  }
  
  header {
    padding: 50px 0 40px;
  }
  
  h1 {
    font-size: clamp(24px, 5.5vw, 42px);
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-wrap: balance;
  }
  
  .hero-title-line,
  .hero-title-brand {
    white-space: normal;
    display: inline;
  }
  
  h2 {
    font-size: clamp(19px, 4vw, 28px);
    line-height: 1.28;
    text-wrap: balance;
  }
  
  .subtitle {
    font-size: clamp(13.5px, 3.2vw, 15px);
    line-height: 1.65;
  }
  
  /* Simulador Showcase Layout */
  .simulator-container {
    grid-template-columns: 1fr;
    gap: 32px;
    width: 100%;
  }
  
  .inline-app-wrapper {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* --- SMARTPHONES PADRÃO E TABLETS PEQUENOS (<= 768px) --- */
@media (max-width: 768px) {
  .container {
    padding: 36px 16px;
  }
  
  .brand-nav {
    padding: 6px 16px;
    gap: 10px;
    margin-bottom: 24px;
  }
  
  .brand-logo-img {
    height: 22px;
  }
  
  .brand-logo-text {
    font-size: 10.5px;
    letter-spacing: 0.2em;
  }
  
  .client-tag {
    font-size: 9.5px;
    letter-spacing: 0.12em;
  }
  
  .badge {
    font-size: 10px;
    padding: 6px 16px;
    letter-spacing: 0.12em;
    margin-bottom: 18px;
  }

  /* Stacking Cards */
  .stack-section {
    margin: 30px 0 60px;
  }
  
  .stack-container {
    gap: 24px;
    padding: 16px 0 60px;
  }
  
  .stack-card {
    padding: clamp(20px, 4.5vw, 28px) clamp(16px, 4vw, 22px);
    min-height: auto;
    top: calc(65px + var(--card-index, 0) * 12px);
    border-radius: 20px;
  }
  
  .stack-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
  }
  
  .stack-tag {
    font-size: 9.5px;
    padding: 4px 10px;
    letter-spacing: 0.08em;
  }
  
  .stack-number {
    font-size: 11.5px;
  }
  
  .stack-body {
    margin: 8px 0 14px;
  }
  
  .stack-body h3 {
    font-size: clamp(15px, 4vw, 17px);
    margin-bottom: 8px;
    line-height: 1.35;
    text-wrap: balance;
  }
  
  .stack-body p {
    font-size: clamp(13px, 3.4vw, 14px);
    line-height: 1.6;
  }
  
  .stack-footer {
    padding: 10px 14px;
    border-radius: 8px;
  }
  
  .stack-footer p {
    font-size: clamp(12px, 3.2vw, 13px);
  }

  /* Seção 2: Demonstração Interativa */
  .white-showcase-section {
    padding: 50px 0 70px;
    width: 100%;
    overflow: hidden;
  }
  
  .white-showcase-inner {
    padding: 0 16px;
    box-sizing: border-box;
  }
  
  .card-light {
    padding: 20px 16px;
    border-radius: 16px;
    margin-bottom: 14px !important;
  }
  
  .card-light .card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
  }
  
  .card-light .card-header h3 {
    font-size: clamp(13.5px, 3.6vw, 15.5px);
    font-weight: 500;
    line-height: 1.35;
    word-break: break-word;
    color: #000000;
    text-wrap: balance;
    flex: 1;
  }
  
  .card-light p {
    font-size: clamp(12.5px, 3.3vw, 13.5px);
    line-height: 1.55;
    margin-bottom: 0;
  }

  /* Phone Frame Contido */
  .inline-app-wrapper {
    width: 100%;
    max-width: 360px;
    padding: 0;
    margin: 0 auto;
  }
  
  .phone-frame {
    width: 100% !important;
    max-width: 100% !important;
    height: 700px;
    border: none !important;
    box-shadow: none !important;
    border-radius: 28px !important;
    box-sizing: border-box !important;
  }
  
  /* Touch Targets (Mínimo 44px) */
  .inline-expand-trigger {
    min-height: 44px;
    padding: 10px 20px;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .floating-nav-item {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
  
  .app-floating-nav {
    height: 54px;
    bottom: 10px;
    gap: 6px;
  }
  
  .app-grid-add-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
  }
  
  .app-fav-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
  }
  
  .app-bell-btn,
  .app-filter-btn {
    width: 38px;
    height: 38px;
  }
  
  .hero-btn-shop,
  .btn-select {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .cart-btn-qty {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Indicador e Ajustes da Tabela ROI */
  .table-scroll-hint {
    display: flex !important;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  
  .table-scroll-hint i,
  .table-scroll-hint svg {
    width: 14px;
    height: 14px;
    color: var(--ef-yellow);
  }
  
  .table-container {
    border-radius: 14px;
    position: relative;
  }
  
  table {
    min-width: 480px;
  }
  
  th, td {
    padding: 12px 14px;
    font-size: 12.5px;
  }
  
  th {
    font-size: 10.5px;
  }
  
  .highlight-metric {
    font-size: 11.5px;
    padding: 4px 8px;
  }

  /* Footer */
  footer {
    padding: 50px 0 30px;
  }
  
  .footer-bottom-bar {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    font-size: 10.5px;
  }
}

/* --- SMARTPHONES PEQUENOS (<= 480px) --- */
@media (max-width: 480px) {
  .container {
    padding: 28px 12px;
  }
  
  header {
    padding: 36px 0 28px;
  }
  
  h1 {
    font-size: clamp(20px, 6vw, 28px);
    letter-spacing: 0.03em;
  }
  
  h2 {
    font-size: clamp(17px, 4.8vw, 22px);
  }
  
  .white-showcase-section {
    padding: 40px 0 55px;
  }
  
  .white-showcase-inner {
    padding: 0 10px;
  }
  
  .card-light {
    padding: 16px 14px;
  }
  
  .card-light .card-header h3 {
    font-size: clamp(12.5px, 3.6vw, 14.5px);
  }
  
  .phone-frame {
    height: 660px;
    border: none !important;
    box-shadow: none !important;
    border-radius: 24px !important;
  }
  
  .app-products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  
  .app-grid-card {
    padding: 6px;
    border-radius: 10px;
  }
  
  .app-card-media {
    height: 74px;
  }
  
  .app-grid-title {
    font-size: 8.8px;
    height: 22px;
    line-height: 1.25;
  }
  
  .app-grid-dilution {
    font-size: 7px;
    margin-bottom: 2px;
  }
  
  .app-grid-price {
    font-size: 9.8px;
  }
  
  .app-grid-price small {
    font-size: 7px;
  }
  
  .module-select-card {
    padding: 22px 16px;
    border-radius: 14px;
  }
  
  .btn-select {
    min-height: 44px;
    font-size: 11px;
  }
}

/* --- TELAS EXTRA PEQUENAS (<= 340px, ex: iPhone SE 320px) --- */
@media (max-width: 340px) {
  .container {
    padding: 20px 8px;
  }
  
  h1 {
    font-size: 19px;
    letter-spacing: 0.02em;
  }
  
  h2 {
    font-size: 16px;
  }
  
  .white-showcase-inner {
    padding: 0 6px;
  }
  
  .card-light {
    padding: 14px 10px;
  }
  
  .card-light .card-header h3 {
    font-size: 12px;
  }
  
  .card-light p {
    font-size: 11.5px;
  }
  
  .stack-card {
    padding: 16px 12px;
    border-radius: 14px;
  }
  
  .stack-body h3 {
    font-size: 14px;
  }
  
  .stack-body p {
    font-size: 12px;
  }
  
  .phone-frame {
    height: 600px;
    border: none !important;
    box-shadow: none !important;
    border-radius: 18px !important;
  }
  
  .app-card-media {
    height: 64px;
  }
  
  .app-grid-title {
    font-size: 8px;
    height: 20px;
  }
  
  .app-grid-price {
    font-size: 9px;
  }
}
