/**
 * Component Styles
 *
 * This file contains component-level CSS that requires proper cascade order
 * (loading AFTER Tailwind). For theme variables, see themes.css.
 */

/* ==========================================================================
   AUDIENCE CONTENT — DISSOLVE TRANSITIONS & HEIGHT RESERVATION
   Prevents layout jumping and adds graceful dissolves when switching
   Business/Individual audience.
   ========================================================================== */

/**
 * audience-height-reserve: Stacks both audience variants in the same grid
 * cell so the taller one drives container height — no layout jump on switch.
 * Overrides Stimulus hidden (display:none) with visibility:hidden to keep
 * the element in flow for height measurement.
 */
.audience-height-reserve {
  display: grid;
}

.audience-height-reserve > * {
  grid-column: 1;
  grid-row: 1;
  /* Prevent scroll anchoring from shifting the viewport when opacity changes
     on audience-switched panels during segment toggling. */
  overflow-anchor: none;
}

.audience-height-reserve > .hidden {
  display: block !important;
  visibility: hidden;
  pointer-events: none;
}

/**
 * audience-dissolve: Marker class for GSAP-driven crossfade transitions.
 *
 * On controller connect, JS converts the hidden class on inactive elements
 * to opacity:0 (keeping them in DOM flow). On audience switch, GSAP
 * crossfades active/inactive (duration set via dissolveDurationValue). togglePanelVisibility() skips
 * dissolve elements so the hidden class never interrupts the transition.
 *
 * No CSS transition rules here — GSAP handles all opacity animation.
 */

/* ==========================================================================
   RESEARCH LOGOS — Opacity-only de-emphasis for light/dark mode
   SVG fills handle all color; CSS controls visibility only.
   ========================================================================== */

.research-logo {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.dark .research-logo {
  opacity: 0.85;
}

/* Research page: source links — no decoration at rest, underline + bg tint on hover */
.research-content .research-source-link {
  text-decoration: none;
}

/* External link arrow in [View ↗] — scaled down to sit proportionally next to text */
.research-source-link .external-arrow {
  font-size: 0.65em;
  vertical-align: baseline;
}

/* Inline academic citations — smaller font, bg tint + underline on hover only */
.research-content .cite-link {
  color: var(--color-accent);
  text-decoration: none;
  font-size: 0.9em;
  border-radius: 2px;
  transition: background 0.2s ease;
}

.research-content .cite-link:hover {
  background: color-mix(in srgb, var(--color-accent) 8%, transparent);
  text-decoration: underline;
}

/* ==========================================================================
   RESEARCH TOC — Fixed sidebar Table of Contents with scrollspy
   Visible only on viewports >= 1280px where left margin has space.
   ========================================================================== */

.research-toc {
  position: fixed;
  top: 7rem;
  /* Position in the left margin, relative to the max-w-4xl (56rem) content column */
  left: max(1rem, calc((100vw - 56rem) / 2 - 13rem));
  width: 170px;
  z-index: 20;
  display: none;
}

@media (min-width: 1280px) {
  .research-toc {
    display: block;
  }
}

.research-toc__link {
  display: block;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--color-foreground-secondary);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.research-toc__link:hover {
  color: var(--color-foreground-primary);
}

.research-toc__link--active {
  color: var(--color-accent);
  border-left-color: var(--color-accent);
  font-weight: 600;
}

.research-toc__sublist {
  margin-top: 0.125rem;
  padding-left: 0.75rem;
  border-left: 1px dashed var(--color-border);
}

.research-toc__sublink {
  display: block;
  padding: 0.25rem 0.5rem;
  font-size: 0.6875rem;
  line-height: 1.35;
  color: var(--color-foreground-secondary);
  opacity: 0.75;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.research-toc__sublink:hover {
  color: var(--color-foreground-primary);
  opacity: 1;
}

.research-toc__sublink--active {
  color: var(--color-accent);
  font-weight: 600;
  opacity: 1;
}

/* Decorative opening quote mark for research carousel slides — CSS-only ::before approach.
   The blockquote is constrained to max-w-2xl / lg:max-w-3xl with mx-auto, making the left edge predictable.
   Uses em units for vertical offset so it auto-scales with responsive font-size. */
.research-quote::before {
  content: '\201C';
  position: absolute;
  left: -0.1em;
  top: -0.25em;
  font-size: 3.25rem;
  color: color-mix(in srgb, var(--color-accent-primary) 25%, transparent);
  line-height: 1;
  font-family: Georgia, serif;
  pointer-events: none;
}

@media (min-width: 768px) {
  .research-quote::before {
    left: -0.5em;
    font-size: 4.5rem;
  }
}

@media (min-width: 1024px) {
  .research-quote::before {
    font-size: 6rem;
  }
}

.dark .research-quote::before {
  color: color-mix(in srgb, var(--color-accent-primary) 15%, transparent);
}

/* ==========================================================================
   BUTTON COMPONENT SYSTEM
   ========================================================================== */

/**
 * Centralized button styles for consistent UI across the site.
 *
 * Variants:
 * - button-primary: Accent background with proper contrast text
 * - button-secondary: Ghost/outline button with border
 * - button-gradient: Gradient background (accent → purple)
 *
 * Sizes:
 * - Default (large): px-8 py-2.5 text-lg - for page CTAs
 * - button-small: px-6 py-2 text-sm - for cards, inline CTAs
 * - button-extra-small: px-5 py-1.5 text-sm - for header, compact areas
 *
 * Usage:
 *   <a class="button-primary">Get Started</a>
 *   <a class="button-secondary">Learn More</a>
 *   <a class="button-primary button-small">Small CTA</a>
 */

/* Base button styles (shared by all variants) */
.button-primary,
.button-secondary,
.button-gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  border-radius: 9999px; /* rounded-full */
  transition: all 0.3s ease;
  /* Default size (large) */
  padding: 0.625rem 2rem; /* py-2.5 px-8 */
  font-size: 1.125rem; /* text-lg */
  line-height: 1.75rem;
}

/* Primary button - accent background with contrast text */
.button-primary {
  background-color: var(--color-accent-primary);
  color: #ffffff;
}

.button-primary:hover {
  background-color: var(--color-accent-hover);
  transform: scale(1.05);
}

/* Dark mode: text needs to be dark on light cyan background */
.dark .button-primary {
  color: var(--color-bg-primary);
}

/* Primary inverted button - white bg, blue text (for bold/dark sections in light mode)
   Dark mode: reverts to standard button-primary appearance */
.button-primary-inverted {
  background-color: #ffffff;
  color: var(--color-accent-primary);
}

.button-primary-inverted:hover {
  background-color: #e8f1f8;
  transform: scale(1.05);
}

.dark .button-primary-inverted {
  background-color: var(--color-accent-primary);
  color: var(--color-bg-primary);
}

.dark .button-primary-inverted:hover {
  background-color: var(--color-accent-hover);
}

/* Secondary button - ghost/outline style */
.button-secondary {
  background-color: rgba(0, 0, 0, 0.03); /* Subtle fill for visibility on light panels */
  color: var(--color-foreground-primary);
  border: 1px solid var(--color-border-decorative);
}

.button-secondary:hover {
  background-color: rgba(0, 0, 0, 0.08); /* More pronounced hover state */
  border-color: var(--color-border-decorative-hover);
}

/* Dark mode: filled background with accent text (matches Webflow template) */
/* Opaque backgrounds prevent grid/pattern bleed-through (see global button rule) */
.dark .button-secondary {
  background-color: color-mix(in srgb, white 8%, var(--color-bg-primary));
  color: var(--color-accent-primary);           /* Light blue #83d3ff - matches primary button bg */
  border-color: rgba(255, 255, 255, 0.12);      /* Subtle border */
}

.dark .button-secondary:hover {
  background-color: color-mix(in srgb, white 12%, var(--color-bg-primary));
  border-color: rgba(255, 255, 255, 0.18);
}

/* Gradient button - accent to purple gradient */
.button-gradient {
  background: linear-gradient(to right, var(--color-accent-primary), var(--color-purple-accent));
  color: var(--color-bg-primary);
  box-shadow: 0 10px 15px -3px rgba(var(--color-accent-primary), 0.25);
}

.button-gradient:hover {
  background: linear-gradient(to right, var(--color-accent-hover), rgba(var(--color-purple-accent), 0.8));
  box-shadow: 0 10px 15px -3px rgba(var(--color-accent-primary), 0.4);
}

/* Size modifiers */
.button-small {
  padding: 0.5rem 1.5rem; /* py-2 px-6 */
  font-size: 0.875rem; /* text-sm */
  line-height: 1.25rem;
}

.button-extra-small {
  padding: 0.375rem 1.25rem; /* py-1.5 px-5 */
  font-size: 0.875rem; /* text-sm */
  line-height: 1.25rem;
}

/* No scale on hover variant (for smaller buttons) */
.button-no-scale:hover {
  transform: none;
}

/* Full width variant */
.button-block {
  display: flex;
  width: 100%;
  text-align: center;
}

/* Shadow variant */
.button-shadow {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   LEGACY SUPPORT - text-on-accent utility
   ========================================================================== */

/* Text color for buttons on accent background - ensures proper contrast in both themes */
/* Light mode: white text on dark blue (#1456a0) */
/* Dark mode: dark text on light cyan (#83d3ff) */
.text-on-accent {
  color: #ffffff;
}

.dark .text-on-accent {
  color: var(--color-bg-primary);
}

/* ==========================================================================
   LOGO HOVER EFFECT
   ========================================================================== */

/**
 * Shimmer sweep effect for logo on hover.
 * Uses a pseudo-element with animated gradient overlay.
 * Loops continuously while hovering.
 */
.logo-hover-effect {
  position: relative;
}

.logo-hover-effect::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 60%,
    transparent 100%
  );
  background-size: 250% 100%;
  background-position: 100% 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.logo-hover-effect:hover::after {
  opacity: 1;
  animation: logo-shimmer 1.5s ease-in-out infinite;
}

@keyframes logo-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -50% 0;
  }
}

