/* ============================================================
   Home — landing-page section layouts: hero, vote widget,
   store badges, features, footer-cta. Desktop enhancements.
   Loads after components.css.
   ============================================================ */

/* ── Container modifiers ── */
.container--hero { max-width: 720px; }
.container--cta  { max-width: 620px; }
.container--pro  { max-width: 680px; }
.container--faq  { max-width: 760px; }

/* ── Hero ── */
.hero {
  background: linear-gradient(160deg, var(--color-surface-alt) 0%, var(--color-surface) 60%);
  padding: 72px 20px 40px;
  text-align: center;
}
.hero__badge {
  display: inline-block;
  background: var(--color-primary-muted);
  color: var(--color-primary);
  font-size: 0.7rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}
.hero__headline {
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  font-weight: var(--font-weight-black);
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: 18px;
}
.hero__headline .accent { color: var(--color-primary); }
.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 540px;
  margin-inline: auto;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.hero__primary-cta { padding: var(--space-3) var(--space-6); }
.hero__secondary-cta {
  color: var(--color-primary);
  font-size: 0.92rem;
  font-weight: var(--font-weight-bold);
}
.hero__secondary-cta:hover { text-decoration: underline; }

/* ── Vote widget ── */
.vote-widget {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 28px 22px;
  max-width: 460px;
  margin-inline: auto;
  box-shadow: var(--shadow-card);
  margin-bottom: 28px;
}
.vote-widget__label {
  font-size: 1rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: 18px;
}
.vote-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 6px;
}
.vote-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-md);
  padding: 13px 28px;
  font-size: 1rem;
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.15s, background 0.15s, color 0.15s, border-color 0.15s;
  min-width: 130px;
  justify-content: center;
}
.vote-btn:active { transform: scale(0.96); }

@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.animate-pop {
  animation: pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.vote-btn--up {
  background: var(--color-surface-alt);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}
.vote-btn--up:hover:not(:disabled) { background: var(--color-primary-muted); }
.vote-btn--up.selected {
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-color: var(--color-primary);
}

.vote-btn--down {
  background: var(--color-surface-muted);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border-neutral);
}
.vote-btn--down:hover:not(:disabled) { background: var(--color-surface-muted-hover); }
.vote-btn--down.selected {
  background: var(--color-surface-inverse);
  color: var(--color-on-dark);
  border-color: var(--color-surface-inverse);
}
.vote-btn:disabled { opacity: 0.8; cursor: default; transform: none; }
.vote-btn:disabled:not(.selected) { opacity: 0.65; }
.vote-feedback {
  font-size: 0.82rem;
  color: var(--color-primary);
  margin-top: 10px;
  margin-bottom: 16px;
  min-height: 20px;
  font-weight: var(--font-weight-medium);
}

/* ── App Store badges ── */
.store-badges {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.store-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-surface-inverse);
  border-radius: var(--radius-md);
  padding: 11px 22px;
  color: var(--color-on-dark);
  text-decoration: none;
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
  transition: opacity 0.2s;
  min-width: 150px;
}
.store-badge.active { opacity: 1; pointer-events: auto; }
.store-badge.active:hover { opacity: 0.88; }
.store-badge__icon { font-size: 1.4rem; line-height: 1; }
.store-badge__text { display: flex; flex-direction: column; gap: 1px; }
.store-badge__sub { font-size: 0.65rem; color: var(--color-on-dark-muted); }
.store-badge__name { font-size: 0.9rem; font-weight: var(--font-weight-bold); }

/* ── Features ── */
.features {
  padding: 40px 20px 80px;
  background: var(--color-surface);
}
.features__heading {
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: var(--font-weight-black);
  color: var(--color-text);
  margin-bottom: 44px;
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 920px;
  margin-inline: auto;
}
.feature-card {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}
.feature-card--highlight { border: 2.5px solid var(--color-primary); }
.feature-card__icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  line-height: 1;
}
.feature-card__title {
  font-size: 1.05rem;
  font-weight: var(--font-weight-extrabold);
  color: var(--color-text);
  margin-bottom: 10px;
}
.feature-card--highlight .feature-card__title { color: var(--color-primary); }
.feature-card__desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* Feature carousel dots — only shown on mobile (see @media below) */
.features__dots { display: none; }
/* Base dot styles; the parent .features__dots is display:none until the mobile @media below shows it. */
.carousel-dot {
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--color-border-neutral);
  transition: background 0.2s, transform 0.2s;
}
.carousel-dot[aria-current="true"]::before {
  background: var(--color-primary);
  transform: scale(1.3);
}

@media (max-width: 640px) {
  .features__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .features__grid::-webkit-scrollbar { display: none; }
  .feature-card {
    min-width: 88vw;
    scroll-snap-align: start;
    flex-shrink: 0;
  }
  .features__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
  }
}

/* ── Footer CTA ── */
.footer-cta {
  background: var(--color-surface-alt);
  padding: 72px 20px;
  text-align: center;
  border-top: 1px solid var(--color-border);
}
.footer-cta__heading {
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  font-weight: var(--font-weight-black);
  color: var(--color-text);
  margin-bottom: 28px;
}
.footer-cta__text {
  max-width: 32rem;
  margin: 0 auto var(--space-6);
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}
.footer-cta__button { padding: var(--space-3) var(--space-6); }
.footer-cta__form {
  display: flex;
  gap: 8px;
  max-width: 420px;
  margin-inline: auto;
}
.footer-cta__feedback {
  font-size: 0.82rem;
  color: var(--color-primary);
  margin-top: 12px;
  min-height: 20px;
  font-weight: var(--font-weight-medium);
}
.footer-cta__feedback.error { color: var(--color-danger); }

