/* Reusable section patterns — no duplicate blocks */

/* ----- Page load animation (minimal top bar + dot wave) ----- */
.lp-body-loading .lp-page-content {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.lp-body-loaded .lp-page-content {
  opacity: 1;
  transform: translateY(0);
}
.lp-page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s var(--ease-out);
}
.lp-body-loaded .lp-page-loader {
  opacity: 0;
  pointer-events: none;
}
/* Top progress bar — thin shimmer (brand red) */
.lp-page-loader__bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #FF2D2D 40%,
    #ff5050 50%,
    #FF2D2D 60%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: lp-loader-shimmer 1.2s ease-in-out infinite;
}
/* Center: three dots, wave (brand red) */
.lp-page-loader__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.lp-page-loader__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FF2D2D;
  opacity: 0.7;
  animation: lp-loader-dot 1.4s ease-in-out infinite both;
}
.lp-page-loader__dot:nth-child(1) { animation-delay: 0s; }
.lp-page-loader__dot:nth-child(2) { animation-delay: 0.16s; }
.lp-page-loader__dot:nth-child(3) { animation-delay: 0.32s; }
@keyframes lp-loader-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes lp-loader-dot {
  0%, 80%, 100% { transform: scale(0.75); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-page-loader,
  .lp-body-loading .lp-page-content {
    transition-duration: 0.15s;
  }
  .lp-page-loader__bar,
  .lp-page-loader__dot {
    animation: none;
  }
  .lp-page-loader__bar {
    background: #FF2D2D;
    background-size: auto;
  }
  .lp-page-loader__dot { opacity: 0.8; }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-small);
  font-weight: 500;
  line-height: 1;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: background-color var(--duration-normal) var(--ease-out),
    color var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: #dc2626;
  color: white;
}
.btn-primary:hover {
  background: #b91c1c;
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--surface-1);
  color: var(--text-primary);
  border: 1px solid var(--border-1);
}
.btn-secondary:hover {
  background: var(--surface-2);
  border-color: var(--border-2);
}

/* ----- Section block ----- */
.section {
  padding-block: var(--space-16);
}
.section--sm { padding-block: var(--space-12); }
.section--lg { padding-block: var(--space-24); }

.section__title {
  margin-bottom: var(--space-6);
  color: var(--text-primary);
}
.section__lead {
  max-width: 42ch;
  margin-bottom: var(--space-8);
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* ----- Cards ----- */
.card {
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: border-color var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
}
.card:hover {
  border-color: var(--border-2);
  box-shadow: var(--shadow-sm);
}

.card__title {
  margin: 0 0 var(--space-3);
  font-size: var(--text-h3);
}
.card__text {
  margin: 0;
  font-size: var(--text-small);
  color: var(--text-secondary);
}

/* ----- CTA block ----- */
.cta-block {
  text-align: center;
  padding: var(--space-16) var(--content-padding-inline);
  background: var(--surface-1);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-1);
}
.cta-block__title {
  margin: 0 0 var(--space-4);
}
.cta-block__text {
  margin: 0 0 var(--space-8);
  max-width: 36ch;
  margin-inline: auto;
  color: var(--text-secondary);
}
.cta-block__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

/* ----- Nav (premium bar: order from navigation.json, Request Demo CTA) ----- */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-1);
  transition: background var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
}

/* Slightly reduced: ~8% empty space each side, then inner padding */
.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  width: 84vw;
  max-width: none;
  margin-inline: 8vw;
  padding-inline: clamp(16px, 1.5vw, 28px);
  gap: 0;
}
/* Phase 2 — section-aware signal: slim red line, shifts with scroll (homepage); Phase 10 — subtle and stable */
.nav__signal {
  position: absolute;
  left: 6%;
  bottom: 0;
  width: 20px;
  height: 2px;
  background: #FF2D2D;
  border-radius: 1px;
  box-shadow: 0 0 6px rgba(255, 45, 45, 0.15);
  opacity: 0;
  transform: scaleX(0.6);
  transition: left 0.5s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.35s cubic-bezier(0.33, 1, 0.68, 1), transform 0.35s cubic-bezier(0.33, 1, 0.68, 1);
  pointer-events: none;
}
body[data-active-section] .nav__signal {
  opacity: 0.82;
  transform: scaleX(1);
  left: var(--nav-signal-left, 6%);
}
@media (prefers-reduced-motion: reduce) {
  .nav__signal { transition-duration: 0.15s; }
}

