/* Ajustes de uso por toque. A aparência de desktop permanece em app.css. */
.mobile-nav { display: none; }
button, a, input { touch-action: manipulation; }
body:has(dialog[open]) { overflow: hidden; }
dialog { overscroll-behavior: contain; scrollbar-gutter: stable; }
.close { min-width: 44px; min-height: 44px; }
form label > input:not([type=checkbox]) { font-size: 16px; min-height: 48px; }
.check input { flex: 0 0 22px; width: 22px; height: 22px; }
.check { min-height: 44px; }
button:disabled { opacity: .65; cursor: wait; }

@media (max-width: 700px) {
  html { scroll-padding-top: 88px; }
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .wrap { width: calc(100% - 32px); }
  .demo-banner { padding: 7px 12px; font-size: 9px; letter-spacing: 1px; line-height: 1.5; }
  .demo-banner span { font-size: 10px; margin-top: 2px; }
  .site-header {
    position: sticky; top: 0; z-index: 10; height: 68px;
    background: var(--paper); width: 100%; padding: 0 max(16px, env(safe-area-inset-left));
  }
  .brand { font-size: 22px; letter-spacing: -1px; flex-shrink: 0; }
  .brand-mark { margin-right: 7px; }
  .site-header .small { min-height: 44px; font-size: 12px; gap: 8px; padding: 10px 12px; }
  .hero { padding: 25px 0 22px; gap: 0; }
  .hero-copy { min-width: 0; }
  .hero .eyebrow { font-size: 9px; letter-spacing: 1px; margin: 0; }
  .hero h1 { font-size: clamp(30px, 8.3vw, 46px); line-height: 1.17; letter-spacing: -1.6px; margin: 18px 0 15px; }
  .hero h1 > span:after { height: 11px; }
  .hero-description { font-size: 15px; line-height: 1.65; margin: 0; max-width: 100%; }
  .hero-actions { display: grid; gap: 6px; margin-top: 20px; }
  .hero-actions .button { width: 100%; min-height: 52px; justify-content: space-between; font-size: 15px; padding: 15px 18px; }
  .hero-actions .text-link { display: flex; align-items: center; justify-content: center; min-height: 44px; font-size: 13px; }
  .hero-note { margin-top: 12px; font-size: 12px; line-height: 1.5; }
  .hero-note div > span { margin-top: 2px; }
  .shield { flex: 0 0 31px; }
  /* No celular, levar o usuário aos bolões antes da ilustração decorativa. */
  .hero-art, .benefit-strip { display: none; }
  .explore { padding: 24px 0 30px; border-top: 1px solid var(--border); }
  .eyebrow { font-size: 10px; letter-spacing: 1.1px; line-height: 1.5; }
  .section-heading h2, .how h2 { font-size: 27px; line-height: 1.2; letter-spacing: -1px; }
  .filter-row { gap: 12px; margin: 18px 0; }
  .search { order: -1; min-height: 50px; border-radius: 10px; background: white; padding: 10px 13px; }
  .search input { font-size: 16px; min-width: 0; width: 100%; }
  .tabs { display: grid; grid-template-columns: 1.3fr .85fr 1.15fr; gap: 5px; }
  .tabs button { min-height: 46px; padding: 9px 5px; font-size: 12px; white-space: normal; line-height: 1.4; border: 1px solid var(--border); }
  .tabs button span { display: none; }
  .tabs button.selected { border-color: var(--ink); }
  .cards { gap: 18px; }
  .card { border-radius: 15px; }
  .card-cover { height: 108px; padding: 12px 16px; }
  .cover-word { bottom: 14px; left: 16px; max-width: none; font-size: 23px; }
  .cover-icon { right: 18px; bottom: 5px; font-size: 56px; }
  .badge { font-size: 9px; }
  .card-body { padding: 18px; }
  .card-category { font-size: 10px; letter-spacing: .8px; line-height: 1.5; }
  .card h3 { font-size: 21px; margin-bottom: 7px; }
  .card-description { font-size: 14px; line-height: 1.55; margin-bottom: 17px; }
  .card-meta small { font-size: 11px; }
  .price { font-size: 25px; }
  .price span, .remaining { font-size: 12px; line-height: 1.5; }
  .progress { margin-top: 14px; height: 6px; }
  .capacity { font-size: 11px; gap: 8px; }
  .card-button { min-height: 50px; align-items: center; font-size: 14px; border-radius: 8px; margin-top: 16px; }
  .how { padding: 24px 20px; margin-bottom: 30px; }
  .how > div > p:not(.eyebrow), .how li p { font-size: 14px; line-height: 1.6; }
  .how h3 { font-size: 16px; }
  .how .button { width: 100%; min-height: 50px; justify-content: space-between; font-size: 14px; }
  .how li { gap: 14px; }
  footer { gap: 12px; padding-bottom: 20px; }
  footer > p { font-size: 13px; line-height: 1.6; }
  footer > div { display: flex; gap: 16px; }
  .footer-link { min-height: 44px; font-size: 13px; }
  .legal-note { font-size: 12px !important; }
  .mobile-nav {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
    padding: 8px max(12px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    background: var(--paper); border-top: 1px solid var(--border); box-shadow: 0 -4px 20px #142b2509;
  }
  .mobile-nav a, .mobile-nav button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    min-height: 54px; min-width: 0; background: transparent; border: 0; border-radius: 9px;
    color: var(--ink); font-size: 11px; font-weight: 600; line-height: 1.3;
  }
  .mobile-nav button { background: var(--lime); }
  .mobile-nav svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; }
  dialog {
    position: fixed; inset: auto 0 0; margin: 0; width: 100%; max-width: none;
    max-height: calc(100dvh - 16px); border-radius: 20px 20px 0 0;
    padding: 28px 20px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto;
  }
  #signup { height: calc(100dvh - 16px); }
  dialog h2 { margin: 15px 40px 10px 0; font-size: 28px; }
  dialog p, .detail-list { font-size: 14px; }
  .close { top: 8px; right: 8px; background: #edf0e5; border-radius: 50%; z-index: 1; }
  form label { font-size: 14px; margin-top: 18px; }
  form label > input:not([type=checkbox]) { min-height: 52px; padding: 13px; border-radius: 9px; }
  .field-hint { font-size: 12px !important; line-height: 1.6; }
  .check { gap: 12px; line-height: 1.7; }
  .inline-link { font-size: 14px; line-height: 1.8; padding: 4px 0; }
  .submit { min-height: 52px; font-size: 15px; }
  #form-message { font-size: 14px; }
  #empty { font-size: 15px; line-height: 1.6; padding: 12px 0; }
}

@media (max-width: 359px) {
  .brand { font-size: 20px; }
  .brand-mark { width: 26px; height: 29px; }
  .site-header .small { font-size: 11px; gap: 4px; padding: 10px; }
  .cover-word { font-size: 21px; }
  .cover-icon { font-size: 45px; }
  .card-body { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
