/* ==========================================================================
   MetaEdge — Mobile Adaptation Stylesheet
   Breakpoints: 768px (tablet), 480px (phone)
   ========================================================================== */

/* === Hamburger Toggle Button (hidden on desktop) === */
.nav-toggle {
  display: none;
}

/* === Mobile Drawer (hidden on desktop) === */
.nav-drawer,
.nav-drawer-overlay {
  display: none;
}

/* ==========================================================================
   TABLET & MOBILE (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {

  /* Prevent horizontal overflow on mobile */
  body {
    overflow-x: hidden;
  }

  /* Prevent horizontal overflow in globe section */
  .full-container.global-s,
  .container.global-s {
    overflow-x: hidden;
  }

  /* --- Navbar --- */
  .navbar {
    grid-template-columns: 1fr auto !important;
    padding: 12px 16px !important;
    gap: 0 !important;
  }

  .nav-center { display: none !important; }

  .nav-right {
    display: flex !important;
    align-items: center;
    gap: 8px;
    justify-self: end !important;
  }

  /* Hide desktop CTA buttons on mobile (shown in drawer instead) */
  .nav-right > .btn { display: none !important; }

  /* Hamburger button */
  .nav-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    gap: 4px;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #111827;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
  }
  .navbar.nav--on-dark .nav-toggle { border-color: rgba(255,255,255,0.3); }
  .navbar.nav--on-dark .nav-toggle span { background: #fff; }
  [data-theme="dark"] .navbar {
    border-color: rgba(255, 255, 255, 0.1) !important;
  }
  [data-theme="dark"] .nav-toggle {
    border-color: rgba(255, 255, 255, 0.1) !important;
  }
  .nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* --- Mobile Drawer --- */
  .nav-drawer-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 30001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }
  .nav-drawer-overlay.open { opacity: 1; visibility: visible; }

  .nav-drawer {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: min(340px, 85vw);
    height: 100vh;
    height: 100dvh;
    background: #fff;
    z-index: 30002;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 96px 22px 32px;
    box-shadow: -10px 0 40px rgba(0,0,0,0.12);
  }
  .nav-drawer-section:first-of-type {
    margin-top: 18px;
  }
  .nav-drawer.open { transform: translateX(0); }

  .nav-drawer-header {
    position: absolute;
    top: 18px;
    left: 22px;
    z-index: 1;
  }
  .nav-drawer-logo {
    display: flex;
    align-items: center;
    color: #171927;
  }
  .nav-drawer-logo svg {
    width: 120px;
    height: auto;
    display: block;
  }
  [data-theme="dark"] .nav-drawer-logo { color: #ffffff; }

  .nav-drawer-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-drawer-section { margin-bottom: 22px; }
  .nav-drawer-section-title {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0em;
    color: #6b7280;
    padding: 0 4px 14px;
    margin-bottom: 8px;
    pointer-events: none;
    user-select: none;
  }
  .nav-drawer-link {
    display: block;
    padding: 13px 0;
    font-size: 16px;
    font-weight: 500;
    color: #1f2937;
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
  }
  .nav-drawer-link:active { color: #3974ff; }

  .nav-drawer-product {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
  }
  .nav-drawer-product:active { color: #3974ff; }
  .nav-drawer-product img {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }

  .nav-drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }
  .nav-drawer-actions .btn {
    text-align: center;
    padding: 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: block;
  }
  .nav-drawer-actions .btn-contact {
    background: #f3f4f6;
    color: #111827;
  }
  .nav-drawer-actions .btn-primary {
    background: linear-gradient(135deg, #642DFC 0%, #50C0FF 100%);
    color: #fff;
  }
  [data-theme="dark"] .nav-drawer-section-title {
    color: #9ca3af;
  }

  /* --- Hero Section --- */
  .hero-text {
    padding: 88px 16px 4px !important;
    max-width: 100% !important;
  }
  .hero-title {
    font-size: 32px !important;
    line-height: 1.12 !important;
    margin-bottom: 14px !important;
  }
  .hero-subtitle {
    font-size: 15px !important;
    line-height: 1.55 !important;
    margin-bottom: 14px !important;
  }
  .stats {
    gap: 5px !important;
    margin-bottom: 10px !important;
    flex-wrap: wrap;
    justify-content: center;
  }
  .stat-item {
    font-size: 9px !important;
    padding: 4px 8px !important;
    gap: 3px !important;
  }
  .check-icon { width: 10px !important; height: 10px !important; }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 8px;
    margin-top: 4px;
  }
  .hero-buttons .btn {
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 20px !important;
    font-size: 14px !important;
  }

  /* Globe area — fixed display, no movement at all */
  .globe-wrapper {
    height: 54vh !important;
    max-width: 100% !important;
    transform: none !important;
  }
  .globe-area {
    margin-top: -16px !important;
  }
  .globe-coins,
  .globe-widgets {
    transform-origin: center center;
  }

  /* Disable all float / levitation animations on mobile so everything stays still */
  .globe-coin img,
  .globe-vidget img,
  .globe-vidget .usecase-copy,
  [data-levitation="1"],
  [data-levitation="2"] {
    animation: none !important;
  }

  /* Scale down and keep coins visible around the globe on mobile */
  .globe-coins { height: auto !important; }
  .globe-coin.move {
    opacity: 1 !important;
    transform: scale(0.55) !important;
  }
  .globe-coin.s1.move { top: 16% !important; left: 8% !important; }
  .globe-coin.s2.move { top: 10% !important; left: 80% !important; }
  .globe-coin.s3.move { top: 34% !important; left: 2% !important; }
  .globe-coin.s4.move { top: 36% !important; left: 88% !important; }
  .globe-coin.s5.move { top: 60% !important; left: 6% !important; }
  .globe-coin.s6.move { top: 64% !important; left: 82% !important; }
  .globe-coin.s7.move { top: 78% !important; left: 45% !important; }

  /* Scale flag widgets down so they fit around the smaller mobile globe */
  .globe-vidget.move {
    width: auto !important;
    transform: translateX(-50%) scale(0.32) !important;
    opacity: 1 !important;
  }
  .globe-vidget .usecase-copy { display: none !important; }

  /* --- Stats Section --- */
  .stats-section {
    padding: 2rem 1rem 2.5rem !important;
  }
  .down-stats {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    width: 100% !important;
  }
  .down-stat-value, .down-stat-label {
    text-align: center !important;
  }

  /* --- Gradient Band --- */
  .gradient-band {
    border-radius: 32px !important;
  }

  /* --- Me-Sections --- */
  .me-section {
    padding: 52px 16px !important;
  }
  .me-section#start {
    border-radius: 32px 32px 0 0 !important;
    margin-top: -32px !important;
    padding-top: 52px !important;
  }
  .me-section#how-it-works {
    padding-top: 64px !important;
  }
  .me-section#platform-capabilities .me-head {
    margin-bottom: 48px !important;
  }
  .me-section#platform-capabilities .me-icon {
    margin-bottom: 60px !important;
  }
  .me-section#platform-capabilities .me-head h2 {
    white-space: normal !important;
    max-width: 100%;
  }

  .me-head {
    margin-bottom: 32px !important;
  }
  .me-head h2 {
    font-size: 26px !important;
  }
  .me-head p {
    font-size: 14px !important;
    line-height: 1.65 !important;
  }
  .me-kicker {
    font-size: 11px !important;
  }

  /* Cards */
  .me-card {
    padding: 20px !important;
    border-radius: 18px !important;
  }
  .me-card h3 {
    font-size: 17px !important;
  }
  .me-card p {
    font-size: 13px !important;
    line-height: 1.6 !important;
  }
  .me-icon {
    width: 42px !important;
    height: 42px !important;
    font-size: 19px !important;
  }

  /* Grids: 4-col and 3-col → 1-col */
  .me-grid-4,
  .me-grid-3,
  .me-roadmap,
  .me-checks {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* Roadmap cards — icon + text side-by-side on mobile */
  .me-road {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    text-align: left !important;
  }
  .me-road-icon {
    width: 40px !important;
    height: 40px !important;
    margin-bottom: 0 !important;
    flex-shrink: 0 !important;
  }
  .me-road-icon svg {
    width: 20px !important;
    height: 20px !important;
  }

  /* How It Works */
  .me-section#how-it-works .me-grid-3 {
    gap: 20px !important;
    padding-bottom: 24px !important;
  }
  .me-section#how-it-works .me-card.me-step {
    min-height: auto !important;
    padding: 28px 22px 24px !important;
  }
  .me-step-num {
    font-size: 36px !important;
    top: 12px !important;
    right: 16px !important;
  }

  /* Product showcase */
  .me-product {
    padding: 24px !important;
    border-width: 8px !important;
    border-radius: 22px !important;
    gap: 20px !important;
  }
  .me-product h3 {
    font-size: 22px !important;
  }
  .me-product p {
    font-size: 14px !important;
  }
  .me-nodes {
    padding: 16px !important;
    gap: 10px !important;
  }
  .me-node {
    padding: 14px 12px !important;
    font-size: 12px !important;
    border-radius: 12px !important;
  }
  .me-node-label strong {
    font-size: 13px !important;
  }
  .me-flag-img {
    width: 26px !important;
    height: 18px !important;
  }

  /* Audience cards */
  .me-audience-card {
    padding: 44px 24px !important;
    border-radius: 22px !important;
  }
  .me-audience-card h3 {
    font-size: 22px !important;
  }
  .me-audience-card ul {
    margin: 16px 0 22px !important;
    padding-left: 18px !important;
    line-height: 1.8 !important;
    font-size: 14px !important;
  }

  /* CTA */
  .me-cta {
    padding: 28px !important;
    border-radius: 22px !important;
    border-width: 8px !important;
    gap: 24px !important;
  }
  .me-cta h2 {
    font-size: 24px !important;
    white-space: normal !important;
  }
  .me-cta-copy > p {
    font-size: 14px !important;
    margin: 12px 0 18px !important;
  }
  .me-cta-points {
    gap: 8px !important;
  }
  .me-cta-points span {
    font-size: 12px !important;
    padding: 7px 11px !important;
  }
  .me-cta-panel {
    padding: 20px !important;
    border-radius: 18px !important;
  }
  .me-cta-panel h3 {
    font-size: 19px !important;
  }
  .me-cta-form input {
    height: 44px !important;
    font-size: 15px !important;
  }
  .me-cta-form button {
    height: 44px !important;
    font-size: 15px !important;
  }

  /* Comparison table — stacked cards on mobile */
  .comparison-section {
    overflow-x: visible !important;
    padding: 3rem 16px !important;
  }
  [data-theme="dark"] .comparison-section {
    background: var(--bg-primary) !important;
  }
  .comparison-table-wrap {
    overflow-x: visible !important;
  }
  .comparison-table-header {
    display: none !important;
  }
  .comparison-table {
    display: block !important;
    min-width: auto !important;
  }
  .comparison-row {
    display: block !important;
    background: #ffffff;
    border: 1px solid #EEEFF1;
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
  }
  .comparison-cell {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
    padding: 16px !important;
    border-bottom: 1px solid #EEEFF1 !important;
  }
  .comparison-cell:last-child {
    border-bottom: none !important;
  }
  .comparison-cell.dimension {
    background: #F0F9FF !important;
    font-weight: 700 !important;
    padding: 14px 16px !important;
  }
  .comparison-cell.meta,
  .comparison-cell.traditional {
    gap: 12px !important;
  }
  .comparison-icon {
    flex-shrink: 0 !important;
    width: 24px !important;
    height: 24px !important;
  }
  .comparison-desc {
    max-width: none !important;
    text-align: left !important;
  }

  /* Comparison table — dark mode overrides on mobile */
  [data-theme="dark"] .comparison-table {
    background: var(--bg-primary) !important;
  }
  [data-theme="dark"] .comparison-row {
    background: var(--comparison-bg);
    border: none !important;
  }
  html[data-theme="dark"] .comparison-cell.dimension {
    background: var(--comparison-header-bg) !important;
    color: var(--text-primary) !important;
  }
  [data-theme="dark"] .comparison-cell {
    border-bottom-color: var(--border-card) !important;
  }
  [data-theme="dark"] .comparison-cell:last-child {
    border-bottom-color: transparent !important;
  }

  /* Privacy section */
  .privacy-section {
    padding: 52px 16px !important;
  }
  .privacy-header {
    max-width: 100% !important;
  }
  .privacy-title,
  .privacy-subtitle {
    white-space: normal !important;
    max-width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
  .privacy-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .privacy-card {
    padding: 20px !important;
    gap: 16px !important;
    border-width: 8px !important;
    border-radius: 20px !important;
  }
  .privacy-card-image img,
  .privacy-card-image svg {
    max-height: 180px !important;
  }
  .privacy-card-title {
    font-size: 1.05rem !important;
    line-height: 1.35 !important;
  }
  .privacy-card-icon {
    width: 28px !important;
    height: 28px !important;
  }
  .privacy-card-desc {
    font-size: 0.875rem !important;
    line-height: 1.55 !important;
  }

  /* --- Footer --- */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .footer-links {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    text-align: center !important;
    gap: 12px !important;
  }
  .footer-legal {
    justify-content: center !important;
    flex-wrap: wrap !important;
  }
  .footer-subscribe {
    width: 100% !important;
    min-width: auto !important;
  }
  .footer-brand-tagline {
    font-size: 0.8rem !important;
  }

  /* --- Chat Widget --- */
  .me-chat {
    right: 14px !important;
    bottom: 14px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
  }
  .me-chat-toggle {
    width: 50px !important;
    height: 50px !important;
    font-size: 20px !important;
  }
  .me-chat-panel {
    width: min(320px, calc(100vw - 28px)) !important;
  }

  /* --- Modal --- */
  .me-modal-card {
    width: min(400px, 100%) !important;
    padding: 24px !important;
    border-radius: 20px !important;
  }
  .me-modal h3 {
    font-size: 22px !important;
  }
  .me-form input,
  .me-form textarea,
  .me-form select {
    padding: 12px !important;
    font-size: 15px !important;
  }
}

