/* ==========================================================================
   The Scorekeeper — site stylesheet
   ========================================================================== */

:root {
  /* Brand colors, pulled from the app's own UI and marketing art */
  --gold: #f4b93c;
  --gold-dark: #dc9f22;
  --gold-light: #fde9b3;
  --gold-wash: #fff4d9;

  --cream: #fffaf0;
  --cream-2: #fff5e4;
  --white: #ffffff;

  --ink: #17182b;
  --ink-soft: #4c4d5e;
  --ink-faint: #83839a;

  --navy-deep: #14152a;
  --navy-card: #1e2038;

  --pink: #f98cc2;
  --purple: #b79af0;
  --green: #c3e86a;
  --teal: #5fd9c8;
  --blue: #7fc8f6;

  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --shadow-sm: 0 6px 16px -8px rgba(23, 24, 43, 0.18);
  --shadow-md: 0 16px 32px -12px rgba(23, 24, 43, 0.2);
  --shadow-lg: 0 30px 60px -20px rgba(23, 24, 43, 0.28);

  --container: 1180px;
  --font-display: "Baloo 2", "Fredoka", ui-rounded, "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  position: relative;
}

.section-pad {
  padding: 88px 0;
}

@media (max-width: 720px) {
  .section-pad {
    padding: 56px 0;
  }
  body {
    font-size: 16px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--gold-dark);
  background: var(--gold-wash);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.section-head p {
  font-size: 18px;
  color: var(--ink-soft);
}

.section-head.align-left {
  margin-left: 0;
  text-align: left;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 0 0 10px 0;
  z-index: 1000;
}
.skip-link:focus {
  left: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  padding: 15px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--gold-dark);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(23, 24, 43, 0.15);
}
.btn-ghost:hover {
  border-color: var(--ink);
}
.btn-on-dark {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-outline-dark {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-outline-dark:hover {
  border-color: var(--white);
}
.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Store badges (official Apple / Google Play artwork) */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.store-badges a {
  display: inline-block;
  line-height: 0;
  transition: transform 0.18s ease;
}
.store-badges a:hover {
  transform: translateY(-2px);
}
.store-badges img {
  height: 54px;
  width: auto;
  display: block;
}
.store-badges.small img {
  height: 40px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 250, 240, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(23, 24, 43, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
}
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    inset: 68px 16px auto 16px;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav-links a {
    padding: 10px 12px;
    width: 100%;
    border-radius: var(--radius-sm);
  }
  .nav-links a:hover {
    background: var(--cream-2);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle {
    display: block;
  }
}

/* Hero */
.hero {
  padding: 64px 0 40px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(34px, 5.4vw, 58px);
  margin-bottom: 0.35em;
}
.hero-copy .accent {
  color: var(--gold-dark);
}
.hero-copy p.lead {
  font-size: 19px;
  max-width: 560px;
  color: var(--ink-soft);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 26px;
}
.hero-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--ink-soft);
  font-weight: 600;
}
.hero-rating .stars {
  color: var(--gold-dark);
  letter-spacing: 1px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(23, 24, 43, 0.08);
}
.hero-trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}
.hero-trust li svg {
  width: 18px;
  height: 18px;
  color: var(--gold-dark);
  flex-shrink: 0;
}
.hero-visual {
  position: relative;
}
.hero-visual img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: auto;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 40px;
  }
}

/* Game tag cloud */
.tagcloud-wrap {
  padding: 44px 0;
}
.tagcloud-heading {
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.tagcloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.tagcloud li {
  background: var(--white);
  border: 1px solid rgba(23, 24, 43, 0.08);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}

/* Feature cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(23, 24, 43, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
}
.feature-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 15.5px;
  margin: 0;
}
.feature-card.highlight {
  background: var(--navy-deep);
  border-color: transparent;
}
.feature-card.highlight h3,
.feature-card.highlight p {
  color: var(--white);
}
.feature-card.highlight p {
  color: rgba(255, 255, 255, 0.72);
}

/* Phone frame */
.phone-frame {
  position: relative;
  border-radius: 34px;
  background: var(--ink);
  padding: 10px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  max-width: 260px;
  margin: 0 auto;
}
.phone-frame img {
  border-radius: 26px;
  display: block;
  width: 100%;
  height: auto;
}
.phone-frame::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.16);
}

