/* ===========================================================================
   POLLN8 FAQ - faq.css
   Brand tokens mirror the in-game styles.css, About, Field Guide, and
   Teacher Guide pages, so marketing, the game, and all guides stay in sync.
   Dark cinematic green world, cream reading layer, single nectar-gold accent.
   =========================================================================== */

:root {
  --color-bg: #0a130e;
  --color-bg-deep: #0a130e;
  --color-bg-mid: #0e1b13;
  --color-bg-rise: #12241a;
  --cream: #e6ede2;
  --cream-soft: rgba(230, 237, 226, 0.82);
  --cream-faint: rgba(230, 237, 226, 0.6);
  --gold: #e9c46a;
  --gold-deep: #cfa64a;
  --panel: rgba(22, 39, 27, 0.5);
  --panel-strong: rgba(22, 39, 27, 0.72);
  --panel-border: rgba(143, 165, 147, 0.18);
  --panel-border-strong: rgba(143, 165, 147, 0.32);
  --art-line: rgba(230, 237, 226, 0.82);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;

  --maxw: 72rem;
  --readw: 40rem;
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  min-height: 100vh;
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  font-size: 1.0625rem;
  background:
    radial-gradient(120% 90% at 50% 8%, #12241a 0%, var(--color-bg-mid) 42%, var(--color-bg) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--cream);
  text-underline-offset: 3px;
  text-decoration-color: var(--panel-border-strong);
}
a:hover {
  text-decoration-color: var(--gold);
}

section {
  padding-inline: clamp(1.1rem, 5vw, 2.5rem);
}
.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.12;
  color: var(--cream);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: clamp(3rem, 9vw, 6rem);
  padding-bottom: clamp(2.5rem, 7vw, 4.5rem);
  text-align: center;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 60%;
  background: radial-gradient(ellipse at 50% 0%, rgba(233, 196, 106, 0.16), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.hero h1 {
  font-size: clamp(2.5rem, 7.5vw, 4.6rem);
  margin: 0 auto 1.4rem;
  max-width: 16ch;
}
.hero__lede {
  max-width: var(--readw);
  margin: 0 auto 2.2rem;
  color: var(--cream-soft);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
}
.hero__actions {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__meta {
  margin-top: 1.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--cream-faint);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  cursor: pointer;
  font-family: var(--font-body);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn--primary {
  background: linear-gradient(180deg, #ffd25a, var(--gold) 55%, var(--gold-deep));
  color: #1a1305;
  border: none;
  box-shadow: 0 10px 30px -12px rgba(233, 196, 106, 0.6);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px -12px rgba(233, 196, 106, 0.7);
}
.btn--ghost {
  background: var(--panel);
  color: var(--cream);
  border: 1.5px solid var(--panel-border-strong);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
}

/* ===========================================================================
   FAQ-specific components (build on the shared tokens above)
   =========================================================================== */

/* ---- Quick-answer lede block (AEO featured-snippet target) ---- */
.faq-tldr {
  max-width: var(--maxw);
  margin: clamp(2rem, 5vw, 3rem) auto 0;
}
.faq-tldr__inner {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(233, 196, 106, 0.1), transparent 60%),
    var(--panel-strong);
  border: 1px solid var(--panel-border-strong);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.2rem);
  position: relative;
}
.faq-tldr h2 {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  font-family: var(--font-body);
  margin-bottom: 0.7rem;
}
.faq-tldr p {
  color: var(--cream-soft);
  max-width: 60ch;
}
.faq-tldr p + p {
  margin-top: 0.8rem;
}
.faq-tldr strong {
  color: var(--cream);
  font-weight: 600;
}

/* ---- On-this-page / category jump nav (pill row) ---- */
.faq-toc {
  max-width: var(--maxw);
  margin: clamp(2rem, 5vw, 3rem) auto 0;
}
.faq-toc__inner {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 1.6rem) clamp(1.3rem, 3vw, 1.8rem);
}
.faq-toc h2 {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.9rem;
  font-family: var(--font-body);
}
.faq-toc ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.7rem;
  counter-reset: toc;
}
.faq-toc li {
  counter-increment: toc;
}
.faq-toc a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--cream-soft);
  background: rgba(10, 19, 14, 0.4);
  border: 1.5px solid var(--panel-border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}
