/* Application page — /fr/application/ + /en-gb/application/ */

.app-page {
  padding-bottom: 48px;
}

/* —— 1. Header —— */
.app-hero {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  /* Top-align like Speakers / Venue — do not center against the tall phone */
  align-items: start;
  padding: 48px 0 8px;
}

@media (min-width: 900px) {
  .app-hero {
    grid-template-columns: 1.05fr 1fr;
  }
}

.app-hero__title {
  /* Same as .page-head h1 / .venue-hero h1 */
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--accent);
  letter-spacing: normal;
}

.app-hero__intro {
  /* Same as .page-head p */
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 12px;
  max-width: 52ch;
}

.app-download {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: nowrap;
  border: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
  max-width: 540px;
  /* Sit a bit lower under the intro */
  margin-top: 28px;
}

.app-download__qr {
  width: 132px;
  height: 132px;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  flex: none;
}

.app-download__qr img {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
}

.app-download__copy {
  min-width: 0;
  flex: 1 1 auto;
}

.app-download__label {
  display: block;
  color: var(--text);
  font-size: 1.1875rem;
  font-weight: 700;
}

.app-download__hint {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
  margin: 4px 0 12px;
}

.app-download__stores {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Use site-wide .btn radius (6px) — do not override to pills */

.app-hero__phone {
  display: none;
  justify-content: center;
  align-items: flex-start;
  /* No fixed tall box — section height follows the smaller phone */
  min-height: 0;
}

@media (min-width: 761px) {
  .app-hero__phone {
    display: flex;
  }
}

.app-phone {
  position: relative;
  width: 180px;
  height: 328px;
  border: none;
  border-radius: 32px;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  padding: 0;
  flex: none;
}

.app-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* —— 2. Feature cards —— */
.app-features {
  padding-top: 56px;
}

.app-section-title {
  /* Same scale as .section-title (Venue H2s), left-aligned */
  font-size: 1.35rem;
  color: var(--accent);
  margin: 0 0 6px;
  font-weight: 700;
  text-align: left;
}

.app-section-sub {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 1.05rem;
}

.app-features__grid {
  display: grid;
  gap: 16px;
  /* Mobile: 2 per row (2×2). Desktop: 4 in a row. */
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 1000px) {
  .app-features__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.app-card {
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: linear-gradient(135deg, #12202e, #0a1020);
}

.app-card__icon {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0f2942;
  display: grid;
  place-items: center;
  margin: 0 0 16px;
}

.app-card__icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-card h3 {
  margin: 0 0 8px;
  font-size: 1.1875rem;
  color: var(--text);
  font-weight: 700;
}

.app-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* —— 3. Badge steps —— */
.app-badge {
  padding-top: 48px;
}

.app-badge__layout {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 900px) {
  .app-badge__layout {
    grid-template-columns: 1.25fr 1fr;
  }
}

.app-steps {
  display: grid;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}

.app-step {
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--bg-card);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.app-step__num {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #031227;
  font-weight: 800;
  font-size: 1.1875rem;
  display: grid;
  place-items: center;
}

.app-step__title {
  display: block;
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 700;
  margin: 2px 0 6px;
}

.app-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.app-badge__phone-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.app-badge__phone-wrap .app-phone {
  /* Badge phone a bit larger than the header phone */
  width: 200px;
  height: 364px;
}

/* —— 4. No smartphone strip —— */
.app-fallback {
  padding-top: 40px;
}

.app-fallback__box {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 22px 24px;
  background: var(--bg-card);
}

.app-fallback__box h2 {
  display: block;
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: inherit;
  margin: 0 0 4px;
}

.app-fallback__box span {
  color: var(--muted);
  font-size: 0.9375rem;
}

.app-fallback__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Mobile: download stays 2 columns (QR | copy + store buttons) */
@media (max-width: 600px) {
  .app-download {
    gap: 20px;
  }

  .app-download__copy {
    margin-left: 4px;
  }

  .app-download__qr {
    width: 96px;
    height: 96px;
    padding: 8px;
  }

  .app-download__label {
    font-size: 1rem;
  }

  .app-download__hint {
    margin-bottom: 10px;
  }

  .app-download__stores {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .app-card {
    padding: 16px;
  }

  .app-card__icon {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
  }

  .app-card__icon svg {
    width: 22px;
    height: 22px;
  }

  .app-card h3 {
    font-size: 1rem;
  }

  .app-card p {
    font-size: 0.8125rem;
  }
}