/* Dark mode: use the page background color (#040c11) as the shimmer.
 * This makes the shimmer invisible on the dark background (same color blends)
 * while creating a subtle darkening sweep on the light logo elements.
 * Mirrors light mode approach where white shimmer blends with light background. */
.dark .logo-hover-effect::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 40%,
    rgba(4, 12, 17, 0.4) 50%,
    transparent 60%,
    transparent 100%
  );
  background-size: 250% 100%;
  background-position: 100% 0;
}

/* ==========================================================================
   SESSION CARD SHIMMER (Programs page)
   ========================================================================== */

/**
 * Radial shimmer glow in the bottom-right corner of session cards on hover.
 * Uses a pseudo-element with a radial gradient that fades in on hover
 * and pulses subtly with an animation loop.
 */
.session-card-shimmer::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(
    circle at center,
    rgba(131, 211, 255, 0.2) 0%,
    rgba(131, 211, 255, 0.08) 40%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.session-card-shimmer:hover::after {
  opacity: 1;
  animation: session-shimmer 2s ease-in-out infinite;
}

@keyframes session-shimmer {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.7;
  }
}

/* Reduced motion: disable shimmer animation */
@media (prefers-reduced-motion: reduce) {
  .session-card-shimmer:hover::after {
    animation: none;
    opacity: 0.6;
  }
}

/* ==========================================================================
   SEGMENTED CONTROL ANIMATIONS
   ========================================================================== */

/**
 * Segmented control container needs relative positioning for the slider.
 * The slider is an absolutely positioned pill that slides behind the active tab.
 */
.segmented-control {
  position: relative;
  overflow: visible;
}

/* Sliding pill indicator */
/* Note: Container has p-1 (4px) padding, so slider must be inset to align with tabs */
.segmented-control-slider {
  position: absolute;
  top: 4px;    /* Match container's p-1 padding */
  left: 4px;   /* Match container's p-1 padding */
  height: calc(100% - 8px);  /* Exclude top and bottom padding */
  width: calc(50% - 4px);  /* CSS fallback: half the container minus padding (2 tabs) */
  background-color: var(--color-accent-primary);
  border-radius: 9999px;
  /* Initial position - GSAP handles all transforms, no CSS transition needed */
  transform: translateX(0);
  /* Use will-change to hint browser for smoother animation */
  will-change: transform, width;
  z-index: 0;
}

/* Tab elements sit above the slider */
/* Uses <div> instead of <button> to avoid inherited active/focus background states */
.segmented-control-tab {
  position: relative;
  z-index: 1;
  /* Text color animation handled by GSAP in audience_state_controller.js */
  /* Prevent any background on tabs - only slider provides background */
  background: transparent !important;
  /* Suppress browser tap-highlight overlay (Chrome blue flash on click) */
  -webkit-tap-highlight-color: transparent;
  /* Default text color for non-selected tabs */
  color: var(--color-foreground-secondary);
}

