/* ─────────────────────────────────────────────
   ScoreSpan landing — final build
   ───────────────────────────────────────────── */

:root {
  --cream: #F5EFE1;
  --cream-dark: #EDE5D2;
  --cream-deep: #E5DCC5;
  --ink: #1F1B17;
  --ink-soft: #6B5F4F;
  --feather: #2E5640;
  --feather-dark: #1F3D2C;
  --wyrm: #6B447E;
  --fin: #2876B5;
  --wingspan-accent: #8B5A3C;
  --gold: #C9A340;
  --border: rgba(31, 27, 23, 0.10);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 600px) {
  .container { padding: 0 24px; }
}

/* ─── Scroll reveal ─────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.20s; }
.reveal-delay-3 { transition-delay: 0.30s; }

/* ─── Header ─────────────────────────── */
.site-header {
  padding: 24px 0;
  position: relative;
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  height: 32px;
  width: auto;
}

.site-header nav {
  display: flex;
  gap: 28px;
}

.site-header nav a {
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s;
  font-weight: 500;
}

.site-header nav a:hover { color: var(--ink); }

/* ─── Hero ─────────────────────────── */
.hero {
  position: relative;
  padding: 60px 0 100px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}

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

.hero-text { position: relative; z-index: 2; }

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--feather);
  margin: 0 0 20px;
}

.hero h1 {
  font-family: 'PT Serif', Georgia, serif;
  font-weight: 700;
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin: 0 0 24px;
}

.hero .tagline {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--ink-soft);
  margin: 0 0 36px;
  max-width: 48ch;
  line-height: 1.55;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-badge-row {
  display: flex;
  align-items: center;
}

@media (max-width: 880px) {
  .hero { padding: 32px 0 80px; }
  .hero-text { text-align: center; }
  .hero .tagline { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-badge-row { justify-content: center; }
}

/* CTA buttons */
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--feather);
  color: var(--cream);
  padding: 16px 28px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 20px rgba(46, 86, 64, 0.25);
}

.cta-primary:hover {
  background: var(--feather-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46, 86, 64, 0.30);
}

.cta-primary svg { width: 18px; height: 18px; }

.cta-secondary {
  display: inline-flex;
  align-items: center;
  padding: 16px 24px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--border);
  transition: background 0.2s, border-color 0.2s;
}

.cta-secondary:hover {
  background: var(--cream-dark);
  border-color: var(--ink-soft);
}

/* App Store badge */
.app-store-badge { display: inline-block; transition: opacity 0.15s, transform 0.15s; }
.app-store-badge:hover { opacity: 0.85; transform: translateY(-1px); }
.app-store-badge img { height: 48px; width: auto; display: block; }

/* Hero media */
.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 480px;
}

.hero-media .blob {
  position: absolute;
  width: 120%;
  aspect-ratio: 1;
  background: var(--feather);
  border-radius: 48% 52% 60% 40% / 55% 45% 55% 45%;
  z-index: 0;
  opacity: 0.94;
  transform: rotate(-8deg);
}

