/* Plans page — the comparison table, and the cards that replace it on a phone.
 *
 * **Both were rendering at once.** The design shipped a full comparison table *and* a stacked card
 * version, with `.plans-mobile { display: none }` in an inline `<style>` block swapping them at
 * 720px. That block was extracted along with everything else, so nothing hid either and the page
 * showed the same plans twice.
 *
 * Mobile-first, so the cards are the default and the table is what a wide screen adds. That is the
 * right way round on its own merits: a six-column table has no honest small-screen form, whereas
 * cards read fine at any width.
 */

.plans-mobile {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.plans-desktop { display: none; }

/* Table cells: label column, value columns, and the monospaced figures inside them. */
.pt-l {
  padding: 12px 8px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
}

.pt-v {
  padding: 12px 3px;
  font-size: 12px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.pt-mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
}

@media (min-width: 721px) {
  .plans-mobile { display: none; }
  .plans-desktop { display: flex; flex-direction: column; }
}

@media (min-width: 981px) {
  .pt-l { padding: 15px 16px; font-size: 13.5px; }
  .pt-v { padding: 15px 6px; font-size: 14px; }
  .pt-mono { font-size: 13.5px; }
}

/* The pricing-region dropdown pricing.js injects beside the theme toggle. It wears the Features
   disclosure's own classes (`nav__group`, `nav__menu`) and inherits the nav's type wholesale —
   what lives here is only what differs: the control sits near the bar's right edge, so its panel
   anchors right instead of centring; and its items are one-line buttons, which the shared menu
   styles only wrote for two-line anchors. */
.nav__group--region .nav__link--group { white-space: nowrap; }

.nav__group--region .nav__menu {
  left: auto;
  right: 0;
  width: auto;
  min-width: 220px;
  transform: translateY(-6px);
}

.nav__group--region[data-open="true"] .nav__menu { transform: translateY(0); }

.nav__menu--region button {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-align: left;
  white-space: nowrap;
}

.nav__menu--region button:hover {
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--text);
}

.nav__menu--region button[aria-checked="true"] {
  background: color-mix(in srgb, var(--brand) 18%, transparent);
  color: var(--text);
  font-weight: 600;
}

/* The drawer's flattened version, mirroring how the drawer already flattens Features: the same
   type as a `.nav__drawer-sub` link, as a button. */
.region-drawer-option {
  padding: 12px 4px 12px 16px;
  font-size: var(--text-sm);
  color: var(--text-muted);
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.region-drawer-option[aria-pressed="true"] {
  color: var(--brand-light);
  font-weight: 600;
}

/* Every "Get the app" button on this page — the table row and the three plan cards. They are
   inline-styled anchors in three different colourways, so the hover uses properties no inline
   style sets: a brightness step works on all three without knowing any of their colours. */
a[href="index.html#download"] {
  transition: filter 0.15s ease, transform 0.15s ease;
}
a[href="index.html#download"]:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}
