:root {
  --bg: #ffffff;
  --surface: #f5f5f7;
  --surface-soft: #fbfbfd;
  --fg: #1d1d1f;
  --fg-soft: #424245;
  --muted: #6e6e73;
  --border: #d2d2d7;
  --border-soft: #e8e8ed;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-active: #0066cc;
  --azlg-orange: #ff6b35;
  --azlg-orange-hover: #ff7a45;
  --azlg-orange-active: #e85f2f;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 980px;
  --shadow-soft: 0 18px 52px rgba(0, 0, 0, 0.08);
  --font-display: "SF Pro Display", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 107, 53, 0.08), rgba(255, 255, 255, 0) 22%),
    radial-gradient(circle at 50% 16%, rgba(245, 245, 247, 0.92), rgba(255, 255, 255, 0) 36%),
    linear-gradient(180deg, var(--bg) 0%, var(--surface-soft) 74%, var(--surface) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 38px 20px;
}

.download-panel {
  width: min(100%, 460px);
  display: grid;
  gap: 26px;
  justify-items: center;
  text-align: center;
}

.brand-mark {
  color: var(--azlg-orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.app-identity {
  display: grid;
  justify-items: center;
}

.icon-wrap {
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: var(--bg);
  box-shadow:
    0 0 0 1px rgba(255, 107, 53, 0.1),
    0 18px 52px rgba(0, 0, 0, 0.08),
    0 26px 64px rgba(255, 107, 53, 0.14);
}

.app-icon {
  display: block;
  width: 94px;
  height: 94px;
  border-radius: 23px;
  object-fit: cover;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-family: var(--font-display);
  margin-top: 24px;
  font-size: 72px;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: 0;
}

.subtitle {
  margin-top: 12px;
  color: var(--fg-soft);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: 0;
}

.device-card {
  width: 100%;
  padding: 4px 0 0;
}

h2 {
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0;
}

h2:empty {
  display: none;
}

.device-copy {
  max-width: 360px;
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

h2:empty + .device-copy:empty + .actions {
  margin-top: 0;
}

.device-copy:empty {
  display: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  padding: 9px 22px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button.primary {
  background: var(--accent);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--accent-hover);
}

.button.primary:active {
  background: var(--accent-active);
}

.button.dark {
  background: var(--fg);
  color: #ffffff;
}

.is-android .button.dark {
  background: var(--azlg-orange);
}

.is-android .button.dark:hover {
  background: var(--azlg-orange-hover);
}

.is-android .button.dark:active {
  background: var(--azlg-orange-active);
}

.desktop-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.option-block {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
}

.option-kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.option-block a {
  color: var(--accent-active);
  font-size: 14px;
  font-weight: 650;
}

.option-block:last-child a {
  color: var(--azlg-orange-active);
}

.is-ios #android-button,
.is-android #ios-button,
.is-android #desktop-options,
.is-ios #desktop-options {
  display: none;
}

.is-desktop .actions {
  display: none;
}

@media (max-width: 520px) {
  .page-shell {
    align-items: start;
    padding: 28px 16px;
  }

  .download-panel {
    gap: 24px;
  }

  .icon-wrap {
    width: 104px;
    height: 104px;
    border-radius: 26px;
  }

  .app-icon {
    width: 90px;
    height: 90px;
    border-radius: 21px;
  }

  h1 {
    font-size: 58px;
  }

  .subtitle {
    font-size: 20px;
  }

  .actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .desktop-options {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }

  .button:hover {
    transform: none;
  }
}
