/* ===== Local Fonts ===== */
@font-face {
  font-family: 'Oldschool Grotesk';
  src: url('assets/fonts/BricolageGrotesque.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('assets/fonts/JetBrainsMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('assets/fonts/JetBrainsMono-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('assets/fonts/JetBrainsMono-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('assets/fonts/JetBrainsMono-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===== CSS Variables (Yapex Brand System) ===== */
:root {
  /* Color scheme for proper scrollbar styling */
  color-scheme: light;
  
  /* ===== YAPEX BRAND COLORS ===== */
  --brand-yellow: #FCCD03;
  --brand-blue: #000DE7;
  --brand-red: #F43E01;
  --brand-green: #22c55e;
  --brand-black: #0A0A0A;
  --brand-white: #FAFAFA;

  /* ===== SEMANTIC COLOR MAPPING ===== */
  /* Backgrounds */
  --bg-primary: #FFFDF5;
  /* Warm white (slight yellow tint) */
  --bg-secondary: #F8F8F5;
  /* Neutral light */
  --bg-card: var(--brand-white);
  --bg-elevated: #FFFFFF;
  --bg-glass: hsla(0, 0%, 100%, 0.85);
  --bg-glass-secondary: hsla(0, 0%, 100%, 0.85);
  --bg-dark: var(--brand-black);
  --bg-dark-secondary: #1a1a1a;
  --bg-section-dark: #1a1a1a;
  --bg-section-teal: var(--brand-black);

  /* Text */
  --text-primary: var(--brand-black);
  --text-secondary: #404040;
  --text-tertiary: #525252;
  --text-on-dark: var(--brand-white);
  --text-on-dark-secondary: rgba(255, 255, 255, 0.7);

  /* Accents & Interactive */
  --accent: var(--brand-yellow);
  --accent-text-accessible: #B48E00;
  --accent-hover: #E5B800;
  --accent-secondary: var(--brand-blue);
  --accent-danger: var(--brand-red);

  /* Buttons */
  --btn-primary-bg: var(--brand-yellow);
  --btn-primary-text: var(--brand-black);
  --btn-primary-hover-bg: var(--brand-yellow);  /* Keep yellow on hover */
  --btn-primary-hover-text: var(--brand-black);  /* Keep text dark */
  --btn-secondary-bg: var(--brand-black);
  --btn-secondary-text: var(--brand-white);

  /* Borders */
  --border: rgba(0, 0, 0, 0.08);
  --border-dark: rgba(255, 255, 255, 0.1);
  --border-strong: #26251e;
  --nav-border-contrast: rgba(10, 10, 10, 0.2);

  /* Status Colors (mapped to brand) */
  --color-success: var(--brand-green);
  --color-success-light: var(--brand-green);
  --color-positive: var(--brand-green);
  --color-warning: var(--brand-red);
  --color-danger: #c75858;
  --color-info: var(--brand-blue);

  /* Legacy Green References (now mapped to brand) */
  --legacy-green: var(--brand-yellow);
  --legacy-green-dark: var(--brand-blue);
  --legacy-green-text: #2E9B4E;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-section: 160px;
  --radius-full: 9999px;

  /* Fixed UI offsets */
  --privacy-banner-offset: 0px;
  
  /* Nested radii - Vercel guidelines */
  /* When element has padding and rounded corners, inner elements need smaller radius */
  /* Formula: inner-radius = outer-radius - padding */
  --radius-calc-interface: 20px;        /* Parent container */
  --radius-calc-screen: 14px;           /* 20px - ~6px effective padding */
  --radius-calc-inner-card: 10px;       /* 14px - ~4px margin from screen edge */
  --radius-calc-inner-element: 8px;     /* Smallest nested elements */

  /* Layout Spacing */
  --nav-effective-height: 110px;
  --space-sm: clamp(1rem, 2vw, 1.5rem);
  --space-md: clamp(1.5rem, 3vw, 2.5rem);
  --space-lg: clamp(2.5rem, 5vw, 4rem);
  --space-xl: clamp(5rem, 10vw, 10rem);
  --section-spacing: var(--space-xl);

  /* Typography */
  --font-body: 'Oldschool Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-headings: 'Oldschool Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-code: 'JetBrains Mono', 'SFMono-Regular', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  --font-sans: var(--font-headings);

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-micro: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Shadows - Layered approach (Vercel guidelines) */
  --shadow-sm: 
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 1px 1px rgba(0, 0, 0, 0.02);
  --shadow-md: 
    0 4px 6px rgba(0, 0, 0, 0.04),
    0 2px 4px rgba(0, 0, 0, 0.03),
    0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-lg: 
    0 12px 24px rgba(0, 0, 0, 0.06),
    0 6px 12px rgba(0, 0, 0, 0.04),
    0 2px 4px rgba(0, 0, 0, 0.02);

  /* Premium Shadow System */
  --shadow-subtle-sm: 0 1px 2px rgba(0, 0, 0, 0.02), 0 1px 1px rgba(0, 0, 0, 0.01);
  --shadow-subtle-md: 0 2px 4px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-elevated: 0 10px 30px rgba(0, 0, 0, 0.08), 0 5px 15px rgba(0, 0, 0, 0.05), 0 2px 5px rgba(0, 0, 0, 0.03), 0 0 1px rgba(0, 0, 0, 0, 0.02);
  --shadow-premium-glow: 0 0 40px rgba(252, 205, 3, 0.15), 0 0 80px rgba(252, 205, 3, 0.1);

  /* Calculator Palette (updated to brand) */
  --calc-bg-start: #FFFDF5;
  --calc-bg-end: #F8F8F5;
  --calc-glass-bg: hsla(0, 0%, 100%, 0.65);
  --calc-glass-border: rgba(252, 205, 3, 0.25);
  --calc-accent-primary: var(--brand-yellow);
  --calc-accent-gold: var(--brand-yellow);
  --calc-accent-teal: var(--brand-blue);
  --calc-shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.08);
  --calc-shadow-hover: 0 12px 48px rgba(0, 0, 0, 0.12);
}

/* Tabular numbers for alignment - Vercel guidelines */
.pricing-card .amount,
.hero-anchor-value,
.urgency-value,
.axis-value-display,
.time-result,
.wpm-result,
[data-value],
.stat-value,
.test-timer,
.time-value,
.verdict-multiplier,
.comp-time,
.saved-value,
.micro-stat .val,
.billing-note {
  font-variant-numeric: tabular-nums;
}

/* Focus states - Vercel guidelines */
:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--brand-yellow);
  outline-offset: 4px;
  box-shadow: 0 0 0 4px rgba(252, 205, 3, 0.2), 0 4px 12px rgba(252, 205, 3, 0.3);
}

/* Buttons and links focus */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand-yellow);
  outline-offset: 2px;
}

/* Skip to content link - Vercel guidelines */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-yellow);
  color: var(--brand-black);
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  z-index: 10000;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skip-to-content:focus {
  top: 50%;
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 20px 60px rgba(252, 205, 3, 0.4), 0 10px 30px rgba(252, 205, 3, 0.3);
}

/* ===== Theme Transition - Smooth color changes ===== */
*,
*::before,
*::after {
  transition: 
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    fill 0.2s ease,
    stroke 0.2s ease,
    box-shadow 0.2s ease;
}

/* Disable transitions on page load to prevent flash */
.no-transitions *,
.no-transitions *::before,
.no-transitions *::after {
  transition: none !important;
}

/* ===== DARK MODE THEME ===== */
[data-theme="dark"] {
  /* Color scheme for proper dark mode scrollbars */
  color-scheme: dark;
  
  /* Background Palette */
  --bg-primary: #0B0B0F;
  --bg-secondary: #161618;
  --bg-card: #1E1E24;
  --bg-elevated: #252528;
  --bg-glass: hsla(0, 0%, 10%, 0.7);
  --bg-glass-secondary: hsla(0, 0%, 12%, 0.7);
  --bg-dark: #0B0B0F;
  --bg-dark-secondary: #161618;

  /* Text Colors */
  --text-primary: #E6E6E6;
  --text-secondary: #9A9AA0;
  --text-tertiary: #6B6B73;
  --text-on-dark: #E6E6E6;
  --text-on-dark-secondary: rgba(255, 255, 255, 0.7);

  /* Borders */
  --border: rgba(255, 255, 255, 0.06);
  --border-dark: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.15);
  --nav-border-contrast: rgba(255, 255, 255, 0.24);

  /* Shadows - Dark mode layered */
  --shadow-sm: 
    0 1px 2px rgba(0, 0, 0, 0.15),
    0 1px 1px rgba(0, 0, 0, 0.1);
  --shadow-subtle-sm: 0 1px 2px rgba(0, 0, 0, 0.15), 0 1px 1px rgba(0, 0, 0, 0.1);
  --shadow-elevated: 0 20px 60px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.2), 0 0 1px rgba(255, 255, 255, 0.05);
  --shadow-md: 
    0 4px 6px rgba(0, 0, 0, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.15),
    0 1px 2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 
    0 12px 24px rgba(0, 0, 0, 0.25),
    0 6px 12px rgba(0, 0, 0, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Global Section Styling for Scroll Anchor Precision */
section {
  scroll-margin-top: 120px;
  position: relative;
}

/* ===== Premium Animation Classes ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -30px) scale(1.05);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

/* Glimmer effects removed - keeping buttons static and clean */



.animate-fade-up {
  animation: fadeUp 0.6s ease-out forwards;
  animation-delay: var(--delay, 0s);
}

/* Scroll Reveal Classes (activated by GSAP) */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Micro-Animation Keyframes ===== */
/* Unused keyframes removed for cleaner CSS */

/* ===== Button Micro-Animations ===== */
.hero-cta,
.pricing-btn,
.nav-cta,
.cta-btn {
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), color var(--transition);
}

/* Ensure no pseudo-element glimmer on any primary buttons */
.hero-cta::before,
.hero-cta::after,
.nav-cta::before,
.nav-cta::after,
.cta-btn::before,
.cta-btn::after {
  content: none;
}

/* Subtle hover feedback with movement */
.hero-cta:hover,
.nav-cta:hover,
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(252, 205, 3, 0.25);
}

/* Pricing buttons - subtle feedback with movement */
.pricing-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ===== Link Animations ===== */
.feature-link,
.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link-bordered {
  border: 1.5px solid var(--text-primary);
  padding: 8px 16px;
  border-radius: 8px;
  /* Boxier shape like reference */
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  background: var(--bg-card);
  /* Ensure visibility */
  margin-left: 8px;
  /* separation */
}

.nav-link-bordered:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.02);
}

.feature-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.feature-link:hover::after {
  transform: scaleX(1);
}

/* Arrow animation on links */
.feature-link:hover {
  color: var(--accent);
}

/* ===== Card Styles ===== */
/* Pricing card styles consolidated in main pricing section */

.feature-visual {
  transition: transform var(--transition-slow);
  background: none !important;
}

/* Feature cards stay static on hover - no movement */

/* ===== App Logo Hover Effects ===== */
.app-logo {
  transition: opacity var(--transition), transform var(--transition);
  cursor: pointer;
}

.app-logo:hover {
  opacity: 1 !important;
}

/* App icons stay static on hover - no movement */

/* ===== Text Animations ===== */
.hero-headline span,
.section-header h2 {
  display: inline-block;
}

/* Smooth gradient text */
.pricing-card h3,
.feature-text h2 {
  transition: color var(--transition);
}

/* Card text stays static on hover - no gradient effects */

/* ===== Interactive Focus States ===== */
.hero-cta:focus-visible,
.pricing-btn:focus-visible,
.nav-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* ===== Scroll Progress Bar ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-yellow);
  transform-origin: left;
  z-index: 9999;
}

/* Body Background for Grid Visibility */
body {
  background-color: transparent;
  min-height: 100vh;
}

/* ===== Hero Background Effects ===== */
.hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hero-waveform {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 80px;
  opacity: 0.15;
  pointer-events: none;
  filter: hue-rotate(70deg) saturate(0.8);
}

.hero-waveform lottie-player {
  width: 100%;
  height: 100%;
}


/* Voice Wave Container */
.voice-wave-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.voice-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 60px;
  padding: 10px 20px;
  background: rgba(229, 57, 53, 0.08);
  border-radius: 30px;
}

.voice-wave .bar {
  width: 4px;
  height: 20px;
  background: linear-gradient(to top, var(--accent), rgba(229, 57, 53, 0.6));
  border-radius: 2px;
  animation: wave 1.2s ease-in-out infinite;
}

.voice-wave .bar:nth-child(1) {
  animation-delay: 0s;
}

.voice-wave .bar:nth-child(2) {
  animation-delay: 0.1s;
}

.voice-wave .bar:nth-child(3) {
  animation-delay: 0.2s;
}

.voice-wave .bar:nth-child(4) {
  animation-delay: 0.3s;
}

.voice-wave .bar:nth-child(5) {
  animation-delay: 0.4s;
}

.voice-wave .bar:nth-child(6) {
  animation-delay: 0.5s;
}

.voice-wave .bar:nth-child(7) {
  animation-delay: 0.6s;
}

@keyframes wave {

  0%,
  100% {
    height: 12px;
    opacity: 0.6;
  }

  50% {
    height: 35px;
    opacity: 1;
  }
}

/* Noise Texture Overlay - Static (no animation) */
/* z-index: -1 keeps it behind content but above grid (-2) for subtle texture without blurring text */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.02;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ===== Enhanced Button Hover States ===== */
.download-btn-main {
  position: relative;
  overflow: hidden;
}

.download-btn-main:hover {
  box-shadow: 0 6px 16px rgba(252, 205, 3, 0.25);
}

.download-btn-main::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 15%, rgba(255, 255, 255, 0.55) 50%, transparent 85%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 0;
}

.download-btn-main:hover::after {
  opacity: 1;
}

.download-btn-main > * {
  position: relative;
  z-index: 1;
}

.feature-visual {
  transition: transform var(--transition-slow);
  background: none !important;
}

/* Feature Icon Container */
.feature-icon-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
}

.feature-icon {
  width: 80px;
  height: 80px;
  color: var(--text-primary);
  opacity: 0.8;
  animation: float-icon 4s ease-in-out infinite;
}

.purple .feature-icon {
  color: var(--brand-yellow);
}

.blue .feature-icon {
  color: var(--brand-blue);
}

.green .feature-icon {
  color: var(--brand-red);
}

.pulse-ring {
  position: absolute;
  width: 120px;
  height: 120px;
  border: 2px solid currentColor;
  border-radius: 50%;
  opacity: 0;
  animation: pulse-ring 3s ease-out infinite;
}

.purple .pulse-ring {
  border-color: rgba(124, 58, 237, 0.3);
}

.blue .pulse-ring {
  border-color: rgba(37, 99, 235, 0.3);
}

.green .pulse-ring {
  border-color: rgba(22, 163, 74, 0.3);
}

@keyframes float-icon {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.8);
    opacity: 0.6;
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Pricing card featured background - consolidated below */

/* ===== App Logo Marquee ===== */
.app-logos {
  position: relative;
  overflow: hidden;
}

.app-logos::before,
.app-logos::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}

.app-logos::before {
  left: 0;
  background: linear-gradient(90deg, var(--text-primary), transparent);
}

.app-logos::after {
  right: 0;
  background: linear-gradient(-90deg, var(--text-primary), transparent);
}



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

html {
  /* scroll-behavior removed - Lenis handles smooth scrolling, native smooth conflicts with instant scroll-to-top */
  overflow-y: scroll;
  /* Force scrollbar */
}

main {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow-x: hidden;
  padding-bottom: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--text-primary);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ===== Navigation (Cursor-style: Logo | Links | Buttons) ===== */
yapit-navbar {
  display: block;
  position: sticky;
  top: 1.5rem;
  z-index: 1001;
  width: 100%;
}

/* ===== Floating Navigation (Clean & Unified) ===== */
.nav-floating {
  /* Removed sticky positioning from here */
  /* position: sticky; */
  /* top: 1.5rem; */
  /* z-index: 1001; */
  display: flex;
  justify-content: center;
  padding: 0 1rem;
  pointer-events: none;
}

.nav-floating-container {
  pointer-events: auto;
  width: 100%;
  max-width: 1050px;
  height: 72px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 2px solid var(--nav-border-contrast);
  border-radius: 16px;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.25rem;
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.04),
    0 4px 8px rgba(0, 0, 0, 0.04),
    0 16px 32px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-floating-container:hover {
  border-color: var(--nav-border-contrast);
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.04),
    0 4px 8px rgba(0, 0, 0, 0.06),
    0 20px 40px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.nav-logo {
  display: flex;
  align-items: center;
  /* Ensures vertical center */
  justify-content: flex-start;
  gap: 0.5rem;
  text-decoration: none;
  user-select: none;
  height: 100%;
  /* Match navbar height for alignment */
  padding-left: 0;
  margin-right: 0;
}

/* Old .nav-logo img rule removed to prevent conflict */

