/* =====================================================================
   Beta download page (theqeed.com/beta) — loads after landing.css and
   reuses its tokens, buttons, navbar, FAQ cards and footer.
   ===================================================================== */

/* .btn sets display, which would beat the UA rule for [hidden] */
[hidden] {
  display: none !important;
}

/* ---------- Status chip ---------- */
.beta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(239, 176, 84, 0.4);
  border-radius: 999px;
  background: rgba(239, 176, 84, 0.15);
  color: var(--primary-500);
  font-size: 14px;
  font-weight: 700;
  line-height: normal;
  white-space: nowrap;
}
.beta-chip--muted {
  border-color: var(--bg-4);
  background: var(--bg-2);
  color: var(--grey-200);
}
.beta-chip--live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-500);
}

/* English TestFlight button names: a line break inside one flips its words in RTL */
bdi {
  white-space: nowrap;
}

/* ---------- Hero ---------- */
.beta-hero {
  gap: 32px;
  padding: 96px 16px 64px;
}
/* The Android sentence in the subtitle swaps for a longer one when the
   Android link opens: one more line at most widths. Reserve the longer one
   (lines measured 2026-11-18 at 320-1440 px: at most 3 from 390 px up, 4
   below) so the buttons under it do not move (judge J-36). */
.beta-hero .hero__sub {
  max-width: 640px;
  min-height: 3lh;
}
.beta-hero__note {
  font-size: 16px;
  line-height: 1.6;
  color: var(--primary-400);
  text-align: center;
}
/* Buttons + note in one box whose height is reserved for the tallest state:
   js/beta.js reveals the TestFlight / Android buttons and hides the note
   after the beta-link API answers, and the page below must not jump (judge
   J-36, CLS). Measured 2026-11-18 with every link state: 601-1440 px the
   tallest is no link yet (button row + note, 98.6 px); the rest is 41 px. */
.beta-hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
  min-height: 99px;
}

/* ---------- Platform cards ---------- */
.platforms {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 48px 96px;
}
.platforms__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 1088px;
}
.platform-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 24px;
  background: var(--bg-3);
  border-top: 0.5px solid var(--white);
  border-left: 0.5px solid var(--white);
  border-radius: 16px;
}
.platform-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.platform-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(220, 159, 70, 0.15);
  color: var(--primary-700);
}
.platform-card__icon svg {
  width: 26px;
  height: 26px;
}
.platform-card__title {
  flex: 1;
  font-size: 22px;
  font-weight: 800;
}
.platform-card__txt {
  font-size: 16px;
  line-height: 1.6;
  color: var(--primary-50);
  opacity: 0.75;
}
.platform-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

/* ---------- Install steps ---------- */
.steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 48px 96px;
}
.steps__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 768px;
  max-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  background: var(--bg-3);
  border-top: 0.5px solid var(--white);
  border-left: 0.5px solid var(--white);
  border-radius: 16px;
}
.step-card__num {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-grad);
  color: var(--primary-ink);
  font-size: 18px;
  font-weight: 800;
}
.step-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.step-card__title {
  font-size: 18px;
  font-weight: 700;
}
.step-card__txt {
  font-size: 16px;
  line-height: 1.6;
  color: var(--primary-50);
  opacity: 0.75;
}
.step-card__link {
  align-self: flex-start;
  padding-block: 4px;
  border-bottom: 1px solid var(--primary-500);
  color: var(--primary-500);
  font-weight: 700;
}

/* =====================================================================
   Tablet
   ===================================================================== */
@media (max-width: 1023px) {
  .platforms,
  .steps {
    padding: 48px;
  }
  .platforms__list {
    grid-template-columns: minmax(0, 1fr);
    max-width: 600px;
  }
}

/* =====================================================================
   Phone
   ===================================================================== */
@media (max-width: 600px) {
  .beta-hero {
    gap: 24px;
    padding: 48px 16px;
  }
  .beta-hero__note {
    font-size: 14px;
  }
  /* Phone: the buttons stack. Tallest at 360-600 px = both links (three
     buttons, 139 px); at 320 px the Android-only note wraps (159 px) and
     still grows by 19 px, accepted for the rarest width. */
  .beta-hero__cta {
    gap: 24px;
    min-height: 140px;
  }
  .platforms,
  .steps {
    gap: 24px;
    padding: 32px 16px;
  }
  .platform-card {
    padding: 24px 16px;
  }
  .platform-card__title {
    font-size: 20px;
  }
  .step-card {
    gap: 14px;
    padding: 20px 16px;
  }
  .step-card__num {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  .step-card__txt {
    font-size: 14px;
  }
}

/* =====================================================================
   Narrow phones (< 390 px): the longer Android sentence takes 4 lines
   ===================================================================== */
@media (max-width: 389px) {
  .beta-hero .hero__sub {
    min-height: 4lh;
  }
}

/* =====================================================================
   Download page (theqeed.com/download): the hero has one fixed sentence,
   so it reserves no height for a longer one. Last in the file on purpose.
   ===================================================================== */
.download-hero .hero__sub {
  min-height: 0;
}
