/* Whack Fun site. Tokens copied from Rob/WhackFun docs/design-system/tokens.css.
   System fonts only. No external requests. */
:root {
  --primary: #1b5e20;
  --primary-light: #4c8c4a;
  --primary-dark: #003300;
  --on-primary: #ffffff;
  --secondary: #f9a825;
  --secondary-light: #ffd95a;
  --on-secondary: #212121;
  --background: #fdf6e3;
  --surface: #ffffff;
  --surface-variant: #f5f5f5;
  --text: #212121;
  --text-secondary: #616161;
  --elevation-1: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08);
  --elevation-fab: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.12);
  --space-xxs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", Roboto, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
:focus-visible { outline: 3px solid var(--primary-dark); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--on-primary); }
h1, h2, h3, p, ul, figure { margin: 0; }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--secondary); color: var(--on-secondary);
  padding: var(--space-sm) var(--space-md); border-radius: var(--radius-md);
  z-index: 10; min-height: 44px; display: inline-flex; align-items: center;
}
.skip-link:focus { left: 8px; }

/* Header */
.site-header { background: var(--surface); box-shadow: var(--elevation-1); }
.header-inner {
  max-width: 1120px; margin: 0 auto; padding: var(--space-sm) var(--space-lg);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-xs) var(--space-lg);
}
.logo-link { display: flex; align-items: center; min-height: 48px; min-width: 48px; }
.logo-link img { width: 64px; height: 64px; object-fit: contain; }
.site-nav { display: flex; flex-wrap: wrap; gap: var(--space-xxs) var(--space-xs); font-size: 15px; font-weight: 600; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 10px; text-decoration: none;
}
.site-nav a:hover { text-decoration: underline; }
.site-nav a[aria-current="page"] {
  color: var(--primary-dark);
  text-decoration: underline; text-decoration-thickness: 3px;
  text-decoration-color: var(--secondary); text-underline-offset: 6px;
}

/* Layout */
.wrap { max-width: 1120px; margin: 0 auto; }
.narrow { max-width: 760px; margin: 0 auto; padding: 64px var(--space-lg) 80px; display: flex; flex-direction: column; gap: var(--space-xl); }
.stack-16 { display: flex; flex-direction: column; gap: var(--space-md); }

h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.1; font-weight: 800; letter-spacing: -0.5px; color: var(--primary); }
.lead { font-size: 19px; line-height: 1.55; }
.h2-section { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; font-weight: 800; color: var(--primary); text-align: center; }
.muted { color: var(--text-secondary); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; min-height: 56px; padding: 0 28px;
  border-radius: var(--radius-md); background: var(--secondary); color: var(--on-secondary);
  font-size: 17px; font-weight: 700; letter-spacing: 0.3px; text-decoration: none;
  box-shadow: var(--elevation-fab);
}
.btn:hover { color: var(--on-secondary); background: var(--secondary-light); }
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color 0.15s ease; }
}

/* Home hero */
.hero { max-width: 1120px; margin: 0 auto; padding: 64px var(--space-lg) 72px; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xxl); }
.hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.05; font-weight: 800; letter-spacing: -1px; }
.hero .lead { max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) 20px; margin-top: var(--space-xs); }
.android { font-size: 16px; font-weight: 700; color: var(--primary); }
.small { font-size: 14px; line-height: 1.45; }
.hero-shot { flex: 0 1 300px; display: flex; justify-content: center; margin: 0 auto; }

/* Screenshot placeholders */
.ph {
  background: var(--surface); border: 2px dashed var(--primary-light);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-sm); padding: var(--space-md); text-align: center;
  font-size: 13px; font-weight: 600; color: var(--primary); line-height: 1.4;
}
.ph-hero { width: 280px; max-width: 100%; height: 572px; border-radius: 44px; padding: var(--space-lg); font-size: 14px; }
.ph-hero img { width: 96px; height: 96px; object-fit: contain; }
.ph-hero .ph-note { font-weight: 400; color: var(--text-secondary); }
.ph-shot { width: 100%; max-width: 200px; aspect-ratio: 9 / 19.5; border-radius: 28px; }

