/**
 * download-page.css — styling scoped to the "Download our app" page only.
 * Loaded on top of app.css + public-pages.css (see functions.php), so it
 * only needs to define what's unique to this page (the dark hero, phone
 * mockups, store badges) — everything else already comes from the shared
 * stylesheets below it in the dependency chain.
 *
 * Colour note: --download-blue/-2 previously used a slightly different blue
 * (#2f69b1 / #3f86d6) than the rest of the site's brand blue (#3f7fc3, see
 * app.css --blue / public-pages.css --mp-primary). Aligned here so the
 * download page's accents match every other page exactly.
 */
:root {
  --download-navy: #0f2237;
  --download-deep: #132b46;
  --download-blue: #3f7fc3;
  --download-blue-2: #69a4e2;
  --download-mist: #eaf2fb;
  --download-ice: #f7fbff;
}

body.mediphad-download-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(63, 134, 214, 0.16), transparent 32%),
    radial-gradient(circle at 85% 12%, rgba(47, 105, 177, 0.18), transparent 22%),
    linear-gradient(180deg, #f4f8fd 0%, #eef4fb 100%);
  color: var(--ink);
}

.download-page-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.download-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}

.download-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
}

.download-brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  box-shadow: 0 18px 36px rgba(15, 34, 55, 0.12);
}

.download-brand strong,
.download-brand small {
  display: block;
}

.download-brand strong {
  font-family: Lora, Georgia, serif;
  font-size: 24px;
}

.download-brand small {
  color: var(--ink-2);
  font-size: 13px;
}

.download-hero {
  padding: 28px;
  border: 1px solid rgba(37, 99, 168, 0.12);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(63, 134, 214, 0.14), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 253, 0.96));
  box-shadow: 0 30px 70px rgba(24, 55, 84, 0.12);
}

.download-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 40px;
  align-items: center;
}

.download-copy h1,
.download-section-heading h2,
.download-bottom-cta h2 {
  margin: 0;
  font-family: Lora, Georgia, serif;
}

.download-copy h1 {
  max-width: 14ch;
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1.04;
}

.download-eyebrow {
  margin: 0 0 14px;
  color: var(--download-blue);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
}

.download-lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.8;
}

.download-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.download-highlights span {
  padding: 10px 14px;
  border: 1px solid rgba(37, 99, 168, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--download-deep);
  font-size: 13px;
  font-weight: 700;
}

.download-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.store-cta {
  min-width: 240px;
  padding: 16px 18px;
  border-radius: 18px;
  text-decoration: none;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 18px 40px rgba(17, 34, 53, 0.18);
}


.store-btn-soon {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
    position: relative;
}
.store-btn-soon::after {
    content: 'Bientôt';
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--mp-brand);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.store-cta-copy {
  display: grid;
  gap: 4px;
}

.store-cta span {
  display: block;
  color: #6b8096;
  font-size: 13px;
  text-align: left;
}

.store-cta-badge {
  width: 42px;
  min-width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
}

.store-cta-play {
  background: #ffffff;
  color: var(--download-deep);
  border: 1px solid rgba(37, 99, 168, 0.12);
}

.store-cta-apple {
  background: #ffffff;
  color: var(--download-deep);
  border: 1px solid rgba(37, 99, 168, 0.12);
}

.store-cta strong {
  display: block;
  color: var(--download-deep);
  font-size: 16px;
}

.download-footnote {
  margin: 16px 0 0;
  color: #6b8096;
  font-size: 13px;
  line-height: 1.7;
}

.download-mockups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: end;
}

.download-mockup {
  margin: 0;
  padding: 14px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top, rgba(63, 134, 214, 0.12), transparent 38%),
    var(--download-ice);
  box-shadow: 0 24px 55px rgba(15, 34, 55, 0.12);
}

.download-mockup-front {
  transform: translateY(28px);
}

.download-mockup-back {
  transform: translateY(-12px);
}

.download-mockup img {
  width: 100%;
  height: auto;
  display: block;
}

.download-benefits,
.download-bottom-cta {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid rgba(37, 99, 168, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 48px rgba(24, 55, 84, 0.08);
}

.download-card-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.download-card {
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5fc 100%);
  border: 1px solid rgba(37, 99, 168, 0.08);
}

.download-card h3,
.download-card p {
  margin: 0;
}

.download-card h3 {
  font-family: Lora, Georgia, serif;
  font-size: 24px;
}

.download-card p {
  margin-top: 10px;
  color: var(--ink-2);
  line-height: 1.7;
}

.download-bottom-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

@media (max-width: 1060px) {
  .download-hero-layout,
  .download-card-grid {
    grid-template-columns: 1fr;
  }

  .download-copy h1 {
    max-width: none;
  }

  .download-mockups {
    max-width: 760px;
  }
}

@media (max-width: 760px) {
  .download-page-shell {
    width: min(100% - 20px, 1200px);
    padding-top: 20px;
  }

  .download-topbar,
  .download-bottom-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .download-hero,
  .download-benefits,
  .download-bottom-cta {
    padding: 20px;
    border-radius: 20px;
  }

  .download-mockups,
  .download-cta-group {
    grid-template-columns: 1fr;
  }

  .download-mockup-front,
  .download-mockup-back {
    transform: none;
  }

  .store-cta {
    width: 100%;
    min-width: 0;
  }
}
