:root {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #eef2f5;
  color: #172131;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
}

.download-page {
  display: grid;
  gap: 18px;
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: stretch;
  min-height: 420px;
  border: 1px solid #d8e0e7;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px;
}

.eyebrow {
  color: #176f62;
  font-size: 13px;
  font-weight: 800;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  margin-top: 10px;
  font-size: clamp(36px, 7vw, 68px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  font-size: 20px;
}

.copy p {
  max-width: 560px;
  margin-top: 18px;
  color: #5e6b7a;
  font-size: 18px;
  line-height: 1.55;
}

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

.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 7px;
  padding: 0 18px;
  text-decoration: none;
  font-weight: 750;
}

.primary {
  background: #176f62;
  color: #fff;
}

.secondary {
  border: 1px solid #c8d1da;
  background: #fff;
  color: #25313f;
}

.device-panel {
  display: grid;
  place-items: center;
  background: #172131;
}

.phone {
  width: 210px;
  height: 360px;
  border: 8px solid #0b111c;
  border-radius: 28px;
  background: #f8fafc;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.phone-bar {
  width: 74px;
  height: 6px;
  margin: 12px auto;
  border-radius: 999px;
  background: #cbd5e1;
}

.phone-screen {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 50px 18px;
  text-align: center;
}

.app-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: #176f62;
  color: #fff;
  font-weight: 850;
}

.phone-screen span {
  color: #64748b;
  font-size: 13px;
}

.download-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid #d8e0e7;
  border-radius: 10px;
  padding: 22px;
  background: #fff;
}

.download-card p {
  margin-top: 6px;
  color: #64748b;
}

.qr-box {
  display: grid;
  place-items: center;
  width: 180px;
  height: 180px;
  border: 1px solid #d8e0e7;
  border-radius: 8px;
  background: #fff;
}

.qr-box img {
  width: 160px;
  height: 160px;
}

.hint {
  grid-column: 1 / -1;
  word-break: break-all;
  font-size: 13px;
}

.mobile-only {
  display: none;
}

@media (max-width: 760px) {
  .download-page {
    width: min(100vw - 24px, 540px);
    padding: 16px 0;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .copy {
    padding: 28px;
  }

  .device-panel,
  .qr-box {
    display: none;
  }

  .download-card {
    grid-template-columns: 1fr;
  }

  .mobile-only {
    display: inline-flex;
  }

  #downloadButton {
    display: inline-flex;
  }
}