.hero-mockup {
  position: relative;
  z-index: 1;
  max-width: 320px;
  transform: rotate(-4deg);
  filter: drop-shadow(0 30px 50px rgba(31, 27, 23, 0.28));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-mockup:hover {
  transform: rotate(-2deg) translateY(-6px);
}

@media (max-width: 880px) {
  .hero-media { min-height: 420px; }
  .hero-mockup { max-width: 260px; }
}

/* ─── Common ─────────────────────────── */
.section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

@media (max-width: 600px) {
  .section { padding: 72px 0; }
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 16px;
}

.display {
  font-family: 'PT Serif', Georgia, serif;
  font-weight: 700;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 20px;
}

.lede {
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 46ch;
  margin: 0;
}

/* ─── Games ─────────────────────────── */
.games-section {
  background: var(--feather);
  padding: 120px 0;
  color: var(--cream);
  position: relative;
}

@media (max-width: 600px) { .games-section { padding: 80px 0; } }

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

.games-section .section-head .display { color: var(--cream); }
.games-section .section-head .lede { color: rgba(245, 239, 225, 0.78); margin: 0 auto; }
.games-section .section-eyebrow { color: rgba(245, 239, 225, 0.65); }

.games {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 760px) {
  .games { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}

.game-card {
  background: var(--cream);
  color: var(--ink);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.24);
}

.game-card .hero-img {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center right;
  background-color: var(--cream-deep);
}

/* Accent bar BELOW the image */
.game-card .accent-bar {
  height: 4px;
  background: var(--wingspan-accent);
  flex-shrink: 0;
}

.game-card:nth-child(2) .accent-bar { background: var(--wyrm); }
.game-card:nth-child(3) .accent-bar { background: var(--fin); }

.game-card .body {
  padding: 24px 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.game-card .heading-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.game-card .icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.game-card:nth-child(1) .icon { background: #F0E1D2; color: var(--wingspan-accent); }
.game-card:nth-child(2) .icon { background: #ECE2F0; color: var(--wyrm); }
.game-card:nth-child(3) .icon { background: #D8ECF4; color: var(--fin); }

.game-card .icon svg { width: 20px; height: 20px; }

.game-card h3 {
  font-family: 'PT Serif', Georgia, serif;
  font-weight: 700;
  font-size: 24px;
  margin: 0;
  letter-spacing: -0.01em;
}

.game-card p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}

/* ─── Feature sections ─────────────────────────── */
.feature {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 880px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 80px; }
  .feature.flip .feature-text { order: 2; }
  .feature.flip .feature-media { order: 1; }
}

.feature-text { max-width: 480px; }

.feature-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 480px;
  padding: 24px;
}

.feature-media .organic-shape {
  position: absolute;
  width: 110%;
  aspect-ratio: 1;
  background: var(--feather);
  border-radius: 60% 40% 52% 48% / 45% 55% 45% 55%;
  z-index: 0;
  opacity: 0.10;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature.flip .feature-media .organic-shape {
  transform: rotate(20deg);
  border-radius: 40% 60% 48% 52% / 55% 45% 55% 45%;
}

.feature-media img {
  position: relative;
  z-index: 1;
  max-width: 320px;
  filter: drop-shadow(0 24px 50px rgba(31, 27, 23, 0.22));
  transform: rotate(-3deg);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature.flip .feature-media img { transform: rotate(3deg); }

.feature-media:hover img {
  transform: rotate(-1deg) translateY(-4px);
}

.feature.flip .feature-media:hover img {
  transform: rotate(1deg) translateY(-4px);
}

@media (max-width: 880px) {
  .feature { text-align: center; }
  .feature-text { margin: 0 auto; }
  .feature-text .lede { margin-left: auto; margin-right: auto; }
  .feature-media { min-height: 400px; }
  .feature-media img { max-width: 280px; }
}

/* ─── Premium section ─────────────────────────── */
.premium-section {
  padding: 120px 0;
  position: relative;
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
}

@media (max-width: 600px) {
  .premium-section { padding: 80px 0; }
}

/* Ambient gold glow */
.premium-section::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(201, 163, 64, 0.18) 0%, transparent 60%);
  pointer-events: none;
}

.premium-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(201, 163, 64, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.premium-head {
  text-align: center;
  margin-bottom: 64px;
  position: relative;
  z-index: 1;
}

.premium-head .crown {
  display: inline-flex;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--gold);
  color: var(--ink);
  margin-bottom: 24px;
  align-items: center;
  justify-content: center;
}

.premium-head .crown svg { width: 28px; height: 28px; }

.premium-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
}

.premium-head h2 {
  font-family: 'PT Serif', Georgia, serif;
  font-weight: 700;
  font-size: clamp(32px, 5vw, 48px);
  margin: 0 0 16px;
  color: var(--cream);
  letter-spacing: -0.025em;
  text-transform: uppercase;
  line-height: 1.05;
}

.premium-lede {
  color: rgba(245, 239, 225, 0.78);
  font-size: 17px;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Comparison table */
.compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  position: relative;
  z-index: 1;
  margin-bottom: 56px;
}

@media (min-width: 760px) {
  .compare { grid-template-columns: 1fr 1fr; gap: 24px; }
}

.compare-col {
  background: rgba(245, 239, 225, 0.04);
  border: 1px solid rgba(245, 239, 225, 0.10);
  border-radius: 18px;
  padding: 32px 28px;
  position: relative;
  transition: border-color 0.3s;
}

.compare-col:hover {
  border-color: rgba(245, 239, 225, 0.18);
}

.compare-premium {
  background: rgba(201, 163, 64, 0.06);
  border-color: rgba(201, 163, 64, 0.30);
}

.compare-premium:hover {
  border-color: rgba(201, 163, 64, 0.50);
}

.best-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--gold);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 100px;
}

