/* =============================================================================
   FIZ – Motion + extended component library
   Loaded after styles.css. New utilities and components for the rebuilt site.
   Tokens come from styles.css (:root); only additions live here.
   ============================================================================= */


/* ==========================================================================
   TRADEMARK MARK – small superscript ™ next to the fiz wordmark
   ========================================================================== */

.tm {
  font-size: 0.42em;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
  vertical-align: super;
  line-height: 0;
  margin-left: 1.5px;
  opacity: 0.7;
  text-transform: none;
}


/* ==========================================================================
   SCROLL REVEAL
   Default: fade + lift. Use [data-reveal="…variant"] for other styles.
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--ease) var(--reveal-delay, 0ms),
    transform 0.7s var(--ease) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal="left"] {
  transform: translateX(-24px);
}

[data-reveal="right"] {
  transform: translateX(24px);
}

/* On mobile, horizontal slides push wide elements (poster cards, full-width
   visuals) past the viewport edge. Fall back to vertical reveal. */
@media (max-width: 720px) {
  [data-reveal="left"],
  [data-reveal="right"] {
    transform: translateY(18px);
  }
}

[data-reveal="scale"] {
  transform: scale(0.96);
}

[data-reveal="fade"] {
  transform: none;
}

[data-reveal="left"].is-revealed,
[data-reveal="right"].is-revealed,
[data-reveal="scale"].is-revealed {
  transform: none;
}

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


/* ==========================================================================
   NAV – scrolled state (sharper backdrop + thin shadow once scrolled)
   ========================================================================== */

.nav {
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.nav.is-scrolled {
  background: rgba(10, 10, 11, 0.92);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.4);
}


/* ==========================================================================
   CINEMATIC HERO – full-bleed with mesh gradient + grain
   New hero pattern: vertical layout, oversized type, mesh bg, anchored CTA.
   ========================================================================== */

.hero-cinematic {
  position: relative;
  min-height: 100vh;
  padding: 140px 24px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
}

@media (max-width: 520px) {
  .hero-cinematic {
    padding: 100px 14px 60px;
  }
}

/* Mesh gradient – composed of three offset radial gradients */
.hero-cinematic::before {
  content: '';
  position: absolute;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 18% 22%, rgba(255, 72, 72, 0.18) 0%, transparent 60%),
    radial-gradient(48% 42% at 82% 18%, rgba(96, 165, 250, 0.10) 0%, transparent 60%),
    radial-gradient(70% 60% at 50% 95%, rgba(255, 72, 72, 0.10) 0%, transparent 65%);
  filter: blur(0.5px);
}

/* Grain layer */
.hero-cinematic::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* Cursor-aware dot grid + accent orb */
.hero-fx {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  --mx: 50%;
  --my: 50%;
  --orb-opacity: 0;
}

.hero-fx__grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.85) 1px, transparent 1.6px);
  background-size: 26px 26px;
  background-position: 0 0;
  /* Halo mask: bright near cursor, soft everywhere else */
  mask-image:
    radial-gradient(circle 420px at var(--mx) var(--my),
      #000 0%,
      rgba(0, 0, 0, 0.65) 45%,
      rgba(0, 0, 0, 0.32) 100%);
  -webkit-mask-image:
    radial-gradient(circle 420px at var(--mx) var(--my),
      #000 0%,
      rgba(0, 0, 0, 0.65) 45%,
      rgba(0, 0, 0, 0.32) 100%);
  opacity: 0.55;
  transition: opacity 0.6s var(--ease);
}

.hero-fx__orb {
  position: absolute;
  width: 540px;
  height: 540px;
  left: var(--mx);
  top: var(--my);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle,
      rgba(255, 72, 72, 0.22) 0%,
      rgba(255, 72, 72, 0.08) 30%,
      transparent 65%);
  filter: blur(10px);
  opacity: var(--orb-opacity);
  transition: opacity 0.5s var(--ease);
  mix-blend-mode: screen;
}

/* On touch / no fine pointer, leave a faint static grid centered */
@media (hover: none),
(pointer: coarse) {
  .hero-fx__grid {
    opacity: 0.22;
  }

  .hero-fx__orb {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-fx__grid {
    transition: none;
    opacity: 0.22;
  }

  .hero-fx__orb {
    display: none;
  }
}

.hero-cinematic .hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  width: 100%;
  text-align: center;
}