/* Phase 4 — optical alignment: logo sits a hair high so it feels centered to the eye */
.nav__brand {
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  text-decoration: none;
  transition: opacity var(--duration-fast) var(--ease-out), transform 0.2s ease-out;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  margin-right: var(--space-4);
  transform: translateY(-1px);
}
.nav__brand:hover {
  color: var(--text-primary);
  opacity: 0.9;
}
.nav__logo {
  height: 21px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
  vertical-align: middle;
}
.nav__logo-text {
  display: inline-block;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #DC2626;
  text-transform: uppercase;
  line-height: 1;
  vertical-align: middle;
}
@media (min-width: 768px) {
  .nav__logo { height: 24px; max-width: 135px; }
  .nav__logo-text { font-size: 1.25rem; letter-spacing: 0.1em; }
}

.nav__links {
  display: none;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  margin-left: auto;
  padding-right: 0;
}
@media (min-width: 900px) {
  .nav__links {
    display: flex;
  }
}
.nav__links li {
  margin: 0;
  padding: 0;
}
/* Phase 3 — nav links: precise pill, hover brighten + red accent; Phase 4 — optical: pill text 1px down */
.nav__links a {
  display: block;
  padding: 6px 12px;
  color: var(--grey-1);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.32s cubic-bezier(0.33, 1, 0.68, 1),
    background 0.35s cubic-bezier(0.33, 1, 0.68, 1),
    box-shadow 0.35s cubic-bezier(0.33, 1, 0.68, 1),
    border-color 0.28s ease-out,
    transform 0.2s ease-out;
  position: relative;
  transform: translateY(1px);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 45, 45, 0.5), transparent);
  opacity: 0;
  transform: scaleX(0.7);
  transition: opacity 0.3s cubic-bezier(0.33, 1, 0.68, 1), transform 0.3s cubic-bezier(0.33, 1, 0.68, 1);
  pointer-events: none;
}
@media (hover: hover) {
  .nav__links a:hover {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.05);
  }
  .nav__links a:hover::after {
    opacity: 1;
    transform: scaleX(1);
  }
}
/* Active nav item — refined pill: less chunky, precise, premium control state */
.nav__links .nav__link--current {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.nav__links .nav__link--current::after {
  opacity: 0;
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
  margin-left: 0;
  padding-left: 0;
}
/* Phase 3 — Request Demo: richer red, subtle depth; Phase 4 — optical: button 1px up, hover lifts 1px more */
.nav__cta .btn {
  font-size: 0.8125rem;
  padding: var(--space-2) var(--space-5);
  font-weight: 500;
  transition: transform 0.35s cubic-bezier(0.33, 1, 0.68, 1),
    box-shadow 0.4s cubic-bezier(0.33, 1, 0.68, 1),
    background 0.35s cubic-bezier(0.33, 1, 0.68, 1);
}
.nav__cta .btn:hover {
  box-shadow: var(--shadow-md);
}
.nav__cta .btn-primary {
  background: #dc2626;
  color: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}
.nav__cta .btn-primary:focus-visible {
  outline: 2px solid #FF2D2D;
  outline-offset: 2px;
}
@media (hover: hover) {
  .nav__cta .btn-primary:hover {
    background: #FF2D2D;
    color: white;
    box-shadow: 0 2px 8px rgba(255, 45, 45, 0.22), 0 1px 2px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
  }
}
.nav__search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.75rem;
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out);
}
.nav__search-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-2);
  background: rgba(255, 255, 255, 0.04);
}
.nav__search-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Mobile menu trigger (for future hamburger) */
.nav__menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
}
@media (min-width: 900px) {
  .nav__menu-btn { display: none; }
}
.nav__menu-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}
.nav__menu-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Phase 10 — mobile: nav signal remains visible; drawer and links degrade gracefully */
@media (max-width: 899px) {
  .nav {
    position: relative;
    flex-wrap: wrap;
    width: 100%;
    height: auto;
    min-height: 56px;
    margin-inline: 0;
    padding-inline: 12px;
  }
  .nav__signal {
    opacity: 0;
    pointer-events: none;
  }
  body[data-active-section] .nav__signal {
    opacity: 0;
  }
  .nav__links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border-1);
    padding: var(--space-4);
    gap: var(--space-1);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height var(--duration-slow) var(--ease-out),
      opacity var(--duration-normal) var(--ease-out);
    box-shadow: var(--shadow-lg);
  }
  .nav__links.nav__links--open {
    max-height: 80vh;
    opacity: 1;
  }
  .nav__links a {
    padding: var(--space-4);
    font-size: 0.9375rem;
    border-radius: var(--radius-md);
  }
  .nav__cta {
    margin-left: auto;
    gap: 6px;
  }
  .nav__cta .btn {
    padding: 9px 12px;
    font-size: 0.75rem;
    white-space: nowrap;
  }
}

