/**
 * Landing pages (index + early-access) — tablet/mobile fixes.
 * Load after inline styles so these rules win.
 */

@media (max-width: 960px) {
  section.block { padding: 100px 0; }
  .section-head { margin-bottom: 56px; }
}

@media (max-width: 720px) {
  section.block { padding: 72px 0; }

  nav.top { padding: 14px 0; }
  nav.top .row { gap: 12px; }
  .wordmark { font-size: 22px; flex-wrap: wrap; }
  .wordmark .deva { font-size: 14px; }
  nav.top .cta {
    font-size: 11px;
    padding: 8px 12px;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .hero {
    min-height: auto;
    padding: 92px 0 48px;
    overflow-x: clip;
  }

  h1.hero-title {
    font-size: clamp(34px, 9.5vw, 52px);
    line-height: 1.02;
    margin: 18px 0 22px;
  }

  .lede {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 100%;
  }

  .eyebrow {
    font-size: 10px;
    letter-spacing: 0.16em;
    gap: 10px;
    flex-wrap: wrap;
  }

  .hero-ticker {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 8px 12px;
    margin-bottom: 28px;
  }
  .hero-ticker .lbl { grid-column: 1; }
  .hero-ticker .count { grid-column: 2; grid-row: 1; align-self: center; }
  .hero-ticker .feed { grid-column: 1 / -1; grid-row: 2; height: auto; min-height: 44px; }
  .hero-ticker .feed-row {
    position: relative;
    inset: auto;
    flex-wrap: wrap;
    row-gap: 4px;
    line-height: 1.35;
  }
  .hero-ticker .feed-row .role { font-size: 15px; }
  .hero-ticker .feed-row .grade { margin-left: 0; }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 12px;
  }
  .btn-primary,
  .btn-ghost,
  a.btn-ghost {
    width: 100%;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
  }

  /* Hero stage: stack readout then globe */
  .hero-stage {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    min-height: auto !important;
    gap: 20px !important;
    width: 100%;
    overflow: visible;
  }
  .hero-readout { order: 1; width: 100%; }
  .hero-orb-box { order: 2; width: 100%; }

  .hero-readout .hr-row {
    flex: 1 1 calc(50% - 10px);
    min-width: 140px;
    border-bottom: none;
    padding: 8px 0;
  }
  .hero-readout .hr-row .n { font-size: 11px; }
  .hero-readout .hr-row .g { font-size: 20px; }
  .hero-readout .hr-overall .v { font-size: 32px; }

  .hero-orb-box {
    min-height: min(88vw, 400px) !important;
    height: auto !important;
    padding: 8px 4px 16px;
    overflow: hidden;
    box-sizing: border-box;
  }

  .hero-orb-viewport {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: min(100%, 360px) !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
  }

  .hero-orb-viewport .center-grade {
    font-size: clamp(52px, 20vw, 108px) !important;
    max-width: 92%;
    line-height: 0.95;
  }

  .hero-orb-viewport .grade-label {
    top: 5% !important;
    font-size: 8px;
    letter-spacing: 0.14em;
    gap: 6px;
  }
  .hero-orb-viewport .grade-label::before,
  .hero-orb-viewport .grade-label::after {
    width: 10px;
  }

  .hero-orb-viewport .io-frame {
    font-size: 7px;
    letter-spacing: 0.08em;
    white-space: normal;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    line-height: 1.35;
    max-width: 94%;
    gap: 4px;
  }
  .hero-orb-viewport .io-frame.in { top: 16% !important; }
  .hero-orb-viewport .io-frame.out { bottom: 4% !important; }

  .hero-orb-viewport .grade-sub {
    top: auto !important;
    bottom: 10% !important;
    font-size: clamp(11px, 3.1vw, 14px) !important;
    width: 94% !important;
    max-width: 20em;
    white-space: normal;
    overflow-wrap: break-word;
    hyphens: auto;
    padding: 0 6px;
    box-sizing: border-box;
  }

  .hero-orb-box .frame-label.bl,
  .hero-orb-box .frame-label.br,
  .hero-stage .frame-label.bl,
  .hero-stage .frame-label.br {
    display: none;
  }
  .hero-orb-box .frame-label.tl,
  .hero-orb-box .frame-label.tr {
    font-size: 7px;
    letter-spacing: 0.08em;
    max-width: 42%;
    line-height: 1.3;
  }
  .hero-stage .corner { display: none; }

  .section-head h2 {
    font-size: clamp(30px, 8vw, 44px);
    line-height: 1.05;
  }
  .section-head .label {
    min-width: 0;
    width: 100%;
    font-size: 10px;
  }

  .mode { padding: 28px 22px 32px; }
  .mode .title { font-size: clamp(22px, 5vw, 28px); }

  .early-access-wrap {
    gap: 28px;
    padding-top: 32px;
  }
  .ea-form-card .form-actions .btn-primary {
    width: 100%;
  }

  .manifesto-phrase {
    font-size: clamp(22px, 6vw, 32px) !important;
    padding: 0 8px;
  }
  .manifesto-phrase .deva { font-size: clamp(20px, 5vw, 28px); }

  .sample-cta { flex-direction: column; align-items: flex-start; gap: 16px; }
  .sample-cta .btn-primary { width: 100%; }

  footer .foot-grid { gap: 32px; }

  .pentagon-wrap,
  .dim-grid {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .result-card { overflow-x: auto; }
  .result-head .firm-block h3 { font-size: clamp(22px, 5.5vw, 32px); }
  .flow-step { padding: 28px 20px 36px; }
}

@media (min-width: 721px) and (max-width: 1100px) {
  .hero-orb-box { min-height: 440px; }
  .hero-orb-viewport .grade-sub {
    font-size: clamp(12px, 1.6cqw, 15px);
    width: 90%;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero-ticker { padding: 12px 18px; }
  .hero-portals .marquee-head { padding: 0 18px; }

  .hero-orb-box {
    min-height: min(92vw, 340px) !important;
  }

  .hero-orb-viewport .center-grade {
    font-size: clamp(44px, 18vw, 80px) !important;
  }

  .hero-orb-viewport .io-frame.in { top: 14% !important; }
  .hero-orb-viewport .grade-sub { bottom: 8% !important; }
}

@media (max-width: 380px) {
  nav.top .cta { padding: 8px 10px; font-size: 10px; }
  .wordmark .deva { display: none; }
}
