/* =============================================================================
   App-inspired UI — used ONLY by elements added on 2026-10-17 (the Google Play
   waitlist, the mobile-menu store buttons, the "What's in the app" grid, the
   "first session" band and the /waitlist page).

   It borrows the iOS app's "1C" design language — its colours, pill buttons,
   10px inputs with a green focus ring, 16px cards with hairline outlines, and
   grey "mist" bands — while keeping the site's font (Manrope). Existing
   sections keep the site's own styles; nothing here restyles them, so the two
   can be compared side by side.
   ========================================================================== */

:root {
  --app-green: #12a150;
  --app-green-pressed: #0e8743;
  --app-green-tint: #dcf2e3;
  --app-ink: #242428;
  --app-body: #4a4a52;
  --app-grey: #6d6d78;
  --app-mist: #f3f3f5;
  --app-line: #e6e6eb;
  --app-field: #d2d2d8;
  --app-red: #e5322d;
  --app-white: #ffffff;
}

/* ---------- Buttons ------------------------------------------------------- */

.app-btn,
.app-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

/* The app's primary button: solid green pill, 52px. */
.app-btn {
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  background: var(--app-green);
  color: var(--app-white);
  font-size: 1.02rem;
}

.app-btn:hover {
  background: var(--app-green-pressed);
}

.app-btn:active,
.app-play-btn:active {
  transform: scale(0.97);
}

.app-btn:disabled {
  opacity: 0.45;
  cursor: progress;
  transform: none;
}

.app-btn:focus-visible,
.app-play-btn:focus-visible {
  outline: 3px solid rgba(18, 161, 80, 0.35);
  outline-offset: 3px;
}

.app-btn--block {
  width: 100%;
}

/* "Google Play · Coming soon" — the app's outline pill at its compact
   height (46px), so it sits level with the site's 46px App Store button. */
.app-play-btn {
  min-height: 46px;
  padding: 0 18px 0 16px;
  border: 1.5px solid var(--app-ink);
  background: var(--app-white);
  color: var(--app-ink);
  font-size: 0.92rem;
}

.app-play-btn:hover {
  background: var(--app-mist);
}

.app-play-btn svg {
  flex-shrink: 0;
}

.app-play-btn__soon {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--app-green-tint);
  color: var(--app-green-pressed);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* ---------- Mobile menu store buttons ------------------------------------ */

/* Shown inside the opened mobile menu only (the desktop header keeps its own
   "Download for iOS" pill). */
.app-menu-stores {
  display: none;
}

@media (max-width: 760px) {
  .nav-links.is-open .app-menu-stores {
    display: grid;
    gap: 10px;
    width: 100%;
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px solid var(--app-line);
  }

  .app-menu-stores .app-btn,
  .app-menu-stores .app-play-btn {
    width: 100%;
    min-height: 48px;
    color: inherit;
  }

  .app-menu-stores .app-btn {
    color: var(--app-white);
    font-size: 0.95rem;
  }
}

/* ---------- Waitlist sheet ----------------------------------------------- */

.app-sheet {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(36, 36, 40, 0.42);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.app-sheet[hidden] {
  display: none;
}

.app-sheet.is-open {
  opacity: 1;
}

.app-sheet__panel {
  position: relative;
  width: min(420px, 100%);
  padding: 28px 24px 24px;
  border-radius: 20px;
  background: var(--app-white);
  color: var(--app-ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.app-sheet.is-open .app-sheet__panel {
  transform: none;
}

/* On phones it rises from the bottom, like an iOS sheet. */
@media (max-width: 600px) {
  .app-sheet {
    align-items: flex-end;
    padding: 0;
  }

  .app-sheet__panel {
    width: 100%;
    border-radius: 20px 20px 0 0;
    padding: 26px 20px calc(22px + env(safe-area-inset-bottom));
    transform: translateY(100%);
  }
}

.app-sheet__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--app-grey);
  cursor: pointer;
}

.app-sheet__close:hover {
  background: var(--app-mist);
}

.app-sheet__art {
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
}

.app-sheet__title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--app-ink);
}

.app-sheet__text {
  margin: 8px 0 18px;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--app-grey);
}

/* ---------- Inputs (the app's C1Input) ----------------------------------- */

.app-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--app-ink);
}

.app-input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--app-field);
  border-radius: 10px;
  background: var(--app-white);
  color: var(--app-ink);
  font: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.app-input:focus {
  border-color: var(--app-green);
  box-shadow: 0 0 0 1px var(--app-green);
}

.app-input[aria-invalid="true"] {
  border-color: var(--app-red);
  box-shadow: 0 0 0 1px var(--app-red);
}

.app-field-error {
  margin: 8px 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--app-red);
}

.app-form-error {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fdecec;
  color: #a3241c;
  font-size: 0.92rem;
  font-weight: 600;
}

.app-form-error a {
  color: inherit;
  text-decoration: underline;
}

.app-form-actions {
  margin-top: 16px;
}

