/* ==========================================================================
   ASI App Landing Page
   Static download page — dark theme, matches asiministries.org branding
   ========================================================================== */

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

/* --- Brand tokens --- */
:root {
  --asi-blue: #003587;
  --asi-blue-bright: #1789fc;
  --asi-blue-light: #8eb4f0;   /* tagline + footer links */
  --asi-text: #f5f7fa;
  --asi-text-muted: #b8c0cc;
  --asi-bg: #000000;           /* matches black canvas in app screenshot */
  --asi-white: #ffffff;
  --asi-border: rgba(255, 255, 255, 0.12);
  --asi-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --asi-radius: 12px;
}

/* --- Base --- */
html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Heebo", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  color: var(--asi-text);
  background: var(--asi-bg);
  min-height: 100dvh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --- Layout --- */
.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1.5rem 2rem;
}

.main {
  flex: 1;
  width: 100%;
  max-width: 520px;
  text-align: center;
}

/* --- Header: logo + app screenshot --- */
.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.75rem;
}

.logo-link {
  display: inline-block;
  margin-bottom: 1rem;
  transition: opacity 0.2s ease;
}

.logo-link:hover {
  opacity: 0.85;
}

.logo {
  display: block;
  width: min(80px, 28vw);
  height: auto;
  filter: brightness(0) invert(1); /* white logo on dark background */
}

.app-preview {
  margin: 0;
  line-height: 0;
}

.app-preview img {
  display: block;
  width: min(300px, 78vw);
  height: auto;
  margin: 0 auto;
}

/* --- Hero copy --- */
.hero {
  margin-bottom: 2rem;
}

.eyebrow {
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--asi-blue-bright);
}

h1 {
  margin-bottom: 0.5rem;
  font-family: "Aleo", Georgia, serif;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--asi-white);
}

.tagline {
  max-width: 36ch;
  margin: 0 auto 1.25rem;
  font-family: "Aleo", Georgia, serif;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--asi-blue-light);
}

/* --- App store buttons --- */
.store-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.store-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  max-width: 200px;
  padding: 0.65rem 1.15rem;
  border: 1.5px solid transparent;
  border-radius: var(--asi-radius);
  background: var(--asi-blue);
  box-shadow: var(--asi-shadow);
  color: var(--asi-white);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.store-btn:hover {
  transform: translateY(-2px);
  background: var(--asi-blue-bright);
  box-shadow: 0 8px 28px rgba(23, 137, 252, 0.25);
}

.store-btn:active {
  transform: translateY(0);
}

/* Secondary style for Google Play — higher contrast on black background */
.store-btn--outline {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.store-btn--outline:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: 0 8px 28px rgba(23, 137, 252, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.store-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.store-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.store-label small {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

.store-label strong {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* --- Footer --- */
.footer {
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: var(--asi-text-muted);
}

.footer a {
  color: var(--asi-blue-light);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer a:hover {
  color: var(--asi-blue-bright);
  text-decoration: underline;
}

/* --- Responsive: side-by-side buttons on wider screens --- */
@media (min-width: 480px) {
  .store-buttons {
    flex-direction: row;
    justify-content: center;
  }
}