/* Suppress all focus/active/hover background states on tabs */
.segmented-control-tab:hover,
.segmented-control-tab:focus,
.segmented-control-tab:active {
  background: transparent !important;
  outline: none;
}

/* Accessible focus indicator for keyboard navigation */
.segmented-control-tab:focus-visible {
  background: transparent !important;
  outline: 2px solid var(--color-accent-primary);
  outline-offset: 2px;
}

/* Visually selected tab text color - sits on top of the accent slider */
/* Updated AFTER the slider animation completes via data-visually-selected attribute */
/* Must also apply on hover to prevent color change when hovering selected tab */
.segmented-control-tab[data-visually-selected="true"],
.segmented-control-tab[data-visually-selected="true"]:hover {
  color: var(--color-bg-primary);
}

/* Hover effect only for non-selected tabs */
.segmented-control-tab:not([data-visually-selected="true"]):hover {
  color: var(--color-foreground-primary);
}

/* Tooltip for unselected tabs — styled to match Chromium's validation popup.
   Arrow uses rotated-square technique for a seamless speech-bubble connection.
   Base styles on [data-tooltip] so fade-out transition runs when
   [data-show-tooltip] is removed on segment switch. */
.segmented-control-tab[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  color: #202124;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.4;
  padding: 8px 16px;
  border-radius: 16px;
  border: 1px solid #bfbfbf;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  transition: opacity 1s ease;
}

.segmented-control-tab[data-tooltip]::before {
  content: '';
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  width: 10px;
  height: 10px;
  transform: translateX(-50%) rotate(45deg);
  background: #fff;
  border-top: 1px solid #bfbfbf;
  border-left: 1px solid #bfbfbf;
  pointer-events: none;
  z-index: 1001;
  opacity: 0;
  transition: opacity 1s ease;
}

@media (hover: hover) {
  .segmented-control-tab[data-show-tooltip]:hover::after,
  .segmented-control-tab[data-show-tooltip]:hover::before {
    opacity: 1;
    transition: opacity 0.15s ease 0.4s;
  }
}

/* ==========================================================================
   CARD FLIP ANIMATION
   ========================================================================== */

/**
 * 3D card flip animation for content panels.
 * Cards flip on the Y-axis (like playing cards flipping sideways).
 *
 * Structure:
 *   <div class="flip-card-container">  <!-- Perspective container -->
 *     <div class="flip-card">          <!-- The flipping element -->
 *       Content here
 *     </div>
 *   </div>
 */

/* Container provides 3D perspective */
.flip-card-container {
  perspective: 1000px;
}

/* The card that flips */
.flip-card {
  transform-style: preserve-3d;
  backface-visibility: hidden;
  /* Explicit none prevents CSS build from merging transitions from flip state classes */
  transition: none;
}

/* Transition only applies during flip animation (not scroll entrance) */
/* Duration reduced from 0.6s to 0.3s for snappier feel */
.flip-card.flip-out,
.flip-card.flip-in,
.flip-card.flip-in-start {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.15s ease;
}

/* Flip out state (hiding) - rotates away */
.flip-card.flip-out {
  transform: rotateY(-90deg);
  opacity: 0;
}

/* Flip in state (showing) - starts rotated, animates to flat */
.flip-card.flip-in {
  transform: rotateY(0deg);
  opacity: 1;
}

/* Initial state for cards that will flip in */
.flip-card.flip-in-start {
  transform: rotateY(90deg);
  opacity: 0;
}

/* Staggered animation delays for grid cards */
.flip-card-stagger-1 { transition-delay: 0ms; }
.flip-card-stagger-2 { transition-delay: 50ms; }
.flip-card-stagger-3 { transition-delay: 100ms; }
.flip-card-stagger-4 { transition-delay: 150ms; }
.flip-card-stagger-5 { transition-delay: 200ms; }
.flip-card-stagger-6 { transition-delay: 250ms; }

/* ==========================================================================
   HERO HEADLINE TYPOGRAPHY
   ========================================================================== */


/* ==========================================================================
   SECTION SUBTITLE TYPOGRAPHY — WIDOW PREVENTION
   text-wrap: balance redistributes words across lines for visual evenness.
   Works on blocks up to ~6 lines (perfect for subtitles, not for prose).
   Browser support: Chrome 114+, Firefox 121+, Safari 17.5+.
   Degrades gracefully — unsupported browsers wrap normally.
   ========================================================================== */