/* ==========================================================================
   PHONE (max-width: 480px)
   ========================================================================== */
@media (max-width: 480px) {
  .hero-title {
    font-size: 26px !important;
    line-height: 1.12 !important;
    margin-bottom: 12px !important;
  }
  .hero-subtitle {
    font-size: 13px !important;
    line-height: 1.55 !important;
    margin-bottom: 12px !important;
  }
  .stat-item {
    font-size: 9px !important;
    padding: 4px 8px !important;
  }
  .me-section {
    padding: 40px 14px !important;
  }
  .me-section#start {
    padding-top: 40px !important;
  }
  .me-head h2 {
    font-size: 22px !important;
  }
  .me-card {
    padding: 18px !important;
  }
  .me-product,
  .me-audience-card,
  .me-cta {
    padding: 22px !important;
    border-width: 6px !important;
  }
  .me-cta h2 {
    font-size: 21px !important;
  }
  .me-cta-panel {
    padding: 16px !important;
  }
  .footer-links {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
  }
  .nav-drawer {
    width: 100% !important;
    padding: 96px 18px 28px !important;
  }
  .globe-wrapper {
    height: 58vh !important;
    max-width: 100% !important;
  }
  .trust-by-logo img {
    height: 3.6rem !important;
  }
}

/* ==========================================================================
   PRODUCT PAGE MOBILE STYLES
   ========================================================================== */