.app-fineprint {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--app-grey);
  text-align: center;
}

/* ---------- Sections, cards, grid ---------------------------------------- */

/* A full-width grey band holding white cards — the app's Home rhythm. */
.app-band {
  margin: 64px 0 0;
  padding: 64px 0;
  background: var(--app-mist);
}

.app-band__inner {
  width: var(--wrap, min(1180px, calc(100% - 32px)));
  margin: 0 auto;
}

.app-eyebrow {
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--app-green);
}

.app-heading {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--app-ink);
}

.app-lede {
  margin: 12px 0 0;
  max-width: 58ch;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--app-body);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

@media (max-width: 960px) {
  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .app-band {
    margin-top: 48px;
    padding: 44px 0;
  }

  .app-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--app-line);
  border-radius: 16px;
  background: var(--app-white);
  color: var(--app-ink);
}

.app-card--wide {
  grid-column: span 2;
}

@media (max-width: 600px) {
  .app-card--wide {
    grid-column: auto;
  }
}

.app-card__icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--app-green-tint);
  color: var(--app-green);
}

.app-card__title {
  margin: 4px 0 0;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--app-ink);
}

.app-card__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--app-body);
}

.app-card__media {
  margin-top: auto;
  padding-top: 12px;
}

/* A real app screen, framed like a phone at a small size. */
.app-screen {
  display: block;
  width: min(220px, 100%);
  height: auto;
  margin: 0 auto;
  border-radius: 26px;
  border: 1px solid var(--app-line);
  box-shadow: 0 12px 30px rgba(36, 36, 40, 0.08);
}

/* The Stats "story" strip: wins, losses and solo hits as squares. */
.app-strip {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 4px;
  margin-top: 6px;
}

.app-strip span {
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 700;
}

.app-strip .w {
  background: var(--app-green-tint);
  color: var(--app-green);
}

.app-strip .l {
  background: #fbe3e2;
  color: var(--app-red);
}

.app-strip .s {
  background: #eeeff3;
  color: var(--app-grey);
}

.app-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--app-body);
}

.app-legend li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.app-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Achievement badges in a row that wraps on phones. */
.app-badges {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 760px) {
  .app-badges {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.app-badges li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--app-body);
}

.app-badges img {
  width: 100%;
  max-width: 72px;
  height: auto;
}

/* Small pill tags — "Pro", "Coming soon". */
.app-tag {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--app-ink);
  color: var(--app-white);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* ---------- "Your first session" steps (home band) ----------------------- */

.app-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 960px) {
  .app-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .app-steps {
    grid-template-columns: 1fr;
  }
}

.app-step {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--app-line);
  border-radius: 16px;
  background: var(--app-white);
}

.app-step img {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin: 0 auto 6px;
}

.app-step__num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--app-green);
}

.app-step__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--app-ink);
}

.app-step__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--app-body);
}

/* ---------- /waitlist page ------------------------------------------------ */

.app-page {
  min-height: 60vh;
  padding: 48px 0 80px;
  background: var(--app-mist);
}

.app-page__card {
  width: min(480px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 24px;
  border: 1px solid var(--app-line);
  border-radius: 20px;
  background: var(--app-white);
  text-align: center;
  color: var(--app-ink);
}

.app-page__mascot {
  width: 112px;
  height: auto;
  margin: 0 auto 18px;
}

.app-page__card .app-heading {
  max-width: none;
  margin: 0 auto;
}

.app-page__card .app-lede {
  margin-left: auto;
  margin-right: auto;
}

.app-page__actions {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.app-page__link {
  display: inline-block;
  margin-top: 4px;
  font-weight: 700;
  color: var(--app-green-pressed);
}

.app-page__card form {
  margin-top: 22px;
  text-align: left;
}

@media (prefers-reduced-motion: reduce) {
  .app-btn,
  .app-play-btn,
  .app-sheet,
  .app-sheet__panel {
    transition: none;
  }
}

/* ---------- Tier row and band actions (features grid) --------------------- */

.app-tiers {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 760px) {
  .app-tiers {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.app-tiers li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--app-ink);
}

.app-tiers img {
  width: 100%;
  max-width: 56px;
  height: auto;
}

.app-tiers small {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--app-grey);
}

.app-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---------- Header "Download" chooser ------------------------------------- */

.app-chooser__options {
  display: grid;
  gap: 10px;
}

.app-chooser__option {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 12px 16px;
  border: 1.5px solid var(--app-line);
  border-radius: 14px;
  background: var(--app-white);
  color: var(--app-ink);
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.app-chooser__option:hover,
.app-chooser__option:focus-visible {
  border-color: var(--app-green);
  background: #f6fbf8;
  outline: none;
}

.app-chooser__option span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-chooser__option strong {
  font-size: 1.02rem;
  font-weight: 700;
}

.app-chooser__option small {
  font-size: 0.86rem;
  color: var(--app-grey);
}