p[class*="text-foreground-secondary"][class*="max-w-"] {
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   TEXT ORPHAN ELIMINATION — text-wrap: pretty
   Prevents 1-2 orphaned words on the last line of centered text blocks.
   Applied via data-reflow="optimize" attribute on individual elements.
   Works on blocks of any length (unlike balance which caps at ~6 lines).
   Browser support: Chrome 117+, Firefox 131+. Degrades gracefully.
   -------------------------------------------------------------------------- */

[data-reflow] {
  text-wrap: pretty;
}

/* ==========================================================================
   SHIMMER TEXT HIGHLIGHT EFFECT
   ========================================================================== */

/**
 * Gradient shimmer sweep effect for text emphasis.
 * Uses background-clip: text with an animated gradient position.
 *
 * The gradient has three sections: base color → bright highlight → base color
 * GSAP animates backgroundPosition from right (100%) to left (0%) to create
 * the "sweeping highlight" effect.
 *
 * Usage:
 *   <p class="shimmer-text">Text to shimmer</p>
 *   // Then animate with GSAP: gsap.to(el, { backgroundPosition: '0% 0' })
 */
.shimmer-text {
  background: linear-gradient(
    90deg,
    var(--color-foreground-primary) 0%,
    var(--color-foreground-primary) 40%,
    var(--color-accent-primary) 50%,
    var(--color-foreground-primary) 60%,
    var(--color-foreground-primary) 100%
  );
  background-size: 250% 100%;
  background-position: 100% 0; /* Start with highlight off-screen right */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/**
 * Shimmer text on bold backgrounds (light mode only): use light colors so
 * text is visible against the dark bold bg (#0c2048). The highlight uses
 * --color-foreground-secondary-on-bold (light blue) for a subtle shimmer.
 *
 * The .dark override below restores the default shimmer gradient
 * (with --color-accent-primary highlight) in dark mode.
 */
.bg-bg-bold .shimmer-text {
  background: linear-gradient(
    90deg,
    var(--color-foreground-on-bold) 0%,
    var(--color-foreground-on-bold) 40%,
    var(--color-foreground-secondary-on-bold) 50%,
    var(--color-foreground-on-bold) 60%,
    var(--color-foreground-on-bold) 100%
  );
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Dark mode: restore the default shimmer gradient (accent highlight) */
.dark .bg-bg-bold .shimmer-text {
  background: linear-gradient(
    90deg,
    var(--color-foreground-primary) 0%,
    var(--color-foreground-primary) 40%,
    var(--color-accent-primary) 50%,
    var(--color-foreground-primary) 60%,
    var(--color-foreground-primary) 100%
  );
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   ANIMATED ARROW LINK — right-shift on hover
   A reusable utility for text links with a trailing → that shifts right.

   Usage:
     <a href="..." class="link-arrow [text/color classes]">
       Link text <span class="link-arrow-icon">&rarr;</span>
     </a>

   .link-arrow enables inline-flex layout on the anchor.
   .link-arrow-icon wraps the → and shifts 4px right on hover.
   ========================================================================== */

.link-arrow {
  display: inline-flex;
  align-items: center;
}

.link-arrow .link-arrow-icon {
  display: inline-block;
  margin-left: 0.25rem; /* ml-1 */
  transition: transform 0.2s ease;
}

.link-arrow:hover .link-arrow-icon {
  transform: translateX(4px);
}

/* ==========================================================================
   ACCESSIBILITY - REDUCED MOTION SUPPORT
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .segmented-control-slider {
    transition: none;
  }
  /* Disable shimmer animation for users who prefer reduced motion */
  .shimmer-text {
    background-position: 50% 0; /* Show at rest state (highlight centered/visible once) */
  }
  .link-arrow .link-arrow-icon {
    transition: none;
  }
  /* Disable flip card 3D transitions — JS short-circuits the class application,
     but this CSS rule provides belt-and-suspenders coverage for any CSS path. */
  .flip-card.flip-out,
  .flip-card.flip-in,
  .flip-card.flip-in-start {
    transition: none;
  }
}

/* ==========================================================================
   STANDARD CARD CORNER GLOW
   ========================================================================== */

/**
 * Corner glow effect for standard cards (challenge cards, outcome cards, etc.).
 * Each card can have a subtle radial gradient glow in a specified corner.
 *
 * Positions:
 *   - glow-tl: top-left corner
 *   - glow-tr: top-right corner
 *   - glow-bl: bottom-left corner
 *   - glow-br: bottom-right corner
 *
 * Uses CSS custom property --glow-color to support different accent colors
 * (accent for business, highlight for individual).
 *
 * Note: .challenge-card kept for backwards compatibility with existing usage.
 */
.challenge-card,
.standard-card,
.blog-card {
  position: relative;
  overflow: hidden;
}

.challenge-card::before,
.standard-card::before,
.blog-card::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-color, var(--color-accent-primary)) 0%, transparent 70%);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

/* Position variants - outermost corner for each card */
.challenge-card.glow-tl::before,
.standard-card.glow-tl::before,
.blog-card.glow-tl::before {
  top: -100px;
  left: -100px;
}

.challenge-card.glow-tr::before,
.standard-card.glow-tr::before,
.blog-card.glow-tr::before {
  top: -100px;
  right: -100px;
}

.challenge-card.glow-bl::before,
.standard-card.glow-bl::before,
.blog-card.glow-bl::before {
  bottom: -100px;
  left: -100px;
}

.challenge-card.glow-br::before,
.standard-card.glow-br::before,
.blog-card.glow-br::before {
  bottom: -100px;
  right: -100px;
}

/* Ensure card content sits above the glow */
.challenge-card > *,
.standard-card > *,
.blog-card > * {
  position: relative;
  z-index: 1;
}

/* Light mode: reduce glow intensity to 25% of original - subtle on light backgrounds */
:root:not(.dark) .challenge-card::before,
:root:not(.dark) .standard-card::before,
:root:not(.dark) .blog-card::before {
  opacity: 0.04;
}

/* ==========================================================================
   CARD HOVER ANIMATION - SMOOTH "MOON FLOATING" EFFECT
   ========================================================================== */

/**
 * Creates an ultra-smooth, airy hover lift like an astronaut floating on the moon.
 * Uses a very long duration (5s) with gentle ease-out curve for that
 * dreamy, weightless deceleration feel.
 *
 * The cubic-bezier(0.05, 0.9, 0.1, 1) creates:
 * - Immediate response (starts right away)
 * - Very gradual, floating movement throughout
 * - Extremely soft landing at the end
 *
 * HOVER STABILITY:
 * Uses a wrapper (.card-hover-wrapper) that handles hover detection while staying
 * in place. This prevents flicker when the card lifts and the mouse would otherwise
 * leave the card's visual bounds. The wrapper has bottom padding to extend the
 * hover detection zone below where the card lifts from.
 */
.standard-card,
.challenge-card,
.blog-card {
  transition:
    transform 5000ms cubic-bezier(0.05, 0.9, 0.1, 1),
    border-color 300ms ease,
    box-shadow 300ms ease,
    background-color 300ms ease;
}

/* Wrapper handles hover detection - stays in place while card floats */
.card-hover-wrapper {
  padding-bottom: 12px;  /* Extend hover zone below card */
  margin-bottom: -12px;  /* Compensate visually */
  height: 100%;          /* Fill grid cell for equal heights */
  display: flex;
  flex-direction: column;
}

/* Cards fill wrapper height for equal heights in grid */
.card-hover-wrapper > .standard-card,
.card-hover-wrapper > .challenge-card,
.card-hover-wrapper > .blog-card {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Blog card inner content fills card height */
.blog-card > div {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Push description to bottom of card */
.blog-card > div > p:last-child {
  margin-top: auto;
}

/* Card lifts when wrapper is hovered (not the card itself) */
.card-hover-wrapper:hover .standard-card,
.card-hover-wrapper:hover .challenge-card,
.card-hover-wrapper:hover .blog-card {
  transform: translateY(-6px);
}

/* ==========================================================================
   MISSION SECTION IMAGE - MOBILE SIZING
   ========================================================================== */

/**
 * On mobile (<640px), constrain the mission section cartoon image to be
 * small decorative adornment rather than viewport-dominating.
 * The image is low-res, so smaller size also improves visual quality.
 */
.mission-image-mobile {
  max-height: 220px;
  object-fit: contain;
}

@media (min-width: 640px) {
  .mission-image-mobile {
    max-height: none;
    object-fit: cover;
  }
}

/* ==========================================================================
   LIGHTBOX MODAL SCROLLBAR
   ========================================================================== */

/**
 * Always-visible scrollbar for lightbox modals.
 * Uses webkit scrollbar customization to ensure visibility and styling.
 *
 * Features:
 * - Always shows scrollbar track (even when not scrolling)
 * - Styled to match dark theme
 * - Subtle blue tint to match modal accent color
 */
.lightbox-scrollable {
  /* Force scrollbar to always be visible */
  scrollbar-gutter: stable;
}

/* Webkit browsers (Chrome, Safari, Edge) */
.lightbox-scrollable::-webkit-scrollbar {
  width: 8px;
}

.lightbox-scrollable::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.lightbox-scrollable::-webkit-scrollbar-thumb {
  background: rgba(96, 165, 250, 0.4); /* blue-400 with opacity */
  border-radius: 4px;
}

.lightbox-scrollable::-webkit-scrollbar-thumb:hover {
  background: rgba(96, 165, 250, 0.6);
}

/* Firefox */
.lightbox-scrollable {
  scrollbar-width: thin;
  scrollbar-color: rgba(96, 165, 250, 0.4) rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   READING CONTAINER UTILITIES
   Blog/prose reading area with softer contrast in dark mode
   ========================================================================== */

/**
 * Reading Container
 *
 * Wraps blog post content for comfortable reading in dark mode.
 * In dark mode, applies softer charcoal (#18181b) instead of harsh near-black (#040c11).
 * Light mode has no visible container (content sits on page background).
 */
.reading-container {
  /* Light mode: no special styling, content sits on page background */
}

/* Dark mode: charcoal background with padding and rounded corners */
.dark .reading-container {
  background-color: var(--color-bg-reading);
  border-radius: 0.75rem; /* rounded-xl */
  padding: 2.5rem 2rem; /* pt-10 px-8 pb-8 */
  margin-left: -2rem;
  margin-right: -2rem;
}

/* Mobile: tighter padding */
@media (max-width: 768px) {
  .dark .reading-container {
    padding: 1.5rem 1.25rem;
    margin-left: -1rem;
    margin-right: -1rem;
  }
}

/* ==========================================================================
   BLOG POST HEADER - LIGHT MODE CONTRAST
   Increase contrast for metadata in light mode for better readability
   ========================================================================== */

/* Light mode: make date, author, and subtitle slightly more readable */
:root:not(.dark) .reading-container header .text-foreground-muted {
  color: rgb(100, 116, 139); /* slate-500: more contrast than default muted */
}

/* ==========================================================================
   BLOG POST NAVIGATION
   Back to Blog link styling with hover background
   ========================================================================== */

/* Back to Blog link: add padding for hover background */
article > nav a {
  padding: 0.375rem 0.75rem;
  margin-left: -0.75rem; /* Offset padding to maintain left alignment */
  border-radius: 0.375rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Hover: solid background to indicate actionability */
article > nav a:hover {
  background-color: var(--color-bg-tertiary);
}

/* ==========================================================================
   BLOG INDEX CARDS
   Stretched link and light mode hover styles
   (Glow effects inherited from shared card system above)
   ========================================================================== */

/* Stretched link - makes entire card clickable */
.blog-card-link {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.blog-card-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
}

.blog-card:hover .blog-card-link {
  color: var(--color-accent-primary);
}

/* Light mode: neutral hover background for better text contrast */
:root:not(.dark) .blog-card:hover {
  background-color: rgb(243, 244, 246); /* gray-100 - neutral, maintains text contrast */
}

/* ==========================================================================
   READING CONTAINER PROSE OVERRIDES
   Override prose element backgrounds to use charcoal variants in dark mode
   ========================================================================== */

/**
 * When prose elements (blockquotes, code, tables) are inside the reading container,
 * they should use charcoal-family backgrounds instead of the site's dark blue-black.
 * This maintains visual harmony with the softer reading background.
 */

/* Blockquotes: charcoal surface with subtle border */
.dark .reading-container .prose blockquote {
  background-color: var(--color-bg-reading-surface);
  border-left-color: var(--color-accent-primary);
  border: 0.5px solid var(--color-border-reading);
  border-left: 3px solid var(--color-accent-primary);
  border-radius: 0 0.375rem 0.375rem 0;
}

/* Code blocks (pre): elevated charcoal with thin border */
.dark .reading-container .prose pre {
  background-color: var(--color-bg-reading-elevated);
  border: 0.5px solid var(--color-border-reading);
  border-radius: 0.375rem;
}

/* Inline code: surface charcoal (only for code NOT inside pre blocks) */
.dark .reading-container .prose code {
  background-color: var(--color-bg-reading-surface);
}

/* Code inside pre blocks: no background (pre already has its own) */
.dark .reading-container .prose pre code {
  background-color: transparent;
}

/* Tables: charcoal variants with thin borders */
.dark .reading-container .prose th {
  background-color: var(--color-bg-reading-surface);
  border-color: var(--color-border-reading);
}

.dark .reading-container .prose td {
  border-color: var(--color-border-reading);
}

.dark .reading-container .prose tbody tr:nth-child(even) {
  background-color: var(--color-bg-reading-surface);
}

/* Table wrapper: add subtle outer border */
.dark .reading-container .prose table {
  border: 0.5px solid var(--color-border-reading);
  border-radius: 0.375rem;
  overflow: hidden;
}

/* ==========================================================================
   PROSE TYPOGRAPHY CUSTOMIZATION
   ========================================================================== */

/**
 * Custom styles for Tailwind's prose class to match theme colors.
 * Used for blog posts and content pages with markdown rendering.
 *
 * Color handling: Theme variables (--color-foreground-primary, etc.) automatically
 * switch for dark mode via themes.css. The `dark:prose-invert` class provides
 * fallback inversion for any prose defaults not overridden below.
 */

/* Map prose CSS variables to theme colors */
.prose {
  --tw-prose-body: var(--color-foreground-secondary);
  --tw-prose-headings: var(--color-foreground-primary);
  --tw-prose-links: var(--color-accent-primary);
  --tw-prose-bold: var(--color-foreground-primary);
  --tw-prose-code: var(--color-foreground-primary);
  --tw-prose-quotes: var(--color-foreground-muted);
  --tw-prose-quote-borders: var(--color-accent-primary);
  --tw-prose-counters: var(--color-foreground-muted);
  --tw-prose-bullets: var(--color-foreground-muted);
  --tw-prose-hr: var(--color-border);
  --tw-prose-th-borders: var(--color-border);
  --tw-prose-td-borders: var(--color-border-subtle);

  /* Serif typography for blog content (Substack/Medium aesthetic)
     Lora pairs well with geometric sans (Jost) for headings */
  font-family: var(--font-body-serif, var(--font-body));
  letter-spacing: -0.01em; /* Tighten slightly for serif */

  /* Substack/Medium-inspired line height for comfortable reading */
  line-height: 1.8;
}

/* ==========================================================================
   HEADING HIERARCHY
   Distinct sizes and spacing for clear visual hierarchy (Substack/Medium style)
   ========================================================================== */

/* Shared heading styles - tighter tracking improves display at large sizes */
.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  font-family: var(--font-sans);
  letter-spacing: -0.02em;
  color: var(--tw-prose-headings);
}

.prose h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 1.6em;
  margin-bottom: 0.75em;
}

.prose h2 {
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 1.3em;
  margin-bottom: 0.5em;
}

.prose h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 1.1em;
  margin-bottom: 0.5em;
}

.prose h4 {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
  margin-top: 1em;
  margin-bottom: 0.5em;
}

/* First heading in content - no top margin needed */
.prose > h1:first-child,
.prose > h2:first-child,
.prose > h3:first-child,
.prose > h4:first-child {
  margin-top: 0;
}

/* ==========================================================================
   PARAGRAPH SPACING
   Generous vertical rhythm for readability
   ========================================================================== */

.prose p {
  margin-bottom: 1.75em;
}

/* First paragraph after heading - tighter coupling */
.prose h1 + p,
.prose h2 + p,
.prose h3 + p,
.prose h4 + p {
  margin-top: 0;
}

/* ==========================================================================
   LIST STYLING
   Proper indentation and vertical rhythm

   NOTE: Tailwind's preflight CSS removes default list-style markers.
   We must explicitly restore them for .prose content.
   ========================================================================== */

.prose ul,
.prose ol {
  padding-left: 1.5em;
  margin-bottom: 1.75em;
}

/* Restore list markers (removed by Tailwind preflight) */
.prose ul,
.prose ol {
  list-style-position: outside;
}

.prose ul { list-style-type: disc; }
.prose ol { list-style-type: decimal; }

/* Nested list variations for visual hierarchy */
.prose ul ul { list-style-type: circle; }
.prose ul ul ul { list-style-type: square; }

/* Marker color using theme-aware CSS variable (muted, not bold black) */
.prose ul li::marker,
.prose ol li::marker {
  color: var(--tw-prose-bullets);
}

.prose li {
  margin-bottom: 0.75em;
}

.prose li:last-child {
  margin-bottom: 0;
}

/* Task list checkbox styling */
.prose .task-list-item {
  list-style: none;
  position: relative;
  padding-left: 1rem; /* Space between checkbox and text */
}

.prose .task-list-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 1.125rem;
  height: 1.125rem;
  border: 2px solid var(--color-foreground-muted);
  border-radius: 0.25rem;
  /* Position checkbox aligned with bullets, with gap before text */
  position: absolute;
  left: -0.75rem;
  top: 0.35rem;
  cursor: default;
}

.prose .task-list-checkbox:checked {
  background-color: var(--color-accent-primary);
  border-color: var(--color-accent-primary);
}

.prose .task-list-checkbox:checked::after {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.1rem;
  width: 0.35rem;
  height: 0.6rem;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ==========================================================================
   EMPHASIS STYLING
   Strong text stands out clearly
   ========================================================================== */

.prose strong {
  font-weight: 700;
  color: var(--tw-prose-bold);
}

/* Link styling with hover state */
.prose a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(128, 128, 128, 0.4);
  text-underline-offset: 2px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.prose a:hover {
  color: var(--color-accent-hover);
  text-decoration-color: var(--color-accent-hover);
}

/* Styled text blocks - for conversation snippets, advice, sidebars, etc.
   Uses body serif font (not monospace) since content is narrative, not code */
.prose pre {
  background-color: var(--color-bg-tertiary);
  border: 1px solid var(--color-border-subtle);
  border-radius: 0.5rem;
  overflow-x: auto;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-body-serif, var(--font-body));
  font-size: 1rem;
  line-height: 1.75;
  white-space: pre-wrap; /* Wrap long lines naturally */
  margin-bottom: 1.5rem; /* Breathing room below code blocks */
}

.prose code {
  background-color: var(--color-bg-secondary);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

/* Text inside styled blocks - inherits the body font styling */
.prose pre code {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  font-family: inherit;
  font-size: inherit;
}

/* Actual code blocks (with language specified) - use monospace font
   Redcarpet adds a class to code element when language is specified:
   ```bash => <pre><code class="bash">...</code></pre> */
.prose pre code[class] {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Table styling */
.prose table {
  border-collapse: collapse;
  width: 100%;
}

.prose th,
.prose td {
  border: 1px solid var(--color-border-subtle);
  padding: 0.5rem 1rem;
}

.prose th {
  background-color: var(--color-bg-secondary);
  font-weight: 600;
}

/* Alternate row colors for readability */
.prose tbody tr:nth-child(even) {
  background-color: var(--color-bg-secondary);
}

/* Blockquote accent styling */
.prose blockquote {
  border-left-color: var(--color-accent-primary);
  background-color: var(--color-bg-secondary);
  padding: 1rem 1.5rem;
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: normal;
}

.prose blockquote p {
  margin: 0;
}

/* Footnotes styling */
.prose .footnotes {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(128, 128, 128, 0.2); /* Subtle separator */
  font-size: 0.875rem;
}

/* Hide auto-generated hr inside/before footnotes (Redcarpet adds one) */
.prose .footnotes > hr,
.prose > hr:has(+ .footnotes) {
  display: none;
}

.prose .footnotes ol {
  padding-left: 1.5rem;
}

/* Footnote reference styling (inline superscript link)
 * Redcarpet outputs: <sup id="fnref1"><a href="#fn1">1</a></sup>
 * Styled as pill badge instead of underlined link
 */
.prose sup[id^="fnref"] a {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-foreground-primary);
  background-color: var(--color-bg-tertiary);
  padding: 0.1rem 0.28rem;
  border-radius: 0.25rem;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.prose sup[id^="fnref"] a:hover {
  background-color: var(--color-accent-primary);
  color: var(--color-bg-primary);
}

/* Dark mode footnote reference */
.dark .prose sup[id^="fnref"] a {
  background-color: var(--color-bg-reading-surface);
  color: var(--color-foreground-reading);
}

.dark .prose sup[id^="fnref"] a:hover {
  background-color: var(--color-accent-primary);
  color: var(--color-bg-primary);
}

/* Footnote backref styling (return arrows in footnotes section)
 * Redcarpet outputs: <a href="#fnref1">&#8617;</a>
 */
.prose .footnotes a[href^="#fnref"] {
  color: var(--color-accent-primary);
  text-decoration: none;
}

/* Horizontal rule styling */
.prose hr {
  border-color: var(--color-border);
  margin: 2rem 0;
}

/* Balance spacing when heading follows hr - reduce heading's top margin */
.prose hr + h1,
.prose hr + h2,
.prose hr + h3,
.prose hr + h4 {
  margin-top: 1.5rem; /* Match hr's bottom margin for visual balance */
}

/* Image styling */
.prose img {
  border-radius: 0.5rem;
  margin: 1.5rem auto;
}

/* Nested lists - tighter spacing to avoid excessive vertical rhythm */
.prose li ul,
.prose li ol {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

/* ==========================================================================
   DARK MODE READING OPTIMIZATION
   Softer contrast for extended reading sessions
   Uses charcoal (#18181b) instead of near-black, off-white (#E8E8E8) instead of pure white
   Contrast ratio: ~14.5:1 (exceeds WCAG AAA 7:1 requirement)
   ========================================================================== */

.dark .prose {
  --tw-prose-body: var(--color-foreground-reading);
  --tw-prose-headings: #F5F5F5;
  --tw-prose-bold: #F5F5F5;
  --tw-prose-quotes: var(--color-foreground-muted);
  --tw-prose-code: var(--color-foreground-reading);
}

/* ==========================================================================
   FIGCAPTION STYLING
   Muted caption text beneath images for editorial aesthetic
   ========================================================================== */

.prose figcaption {
  font-size: 0.875rem;
  font-style: italic;
  color: var(--color-foreground-muted);
  text-align: center;
  margin-top: 0.75rem;
  line-height: 1.5;
}

.prose figure {
  margin: 2rem 0;
}

.prose figure img,
.prose figure .video-embed {
  margin: 0; /* Remove all margins - figure handles spacing */
}

/* ==========================================================================
   VIDEO EMBED STYLING
   Responsive 16:9 container for YouTube/Vimeo embeds
   ========================================================================== */

.prose .video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  margin: 2rem 0;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: var(--color-bg-tertiary);
}

.prose .video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   LIGHT MODE FORM INPUT STYLING
   Newsletter email input needs softer colors in light mode.
   Dark mode zinc-800/zinc-950 are preserved via Tailwind classes.
   ========================================================================== */

/* Light mode: soft gray background instead of dark zinc */
:root:not(.dark) #newsletter input[type="email"] {
  background-color: #f9fafb; /* gray-50 - soft, neutral */
  border-color: #d1d5db; /* gray-300 - visible but subtle border */
}

/* Light mode focus: very light blue background to indicate selection */
:root:not(.dark) #newsletter input[type="email"]:focus {
  background-color: #eff6ff; /* blue-50 - light brand blue tint */
  border-color: transparent;
}

/* ==========================================================================
   LIGHT MODE HEADER BORDER
   The dark border (#1e2a36) is too prominent in light mode.
   Use a softer gray that matches the scrolled state.
   ========================================================================== */

:root:not(.dark) header[data-controller="header"] {
  border-color: #e5e7eb; /* gray-200 - subtle in light mode */
}

/* ==========================================================================
   CALENDLY POPUP WIDGET
   Ensure Calendly overlay renders above all site content including
   the fixed header (z-50 = 50) and any GSAP-animated elements.
   Lock body scroll while popup is open to prevent scroll passthrough.
   ========================================================================== */

.calendly-overlay {
  z-index: 9999 !important;
}

/* Make the popup use more viewport space so Calendly's stacked layout
   (description on top, calendar below) fits without internal scrolling.
   Defaults: max-height 700px, max-width 1000px, width 80%, min-width 900px. */
.calendly-popup {
  max-height: 85vh !important;
  max-width: 1060px !important;
  width: 90% !important;
  min-width: 0 !important;
}

/* Hide the outer loading spinner injected by widget.js into our DOM.
   The Calendly iframe renders its own internal spinner, so the outer
   one is redundant and creates a distracting duplicate animation. */
.calendly-spinner {
  display: none !important;
}

/* ==========================================================================
   HOW IT WORKS — ILLUSTRATION EDGE BLENDING
   Soft-edge effect via border-radius + overflow:hidden on the <picture> wrapper.
   Replaced mask-image radial-gradient + transform:scale(1.08) which created a
   promoted compositing layer PER illustration (10+ layers across both audience
   panels), each requiring runtime mask evaluation on every scroll frame — the
   primary cause of Chrome scroll jank (#289). border-radius is GPU-native.
   ========================================================================== */
picture:has(.how-it-works-illustration) {
  background: color-mix(in srgb, var(--color-bg-primary) 88%, transparent);
  overflow: hidden;
  border-radius: 1.25rem;
}

/* Mobile trail dashed pattern (shared by ghost + animated segments) */
.mobile-trail-dash {
  background: repeating-linear-gradient(to bottom,
    var(--color-accent-primary) 0px, var(--color-accent-primary) 8px,
    transparent 8px, transparent 14px);
}

/* will-change: clip-path removed — persistent GPU layers for all 6 segments even when
   off-screen created unnecessary compositor overhead on Safari. The browser auto-promotes
   layers during active clip-path animation; static hints are not needed here. */

/* ==========================================================================
   GUARANTEE SECTION — TYPOGRAPHIC ANCHOR
   Hero-scale "100%" gradient text with separator, pull-quote, and trust pills.
   ========================================================================== */

.guarantee-big-number {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: clamp(6rem, 16vw, 10rem);
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.25rem;
  line-height: 0.9;
  display: block;
  background: linear-gradient(180deg, var(--color-guarantee-from) 0%, var(--color-guarantee-via) 60%, var(--color-guarantee-to) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.guarantee-subtitle {
  font-family: 'Jost', system-ui, sans-serif;
  display: block;
  font-size: clamp(1.125rem, 3vw, 1.625rem);
  font-weight: 500;
  letter-spacing: 0.375rem;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-foreground-primary) 50%, transparent);
  -webkit-text-fill-color: color-mix(in srgb, var(--color-foreground-primary) 50%, transparent);
  background: none;
  margin-top: 0.25rem;
}

@media (max-width: 639px) {
  .guarantee-subtitle {
    letter-spacing: 0.2rem;
  }
}

/* Radial glow — ambient depth behind heading block */
.guarantee-glow {
  pointer-events: none;
  position: absolute;
  inset: -4rem;
}

.guarantee-glow-b2b {
  background: radial-gradient(ellipse 80% 70% at 50% 45%, color-mix(in srgb, var(--color-accent-primary) 18%, transparent) 0%, transparent 70%);
}

.dark .guarantee-glow-b2b {
  background: radial-gradient(ellipse 80% 70% at 50% 45%, color-mix(in srgb, var(--color-accent-primary) 14%, transparent) 0%, transparent 70%);
}

.guarantee-glow-individual {
  background: radial-gradient(ellipse 80% 70% at 50% 45%, color-mix(in srgb, var(--color-accent-primary) 18%, transparent) 0%, transparent 70%);
}

.dark .guarantee-glow-individual {
  background: radial-gradient(ellipse 80% 70% at 50% 45%, color-mix(in srgb, var(--color-accent-primary) 8%, transparent) 0%, transparent 70%);
}

/* Gradient rule lines — subtle section boundaries */
.guarantee-rule-top,
.guarantee-rule-bottom {
  position: absolute;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, color-mix(in srgb, var(--color-accent-primary) 25%, transparent), transparent);
}