.hero-cinematic .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.hero-cinematic .hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

.hero-cinematic h1 {
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  font-size: min(7.5vw, 56px);
  line-height: 0.95;
  /* Tracking stays at 0 on mobile so letters breathe at small sizes —
     the negative squeeze is reserved for the big desktop display. */
  letter-spacing: 0;
  margin: 0 auto 28px;
}

@media (min-width: 700px) {
  .hero-cinematic h1 {
    font-size: clamp(48px, 10vw, 132px);
    line-height: 0.88;
    letter-spacing: -3px;
    max-width: 14ch;
  }
}

.hero-cinematic h1 .accent {
  color: var(--accent);
}

.hero-cinematic h1 .stroke {
  -webkit-text-stroke: 1.5px var(--text);
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Brand mark above the cinematic display title. Inside the H1 (so the brand
   word "Fiz" sits in the most weighted heading on the page) but styled as a
   small italic accent line — design stays intact, SEO entity signal added. */
.hero-cinematic h1 .brand-line {
  display: block;
  font-size: 0.30em;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -1px;
  line-height: 1;
  color: var(--text);
  margin: 0 auto 18px;
  opacity: 0.92;
}

.hero-cinematic h1 .brand-line__dot {
  color: var(--accent);
  text-shadow: 0 0 18px rgba(255, 72, 72, 0.55);
}

@media (min-width: 700px) {
  .hero-cinematic h1 .brand-line {
    font-size: 0.22em;
    letter-spacing: -2px;
    margin-bottom: 24px;
  }
}

.hero-cinematic .hero-lead {
  max-width: 600px;
  margin: 0 auto 36px;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.55;
  color: var(--text-secondary);
}

.hero-cinematic .hero-ctas {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 56px;
}

.hero-cinematic .hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-cinematic .hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-cinematic .hero-meta svg {
  color: var(--accent);
  width: 14px;
  height: 14px;
}


/* ==========================================================================
   MARQUEE
   ========================================================================== */

.marquee {
  position: relative;
  overflow: hidden;
  padding: 22px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 56px;
  white-space: nowrap;
  animation: marquee-scroll 38s linear infinite;
  will-change: transform;
}

.marquee--reverse .marquee__track {
  animation-direction: reverse;
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -1px;
  text-transform: uppercase;
  color: var(--text);
}

.marquee__item .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.marquee__item.is-muted {
  color: var(--text-muted);
}

.marquee__item.is-accent {
  color: var(--accent);
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
  }
}


/* ==========================================================================
   GLOW BUTTON – primary CTA with subtle glow + shimmer
   ========================================================================== */

.btn-glow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  background: var(--accent);
  color: #000;
  border-radius: 100px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.2px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 0 0 0 var(--accent-glow-strong),
    0 12px 36px -10px var(--accent-glow-strong);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s var(--ease);
}

.btn-glow:hover {
  background: var(--accent-light);
  color: #000;
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px var(--accent-glow-strong),
    0 16px 48px -10px var(--accent-glow-strong);
}

.btn-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: btn-shimmer 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes btn-shimmer {

  0%,
  30% {
    transform: translateX(-100%);
  }

  50%,
  100% {
    transform: translateX(100%);
  }
}


/* ==========================================================================
   BIG STATS – display-scale numeric grid
   ========================================================================== */

.stats-big {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stats-big__cell {
  padding: 36px 24px;
  border-right: 1px solid var(--border);
}

.stats-big__cell:last-child {
  border-right: 0;
}

.stats-big__num {
  font-style: italic;
  font-weight: 900;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 0.95;
  letter-spacing: 0;
  color: var(--text);
  margin-bottom: 8px;
}
@media (min-width: 700px) {
  .stats-big__num { letter-spacing: -2px; }
}

.stats-big__num .accent {
  color: var(--accent);
}

.stats-big__lbl {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .stats-big {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-big__cell {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .stats-big__cell:nth-child(2n) {
    border-right: 0;
  }

  .stats-big__cell:nth-last-child(-n+2) {
    border-bottom: 0;
  }
}


/* ==========================================================================
   PHONE MOCKUP – pure CSS device shell, holds a screenshot or rendered UI
   ========================================================================== */

.phone {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 19.5;
  background: #0E0E10;
  border-radius: 44px;
  padding: 14px;
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.10),
    0 30px 60px -30px rgba(0, 0, 0, 0.9),
    0 12px 24px -12px rgba(0, 0, 0, 0.6);
  transition: transform 0.4s var(--ease);
}

.phone__notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 26px;
  background: #000;
  border-radius: 100px;
  z-index: 3;
}

.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: var(--bg);
  z-index: 1;
}