/* ── Desktop enhancements ── */
@media (min-width: 768px) {
  .hero { padding: 96px 20px 56px; }
  .vote-widget { padding: 32px 36px 26px; }
  .features { padding: 56px 20px 96px; }
  .footer-cta { padding: 88px 20px; }
}

@media (min-width: 1280px) {
  .hero__headline { font-size: 4rem; }
  .hero__subtitle { font-size: 1.2rem; }
}

/* ── Mobile small: home half ── */
@media (max-width: 480px) {
  .hero__actions { align-items: stretch; flex-direction: column; }
  .hero__secondary-cta { padding: var(--space-2); }
  .footer-cta__form { flex-direction: column; }
  .footer-cta__form .btn-notify { width: 100%; }
  .vote-btn { min-width: 110px; padding: 12px 20px; font-size: 0.9rem; }
}

/* ── Pro pass band ── */
.pro-band {
  background: var(--color-surface-inverse);
  color: var(--color-on-dark);
  padding: var(--space-12) var(--space-5);
  text-align: center;
}
.pro-band__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-on-dark-muted);
  margin-bottom: var(--space-3);
}
.pro-band__heading {
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  font-weight: var(--font-weight-black);
  line-height: 1.15;
  margin-bottom: var(--space-3);
}
.pro-band__text {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  color: var(--color-on-dark-muted);
  line-height: 1.6;
  max-width: 460px;
  margin-inline: auto;
  margin-bottom: var(--space-6);
}
.pro-band__cta {
  display: inline-block;
  background: var(--color-surface);
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  min-height: 44px;
  transition: transform 0.1s, opacity 0.15s;
}
.pro-band__cta:hover { opacity: 0.9; }
.pro-band__cta:active { transform: scale(0.97); }
@media (max-width: 480px) {
  .pro-band__cta { display: block; width: 100%; }
}

/* ── How it works ── */
.how {
  padding: var(--space-12) var(--space-5);
  background: var(--color-surface);
  text-align: center;
}
.how__heading {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: var(--font-weight-black);
  color: var(--color-text);
  margin-bottom: var(--space-10);
}
.how__steps {
  display: grid;
  gap: var(--space-8);
  max-width: 920px;
  margin-inline: auto;
  list-style: none;
}
.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--color-primary-muted);
  color: var(--color-primary);
  font-size: 1.25rem;
  font-weight: var(--font-weight-black);
}
.step__title {
  font-size: 1.1rem;
  font-weight: var(--font-weight-extrabold);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.step__desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 260px;
  margin-inline: auto;
}
@media (min-width: 768px) {
  .how__steps { grid-template-columns: repeat(3, 1fr); }
}

/* ── Sample local cricket live stream ── */
.home-stream {
  padding: var(--space-16) var(--space-5);
  background: var(--color-surface-inverse);
  color: var(--color-on-dark);
  text-align: center;
}
.home-stream__header {
  max-width: 46rem;
  margin: 0 auto var(--space-8);
}
.home-stream__eyebrow {
  display: inline-block;
  margin-bottom: var(--space-3);
  color: var(--color-on-dark-muted);
  font-size: 0.72rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.home-stream__heading {
  margin-bottom: var(--space-4);
  color: var(--color-on-dark);
  font-size: clamp(1.85rem, 5vw, 3rem);
  font-weight: var(--font-weight-black);
  line-height: 1.12;
}
.home-stream__text {
  color: var(--color-on-dark-muted);
  font-size: 1rem;
  line-height: 1.7;
}
.home-stream__video {
  max-width: 60rem;
  margin-inline: auto;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--color-surface);
  border: thin solid var(--color-text-muted);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.home-stream__video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.home-stream__link {
  display: inline-block;
  margin-top: var(--space-5);
  color: var(--color-on-dark);
  font-size: 0.92rem;
  font-weight: var(--font-weight-bold);
  text-decoration: underline;
  text-underline-offset: var(--space-1);
}

/* ── See it in action (screenshots) ── */
.shots {
  padding: var(--space-12) var(--space-5);
  background: var(--color-surface-alt);
  text-align: center;
}
.shots__heading {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: var(--font-weight-black);
  color: var(--color-text);
  margin-bottom: var(--space-10);
}
.shots__track {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  max-width: 920px;
  margin-inline: auto;
}
.shot {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.shot__frame {
  width: 240px;
  max-width: 70vw;
  aspect-ratio: 9 / 16;
  background: var(--color-surface);
  border: thin solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.shot__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
}
.shot__caption {
  margin-top: var(--space-4);
  font-size: 0.9rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-muted);
  max-width: 240px;
}
.shots__dots { display: none; }
@media (max-width: 640px) {
  .shots__track {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--space-4);
    padding-bottom: var(--space-3);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .shots__track::-webkit-scrollbar { display: none; }
  .shot {
    min-width: 80vw;
    scroll-snap-align: center;
    flex-shrink: 0;
  }
  .shots__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: var(--space-3);
  }
}

/* ── FAQ ── */
.faq {
  padding: var(--space-12) var(--space-5) var(--space-16);
  background: var(--color-surface);
}
.faq__heading {
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: var(--font-weight-black);
  color: var(--color-text);
  margin-bottom: var(--space-10);
}
.faq__item {
  border-bottom: 1px solid var(--color-border);
}
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 56px;
  padding: var(--space-4) 0;
  font-size: 1rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: rotate(45deg);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq__item[open] .faq__q::after { transform: rotate(-135deg); }
.faq__a {
  padding: 0 0 var(--space-5);
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 640px;
}
