/* TokenPilot mobile optimization layer
 * Purpose: small, low-risk overrides for Android/PWA and narrow screens.
 */
@import url("./header-logo.css?v=20260522-header-logo-tokens");

@media (max-width: 820px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    touch-action: manipulation;
  }

  .container,
  nav.top .inner {
    width: 100%;
    padding-left: max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
  }

  nav.top .inner {
    gap: 14px;
  }

  nav.top .btn,
  .hero-cta .btn {
    min-height: 46px;
    justify-content: center;
  }

  .hero {
    padding-top: 42px;
    padding-bottom: 68px;
  }

  .hero .container {
    gap: 42px;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 12vw, 3.35rem);
    line-height: 1.04;
    margin-bottom: 22px;
  }

  .hero-sub,
  .section-lead {
    font-size: 1rem;
    line-height: 1.62;
  }

  .hero-cta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-hash {
    align-items: flex-start;
    word-break: break-word;
  }

  .hero-ticker {
    margin-top: 38px;
    gap: 16px;
  }

  .ticker-bar {
    height: 32px;
  }

  .ticker-track {
    padding: 7px 0;
    font-size: 0.7rem;
    gap: 30px;
    animation-duration: 75s;
  }

  .radar-wrap {
    max-width: min(340px, 88vw);
  }

  .radar-label {
    font-size: 0.62rem;
  }

  .radar-label strong {
    font-size: 0.7rem;
  }

  .section-eyebrow {
    align-items: flex-start;
    flex-wrap: wrap;
    line-height: 1.45;
  }

  .section-eyebrow .hash {
    width: 100%;
    margin-left: 40px;
  }

  .section-title {
    font-size: clamp(1.9rem, 9vw, 2.65rem);
  }

  .adv-card,
  .score-visual {
    padding: 24px 20px;
  }
}

@media (max-width: 560px) {
  .logo {
    font-size: 1.18rem;
  }

  nav.top .btn {
    padding: 10px 12px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .hero-eyebrow {
    max-width: 100%;
    font-size: 0.64rem;
    line-height: 1.35;
    white-space: normal;
  }

  .hero-ticker {
    grid-template-columns: 1fr;
  }

  .tick-item .tick-value {
    font-size: 1.2rem;
  }

  .score-grid {
    grid-template-columns: 1fr;
  }

  .score-number {
    font-size: 3.5rem;
  }
}

/* Info-App specific refinements */
@media (max-width: 560px) {
  .info-shell {
    max-width: none;
    width: 100%;
  }

  .info-header {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  .info-main {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  .info-icon-btn {
    width: 40px;
    height: 40px;
  }

  .info-header-brand h1 {
    font-size: 17px;
  }

  .info-tabs {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .info-tabs::-webkit-scrollbar {
    display: none;
  }

  .info-tab {
    min-height: 44px;
    white-space: nowrap;
  }

  .info-card,
  .info-empty {
    border-radius: 14px;
  }

  .info-footer {
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }
}