.phone-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  perspective: 1500px;
}

.phone-trio .phone:nth-child(1) {
  transform: translateY(28px) rotate(-3deg);
}

.phone-trio .phone:nth-child(2) {
  transform: translateY(-10px);
  z-index: 2;
}

.phone-trio .phone:nth-child(3) {
  transform: translateY(28px) rotate(3deg);
}

.phone-trio .phone:hover {
  transform: translateY(-4px) rotate(0deg) scale(1.02);
  z-index: 5;
}

/* Tablet – keep three columns but tighten gap + soften rotation */
@media (max-width: 880px) {
  .phone-trio {
    gap: 16px;
    max-width: 100%;
  }

  .phone-trio .phone:nth-child(1) {
    transform: translateY(18px) rotate(-2deg);
  }

  .phone-trio .phone:nth-child(2) {
    transform: translateY(-6px);
  }

  .phone-trio .phone:nth-child(3) {
    transform: translateY(18px) rotate(2deg);
  }
}

/* Mobile — phones stack vertically, centered, full-width single column. */
@media (max-width: 720px) {
  .phone-trio {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 320px;
  }
  .phone-trio .phone:nth-child(1),
  .phone-trio .phone:nth-child(2),
  .phone-trio .phone:nth-child(3) {
    transform: none;
  }
}


/* Sample rendered screens – used inside .phone__screen */
.screen {
  position: absolute;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  font-size: 12px;
}

.screen__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
}

.screen__hdr {
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.screen__title {
  font-style: italic;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.screen__body {
  flex: 1;
  overflow: hidden;
  padding: 0 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Feed screen */
.feed-post {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feed-post__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
}

.feed-post__avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}

.feed-post__wkname {
  font-style: italic;
  font-weight: 900;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.feed-post__rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feed-post__row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 600;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  color: var(--text-secondary);
}

.feed-post__row strong {
  color: var(--text);
  font-weight: 800;
}

.feed-post__actions {
  display: flex;
  gap: 12px;
  padding-top: 6px;
  border-top: 1px solid var(--border-subtle);
  font-size: 10px;
  color: var(--text-secondary);
  font-weight: 700;
}

.feed-post__actions .accent {
  color: var(--accent);
}

/* AI screen */
.ai-screen {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.ai-screen__prompt {
  margin: 14px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 11px;
  color: var(--text);
  line-height: 1.4;
}

.ai-screen__prompt .label {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.ai-screen__text {
  display: inline;
  white-space: pre-wrap;
}

.ai-screen__caret {
  display: inline-block;
  width: 1.5px;
  height: 0.95em;
  background: var(--accent);
  margin-left: 1px;
  vertical-align: -1px;
  animation: blink 1s step-end infinite;
}

.ai-screen.is-thinking .ai-screen__caret {
  display: none;
}

.ai-screen__cta {
  align-self: flex-start;
  margin: 0 14px;
  padding: 8px 18px;
  background: var(--accent);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 100px;
  opacity: 0.45;
  transform: translateY(2px) scale(0.96);
  transition: opacity 0.3s var(--ease), transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s var(--ease);
}

.ai-screen__cta.is-armed {
  opacity: 1;
  transform: translateY(0) scale(1);
  box-shadow: 0 6px 20px rgba(255, 72, 72, 0.35);
}

.ai-screen__cta.is-pressed {
  transform: translateY(1px) scale(0.97);
  background: var(--accent-dark);
}

.ai-screen__result {
  margin: 14px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-screen__result .row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.ai-screen__result .row.is-in {
  opacity: 1;
  transform: translateY(0);
}

.ai-screen__result .row.is-cap {
  color: var(--accent);
  font-weight: 800;
}

/* Thinking shimmer when result is empty mid-cycle */
.ai-screen.is-thinking .ai-screen__result::before {
  content: '';
  display: block;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--surface) 0%, rgba(255, 255, 255, 0.10) 50%, var(--surface) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.1s linear infinite;
  margin-bottom: 6px;
}

.ai-screen.is-thinking .ai-screen__result::after {
  content: '';
  display: block;
  height: 8px;
  width: 60%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--surface) 0%, rgba(255, 255, 255, 0.08) 50%, var(--surface) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.1s linear infinite 0.2s;
}

/* Leaderboard screen */
.lb-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.lb-row {
  display: grid;
  grid-template-columns: 22px 28px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 6px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 11px;
}

.lb-row__rank {
  font-weight: 800;
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
}

.lb-row[data-rank="1"] .lb-row__rank,
.lb-row[data-rank="2"] .lb-row__rank,
.lb-row[data-rank="3"] .lb-row__rank {
  color: var(--accent);
}

.lb-row__avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-hover);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
}

.lb-row[data-rank="1"] .lb-row__avatar {
  box-shadow: 0 0 0 1.5px #DAA520;
}

.lb-row[data-rank="2"] .lb-row__avatar {
  box-shadow: 0 0 0 1.5px #C0C0C0;
}

.lb-row[data-rank="3"] .lb-row__avatar {
  box-shadow: 0 0 0 1.5px #CD7F32;
}

.lb-row__name {
  font-weight: 700;
  color: var(--text);
}

.lb-row__score {
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}


/* ==========================================================================
   FEATURE PILLAR
   Two-column section: rich left text, big visual right.
   Alternates with .reverse modifier.
   ========================================================================== */

.pillar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
}