@media (max-width: 768px) {
  /* Unify content width with homepage (16px side gutters) */
  .reference-product-layout main>.section {
    width: calc(100% - 32px) !important;
  }

  /* Hero */
  body[data-product] .hero {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    min-height: auto !important;
    padding: 60px 20px !important;
  }
  body[data-product] .hero {
    text-align: center !important;
  }
  body[data-product] .eyebrow {
    display: inline-block !important;
    font-size: 12px !important;
    text-align: center !important;
  }
  body[data-product] .hero h1 {
    font-size: 36px !important;
    margin-top: 14px !important;
    margin-bottom: 24px !important;
    text-align: center !important;
  }
  body[data-product] .hero h1 span {
    font-size: 20px !important;
    display: block !important;
    text-align: center !important;
    margin-top: 22px !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  }
  body[data-product] .hero p {
    font-size: 14px !important;
    line-height: 1.65 !important;
  }
  body[data-product] .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  body[data-product] .hero-actions .btn {
    text-align: center;
    width: 100%;
  }
  .res-visual,
  .static-hero-visual {
    min-height: 260px !important;
  }
  .res-core {
    width: 100px !important;
    height: 100px !important;
  }
  .res-core img {
    width: 48px !important;
    height: 48px !important;
  }
  .res-node {
    width: 46px !important;
    height: 46px !important;
    font-size: 18px !important;
  }

  /* Sections */
  body[data-product] .section {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }
  body[data-product] .section-head {
    margin-bottom: 28px !important;
  }
  body[data-product] .section-head h2 {
    font-size: 24px !important;
  }
  body[data-product] .section-head p {
    font-size: 14px !important;
    line-height: 1.65 !important;
  }
  body[data-product] .section-kicker {
    font-size: 11px !important;
  }

  /* Cards */
  body[data-product] .card {
    min-height: auto !important;
    padding: 22px !important;
    border-width: 8px !important;
    border-radius: 18px !important;
  }
  body[data-product] .card h3 {
    font-size: 16px !important;
    line-height: 1.4 !important;
  }
  body[data-product] .card p {
    font-size: 13px !important;
    line-height: 1.6 !important;
  }
  body[data-product] .card-icon {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  body[data-product] .card-icon svg {
    width: 24px !important;
    height: 24px !important;
  }
  body[data-product] .card-icon .icon-glyph {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  /* Force flex column for product cards */
  body[data-product] .feature-highlights-2>.card,
  body[data-product] .feature-rest>.card,
  body[data-product] .usecases .grid>.card,
  body[data-product] .why-section .grid>.card,
  body[data-product] .foundation>div {
    display: flex !important;
    flex-direction: column !important;
  }
  body[data-product] .feature-highlights-2>.card h3,
  body[data-product] .feature-highlights-2>.card p {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  /* Grids → single column */
  body[data-product] .grid,
  body[data-product] .feature-highlights-2,
  body[data-product] .feature-rest,
  body[data-product] .usecases .grid,
  body[data-product] .section.alt .grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  body[data-product] .feature-rest > .card:last-child:nth-child(odd),
  body[data-product] .usecases .grid > .card:last-child:nth-child(odd),
  body[data-product] .section.alt .grid > .card:last-child:nth-child(odd) {
    grid-column: auto !important;
  }

  /* Feature visual break */
  .feature-visual-break {
    padding: 24px 18px !important;
    margin: 18px 0 !important;
    border-radius: 18px !important;
  }
  .feature-flow {
    flex-wrap: wrap;
    gap: 10px !important;
  }
  .feature-flow span {
    padding: 10px 18px !important;
    font-size: 12px !important;
  }

  /* Static path visual */
  .static-path {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .static-path-step {
    min-height: auto !important;
    padding: 18px 14px !important;
    border-width: 8px !important;
  }
  .path-connector {
    height: 24px !important;
    transform: rotate(90deg);
  }
  .path-connector i {
    max-width: 24px !important;
  }
  .static-feature-visual {
    padding: 24px 14px !important;
  }

  /* Speed scenario cards */
  .speed-scenario-card {
    grid-template-columns: 1fr !important;
    padding: 22px !important;
    text-align: center !important;
    gap: 14px !important;
    border-width: 8px !important;
  }
  .speed-scenario-icon {
    margin: 0 auto !important;
    width: 56px !important;
    height: 56px !important;
  }
  .speed-scenario-icon svg {
    width: 30px !important;
    height: 30px !important;
  }
  .speed-scenario-card h3 {
    font-size: 18px !important;
  }
  .speed-scenario-card ul {
    grid-template-columns: 1fr !important;
    text-align: left !important;
    gap: 8px !important;
  }
  .speed-scenario-card li {
    font-size: 13px !important;
  }

  /* Proxy hub flow */
  .proxy-hub-flow {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .proxy-hub-sources span,
  .proxy-hub-dashboard {
    min-height: 50px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    border-width: 8px !important;
  }
  .proxy-hub-dashboard {
    min-height: 90px !important;
    font-size: 15px !important;
  }
  .proxy-hub-merge {
    height: 40px !important;
  }
  .proxy-hub-merge:before,
  .proxy-hub-merge:after {
    display: none !important;
  }
  .proxy-hub-merge i {
    left: 50% !important;
    top: 0 !important;
    width: 2px !important;
    height: 30px !important;
  }

  /* Global mesh visual */
  .reference-product-layout[data-product="global-mesh"] .global-mesh-visual {
    padding: 24px 14px !important;
    border-radius: 20px !important;
  }
  .reference-product-layout[data-product="global-mesh"] .global-mesh-visual svg {
    width: 100% !important;
  }
  .reference-product-layout[data-product="global-mesh"] .global-mesh-visual .feature-visual-caption {
    font-size: 13px !important;
    line-height: 1.6 !important;
  }

  /* Foundation */
  body[data-product] .foundation {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  body[data-product] .foundation > div {
    min-height: auto !important;
    padding: 22px !important;
    border-width: 8px !important;
    border-radius: 18px !important;
  }
  body[data-product] .foundation strong {
    font-size: 16px !important;
    line-height: 1.4 !important;
  }
  body[data-product] .foundation span {
    font-size: 13px !important;
    line-height: 1.6 !important;
  }
  .foundation-icon {
    width: 48px !important;
    height: 48px !important;
    margin-bottom: 14px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .foundation-icon .icon-glyph {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .foundation-icon .icon-glyph svg {
    width: 24px !important;
    height: 24px !important;
  }

  /* FAQ */
  body[data-product] .faq {
    gap: 10px !important;
  }
  body[data-product] .faq details {
    padding: 16px 18px !important;
    border-radius: 14px !important;
  }
  body[data-product] .faq summary {
    font-size: 15px !important;
  }
  body[data-product] .faq details[open] summary {
    margin-bottom: 10px !important;
  }

  /* Comparison table */
  body[data-product] .comparison-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  body[data-product] .comparison {
    min-width: 600px;
  }

  /* CTA section */
  body[data-product] .cta {
    padding: 40px 20px !important;
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }
  body[data-product] .cta h2 {
    font-size: 22px !important;
  }
  body[data-product] .cta p {
    font-size: 14px !important;
  }

  /* Product footer */
  .product-footer {
    padding: 36px 16px 24px !important;
    border-radius: 24px 24px 0 0 !important;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
  }
  .footer-about {
    grid-column: 1 / -1 !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    text-align: center !important;
    gap: 10px !important;
  }

  /* Original footer (product pages) */
  .original-footer {
    padding: 44px 18px 24px !important;
    border-radius: 24px 24px 0 0 !important;
  }
  .of-top {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }
  .of-brand {
    font-size: 22px !important;
  }
  .of-copy {
    font-size: 15px !important;
  }
  .of-form {
    flex-direction: column !important;
  }
  .of-form input {
    padding: 14px 16px !important;
    font-size: 14px !important;
  }
  .of-form button {
    padding: 14px !important;
    font-size: 14px !important;
  }
  .of-socials {
    gap: 10px !important;
    margin-bottom: 30px !important;
  }
  .of-socials a {
    width: 40px !important;
    height: 40px !important;
  }
  .of-bottom {
    flex-direction: column !important;
    text-align: center !important;
    gap: 10px !important;
  }
  .of-legal {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 16px !important;
  }

  /* Section width */
  .reference-product-layout main > .section,
  .reference-static-layout main > .section {
    width: calc(100% - 28px) !important;
  }

  /* Eyebrow */
  body[data-product] .eyebrow {
    font-size: 12px !important;
  }
}

@media (max-width: 480px) {
  /* Unify content width with homepage (14px side gutters) */
  .reference-product-layout main>.section {
    width: calc(100% - 28px) !important;
  }

  body[data-product] .hero {
    padding: 44px 14px !important;
  }
  body[data-product] .eyebrow {
    text-align: center !important;
  }
  body[data-product] .hero h1 {
    font-size: 30px !important;
    margin-bottom: 18px !important;
    text-align: center !important;
  }
  body[data-product] .hero h1 span {
    display: block !important;
    text-align: center !important;
    font-size: 17px !important;
    margin-top: 18px !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  }
  body[data-product] .section-head h2 {
    font-size: 20px !important;
  }
  body[data-product] .card {
    padding: 18px !important;
    border-width: 6px !important;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   PRICING PAGE MOBILE ENHANCEMENTS
   ========================================================================== */
@media (max-width: 768px) {
  .pricing-page {
    padding: 80px 16px 80px !important;
  }
  .pricing-heading {
    font-size: 28px !important;
  }
  .pricing-lead {
    font-size: 15px !important;
    margin: 14px auto 18px !important;
  }
  .billing-toggle {
    width: min(260px, 100%) !important;
    height: 44px !important;
  }
  .billing-toggle button {
    font-size: 13px !important;
    padding: 0 10px !important;
  }
  .pricing-grid {
    grid-template-columns: 1fr !important;
    max-width: 460px !important;
    gap: 18px !important;
    margin-top: 40px !important;
  }
  .plan-shell {
    padding: 8px !important;
    border-radius: 14px !important;
  }
  .plan-shell.featured {
    order: -1 !important;
    padding: 0 8px 8px !important;
  }
  .plan-card {
    min-height: auto !important;
    padding: 28px 22px !important;
    border-radius: 10px !important;
  }
  .plan-card h2 {
    font-size: 22px !important;
  }
  .plan-desc {
    font-size: 14px !important;
    min-height: auto !important;
  }
  .price {
    font-size: 38px !important;
  }
  .bonus {
    font-size: 11px !important;
    padding: 4px 10px !important;
  }
  .price-row {
    gap: 10px !important;
    margin: 18px 0 20px !important;
  }
  .trial-btn {
    padding: 12px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
  }
  .plan-meta {
    gap: 10px !important;
    padding-top: 24px !important;
    font-size: 12px !important;
  }
  .plan-meta div {
    gap: 12px !important;
  }
}

@media (max-width: 480px) {
  .pricing-heading {
    font-size: 24px !important;
  }
  .price {
    font-size: 32px !important;
  }
  .plan-card {
    padding: 24px 18px !important;
  }
}

/* ==========================================================================
   PRIVACY / TERMS / SUPPORT PAGE MOBILE STYLES
   ========================================================================== */
@media (max-width: 768px) {
  .docs-sc {
    padding: 60px 16px 60px !important;
  }
  .docs-rich {
    font-size: 14px !important;
    line-height: 1.7 !important;
  }
  .docs-rich h1 {
    font-size: 24px !important;
    margin-bottom: 12px !important;
  }
  .docs-rich h1 strong {
    font-size: 24px !important;
  }
  .docs-rich h2 {
    font-size: 18px !important;
    margin-top: 24px !important;
    margin-bottom: 10px !important;
  }
  .docs-rich h2 strong {
    font-size: 18px !important;
  }
  .docs-rich h4 {
    font-size: 15px !important;
  }
  .docs-rich p {
    font-size: 14px !important;
    line-height: 1.7 !important;
    margin-bottom: 12px !important;
  }
  .docs-rich a {
    word-break: break-word !important;
  }
  .support-faq-item {
    margin-bottom: 10px !important;
  }
  .support-faq-toggle {
    padding: 14px 16px !important;
  }
  .support-faq-toggle p {
    font-size: 14px !important;
  }
  .support-faq-item-list {
    padding: 14px 16px !important;
  }
}

/* ==========================================================================
   ES (SPANISH) PAGE MOBILE OVERRIDES
   ========================================================================== */
@media (max-width: 768px) {
  /* Hero section specific to ES page */
  .hero-sc .hero-s {
    padding: 16px !important;
  }
  .hero-scale-block {
    transform: none !important;
  }
  /* Ensure any hero text scales properly */
  .hero-phone-elements {
    transform: scale(0.85) !important;
  }
}