.nav-logo .logo-text {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.nav-logo .yap {
  color: var(--brand-black);
}

.nav-logo .it {
  color: var(--legacy-green-text);
}

.text-accent {
  color: var(--accent);
}

.text-yellow {
  color: var(--brand-yellow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 100%;
  flex: 0 1 auto;
  justify-content: flex-end;
  margin-left: auto;
  margin-right: 0;
  /* Separator spacer */
}

.nav-links a,
.nav-btn-ghost {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--brand-black);
  text-decoration: none;
  padding: 0.55rem 1.05rem;
  border-radius: 8px;
  /* Boxy radius to match buttons */
  transition: color 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  background: transparent;
  white-space: nowrap;
  border: 1.5px solid transparent;
  /* Reserve space for border */
  /* Prevent layout shift on bold */
  text-shadow: 0 0 0 currentcolor;
  /* Faux bold to reserve space if font-weight changes? or just keep it consistent */
}

/* Ensure active/hover state doesn't change dimensions */
.nav-links a.active,
.nav-links a:hover {
  /* If font-weight changes, it shifts layout. Let's ensure it doesn't. */
  font-weight: 500;
  /* Keep same weight, relying on color/bg for indication */
}

.nav-links a:hover,
.nav-btn-ghost:hover {
  color: var(--brand-black);
  background: var(--btn-primary-bg);
  border-color: var(--border-strong);
  /* Match button border */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  /* transform removed */
}

.nav-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  padding-right: 0.25rem;
  margin-left: 1rem;
}

.nav-actions .download-btn-main {
  padding: 16px 32px;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
}

/* Theme Toggle Button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--text-primary);
  transition: var(--transition);
}

.theme-toggle:hover {
  background: var(--border);
}

.theme-icon-dark { display: none; }
.theme-icon-light { display: block; }

[data-theme="dark"] .theme-icon-dark { display: block; }
[data-theme="dark"] .theme-icon-light { display: none; }

.nav-btn-primary {
  padding: 0.7rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--btn-primary-bg);
  color: var(--brand-black) !important;
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

/* New Inline Nav Branding */
/* New Inline Nav Branding */
/* New Inline Nav Branding */
.nav-logo-brand-img {
  /* [CALIBRATION CONTROLS] */
  height: 68px !important;
  /* SIZE - reduced to fit wider logo */
  margin-left: 10px;
  /* MOVE LEFT/RIGHT (negative values go left) */

  /* VERTICAL NUDGE */
  margin-top: -8px;
  /* Positive pushed DOWN, Negative pulls UP */
  transform: translateY(0px);
  /* Alternative vertical fine-tuning */

  width: auto;
  object-fit: contain;
  display: block;
}