.pillar.is-reverse {
  grid-template-columns: 1fr 1fr;
}

.pillar.is-reverse .pillar__visual {
  order: -1;
}

.pillar__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.pillar__title {
  font-style: italic;
  font-weight: 900;
  font-size: clamp(32px, 4.5vw, 60px);
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 22px;
}
@media (min-width: 700px) {
  .pillar__title { letter-spacing: -1.5px; }
}

.pillar__lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 22px;
  max-width: 460px;
}

.pillar__list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pillar__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.45;
}

.pillar__list li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-glow);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF4848' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 11px;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 1px;
}

.pillar__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(60% 60% at 50% 50%, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

@media (max-width: 1024px) {
  .pillar {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 56px 0;
  }

  /* Stop flex-centered children from sizing to content (long author
     lines like "Hero WOD · Memorial Day" were forcing the poster card
     wider than the column on mobile). Force the card to fill its column. */
  .pillar__visual { width: 100%; }
  .pillar__visual > * {
    width: 100% !important;
    max-width: 100% !important;
  }

  .pillar.is-reverse .pillar__visual {
    order: 0;
  }

  .pillar__lead {
    max-width: 100%;
  }
}


/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.testimonial:hover {
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-3px);
}

.testimonial__quote {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  font-weight: 500;
  position: relative;
}

.testimonial__quote::before {
  content: '“';
  position: absolute;
  top: -18px;
  left: -6px;
  font-size: 56px;
  color: var(--accent);
  font-weight: 900;
  line-height: 1;
  opacity: 0.6;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.testimonial__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 15px;
  color: var(--accent);
  flex-shrink: 0;
}

.testimonial__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial__name {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.testimonial__role {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}

@media (max-width: 880px) {
  .testimonials {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   VS COMPARISON (Fiz vs Strava-style table)
   ========================================================================== */

.vs-table {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--bg-hero);
  overflow: hidden;
  isolation: isolate;
}

/* Vertical accent ribbon highlighting the fiz column */
.vs-table::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 33.333%;
  background:
    radial-gradient(ellipse at top, rgba(255, 72, 72, 0.10) 0%, transparent 60%),
    linear-gradient(180deg, rgba(255, 72, 72, 0.06) 0%, rgba(255, 72, 72, 0.03) 100%);
  border-left: 1px solid rgba(255, 72, 72, 0.18);
  pointer-events: none;
  z-index: 0;
}

/* Header */
.vs-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.01);
  position: relative;
  z-index: 1;
}