/* Features */
.features { background: var(--surface); padding: 72px var(--space-lg); }
.features .wrap, .shots .wrap { display: flex; flex-direction: column; gap: 40px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.feature {
  background: var(--background); border: 2px solid var(--secondary-light); border-radius: var(--radius-md);
  padding: var(--space-lg); display: flex; flex-direction: column; gap: 10px;
}
.feature .emoji { font-size: 36px; line-height: 1; }
.feature h3 { font-size: 20px; line-height: 1.3; font-weight: 700; }
.feature a { font-size: 16px; font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }

/* Shots */
.shots { padding: 72px var(--space-lg); }
.shot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: var(--space-lg); }
.shot-grid figure { display: flex; flex-direction: column; align-items: center; gap: var(--space-sm); }
.shot-grid figcaption { font-size: 16px; font-weight: 600; text-align: center; }

/* CTA band */
.cta-section { padding: 0 var(--space-lg) 80px; }
.cta-band {
  max-width: 1120px; margin: 0 auto; background: var(--primary); color: var(--on-primary);
  border-radius: var(--radius-lg); padding: 56px var(--space-xl);
  display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center;
}
.cta-band h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; font-weight: 800; }
.cta-band p { font-size: 18px; line-height: 1.5; max-width: 36em; }
.cta-band.left { align-items: flex-start; text-align: left; padding: 40px var(--space-xl); gap: var(--space-md); }
.cta-band.left h2 { font-size: 28px; line-height: 1.2; }
.cta-band.left p { font-size: 17px; line-height: 1.55; max-width: none; }

/* Support */
.faq { display: flex; flex-direction: column; gap: var(--space-md); }
.faq h2 { font-size: 28px; line-height: 1.25; font-weight: 800; color: var(--primary); }
.qa {
  background: var(--surface); border-radius: var(--radius-md); padding: var(--space-lg);
  box-shadow: var(--elevation-1); display: flex; flex-direction: column; gap: 10px;
}
.qa h3 { font-size: 20px; line-height: 1.3; font-weight: 700; }
.qa p { line-height: 1.55; }
.qa a { font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.qa p a { display: inline; min-height: 0; }
.contact-note { font-size: 15px; line-height: 1.5; }

/* BBB */
.rules {
  background: var(--surface); border-radius: var(--radius-md); padding: var(--space-lg) 28px;
  box-shadow: var(--elevation-1); display: flex; flex-direction: column; gap: var(--space-xs);
}
.rules h2 { font-size: 22px; line-height: 1.3; font-weight: 700; color: var(--primary); }
.rules ul { padding-left: 22px; line-height: 1.6; display: flex; flex-direction: column; gap: var(--space-xxs); }
.rules-close { font-size: 15px; line-height: 1.5; }

/* Prose (privacy) */
.prose { background: var(--surface); border-radius: var(--radius-md); padding: var(--space-lg) 28px; box-shadow: var(--elevation-1); display: flex; flex-direction: column; gap: var(--space-md); }
.prose h2 { font-size: 22px; line-height: 1.3; font-weight: 700; color: var(--primary); margin-top: var(--space-sm); }
.prose p, .prose li { line-height: 1.6; }
.prose ul { padding-left: 22px; display: flex; flex-direction: column; gap: var(--space-xs); }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.95em; background: var(--surface-variant); padding: 2px 6px; border-radius: 4px; }

/* 404 */
.nf { text-align: left; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--surface-variant); padding: var(--space-xxl) var(--space-lg) 40px; }
.footer-inner { max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-lg); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: var(--space-lg); }
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-tagline { font-size: 18px; font-weight: 700; color: var(--primary); }
.footer-made { font-size: 15px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 20px; font-size: 15px; font-weight: 600; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.legal { display: flex; flex-direction: column; gap: var(--space-xxs); font-size: 13px; line-height: 1.45; color: var(--text-secondary); }

@media (max-width: 480px) {
  .hero, .features, .shots { padding-top: 40px; padding-bottom: 48px; }
  .narrow { padding-top: 40px; padding-bottom: 56px; }
  .cta-band, .cta-band.left { padding: 40px var(--space-lg); }
}
