/* Fast Fingers — Shared styles */
:root {
  color-scheme: light;
  --bg: #fff5f3;
  --surface: #ffffff;
  --ink: #3d1510;
  --muted: #8b6b63;
  --accent: #ff3366;
  --accent-blue: #2f6bff;
  --accent-soft: rgba(255, 51, 102, 0.12);
  --outline: rgba(61, 21, 16, 0.12);
  --glass: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(61, 21, 16, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--outline);
  z-index: 10;
}

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

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
}

.logo img {
  display: block;
  height: 36px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 14px;
  font-weight: 600;
  flex-wrap: wrap;
}

.nav-links a:hover {
  color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid var(--outline);
  background: var(--surface);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 51, 102, 0.2);
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.strip .btn:not(.primary) {
  background: var(--surface);
  color: var(--ink);
}

/* Cards & sections */
.section {
  padding: 56px 0;
}

.section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 30px;
  margin-bottom: 14px;
  color: var(--ink);
}

.section p {
  color: var(--muted);
  margin-bottom: 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface);
  border-radius: 18px;
  padding: 20px;
  border: 1px solid var(--outline);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 51, 102, 0.08);
}

.card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--ink);
}

/* Hero */
.hero {
  padding: 80px 0 56px;
  position: relative;
  overflow: hidden;
}

.hero-mascots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-mascot-left,
.hero-mascot-right {
  position: absolute;
  bottom: 0;
  height: clamp(180px, 25vw, 280px);
  object-fit: contain;
  object-position: bottom;
}

.hero-mascot-left {
  left: 0;
  transform: translateX(-8%);
  animation: mascotSlideInLeft 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.hero-mascot-right {
  right: 0;
  transform: translateX(8%);
  animation: mascotSlideInRight 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes mascotSlideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20%);
  }
  to {
    opacity: 1;
    transform: translateX(-8%);
  }
}

@keyframes mascotSlideInRight {
  from {
    opacity: 0;
    transform: translateX(20%);
  }
  to {
    opacity: 1;
    transform: translateX(8%);
  }
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
  align-items: center;
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--ink);
}

.hero p {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 24px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-cta {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--accent-soft);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

/* Hero card */
/* iPhone frame — pre–Dynamic Island style, thin gray bezel, nothing covers screenshots */
.iphone-frame {
  --iphone-bezel: 8px;
  --iphone-radius: 40px;
  --iphone-bezel-color: #8e8e93;
  position: relative;
  width: min(380px, 100%);
  max-width: 100%;
  margin: 0 auto;
  padding: var(--iphone-bezel);
  background: linear-gradient(
    160deg,
    #a8a8ad 0%,
    var(--iphone-bezel-color) 25%,
    #6c6c70 60%,
    #5c5c60 100%
  );
  border-radius: var(--iphone-radius);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1),
    0 20px 40px -15px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.iphone-screen {
  position: relative;
  background: #000;
  border-radius: calc(var(--iphone-radius) - var(--iphone-bezel));
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3);
}

.iphone-frame .screenshot-carousel {
  border: none;
  border-radius: 0;
}

.iphone-frame .carousel-track {
  border-radius: 0;
}

.iphone-frame .carousel-track img {
  background: #000;
}

.iphone-frame .carousel-dots {
  padding: 14px 12px;
  background: rgba(0, 0, 0, 0.25);
}

.iphone-frame .carousel-dots button {
  background: rgba(255, 255, 255, 0.35);
}

.iphone-frame .carousel-dots button.active {
  background: #fff;
}

@media (max-width: 768px) {
  .iphone-frame {
    width: min(340px, 100%);
  }
}

@media (max-width: 480px) {
  .iphone-frame {
    --iphone-bezel: 6px;
    --iphone-radius: 34px;
    width: min(300px, 100%);
  }
}

/* Carousel */
.screenshot-carousel {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--outline);
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.carousel-track::-webkit-scrollbar {
  height: 6px;
}
.carousel-track::-webkit-scrollbar-thumb {
  background: var(--outline);
  border-radius: 3px;
}

.carousel-track img {
  flex: 0 0 100%;
  width: 100%;
  height: auto;
  object-fit: contain;
  scroll-snap-align: start;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--outline);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.carousel-dots button:hover {
  transform: scale(1.2);
}
.carousel-dots button.active {
  background: var(--accent);
  transform: scale(1.2);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.stat {
  padding: 16px;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--outline);
}

.stat strong {
  display: block;
  font-size: 18px;
  color: var(--ink);
}

/* Mascot sections */
.mascot-section {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  padding: 56px 0;
}

.mascot-section .container,
.brand-section .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: center;
}

.mascot-duo,
.brand-visual {
  flex: 0 0 auto;
  max-width: 320px;
}

.mascot-duo img,
.brand-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.mascot-duo img {
  animation: mascotFadeUp 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes mascotFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mascot-copy,
.brand-copy {
  flex: 1;
  min-width: 280px;
  max-width: 480px;
}

.mascot-copy h2,
.brand-copy h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  margin-bottom: 12px;
  color: var(--ink);
}

.mascot-copy p,
.brand-copy p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 16px;
}

.brand-section {
  background: linear-gradient(
    180deg,
    var(--bg) 0%,
    #ffe8e5 50%,
    var(--bg) 100%
  );
  padding: 56px 0;
}