.vs-head__feat {
  padding: 28px 24px;
}

.vs-head__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 24px 16px;
  text-align: center;
  border-left: 1px solid var(--border-subtle);
}

.vs-head__col[data-brand="strava"] {
  color: var(--text-muted);
}

.vs-head__col[data-brand="strava"] .vs-head__name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text-secondary);
}

.vs-head__col[data-brand="fiz"] {
  position: relative;
}

.vs-head__col[data-brand="fiz"] .vs-head__name {
  font-style: normal;
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1;
}

.vs-head__mark {
  display: inline-block;
  width: 34px;
  height: 34px;
  vertical-align: middle;
  margin-bottom: 4px;
}

.vs-head__tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Body rows */
.vs-body {
  position: relative;
  z-index: 1;
}

.vs-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.2s var(--ease);
}

.vs-row:last-child {
  border-bottom: 0;
}

.vs-row:hover {
  background: rgba(255, 255, 255, 0.015);
}

.vs-feature {
  padding: 18px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.1px;
  line-height: 1.4;
}

.vs-feature em {
  display: block;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 4px;
}

.vs-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 12px;
  border-left: 1px solid var(--border-subtle);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-secondary);
  min-height: 60px;
}

.vs-cell svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.vs-cell__txt {
  white-space: nowrap;
}

.vs-cell.is-yes {
  color: var(--green);
}

.vs-cell.is-no {
  color: var(--text-muted);
  opacity: 0.5;
}

.vs-cell.is-partial {
  color: var(--text-secondary);
}

.vs-cell.is-win {
  color: var(--accent);
  font-weight: 900;
}

.vs-cell.is-win svg {
  filter: drop-shadow(0 0 8px rgba(255, 72, 72, 0.45));
}

/* Tally footer */
.vs-tally {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 1;
}

.vs-tally__lbl {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.vs-tally__score {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.vs-tally__strava {
  color: var(--text-secondary);
  text-transform: none;
}

.vs-tally__sep {
  color: var(--text-muted);
}

.vs-tally__fiz {
  color: var(--accent);
  font-style: normal;
  font-weight: 900;
  font-size: 18px;
  text-transform: uppercase;
}

/* Legacy aliases kept for safety */
.vs-yes,
.vs-no,
.vs-partial,
.vs-fiz-yes {
  text-align: center;
  font-weight: 700;
  font-size: 13px;
}

.vs-yes {
  color: var(--green);
}

.vs-no {
  color: var(--text-muted);
}

.vs-partial {
  color: var(--text-secondary);
}

.vs-fiz-yes {
  color: var(--accent);
  font-weight: 800;
}

/* Mobile – collapse to two columns: feature on top, Strava vs fiz pair below */
@media (max-width: 720px) {
  .vs-table {
    max-width: 100%;
  }

  .vs-table::before {
    width: 50%;
  }

  .vs-head {
    grid-template-columns: 1fr 1fr;
  }

  .vs-head__feat {
    display: none;
  }

  .vs-head__col {
    padding: 16px 10px;
  }

  .vs-head__col[data-brand="strava"] .vs-head__name {
    font-size: 15px;
  }

  .vs-head__col[data-brand="fiz"] .vs-head__name {
    font-size: 22px;
  }

  .vs-head__mark {
    width: 26px;
    height: 26px;
    font-size: 15px;
  }

  .vs-head__tag {
    font-size: 9px;
    letter-spacing: 1px;
  }

  .vs-row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "feat feat"
      "strava fiz";
    padding: 0;
  }

  .vs-feature {
    grid-area: feat;
    padding: 14px 14px 6px;
    font-size: 13px;
    border-bottom: 1px dashed var(--border-subtle);
  }

  .vs-feature em {
    font-size: 10px;
  }

  .vs-feature+.vs-cell {
    grid-area: strava;
  }

  .vs-feature+.vs-cell+.vs-cell {
    grid-area: fiz;
  }

  .vs-cell {
    flex-direction: column;
    gap: 4px;
    padding: 12px 6px;
    min-height: 56px;
    min-width: 0;
    font-size: 10px;
    letter-spacing: 0.3px;
    text-align: center;
  }

  .vs-cell svg {
    width: 16px;
    height: 16px;
  }

  .vs-cell__txt {
    white-space: normal;
    line-height: 1.2;
  }

  .vs-tally {
    padding: 14px 16px;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }

  .vs-tally__score {
    font-size: 13px;
  }

  .vs-tally__fiz {
    font-size: 16px;
  }
}


/* ==========================================================================
   COMMUNITY GLOBE – avatar cloud
   ========================================================================== */

.avatar-cloud {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 720px;
  margin: 0 auto;
}

.avatar-cloud__chip {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--bg);
  font-weight: 900;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: transform 0.25s var(--ease);
}