.nav-btn-primary:hover {
  background: var(--btn-primary-hover-bg);
  color: var(--btn-primary-hover-text) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ... existing styles ... */

/* ===== Navigation - Dark Mode ===== */
[data-theme="dark"] .nav-floating-container {
  background: rgba(11, 11, 15, 0.85);
  border-color: var(--nav-border-contrast);
  box-shadow: 
    0 4px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .nav-links a {
  color: var(--text-primary);
}

[data-theme="dark"] .nav-links a:hover {
  color: var(--brand-black);
  background: var(--btn-primary-bg);
}

[data-theme="dark"] .nav-logo-brand-img {
  position: relative;
  z-index: 10;
}

/* ===== Shadows - Dark Mode Enhanced ===== */
[data-theme="dark"] .pricing-card {
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 8px 32px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .pricing-card:hover {
  transform: none;
}



[data-theme="dark"] .feature-visual-wrapper {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .download-btn-main:hover,
[data-theme="dark"] .download-btn-wide:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .os-icon-item {
  background: var(--bg-elevated);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 4px 16px rgba(0, 0, 0, 0.4);
}

/* ===== DARK GLASSMORPHISM SYSTEM ===== */
/* Cohesive dark glass effect used throughout the dark theme */
[data-theme="dark"] .glass,
[data-theme="dark"] .platform-card {
  background: rgba(17, 17, 20, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Pricing cards - solid background, no blur for crisp text */
[data-theme="dark"] .pricing-card {
  background: rgb(17, 17, 20);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Glass card hover states */
[data-theme="dark"] .glass:hover,
[data-theme="dark"] .platform-card:hover {
  background: rgba(22, 22, 26, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
}

/* ===== DARK MODE SHADOWS ===== */
/* Subtle depth shadows for dark theme */



/* Featured Pricing Card */
[data-theme="dark"] .pricing-card.featured {
  box-shadow:
    0 0 0 2px var(--brand-yellow),
    0 12px 40px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .pricing-card.featured:hover {
  box-shadow:
    0 0 0 2px var(--brand-yellow),
    0 12px 40px rgba(0, 0, 0, 0.5);
}

/* Download Button - Dark Mode */
[data-theme="dark"] .download-btn-main {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .download-btn-main:hover {
  box-shadow: 0 6px 16px rgba(252, 205, 3, 0.25);
}

/* Feature Icon Container */
[data-theme="dark"] .feature-icon-container {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}



/* Divider Icon */
[data-theme="dark"] .divider-icon {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Nav CTA Button - Dark Mode */
[data-theme="dark"] .nav-btn-primary {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .nav-btn-primary:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Feature CTA Button - Dark Mode */
[data-theme="dark"] .feature-cta {
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .feature-cta:hover {
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.15),
    0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Billing Toggle - Glass Effect */
[data-theme="dark"] .billing-toggle {
  background: rgba(17, 17, 20, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 4px 16px rgba(0, 0, 0, 0.3);
}



/* Feature Cards */
[data-theme="dark"] .feature-card {
  background: rgba(17, 17, 20, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .feature-card:hover {
  background: rgba(22, 22, 26, 0.75);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}





/* ===== DARK MODE GRADIENT OVERRIDES ===== */
/* Grouped together for maintainability */

[data-theme="dark"] body {
  background: radial-gradient(ellipse at top, #1a1a1a 0%, #000000 100%);
}

/* 1. Hero Title - Solid color on dark background */
[data-theme="dark"] .hero-title {
  color: var(--text-primary);
}

/* 2. Scroll Progress Bar - Solid color on dark */
[data-theme="dark"] .scroll-progress {
  background: var(--brand-yellow);
}

/* Hero Section - Dark Mode */
[data-theme="dark"] .hero {
  background: transparent;
}

[data-theme="dark"] .hero-container {
  background: transparent;
}

[data-theme="dark"] .hero-subtitle-main {
  color: var(--text-secondary);
}

[data-theme="dark"] .hero-word {
  color: var(--brand-black);
  -webkit-text-fill-color: var(--brand-black);
}

[data-theme="dark"] .typing-wrapper {
  background: var(--brand-yellow);
}

[data-theme="dark"] .hero-cursor {
  color: var(--brand-black);
  -webkit-text-fill-color: var(--brand-black);
}

[data-theme="dark"] .hero-cta-container .download-btn-main {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}



/* 5. Voice Wave Bars - Enhanced for dark mode (line ~452) */
[data-theme="dark"] .voice-wave .bar {
  background: linear-gradient(to top, var(--brand-yellow), rgba(232, 201, 74, 0.6));
}



/* 8. CTA Section - Clean background on dark */
[data-theme="dark"] .cta::before {
  display: none;
}

/* CTA Section - Dark Mode Overrides */
[data-theme="dark"] .cta {
  background: transparent;
}

[data-theme="dark"] .cta h2,
[data-theme="dark"] .cta-content h2 {
  color: var(--text-primary);
}

[data-theme="dark"] .cta p,
[data-theme="dark"] .cta-content p {
  color: var(--text-secondary);
}

[data-theme="dark"] .cta .download-btn-main {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}







/* 13. Grid Background Layers - Lighter lines on dark (lines ~4152-4169) */
[data-theme="dark"] .grid-layer-base {
  background-color: var(--bg-primary);
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

[data-theme="dark"] .grid-layer-highlight {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
}

/* 14. Text Stream Colors for Speed Section (lines ~1219-1230) */
[data-theme="dark"] .slow-stream .stream-content {
  color: var(--text-tertiary);
}

[data-theme="dark"] .fast-stream .stream-content {
  color: var(--text-primary);
  -webkit-text-stroke: 1px var(--brand-yellow);
  text-stroke: 1px var(--brand-yellow);
}

/* 15. Verdict Multiplier - Dark mode */
[data-theme="dark"] .verdict-multiplier {
  color: var(--color-positive);
}





/* 18. Divider Icon - Dark mode */
[data-theme="dark"] .divider-icon {
  background: rgba(22, 22, 24, 0.9);
  border-color: rgba(232, 201, 74, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* 19. Speed Section - Dark Mode */
[data-theme="dark"] .speed-section {
  background: transparent;
}

[data-theme="dark"] .speed-zone {
  background: transparent;
}

[data-theme="dark"] .speed-divider {
  background: transparent;
  border-color: transparent;
}

[data-theme="dark"] .mini-indicator .ind-bar {
  background: var(--brand-yellow);
}

/* ===== Pricing Section - Dark Mode ===== */
[data-theme="dark"] .pricing {
  background: transparent;
}

[data-theme="dark"] .section-header h2 {
  color: var(--text-primary);
}

[data-theme="dark"] .section-header p {
  color: var(--text-secondary);
}

[data-theme="dark"] .billing-toggle {
  background: var(--bg-elevated);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .toggle-btn {
  color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .toggle-btn:hover:not(.active) {
  color: var(--text-primary);
}

[data-theme="dark"] .toggle-btn.active {
  color: var(--brand-black);
  background: var(--brand-yellow);
}

[data-theme="dark"] .pricing-card {
  background: rgb(22, 22, 24);
  border-color: rgba(255, 255, 255, 0.06);
  isolation: isolate;
}

[data-theme="dark"] .pricing-card.featured {
  border-color: var(--brand-yellow);
}

[data-theme="dark"] .pricing-badge {
  background: var(--brand-yellow);
  color: var(--brand-black);
}

[data-theme="dark"] .pricing-tier {
  color: var(--text-tertiary);
}

[data-theme="dark"] .price .amount {
  color: var(--text-primary);
}

[data-theme="dark"] .pricing-desc {
  color: var(--text-secondary);
}

[data-theme="dark"] .pricing-features li {
  color: var(--text-secondary);
}

[data-theme="dark"] .pricing-features li::before {
  color: var(--brand-yellow);
}

[data-theme="dark"] .pricing-btn.secondary {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

[data-theme="dark"] .pricing-btn.secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ===== Buttons - Dark Mode ===== */
[data-theme="dark"] .download-btn-main {
  background: var(--brand-yellow);
  color: var(--brand-black);
}

[data-theme="dark"] .download-btn-main:hover {
  box-shadow: 0 6px 16px rgba(252, 205, 3, 0.25);
}

[data-theme="dark"] .btn-secondary,
[data-theme="dark"] .pricing-btn.secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

[data-theme="dark"] .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--brand-yellow);
}

/* Focus states - Accessibility */
[data-theme="dark"] button:focus-visible,
[data-theme="dark"] a:focus-visible {
  outline: 2px solid var(--brand-yellow);
  outline-offset: 2px;
}

/* ===== Form Elements - Dark Mode ===== */
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] textarea {
  background: var(--bg-elevated);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

[data-theme="dark"] input::placeholder {
  color: var(--text-tertiary);
}

[data-theme="dark"] input:focus {
  border-color: var(--brand-yellow);
  box-shadow: 0 0 0 3px rgba(232, 201, 74, 0.2);
}

/* ===== Speed Section (Type vs Yap - Horizontal River) ===== */
.speed-section {
  padding: 8rem 2rem 0;
  overflow: hidden;
  position: relative;
  z-index: 10;
}

.speed-track {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  /* Minimized gap for tight layout */
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.speed-zone {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-height: 280px;
}

.zone-label {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  white-space: nowrap;
  z-index: 20;
}

.typing-zone .zone-label {
  color: var(--text-on-dark-secondary);
}

.yapping-zone .zone-label {
  color: var(--text-on-dark);
}

/* Speed Zone Illustrations */
.speed-illustration {
  position: absolute;
  bottom: 0;
  height: auto;
  opacity: 1;
}

.typing-zone .speed-illustration {
  max-width: 260px;
  left: 10%;
  right: auto;
  transform: none;
}

.yapping-zone .speed-illustration {
  max-width: 380px;
  right: 5%;
  left: auto;
  transform: none;
}

/* Central Divider (Capsule) */
.speed-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 50;
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.divider-icon {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 12px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(252, 205, 3, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}



/* Mini Indicator - Wave Animation */
.mini-indicator {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 16px;
}

.mini-indicator .ind-bar {
  width: 3px;
  background: var(--btn-primary-bg);
  border-radius: 2px;
  height: 10px;
  animation: indPulse 1.2s ease-in-out infinite;
  /* Slower smooth wave */
}

/* Sequential Wave Delays */
.mini-indicator .ind-bar:nth-child(1) {
  animation-delay: 0.0s;
}

/* Natural Speech Pattern - Randomized */
.mini-indicator .ind-bar:nth-child(1) {
  animation-duration: 0.4s;
  animation-delay: 0.0s;
}

.mini-indicator .ind-bar:nth-child(2) {
  animation-duration: 0.7s;
  animation-delay: 0.1s;
}

.mini-indicator .ind-bar:nth-child(3) {
  animation-duration: 0.5s;
  animation-delay: 0.2s;
}

.mini-indicator .ind-bar:nth-child(4) {
  animation-duration: 0.8s;
  animation-delay: 0.0s;
}

.mini-indicator .ind-bar:nth-child(5) {
  animation-duration: 0.6s;
  animation-delay: 0.3s;
}

.mini-indicator .ind-bar:nth-child(6) {
  animation-duration: 0.45s;
  animation-delay: 0.1s;
}

.mini-indicator .ind-bar:nth-child(7) {
  animation-duration: 0.75s;
  animation-delay: 0.2s;
}

.mini-indicator .ind-bar:nth-child(8) {
  animation-duration: 0.55s;
  animation-delay: 0.0s;
}

.mini-indicator .ind-bar:nth-child(9) {
  animation-duration: 0.9s;
  animation-delay: 0.3s;
}

.mini-indicator .ind-bar:nth-child(10) {
  animation-duration: 0.65s;
  animation-delay: 0.1s;
}

.mini-indicator .ind-bar:nth-child(11) {
  animation-duration: 0.5s;
  animation-delay: 0.2s;
}

.mini-indicator .ind-bar:nth-child(12) {
  animation-duration: 0.8s;
  animation-delay: 0.0s;
}

.mini-indicator .ind-bar:nth-child(13) {
  animation-duration: 0.6s;
  animation-delay: 0.1s;
}

@keyframes indPulse {

  0%,
  100% {
    height: 4px;
    opacity: 0.4;
  }

  50% {
    height: 16px;
    opacity: 1;
  }
}

/* Text Streams (Horizontal River) - Edge to Edge */
.text-stream {
  position: absolute;
  top: 12%;
  transform: translateY(-50%);
  white-space: nowrap;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.6;
  z-index: 10;
}

/* Typing (Left): Extends from left viewport edge to center */
.typing-zone .text-stream {
  right: 0;
  left: calc(-50vw + 50%);
  mask-image: linear-gradient(to right, transparent, black 15%, black 100%);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 100%);
}

/* Yapping (Right): Extends from center to right viewport edge */
.yapping-zone .text-stream {
  left: 0;
  right: calc(-50vw + 50%);
  mask-image: linear-gradient(to left, transparent, black 15%, black 100%);
  -webkit-mask-image: linear-gradient(to left, transparent, black 15%, black 100%);
}



.stream-content {
  display: inline-flex;
  gap: 4rem;
  will-change: transform;
}



.stream-content span {
  opacity: 0.8;
  will-change: transform;
}

/* Animations - River moves Left to Right (TranslateX -50% to 0%) */
/* The HTML structure has the content duplicated. To flow smoothly continuously:
   If we want it to move Left -> Right like a river:
   We start at -50% (showing the second half) and move to 0% (showing the first half).
   This simulates the text moving to the right. */

.slow-stream .stream-content {
  color: var(--brand-black);
  animation: riverFlow 90s linear infinite;
}

.fast-stream .stream-content {
  color: var(--brand-black);
  animation: riverFlow 4.0s linear infinite;
  font-weight: 600;
  -webkit-text-stroke: 1px var(--btn-primary-bg);
  text-stroke: 1px var(--btn-primary-bg);
}

@keyframes riverFlow {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0%);
  }
}

/* Responsive adjustment (Mobile Desktop-Parity Downscale) */
@media (max-width: 768px) {
  .speed-section {
    /* Desktop parity: keep the section tight against the next curve */
    padding: 3.25rem 0.75rem 0.75rem;
  }

  /* Keep the desktop composition: 2 lanes + centered pill + streams */
  .speed-track {
    flex-direction: row;
    align-items: flex-end;
    gap: 0;
    min-height: 280px;
    max-width: 100%;
    position: relative;
  }

  .speed-zone {
    min-height: 280px;
    width: 50%;
  }

  .text-stream {
    top: 17%;
    width: auto;
    padding: 0;
    font-size: 0.76rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
  }

  .stream-content {
    gap: 1.75rem;
  }

  .speed-divider {
    top: 17%;
    margin: 0;
  }

  .divider-icon {
    padding: 10px 10px;
  }

  .typing-zone .speed-illustration,
  .yapping-zone .speed-illustration {
    bottom: 0;
    width: auto;
    margin-top: 0;
    transform: none;
    z-index: 20;
  }

  .typing-zone .speed-illustration {
    left: 1%;
    max-width: min(38vw, 160px);
  }

  .yapping-zone .speed-illustration {
    right: 1%;
    max-width: min(44vw, 180px);
  }

  /* Dark mode stream colors: left feels muted, right feels energized (matches iPhone screenshots) */
  [data-theme="dark"] .slow-stream .stream-content {
    color: rgba(255, 255, 255, 0.35);
  }

  [data-theme="dark"] .fast-stream .stream-content {
    color: rgba(252, 205, 3, 0.95);
    -webkit-text-stroke: 0 transparent;
    text-stroke: 0 transparent;
  }
}

/* Identity Signal Section */
.identity-section {
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  z-index: 5;
}

.identity-container {
  max-width: 800px;
  margin: 0 auto;
}

.identity-statement {
  font-family: var(--font-headings);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 500;
  line-height: 1.8;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.identity-statement br {
  display: block;
  content: "";
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .identity-section {
    padding: 3rem 1.5rem;
  }
  
  .identity-statement {
    font-size: clamp(1rem, 4vw, 1.25rem);
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .speed-section {
    padding: 2.1rem 0.4rem 0;
    /* Ensure speed illustrations sit above the next section's background when we overlap it slightly. */
    z-index: 20;
  }

  .speed-track {
    min-height: 220px;
  }

  .speed-zone {
    min-height: 220px;
  }

  .text-stream {
    top: 26%;
    font-size: 0.66rem;
  }

  .speed-divider {
    top: 26%;
  }

  .typing-zone .speed-illustration,
  .yapping-zone .speed-illustration {
    bottom: 0;
  }

  .typing-zone .speed-illustration {
    max-width: min(34vw, 120px);
    left: 1%;
    bottom: 0;
  }

  .yapping-zone .speed-illustration {
    max-width: min(39vw, 140px);
    right: 1%;
    bottom: 0;
  }

  .divider-icon {
    padding: 10px 8px;
  }

  .mini-indicator .ind-bar {
    width: 2px;
  }
}

:root {
  --nav-effective-height: 80px;
  /* Default value, adjust as needed */
}

.hero {
  /* Intelligent Calculation: Navbar Height + Small Buffer */
  padding: calc(var(--nav-effective-height) + 1rem) 20px 4rem;
  position: relative;
  z-index: 5;
}

.hero-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.hero-title {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 4.5rem;
  letter-spacing: -0.05em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  white-space: nowrap;
  margin-left: -50px;
  color: var(--text-primary);
}

.hero-line {
  display: block;
}

.hero-word {
  display: inline-block;
  line-height: inherit;
  color: var(--brand-yellow);
  -webkit-text-fill-color: var(--brand-yellow);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.typing-wrapper {
  display: inline-flex;
  align-items: baseline;
  width: auto;
  text-align: left;
  white-space: nowrap;
  background: var(--brand-black);
  padding: 0 4px;
  border-radius: 8px;
  margin-left: 0.1em;
  line-height: inherit;
  vertical-align: baseline;
}

.hero-cursor {
  display: inline-block;
  font-family: inherit;
  font-weight: inherit;
  font-size: 1em;
  margin-left: 0.02em;
  line-height: inherit;
  vertical-align: baseline;
  transform: none;
  color: var(--brand-yellow);
  -webkit-text-fill-color: var(--brand-yellow);
  animation: blink 1s step-end infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero-subtitle-main {
  font-family: var(--font-body);
  /* Changed to Body Font per user request */
  font-size: 30px;
  /* Increased from 26px */
  font-weight: 400;
  letter-spacing: -0.325px;
  line-height: 32.5px;
  color: var(--text-secondary);
  margin-bottom: 56px;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* ===== Download Button (Premium Micro-interactions) ===== */
.download-btn-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 16px 32px;
  background: var(--btn-primary-bg);
  color: var(--brand-black) !important;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  transition: box-shadow var(--transition), background-color var(--transition), color var(--transition);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  /* Ensure button is never hidden */
  position: relative;
  z-index: 10;
}

.download-btn-main svg,
.download-btn-main path {
  fill: var(--brand-black) !important;
}

.download-btn-main:hover {
  box-shadow: 0 6px 16px rgba(252, 205, 3, 0.25);
}

.download-btn-main:active {
  box-shadow: var(--shadow-sm);
}

.download-btn-main:hover svg,
.download-btn-main:hover svg path {
  fill: var(--brand-black) !important;
}

/* Glimmer effects removed - buttons are clean and static */





.download-btn-main .arrow {
  font-size: 14px;
  transition: none;
}

.hero-cta-cluster {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1.2rem;
}

.hero-proof-badge {
  position: static;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: max-content;
  margin: 0;
  padding: 0;
  color: var(--text-primary);
  transform: none;
  transform-origin: center top;
  pointer-events: none;
  user-select: none;
}

.hero-proof-top {
  display: flex;
  align-items: center;
  gap: 0.56rem;
  line-height: 1;
}

.hero-proof-text {
  font-family: var(--font-body);
  font-size: clamp(0.94rem, 1.06vw, 1.1rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.hero-proof-laurel {
  width: 20px;
  height: 28px;
  opacity: 0.95;
  filter: brightness(0) saturate(100%) invert(10%) sepia(14%) saturate(500%) hue-rotate(177deg) brightness(94%) contrast(90%);
  object-fit: contain;
  flex-shrink: 0;
}

.hero-proof-laurel-right {
  transform: none;
}

.hero-proof-stars {
  margin-top: 0.08rem;
  color: var(--brand-yellow);
  font-size: 0.96rem;
  letter-spacing: 0.08em;
  text-align: center;
  white-space: nowrap;
}

[data-theme="dark"] .hero-proof-badge {
  color: #f3f4f7;
}

[data-theme="dark"] .hero-proof-laurel {
  filter: none;
  opacity: 0.95;
}

@media (max-width: 1200px) {
  .hero-cta-cluster {
    gap: 1.05rem;
  }

  .hero-proof-badge {
    transform: none;
  }
}



/* ===== Feature Sections ===== */
.feature-section {
  padding: 6rem 2rem;
  position: relative;
  z-index: 1;
  background: transparent !important;
  background-color: transparent !important;
}

.feature-section *:not(img):not(lottie-player):not(.download-btn-main):not(.feature-cta) {
  background: transparent !important;
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}

.feature-section:nth-child(odd) {
  position: relative;
  z-index: 1;
}

.feature-section:nth-child(even) {
  position: relative;
  z-index: 1;
}

.feature-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 6rem;
  padding: 0 2rem;
  position: relative;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  outline: none !important;
}

.feature-container>* {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-radius: 0 !important;
}

.feature-container::before,
.feature-container::after {
  display: none !important;
  content: none !important;
}

/* Hover Lift Effect - REMOVED for unboxed layout */


/* Ensure children take up equal space */
.feature-container>* {
  flex: 1;
  width: 50%;
  min-width: 0;
  /* Prevent flex overflow */
}

/* ===== Open Layout (No Bento Box) ===== */
.feature-container-open {
  max-width: 1200px;
  /* Slightly wider for open feel */
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 5rem;
  /* Increase gap for breathability */
  padding: 2rem;
  /* Minimal padding */
  position: relative;
  /* Removed: background, border, box-shadow, radius */
}

/* Ensure children take up equal space in open layout too */
.feature-container-open>* {
  flex: 1;
  width: 50%;
  min-width: 0;
}

.feature-container-open .feature-text {
  padding: 0;
  /* Remove any internal padding */
}

.feature-illustration-full {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  box-shadow: none !important;
  background: transparent !important;
  --img-scale: 1;
  transform: scale(var(--img-scale));
  cursor: pointer;
}

/* Hover handled by GSAP 3D tilt in interactions.js */

/* ===== Feature Visual Illustrations ===== */

/* Specific adjustment for Smart Formatting illustration */
.smart-formatting-img {
  --img-scale: 1.4;
  /* Defining base scale variable instead of raw transform */
  transform-origin: center;
}

.dictionary-img {
  --img-scale: 1.4;
  /* Adjust this value to scale the dictionary individually */
}

.shortcuts-img {
  --img-scale: 1.2;
}

.privacy-img {
  --img-scale: 1.0;
}



/* Dark theme card adjusmetns */
/* Dark theme card adjusmetns */


.feature-container.reverse {
  direction: rtl;
}

.feature-container.reverse>* {
  direction: ltr;
}

.feature-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-text p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--accent) !important;
}

.feature-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 10px 22px;
  background: var(--border-strong);
  color: var(--bg-secondary) !important;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: box-shadow var(--transition);
  margin-top: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-strong);
}

.feature-cta:hover {
  box-shadow: var(--shadow-md);
  background: var(--bg-dark);
}

.feature-cta .os-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
  margin-left: 2px;
  /* Slight optical adjustment */
}

.feature-link:hover {
  opacity: 0.8;
}

/* ===== Dark Feature Section Variant ===== */
.feature-section.dark {
  background: var(--bg-dark);
  border-radius: var(--radius-xl);
  margin: 1rem 1rem;
  max-width: calc(100% - 2rem);
  margin-left: auto;
  margin-right: auto;
}

.feature-section.dark .feature-text h2 {
  color: var(--text-on-dark);
}

.feature-section.dark .feature-text p {
  color: var(--text-on-dark-secondary);
}

.feature-section.dark .feature-link {
  color: var(--accent) !important;
}

.feature-section.dark .feature-visual {
  background: var(--bg-dark-secondary);
  border-color: var(--border-dark);
}

.feature-section.dark .feature-visual.neutral {
  background: transparent;
}

/* Dark section visual text adjustments */


.feature-section.dark .ai-transform-visual .ai-before {
  color: var(--text-on-dark-secondary);
}

.feature-section.dark .ai-transform-visual .ai-after {
  color: var(--text-on-dark);
  background: var(--bg-dark);
  border-color: var(--border-dark);
}

.feature-visual,
.feature-visual-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 400px;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-radius: 0 !important;
  outline: none !important;
}

.feature-visual::before,
.feature-visual::after,
.feature-visual-wrapper::before,
.feature-visual-wrapper::after {
  display: none !important;
  content: none !important;
}

.feature-visual.purple,
.feature-visual.blue,
.feature-visual.green,
.feature-visual.neutral {
  background: none !important;
  border: none !important;
}

.feature-visual .placeholder {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  font-weight: 500;
}



.feature-visual img,
.feature-visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
}

/* Reversed Feature Section (text on right, visual on left) */
.feature-section.reversed .feature-container {
  direction: rtl;
}

.feature-section.reversed .feature-container>* {
  direction: ltr;
}

/* ===== Feature Visual Illustrations ===== */



/* Dictionary Visual */


/* Removed card background */




/* AI Transform Visual */
.ai-transform-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  gap: 0.75rem;
  text-align: center;
  transform: scale(1);
}

.ai-transform-visual .ai-before {
  font-size: 1rem;
  color: var(--text-tertiary);
  text-decoration: line-through;
  opacity: 0.7;
}

.ai-transform-visual .ai-sparkle {
  font-size: 1.5rem;
}

.ai-transform-visual .ai-after {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  /* Removed card styles */
}

.feature-visual.neutral {
  background: none !important;
}

.apps-section {
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.apps-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.apps-section p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

/* ===== App Logo Marquee (Wispr Style) ===== */
.app-logos-container {
  overflow: hidden;
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.app-logos {
  display: flex;
  gap: 4rem;
  width: max-content;
  animation: scrollLeft 30s linear infinite;
  padding: 1rem 0;
}

.app-logos:hover {
  animation-play-state: paused;
}

.app-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0.7;
  transition: opacity var(--transition), transform var(--transition);
  min-width: 80px;
  /* Ensure consistent spacing */
}

.app-logo:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.app-logo svg {
  height: 64px;
  width: 64px;
}

.app-logo span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }

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

/* ===== Trilemma Section ===== */
.trilemma-section {
  padding: 5rem 2rem;
  position: relative;
  z-index: 10;
}

.trilemma-container {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.trilemma-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.trilemma-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.trilemma-master-toggle {
  display: inline-flex;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}

.master-toggle-btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
}

.master-toggle-btn.active {
  background: var(--brand-yellow);
  color: var(--brand-black);
}

.trilemma-toggles {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.trilemma-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.trilemma-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
}

.trilemma-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.trilemma-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--text-tertiary);
  transition: var(--transition);
  border-radius: var(--radius-full);
}

.trilemma-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: var(--transition);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.trilemma-switch input:checked + .trilemma-slider {
  background-color: var(--brand-yellow);
}

.trilemma-switch input:checked + .trilemma-slider:before {
  transform: translateX(20px);
}

.trilemma-switch input:disabled + .trilemma-slider {
  cursor: not-allowed;
  opacity: 0.7;
}

.trilemma-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  text-align: left;
}

.trilemma-row.disabled .trilemma-label {
  color: var(--text-tertiary);
}

.trilemma-punchline {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 1rem;
}

/* Dark mode adjustments */
[data-theme="dark"] .trilemma-toggles {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .trilemma-master-toggle {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .master-toggle-btn {
  color: var(--text-on-dark-secondary);
}

[data-theme="dark"] .master-toggle-btn.active {
  color: var(--brand-black);
}

/* ===== Calculator Section (2D Compact Redesign) ===== */
.calculator-section {
  padding: 3rem 1rem;
  position: relative;
  z-index: 20;
  overflow: visible;
}

.calculator-section::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background: var(--bg-section-dark);
  border-radius: var(--radius-section);
  z-index: -1;
}

.calculator-container {
  max-width: 650px;
  margin: 0 auto;
  width: 100%;
}

.calculator-header-compact {
  text-align: center;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.calculator-header-compact h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-on-dark);
  margin: 0;
}

.calculator-header-compact p {
  color: var(--text-on-dark-secondary);
  font-size: 1rem;
  margin: 0;
}

/* ===== 2D Interface Grid ===== */
.calc-2d-interface {
  display: grid;
  grid-template-columns: 100px 1fr;
  grid-template-rows: minmax(520px, auto) 85px;
  gap: 0;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-calc-interface);
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  transition: box-shadow 0.3s ease;
}

.calc-2d-interface:hover {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Y-Axis (Left) */
.axis-y-container {
  grid-row: 1 / 2;
  grid-column: 1 / 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 100%;
  min-height: 520px;
  padding: 24px;
}

.slider-vertical-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 440px;
  height: 26px;
  transform: translate(-50%, -50%) rotate(-90deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.axis-label-vertical {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transform: translateX(-28px);
}

.axis-label-vertical .axis-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  transform-origin: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.axis-label-vertical .axis-value-display {
  position: absolute;
  top: 16px;
  left: calc(50% + 28px);
  transform: translateX(-50%);
  font-family: var(--font-headings);
  color: var(--brand-white);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  min-width: 80px;
  text-align: center;
}


/* Center Screen (Display) */
.calc-screen-display {
  grid-row: 1 / 2;
  grid-column: 2 / 3;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-calc-screen);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
  margin-left: 0.8rem;
  margin-bottom: 0.8rem;
}

.calc-screen-display::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}

/* Hero Savings - Single Anchor Card */
.savings-hero-anchor {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-anchor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 1.75rem;
  width: min(340px, 100%);
  min-height: 280px;
  height: 280px;
  gap: 0.35rem;
  background: rgba(252, 205, 3, 0.12);
  border-radius: var(--radius-calc-inner-card);
  border: 1px solid rgba(252, 205, 3, 0.35);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
  color: var(--brand-white);
}

.hero-anchor-card:hover {
  box-shadow:
    0 8px 12px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.hero-anchor-label-top {
  font-family: var(--font-headings);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand-white);
  margin-bottom: 0.25rem;
  position: relative;
  z-index: 1;
}

.hero-anchor-value {
  font-family: var(--font-headings);
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 800;
  color: var(--brand-white);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  position: relative;
  z-index: 1;
}

.hero-anchor-label-bottom {
  font-family: var(--font-headings);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-white);
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.hero-anchor-subtext {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--brand-white);
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
  white-space: nowrap;
  line-height: 1.4;
  text-align: center;
  width: 100%;
}

.hero-anchor-subtext span {
  color: inherit;
  font-weight: 500;
  letter-spacing: inherit;
  margin: 0;
}

.hero-anchor-metric {
  display: inline-flex;
  align-items: baseline;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.hero-anchor-metric .odometer-digit,
.hero-anchor-metric .odometer-static {
  margin: 0;
  padding: 0;
  letter-spacing: -0.02em;
}

.hero-anchor-divider {
  font-weight: 500;
  opacity: 0.8;
}

/* Emotional Context Tagline */
.hero-emotional-context {
  font-family: var(--font-headings);
  font-size: 0.8rem;
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.01em;
  margin-top: 0.75rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
  line-height: 1.4;
  text-align: center;
  position: relative;
  z-index: 1;
  transition: opacity 0.4s ease, transform 0.4s ease;
  max-width: 260px;
  min-height: 2.8em;
}

.hero-emotional-context::before {
  content: '"';
  position: relative;
  margin-right: 2px;
}

.hero-emotional-context::after {
  content: '"';
  position: relative;
  margin-left: 2px;
}

.speed-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 1rem;
  padding: 0.4rem 1rem;
  font-family: var(--font-headings);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--brand-yellow);
  background: rgba(252, 205, 3, 0.15);
  border: 1px solid rgba(252, 205, 3, 0.5);
  border-radius: 9999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.speed-badge-metric,
.speed-badge-label {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: 1;
}

/* Speed badge glimmer removed - keeping badge static and clean */



/* Comparison Bars */
.comparison-compact-bars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 2;
  margin-top: auto;
}

.comparison-visual {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.comp-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.comp-label {
  min-width: 95px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  letter-spacing: 0.01em;
  flex-shrink: 0;
  white-space: nowrap;
}

.comp-track {
  flex-grow: 1;
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.comp-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.comp-fill.type {
  background: var(--color-danger);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.comp-fill.yap {
  background: var(--btn-primary-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.comp-time {
  width: 55px;
  text-align: right;
  font-family: var(--font-headings);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  flex-shrink: 0;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.time-saved-callout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0.875rem 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(252, 205, 3, 0.25);
  border-radius: var(--radius-calc-inner-element);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.saved-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.saved-value {
  font-family: var(--font-headings);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-success-light);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.saved-unit {
  font-size: 0.8rem;
  color: var(--color-success-light);
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ===== Urgency Stats Grid ===== */
.urgency-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: auto;
  position: relative;
  z-index: 2;
}

.urgency-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-calc-inner-element);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.urgency-stat:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.urgency-stat.burning {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.urgency-stat.burning:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.urgency-stat.burning .urgency-value {
  color: var(--brand-red);
}

.urgency-stat.monthly {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.urgency-stat.monthly:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.urgency-stat.monthly .urgency-value {
  color: var(--brand-red);
}

.urgency-stat.life {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.urgency-stat.life:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.urgency-stat.life .urgency-value {
  color: var(--brand-red);
}

.urgency-icon {
  font-size: 1.75rem;
  margin-bottom: 0.625rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.urgency-value {
  font-family: var(--font-headings);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  min-height: 1.65rem;
  white-space: normal;
  text-align: center;
}

.urgency-label {
  display: block;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.375rem;
  font-weight: 600;
  white-space: normal;
  line-height: 1.4;
}

/* Micro Stats */
.micro-stats-row {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 1.5rem;
  position: relative;
  z-index: 2;
}

.micro-stat {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-code);
}

.micro-stat .label {
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.micro-stat .val {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.micro-stat .val[id^="money"] {
  color: var(--color-success-light);
}

/* X-Axis (Bottom) */
.axis-x-container {
  grid-row: 2 / 3;
  grid-column: 2 / 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.5rem 1.5rem 1rem 1.5rem;
  position: relative;
}

.slider-horizontal-wrapper {
  width: 100%;
  padding-top: 4px;
}

.axis-label-horizontal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.axis-label-horizontal .axis-title {
  text-align: left;
}

.axis-label-horizontal .axis-value-display {
  text-align: right;
}

.axis-label-horizontal .axis-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

.axis-label-horizontal .axis-value-display {
  font-family: var(--font-code);
  color: var(--brand-white);
  font-weight: 700;
  font-size: 1.2rem;
}

/* Corner Spacer */
.axis-corner-spacer {
  grid-row: 2 / 3;
  grid-column: 1 / 2;
}

/* ===== Shared Slider Styles ===== */
.calculator-slider {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
  outline: none;
  width: 100%;
}

/* Thumb Styling */
.calculator-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 22px;
  width: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-white) 0%, #e8e8e8 100%);
  border: 3px solid var(--btn-primary-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  margin-top: -9px;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s;
  cursor: pointer;
}

.calculator-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Track Styling */
.calculator-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

/* Dynamic Fill Logic handled by JS or simple gradient hack for now */
/* Since we can't easily sync JS fill width on rotated elements without more JS, 
   we'll stick to a simple track style or rely on the preserved JS 'updateSliderFill' 
   if it works on these classes. The JS targets IDs. */

#hours-slider {
  --fill-percent: 25%;
  background: linear-gradient(to right, var(--brand-yellow) var(--fill-percent), rgba(255, 255, 255, 0.15) var(--fill-percent));
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
  height: 4px;
  border-radius: 2px;
}

#hours-slider::-webkit-slider-runnable-track {
  background: transparent;
}

#hourly-rate-slider {
  --fill-percent: 10%;
  background: linear-gradient(to right, var(--brand-yellow) var(--fill-percent), rgba(255, 255, 255, 0.15) var(--fill-percent));
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
  height: 4px;
  border-radius: 2px;
}

#hourly-rate-slider::-webkit-slider-runnable-track {
  background: transparent;
}

/* Mobile-only slider mode toggle (keeps results visible with the active slider) */
.calc-mobile-slider-toggle {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  /* Hard guard: mobile must always show both sliders (rate + hours). */
  .calc-2d-interface,
  .calc-2d-interface.calc-mode-hours {
    grid-template-rows: auto auto auto !important;
  }

  .calc-2d-interface .axis-y-container,
  .calc-2d-interface .axis-x-container,
  .calc-2d-interface.calc-mode-hours .axis-y-container,
  .calc-2d-interface.calc-mode-hours .axis-x-container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .calculator-header-compact {
    margin-bottom: 1.4rem;
    gap: 0.35rem;
  }

  .calculator-header-compact h2 {
    font-size: clamp(1.35rem, 6vw, 1.85rem);
  }

  .calculator-header-compact p {
    font-size: 0.95rem;
  }

  .calc-2d-interface {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 1rem;
    padding: 0.95rem;
  }

  /* Mobile: show both sliders (rate + hours). */
  .calc-mobile-slider-toggle {
    display: none;
  }

  .axis-y-container {
    grid-row: 1;
    grid-column: 1;
    height: auto;
    min-height: 0;
    margin-bottom: 0;
    display: block;
    padding: 0.35rem 0.15rem 0;
  }

  .slider-vertical-wrapper {
    position: static;
    transform: none;
    width: 100%;
    height: auto;
    margin-top: 0.5rem;
  }

  .axis-label-vertical {
    position: static;
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: auto;
    transform: none;
  }

  .axis-label-vertical .axis-title {
    position: static;
    transform: none;
  }

  .axis-label-vertical .axis-value-display {
    position: static;
    transform: none;
  }

  /* Hours slider title is long; keep it to one line to avoid pushing results under the privacy banner. */
  .axis-label-horizontal {
    margin-top: 6px;
  }

  .axis-label-horizontal .axis-title {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .axis-label-horizontal .axis-value-display {
    flex-shrink: 0;
  }

  .slider-horizontal-wrapper {
    padding-top: 2px;
  }

  .calc-screen-display {
    grid-row: 3;
    grid-column: 1;
    margin-left: 0;
    margin-bottom: 0;
    padding: 0.85rem;
    gap: 0.65rem;
  }

  .axis-x-container {
    display: block;
    grid-row: 2;
    grid-column: 1;
    padding: 0.15rem 0.25rem 0.35rem;
  }

  .axis-corner-spacer {
    display: none;
  }

  .savings-hero-grid {
    grid-template-columns: 1fr;
  }

  .micro-stats-row {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }

  .urgency-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .urgency-stat {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    padding: 0.6rem 0.45rem;
    text-align: center;
  }

  .urgency-icon {
    font-size: 1.1rem;
    margin-bottom: 0.1rem;
  }

  .urgency-value {
    font-size: 1.05rem;
  }

  .urgency-stat>div {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .urgency-label {
    margin-top: 0.15rem;
    font-size: 0.6rem;
  }

  /* Reduce the anchor card height so slider + results fit in one mobile viewport */
  .hero-anchor-card {
    height: auto;
    min-height: 185px;
    padding: 0.9rem 1rem;
  }

  .hero-emotional-context {
    display: none;
  }

  .speed-badge {
    margin-top: 0.6rem;
  }

  /* Touch targets for sliders on mobile - 44px minimum (Vercel guidelines) */
  .calculator-slider::-webkit-slider-thumb {
    width: 44px;
    height: 44px;
    margin-top: -20px;
  }

  .calculator-slider::-moz-range-thumb {
    width: 44px;
    height: 44px;
  }
}

/* ===== Calculator Section - Small Mobile (480px) ===== */
@media (max-width: 480px) {
  .calculator-header-compact {
    margin-bottom: 1.1rem;
    gap: 0.25rem;
  }

  .calculator-header-compact p {
    display: none;
  }

  .calculator-section {
    padding: 2.4rem 0.5rem;
  }

  .calc-2d-interface {
    padding: 0.85rem;
    gap: 1rem;
  }

  .hero-anchor-card {
    width: 100%;
    max-width: 270px;
    min-height: 180px;
    height: auto;
    padding: 0.85rem;
  }

  .hero-anchor-value {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .urgency-stat {
    padding: 0.34rem 0.3rem;
  }

  .urgency-value {
    font-size: 0.88rem;
  }

  .urgency-label {
    font-size: 0.5rem;
    margin-top: 0.05rem;
  }

  .urgency-icon {
    font-size: 0.92rem;
  }

  .axis-label-horizontal {
    margin-top: 6px;
  }

  .axis-label-horizontal .axis-title,
  .axis-label-vertical .axis-title {
    font-size: 0.7rem;
  }

  .axis-label-horizontal .axis-value-display,
  .axis-label-vertical .axis-value-display {
    font-size: 1rem;
  }

  /* Hours/week mode is vertically tight; show the live value without pushing results under the privacy banner. */
  .calc-2d-interface.calc-mode-hours .axis-label-horizontal {
    display: flex;
    position: absolute;
    top: -14px;
    right: 0.25rem;
    margin-top: 0;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: none;
  }

  .calc-2d-interface.calc-mode-hours .axis-label-horizontal .axis-title {
    display: none;
  }

  .calc-2d-interface.calc-mode-hours .axis-label-horizontal .axis-value-display {
    font-family: var(--font-code);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: -0.01em;
  }

  .calc-2d-interface.calc-mode-hours .axis-x-container {
    padding: 0.05rem 0.25rem 0.2rem;
  }

  /* Ensure touch targets are at least 44px */
  .calculator-slider::-webkit-slider-thumb {
    width: 44px;
    height: 44px;
    margin-top: -20px;
  }

  .calculator-slider::-moz-range-thumb {
    width: 44px;
    height: 44px;
  }

  /* Micro stats stacking */
  .micro-stats-row {
    gap: 0.75rem;
  }

  .micro-stat {
    font-size: 0.75rem;
  }

  /* Time saved callout */
  .time-saved-callout {
    padding: 0.75rem 1rem;
    gap: 0.375rem;
  }

  .saved-value {
    font-size: 1.1rem;
  }
}

/* ===== Pricing Section ===== */
.pricing {
  padding: 6rem 2rem;
  position: relative;
  z-index: 10;
}

.section-container {
  max-width: 1000px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-top: 0.75rem;
}

/* ===== Billing Toggle (Brand Colors) ===== */
.billing-toggle {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 2.5rem;
  background: var(--bg-glass-secondary);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.toggle-btn {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
  transition: background-color var(--transition), color var(--transition);
  cursor: pointer;
  border: none;
  outline: none;
}

.toggle-btn.active {
  background: var(--btn-primary-bg);
  color: var(--brand-black);
}

.toggle-btn:hover:not(.active) {
  color: var(--text-primary);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Mobile-only plan switcher (hidden on desktop) */
.pricing-mobile-toggle {
  display: none;
}

.pricing-toggle-btn {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition);
}

.pricing-toggle-btn.active {
  background: var(--brand-yellow);
  color: var(--brand-black);
}

.pricing-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
  box-shadow: var(--shadow-sm);
  /* Flexbox for button alignment */
  display: flex;
  flex-direction: column;
  /* Ensure crisp text rendering */
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text-primary);
}

/* Pricing card hover - disabled for static layout */
.pricing-card:hover {
  transform: none;
}

.pricing-card.featured {
  border: 2px solid var(--brand-yellow);
  box-shadow: var(--shadow-sm);
  background: var(--bg-primary);
  z-index: 2;
}

.pricing-card.featured:hover {
  box-shadow: 0 0 0 1px rgba(252, 205, 3, 0.5), var(--shadow-premium-glow);
}

.pricing-card {
  transition: none;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: var(--bg-primary);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.pricing-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.price {
  margin-bottom: 0.75rem;
}

.price .amount {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: inline-block;
  transition: opacity 0.15s ease, transform 0.15s ease;
  line-height: 1.1;
}

.price .amount.changing {
  opacity: 0;
  transform: translateY(-4px);
}

.price .period {
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

.billing-note {
  transition: opacity 0.15s ease;
}

.pricing-desc {
  color: var(--text-primary);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.pricing-features li {
  padding: 0.5rem 0;
  color: var(--text-primary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pricing-features li::before {
  content: '•';
  flex-shrink: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--brand-black);
}

.pricing-btn {
  width: 100%;
  padding: 0.85rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 10px;
  cursor: pointer;
  margin-top: auto;
}

.pricing-btn.primary {
  background: var(--btn-primary-bg);
  color: var(--brand-black);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.pricing-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(252, 205, 3, 0.25);
}



.pricing-btn.secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.pricing-btn.secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Keep pricing CTA buttons fully static (no hover/focus/active movement effects). */
.pricing .pricing-btn {
  transition: none !important;
}

.pricing .pricing-btn:hover,
.pricing .pricing-btn:focus-visible,
.pricing .pricing-btn:active {
  transform: none !important;
}

.pricing .pricing-btn.primary:hover,
.pricing .pricing-btn.primary:focus-visible,
.pricing .pricing-btn.primary:active {
  box-shadow: var(--shadow-sm) !important;
  background: var(--btn-primary-bg);
}

.pricing .pricing-btn.secondary:hover,
.pricing .pricing-btn.secondary:focus-visible,
.pricing .pricing-btn.secondary:active {
  box-shadow: none !important;
  background: transparent;
}

[data-theme="dark"] .pricing .pricing-btn.secondary:hover,
[data-theme="dark"] .pricing .pricing-btn.secondary:focus-visible,
[data-theme="dark"] .pricing .pricing-btn.secondary:active {
  box-shadow: none !important;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.15);
}

.pricing-sales-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  z-index: 12000;
  padding: 0.9rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  background: var(--brand-yellow);
  color: var(--brand-black);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.pricing-sales-toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 480px) {
  .pricing-sales-toast {
    width: calc(100vw - 2rem);
    max-width: 460px;
    text-align: center;
    white-space: normal;
  }
}

.pricing-tier {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.billing-note {

  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: -0.5rem;
}

/* ===== CTA Section ===== */
.cta {
  padding: 7rem 2rem 4rem;
  text-align: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
}



.cta-content {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

.cta-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.cta-content p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.cta-content .download-btn-main {
  text-decoration: none;
  border-bottom: none;
}

.cta-content .download-btn-main::after {
  display: none;
}

/* ===== Footer ===== */
.footer {
  padding: 6rem 2rem 0;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 1.2rem;
}

.footer-brand img {
  height: 28px;
  width: auto;
  mix-blend-mode: multiply;
}

.footer-brand .yap {
  color: var(--text-primary);
}

.footer-brand .it {
  color: var(--accent);
  margin-left: -0.15em;
}

.footer-brand-wrap p {
  font-weight: 400;
  color: var(--text-tertiary);
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  justify-content: space-between;
  gap: 4rem;
}

.footer-col h4,
.footer-col .footer-heading {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  color: var(--text-tertiary);
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 2;
  padding: 0.25rem 0;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  max-width: 1100px;
  margin: 3rem auto 0;
  padding-top: 2rem;
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.footer-bottom p,
.copyright {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-container {
    grid-template-columns: auto 1fr auto;
  }

  .nav-center {
    display: none;
  }

  .hero {
    padding: calc(var(--nav-effective-height) + 0.75rem) 1rem 1.85rem;
    min-height: auto;
  }

  /* Hero Title - Mobile Desktop-Parity Downscale */
  .hero-title {
    font-size: clamp(1.75rem, 8.5vw, 3rem);
    line-height: 1.16;
    white-space: nowrap;
    margin-left: 0;
    padding: 0;
    text-align: center;
  }

  .hero-line {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.22em;
    white-space: nowrap;
    max-width: 100%;
  }

  .typing-wrapper {
    display: inline-flex;
    align-items: baseline;
    white-space: nowrap;
    padding: 0 0.18em;
    border-radius: 8px;
    line-height: inherit;
  }

  /* Hero Subtitle - Mobile Readable */
  .hero-subtitle-main {
    font-size: clamp(1rem, 4.6vw, 1.25rem);
    line-height: 1.45;
    padding: 0 0.35rem;
    margin-bottom: 1.75rem;
  }

  .hero-subtitle-main br {
    display: inline;
  }

  .hero-cta-cluster {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
  }

  .hero-proof-badge {
    position: static;
    transform: none;
    margin: 0;
    padding: 0;
  }

  .hero-proof-text {
    font-size: 0.8rem;
  }

  .hero-proof-laurel {
    width: 15px;
    height: 22px;
  }

  .hero-proof-stars {
    font-size: 0.76rem;
  }

  .feature-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feature-container.reverse {
    direction: ltr;
  }

  /* Mobile pricing: swipeable carousel (scroll-snap) instead of stacked cards. */
  .pricing-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    /* Give the first/last card room to snap cleanly (no half-cut edges). */
    scroll-padding: 0 1rem;
    /* Mobile cards should feel flush and compact. */
    padding: 0.35rem 1rem 0.85rem;
    /* Let the carousel reach the viewport edges while keeping 1rem gutters. */
    margin: 0 -1rem;
    scrollbar-width: none; /* Firefox */
  }

  .pricing-grid::-webkit-scrollbar {
    display: none;
  }

  .pricing {
    padding: 3.75rem 1rem;
  }

  .section-header {
    margin-bottom: 1.75rem;
  }

  .billing-toggle {
    margin-bottom: 1.25rem;
  }

  .toggle-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .pricing-mobile-toggle {
    display: none;
  }

  .pricing-card {
    flex: 0 0 100%;
    max-width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding: 1.5rem;
  }

  .pricing-features li {
    line-height: 1.45;
    margin-bottom: 0.35rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .app-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .trust-bar-container {
    flex-direction: column;
    gap: 0.5rem;
  }

  .comparison-container {
    flex-direction: column;
    gap: 2rem;
  }

  .comparison-divider {
    width: 100%;
    height: 2px;
  }
}

/* Hero Section - Extra Small Screens */
@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(1.6rem, 8.8vw, 2.4rem);
  }

  .typing-wrapper {
    padding: 0 0.16em;
    border-radius: 6px;
  }

  .download-btn-main {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }

  .hero-cta-container {
    padding: 0 1rem;
  }

  .hero-subtitle-main {
    margin-bottom: 1.25rem;
  }

  .hero-proof-badge {
    margin-top: 0;
    transform: none;
  }
}

/* ===== Trust Bar ===== */


/* [Duplicate Speed Section Removed] */

/* Footer Styling */

.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: rgba(0, 0, 0, 0.03);
  border-radius: var(--radius-full);
}



/* ===== Neutral Feature Visual (Uniform Design) ===== */
/* Removed duplicate .feature-visual.neutral block */
.feature-visual.neutral .feature-icon {
  color: var(--text-primary);
}

/* Pulsing ring remains */
.feature-visual.neutral .pulse-ring {
  background: transparent;
  border-color: var(--accent);
}

.pulse-ring.delay-1 {
  animation-delay: 1s;
}

.pulse-ring.delay-2 {
  animation-delay: 2s;
}





/* ===== Giant Footer Logo ===== */
/* ===== Giant Footer Logo ===== */
/* ===== Wispr-Inspired Feature Grid ===== */
.features-grid-section {
  padding: 0;
  /* Vertical padding handled by gap */
  background: transparent;
}

.features-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
  padding: 0 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.feature-card {
  background: var(--bg-primary);
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.04);
  /* Lighter, cleaner border */
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
  /* Base shadow */
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.01);
  /* Deep, soft shadow */
  border-color: var(--border);
}

.card-visual {
  height: 160px;
  background: var(--surface);
  border-radius: 16px;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* --- Card Visuals (CSS Illustrations) --- */

/* Dictionary */
.dict-entry {
  text-align: center;
}

.dict-word {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.dict-phonetic {
  display: block;
  font-family: var(--font-code);
  color: var(--text-tertiary);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.dict-definition {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}

/* Snippets */
.snippet-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-code);
  background: var(--bg-card);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
}

.snippet-trigger {
  color: var(--text-tertiary);
  font-weight: 600;
}

.snippet-arrow {
  color: var(--accent);
  font-weight: 700;
}

.snippet-expansion {
  color: var(--text-primary);
  font-weight: 600;
}

/* AI Edits */
.ai-transform {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.ai-bad {
  text-decoration: line-through;
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

.ai-wand-icon {
  font-size: 1.5rem;
  animation: float 2s ease-in-out infinite;
}

.ai-good {
  color: var(--text-primary);
  font-weight: 600;
  background: rgba(0, 0, 0, 0.03);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

/* ===== Fast Brain Section ===== */
.fast-brain-section {
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  z-index: 5;
  background: var(--bg-secondary);
}

.fast-brain-container {
  max-width: 700px;
  margin: 0 auto;
}

.fast-brain-headline {
  font-family: var(--font-headings);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3rem;
  letter-spacing: -0.03em;
}

.fast-brain-pain-points {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.pain-point {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-style: italic;
  color: var(--text-secondary);
  padding: 1rem 1.5rem;
  background: var(--bg-elevated);
  border-radius: 12px;
  border-left: 3px solid var(--brand-yellow);
}

.fast-brain-solution {
  font-family: var(--font-headings);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  color: var(--brand-yellow);
}

@media (max-width: 768px) {
  .fast-brain-section {
    padding: 4rem 1.5rem;
  }
  
  .pain-point {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
  }
}

/* ===== App Stream Section (Marquee) ===== */
.app-stream-section {
  padding: 6rem 2rem 5rem;
  position: relative;
  z-index: 10;
}

.app-stream-section::before {
  content: '';
  position: absolute;
  top: -15rem;
  bottom: -3rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background: var(--bg-section-teal);
  border-radius: var(--radius-section);
  z-index: -1;
}

/* Teal Content Section (Below App Stream) */
.teal-content-section {
  padding: 5rem 2rem;
  position: relative;
  z-index: 10;
  min-height: 200px;
}

.teal-content-section::before {
  content: '';
  position: absolute;
  top: -8rem;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background: transparent;
  border-radius: var(--radius-section);
  z-index: -1;
}

.teal-content-container {
  max-width: 1200px;
  margin: 0 auto;
}

.app-stream-header {
  text-align: center;
  margin-bottom: 3rem;
}

.app-stream-header h1,
.app-stream-header .app-stream-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-on-dark);
  margin-bottom: 0.5rem;
}

.app-stream-header h2,
.app-stream-header .app-stream-subtitle {
  font-family: var(--font-body);
  /* Changed to Body Font per user request */
  font-weight: 400;
  color: var(--text-on-dark-secondary);
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

.app-stream-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* Fade edges */
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.app-stream-track {
  display: flex;
  gap: 4rem;
  padding: 1rem 0;
  animation: appScroll 40s linear infinite;
  width: max-content;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.app-stream-track img {
  height: 56px;
  width: 56px;
  flex-shrink: 0;
  opacity: 0.95;
  filter: none;
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  border-radius: 12px;
  object-fit: contain;
  padding: 6px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  image-rendering: auto;
}

.app-stream-pill {
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
  opacity: 0.75;
  transition: opacity 0.3s ease, background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.app-stream-track img:hover,
.app-stream-track .app-stream-pill:hover {
  opacity: 1;
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.app-stream-track img:hover {
  filter: none;
}

.app-stream-track img.app-stream-icon-x {
  padding: 12px;
}

.app-stream-track img.app-stream-icon-medium {
  padding: 8px;
  opacity: 1;
}

.app-stream-track img.app-stream-icon-medium:hover {
  transform: scale(1.02) translateY(-1px);
}

.app-stream-track .app-stream-pill:hover {
  background: rgba(255, 255, 255, 0.14);
}

.app-stream-container:hover .app-stream-track {
  animation-play-state: paused;
}

@keyframes appScroll {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0%);
  }
}

/* ===== 100+ Languages Flag Cloud - Galaxy Animation ===== */
.flag-cloud {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Perspective for 3D feel */
  perspective: 1000px;
  will-change: transform;
}

@media (max-width: 360px) {
  .flag-cloud {
    transform: scale(0.85);
  }
}


.flag-chip {
  position: absolute;
  width: 42px;
  height: 32px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  user-select: none;
  /* Base scale */
  --img-scale: 1;
  transform: scale(var(--img-scale));
}

/* Layer 1: Outer Orbit (Slow Clockwise) */
.layer-1 {
  animation: orbit-1 40s linear infinite;
  z-index: 1;
  opacity: 0.9;
}

/* Layer 2: Middle Orbit (Med Counter-Clockwise) */
.layer-2 {
  animation: orbit-2 30s linear infinite;
  z-index: 2;
  width: 38px;
  height: 28px;
  font-size: 18px;
}

/* Layer 3: Inner Orbit (Fast Clockwise) */
.layer-3 {
  animation: orbit-3 22s linear infinite;
  z-index: 3;
  width: 34px;
  height: 26px;
  font-size: 16px;
}

/* Layer 4: Core Orbit (Very Fast Counter) */
.layer-4 {
  animation: orbit-4 16s linear infinite;
  z-index: 4;
  width: 30px;
  height: 24px;
  font-size: 14px;
}

/* Orbit Animations - Each layer has different radius and direction */
@keyframes orbit-1 {
  0% {
    transform: rotate(0deg) translateX(140px) rotate(0deg) scale(1);
  }

  100% {
    transform: rotate(360deg) translateX(140px) rotate(-360deg) scale(1);
  }
}

@keyframes orbit-2 {
  0% {
    transform: rotate(360deg) translateX(100px) rotate(-360deg) scale(0.9);
  }

  100% {
    transform: rotate(0deg) translateX(100px) rotate(0deg) scale(0.9);
  }
}

@keyframes orbit-3 {
  0% {
    transform: rotate(0deg) translateX(65px) rotate(0deg) scale(0.8);
  }

  100% {
    transform: rotate(360deg) translateX(65px) rotate(-360deg) scale(0.8);
  }
}

@keyframes orbit-4 {
  0% {
    transform: rotate(360deg) translateX(35px) rotate(-360deg) scale(0.7);
  }

  100% {
    transform: rotate(0deg) translateX(35px) rotate(0deg) scale(0.7);
  }
}

/* Stagger delays for uniform distribution */
.delay-1 {
  animation-delay: -0s;
}

.delay-2 {
  animation-delay: -4s;
}

.delay-3 {
  animation-delay: -8s;
}

.delay-4 {
  animation-delay: -12s;
}

.delay-5 {
  animation-delay: -16s;
}

.delay-6 {
  animation-delay: -20s;
}

.delay-7 {
  animation-delay: -24s;
}

.delay-8 {
  animation-delay: -28s;
}

/* ===== Giant Footer Logo ===== */
.footer-giant-logo {
  /* Simplified Centering */
  display: flex !important;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  margin-top: 2rem;
  margin-bottom: 0;
  width: 100%;
  /* Spans full width of footer */
  position: static;
  /* standard flow */
  transform: none;
  padding: 0;
  padding-bottom: 0px;
}

.footer-giant-logo .giant-logo-img {
  width: 100%;
  max-width: 100vw;
  height: auto;
  mix-blend-mode: multiply;
  margin: 0;
  flex-shrink: 0;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.5s ease;
}

.footer-giant-logo:hover .giant-logo-img {
  opacity: 1;
}

.footer-giant-logo .giant-logo-text {
  font-family: var(--font-headings);
  font-size: clamp(6rem, 22vw, 16rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--brand-yellow);
  -webkit-text-stroke: 4px var(--border-strong);
  paint-order: stroke fill;
  opacity: 1;
  transition: letter-spacing 0.5s ease;
  line-height: 0.85;
  padding-bottom: 0.1em;
  user-select: none;
}

.footer-giant-logo:hover .giant-logo-text {
  letter-spacing: -0.02em;
}

[data-theme="dark"] .giant-logo-text {
  color: var(--brand-yellow);
  -webkit-text-stroke-color: rgba(255, 255, 255, 0.2);
}

/* Base Typography Updates */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-headings);
  font-weight: 800;
  letter-spacing: -0.04em;
  /* Tight tracking for display fonts */
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-body);
}

.giant-text {
  font-family: var(--font-headings);
  /* Promoted to Display Font */
  font-weight: 800;
  font-size: 18vw;
  /* Matching image height */
  letter-spacing: -0.04em;
  line-height: 0.85;
  display: block;
  color: var(--text-primary);
  margin: 0;
}

/* Tighten spacing around the dot */
.text-german-gold {
  letter-spacing: -0.06em;
  margin-left: -0.02em;
}

.text-accent {
  color: var(--accent);
}

/* Ensure footer handles the overflow */
.footer {
  position: relative;
  overflow: hidden;
  padding-bottom: 0 !important;
}

/* -------------------------------------------------------------
   Smooth Scrolling (Lenis)
   ------------------------------------------------------------- */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* ===== Mobile Navigation ===== */

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  gap: 5px;
  transition: var(--transition);
}

.hamburger-btn:hover {
  background: var(--border);
}

.hamburger-line {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  padding: 100px 1.5rem 2rem;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.mobile-menu-overlay.active .mobile-menu {
  transform: translateY(0);
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.mobile-menu-links a {
  display: block;
  padding: 1rem 1.25rem;
  font-family: var(--font-headings);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.mobile-menu-links a:hover,
.mobile-menu-links a.active {
  background: var(--brand-yellow);
  color: var(--brand-black);
}

.mobile-menu-actions {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.mobile-menu-actions .download-btn-main {
  width: 100%;
  justify-content: center;
  text-align: center;
  padding: 1rem 1.5rem;
  font-size: 1rem;
}

body.mobile-menu-open {
  overflow: hidden;
}

[data-theme="dark"] .mobile-menu {
  background: var(--bg-primary);
  border-color: var(--border-dark);
}

[data-theme="dark"] .mobile-menu-overlay {
  background: rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .mobile-menu-links a:hover,
[data-theme="dark"] .mobile-menu-links a.active {
  background: var(--brand-yellow);
  color: var(--brand-black);
}

[data-theme="dark"] .mobile-menu-actions {
  border-color: var(--border-dark);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .nav-actions .download-btn-main {
    display: inline-flex;
    padding: 0.55rem 0.8rem;
    min-height: 40px;
    font-size: 0.78rem;
    line-height: 1;
    gap: 0.25rem;
    border-radius: 8px;
    white-space: nowrap;
  }

  .nav-actions .download-btn-main svg {
    display: none;
  }
  
  .hamburger-btn {
    display: flex;
  }
  
  .mobile-menu-overlay {
    display: block;
  }
  
  .nav-floating-container {
    padding: 0 0.5rem;
  }
  
  .theme-toggle {
    width: 44px;
    height: 44px;
  }
}

/* ===== Flag Cloud Animation (Premium Chips) ===== */
.flag-cloud {
  position: relative;
  width: 320px;
  /* Wider canvas */
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flag-chip {
  position: absolute;
  width: 44px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  /* Softer shadow */
  background-color: var(--bg-card);
  border: 1px solid var(--border);

  /* Flex Center */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  user-select: none;
  z-index: 2;
  /* Default z-index */
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
}

/* Layer 0: Extreme Outer (Largest, Slowest) */
.flag-chip.layer-0 {
  animation: orbit-0 50s linear infinite;
  z-index: 0;
  width: 48px;
  height: 38px;
  font-size: 24px;
}

/* Layer 1: Outer (Large, Slow) */
.flag-chip.layer-1 {
  animation: orbit-1 40s linear infinite;
  z-index: 1;
}

/* Layer 2: Middle (Medium, Reverse) */
.flag-chip.layer-2 {
  width: 38px;
  height: 30px;
  font-size: 18px;
  animation: orbit-2 30s linear infinite;
  z-index: 2;
}

/* Layer 3: Inner (Small, Fast) */
.flag-chip.layer-3 {
  width: 32px;
  height: 26px;
  font-size: 16px;
  animation: orbit-3 20s linear infinite;
  z-index: 3;
}

.center-text {
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  background: var(--bg-card);
  padding: 1rem 1.5rem;
  border-radius: 99px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  z-index: 10;
  position: relative;
  border: 4px solid rgba(255, 255, 255, 0.5);
}

/* --- Keyframes with Upright Correction --- */
/* Transform flow: Rotate(Orbit) -> Translate(Radius) -> Rotate(-Orbit) [Keeps flag upright] */

/* Transform flow: Rotate(Orbit) -> Translate(Radius) -> Rotate(-Orbit) [Keeps flag upright] */

@keyframes orbit-0 {
  0% {
    transform: rotate(0deg) translateX(190px) rotate(0deg);
  }

  100% {
    transform: rotate(360deg) translateX(190px) rotate(-360deg);
  }
}

@keyframes orbit-1 {
  0% {
    transform: rotate(360deg) translateX(140px) rotate(-360deg);
  }

  100% {
    transform: rotate(0deg) translateX(140px) rotate(0deg);
  }
}

@keyframes orbit-2 {
  0% {
    transform: rotate(0deg) translateX(90px) rotate(0deg);
  }

  100% {
    transform: rotate(360deg) translateX(90px) rotate(-360deg);
  }
}

@keyframes orbit-3 {
  0% {
    transform: rotate(360deg) translateX(50px) rotate(-360deg);
  }

  100% {
    transform: rotate(0deg) translateX(50px) rotate(0deg);
  }
}

/* --- Manual Stagger Delays --- */
/* Layer 1 (8 Items): 40s / 8 = 5s */
/* Layer 0 (12 Items): 50s / 12 ~= 4.16s */
.layer-0.delay-1 {
  animation-delay: -0s;
}

.layer-0.delay-2 {
  animation-delay: -4.1s;
}

.layer-0.delay-3 {
  animation-delay: -8.2s;
}

.layer-0.delay-4 {
  animation-delay: -12.3s;
}

.layer-0.delay-5 {
  animation-delay: -16.4s;
}

.layer-0.delay-6 {
  animation-delay: -20.5s;
}

.layer-0.delay-7 {
  animation-delay: -24.6s;
}

.layer-0.delay-8 {
  animation-delay: -28.7s;
}

.layer-0.delay-9 {
  animation-delay: -32.8s;
}

.layer-0.delay-10 {
  animation-delay: -36.9s;
}

.layer-0.delay-11 {
  animation-delay: -41s;
}

.layer-0.delay-12 {
  animation-delay: -45.1s;
}


/* Layer 1 (8 Items): 40s / 8 = 5s */
.layer-1.delay-1 {
  animation-delay: -0s;
}

.layer-1.delay-2 {
  animation-delay: -5s;
}

.layer-1.delay-3 {
  animation-delay: -10s;
}

.layer-1.delay-4 {
  animation-delay: -15s;
}

.layer-1.delay-5 {
  animation-delay: -20s;
}

.layer-1.delay-6 {
  animation-delay: -25s;
}

.layer-1.delay-7 {
  animation-delay: -30s;
}

.layer-1.delay-8 {
  animation-delay: -35s;
}

/* Layer 2 (6 Items): 30s / 6 = 5s */
.layer-2.delay-1 {
  animation-delay: -0s;
}

.layer-2.delay-2 {
  animation-delay: -5s;
}

.layer-2.delay-3 {
  animation-delay: -10s;
}

.layer-2.delay-4 {
  animation-delay: -15s;
}

.layer-2.delay-5 {
  animation-delay: -20s;
}

.layer-2.delay-6 {
  animation-delay: -25s;
}

/* Layer 3 (4 Items): 20s / 4 = 5s */
.layer-3.delay-1 {
  animation-delay: -0s;
}

.layer-3.delay-2 {
  animation-delay: -5s;
}

.layer-3.delay-3 {
  animation-delay: -10s;
}

.layer-3.delay-4 {
  animation-delay: -15s;
}

/* ===== OS Orbit Visual ===== */
.os-orbit-visual {
  width: 300px;
  height: 300px;
  position: relative;
  display: flex;
  align-items: center;
  align-items: center;
  justify-content: center;
  transform: scale(1);
}

.os-orbit-track {
  width: 220px;
  height: 220px;
  --orbit-radius: 110px;
  border-radius: 50%;
  position: relative;
}

.os-icon-item {
  width: 56px;
  height: 56px;
  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -28px;
  margin-left: -28px;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.os-icon-item img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

/* Animation Upright Logic for 5 items */
@keyframes os-orbit-anim {
  from {
    transform: rotate(var(--start-deg)) translateX(var(--orbit-radius, 110px)) rotate(calc(-1 * var(--start-deg)));
  }

  to {
    transform: rotate(calc(var(--start-deg) + 360deg)) translateX(var(--orbit-radius, 110px)) rotate(calc(-1 * (var(--start-deg) + 360deg)));
  }
}

.os-icon-item.item-1 {
  --start-deg: 0deg;
  animation: os-orbit-anim 25s linear infinite;
}

.os-icon-item.item-2 {
  --start-deg: 72deg;
  animation: os-orbit-anim 25s linear infinite;
}

.os-icon-item.item-3 {
  --start-deg: 144deg;
  animation: os-orbit-anim 25s linear infinite;
}

.os-icon-item.item-4 {
  --start-deg: 216deg;
  animation: os-orbit-anim 25s linear infinite;
}

.os-icon-item.item-5 {
  --start-deg: 288deg;
  animation: os-orbit-anim 25s linear infinite;
}

/* ===== Interactive Grid Background ===== */
/* Base Grid (Faint, always visible) */
.grid-layer-base {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2 !important;
  pointer-events: none;
  background-color: var(--bg-primary);
  background-size: 24px 24px;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.07) 1px, transparent 1px);
}

/* Highlight Grid (Stronger, revealed by mask) */
.grid-layer-highlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2 !important;
  pointer-events: none;
  background-size: 24px 24px;
  /* Darker/Clearer lines */
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.5) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 1px, transparent 1px);

  /* Mask logic */
  --mouse-x: 50%;
  --mouse-y: 50%;
  mask-image: radial-gradient(circle 150px at var(--mouse-x) var(--mouse-y),
      black 0%,
      transparent 100%);
  -webkit-mask-image: radial-gradient(circle 150px at var(--mouse-x) var(--mouse-y),
      black 0%,
      transparent 100%);
}

/* Blur Layer between Grid and Content */
.grid-blur-layer {
  display: none;
}

/* Grid Background - Dark Mode */
[data-theme="dark"] .grid-layer-base {
  background-color: var(--bg-primary);
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

[data-theme="dark"] .grid-layer-highlight {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
}

[data-theme="dark"] .grid-layer-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    600px circle at var(--mouse-x) var(--mouse-y),
    rgba(232, 201, 74, 0.08),
    transparent 40%
  );
  pointer-events: none;
}
/* ===== Application Bottom Stripe (German Flag Colors) - REMOVED ===== */
/* User requested colors on text instead */

.text-german-black {
  color: var(--brand-black);
}

.text-german-red {
  color: var(--brand-red);
}

.text-german-gold {
  color: var(--brand-yellow);
}

/* Ensure footer has relative positioning for absolute child */
.footer {
  position: relative;

  /* ... existing styles ... */
  .footer {
    padding: 2rem 0 0;
    margin-top: 0;
    font-family: var(--font-sans);
  }

  .footer-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
  }

  .footer-grid {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  .footer-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 150px;
  }

  .footer-col h4,
  .footer-col .footer-heading {
    font-size: 2.5rem;
    /* H2 size */
    font-weight: 400;
    color: var(--text-primary);
    /* Defined shade of black */
    margin-bottom: 1.5rem;
    font-family: var(--font-headings);
    letter-spacing: -0.02em;
  }

  .footer-col a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    /* Using the darkened #404040 */
    text-decoration: none;
    transition: color var(--transition);
  }

  .footer-col a:hover {
    color: var(--accent);
  }

  /* Footer Bottom Bar */
  .footer-bottom {
    margin-top: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .footer-bottom-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .copyright {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    /* #666666 */
    font-family: var(--font-sans);
  }

  .footer-badge {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.03);
    /* Subtle backdrop for badge */
    padding: 6px 14px;
    border-radius: 6px;
    font-family: var(--font-sans);
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  @media (max-width: 768px) {
    .footer-grid {
      flex-wrap: wrap;
      gap: 3rem;
    }

    .footer-bottom-container {
      flex-direction: column;
      gap: 1.5rem;
      text-align: center;
    }
  }

  /* Footer Branding */
  .brand-col {
    flex: 1.5;
    /* Give branding slightly more space or distinctive spacing */
    justify-content: flex-start;
  }

  .footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    margin-bottom: 1rem;
  }

  .footer-logo img {
    height: 32px;
    width: auto;
  }

  .footer-logo .logo-text {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.03em;
  }

  .text-accent {
    color: var(--accent);
  }

  @media (max-width: 768px) {
    .brand-col {
      width: 100%;
      margin-bottom: 1rem;
    }
  }

  /* Giant Inline Logo (Replaces 'Y') */
  .giant-inline-logo {
    /* [CALIBRATION CONTROLS] Change these values to move/resize the logo */
    height: 2em;
    /* SIZE: Bigger/Smaller (e.g., 0.9em, 0.8em) */
    margin-right: -0.85em;
    /* SPACING: Distance to 'a' (negative is closer) */
    transform: translateY(-0.290em);
    /* VERTICAL: Move Up (negative) or Down (positive) */
    /* ------------------------------------------------------------------- */

    width: auto;
    margin-bottom: 0;
    display: inline-block;
  }

  /* Ensure container aligns items by center */
  .footer-giant-logo .giant-text {
    display: flex;
    align-items: center;
    /* <--- This forces true vertical centering */
    justify-content: center;
  }
}

/* ===== Footer - Dark Mode ===== */
[data-theme="dark"] .footer {
  background: transparent;
  border-top-color: var(--border);
}

[data-theme="dark"] .footer h4,
[data-theme="dark"] .footer-heading {
  color: var(--text-tertiary);
}

[data-theme="dark"] .footer a {
  color: var(--text-secondary);
}

[data-theme="dark"] .footer a:hover {
  color: var(--brand-yellow);
}

[data-theme="dark"] .footer-bottom {
  border-top-color: var(--border);
}

[data-theme="dark"] .copyright {
  color: var(--text-tertiary);
}

[data-theme="dark"] .footer-badge {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

[data-theme="dark"] .footer-giant-logo {
  opacity: 1;
}

[data-theme="dark"] .giant-logo-img {
  filter: brightness(0) invert(1);
  mix-blend-mode: normal;
}

/* ===== Feature Sections - Dark Mode ===== */
/* Comprehensive dark mode overrides for all 6 feature sections */

/* Base Feature Section */
[data-theme="dark"] .feature-section {
  background: transparent;
}

/* Feature Container Text */
[data-theme="dark"] .feature-container h2,
[data-theme="dark"] .feature-text h2 {
  color: var(--text-primary);
}

[data-theme="dark"] .feature-container p,
[data-theme="dark"] .feature-text p {
  color: var(--text-secondary);
}

/* Feature Links */
[data-theme="dark"] .feature-link {
  color: var(--brand-yellow) !important;
}

[data-theme="dark"] .feature-link:hover {
  color: var(--brand-yellow) !important;
  opacity: 0.85;
}

/* Feature CTA Buttons */
[data-theme="dark"] .feature-cta {
  background: var(--bg-elevated);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary) !important;
}

[data-theme="dark"] .feature-cta:hover {
  background: var(--bg-dark);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Feature Visual Wrapper */
[data-theme="dark"] .feature-visual-wrapper {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.08);
}

/* Feature Illustrations - Prevent washed out appearance */
[data-theme="dark"] .feature-illustration-full {
  filter: brightness(0.92) contrast(1.05);
}

/* Specific illustration adjustments */
[data-theme="dark"] .smart-formatting-img {
  filter: brightness(0.95) contrast(1.02);
}

[data-theme="dark"] .privacy-img {
  filter: brightness(0.93) contrast(1.04);
}

[data-theme="dark"] .dictionary-img {
  filter: brightness(0.94) contrast(1.03);
}

[data-theme="dark"] .shortcuts-img {
  filter: brightness(0.94) contrast(1.03);
}

/* ===== Assets - Dark Mode Handling ===== */
/* Comprehensive image/asset filters for dark mode visibility */

/* Logo inversion for dark backgrounds */
[data-theme="dark"] .footer .giant-logo-img {
  filter: brightness(0) invert(1);
}

/* Feature illustrations - slight adjustment for dark context */
[data-theme="dark"] .feature-illustration-full {
  filter: brightness(0.92) contrast(1.08);
  border-radius: var(--radius-lg);
}



/* OS icons - ensure visibility on dark */
[data-theme="dark"] .os-icon-item img {
  filter: brightness(0.95);
}

/* White background illustrations - add container styling */
[data-theme="dark"] .feature-visual-wrapper {
  background: var(--bg-elevated);
  border-radius: var(--radius-xl);
  padding: 1rem;
}

/* Typing/Yapping illustrations if visible in speed section */
[data-theme="dark"] .speed-illustration img {
  filter: brightness(0.9) contrast(1.05);
  border-radius: var(--radius-lg);
}



/* Footer brand image adjustment */
[data-theme="dark"] .footer-brand img {
  filter: brightness(0) invert(1);
  mix-blend-mode: normal;
}

/* ===== OS Orbit Visual - Dark Mode ===== */
[data-theme="dark"] .os-orbit-visual {
  background: transparent;
}

[data-theme="dark"] .os-orbit-track {
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .os-icon-item {
  background: var(--bg-elevated);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 8px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .os-icon-item img {
  filter: brightness(1.05);
}

/* ===== Flag Cloud (100+ Languages) - Dark Mode ===== */
[data-theme="dark"] .flag-cloud {
  background: transparent;
}

[data-theme="dark"] .flag-chip {
  background-color: var(--bg-elevated);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Center Text Badge (100+) */
[data-theme="dark"] .center-text {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 10px 30px rgba(0, 0, 0, 0.4);
}

/* ===== Feature Icon Container - Dark Mode ===== */
[data-theme="dark"] .feature-icon-container {
  background: var(--bg-elevated);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 8px 24px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .feature-icon {
  color: var(--text-primary);
}

/* Neutral Feature Visual */
[data-theme="dark"] .feature-visual.neutral {
  background: transparent !important;
}

[data-theme="dark"] .feature-visual.neutral .pulse-ring {
  border-color: rgba(232, 201, 74, 0.4);
}

/* ===== Feature Cards (Grid Section) - Dark Mode ===== */
[data-theme="dark"] .feature-card {
  background: var(--bg-secondary);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 4px 16px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .feature-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 20px 40px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .feature-card h3 {
  color: var(--text-primary);
}

[data-theme="dark"] .feature-card p {
  color: var(--text-secondary);
}

[data-theme="dark"] .card-visual {
  background: var(--bg-elevated);
  border-color: rgba(255, 255, 255, 0.06);
}

/* Card Visual Content */
[data-theme="dark"] .dict-word {
  color: var(--text-primary);
}

[data-theme="dark"] .dict-phonetic {
  color: var(--text-tertiary);
}

[data-theme="dark"] .dict-definition {
  color: var(--brand-yellow);
}

[data-theme="dark"] .snippet-box {
  background: var(--bg-primary);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .snippet-trigger {
  color: var(--text-tertiary);
}

[data-theme="dark"] .snippet-arrow {
  color: var(--brand-yellow);
}

[data-theme="dark"] .snippet-expansion {
  color: var(--text-primary);
}

[data-theme="dark"] .ai-bad {
  color: var(--text-tertiary);
}

[data-theme="dark"] .ai-good {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

/* ===== AI Transform Visual - Dark Mode ===== */
[data-theme="dark"] .ai-transform-visual .ai-before {
  color: var(--text-tertiary);
}

[data-theme="dark"] .ai-transform-visual .ai-after {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

/* ===== Smooth Rolling Odometer / Slot Machine Number Animation ===== */

/* Odometer wrapper - eliminates inline-block whitespace */
#hours-value,
#rate-value,
#work-weeks,
#time-year,
#money-year,
#daily-loss,
#monthly-loss,
#life-equivalent,
#time-week,
#money-week,
#time-month,
#money-month,
.hero-anchor-value,
.urgency-value {
  display: inline-flex;
  align-items: center;
  gap: 0;
  letter-spacing: -0.02em;
}

/* Container for each animated digit */
.odometer-digit {
  display: inline-block;
  position: relative;
  vertical-align: top;
  overflow: hidden;
  height: 1.25em;
  line-height: 1.25em;
  width: 1ch;
  text-align: left;
  margin: 0;
  padding: 0;
}

/* The rolling strip containing all digits 0-9 */
.odometer-strip {
  display: inline-block;
  position: relative;
  transition: transform 0.6s cubic-bezier(0.34, 1.3, 0.64, 1);
  will-change: transform;
  padding-bottom: 0.1em;
}

/* Each individual number in the strip */
.odometer-number {
  display: block;
  height: 1.25em;
  line-height: 1.25em;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-code);
  font-weight: 700;
  letter-spacing: 0;
}

.odometer-static {
  display: inline-block;
  vertical-align: top;
  font-family: var(--font-code);
  font-weight: 700;
  letter-spacing: 0;
  margin: 0;
  padding: 0;
  height: 1.25em;
  line-height: 1.25em;
}

.feel-difference-section {
  --feel-section-bg: var(--brand-black);
  padding: 5rem 2rem;
  position: relative;
  z-index: 10;
}

.feel-difference-section::before {
  content: '';
  position: absolute;
  top: 0rem;
  bottom: -15rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background: var(--feel-section-bg);
  border-radius: var(--radius-section) var(--radius-section) 0 0;
  z-index: -1;
}

.feel-difference-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feel-difference-header {
  text-align: center;
  margin-bottom: 3rem;
}

.feel-difference-header h2 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
  margin-bottom: 0.75rem;
}

.feel-difference-header p {
  color: var(--text-on-dark-secondary);
  font-size: 1.1rem;
}

.refresh-sentence-btn {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.refresh-sentence-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
  transform: rotate(90deg);
}

.refresh-sentence-btn svg {
  width: 18px;
  height: 18px;
}

.typing-test-area,
.yapping-test-area,
.results-area {
  position: relative;
  background: var(--bg-dark-secondary);
  border-radius: 20px;
  padding: 2.5rem;
  height: 320px;
  min-height: unset;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.typing-test-area.hidden,
.yapping-test-area.hidden,
.results-area.hidden {
  display: none;
}

.test-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.status-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.test-timer {
  font-family: var(--font-code);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--btn-primary-bg);
}

.typing-display,
.yapping-display {
  font-family: var(--font-code);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  line-height: 1.8;
  text-align: center;
  max-width: 100%;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.02em;
  user-select: none;
  min-height: 100px;
}

.typing-display .char {
  transition: color 0.1s ease;
}

.typing-display .char.correct {
  color: var(--brand-white);
}

.typing-display .char.incorrect {
  color: var(--brand-red);
}

.typing-display .char.current {
  border-left: 2px solid var(--btn-primary-bg);
  animation: cursorBlink 1s step-end infinite;
  margin-left: -1px;
  padding-left: 1px;
}

@keyframes cursorBlink {

  0%,
  100% {
    border-color: var(--btn-primary-bg);
  }

  50% {
    border-color: transparent;
  }
}

.typing-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.typing-test-area:focus-within .typing-hint {
  opacity: 0;
}

.typing-hint,
.yapping-hint {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  margin-top: auto;
  transition: opacity 0.3s ease;
}

.yap-button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: var(--btn-primary-bg);
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 1rem;
}

.yap-button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(0, 13, 231, 0.3);
}

.yap-button:active,
.yap-button.active {
  transform: scale(0.98);
  background: var(--btn-primary-hover-bg);
  color: var(--btn-primary-hover-text);
}

.yap-icon {
  font-size: 1.3rem;
}

.yapping-display .word {
  display: inline;
  transition: color 0.15s ease;
}

.yapping-display .word.spoken {
  color: var(--btn-primary-bg);
}

.results-area {
  padding: 3rem;
}



.results-hero {
  text-align: center;
  margin-bottom: 1.5rem;
}

.verdict-multiplier {
  font-family: var(--font-headings);
  font-size: 5.5rem;
  font-weight: 800;
  color: var(--color-positive);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.verdict-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
  font-weight: 500;
}

.emotional-hook {
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1rem;
  margin-bottom: 2rem;
  font-style: italic;
}

.try-again-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.5);
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.try-again-btn:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.8);
}

/* =====================================================
   YAP PILL INDICATOR - Voice Recording Indicator
   Matches .divider-icon aesthetic
   ===================================================== */

.yap-pill-indicator {
  background: rgba(30, 45, 38, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid rgba(252, 205, 3, 0.4);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.2),
    0 8px 32px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 1rem;
  height: 48px;
}

/* Recording state - subtle border feedback only */
.yap-pill-indicator.recording {
  border-color: rgba(252, 205, 3, 0.6);
}

.yap-pill-indicator.hidden {
  display: none;
}

/* Wave bars inside pill indicator */
.yap-pill-indicator .wave-bar {
  width: 4px;
  background: var(--btn-primary-bg);
  border-radius: 2px;
  height: 4px;
  transition: height 0.05s ease-out;
  opacity: 0.7;
}

.yap-pill-indicator.recording .wave-bar,
.yap-pill-indicator.speaking .wave-bar {
  opacity: 1;
}

/* =====================================================
   CONTROL KEY PROMPT - Keyboard Key Styling
   ===================================================== */

.control-key-prompt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  margin-top: auto;
  padding-top: 1rem;
}

.control-key-prompt span {
  color: rgba(255, 255, 255, 0.4);
}

.key-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom-width: 3px;
  border-radius: 6px;
  font-family: var(--font-code);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.key-badge:hover,
.key-badge.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(252, 205, 3, 0.4);
  color: rgba(255, 255, 255, 0.9);
  transform: translateY(1px);
  border-bottom-width: 2px;
}

/* =====================================================
   CONTAINER NORMALIZATION - Identical Dimensions
   ===================================================== */

.typing-test-area,
.yapping-test-area,
.results-area {
  width: 100%;
  max-width: 700px;
  min-height: 380px;
  height: auto;
  overflow: hidden;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}

/* Ensure content fills space properly */
.typing-test-area,
.yapping-test-area {
  justify-content: flex-start;
}

.results-area {
  justify-content: center;
}

/* =====================================================
   RESULTS PHASE ENHANCEMENT - Dramatic Reveal
   ===================================================== */

/* Enhanced verdict multiplier */
.verdict-multiplier {
  font-size: clamp(3rem, 8vw, 5rem);
  color: var(--brand-yellow);
  animation: multiplierReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transform-origin: center;
}

@keyframes multiplierReveal {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes multiplierShine {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.results-hero {
  opacity: 0;
  animation: heroReveal 0.6s ease-out 0.1s forwards;
}

@keyframes heroReveal {
  0% {
    opacity: 0;
    transform: translateY(15px) scale(0.95);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.emotional-hook {
  opacity: 0;
  animation: hookReveal 0.5s ease-out 0.4s forwards;
}

@keyframes hookReveal {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.results-area .download-btn-main {
  opacity: 1;
  animation: none;
}

@keyframes ctaBtnReveal {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Try again button enhancement */
.try-again-btn {
  opacity: 0;
  animation: tryAgainReveal 0.4s ease-out 0.9s forwards;
}

@keyframes tryAgainReveal {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* =====================================================
   RESET ANIMATIONS - For retriggering on phase change
   ===================================================== */

.results-area.hidden .results-hero,
.results-area.hidden .emotional-hook,
.results-area.hidden .download-btn-main,
.results-area.hidden .try-again-btn,
.results-area.hidden .verdict-multiplier {
  animation: none;
  opacity: 0;
}

/* =====================================================
   RESPONSIVE ADJUSTMENTS
   ===================================================== */

@media (max-width: 768px) {
  .feel-difference-section {
    padding: 4.25rem 1rem 3.25rem;
  }

  .feel-difference-section::before {
    bottom: -5rem;
    border-radius: 72px 72px 0 0;
  }

  .feel-difference-container {
    max-width: 100%;
  }

  .yap-pill-indicator {
    padding: 12px 20px;
    gap: 3px;
  }

  .yap-pill-indicator .wave-bar {
    width: 3px;
  }

  .control-key-prompt {
    flex-wrap: wrap;
    text-align: center;
  }

  .key-badge {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }

  .typing-test-area,
  .yapping-test-area,
  .results-area {
    max-width: 100%;
    min-height: auto;
    padding: 1.5rem 1rem;
  }

  .typing-display,
  .yapping-display {
    font-size: clamp(1rem, 4vw, 1.4rem);
    line-height: 1.6;
  }

  .refresh-sentence-btn {
    bottom: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
  }

  .verdict-multiplier {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }
}

/* Small phones: keep the black curve's rounded corners off-screen so the seam reads as "flush" under the speed illustrations. */
@media (max-width: 480px) {
  .feel-difference-section::before {
    width: calc(100vw + 160px);
  }
}

@media (max-width: 600px) {

  .typing-test-area,
  .yapping-test-area,
  .results-area {
    min-height: 300px;
    padding: 1.5rem;
  }

  .emotional-hook {
    font-size: 0.9rem;
  }
}

/* =====================================================
   TIME COMPARISON - Results Phase Details
   ===================================================== */

.time-comparison {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 1.5rem 0;
}

.time-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.time-stat .time-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
}

.time-stat .time-value {
  font-family: var(--font-code);
  font-size: 1.5rem;
  font-weight: 700;
}

/* YAP time in GREEN (positive - faster) */
.time-stat.time-yap .time-value {
  color: var(--color-positive);
}

/* Type time in RED */
.time-stat.time-type .time-value {
  color: var(--brand-red);
}

/* =====================================================
   RESULTS ACTIONS - Side by Side Buttons
   ===================================================== */

.results-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.results-actions .download-btn-main {
  margin: 0;
}

.results-actions .try-again-btn {
  margin: 0;
}

/* Reset animation delays for results-actions buttons */
.results-actions .download-btn-main,
.results-actions .try-again-btn {
  opacity: 0;
  animation: ctaBtnReveal 0.5s ease-out 0.5s forwards;
}

.results-actions .try-again-btn {
  animation-delay: 0.6s;
}

/* =====================================================
   RESPONSIVE - Mobile adjustments for results
   ===================================================== */

@media (max-width: 480px) {
  .feel-difference-section {
    padding: 4rem 1rem 3rem;
  }

  .feel-difference-section::before {
    /* Pull the black background up slightly so the speed illustrations visually "sit" on it. */
    top: -12px;
    bottom: -4.5rem;
    border-radius: 56px 56px 0 0;
  }

  .feel-difference-header h2 {
    font-size: 1.5rem;
  }

  .feel-difference-header p {
    font-size: 0.9rem;
  }

  .verdict-multiplier {
    font-size: 2.5rem;
  }

  .time-comparison {
    flex-direction: column;
    gap: 1rem;
  }

  .time-stat {
    width: 100%;
  }

  .time-stat .time-value {
    font-size: 1.25rem;
  }

  .results-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .results-actions .download-btn-main,
  .results-actions .try-again-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* =====================================================
   DARK MODE - Already Dark Sections Consistency
   These sections are inherently dark, ensure they blend 
   seamlessly with the overall dark theme
   ===================================================== */

/* =====================================================
   MOBILE POLISH - Global Responsive Refinements
   Consistent spacing, touch targets, and overflow fixes
   ===================================================== */

@media (max-width: 768px) {
  /* Prevent horizontal overflow globally */
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  main {
    overflow-x: hidden;
  }
  
  /* ===== App Stream Section - Mobile ===== */
  .app-stream-section {
    padding: 3rem 1rem;
  }

  /* Keep desktop-style curved background, just tighter for mobile */
  .app-stream-section::before {
    top: -5.25rem;
    bottom: -1rem;
    border-radius: 72px;
  }
  
  .app-stream-header h1,
  .app-stream-header .app-stream-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    padding: 0 0.5rem;
  }
  
  .app-stream-header h2,
  .app-stream-header .app-stream-subtitle {
    font-size: 0.95rem;
    padding: 0 0.5rem;
  }
  
  .app-stream-track {
    gap: 2.5rem;
  }
  
  .app-stream-track img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    padding: 5px;
  }

  .app-stream-track img.app-stream-icon-x {
    padding: 10px;
  }

  .app-stream-track img.app-stream-icon-medium {
    padding: 7px;
  }

  .app-stream-pill {
    height: 48px;
    padding: 0 0.85rem;
    border-radius: 10px;
    font-size: 0.8rem;
  }
  
  /* ===== Features Section - Mobile ===== */
  .feature-section {
    padding: 2.75rem 1rem;
  }
  
  .feature-container {
    flex-direction: column;
    gap: 2rem;
    padding: 0 1rem;
  }
  
  .feature-container > * {
    width: 100%;
    flex: none;
  }
  
  .feature-text h2 {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
  }
  
  .feature-text p {
    font-size: 0.95rem;
  }
  
  .feature-visual,
  .feature-visual-wrapper {
    min-height: 260px;
  }

  .feature-visual-wrapper {
    overflow: hidden;
  }
  
  .feature-illustration-full {
    max-width: min(94vw, 520px);
    height: auto;
    margin-inline: auto;
    --img-scale: 1.12;
    transform: scale(var(--img-scale));
    transform-origin: center;
  }

	  /* Some illustrations include lots of transparent padding; scale them up for a consistent footprint. */
	  .smart-formatting-img { --img-scale: 1.25; }
	  .dictionary-img { --img-scale: 1.35; }
	  /* Hotkeys illustration should never be clipped on phones. */
	  .shortcuts-img { --img-scale: 1.0; }
	  .privacy-img { --img-scale: 1.12; }

  /* Keep orbit/flag visuals contained without changing the design */
  .os-orbit-visual {
    width: min(72vw, 260px);
    height: min(72vw, 260px);
    margin-inline: auto;
  }

  .os-orbit-track {
    width: min(60vw, 200px);
    height: min(60vw, 200px);
    --orbit-radius: 92px;
  }

  .os-icon-item {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    margin-top: -24px;
    margin-left: -24px;
  }

  .os-icon-item img {
    width: 32px;
    height: 32px;
  }

	  .flag-cloud {
	    width: min(82vw, 300px);
	    height: min(82vw, 300px);
	    margin-inline: auto;
	  }

	  /* Tighten the "flag galaxy" so it stays compact and never overlaps the CTA/button above it. */
	  .flag-chip {
	    width: 38px;
	    height: 30px;
	    font-size: 18px;
	    border-radius: 8px;
	  }

	  .flag-chip.layer-0 {
	    width: 42px;
	    height: 34px;
	    font-size: 20px;
	  }

	  .flag-chip.layer-2 {
	    width: 34px;
	    height: 26px;
	    font-size: 16px;
	  }

	  .flag-chip.layer-3 {
	    width: 30px;
	    height: 24px;
	    font-size: 15px;
	  }

	  /* Smaller orbit radii on mobile to prevent left/right overflow. */
	  @keyframes orbit-0 {
	    0% { transform: rotate(0deg) translateX(120px) rotate(0deg); }
	    100% { transform: rotate(360deg) translateX(120px) rotate(-360deg); }
	  }

	  @keyframes orbit-1 {
	    0% { transform: rotate(360deg) translateX(92px) rotate(-360deg); }
	    100% { transform: rotate(0deg) translateX(92px) rotate(0deg); }
	  }

	  @keyframes orbit-2 {
	    0% { transform: rotate(0deg) translateX(66px) rotate(0deg); }
	    100% { transform: rotate(360deg) translateX(66px) rotate(-360deg); }
	  }

	  @keyframes orbit-3 {
	    0% { transform: rotate(360deg) translateX(42px) rotate(-360deg); }
	    100% { transform: rotate(0deg) translateX(42px) rotate(0deg); }
	  }
  
  /* ===== Features Grid Section - Mobile ===== */
  .features-grid-section {
    padding: 2rem 0;
  }
  
  .features-header {
    margin-bottom: 2rem;
    padding: 0 1rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem;
  }
  
  .feature-card {
    padding: 1.5rem;
    border-radius: 16px;
  }
  
  .card-visual {
    height: 140px;
    border-radius: 12px;
  }
  
  /* ===== CTA Section - Mobile ===== */
  .cta {
    padding: 3rem 1rem;
  }
  
  .cta-content {
    padding: 0 0.5rem;
  }
  
  .cta h2,
  .cta-content h2 {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }
  
  .cta p,
  .cta-content p {
    font-size: 0.95rem;
  }
  
  /* ===== Footer - Mobile ===== */
  .footer {
    padding: 2rem 1rem 0;
  }
  
  .footer .footer-container {
    padding: 0;
  }
  
  .footer .footer-grid {
    flex-direction: column;
    gap: 2rem;
  }
  
  .footer .footer-col {
    min-width: unset;
    width: 100%;
  }
  
  .footer .footer-col h4,
  .footer .footer-col .footer-heading {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    line-height: 1.2;
  }
  
  .footer .footer-links {
    flex-direction: column;
    gap: 2rem;
  }
  
  .footer .footer-bottom {
    margin-top: 1.5rem;
    padding-top: 1rem;
  }
  
  .footer .footer-legal {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .footer .footer-giant-logo {
    margin-top: 1.5rem;
  }
  
  .footer .footer-giant-logo .giant-logo-text {
    font-size: clamp(4rem, 15vw, 8rem);
    -webkit-text-stroke-width: 3px;
  }
  
  .footer .footer-giant-logo .giant-logo-img {
    max-width: 100%;
  }
  
  /* ===== Pricing Section - Mobile ===== */
  .pricing {
    padding: 3rem 1rem;
  }
  
  .section-header {
    margin-bottom: 2rem;
    padding: 0 0.5rem;
  }
  
  .section-header h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
  
  .billing-toggle {
    margin-bottom: 2rem;
  }
  
  .toggle-btn {
    padding: 10px 18px;
    font-size: 13px;
  }
  
  .pricing-grid {
    gap: 1rem;
  }
  
  .pricing-card {
    padding: 1.5rem;
    border-radius: 16px;
  }
  
  .pricing-header h3 {
    font-size: 1.1rem;
  }
  
  .price .amount {
    font-size: 2rem;
  }
  
  /* ===== Calculator Section - Mobile ===== */
  .calculator-section {
    padding: 2rem 1rem;
  }

  .calculator-section::before {
    bottom: -34px;
    border-radius: 52px;
  }
  
  .calculator-header-compact h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
  
  /* ===== Teal Content Section - Mobile ===== */
  .teal-content-section {
    padding: 3rem 1rem;
  }

  .teal-content-section::before {
    top: -4rem;
    border-radius: 72px;
  }
  
  /* ===== Touch Target Compliance - 44px minimum (Vercel guidelines) ===== */
  button,
  .nav-link,
  .nav-btn-ghost,
  .nav-btn-primary,
  .download-btn-main,
  .pricing-btn,
  .toggle-btn,
  .hamburger-btn,
  .feature-cta,
  .try-again-btn,
  .yap-button,
  .refresh-sentence-btn,
  [role="button"],
  a.download-btn-main {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Expand hit area for small icons while keeping visual size */
  .theme-toggle,
  .hamburger-btn {
    position: relative;
  }
  
  .theme-toggle::before,
  .hamburger-btn::before,
  .refresh-sentence-btn::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    /* Expands clickable area without changing visual size */
  }
  
  .nav-btn-primary {
    padding: 12px 20px;
  }
  
  .nav-links a,
  .nav-btn-ghost {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  
  /* Links in footer should be easily tappable */
  .footer-col a {
    padding: 0.5rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  /* ===== Navigation - Mobile Adjustments ===== */
  .nav-floating {
    padding: 0 0.75rem;
  }
  
  .nav-floating-container {
    padding: 0 0.5rem;
    height: 64px;
    border-radius: 12px;
  }
  
  .nav-logo-brand-img {
    height: 52px !important;
    margin-left: 4px;
  }
  
  .nav-actions {
    gap: 0.25rem;
  }
  
  .theme-toggle {
    width: 44px;
    height: 44px;
  }
  
  /* ===== Apps Section - Mobile ===== */
  .apps-section {
    padding: 3rem 1rem;
  }
  
  .apps-section h2 {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
  }
  
  .app-logos-container {
    padding: 0;
  }
  
  .app-logos {
    gap: 2.5rem;
  }
  
  .app-logo svg {
    height: 48px;
    width: 48px;
  }
}

/* ===== Extra Small Screens (480px and below) ===== */
@media (max-width: 480px) {
  /* App Stream - Extra Small */
  .app-stream-section::before {
    top: -4.5rem;
    bottom: -0.75rem;
    border-radius: 56px;
  }

  .teal-content-section::before {
    top: -3rem;
    border-radius: 56px;
  }

  .calculator-section::before {
    bottom: -28px;
    border-radius: 48px;
  }

  .app-stream-track img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    padding: 4px;
  }

  .app-stream-track img.app-stream-icon-x {
    padding: 8px;
  }

  .app-stream-track img.app-stream-icon-medium {
    padding: 6px;
  }

  .app-stream-pill {
    height: 40px;
    padding: 0 0.72rem;
    border-radius: 8px;
    font-size: 0.73rem;
  }
  
  .app-stream-track {
    gap: 2rem;
  }
  
  /* Footer - Extra Small */
  .footer-giant-logo .giant-logo-text {
    font-size: clamp(3rem, 12vw, 5rem);
    -webkit-text-stroke-width: 2px;
  }
  
  /* Feature Section - Extra Small */
  .feature-section {
    padding: 2.5rem 0.75rem;
  }
  
  .feature-visual,
  .feature-visual-wrapper {
    min-height: 220px;
  }
  
  .feature-card {
    padding: 1.25rem;
  }
  
  .card-visual {
    height: 120px;
  }
  
  /* Pricing - Extra Small */
  .pricing {
    padding: 2.5rem 0.75rem;
  }
  
  .pricing-card {
    padding: 1.25rem;
  }
  
  .price .amount {
    font-size: 1.75rem;
  }
  
  /* CTA - Extra Small */
  .cta {
    padding: 2.5rem 0.75rem;
  }
  
  /* Calculator - Extra Small */
  .calculator-section {
    padding: 1.5rem 0.75rem;
  }
  
  .hero-anchor-card {
    width: 280px;
    height: 220px;
    padding: 1rem;
  }
  
  .hero-anchor-value {
    font-size: clamp(2.5rem, 7vw, 3.5rem);
  }
  
  /* Navigation - Extra Small */
  .nav-floating-container {
    height: 60px;
  }
  
  .nav-logo-brand-img {
    height: 44px !important;
  }
  
  .nav-btn-primary {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
  
  /* Buttons - Extra Small */
  .download-btn-main {
    padding: 14px 24px;
    font-size: 0.9rem;
  }
}

/* ===== Very Small Screens (360px and below) ===== */
@media (max-width: 360px) {
  /* Further reduce spacing */
  .feature-section,
  .cta,
  .pricing,
  .apps-section {
    padding: 2rem 0.5rem;
  }
  
  .app-stream-section {
    padding: 2rem 0.5rem;
  }
  
  .footer {
    padding: 1.5rem 0.5rem 0;
  }
  
  .footer-giant-logo .giant-logo-text {
    font-size: clamp(2.5rem, 11vw, 4rem);
  }
  
  /* Ensure text doesn't overflow */
  .hero-title {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
  }
  
  .section-header h2 {
    font-size: clamp(1.25rem, 5vw, 1.5rem);
  }
  
  /* Smaller touch targets still need to be accessible */
  .nav-btn-primary {
    padding: 10px 14px;
    font-size: 0.8rem;
  }
}

/* ===== Prevent iOS zoom on input focus - Vercel guidelines ===== */
/* iOS Safari zooms in when font-size is below 16px on form elements */
@media (max-width: 768px) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Honor prefers-reduced-motion - Vercel guidelines */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== Privacy Banner (No Cookies Flex) ===== */
@media (max-width: 768px) {
  body.privacy-banner-visible main {
    padding-bottom: var(--privacy-banner-offset);
  }
}

.privacy-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  padding: 0 1rem calc(1rem + env(safe-area-inset-bottom));
  pointer-events: none;
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
}

.privacy-banner.visible {
  visibility: visible;
  animation: privacySlideUp 0.4s ease-out forwards;
}

.privacy-banner.dismissed {
  animation: privacySlideDown 0.3s ease-in forwards;
}

.privacy-banner-inner {
  max-width: 520px;
  margin: 0 auto;
  background: var(--brand-black);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  pointer-events: auto;
  box-shadow: 
    0 -4px 20px rgba(0, 0, 0, 0.15),
    0 -2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .privacy-banner-inner {
  background: var(--bg-card);
  border-color: var(--border-strong);
  box-shadow: 
    0 -4px 24px rgba(0, 0, 0, 0.4),
    0 -2px 8px rgba(0, 0, 0, 0.3);
}

.privacy-banner-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.privacy-banner-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--brand-yellow);
}

.privacy-banner-text {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--brand-white);
  letter-spacing: -0.01em;
}

[data-theme="dark"] .privacy-banner-text {
  color: var(--text-primary);
}

.privacy-banner-btn {
  flex-shrink: 0;
  background: var(--brand-yellow);
  color: var(--brand-black);
  border: none;
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.privacy-banner-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(252, 205, 3, 0.4);
}

.privacy-banner-btn:active {
  transform: translateY(0);
}

@keyframes privacySlideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes privacySlideDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

@media (max-width: 480px) {
  .privacy-banner {
    padding: 0 0.5rem calc(0.5rem + env(safe-area-inset-bottom));
  }
  
  .privacy-banner-inner {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 0.5rem;
    padding: 0.32rem 0.48rem;
  }
  
  .privacy-banner-content {
    flex-direction: row;
    align-items: center;
    gap: 0.45rem;
  }
  
  .privacy-banner-icon {
    width: 16px;
    height: 16px;
  }

  .privacy-banner-text {
    font-size: 0.68rem;
    line-height: 1.05;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .privacy-banner-btn {
    width: auto;
    padding: 0.28rem 0.48rem;
    font-size: 0.72rem;
    flex-shrink: 0;
  }
}

/* ===== Testimonials Section ===== */
.testimonials-section {
  padding: 5rem 0;
  position: relative;
  z-index: 10;
  overflow: hidden;
}

.testimonials-container {
  max-width: 100%;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 0 2rem;
}

.testimonials-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.testimonials-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.testimonials-track-wrapper {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.testimonials-track {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 0;
  width: max-content;
  animation: testimonialScroll 60s linear infinite;
  will-change: transform;
}

.testimonials-track:hover {
  animation-play-state: paused;
}

@keyframes testimonialScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.testimonial-card {
  flex-shrink: 0;
  width: 340px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-yellow);
}

.testimonial-stars {
  color: var(--brand-yellow);
  font-size: 1.4rem;
  letter-spacing: 0.15em;
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-primary);
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.author-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.author-avatar {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow:
    0 0 0 2px rgba(0, 0, 0, 0.12),
    0 6px 18px rgba(0, 0, 0, 0.18);
}

.author-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.author-date {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* Dark Mode - Testimonials */
[data-theme="dark"] .testimonial-card {
  background: var(--bg-elevated);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 4px 16px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .testimonial-card:hover {
  border-color: var(--brand-yellow);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 8px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .testimonial-text {
  color: var(--text-primary);
}

[data-theme="dark"] .testimonial-author {
  border-top-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .author-avatar {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.06),
    0 10px 24px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .author-name {
  color: var(--text-primary);
}

[data-theme="dark"] .author-date {
  color: var(--text-tertiary);
}

/* Testimonials - Mobile Responsive */
@media (max-width: 768px) {
  .testimonials-section {
    padding: 3rem 0;
  }
  
  .testimonials-header {
    margin-bottom: 2rem;
    padding: 0 1rem;
  }
  
  .testimonials-header h2 {
    font-size: clamp(1.5rem, 5vw, 1.75rem);
  }
  
  .testimonials-track {
    gap: 1rem;
  }
  
  .testimonial-card {
    width: 300px;
    padding: 1.25rem;
  }
  
  .testimonial-text {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .testimonials-section {
    padding: 2.5rem 0;
  }
  
  .testimonial-card {
    width: 280px;
    padding: 1rem;
  }
  
  .testimonial-text {
    font-size: 0.85rem;
  }
  
  .testimonial-stars {
    font-size: 0.9rem;
  }
}

/* Reduced motion - pause animation */
@media (prefers-reduced-motion: reduce) {
  .testimonials-track {
    animation: none;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .noise-texture, .grid-layer-highlight {
    animation: none !important;
  }
}

/* Performance Optimizations */
.feature-illustration-full, .calc-2d-interface {
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Pricing cards - crisp text rendering */
.pricing-card {
  will-change: auto;
  backface-visibility: visible;
  transform: none !important;
}

.pricing-card,
.pricing-card * {
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: geometricPrecision !important;
}

/* Download buttons - same hover effect as pricing buttons */
.download-btn-main {
  will-change: auto;
}

.feature-section {
  contain: layout style;
}

.nav-floating-container {
  contain: layout style paint;
}

.support-faq {
  padding: 96px 0 128px;
}

.support-faq .section-header {
  text-align: center;
  margin: 0 auto 42px;
  max-width: 760px;
}

.support-faq .section-header h2 {
  margin-bottom: 10px;
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.support-faq .section-header p {
  margin: 0 auto;
  max-width: 58ch;
  font-size: clamp(1rem, 1.2vw, 1.18rem);
  line-height: 1.48;
  color: var(--text-secondary);
}

.faq-grid {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.faq-card {
  margin: 0;
  background: var(--bg-card);
  border-radius: 24px;
  padding: 28px 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.faq-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.faq-card p {
  margin: 0;
  color: var(--brand-gray);
}

.support-faq--accordion .faq-grid {
  max-width: 1080px;
  grid-template-columns: 1fr;
  gap: 14px;
}

.support-faq--accordion .faq-card {
  position: relative;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: var(--bg-card);
  box-shadow: 0 12px 28px rgba(14, 18, 30, 0.08);
  transition: border-color 0.24s ease, box-shadow 0.24s ease, background-color 0.24s ease;
}

.support-faq--accordion .faq-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: rgba(255, 255, 255, 0.28);
  opacity: 0.35;
  pointer-events: none;
}

.support-faq--accordion .faq-card:hover {
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 16px 34px rgba(14, 18, 30, 0.12);
}

.support-faq--accordion .faq-card.is-open {
  border-color: rgba(252, 205, 3, 0.66);
  box-shadow: 0 18px 40px rgba(14, 18, 30, 0.14), 0 0 0 1px rgba(252, 205, 3, 0.2);
}

.support-faq--accordion .faq-question {
  width: 100%;
  min-height: 86px;
  padding: 22px 28px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  border: 0;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
}

.support-faq--accordion .faq-question:hover {
  background: transparent;
}

.support-faq--accordion .faq-question:focus-visible {
  outline: 2px solid rgba(252, 205, 3, 0.75);
  outline-offset: -2px;
}

.support-faq--accordion .faq-question-text {
  margin: 0;
  font-size: clamp(1.18rem, 1.8vw, 1.82rem);
  line-height: 1.22;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.support-faq--accordion .faq-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.03);
  color: var(--text-primary);
  display: inline-grid;
  place-items: center;
  margin-right: 0;
  transition: border-color 0.24s ease, color 0.24s ease, background-color 0.24s ease;
}

.support-faq--accordion .faq-icon::before {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.24s ease;
}

.support-faq--accordion .faq-card.is-open .faq-icon {
  color: var(--brand-yellow);
  border-color: rgba(252, 205, 3, 0.55);
  background: rgba(252, 205, 3, 0.08);
}

.support-faq--accordion .faq-card.is-open .faq-icon::before {
  transform: rotate(-135deg) translateX(-1px);
}

.support-faq--accordion .faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 28px;
  opacity: 0;
  border-top: 1px solid transparent;
  transition: max-height 0.34s cubic-bezier(0.22, 1, 0.36, 1), padding 0.24s ease, opacity 0.24s ease, border-color 0.24s ease;
}

.support-faq--accordion .faq-card.is-open .faq-answer {
  padding: 0 28px 24px;
  opacity: 1;
  border-top-color: rgba(255, 255, 255, 0.08);
}

.support-faq--accordion .faq-answer p {
  margin: 14px 0 0;
  max-width: 76ch;
  font-size: clamp(0.99rem, 1.05vw, 1.08rem);
  color: var(--text-secondary);
  line-height: 1.62;
}

[data-theme="dark"] .support-faq--accordion .faq-card {
  background: rgba(16, 19, 28, 0.95);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .support-faq--accordion .faq-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .support-faq--accordion .faq-card.is-open {
  border-color: rgba(252, 205, 3, 0.66);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(252, 205, 3, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .support-faq--accordion .faq-icon {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.02);
  color: #f3f4f7;
}

[data-theme="dark"] .support-faq--accordion .faq-card.is-open .faq-icon {
  border-color: rgba(252, 205, 3, 0.6);
  background: rgba(252, 205, 3, 0.1);
  color: var(--brand-yellow);
}

[data-theme="dark"] .support-faq--accordion .faq-answer p {
  color: #c7ccda;
}

@media (max-width: 768px) {
  .support-faq {
    padding: 72px 0 96px;
  }

  .support-faq .section-header {
    margin-bottom: 28px;
  }

  .support-faq .section-header h2 {
    font-size: clamp(1.88rem, 7vw, 2.35rem);
    margin-bottom: 8px;
  }

  .support-faq .section-header p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .faq-card {
    padding: 24px;
  }

  .support-faq--accordion .faq-card {
    padding: 0;
    border-radius: 16px;
  }

  .support-faq--accordion .faq-question {
    min-height: 74px;
    padding: 16px 16px 14px;
    gap: 10px;
  }

  .support-faq--accordion .faq-question-text {
    font-size: clamp(1.02rem, 4.2vw, 1.24rem);
    line-height: 1.28;
  }

  .support-faq--accordion .faq-icon {
    width: 34px;
    height: 34px;
  }

  .support-faq--accordion .faq-icon::before {
    width: 8px;
    height: 8px;
  }

  .support-faq--accordion .faq-card.is-open .faq-answer {
    padding: 0 16px 16px;
  }

  .support-faq--accordion .faq-answer {
    padding: 0 16px;
  }

  .support-faq--accordion .faq-answer p {
    margin-top: 12px;
    font-size: 0.92rem;
    line-height: 1.56;
  }
}

/* ===== Mobile Final Overrides (Stability Pass) ===== */
@media (max-width: 768px) {
  /* Pricing should read as one focused card at a time on mobile. */
  .pricing-grid {
    padding: 0.35rem 1rem 0.85rem;
  }

  .pricing-grid .pricing-card {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Hotkey keyboard should never clip on the left/right edges. */
  .shortcuts-visual-wrapper {
    overflow: visible !important;
  }

  .shortcuts-img {
    --img-scale: 0.92;
    max-width: min(88vw, 430px);
    margin-inline: auto;
    transform-origin: center;
  }
}

@media (max-width: 480px) {
  /* Tighten empty space above the speed illustrations. */
  .speed-section {
    padding: 1.5rem 0.4rem 0.9rem;
  }

  .speed-track,
  .speed-zone {
    min-height: 220px;
  }

  .typing-zone .speed-illustration {
    left: 2%;
    max-width: min(33vw, 118px);
  }

  .yapping-zone .speed-illustration {
    right: 2%;
    max-width: min(38vw, 136px);
  }

  /* Keep the seam flush: black section starts exactly at the transition. */
  .feel-difference-section::before {
    top: 0;
  }
}

/* ===== Swapped Section Background Offsets ===== */
/* Keep the same visual background transitions after swapping section order. */
.app-stream-section--after-speed {
  padding: 5rem 2rem;
}

.app-stream-section--after-speed::before {
  top: 0;
  bottom: -15rem;
  border-radius: var(--radius-section) var(--radius-section) 0 0;
}

.feel-difference-section--after-calculator::before {
  top: -15rem;
  bottom: -3rem;
  border-radius: var(--radius-section);
}

@media (max-width: 768px) {
  .app-stream-section--after-speed {
    padding: 4.25rem 1rem 3.25rem;
  }

  .app-stream-section--after-speed::before {
    top: 0;
    bottom: -5rem;
    border-radius: 72px 72px 0 0;
  }

  .feel-difference-section--after-calculator {
    padding: 3rem 1rem;
  }

  .feel-difference-section--after-calculator::before {
    top: -5.25rem;
    bottom: -1rem;
    border-radius: 72px;
  }
}

@media (max-width: 480px) {
  .app-stream-section--after-speed {
    padding: 4rem 1rem 3rem;
  }

  .app-stream-section--after-speed::before {
    top: -12px;
    bottom: -4.5rem;
    width: calc(100vw + 160px);
    border-radius: 56px 56px 0 0;
  }

  .feel-difference-section--after-calculator::before {
    top: -4.5rem;
    bottom: -0.75rem;
    width: 100vw;
    border-radius: 56px;
  }
}