.guarantee-rule-top { top: 0; }
.guarantee-rule-bottom { bottom: 0; }

/* B2B pyramid heading — forced line breaks create wide→medium→narrow funnel shape */
.guarantee-pyramid-heading-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
}

.guarantee-pyramid-heading {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  color: var(--color-foreground-primary);
  position: relative;
  z-index: 1;
}

/* "100%" tip of the pyramid — gradient accent, subordinate scale */
.guarantee-trailing-number {
  display: block;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-top: 0.5rem;
  background: linear-gradient(180deg, var(--color-guarantee-from) 0%, var(--color-guarantee-via) 60%, var(--color-guarantee-to) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}

/* Pull-quote — Cormorant Garamond italic closer */
.guarantee-pull-quote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  color: color-mix(in srgb, var(--color-foreground-primary) 60%, transparent);
  line-height: 1.5;
  margin: 2rem auto 0;
  max-width: 32.5rem;
  position: relative;
  padding: 0 1.5rem;
}

.guarantee-pull-quote::before {
  content: '\201C';
  position: absolute;
  left: 0;
  top: -1rem;
  font-size: 4.5rem;
  color: color-mix(in srgb, var(--color-accent-primary) 25%, transparent);
  line-height: 1;
  font-family: Georgia, serif;
}