/* How it works */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
}
@media (min-width: 860px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.step {
  text-align: center;
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.step h3 {
  font-size: 20px;
}
.step p {
  font-size: 15.5px;
  max-width: 280px;
  margin: 0 auto 24px;
}

/* Mode compare */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 860px) {
  .compare-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.compare-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.compare-card .tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: var(--gold-wash);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.compare-card h3 {
  font-size: 22px;
}
.compare-card p {
  font-size: 15.5px;
}
.compare-card .phone-frame {
  margin-top: 24px;
}
.compare-card .price-display {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: var(--ink);
  margin: 6px 0 2px;
}
.compare-card .price-note {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
}
.compare-card.pro {
  background: linear-gradient(160deg, var(--gold-wash), var(--white) 60%);
  border: 2px solid var(--gold);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (min-width: 720px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.gallery-item figcaption {
  text-align: center;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}
.gallery-item {
  margin: 0;
}

/* Dark icon showcase */
.dark-section {
  background: var(--navy-deep);
  color: var(--white);
}
.dark-section .section-head h2,
.dark-section .section-head p {
  color: var(--white);
}
.dark-section .section-head p {
  color: rgba(255, 255, 255, 0.7);
}
.icon-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 800px) {
  .icon-showcase {
    grid-template-columns: 1fr 1fr;
  }
}
.icon-showcase img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: auto;
}
.color-strip {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.color-strip span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

/* Reviews */
.rating-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}
.rating-score {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 700;
  color: var(--ink);
}
.rating-meta {
  text-align: left;
}
.rating-meta .stars {
  color: var(--gold-dark);
  font-size: 18px;
  letter-spacing: 2px;
}
.rating-meta div.count {
  font-size: 14px;
  color: var(--ink-faint);
  font-weight: 600;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(23, 24, 43, 0.05);
}
.review-card .stars {
  color: var(--gold-dark);
  letter-spacing: 2px;
  font-size: 15px;
  margin-bottom: 10px;
  display: block;
}
.review-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.review-card p {
  font-size: 14.5px;
  color: var(--ink-soft);
}
.review-card footer {
  font-size: 13px;
  color: var(--ink-faint);
  font-weight: 600;
  margin-top: 14px;
}
.review-card.callout {
  background: var(--gold-wash);
  border-color: transparent;
}

/* FAQ */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
}
.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(23, 24, 43, 0.05);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16.5px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--gold-dark);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item .faq-body {
  padding: 0 24px 22px;
  font-size: 15.5px;
  color: var(--ink-soft);
}

/* Final CTA */
.final-cta {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-radius: var(--radius-xl);
  padding: 64px 40px;
  text-align: center;
  margin: 0 24px;
}
.final-cta h2 {
  font-size: clamp(28px, 4vw, 40px);
}
.final-cta p {
  font-size: 18px;
  max-width: 520px;
  margin: 0 auto 30px;
  color: rgba(23, 24, 43, 0.75);
}
.final-cta .btn-primary {
  background: var(--ink);
  color: var(--white);
}
.final-cta .btn-primary:hover {
  background: #000;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 64px 0 30px;
  margin-top: 90px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, 1fr);
  gap: 40px;
}
@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--white);
  margin-bottom: 12px;
  text-decoration: none;
}
.footer-brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.footer-grid h4 {
  color: var(--white);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.footer-grid ul li {
  margin-bottom: 10px;
}
.footer-grid a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14.5px;
  transition: color 0.15s ease;
}
.footer-grid a:hover {
  color: var(--white);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.5);
}

/* Reveal-on-scroll (progressive enhancement) */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* Simple page header used on interior pages like Privacy */
.page-hero {
  padding: 70px 0 20px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(30px, 4.4vw, 44px);
}
.prose {
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 60px;
}
.prose h2 {
  font-size: 22px;
  margin-top: 1.6em;
}
.prose ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 1em;
}
.prose li {
  margin-bottom: 0.4em;
}
.prose a {
  color: var(--gold-dark);
  font-weight: 600;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
