/* ==========================================================================
   Mobile Comparison Section Layout
   ========================================================================== */

/* Hide mobile version on desktop */
.comparison-mobile {
  display: none;
}

/* Responsive breakpoint for mobile layout */
@media (max-width: 768px) {
  
  /* Hide desktop table layout on mobile */
  .comparison {
    display: none !important;
  }

  .comparison-mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 64px 20px;
    background-color: #f8f9fa;
    box-sizing: border-box;
  }

  .comparison-mobile__inner {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Header area */
  .comparison-mobile__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 32px;
    width: 100%;
  }


  .comparison-mobile__header .faq-title {
    font-family: 'Geist', sans-serif;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #1c1c1c;
    margin: 0 0 16px 0;
  }

  .comparison-mobile__header .section-copy {
    color: #666666;
    font-family: 'Geist', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.45;
    margin: 0;
  }

  /* Tab Swapper Wrapper */
  .comp-mob-tabs-wrapper {
    width: 100%;
    margin-bottom: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide standard Firefox scrollbar */
  }
  .comp-mob-tabs-wrapper::-webkit-scrollbar {
    display: none; /* Hide Chrome/Safari scrollbars */
  }

  .comp-mob-tabs {
    display: flex;
    gap: 8px;
    padding: 4px;
    background-color: rgba(28, 28, 30, 0.06);
    border-radius: 100px;
    min-width: max-content;
    width: 100%;
  }

  .comp-mob-tab {
    flex: 1;
    min-width: 110px;
    padding: 10px 14px;
    font-family: 'Geist', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #555555;
    background: transparent;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-tap-highlight-color: transparent;
  }

  .comp-mob-tab.active {
    background-color: #ffffff;
    color: #1c1c1c;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  /* Cards Container */
  .comp-mob-cards {
    width: 100%;
    position: relative;
    margin-bottom: 40px;
  }

  .comp-mob-card {
    display: none;
    flex-direction: column;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    padding: 24px 20px;
    box-sizing: border-box;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
  }

  /* Show and animate active card */
  .comp-mob-card.active {
    display: flex;
    animation: compCardFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes compCardFadeIn {
    from {
      opacity: 0;
      transform: translateY(12px) scale(0.98);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  /* Highlight/Global 384 specific style overrides */
  .comp-mob-card--highlight,
  #comp-mob-global.comp-mob-card {
    border: 2px solid #cbbca7;
    background-color: #ffffff;
    box-shadow: 0 12px 40px rgba(203, 188, 167, 0.12);
  }

  /* Badge styling */
  .comp-mob-card__badge {
    align-self: flex-start;
    padding: 4px 10px;
    font-family: 'Geist', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9b876b;
    background-color: #fcf9f2;
    border-radius: 6px;
    margin-bottom: 16px;
  }

  .comp-mob-card__badge--neutral {
    color: #666666;
    background-color: #f1f2f4;
  }

  .comp-mob-card__badge--alert {
    color: #d93838;
    background-color: #fdf2f2;
  }

  .comp-mob-card__title {
    font-family: 'Geist', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #1c1c1c;
    margin: 0 0 8px 0;
  }

  .comp-mob-card__desc {
    font-family: 'Geist', sans-serif;
    font-size: 14px;
    line-height: 1.45;
    color: #666666;
    margin: 0 0 24px 0;
  }

  /* List of features */
  .comp-mob-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .comp-mob-card__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
  }

  /* Icons base styling */
  .comp-mob-card__status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
  }

  .comp-mob-card__status-icon svg {
    width: 12px;
    height: 12px;
  }

  /* Feature Yes Style */
  .comp-mob-card__item--yes .comp-mob-card__status-icon {
    background-color: #e6f7ed;
    color: #2e7d32;
  }

  /* Feature No Style */
  .comp-mob-card__item--no .comp-mob-card__status-icon {
    background-color: #fde8e8;
    color: #c62828;
  }

  /* Feature Warn/Info Style */
  .comp-mob-card__item--warn .comp-mob-card__status-icon {
    background-color: #fef3c7;
    color: #d97706;
  }

  .comp-mob-card__item--warn .comp-mob-card__status-icon circle {
    stroke: currentColor;
    fill: none;
  }

  /* Info container */
  .comp-mob-card__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .comp-mob-card__label {
    font-family: 'Geist', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #2c2c2e;
  }

  .comp-mob-card__val {
    font-family: 'Geist', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #666666;
  }

  /* Highlighted card values get special gold accent */
  .comp-mob-card--highlight .comp-mob-card__val,
  #comp-mob-global.comp-mob-card .comp-mob-card__val {
    color: #9b876b;
  }

  /* CTA alignment */
  .comparison-mobile__action {
    display: flex;
    justify-content: center;
    width: 100%;
  }
}
