/* SPEC v1.2 landing P0+density+lobby 2026-10-30 — Arenasoft marketing ≤767px
   Inject: <link rel="stylesheet" href="/mkt-mobile.css?v=20261030landing3">
   Desktop ≥768 unchanged. P0 1–5 + density + lobby chips wrap / 1-col cards / CTA dedupe. */

html,
body {
  overflow-x: clip;
  max-width: 100%;
}

.mkt-root,
.mkt-nav,
.mkt-container,
.mkt-hero-wrap,
.mkt-section,
.mkt-why-section,
.mkt-api-card,
.mkt-api-samples,
.mkt-api-samples figure {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  /* —— P0-5) page horizontal scroll = 0 —— */
  html,
  body,
  .mkt-root {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  /* —— density: container gutters —— */
  .mkt-container {
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
  }

  /* —— P0-4) compact header —— */
  .mkt-nav .mkt-container {
    gap: 0.4rem !important;
    padding-top: 0.55rem !important;
    padding-bottom: 0.55rem !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    flex-wrap: nowrap !important;
    min-width: 0 !important;
  }

  .mkt-nav .mkt-brand-link,
  .mkt-nav .mkt-brand-wordmark {
    flex-shrink: 1 !important;
    min-width: 0 !important;
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.05rem !important;
  }

  .mkt-nav-actions {
    gap: 0.3rem !important;
    flex-shrink: 0 !important;
    min-width: 0 !important;
    max-width: 100%;
  }

  .mkt-nav .mkt-lang {
    display: none !important;
  }

  .mkt-nav .mkt-lang-select {
    display: inline-flex !important;
    flex-shrink: 0 !important;
  }

  .mkt-nav .mkt-lang-select select {
    max-width: 5.5rem;
    min-height: 40px !important;
    padding-left: 0.45rem !important;
    padding-right: 0.3rem !important;
    font-size: 12px !important;
  }

  .mkt-nav .mkt-nav-demo-link {
    display: none !important;
  }

  .mkt-nav .mkt-nav-burger {
    flex-shrink: 0 !important;
    min-height: 40px !important;
    padding: 0 0.6rem !important;
    font-size: 12px !important;
  }

  .mkt-nav .mkt-nav-actions > .mkt-btn-primary {
    display: none !important;
  }

  .mkt-nav-links {
    display: none !important;
  }

  .mkt-nav-mobile {
    gap: 0.45rem 0.85rem !important;
    padding-bottom: 0.55rem !important;
  }

  .mkt-nav-mobile a {
    min-height: 40px !important;
    font-size: 13px !important;
  }

  /* —— density: hero —— */
  .mkt-hero-wrap {
    padding-bottom: 0.35rem !important;
  }

  .mkt-hero {
    gap: 1.1rem !important;
    padding-top: 0.85rem !important;
    padding-bottom: 0.5rem !important;
    padding-left: 0.15rem !important;
    padding-right: 0.15rem !important;
  }

  .mkt-hero-copy {
    padding-left: 0.1rem !important;
    padding-right: 0.1rem !important;
    max-width: 100% !important;
  }

  .mkt-eyebrow {
    padding: 0.2rem 0.55rem !important;
    font-size: 10px !important;
  }

  .mkt-h1 {
    margin-top: 0.55rem !important;
    font-size: clamp(1.35rem, 6.2vw, 1.7rem) !important;
    line-height: 1.28 !important;
    padding-left: 0 !important;
    max-width: 100% !important;
  }

  .mkt-hero-sub {
    margin-top: 0.55rem !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    max-width: 100% !important;
  }

  .mkt-hero-copy .mt-9 {
    margin-top: 0.75rem !important;
    gap: 0.45rem !important;
  }

  .mkt-hero-copy .mt-8 {
    margin-top: 0.65rem !important;
    gap: 0.35rem !important;
  }

  .mkt-btn-lg {
    padding: 0.65rem 1rem !important;
    font-size: 13.5px !important;
    min-height: 44px;
  }

  .mkt-btn-primary,
  .mkt-btn-ghost {
    padding: 0.55rem 0.95rem !important;
    font-size: 13px !important;
    min-height: 40px;
  }

  .mkt-meta-chip {
    padding: 0.3rem 0.55rem !important;
    font-size: 11px !important;
  }

  /* hide bulky collage on small phones — denser first screen */
  .mkt-collage {
    display: none !important;
  }

  .mkt-marquee {
    margin-top: 0.35rem !important;
    max-width: 100%;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .mkt-marquee-item {
    padding: 0.35rem 0.55rem !important;
    font-size: 11px !important;
  }

  /* —— P0-3) left handles —— */
  .mkt-root > [class*="handle"],
  .mkt-root > [class*="rail"],
  .mkt-root > [class*="peek"],
  .mkt-hero-wrap > [aria-hidden="true"][style*="fixed"],
  .mkt-root a[class*="side-"],
  .mkt-root button[class*="side-"],
  [class*="crisp"],
  [id*="crisp"],
  iframe[title*="chat" i] {
    display: none !important;
  }

  /* —— density: sections —— */
  .mkt-section {
    padding-top: 1.75rem !important;
    padding-bottom: 1.75rem !important;
  }

  .mkt-section-products {
    padding-top: 1.25rem !important;
  }

  .mkt-section-catalog {
    padding-top: 0.75rem !important;
  }

  .mkt-section .mb-8 {
    margin-bottom: 0.85rem !important;
  }

  .mkt-h2 {
    font-size: 1.35rem !important;
    line-height: 1.3 !important;
  }

  .mkt-lead {
    margin-top: 0.4rem !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  .mkt-pillar-grid {
    gap: 0.65rem !important;
    grid-template-columns: 1fr 1fr !important;
    min-width: 0 !important;
  }

  /* lobby catalog cards: 1-col full width (no blurb ellipsis) */
  .mkt-section-catalog .lobby-cat-cover-grid,
  .mkt-section-catalog .mkt-vertical-grid,
  .mkt-section-catalog .mkt-category-grid {
    gap: 0.75rem !important;
    grid-template-columns: 1fr !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .lobby-cat-cover-grid .mkt-product-blurb {
    display: block !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    overflow: visible !important;
    max-width: none !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  .lobby-cat-cover-grid .mkt-product {
    padding: 0.75rem 0.85rem !important;
  }

  .lobby-cat-cover-grid .mkt-product-title {
    font-size: 1.05rem !important;
  }

  .mkt-fairness-trust-grid {
    grid-template-columns: 1fr !important;
    gap: 1.35rem !important;
    min-width: 0 !important;
  }

  .mkt-pillar-body,
  .mkt-product {
    padding: 0.65rem 0.7rem !important;
  }

  .mkt-pillar-label,
  .mkt-product-title {
    font-size: 0.92rem !important;
  }

  .mkt-pillar-hint,
  .mkt-product-blurb {
    font-size: 11.5px !important;
    line-height: 1.4 !important;
  }

  .mkt-pillar-note {
    font-size: 11px !important;
    margin-top: 0.25rem !important;
  }

  /* lobby chips: wrap to 2–3 rows, no horizontal slide */
  .lobby-cat-chips,
  .lobby-catalog .lobby-cat-chips,
  .lobby-catalog-teaser .lobby-cat-chips {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.35rem !important;
    margin-bottom: 0.65rem !important;
    max-width: 100% !important;
    overflow: visible !important;
    overflow-x: visible !important;
    padding-bottom: 0.15rem !important;
    -webkit-overflow-scrolling: auto;
  }

  .lobby-cat-chip {
    flex: 0 0 auto !important;
    padding: 0.35rem 0.65rem !important;
    font-size: 12px !important;
    min-height: 36px;
    white-space: nowrap !important;
  }

  /* catalog header duplicate CTA — products section already has primary */
  .mkt-section-catalog > .mkt-container > .mb-8 > a.mkt-btn-ghost[href="/lobby"],
  .mkt-section-catalog a.mkt-btn-ghost.shrink-0[href="/lobby"] {
    display: none !important;
  }

  /* —— P0-2) why not sticky + density —— */
  .mkt-why-accent {
    position: static !important;
    top: auto !important;
    margin-bottom: 0.65rem !important;
    padding: 0.85rem 0.95rem !important;
  }

  .mkt-why-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
  }

  .mkt-why-accent-label {
    margin-bottom: 0.25rem !important;
    font-size: 11px !important;
  }

  .mkt-why-accent-body {
    margin-top: 0.45rem !important;
    font-size: 0.92rem !important;
    line-height: 1.45 !important;
  }

  .mkt-why-accent-sub {
    margin-top: 0.4rem !important;
    font-size: 0.8rem !important;
  }

  .mkt-why-row,
  .mkt-fairness-row,
  .mkt-trust-row {
    padding: 0.7rem 0 !important;
    gap: 0.55rem !important;
  }

  .mkt-why-row-copy h3,
  .mkt-fairness-row-copy h3,
  .mkt-trust-row h3 {
    font-size: 0.92rem !important;
  }

  .mkt-why-row-copy p,
  .mkt-fairness-row-copy p,
  .mkt-trust-row p {
    margin-top: 0.2rem !important;
    font-size: 0.82rem !important;
    line-height: 1.45 !important;
  }

  /* —— P0-1) JSON + density —— */
  .mkt-api-card {
    padding: 0.85rem !important;
  }

  .mkt-api-card,
  .mkt-api-samples,
  .mkt-api-samples figure {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
  }

  .mkt-api-samples {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.65rem !important;
  }

  .mkt-api-points {
    gap: 0.5rem !important;
  }

  .mkt-api-points article {
    padding: 0.65rem 0.75rem !important;
  }

  .mkt-api-points h4 {
    font-size: 0.88rem !important;
  }

  .mkt-api-points p,
  .mkt-api-sub {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }

  pre.mkt-code,
  .mkt-code {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    white-space: pre !important;
    word-break: normal !important;
    box-sizing: border-box !important;
    padding: 0.65rem 0.75rem !important;
    font-size: 10.5px !important;
    line-height: 1.45 !important;
  }

  .mkt-code code {
    display: block;
    min-width: max-content;
  }

  .mkt-marquee-track {
    width: max-content;
  }

  /* fairness / license / contact denser */
  .mkt-fairness-trust-section .mkt-container {
    padding-top: 0 !important;
  }

  .mkt-license-band {
    margin-top: 1.15rem !important;
  }

  .mkt-license-band-inner {
    gap: 0.75rem !important;
    padding-top: 0.85rem !important;
    padding-bottom: 0.85rem !important;
  }

  .mkt-contact {
    gap: 1rem !important;
  }

  .mkt-form.space-y-3\.5,
  .mkt-form {
    gap: 0.55rem !important;
  }

  .mkt-field {
    padding: 0.55rem 0.7rem !important;
    font-size: 14px !important;
    min-height: 40px;
  }

  .mkt-footer-main {
    gap: 1rem !important;
    padding-top: 1.25rem !important;
    padding-bottom: 1rem !important;
  }

  .mkt-contact,
  .mkt-form,
  .mkt-field {
    max-width: 100% !important;
    min-width: 0 !important;
  }
}
