:root {
  --page-edge-gap: 16px;
}

body.has-page-header {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.page-shell {
  width: min(var(--page-max-width, 960px), calc(100vw - (var(--page-edge-gap) * 2)));
  margin: 0 auto;
  padding: 40px 0 72px;
  box-sizing: border-box;
  flex: 1 0 auto;
}

.site-header {
  width: min(1200px, 100%);
  margin: 0 auto 12px;
  padding: 18px 16px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #000;
  position: sticky;
  top: 0;
  z-index: 20;
  isolation: isolate;
  background: transparent;
  border-bottom: 1px solid #ffffff;
  transition: border-color 0.2s ease;
  --badge-h: 32px;
}

@media (min-width: 1068px) {
  .site-header {
    --badge-h: 40px;
  }
}

.site-header.is-stuck {
  border-bottom-color: #0a51de;
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: rgba(161, 193, 250, 0.85);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  z-index: -1;
}

.site-header.is-stuck::before {
  background: rgba(161, 193, 250, 0.9);
}

.site-header a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.site-header a:hover {
  opacity: 0.7;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 22px;
}

.brand-icon {
  width: 22px;
  height: 23px;
  display: grid;
  place-items: center;
  line-height: 0;
  color: #2151c5;
  overflow: visible;
}

.brand-icon svg {
  width: 34px;
  height: auto;
  transform: scale(1.6);
  transform-origin: center;
  display: block;
}

.brand-name {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #2151c5;
}

.spacer {
  flex: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 16px;
}

.store-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.store-badge {
  display: inline-block;
  line-height: 0;
  height: var(--badge-h);
}

.store-badge svg,
.store-badge img {
  display: block;
  width: auto;
  height: 100%;
}

.hide-sm {
  display: none;
}

@media (min-width: 640px) {
  .hide-sm {
    display: inline;
  }
}

@media (max-width: 734px) {
  .nav {
    gap: 12px;
  }

  .store-badges {
    gap: 8px;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding-inline: 12px;
  }

  .brand {
    gap: 14px;
  }

  .brand-name {
    font-size: 22px;
  }
}

.section-cta {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 72px 16px 8px;
  box-sizing: border-box;
  text-align: center;
}

.section-cta h2 {
  margin: 0;
  font-family: "SF Pro Display", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 56px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: #1f2937;
}

@media (max-width: 1068px) {
  .section-cta h2 {
    font-size: 48px;
  }
}

@media (max-width: 734px) {
  .section-cta h2 {
    font-size: 36px;
  }
}

.section-cta p {
  margin: 18px auto 32px;
  max-width: 700px;
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: 0.005em;
  color: #6b7280;
}

@media (max-width: 734px) {
  .section-cta p {
    font-size: 18px;
  }
}

.section-cta .store-badge,
.site-footer .store-badge {
  height: 60px;
}

.store-badges-cta {
  margin-top: 4px;
}

.site-footer {
  width: 100%;
  padding: 40px 16px 64px;
  box-sizing: border-box;
  color: #6b7280;
  font-size: 16px;
  background: #fff;
}

.site-footer .footer-inner {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: max-content max-content;
  gap: 16px;
  justify-content: center;
}

@media (min-width: 640px) {
  .site-footer .footer-grid {
    gap: 200px;
  }
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

body.no-scroll {
  overflow: hidden;
}

.download-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: rgba(17, 24, 39, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.download-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.download-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.1s ease, opacity 0.1s ease;
}

.download-close:active {
  transform: scale(0.96);
}

.download-card {
  width: min(900px, 92vw);
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #0f172a;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
}

.download-col {
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.download-col-qr {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.download-title {
  margin: 0;
  font-family: "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.005em;
  color: #fff;
}

.qr-img {
  width: 250px;
  max-width: 80%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 18px;
  text-decoration: none;
  color: #111827;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  transition: transform 0.08s ease, opacity 0.12s ease;
}

.download-btn:hover {
  opacity: 0.92;
}

.download-btn:active {
  transform: translateY(1px);
}

.download-sub {
  margin: 4px 0 0;
  font-size: 14px;
  color: #cbd5e1;
  text-align: center;
}

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

  .download-col-qr {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}