.faq-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.faq-toc a:hover {
  color: var(--cream);
  border-color: var(--gold);
  background: rgba(10, 19, 14, 0.65);
}

/* ---- FAQ category section ---- */
.faq-cat {
  max-width: var(--maxw);
  margin: clamp(2.6rem, 7vw, 4.2rem) auto 0;
}
.faq-cat__head {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin-bottom: 1.3rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--panel-border);
}
.faq-cat__num {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--gold);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.faq-cat__head h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}
.faq-cat__sub {
  color: var(--cream-faint);
  font-size: 0.95rem;
  margin: -0.5rem 0 1.3rem;
  max-width: var(--readw);
}

/* ---- Q&A accordion (native <details>) ---- */
.faq-list {
  display: grid;
  gap: 0.8rem;
}
.faq-item {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.faq-item[open] {
  border-color: var(--panel-border-strong);
  background: var(--panel-strong);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 1.3rem;
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 2.4vw, 1.32rem);
  color: var(--cream);
  line-height: 1.25;
  transition: color 0.2s var(--ease);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary:hover {
  color: var(--gold);
}
.faq-item__icon {
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.1rem;
  position: relative;
}
.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.28s var(--ease), opacity 0.28s var(--ease);
}
.faq-item__icon::before {
  top: 50%;
  left: 15%;
  right: 15%;
  height: 2px;
  transform: translateY(-50%);
}
.faq-item__icon::after {
  left: 50%;
  top: 15%;
  bottom: 15%;
  width: 2px;
  transform: translateX(-50%);
}
.faq-item[open] .faq-item__icon::after {
  transform: translateX(-50%) scaleY(0);
  opacity: 0;
}
.faq-item__q {
  flex: 1 1 auto;
}
.faq-item__a {
  padding: 0 1.3rem 1.3rem calc(1.3rem + 1.5rem + 1rem);
  color: var(--cream-soft);
  font-size: 0.98rem;
}
.faq-item__a p + p {
  margin-top: 0.9rem;
}
.faq-item__a ul {
  margin: 0.7rem 0 0 1.1rem;
  color: var(--cream-soft);
}
.faq-item__a li {
  margin-bottom: 0.4rem;
}
.faq-item__a li::marker {
  color: var(--gold);
}
.faq-item__a a {
  color: var(--cream);
  text-decoration-color: var(--gold);
}
.faq-item__a strong {
  color: var(--cream);
  font-weight: 600;
}

/* ---- Back-to-top affordance per category ---- */
.faq-cat__top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--cream-faint);
  text-decoration: none;
}
.faq-cat__top:hover {
  color: var(--gold);
}

/* ---- CTA ---- */
.cta {
  max-width: var(--maxw);
  margin: clamp(3rem, 8vw, 5rem) auto clamp(4rem, 9vw, 6rem);
}
.cta__inner {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(233, 196, 106, 0.12), transparent 70%),
    var(--panel-strong);
  border: 1px solid var(--panel-border-strong);
  border-radius: var(--radius);
  padding: clamp(2.2rem, 6vw, 4rem) clamp(1.4rem, 5vw, 3rem);
  text-align: center;
}
.cta h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1.1rem;
  max-width: 18ch;
  margin-inline: auto;
}
.cta__text {
  max-width: 44rem;
  margin: 0 auto 2rem;
  color: var(--cream-soft);
}
.cta__alt {
  margin-top: 1.8rem;
  font-size: 0.92rem;
  color: var(--cream-soft);
}
.cta__alt a {
  color: var(--cream);
  text-decoration-color: var(--gold);
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .faq-item__a {
    padding-left: 1.3rem;
  }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
