/* ═══════════════════════════════════════════════════════════════════
   THEC1RCLE — mobile.css
   Responsive overhaul: tablet (max-width:1024px) + mobile (max-width:768px)
   ⚠️  DO NOT edit desktop styles here — all rules live inside media queries
   ⚠️  Class names match the live index.html exactly
═══════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────
   TABLET  ≤ 1024px
───────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {

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

  *, *::before, *::after {
    box-sizing: border-box;
  }

  /* Shell */
  .shell {
    padding: 0 24px;
    width: 100%;
  }

  /* Nav — show hamburger, hide inline links */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(10,10,10,0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 16px;
    padding: 12px;
    gap: 4px;
    z-index: 300;
  }
  .nav-links.is-open { display: flex; }

  .nav {
    position: relative;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  /* Hamburger button — injected by mobile.js */
  .nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
  }
  .nav-hamburger:hover { background: rgba(255,255,255,0.1); }
  .nav-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.2s;
  }
  .nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-link {
    width: 100%;
    padding: 14px 18px;
    min-height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
  }
  .nav-link.is-active {
    background: linear-gradient(180deg, #fff, #d9d9d9);
    color: #000;
  }

  /* Section padding */
  .section-pad { padding: 80px 0; }

  /* Section headings */
  h2.section-title { font-size: clamp(2rem, 6vw, 4rem); }

  /* Feature rows → single col */
  .feature-row { grid-template-columns: 1fr; gap: 40px; }
  .feature-row.reverse > :first-child { order: initial; }

  /* Problem split stays 2-col at tablet */
  .problem-split { grid-template-columns: 1fr 1fr; }

  /* Flow: 3 cols at tablet */
  .flow { grid-template-columns: repeat(3, 1fr); }

  /* Roles: 2 cols at tablet */
  .roles { grid-template-columns: 1fr 1fr; }

  /* Trust: 2 cols at tablet */
  .trust-grid { grid-template-columns: 1fr 1fr; }

  /* Dashboard */
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-side { display: none; }
  .kpi-row { grid-template-columns: 1fr 1fr; }

  /* Hero font */
  h1.hero-title { font-size: clamp(2.8rem, 8vw, 6rem) !important; }
}


