/* --- Phones ---------------------------------------------------------------
 * Loaded after wow.css on every page. Each block answers one thing that read
 * badly on a phone: sections as tall as the screen, a table that had to be
 * dragged sideways, a label left alone under its tablet. */

@media (max-width: 640px) {
  /* The eyebrow on one line. */
  .wow .hero-eyebrow > span {
    white-space: nowrap;
    font-size: 0.625rem;
    letter-spacing: 0.06em;
  }

  /* The wall of logos behind the hero text, faded, rather than a block of
     its own between the button and the rest of the page. */
  .wow .signal-grid {
    position: relative;
  }

  .wow .signal-copy {
    position: relative;
    z-index: 1;
  }

  .wow .integration-wall {
    position: absolute;
    inset: 0 -30% 0 -10%;
    z-index: 0;
    margin: 0;
    opacity: 0.1;
    filter: grayscale(1);
    pointer-events: none;
    mask-image: linear-gradient(180deg, transparent, #000 25%, #000 70%, transparent);
  }

  /* The large product screens: the words say it, and at this width the
     picture was two screens tall. */
  .wow .product-panel .app-frame {
    display: none;
  }

  /* Integrations two to a row, name and icon only. */
  .wow .integration-grid,
  .wow [aria-labelledby='integrations-marketplaces'] .integration-grid {
    grid-template-columns: 1fr 1fr;
  }

  .wow .integration-card {
    padding: 16px;
  }

  .wow .integration-card p,
  .wow .integration-card .text-link {
    display: none;
  }

  .wow .integration-card h4 {
    margin: 10px 0 0;
    font-size: 0.9375rem;
  }

  /* The label beside its tablet, not under it with a gap. */
  .wow .tablet-device {
    max-width: 78%;
    margin: 0;
    padding-bottom: 28px;
  }

  .wow .tablet-label {
    position: absolute;
    right: -26%;
    bottom: 0;
    width: 132px;
    max-width: none;
    margin: 0;
    transform: rotate(-3deg);
    font-size: 0.5625rem;
  }

  /* The plans side by side, swiped, each one snapping into place. */
  .wow .plans {
    display: flex;
    gap: 14px;
    margin-inline: -20px;
    padding: 4px 20px 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .wow .plans::-webkit-scrollbar {
    display: none;
  }

  .wow .plan {
    display: block;
    flex: 0 0 84%;
    scroll-snap-align: center;
  }

  /* The comparison, one plan at a time: the switcher above it picks which. */
  .wow .compare[data-show] tr > *:not(:first-child) {
    display: none;
  }

  .wow .compare th[scope='row'] {
    width: 58%;
  }

  .wow .compare[data-show='1'] tr > :nth-child(2),
  .wow .compare[data-show='2'] tr > :nth-child(3),
  .wow .compare[data-show='3'] tr > :nth-child(4),
  .wow .compare[data-show='4'] tr > :nth-child(5) {
    display: table-cell;
  }

  .wow .compare-wrap {
    overflow-x: visible;
  }

  .wow .compare {
    min-width: 0;
    width: 100%;
    table-layout: auto;
  }

  .wow .compare col {
    width: auto;
  }

  .wow .compare th,
  .wow .compare td {
    padding: 12px 14px;
  }
}

.wow .cmp-switch {
  display: flex;
  gap: 6px;
  margin: 0 0 14px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0d1017;
}

.wow .cmp-switch button {
  flex: 1;
  padding: 8px 6px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ink2);
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
}

.wow .cmp-switch button[aria-pressed='true'] {
  background: #b69bff26;
  color: var(--accent2);
  font-weight: 600;
}

/* The switcher exists on every width and shows only on a phone, where the
   table shows one plan at a time. After the rule above, or it wins and the
   tabs sit on a desktop table that already shows every plan. */
@media (min-width: 641px) {
  .wow .cmp-switch {
    display: none;
  }
}

/* The product picture on the platform page's record: drawn, not a brown tile. */
.wow .rec-thumb {
  background: none;
  box-shadow: none;
  overflow: hidden;
}

.wow .rec-thumb svg {
  display: block;
  width: 100%;
  height: 100%;
}