.avatar-cloud__chip:hover {
  transform: translateY(-3px);
}

.avatar-cloud__chip[data-tone="accent"] {
  background: var(--accent-glow);
  color: var(--accent);
}

.avatar-cloud__chip[data-tone="green"] {
  background: rgba(52, 211, 153, 0.18);
  color: var(--green);
}

.avatar-cloud__chip[data-tone="blue"] {
  background: rgba(96, 165, 250, 0.18);
  color: var(--blue);
}

.avatar-cloud__chip[data-tone="indigo"] {
  background: rgba(129, 140, 248, 0.18);
  color: var(--indigo);
}

.avatar-cloud__chip[data-tone="gold"] {
  background: rgba(255, 215, 0, 0.18);
  color: var(--metric-gold);
}


/* ==========================================================================
   SECTION SHELL – eyebrow, italic uppercase title, lead
   ========================================================================== */

.section-shell {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-shell__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-shell__title {
  font-style: italic;
  font-weight: 900;
  font-size: clamp(32px, 5vw, 60px);
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 16px;
}
@media (min-width: 700px) {
  .section-shell__title { letter-spacing: -1.5px; }
}

.section-shell__title .accent {
  color: var(--accent);
}

.section-shell__title .stroke {
  -webkit-text-stroke: 1.5px var(--text);
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.section-shell__lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
}


/* ==========================================================================
   SECTION BG VARIANTS
   ========================================================================== */

.bg-charcoal {
  background: var(--bg-hero);
}

.bg-mesh {
  position: relative;
  isolation: isolate;
}

.bg-mesh::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(40% 40% at 15% 50%, rgba(255, 72, 72, 0.08) 0%, transparent 70%),
    radial-gradient(40% 40% at 85% 30%, rgba(96, 165, 250, 0.06) 0%, transparent 70%);
  pointer-events: none;
}


/* ==========================================================================
   FINAL CTA – oversized
   ========================================================================== */

.final-cta {
  position: relative;
  text-align: center;
  padding: 140px 24px;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 80% at 50% 100%, rgba(255, 72, 72, 0.22) 0%, transparent 60%),
    radial-gradient(60% 50% at 50% 0%, rgba(96, 165, 250, 0.08) 0%, transparent 60%);
}

.final-cta__title {
  font-style: italic;
  font-weight: 900;
  font-size: clamp(48px, 9vw, 132px);
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0 auto 24px;
  max-width: 14ch;
}

@media (min-width: 700px) {
  .final-cta__title {
    line-height: 0.88;
    letter-spacing: -3px;
  }
}

.final-cta__title .accent {
  color: var(--accent);
}

.final-cta__lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 40px;
}


/* ==========================================================================
   POSTER GALLERY – sticky title + grid (used on workouts pages)
   ========================================================================== */

.poster-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 1024px) {
  .poster-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .poster-gallery {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   IN-PAGE TOC (for long workout pages)
   ========================================================================== */

.toc {
  position: sticky;
  top: 96px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  font-size: 13px;
}

.toc h4 {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc a {
  display: block;
  padding: 6px 0;
  color: var(--text-secondary);
  font-weight: 600;
  border-left: 2px solid transparent;
  padding-left: 12px;
  transition: color 0.2s, border-color 0.2s;
}

.toc a:hover {
  color: var(--text);
  border-left-color: var(--accent);
}