*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #ffffff;
  --text: #111111;
  --text-muted: #555555;
  --text-soft: #888888;
  --btn-bg: #000000;
  --btn-text: #ffffff;
  --card-bg: #f5f5f5;
  --card-border: #e8e8e8;
  --accent: #111111;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  height: 100%;
}

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

.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 2.5rem;
}

.content {
  width: 100%;
  max-width: 26rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

/* ── Hero ── */

.hero {
  text-align: center;
}

.brand {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.85rem;
}

.headline {
  font-size: clamp(1.85rem, 7vw, 2.35rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text);
}

.subline {
  margin-top: 0.65rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}

/* ── App Store Button ── */

.download-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.app-store-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  flex-shrink: 0;
}

.app-store-icon svg {
  width: 2.85rem;
  height: 2.85rem;
  fill: #000000;
}

.download-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.75rem;
  padding: 0 1.5rem;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  border-radius: 999px;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.download-row:hover .download-btn {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
}

.download-row:active .download-btn {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ── Promo Card ── */

.promo-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.35rem 1.25rem 1.15rem;
  background: var(--card-bg);
  border: 2px solid var(--accent);
  border-radius: 1.1rem;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  transition: background 0.2s, transform 0.15s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.promo-card:hover {
  background: #eeeeee;
}

.promo-card:active {
  transform: scale(0.98);
}

.promo-card.copied {
  border-color: #2a9d4e;
  background: #f0faf3;
}

.promo-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.promo-code {
  font-size: clamp(2.4rem, 10vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--accent);
  padding: 0.15rem 0;
}

.promo-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.35;
  max-width: 18rem;
}

.promo-hint {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: color 0.2s;
}

.promo-card.copied .promo-hint {
  color: #2a9d4e;
  font-weight: 600;
}

/* ── Info Section ── */

.info {
  width: 100%;
  text-align: left;
}

.info-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.info-list li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-muted);
}

.info-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text);
}

.info-note {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--card-border);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-soft);
}

.info-note strong {
  font-weight: 700;
  color: var(--text);
}

/* ── Setup hint ── */

.setup-hint {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  font-size: 0.85rem;
  color: #666666;
  text-align: center;
  max-width: 90vw;
}

.setup-hint code {
  font-size: 0.8rem;
  background: #f4f4f4;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

/* ── Larger screens ── */

@media (min-width: 521px) {
  .content {
    gap: 2rem;
  }

  .download-btn {
    min-height: 4rem;
    font-size: 1.15rem;
  }

  .app-store-icon {
    width: 4rem;
    height: 4rem;
  }

  .app-store-icon svg {
    width: 3.25rem;
    height: 3.25rem;
  }

  .promo-card {
    padding: 1.5rem 1.5rem 1.25rem;
  }
}