@media (max-width: 479px) {
  .nav__search-btn {
    display: none;
  }
  .nav__cta .btn {
    padding: 8px 10px;
    font-size: 0.6875rem;
  }
}

/* ----- Footer: Phase 10 — luxurious spacing, balanced columns, polished interactions, subtle signal ----- */
.footer {
  position: relative;
  padding: var(--space-20) 8vw;
  border-top: none;
  background: var(--bg-2);
  overflow: hidden;
}
/* Phase 9 — soft reception: 1px signal line at seam + faint red glow band below so CTA settles into footer */
.footer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: clamp(60px, 8vh, 100px);
  background-image:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 45, 45, 0.06) 20%,
      rgba(255, 45, 45, 0.1) 50%,
      rgba(255, 45, 45, 0.06) 80%,
      transparent 100%
    ),
    linear-gradient(
      to bottom,
      rgba(255, 45, 45, 0.028) 0%,
      rgba(255, 45, 45, 0.01) 40%,
      transparent 100%
    );
  background-size: 100% 1px, 100% 100%;
  background-position: 0 0, 0 0;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}
/* Faint proof-network layer — felt more than noticed; ~5–8% visual presence */
.footer__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.footer__bg-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: footer-bg-drift 32s ease-in-out infinite alternate;
}
/* Phase 7: keep grid extremely subtle; alive, not animated */
.footer__bg-line {
  stroke: rgba(255, 45, 45, 0.04);
  stroke-width: 0.12;
  fill: none;
}
.footer__bg-node {
  fill: rgba(255, 45, 45, 0.05);
}
/* Grid drifts very softly — felt more than seen */
@keyframes footer-bg-drift {
  from { transform: translate(0, 0); }
  to { transform: translate(4px, 2px); }
}
@media (prefers-reduced-motion: reduce) {
  .footer__bg-svg { animation: none; }
}
/* Subtle ambient red tint; Phase 9 — add soft top band so gateway transition carries into footer */
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(255, 45, 45, 0.022) 0%,
      transparent 35%
    ),
    radial-gradient(
      ellipse 80% 60% at 50% 40%,
      rgba(255, 45, 45, 0.025) 0%,
      transparent 55%
    );
  pointer-events: none;
}
.footer__grid,
.footer__cta-row,
.footer__bottom {
  position: relative;
  z-index: 1;
}
/* Phase 10 — balanced grid, luxurious column spacing */
.footer__grid {
  width: 100%;
  max-width: 1200px;
  margin-inline: 0;
  padding-inline: clamp(20px, 2vw, 32px);
  display: grid;
  gap: var(--space-12) var(--space-6);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-12) var(--space-8);
  }
}
@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 2fr repeat(5, minmax(0, 1fr));
    gap: var(--space-16) 3.5rem;
  }
}
/* Phase 10 — manifesto block: strong anchor, premium hierarchy, breathing room */
.footer__brand-block {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 28rem;
  padding-right: var(--space-8);
}
.footer__brand {
  font-weight: 600;
  margin-bottom: 0;
  padding-bottom: var(--space-6);
}
.footer__brand-link {
  color: #FF2D2D;
  text-decoration: none;
  transition: opacity 0.26s ease-out;
}
.footer__brand-link:hover { opacity: 0.88; }
.footer__brand-wordmark {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.footer__logo {
  height: 24px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}
/* "Proof > Pedigree" — strongest line after logo; Phase 9 typography */
.footer__manifesto-line {
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.38;
  color: var(--text-primary);
  margin: 0 0 var(--space-3) 0;
}
/* Supporting line — smaller, muted */
.footer__manifesto-support {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--grey-1);
  line-height: 1.52;
  margin: 0;
}
/* Optional ecosystem line — smallest, elegant */
.footer__manifesto-eco {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.015em;
  color: var(--text-on-dark-dim);
  line-height: 1.52;
  margin: var(--space-2) 0 0 0;
}
/* Phase 6 — social row: tighter to manifesto so it feels part of brand block */
.footer__social {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-5);
  padding-top: 0;
}
/* Phase 7 — social: hover → red, 1–2px lift, optional soft glow; premium, restrained */
.footer__social-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-dark-dim);
  transition: color 0.3s ease-out, transform 0.3s ease-out, box-shadow 0.3s ease-out;
}
@media (hover: hover) {
  .footer__social-link:hover {
    color: #FF2D2D;
    transform: translateY(-1.5px);
    box-shadow: 0 0 14px rgba(255, 45, 45, 0.12);
  }
}
.footer__social-link:focus-visible {
  outline: 2px solid #FF2D2D;
  outline-offset: 2px;
  color: #FF2D2D;
}
/* Phase 8 — signal system: hover heading/link/social → faint nearby response (restrained) */
@media (hover: hover) {
  .footer__social-link::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 4px;
    height: 4px;
    margin-left: -2px;
    border-radius: 50%;
    background: rgba(255, 45, 45, 0.08);
    box-shadow: 0 0 6px rgba(255, 45, 45, 0.06);
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out, box-shadow 0.4s ease-out;
    pointer-events: none;
  }
  .footer__social-link:hover::before {
    opacity: 0.9;
    transform: scale(1);
    box-shadow: 0 0 8px rgba(255, 45, 45, 0.1);
  }
}
.footer__social-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke-width: 1.5;
}
@media (hover: none) {
  .footer__social-link:hover { transform: none; box-shadow: none; }
}
/* Phase 10 — column links: hover only on pointer devices; touch gets focus-visible */
.footer__col {
  position: relative;
  overflow: visible;
}
/* Phase 9 — column heading; Phase 8 — hover heading → faint signal trace nearby */
.footer__col h4 {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.38);
  margin: 0 0 var(--space-5);
  position: relative;
  line-height: 1.22;
}
@media (hover: hover) {
  .footer__col h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 45, 45, 0.12), transparent);
    opacity: 0;
    transition: opacity 0.45s ease-out;
    pointer-events: none;
  }
  .footer__col h4:hover::after {
    opacity: 1;
  }
}
.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer__col li {
  margin-bottom: var(--space-3);
  line-height: 1;
}
/* Phase 9 — links; Phase 7 — hover: brighten + subtle red signal line that appears */
.footer__col a {
  position: relative;
  display: inline-block;
  color: var(--text-on-dark-muted);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.5;
  text-decoration: none;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  transition: color 0.32s ease-out, border-color 0.35s ease-out;
}
@media (hover: hover) {
  .footer__col a:hover {
    color: rgba(255, 255, 255, 0.92);
    border-bottom-color: rgba(255, 45, 45, 0.22);
  }
}
.footer__col a:focus-visible {
  color: rgba(255, 255, 255, 0.92);
  outline: 1px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
}