/* ─────────────────────────────────────────────────────────────────
   MOBILE  ≤ 768px
───────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

  /* ── Global */
  html, body {
    overflow-x: hidden;
    width: 100%;
  }
  *, *::before, *::after { box-sizing: border-box; }

  .shell {
    padding: 0 20px;
    width: 100%;
  }

  /* ── All buttons / links: 44px min touch target */
  .btn {
    min-height: 44px;
    padding: 13px 22px;
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  /* ══════════════════════════════
     1. NAVBAR
  ══════════════════════════════ */
  .nav-wrap {
    top: 10px;
    padding: 0 12px;
  }
  .nav {
    padding: 8px 8px 8px 14px;
    position: relative;
    justify-content: space-between;
  }
  .nav-brand-name { font-size: 14px; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(8,8,8,0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 16px;
    padding: 12px;
    gap: 4px;
    z-index: 300;
  }
  .nav-links.is-open { display: flex; }

  .nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    flex-shrink: 0;
  }
  .nav-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.2s;
  }
  .nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-link {
    width: 100%;
    padding: 14px 18px;
    min-height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
  }

  /* ══════════════════════════════
     2. HERO
  ══════════════════════════════ */
  .hero {
    padding: 100px 0 60px;
    min-height: 100dvh;
  }
  .hero-kicker {
    font-size: clamp(0.55rem, 2.2vw, 0.72rem);
    letter-spacing: 2px;
  }
  h1.hero-title {
    font-size: clamp(2.2rem, 10vw, 4rem) !important;
    letter-spacing: -0.03em;
    max-width: 100%;
    line-height: 0.95;
  }
  .hero-sub {
    font-size: clamp(0.9rem, 3.5vw, 1rem);
    line-height: 1.6;
    padding: 0 4px;
    margin-top: 20px;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
  }
  .hero-ctas .btn {
    width: 100%;
    max-width: 320px;
    min-height: 52px;
  }
  .hero-rating {
    font-size: 11px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
  .brand-mega {
    font-size: clamp(72px, 38vw, 180px);
    bottom: -30px;
  }

  /* ══════════════════════════════
     MARQUEE
  ══════════════════════════════ */
  .marquee-track span {
    font-size: 13px;
    gap: 24px;
  }

  /* ══════════════════════════════
     SECTIONS — global
  ══════════════════════════════ */
  .section-pad { padding: 60px 0; }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
  }
  .section-head .right { max-width: 100%; }

  .section-num { font-size: clamp(0.68rem, 2.5vw, 0.82rem); }

  h2.section-title {
    font-size: clamp(1.8rem, 8vw, 3.2rem);
    max-width: 100%;
    line-height: 0.93;
  }

  p.section-desc {
    font-size: clamp(0.88rem, 3.5vw, 1rem);
    line-height: 1.6;
    max-width: 100%;
    margin-top: 14px;
  }

  /* ══════════════════════════════
     3. SECTION 00 — PROBLEM
  ══════════════════════════════ */
  .problem-split {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
  }
  .problem-col {
    padding: 24px 20px;
    width: 100%;
  }
  .problem-col h3 {
    font-size: clamp(1.4rem, 6vw, 2rem);
    line-height: 1.05;
  }
  .problem-list { gap: 12px; margin-top: 22px; }
  .problem-item p { font-size: 13px; }

  /* ══════════════════════════════
     4. SECTION 01 — HOW IT WORKS
  ══════════════════════════════ */
  .flow {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 32px;
  }
  .flow-step { padding: 20px; }
  .flow-step-t { font-size: 15px; margin-top: 12px; }
  .flow-step-d { font-size: 12px; }

  /* B2B 5-step flow inside hosts section */
  .hosts-section .flow,
  .flow[style] {
    grid-template-columns: 1fr !important;
    margin-top: 40px !important;
  }

  /* ══════════════════════════════
     5. SECTION 02 — DISCOVER
  ══════════════════════════════ */
  .feature-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .feature-row.reverse > :first-child { order: initial; }

  .phone-mock {
    width: 100%;
    max-width: 100%;
    padding: 18px;
  }
  .event-name { font-size: 15px; }
  .event-venue { font-size: 11px; }

  .chips { flex-wrap: wrap; gap: 8px; margin-top: 20px; }
  .chip { font-size: 12px; padding: 8px 14px; }

  /* ══════════════════════════════
     6. SECTION 03 — PLUS ONE
  ══════════════════════════════ */
  .match-cluster {
    position: static;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    width: 100%;
  }
  .match-card {
    position: static !important;
    width: 100%;
    max-width: 340px;
    top: auto !important;
    left: auto !important;
    right: auto !important;
  }

  /* ══════════════════════════════
     7. SECTION 04 — CHATS
  ══════════════════════════════ */
  .chat-stack {
    max-width: 100%;
    width: 100%;
  }
  .msg { font-size: 13px; max-width: 88%; }
  .chat-live-count { font-size: 11px; }

  /* ══════════════════════════════
     8. SECTION 05 — TICKETS
  ══════════════════════════════ */
  .ticket-stage {
    min-height: auto;
    padding: 20px 0 40px;
  }
  .ticket {
    width: 100%;
    max-width: 340px;
    transform: rotate(-1.5deg);
    padding: 22px 18px;
  }
  .ticket-name {
    font-size: clamp(1.6rem, 8vw, 2.8rem);
    margin-top: 20px;
  }
  .ticket-grid { gap: 14px; }
  .ticket-qr { right: 16px; }

  /* ══════════════════════════════
     9. SECTION 06 — LIVE CITY
  ══════════════════════════════ */
  .live-stage { padding: 0; }
  .live-pulse {
    width: 100%;
    max-width: 320px;
    margin: 24px auto 32px;
  }
  .city-pills {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    justify-content: flex-start;
    padding-bottom: 8px;
    margin-top: 32px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .city-pills::-webkit-scrollbar { display: none; }
  .city-pill { flex-shrink: 0; }

  /* ══════════════════════════════
     10. SECTION 07 — DASHBOARD
  ══════════════════════════════ */
  .hosts-section { padding: 60px 0; }
  .dashboard {
    margin-top: 32px;
    border-radius: 14px;
    overflow: hidden;
  }
  .dashboard-bar { padding: 12px 14px; }
  .dashboard-bar .url { font-size: 9px; letter-spacing: 0.5px; }
  .dashboard-grid { grid-template-columns: 1fr; min-height: auto; }
  .dashboard-side { display: none; }
  .dashboard-main { padding: 18px 16px; min-height: auto; }
  .dashboard-h { font-size: 18px; }
  .dashboard-sub { font-size: 11px; }
  .dashboard-tabhead {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
  }
  .dashboard-actions { display: flex; gap: 8px; width: 100%; }
  .dashboard-actions .btn-sm { flex: 1; text-align: center; justify-content: center; }

  .kpi-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
  }
  .kpi { padding: 12px; }
  .kpi-val { font-size: 20px; margin-top: 6px; }
  .kpi-label { font-size: 8px; }
  .kpi-delta { font-size: 10px; }

  .chart-block { padding: 16px; }
  .funnel { height: 120px; gap: 6px; }
  .funnel-bar .v { font-size: 11px; }
  .funnel-bar .l { font-size: 8px; bottom: -18px; }

  .dash-table { font-size: 11px; }
  .dash-table th,
  .dash-table td { padding: 10px 8px; }
  .dash-table .av { width: 24px; height: 24px; font-size: 9px; }
  .dash-name { font-size: 11px; }
  .dash-email { font-size: 10px; }

  .event-list-row {
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    flex-wrap: wrap;
  }

  /* ══════════════════════════════
     11. SECTION 08 — ROLES
  ══════════════════════════════ */
  .roles {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 32px;
  }
  .role-card { padding: 22px 20px; }
  .role-card h4 { font-size: 18px; margin-top: 14px; }
  .role-card p { font-size: 13px; }
  .role-card li { font-size: 12px; }

  /* ══════════════════════════════
     12. SECTION 09 — TRUST & SAFETY
  ══════════════════════════════ */
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 32px;
  }
  .trust-card { padding: 22px 20px; }
  .trust-card h5 { font-size: 16px; margin-top: 18px; }
  .trust-card p { font-size: 13px; }

  /* ══════════════════════════════
     13. SECTION 10 — DEMO CTA
  ══════════════════════════════ */
  .demo-cta {
    padding: 48px 20px;
    border-radius: 18px;
  }
  .demo-cta-inner h2.section-title {
    max-width: 100%;
    text-align: center;
  }
  .demo-cta-inner p.section-desc {
    text-align: center;
  }
  .demo-cta-inner .hero-ctas {
    flex-direction: column;
    align-items: center;
  }
  .demo-cta-inner .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  /* ══════════════════════════════
     14. SECTION 11 — ABOUT
  ══════════════════════════════ */
  .about-head {
    text-align: left;
    margin-bottom: 32px;
    padding: 0;
  }
  .about-head .section-num { justify-content: flex-start; }
  .about-head .section-title { max-width: 100%; text-align: left; }
  .about-head .section-desc { text-align: left; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 100%;
  }
  .about-card { padding: 24px 20px; }
  .about-card p { font-size: 15px; }

  /* ══════════════════════════════
     15. BIG CTA + FOOTER
  ══════════════════════════════ */
  .big-cta { padding: 60px 20px; }
  .big-cta h2 {
    font-size: clamp(3rem, 16vw, 7rem);
    line-height: 0.9;
  }
  .cta-form {
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
    max-width: 100%;
    margin-top: 32px;
  }
  .cta-form input {
    padding: 14px 16px;
    font-size: 16px; /* prevents iOS auto-zoom */
    width: 100%;
    border-radius: 10px;
  }
  .cta-form button {
    width: 100%;
    min-height: 50px;
    border-radius: 12px;
    font-size: 14px;
  }
  .waitlist-success { font-size: 14px; }

  .footer { padding: 60px 0 32px; }
  .footer-logo {
    font-size: clamp(2.8rem, 18vw, 7rem);
    margin-bottom: 36px;
    line-height: 1;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    font-size: 10px;
    padding-top: 28px;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 14px 20px;
  }
  .footer-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* ══════════════════════════════
     16. DEMO MODAL
  ══════════════════════════════ */
  .modal-back {
    padding: 12px;
    align-items: center;
  }
  .modal {
    width: 95vw;
    max-width: 95vw;
    max-height: 90dvh;
    padding: 24px 20px;
    border-radius: 20px;
    overflow-y: auto;
  }
  .modal-close {
    width: 44px;
    height: 44px;
    font-size: 22px;
    top: 12px;
    right: 12px;
  }
  .modal h3 { font-size: 24px; }
  .modal p { font-size: 13px; }
  .modal-head { margin-bottom: 18px; padding-right: 48px; }
  .modal-row { grid-template-columns: 1fr; gap: 0; }
  .demo-form { gap: 12px; }
  .modal-field label { font-size: 9px; }
  .modal-field input {
    font-size: 16px; /* prevents iOS auto-zoom */
    padding: 14px;
    min-height: 50px;
    border-radius: 10px;
  }
  .demo-submit {
    min-height: 52px;
    font-size: 15px;
  }

  /* ── Scroll progress bar stays full-width */
  .scroll-progress { height: 2px; }
}