.brand-visual {
  max-width: 400px;
}

/* Modes visual */
.modes-visual {
  margin: 24px 0 32px;
  text-align: center;
}

.modes-island {
  max-width: 100%;
  width: min(560px, 100%);
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--outline);
  box-shadow: 0 12px 24px rgba(255, 51, 102, 0.08);
}

/* Site counter — Freddie & Eddie messing with the numbers */
.site-counter-section {
  padding: 40px 0 56px;
  background: var(--bg);
}

.site-counter-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.site-counter-wrap {
  position: relative;
  display: block;
  max-width: min(560px, 100%);
  margin: 0 auto;
}

.site-counter-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

.site-counter-digits {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  pointer-events: none;
}

.site-counter-digit {
  position: absolute;
  top: calc(28% + 38px);
  height: 36%;
  width: 6.5%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'VT323', monospace;
  font-size: clamp(20px, 5.5vw, 40px);
  font-weight: 400;
  color: var(--ink);
  text-shadow: 0 0 2px var(--accent-soft), 0 1px 2px rgba(0, 0, 0, 0.15);
  line-height: 1;
}

/* 7 slots: down 38px, ~45px right so digits sit in the squares */
.site-counter-digit:nth-child(1) { left: calc(24% + 45px); }
.site-counter-digit:nth-child(2) { left: calc(30.5% + 45px); }
.site-counter-digit:nth-child(3) { left: calc(37% + 45px); }
.site-counter-digit:nth-child(4) { left: calc(43.5% + 45px); }
.site-counter-digit:nth-child(5) { left: calc(50% + 45px); }
.site-counter-digit:nth-child(6) { left: calc(56.5% + 45px); }
.site-counter-digit:nth-child(7) { left: calc(63% + 45px); }

/* Strip CTA */
.strip {
  background: linear-gradient(135deg, var(--accent) 0%, #e62e5c 100%);
  color: #fff;
  padding: 28px 0;
}

.strip-content {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

/* Footer — unified across all pages */
footer {
  padding: 40px 0 48px;
  color: var(--muted);
  font-size: 13px;
  background: var(--bg);
  border-top: 1px solid var(--outline);
}

footer a {
  text-decoration: underline;
}

footer a:hover {
  color: var(--accent);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  display: block;
  height: 32px;
  width: auto;
  object-fit: contain;
}

.footer-mascots {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
}

.footer-mascots .store-badge {
  display: block;
  line-height: 0;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.footer-mascots .store-badge:hover {
  opacity: 0.85;
}

/* Same size for both store badges so App Store doesn’t look bigger than Google Play */
.footer-mascots .store-badge img {
  height: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.footer-mascots > img,
.footer-mascots .footer-mascots-arms {
  height: 80px;
  width: auto;
  object-fit: contain;
}

.footer-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Back link */
.back-link {
  display: inline-block;
  margin-top: 24px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: var(--ink);
  transition: background 0.2s, transform 0.2s;
}

.back-link:hover {
  background: var(--accent-soft);
  transform: translateX(-2px);
}

/* Mascot gallery row — for rules/leaderboard */
.mascot-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin: 24px 0;
}

.mascot-gallery img {
  max-width: 200px;
  height: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .container,
  .container-narrow {
    padding: 0 16px;
  }
  .nav {
    padding: 14px 0;
  }
  header .nav {
    padding-top: 28px;
  }
  .nav-links {
    gap: 12px;
    font-size: 13px;
  }
  .hero-mascots {
    display: none;
  }
  .hero {
    padding: 40px 0 32px;
  }
  .hero h1 {
    font-size: clamp(26px, 8vw, 36px);
  }
  .hero p {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .hero-grid {
    gap: 24px;
  }
  .hero-card {
    padding: 20px;
    border-radius: 18px;
  }
  .stats {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 20px;
  }
  .stat {
    padding: 14px;
  }
  .stat strong {
    font-size: 16px;
  }
  .mascot-section,
  .brand-section {
    padding: 40px 0;
  }
  .mascot-section .container,
  .brand-section .container {
    flex-direction: column;
    gap: 24px;
  }
  .mascot-duo {
    max-width: 260px;
  }
  .brand-visual {
    max-width: 280px;
  }
  .mascot-copy,
  .brand-copy {
    text-align: center;
  }
  .mascot-copy h2,
  .brand-copy h2 {
    font-size: 24px;
  }
  .modes-visual {
    margin: 16px 0 24px;
  }
  .section {
    padding: 40px 0;
  }
  .section h2 {
    font-size: 24px;
    margin-bottom: 12px;
  }
  .section p {
    font-size: 15px;
    margin-bottom: 18px;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .card {
    padding: 16px;
  }
  .card h3 {
    font-size: 16px;
  }
  .strip {
    padding: 20px 0;
  }
  .strip-content {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    text-align: center;
  }
  .strip-content .cta-row {
    justify-content: center;
  }
  .strip-content strong {
    font-size: 18px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }
  .footer-mascots {
    order: -1;
  }
  .footer-mascots > img {
    height: 60px;
  }
  .footer-mascots .store-badge img {
    height: 38px;
  }
}

@media (max-width: 480px) {
  .container,
  .container-narrow {
    padding: 0 12px;
  }
  .btn {
    padding: 10px 16px;
    font-size: 14px;
  }
  .mascot-gallery img {
    max-width: 140px;
  }
}