.compare-col header {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(245, 239, 225, 0.10);
}

.compare-premium header { border-bottom-color: rgba(201, 163, 64, 0.20); }

.compare-col h3 {
  font-family: 'PT Serif', Georgia, serif;
  font-weight: 700;
  font-size: 28px;
  margin: 0 0 6px;
  color: var(--cream);
}

.compare-premium h3 { color: var(--gold); }

.compare-price {
  font-size: 14px;
  color: rgba(245, 239, 225, 0.65);
  margin: 0;
}

.compare-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.compare-list li {
  display: flex;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(245, 239, 225, 0.90);
}

.compare-list strong { color: var(--cream); font-weight: 600; }

.compare-list .tick {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(245, 239, 225, 0.15);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
}

.compare-premium .tick {
  background: var(--gold);
  color: var(--ink);
}

.compare-list .tick.muted {
  background: transparent;
  border: 1px solid rgba(245, 239, 225, 0.15);
  color: rgba(245, 239, 225, 0.35);
  font-size: 14px;
}

.compare-list .muted { color: rgba(245, 239, 225, 0.40); }

.compare-list-detailed li > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.compare-list-detailed .sub {
  font-size: 13.5px;
  color: rgba(245, 239, 225, 0.50);
  line-height: 1.45;
}

/* Premium CTAs */
.premium-ctas {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--ink);
  padding: 18px 36px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 24px rgba(201, 163, 64, 0.30);
}

.cta-gold:hover {
  background: #D9B452;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(201, 163, 64, 0.40);
}

.cta-gold svg { width: 18px; height: 18px; }

.premium-fineprint {
  margin: 20px 0 0;
  font-size: 13px;
  color: rgba(245, 239, 225, 0.50);
}

/* ─── Footer ─────────────────────────── */
.site-footer {
  padding: 64px 0 56px;
  border-top: 1px solid var(--border);
  background: var(--cream-dark);
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.footer-brand { display: inline-flex; align-items: center; text-decoration: none; }
.footer-brand img { height: 28px; width: auto; }

.footer-links { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 14px; color: var(--ink-soft); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }

.footer-fine {
  font-size: 12px;
  color: var(--ink-soft);
  max-width: 520px;
  line-height: 1.6;
  margin: 0;
}
.footer-fine a { color: inherit; }

/* ─── Content pages ─────────────────────────── */
.content-page { padding: 72px 0 96px; }

.content-header { text-align: center; margin-bottom: 56px; }

.content-header h1 {
  font-family: 'PT Serif', Georgia, serif;
  font-weight: 700;
  font-size: clamp(36px, 6vw, 56px);
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin: 0 0 12px;
  line-height: 1.05;
}

.content-header .updated { font-size: 14px; color: var(--ink-soft); margin: 0; }

.content-body { max-width: 680px; margin: 0 auto; }

.content-body h2 {
  font-family: 'PT Serif', Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  margin: 40px 0 14px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.content-body h2:first-child { padding-top: 0; border-top: none; margin-top: 0; }

.content-body p, .content-body ul { margin: 0 0 16px; color: var(--ink); line-height: 1.7; }
.content-body ul { padding-left: 22px; }
.content-body li { margin-bottom: 8px; }
.content-body a { color: var(--feather); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.content-body a:hover { color: var(--ink); }
.content-body strong { font-weight: 600; }

.faq { margin-top: 32px; }
.faq-item { padding: 24px 0; border-top: 1px solid var(--border); }
.faq-item:first-child { border-top: none; padding-top: 8px; }
.faq-item h3 { font-family: 'PT Serif', Georgia, serif; font-weight: 700; font-size: 18px; margin: 0 0 8px; }
.faq-item p { color: var(--ink-soft); font-size: 15px; line-height: 1.6; margin: 0; }

.email-block { background: var(--cream-dark); border-radius: 14px; padding: 32px; text-align: center; margin: 32px 0 40px; }
.email-block .label { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 8px; }
.email-block .email { font-family: 'PT Serif', Georgia, serif; font-weight: 700; font-size: 22px; margin: 0; }
.email-block .email a { color: var(--ink); text-decoration: none; }
.email-block .email a:hover { color: var(--feather); }

/* ─── A11y ─────────────────────────── */
:focus-visible { outline: 2px solid var(--feather); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-mockup, .feature-media img { transform: none !important; }
}
