/* The Google Play test page: one card, two numbered buttons, nothing to read twice. Built on the
   tokens in styles.css. External on purpose - the site's Content-Security-Policy allows no inline
   styles. Phone first; the card only gets a frame once there is room around it. */
.beta-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; background: radial-gradient(ellipse 90% 45% at 50% 0%, rgba(155, 217, 236, .10), transparent 70%), var(--bg); }

.beta { flex: 1; display: grid; place-items: center; padding: max(28px, env(safe-area-inset-top)) 16px 12px; }
.beta-card { width: min(100%, 440px); text-align: center; }

.beta-logo { display: inline-block; margin-bottom: 22px; border-radius: 22px; }
.beta-logo img { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 12px 32px rgba(0, 0, 0, .45); }

.beta h1 { font-size: clamp(30px, 8.4vw, 40px); line-height: 1.12; letter-spacing: -.035em; }
.beta-lead { margin-top: 12px; font-size: 17px; line-height: 1.55; color: var(--muted); text-wrap: balance; }

.beta-actions { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.beta-button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 62px; padding: 12px 18px; border: 1px solid transparent; border-radius: 16px; font-size: 18px; line-height: 1.3; font-weight: 650; text-align: left; transition: background .2s ease, border-color .2s ease, transform .2s var(--ease); }
.beta-button > span:last-child { flex: 1; min-width: 0; }
.beta-button-primary { background: var(--accent); color: #0b2029; }
.beta-button-secondary { background: #192229; border-color: #35424d; color: var(--text); }
.beta-step { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; font-size: 16px; font-weight: 750; font-variant-numeric: tabular-nums; }
.beta-button-primary .beta-step { background: rgba(11, 32, 41, .14); color: #0b2029; }
.beta-button-secondary .beta-step { background: #0f171c; border: 1.5px solid var(--accent); color: var(--accent); }

.beta-hint { margin-top: 14px; font-size: 15px; line-height: 1.5; color: var(--subtle); text-wrap: balance; }
.beta-actions + .beta-hint { margin-top: 22px; }
.beta-hint a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

.beta-footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 10px; padding: 20px 16px max(20px, env(safe-area-inset-bottom)); font-size: 14px; line-height: 1.5; color: var(--subtle); }
.beta-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--subtle); }
.beta-footer span { display: inline-flex; align-items: center; }

@media (hover: hover) {
  .beta-button-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
  .beta-button-secondary:hover { background: #29353f; border-color: #566774; transform: translateY(-1px); }
  .beta-hint a:hover, .beta-footer a:hover { color: var(--accent-hover); }
}
@media (prefers-reduced-motion: reduce) {
  .beta-button { transition: none; }
  .beta-button:hover { transform: none; }
}

/* Room around the card: give it a frame. */
@media (min-width: 560px) {
  .beta { padding-top: 48px; }
  .beta-card { padding: 40px 36px 32px; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(180deg, #151d23, var(--surface)); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
}

/* The narrowest phones still in use: labels stay on one line. */
@media (max-width: 350px) {
  .beta-button { gap: 12px; padding-inline: 14px; font-size: 17px; }
  .beta-step { flex-basis: 28px; width: 28px; height: 28px; font-size: 15px; }
}

/* A phone on its side: little height, plenty of width. The buttons go side by side so both
   are on screen without scrolling. */
@media (orientation: landscape) and (max-height: 520px) {
  .beta { padding-top: max(16px, env(safe-area-inset-top)); }
  .beta-card { width: min(100%, 660px); padding: 0; border: 0; background: none; box-shadow: none; }
  .beta-logo { display: none; }
  .beta h1 { font-size: 28px; }
  .beta h1 br { display: none; }
  .beta-lead { margin-top: 6px; font-size: 16px; }
  .beta-actions { margin-top: 18px; grid-template-columns: 1fr 1fr; }
  .beta-actions + .beta-hint { margin-top: 14px; }
  .beta-hint { margin-top: 4px; font-size: 14px; }
  .beta-footer { padding-block: 4px max(8px, env(safe-area-inset-bottom)); }
}
