/* ==========================================================================
   Layout primitives
   ========================================================================== */

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--paper { background: var(--paper); }

.section-head { max-width: 40rem; margin-bottom: var(--s-7); }
.section-head h2 { font-size: var(--fs-2xl); line-height: 1.15; }
.section-head p { margin-top: var(--s-4); font-size: var(--fs-md); color: var(--muted); }

.lede { font-size: var(--fs-md); color: var(--ink-2); max-width: 36rem; }

/* Pixel-square motif from the logo, used as a static accent */
.pixels {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(4, var(--px, 14px));
  gap: calc(var(--px, 14px) * 0.32);
  pointer-events: none;
}
.pixels i {
  width: var(--px, 14px);
  height: var(--px, 14px);
  background: var(--accent);
  border-radius: 2px;
}
.pixels i.o { background: transparent; }
.pixels i.c { background: var(--brand); }

/* Scroll reveal (activated only when JS adds .js to <html>) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   Shared section patterns (moved from home.css in Phase 2 for reuse)
   ========================================================================== */
/* Elements GSAP animates stay hidden until the engine is ready (inline script
   removes .anim-pending after 3.5s as a safety net). */
.anim-pending [data-hero],
.anim-pending [data-split],
.anim-pending [data-anim] { visibility: hidden; }

/* Shared section heading */
.sec-head { max-width: 44rem; margin-bottom: var(--s-7); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: var(--fs-2xl); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }
.sec-head p:not(.kicker) { margin-top: var(--s-4); color: var(--muted); font-size: var(--fs-md); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--s-4);
  padding: 6px 14px 6px 8px;
  border-radius: var(--r-pill);
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.kicker span { width: 10px; height: 10px; border-radius: 3px; background: var(--grad-ember); }
.kicker--light { background: var(--glass); color: var(--on-night); border: 1px solid var(--glass-line); }

/* Soft animated colour blobs used on dark sections */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.75;
  animation: blob-drift 18s var(--ease-in-out) infinite alternate;
}
.blob--1 { width: 46vw; height: 46vw; max-width: 700px; max-height: 700px; right: -8vw; top: -12vw; background: #0b4d8c; }
.blob--2 { width: 30vw; height: 30vw; max-width: 460px; max-height: 460px; left: -8vw; bottom: -10vw; background: #74552a; opacity: 0.45; animation-duration: 22s; }
.blob--3 { width: 22vw; height: 22vw; max-width: 340px; max-height: 340px; left: 38%; top: 30%; background: #3a9fd8; opacity: 0.25; animation-duration: 26s; }
.blob--4 { width: 40vw; height: 40vw; max-width: 600px; max-height: 600px; left: -12vw; top: -10vw; background: #0b4d8c; opacity: 0.5; }
.blob--5 { width: 30vw; height: 30vw; max-width: 460px; max-height: 460px; right: -6vw; bottom: -8vw; background: #a57d45; opacity: 0.35; animation-duration: 24s; }
@keyframes blob-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(4vw, 3vw) scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .blob { animation: none !important; }
  .anim-pending [data-hero], .anim-pending [data-split], .anim-pending [data-anim] { visibility: visible; }
}

/* Formula card, FAQ two-column layout and tick marks (moved from home.css in Phase 3 for reuse) */
.formula { margin-top: var(--s-6); padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--r-md); box-shadow: var(--shadow-1); }
.formula__eq { color: var(--ink); font-family: var(--font-display); font-size: clamp(1rem, 0.9rem + 0.6vw, 1.25rem); font-weight: 600; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.formula__eq sup { font-size: 0.65em; }
.formula__defs { display: grid; gap: 6px; margin: var(--s-4) 0 0; font-size: var(--fs-sm); }
.formula__defs div { display: flex; gap: var(--s-3); }
.formula__defs dt { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--brand-50); color: var(--brand); font-family: var(--font-display); font-weight: 700; font-style: italic; }
.formula__defs dd { margin: 0; padding-top: 1px; color: var(--ink-2); }
.tick {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(224, 181, 116, 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e0b574' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4.5 4.5L19 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.faq__intro { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.faq__intro h2 { font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.faq__intro > p:not(.kicker) { margin-top: var(--s-3); color: var(--muted); font-size: var(--fs-md); }
@media (max-width: 1080px) { .faq__intro { position: static; } }
@media (max-width: 860px) { .faq__grid { grid-template-columns: minmax(0, 1fr); } }
