/* Homepage (mobile-first). Loaded only by index.html. */

/* Phone frame around a 1206x2622 simulator screenshot */
.phone {
  position: relative;
  aspect-ratio: 1206 / 2622;
  border-radius: 34px;
  padding: 6px;
  background: linear-gradient(145deg, #3a3a3a, #1c1c1c);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; }

/* Hero */
.home-hero { padding: 40px 0 24px; overflow: hidden; }
.home-hero-grid { display: grid; gap: 36px; }
.home-hero-copy { text-align: center; }
.home-eyebrow { color: var(--gold); font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; margin-bottom: 12px; }
.home-hero h1 { font-family: var(--font-heading); font-size: 36px; line-height: 1.1; font-weight: 600; margin-bottom: 16px; }
.home-lead { color: var(--text-secondary); font-size: 17px; line-height: 1.6; margin: 0 auto 24px; max-width: 520px; }
.home-cta-row { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.home-link { color: var(--text-primary); text-decoration: underline; text-underline-offset: 4px; font-weight: 600; }
.home-fine { color: var(--text-secondary); font-size: 14px; margin-top: 16px; }
.home-hero-phone { position: relative; width: 62%; max-width: 260px; margin: 0 auto; }
.home-hero-phone::before {
  content: ''; position: absolute; inset: -18% -40%; z-index: -1;
  background: radial-gradient(closest-side, rgba(235, 200, 130, 0.22), transparent 70%);
}

/* Screenshot carousel: swipe on phones, all visible on wide screens */
.home-inside { padding-bottom: 56px; }
.shots {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 24px 24px; scroll-padding: 0 24px; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.shots::-webkit-scrollbar { display: none; }
.shot { flex: 0 0 66%; max-width: 260px; scroll-snap-align: center; margin: 0; }
.shot figcaption { color: var(--text-secondary); font-size: 15px; line-height: 1.5; margin-top: 16px; text-align: center; }
.shot figcaption strong { display: block; color: var(--text-primary); font-size: 17px; margin-bottom: 4px; }

/* Illustrated features */
.art-grid { display: grid; gap: 16px; }
.art-card {
  display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center;
  background: var(--card); border: 1px solid var(--card-border); border-radius: 18px; padding: 14px;
}
.art-card img { width: 96px; height: 96px; border-radius: 14px; object-fit: cover; }
.art-card h3 { font-family: var(--font-heading); font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.art-card p { color: var(--text-secondary); font-size: 15px; line-height: 1.55; }

/* Steps */
.home-steps { list-style: none; display: grid; gap: 16px; max-width: 720px; margin: 0 auto; }
.home-steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start; }
.home-steps span {
  grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gold-dim); color: var(--gold); font-family: var(--font-heading); font-weight: 600;
}
.home-steps h3 { font-size: 18px; font-family: var(--font-heading); font-weight: 600; }
.home-steps p { color: var(--text-secondary); font-size: 15px; }

/* Church finder links */
.church-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.church-links a {
  padding: 10px 18px; border: 1px solid var(--card-border); border-radius: 999px; background: var(--card);
  color: var(--text-primary); font-weight: 600; font-size: 15px;
}
.church-links a:hover { border-color: rgba(255, 255, 255, 0.3); }

@media (min-width: 720px) {
  .home-hero { padding: 72px 0 40px; }
  .home-hero-grid { grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 48px; }
  .home-hero-copy { text-align: left; }
  .home-hero h1 { font-size: 54px; }
  .home-lead { margin-left: 0; font-size: 19px; }
  .home-cta-row { flex-direction: row; gap: 24px; }
  .home-hero-phone { width: 100%; max-width: 300px; }
  .art-grid { grid-template-columns: 1fr 1fr; }
  .art-card { grid-template-columns: 1fr; padding: 0; overflow: hidden; align-items: start; }
  .art-card img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 0; }
  .art-card > div { padding: 4px 20px 22px; }
  .home-steps { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .home-steps li { grid-template-columns: 1fr; text-align: center; justify-items: center; row-gap: 8px; }
  .home-steps span { grid-row: auto; }
}
@media (min-width: 960px) {
  .art-grid { grid-template-columns: repeat(3, 1fr); }
  .shots { padding-left: max(24px, calc((100vw - 960px) / 2 + 24px)); padding-right: max(24px, calc((100vw - 960px) / 2 + 24px)); scroll-padding: 0 max(24px, calc((100vw - 960px) / 2 + 24px)); scrollbar-width: thin; }
  .shots::-webkit-scrollbar { display: block; height: 6px; }
  .shots::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 3px; }
  .shot { flex: 0 0 220px; scroll-snap-align: start; }
}
