/* about.html only. Reuses styles.css for theme tokens (--bg/--text/--accent/...), the
   .tile/.board classes and their flip/pop/bounce keyframes (so the hero demo board looks
   pixel identical to the real game), and .btn-primary/.logo/.icon-btn. Nothing here
   redefines a colour -- every colour below resolves through a token from styles.css so
   the page follows whichever theme the cookie says, same as every other secondary page. */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--on-accent);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

body.about-page {
  display: block;
  min-height: 100vh;
  max-width: none;
  margin: 0;
}

.about-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.about-logo { text-decoration: none; }
.about-nav-cta { width: auto; padding: 8px 20px; margin: 0; }

main { max-width: none; }

.about-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
  padding: 64px 24px;
  max-width: 1080px;
  margin: 0 auto;
}
.about-hero-copy { flex: 1 1 420px; min-width: 280px; }
.about-hero-demo { flex: 1 1 280px; min-width: 240px; display: flex; justify-content: center; }

.about-hero h1 {
  font-size: 2.25rem;
  line-height: 1.1;
  font-weight: 700;
  max-width: 680px;
  margin: 0 0 16px;
  text-wrap: balance;
  background: linear-gradient(90deg, var(--text), var(--text-dim));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.about-hero-sub {
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 0 24px;
  text-wrap: pretty;
}
.about-proof-line {
  font-size: 0.875rem;
  color: var(--text-dim);
  margin: 16px 0 0;
}

.about-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.about-cta-row .btn-primary {
  width: auto;
  margin: 0;
  padding: 8px 20px;
  text-decoration: none;
  display: inline-block;
}

.about-demo-board {
  --word-length: 6;
  width: min(280px, 80vw);
}
.about-demo-board .board-row { margin-bottom: 6px; }

.about-tagline {
  max-width: 680px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
}
.about-tagline p {
  font-size: 1.875rem;
  line-height: 1.3;
  font-weight: 600;
  text-wrap: balance;
  margin: 0;
}
.tagline-word {
  color: var(--text-dim);
  opacity: 0.3;
  transition: color 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.tagline-word.active { color: var(--text); opacity: 1; }

.about-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 24px;
}
.about-section h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 0 0 8px;
  text-align: center;
}
.about-section-sub {
  color: var(--text-dim);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 40px;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

.about-length-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.about-length-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  background: var(--bg-elevated);
}
.about-length-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 1.125rem;
  margin: 0 0 12px;
}
.about-length-card h3 { margin: 0 0 8px; font-size: 1.125rem; }
.about-length-card p { color: var(--text-dim); margin: 0 0 16px; }
.about-length-link { color: var(--accent-hover); text-decoration: none; font-weight: 600; }
.about-length-link:hover { text-decoration: underline; }
.about-length-note {
  text-align: center;
  color: var(--text-dim);
  max-width: 560px;
  margin: 32px auto 0;
}

.about-benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.about-benefit-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}
.about-benefit-icon { font-size: 1.5rem; margin: 0 0 12px; }
.about-benefit-card h3 { margin: 0 0 8px; font-size: 1.125rem; }
.about-benefit-card p { color: var(--text-dim); margin: 0; }

.about-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.about-step { text-align: center; }
.about-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent-hover);
  font-weight: 700;
  margin: 0 auto 12px;
}
.about-step h3 { margin: 0 0 8px; font-size: 1.125rem; }
.about-step p { color: var(--text-dim); margin: 0; }

.about-faq-list { margin-top: 40px; }
.about-faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.about-faq-item:last-child { border-bottom: none; }
.about-faq-item dt { font-weight: 600; margin: 0 0 8px; }
.about-faq-item dd { color: var(--text-dim); margin: 0; }

.about-final-cta { text-align: center; }
.about-final-cta .about-cta-row { justify-content: center; }

.about-footer {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 32px 24px 64px;
  flex-wrap: wrap;
}
.about-footer a { color: var(--text-dim); text-decoration: none; font-size: 0.875rem; }
.about-footer a:hover { color: var(--text); text-decoration: underline; }

@media (max-width: 640px) {
  .about-hero { flex-direction: column; text-align: center; padding: 40px 16px; }
  .about-hero-copy { text-align: left; }
  .about-hero h1 { font-size: 1.75rem; }
  .about-cta-row { justify-content: center; }
  .about-section { padding: 48px 16px; }
  .about-tagline p { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.revealed { opacity: 1; transform: none; transition: none; }
  .tagline-word { transition: none; }
}