/* Trust pills — scannable summary strip
   Breaks out of parent max-w-2xl via negative margin + padding to use
   the full section width, so pills stay on one row at desktop. */
.guarantee-trust-strip {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  margin-left: -2rem;
  margin-right: -2rem;
  padding: 2rem 2rem 0;
  border-top: 1px solid color-mix(in srgb, var(--color-foreground-primary) 6%, transparent);
}

@media (max-width: 639px) {
  .guarantee-trust-strip {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
}

.guarantee-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  white-space: nowrap;
  background: color-mix(in srgb, var(--color-accent-primary) 5%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-accent-primary) 12%, transparent);
  border-radius: 100px;
  padding: 0.375rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-foreground-secondary);
}

.guarantee-trust-pill::before {
  content: '\2713';
  color: var(--color-success);
  font-size: 0.875rem;
  font-weight: 700;
}

/* Bold section overrides — white-tinted pill borders on dark backgrounds */
.section-bold .guarantee-trust-pill {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--color-foreground-secondary-on-bold);
}

.dark .section-bold .guarantee-trust-pill {
  background: color-mix(in srgb, var(--color-accent-primary) 5%, transparent);
  border-color: color-mix(in srgb, var(--color-accent-primary) 12%, transparent);
  color: var(--color-foreground-secondary);
}

