/* Download route additions. Keep the shared static page system in page.css. */
.download-page {
  --download-ink-soft: #24434b;
  overflow-x: hidden;
}

.download-page a:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 4px;
}

.download-page .nav-cta {
  white-space: nowrap;
}

.download-page .breadcrumbs {
  margin-bottom: 0;
}

.download-page .nav-link:hover,
.download-page .nav-link[aria-current='page'] {
  color: var(--brand);
}

.download-hero {
  max-width: 1180px;
  min-height: min(760px, calc(100vh - 104px));
  margin: 0 auto;
  padding: 54px 24px 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  align-items: center;
  gap: clamp(44px, 7vw, 104px);
}

.download-copy {
  min-width: 0;
}

.download-kicker,
.download-note-label {
  margin: 0 0 16px;
  color: var(--brand-deep);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.download-hero h1 {
  max-width: 650px;
  margin: 0 0 24px;
  color: var(--ink);
  font-size: clamp(3.7rem, 7.1vw, 6.7rem);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.96;
}

.download-hero h1 span {
  color: var(--brand-deep);
}

.download-lead {
  max-width: 580px;
  margin: 0 0 30px;
  color: var(--download-ink-soft);
  font-size: clamp(1.06rem, 1.55vw, 1.28rem);
  line-height: 1.7;
}

.download-store-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 650px;
}

.download-store-card {
  min-width: 0;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.download-store-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-medium);
  color: var(--ink);
  transform: translateY(-3px);
}

.download-store-card-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.download-store-index {
  padding-top: 2px;
  color: var(--brand-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.download-store-copy {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.download-store-copy strong {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.25;
}

.download-store-copy span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.3;
}

.download-store-arrow {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--brand-deep);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.download-store-badge {
  width: auto;
  height: 36px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.download-store-badge--google {
  height: 36px;
}

.download-stat {
  width: fit-content;
  min-width: 260px;
  margin-top: 38px;
  padding-left: 20px;
  border-left: 3px solid var(--brand);
}

.download-stat-overline {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.4;
}

.download-stat-value {
  margin: 0;
  color: var(--brand-deep);
  font-size: clamp(4.4rem, 8vw, 7.3rem);
  font-weight: 900;
  letter-spacing: -0.085em;
  line-height: 0.9;
}

.download-stat-label {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.4;
}

.download-visual {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-visual-surface {
  width: min(100%, 500px);
  min-height: 510px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.95) 0 21%, transparent 22%),
    linear-gradient(145deg, #f1fbfc 0%, #ffffff 57%, #e3f5f7 100%);
  border: 1px solid var(--line);
  border-radius: clamp(32px, 5vw, 56px);
  box-shadow: 0 24px 60px rgba(18, 42, 49, 0.1);
}

.download-visual-surface::before,
.download-visual-surface::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(21, 169, 182, 0.16);
  border-radius: 50%;
}

.download-visual-surface::before {
  top: -80px;
  right: -55px;
}

.download-visual-surface::after {
  bottom: -100px;
  left: -80px;
}

.download-visual-ring {
  position: absolute;
  border: 1px solid rgba(21, 169, 182, 0.2);
  border-radius: 50%;
}

.download-visual-ring--one {
  width: 360px;
  height: 360px;
}

.download-visual-ring--two {
  width: 430px;
  height: 430px;
  border-color: rgba(21, 169, 182, 0.1);
}

.download-app-figure {
  width: clamp(210px, 45%, 270px);
  aspect-ratio: 1;
  margin: -30px 0 0;
  position: relative;
  z-index: 2;
  background: #ffffff;
  border-radius: 27%;
  box-shadow: 0 28px 42px rgba(18, 42, 49, 0.22);
  transform: rotate(-7deg);
}

.download-app-figure img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: #ffffff;
  object-fit: contain;
  padding: 14%;
}

.download-visual-brand {
  position: absolute;
  top: 28px;
  left: 28px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(21, 169, 182, 0.16);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-subtle);
  color: var(--brand-dark);
  font-size: 0.86rem;
  font-weight: 800;
}

.download-visual-brand img {
  width: 21px;
  height: 15px;
  object-fit: contain;
}

.download-visual-caption {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 3;
  margin: 0;
  color: var(--brand-dark);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: right;
}

.download-note {
  max-width: 1132px;
  margin: 0 auto 76px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.download-note-label {
  margin-bottom: 8px;
}

.download-note h2 {
  color: var(--ink);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 800;
  line-height: 1.25;
}

.download-note > p {
  max-width: 430px;
  margin: 0;
  color: var(--download-ink-soft);
  font-size: 0.98rem;
  line-height: 1.65;
  text-align: right;
}

.download-footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.download-footer-brand img {
  width: 28px;
  height: 22px;
  object-fit: contain;
}

.download-footer-brand h3 {
  margin: 0;
}

@media (max-width: 980px) {
  .download-hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
    gap: 40px;
  }

  .download-store-actions {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .download-visual-surface {
    min-height: 430px;
  }

  .download-visual-ring--one {
    width: 290px;
    height: 290px;
  }

  .download-visual-ring--two {
    width: 350px;
    height: 350px;
  }
}

@media (max-width: 680px) {
  .download-hero {
    min-height: auto;
    padding: 34px 16px 48px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 44px;
  }

  .download-kicker {
    margin-bottom: 12px;
  }

  .download-hero h1 {
    margin-bottom: 18px;
    font-size: clamp(3.3rem, 17vw, 5rem);
  }

  .download-lead {
    margin-bottom: 24px;
    font-size: 1rem;
  }

  .download-store-actions {
    max-width: none;
  }

  .download-store-card {
    padding: 16px;
  }

  .download-stat {
    min-width: 0;
    margin-top: 30px;
  }

  .download-stat-value {
    font-size: clamp(4.1rem, 23vw, 6.2rem);
  }

  .download-visual-surface {
    min-height: 360px;
    border-radius: 32px;
  }

  .download-app-figure {
    width: min(58vw, 220px);
    margin-top: -18px;
  }

  .download-visual-brand {
    top: 18px;
    left: 18px;
  }

  .download-visual-caption {
    right: 18px;
    bottom: 18px;
    font-size: 0.78rem;
  }

  .download-note {
    margin: 0 16px 48px;
    padding: 22px 20px;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .download-note > p {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .download-page *,
  .download-page *::before,
  .download-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
