/* ============================================================
   Cricket scorer page — hero, proof strip, intro, feature stories
   (ease of use, offline scoring, live streaming, player profiles),
   steps, FAQs and download call to action.
   Loads after components.css.
   ============================================================ */

.scorer-hero {
  overflow: hidden;
  background: linear-gradient(160deg, var(--color-surface-alt), var(--color-surface));
  padding: var(--space-12) 0 var(--space-16);
}

.scorer-hero__inner {
  display: grid;
  align-items: center;
  gap: var(--space-10);
}

.scorer-hero__badge,
.scorer-feature__eyebrow,
.scorer-steps__eyebrow,
.scorer-faq__eyebrow,
.scorer-download__eyebrow {
  display: inline-block;
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scorer-hero__badge {
  margin-bottom: var(--space-5);
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary-muted);
  border-radius: var(--radius-pill);
}

.scorer-hero__title {
  max-width: 13ch;
  margin-bottom: var(--space-5);
  color: var(--color-text);
  font-size: clamp(2.5rem, 8vw, 4.75rem);
  font-weight: var(--font-weight-black);
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.scorer-hero__title span { color: var(--color-primary); }

.scorer-hero__lead {
  max-width: 39rem;
  margin-bottom: var(--space-6);
  color: var(--color-text-muted);
  font-size: clamp(1rem, 2.5vw, 1.18rem);
  line-height: 1.7;
}

.scorer-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.scorer-hero__secondary {
  color: var(--color-primary);
  font-size: 0.92rem;
  font-weight: var(--font-weight-bold);
}

.scorer-hero__secondary:hover { text-decoration: underline; }

.scorer-hero__visual {
  position: relative;
  width: min(100%, 24rem);
  margin-inline: auto;
}

.scorer-hero__visual::before {
  content: "";
  position: absolute;
  inset: 10% -8% 8%;
  background: var(--color-primary-muted);
  border-radius: var(--radius-pill);
}

.scorer-hero__image,
.scorer-feature__image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  border: thin solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.scorer-proof {
  background: var(--color-surface-inverse);
  color: var(--color-on-dark);
  padding: var(--space-6) 0;
}

.scorer-proof__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-8);
  text-align: center;
}

.scorer-proof__item {
  font-size: 0.92rem;
  font-weight: var(--font-weight-semibold);
}

.scorer-proof__item::before {
  content: "\2713";
  margin-right: var(--space-2);
  color: var(--color-on-dark);
}

.scorer-intro,
.scorer-feature,
.scorer-steps,
.scorer-faq,
.scorer-download {
  padding: var(--space-16) 0;
}

.scorer-intro {
  background: var(--color-surface);
  text-align: center;
}

.scorer-intro__heading,
.scorer-steps__heading,
.scorer-faq__heading,
.scorer-download-panel__heading {
  color: var(--color-text);
  font-size: clamp(1.85rem, 5vw, 3rem);
  font-weight: var(--font-weight-black);
  line-height: 1.12;
}

.scorer-intro__heading {
  max-width: 22ch;
  margin: 0 auto var(--space-5);
}

.scorer-intro__text {
  max-width: 44rem;
  margin-inline: auto;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.scorer-feature { background: var(--color-surface-alt); }
.scorer-feature--plain { background: var(--color-surface); }

.scorer-feature__inner {
  display: grid;
  align-items: center;
  gap: var(--space-10);
}

.scorer-feature__visual {
  width: min(100%, 23rem);
  margin-inline: auto;
}

.scorer-feature__eyebrow { margin-bottom: var(--space-3); }

.scorer-feature__heading {
  color: var(--color-text);
  font-size: clamp(1.75rem, 5vw, 2.8rem);
  font-weight: var(--font-weight-black);
  line-height: 1.14;
  margin-bottom: var(--space-4);
}

.scorer-feature__text {
  max-width: 36rem;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: var(--space-5);
}

.scorer-feature__list {
  display: grid;
  gap: var(--space-3);
  list-style: none;
}

.scorer-feature__list li {
  display: flex;
  gap: var(--space-3);
  color: var(--color-text);
  font-size: 0.94rem;
  font-weight: var(--font-weight-semibold);
  line-height: 1.5;
}

.scorer-feature__list li::before {
  content: "\2713";
  color: var(--color-primary);
  font-weight: var(--font-weight-black);
}

.scorer-steps { background: var(--color-surface-inverse); color: var(--color-on-dark); }

.scorer-steps__header {
  max-width: 46rem;
  margin: 0 auto var(--space-10);
  text-align: center;
}

.scorer-steps__eyebrow { color: var(--color-on-dark-muted); }
.scorer-steps__heading { color: var(--color-on-dark); margin: var(--space-3) 0 var(--space-4); }

.scorer-steps__lead {
  color: var(--color-on-dark-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.scorer-steps__list {
  display: grid;
  gap: var(--space-5);
  list-style: none;
}

.scorer-step {
  border: thin solid var(--color-text-muted);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

.scorer-step__number {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: var(--space-4);
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-radius: var(--radius-pill);
  font-weight: var(--font-weight-black);
}

.scorer-step__title {
  font-size: 1.08rem;
  font-weight: var(--font-weight-extrabold);
  margin-bottom: var(--space-2);
}

.scorer-step__text {
  color: var(--color-on-dark-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.scorer-faq { background: var(--color-surface); }
.scorer-faq__inner { max-width: 48rem; }
.scorer-faq__heading { text-align: center; margin-bottom: var(--space-10); }

.scorer-faq__item { border-bottom: thin solid var(--color-border); }

.scorer-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 3.5rem;
  padding: var(--space-4) 0;
  color: var(--color-text);
  cursor: pointer;
  font-size: 1rem;
  font-weight: var(--font-weight-bold);
  list-style: none;
  text-align: left;
}

.scorer-faq__question::-webkit-details-marker { display: none; }

.scorer-faq__question::after {
  content: "+";
  color: var(--color-primary);
  font-size: 1.4rem;
  font-weight: var(--font-weight-regular);
}

.scorer-faq__item[open] .scorer-faq__question::after { content: "\2212"; }

.scorer-faq__answer {
  max-width: 42rem;
  padding-bottom: var(--space-5);
  color: var(--color-text-muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.scorer-download { background: var(--color-surface-alt); }

.scorer-download-panel {
  max-width: 54rem;
  margin-inline: auto;
  padding: var(--space-10) var(--space-6);
  background: var(--color-surface);
  border: thin solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.scorer-download-panel__heading { margin: var(--space-3) 0 var(--space-4); }

.scorer-download-panel__text {
  max-width: 38rem;
  margin: 0 auto var(--space-6);
  color: var(--color-text-muted);
  line-height: 1.7;
}

@media (min-width: 768px) {
  .scorer-hero__inner,
  .scorer-feature__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.75fr);
  }

  .scorer-feature--reverse .scorer-feature__copy { order: 2; }
  .scorer-feature--reverse .scorer-feature__visual { order: 1; }
  .scorer-steps__list { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .scorer-hero { padding-top: var(--space-8); }
  .scorer-hero__actions { align-items: stretch; flex-direction: column; }
  .scorer-hero__actions .btn-primary { text-align: center; }
  .scorer-hero__secondary { padding: var(--space-2); text-align: center; }
  .scorer-download-panel .btn-primary { display: block; width: 100%; }
}