/* Phase 8 — column hover: faint signal trace responds (alive beneath surface) */
@media (hover: hover) {
  .footer__col::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 45, 45, 0.055), transparent 65%);
    opacity: 0;
    transition: opacity 0.45s ease-out;
    pointer-events: none;
  }
  .footer__col::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 45, 45, 0.12), transparent);
    opacity: 0;
    pointer-events: none;
  }
  .footer__col:hover::before { opacity: 1; }
  .footer__col:hover::after {
    opacity: 1;
    animation: footer-col-pulse 0.7s ease-out forwards;
  }
  @keyframes footer-col-pulse {
    from { transform: translateX(0); opacity: 0.6; }
    to { transform: translateX(80px); opacity: 0; }
  }
  /* Link hover: tiny pulse in nearby underline (ProofScore etc.) */
  .footer__col a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 12px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 45, 45, 0.15), transparent);
    opacity: 0;
    pointer-events: none;
  }
  .footer__col a:hover::after {
    opacity: 1;
    animation: footer-link-pulse 0.55s ease-out forwards;
  }
  @keyframes footer-link-pulse {
    from { transform: translateX(0); opacity: 0.7; }
    to { transform: translateX(40px); opacity: 0; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .footer__col:hover::after,
  .footer__col a:hover::after { animation: none; opacity: 0; }
  .footer__col h4:hover::after { opacity: 0; }
}
/* Phase 7 — micro-CTA: stronger weight, signal-line accent, hover pulse */
.footer__cta-row {
  width: 100%;
  max-width: 1200px;
  margin-inline: 0;
  margin-top: var(--space-12);
  padding-inline: clamp(20px, 2vw, 32px);
  padding-bottom: var(--space-4);
}
.footer__cta {
  position: relative;
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.45;
  color: var(--grey-1);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 45, 45, 0.2);
  transition: color 0.3s ease-out, border-color 0.32s ease-out, border-width 0.32s ease-out;
}
.footer__cta::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 32px;
  background: linear-gradient(90deg, rgba(255, 45, 45, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.25s ease-out;
  pointer-events: none;
}
@media (hover: hover) {
  .footer__cta:hover {
    color: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(255, 45, 45, 0.4);
    border-bottom-width: 1.5px;
  }
  .footer__cta:hover::after {
    opacity: 1;
    animation: footer-cta-pulse 0.55s ease-out forwards;
  }
}
.footer__cta:focus-visible {
  outline: 2px solid rgba(255, 45, 45, 0.5);
  outline-offset: 2px;
  color: rgba(255, 255, 255, 0.92);
}
@keyframes footer-cta-pulse {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(120px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .footer__cta:hover::after { animation: none; opacity: 0; }
}
/* Phase 6 — bottom row: intentional spacing above/below, elegant divider */
.footer__bottom {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin-inline: 0;
  margin-top: var(--space-8);
  padding-inline: clamp(20px, 2vw, 32px);
  padding-top: var(--space-10);
  padding-bottom: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
/* Divider: thinner feel, subtle red hint at center — premium, not flat grey */
.footer__bottom::before {
  content: "";
  position: absolute;
  left: clamp(20px, 2vw, 32px);
  right: clamp(20px, 2vw, 32px);
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 12%,
    rgba(255, 255, 255, 0.06) 35%,
    rgba(255, 45, 45, 0.04) 50%,
    rgba(255, 255, 255, 0.06) 65%,
    rgba(255, 255, 255, 0.04) 88%,
    transparent 100%
  );
  pointer-events: none;
}
/* Phase 9 — bottom row typography; Phase 6 — intentional hierarchy */
.footer__bottom-copy {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.025em;
  color: var(--text-on-dark-muted);
  line-height: 1.45;
}
.footer__bottom-tagline {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.018em;
  color: var(--grey-1);
  line-height: 1.45;
}

/* ----- Phase 10: responsive footer — tablet, mobile, signal-grid, touch ----- */
/* Tablet: reduced spacing, hierarchy intact, balanced columns */
@media (max-width: 1023px) {
  .footer {
    padding: var(--space-16) 8vw;
  }
  .footer__grid {
    gap: var(--space-10) var(--space-8);
    padding-inline: clamp(18px, 2.5vw, 28px);
  }
  .footer__brand-block {
    padding-right: var(--space-6);
    max-width: 26rem;
  }
  .footer__brand { padding-bottom: var(--space-5); }
  .footer__manifesto-line { margin-bottom: var(--space-2); }
  .footer__social { margin-top: var(--space-5); }
  .footer__col h4 { margin-bottom: var(--space-5); }
  .footer__col li { margin-bottom: var(--space-2); }
  .footer__cta-row {
    margin-top: var(--space-10);
    padding-inline: clamp(18px, 2.5vw, 28px);
  }
  .footer__bottom {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    padding-inline: clamp(18px, 2.5vw, 28px);
  }
}
/* Mobile: stack gracefully, manifesto first, columns in 2-col grid, intentional social */
@media (max-width: 767px) {
  .footer {
    padding: var(--space-12) clamp(20px, 5vw, 28px);
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-10) var(--space-6);
    padding-inline: 0;
  }
  .footer__brand-block {
    max-width: none;
    padding-right: 0;
    padding-bottom: var(--space-8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .footer__brand { padding-bottom: var(--space-4); }
  .footer__manifesto-line {
    font-size: clamp(0.9375rem, 4vw, 1.0625rem);
    margin-bottom: var(--space-2);
  }
  .footer__manifesto-support { font-size: 0.8125rem; }
  .footer__manifesto-eco { font-size: 0.75rem; margin-top: var(--space-1); }
  .footer__social {
    margin-top: var(--space-5);
    gap: var(--space-5);
  }
  .footer__social-icon {
    width: 18px;
    height: 18px;
  }
  /* Columns: 2-col grid so footer doesn’t become one long list */
  .footer__col {
    min-width: 0;
  }
  .footer__col h4 {
    font-size: 0.625rem;
    margin-bottom: var(--space-3);
    letter-spacing: 0.1em;
  }
  .footer__col a { font-size: 0.8125rem; }
  .footer__col li { margin-bottom: var(--space-2); }
  .footer__cta-row {
    margin-top: var(--space-8);
    padding-inline: 0;
    padding-bottom: var(--space-4);
  }
  .footer__cta { font-size: 0.8125rem; }
  .footer__bottom {
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    padding-inline: 0;
  }
  .footer__bottom::before {
    left: 0;
    right: 0;
  }
}
/* Mobile: 2-column layout for link columns only (brand stays full-width first) */
@media (max-width: 767px) and (min-width: 480px) {
  .footer__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-flow: dense;
  }
  .footer__brand-block { grid-column: 1 / -1; }
}
@media (max-width: 479px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .footer__brand-block { grid-column: 1; }
}
/* Phase 10 — signal-grid: keep subtle on small viewports; footer stays premium */
@media (max-width: 1023px) {
  .footer__bg-line { stroke: rgba(255, 45, 45, 0.035); }
  .footer__bg-node { fill: rgba(255, 45, 45, 0.04); }
}
@media (max-width: 767px) {
  .footer__bg-line { stroke: rgba(255, 45, 45, 0.025); }
  .footer__bg-node { fill: rgba(255, 45, 45, 0.03); }
}
/* Phase 10 — touch: no hover-dependent transform; active state gives clear feedback */
@media (hover: none) {
  .footer__social-link:hover { transform: none; }
  .footer__social-link:active { color: #FF2D2D; }
}

/* ----- TLD R box (AEO) ----- */
.tldr {
  background: var(--accent-muted);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin: var(--space-8) 0;
}
.tldr__label {
  font-size: var(--text-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: var(--space-2);
}
.tldr__text {
  margin: 0;
  color: var(--text-primary);
  font-size: var(--text-body);
}

/* ----- FAQ accordion ----- */
.faq-list { margin: 0; padding: 0; list-style: none; }
.faq-item {
  border-bottom: 1px solid var(--border-1);
}
.faq-item:first-child { border-top: 1px solid var(--border-1); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.faq-q:hover { color: var(--accent); }
.faq-q:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.faq-q[aria-expanded="true"] .faq-q__icon { transform: rotate(180deg); }
.faq-q__icon {
  flex-shrink: 0;
  margin-left: var(--space-3);
  transition: transform var(--duration-normal) var(--ease-out);
}
.faq-a {
  padding: 0 0 var(--space-4);
  color: var(--text-secondary);
  font-size: var(--text-small);
}
.faq-a p:last-child { margin-bottom: 0; }

/* ----- Hero ----- */
.hero {
  padding-block: var(--space-24);
  text-align: center;
}
.hero__title {
  margin: 0 0 var(--space-6);
  max-width: 16ch;
  margin-inline: auto;
  font-family: var(--font-sans);
  font-size: var(--hero-headline-size);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.hero__lead {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 42ch;
  margin: 0 auto var(--space-10);
  line-height: var(--leading-snug);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

/* ----- Steps (how it works) ----- */
.steps {
  display: grid;
  gap: var(--space-8);
  counter-reset: step;
}
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
  position: relative;
  padding: var(--space-8);
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent-muted);
  color: var(--accent);
  font-weight: 600;
  font-size: var(--text-small);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-4);
}
.step__title {
  margin: 0 0 var(--space-2);
  font-size: 1.125rem;
}
.step__text {
  margin: 0;
  font-size: var(--text-small);
  color: var(--text-secondary);
}

/* ----- Countdown (events) ----- */
.countdown {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  justify-content: center;
  margin: var(--space-8) 0;
}
.countdown__unit {
  text-align: center;
  min-width: 80px;
}
.countdown__value {
  display: block;
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.2;
}
.countdown__label {
  font-size: var(--text-small);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ----- Form ----- */
.form-group {
  margin-bottom: var(--space-6);
}
.form-group label {
  display: block;
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-body);
  font-family: inherit;
  color: var(--text-primary);
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-fast) var(--ease-out);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}
.form-group .form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: var(--space-1);
}
.form-actions {
  margin-top: var(--space-8);
}
.form-actions .btn { width: 100%; }
@media (min-width: 480px) {
  .form-actions .btn { width: auto; }
}

/* Honeypot — hide from users */
.form-group--hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ----- Search modal (Pagefind) ----- */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: var(--space-16) var(--space-6);
  overflow-y: auto;
}
.search-modal[aria-hidden="false"] {
  display: flex;
}
.search-container {
  width: 100%;
  max-width: 640px;
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}
.search-modal .pagefind-ui__search-input {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  color: var(--text-primary);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  width: 100%;
}
.search-modal .pagefind-ui__result {
  color: var(--text-primary);
}
.search-modal .pagefind-ui__result-title {
  color: var(--accent);
}
.search-modal .pagefind-ui__result-excerpt {
  color: var(--text-secondary);
}
.search-modal button.pagefind-ui__drawer-close {
  background: var(--surface-2);
  color: var(--text-primary);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
}
.search-modal button.pagefind-ui__drawer-close:hover {
  background: var(--border-2);
}
.search-modal button.pagefind-ui__drawer-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