/* Bold section — guarantee trust strip border override */
.section-bold .guarantee-trust-strip {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.dark .section-bold .guarantee-trust-strip {
  border-top-color: color-mix(in srgb, var(--color-foreground-primary) 6%, transparent);
}

/* Bold section — guarantee pull-quote color override */
.section-bold .guarantee-pull-quote {
  color: color-mix(in srgb, var(--color-foreground-on-bold) 60%, transparent);
}

.dark .section-bold .guarantee-pull-quote {
  color: color-mix(in srgb, var(--color-foreground-primary) 60%, transparent);
}

/* Bold section — guarantee pull-quote curly-quote color */
.section-bold .guarantee-pull-quote::before {
  color: rgba(255, 255, 255, 0.25);
}

.dark .section-bold .guarantee-pull-quote::before {
  color: color-mix(in srgb, var(--color-accent-primary) 25%, transparent);
}

/* Bold section — guarantee rule lines hidden in light mode */
.section-bold .guarantee-rule-top,
.section-bold .guarantee-rule-bottom {
  display: none;
}

.dark .section-bold .guarantee-rule-top,
.dark .section-bold .guarantee-rule-bottom {
  display: block;
}

/* Bold section — separator line override */
.section-bold .guarantee-separator-line {
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
}

.dark .section-bold .guarantee-separator-line {
  background: linear-gradient(to right, transparent, color-mix(in srgb, var(--color-accent-primary) 20%, transparent), transparent) !important;
}

/* Bold section — separator shield border */
.section-bold .guarantee-separator-shield {
  border-color: rgba(255, 255, 255, 0.25) !important;
}

.dark .section-bold .guarantee-separator-shield {
  border-color: color-mix(in srgb, var(--color-accent-primary) 25%, transparent) !important;
}

/* Anchor card icon circle — light blue border on dark card bg in light mode.
   In dark mode, revert to the audience-appropriate accent color passed via
   --icon-border-color custom property on the element. */
.anchor-icon-border {
  border-color: #d4e8f0 !important;
}

.dark .anchor-icon-border {
  border-color: var(--icon-border-color) !important;
}

/* ==========================================================================
   BRANDED FONT OVERRIDES
   Adjustments when branded fonts (Jost) are active via site.yml fonts: "branded"
   ========================================================================== */

.hybrid-fonts .hero-headline {
  font-family: 'Jost', system-ui, -apple-system, sans-serif;
  font-weight: 800;
}

