/* ============================================
   Hydra Psychology Trainer – Static Refactor
   1:1 visual match of the Next.js version
   ============================================ */

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--background);
  color: var(--foreground);
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* ---------- CSS Variables (Light) ---------- */
:root {
  --radius: 0.625rem;
  /* Shared RGB channels for rgba() usage */
  --color-blue: 59, 130, 246;
  --color-cyan: 56, 189, 248;
  --color-dark-card: 18, 18, 18;
  /* Animation timing */
  --duration-fast: 0.15s;
  --duration-default: 0.3s;
  --duration-slow: 0.8s;
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --background: oklch(1 0 0);
  --foreground: oklch(0.145 0 0);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.145 0 0);
  --primary: oklch(0.205 0 0);
  --primary-foreground: oklch(0.985 0 0);
  --secondary: oklch(0.97 0 0);
  --secondary-foreground: oklch(0.205 0 0);
  --muted: oklch(0.97 0 0);
  --muted-foreground: oklch(0.556 0 0);
  --accent: oklch(0.97 0 0);
  --accent-foreground: oklch(0.205 0 0);
  --destructive: oklch(0.577 0.245 27.325);
  --border: oklch(0.922 0 0);
  --input: oklch(0.922 0 0);
  --ring: oklch(0.708 0 0);
}

/* ---------- Dark Mode Variables ---------- */
.dark {
  --background: oklch(0.145 0 0);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.205 0 0);
  --card-foreground: oklch(0.985 0 0);
  --primary: oklch(0.922 0 0);
  --primary-foreground: oklch(0.205 0 0);
  --secondary: oklch(0.269 0 0);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.269 0 0);
  --muted-foreground: oklch(0.9 0 0);
  --accent: oklch(0.269 0 0);
  --accent-foreground: oklch(0.985 0 0);
  --destructive: oklch(0.704 0.191 22.216);
  --border: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 15%);
  --ring: oklch(0.556 0 0);
}

/* ---------- Utility ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.text-balance { text-wrap: balance; }

/* ---------- Scroll Animation Base ---------- */
.anim-hidden {
  opacity: 0;
  transition: opacity var(--duration-slow) ease-out, transform var(--duration-slow) ease-out;
}
.anim-hidden.fade-up { transform: translateY(30px); }
.anim-hidden.fade-blur { transform: translateY(12px); filter: blur(4px); transition: opacity 0.8s ease-out, transform 0.8s ease-out, filter 0.6s ease-out; }
.anim-hidden.slide-left { transform: translateX(-200px); transition-duration: 1s; transition-timing-function: var(--ease-smooth); }
.anim-hidden.slide-right { transform: translateX(200px); transition-duration: 1s; transition-timing-function: var(--ease-smooth); }
.anim-hidden.slide-left-sm { transform: translateX(-32px); transition-duration: 0.7s; }
.anim-hidden.slide-right-sm { transform: translateX(32px); transition-duration: 0.7s; }
.anim-hidden.scale-up { transform: scale(0.8); transition-duration: 1.2s; }

.anim-visible {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

/* Stagger children */
.stagger-children > .anim-hidden:nth-child(1) { transition-delay: 0s; }
.stagger-children > .anim-hidden:nth-child(2) { transition-delay: 0.3s; }
.stagger-children > .anim-hidden:nth-child(3) { transition-delay: 0.6s; }
.stagger-children > .anim-hidden:nth-child(4) { transition-delay: 0.9s; }
.stagger-children > .anim-hidden:nth-child(5) { transition-delay: 1.2s; }

/* Word-by-word text animation */
.text-reveal .word {
  display: inline-block;
  opacity: 0;
  filter: blur(12px);
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease-smooth), filter 0.6s var(--ease-smooth), transform 0.5s var(--ease-smooth);
}
.text-reveal.anim-visible .word {
  opacity: 1;
  filter: blur(0px);
  transform: translateY(0);
}

/* Scramble word rotation: blur-fade-slide-up */
.scramble-word {
  display: inline-block;
  transition: opacity var(--duration-default) ease-out, filter var(--duration-default) ease-out, transform var(--duration-default) ease-out;
}
.scramble-word.fade-out {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(-8px);
}
.scramble-word.fade-in-start {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(8px);
  transition: none;
}

/* Rotating icon next to scramble word */
.rotating-icon {
  display: inline-block;
  transition: opacity var(--duration-default) ease-out, filter var(--duration-default) ease-out, transform var(--duration-default) ease-out;
}
.rotating-icon.icon-fade-out {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(-8px);
}
.rotating-icon.icon-fade-in-start {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(8px);
  transition: none;
}

/* ============================================
   HEADER / NAV
   ============================================ */
header { position: relative; }
nav.main-nav {
  position: fixed;
  z-index: 50;
  width: 100%;
  padding: 0 0.5rem;
}
.nav-inner {
  margin: 0.5rem auto 0;
  max-width: 72rem;
  padding: 0 3rem;
  transition: all var(--duration-default) ease;
}
.nav-inner.scrolled {
  background: color-mix(in srgb, var(--background) 50%, transparent);
  max-width: 56rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0 1.25rem;
}
.nav-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.5rem 0 0.625rem;
}
.nav-brand { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-logo { display: flex; align-items: center; gap: 0.25rem; }
.nav-logo img { width: 4rem; height: 4rem; }
.nav-logo span { font-size: 1.25rem; font-weight: 700; }

/* Desktop menu */
.nav-desktop-menu {
  display: none;
  position: absolute;
  inset: 0;
  margin: auto;
  width: fit-content;
  height: fit-content;
}
.nav-desktop-menu ul { display: flex; gap: 2rem; font-size: 0.875rem; }
.nav-desktop-menu a {
  color: oklch(0.4 0 0);
  transition: color var(--duration-fast);
  position: relative;
}
.nav-desktop-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--foreground);
  transition: width var(--duration-fast) ease;
}
.nav-desktop-menu a:hover::after {
  width: 100%;
}
.dark .nav-desktop-menu a {
  color: var(--muted-foreground);
}
.dark .nav-desktop-menu a::after {
  background: rgba(255, 255, 255, 0.85);
}
.nav-desktop-menu a:hover { color: var(--accent-foreground); }

/* Desktop right buttons */
.nav-desktop-right {
  display: none;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}

/* Mobile menu toggle */
.mobile-menu-btn {
  position: relative;
  z-index: 50;
  padding: 0.625rem;
  margin: 0;
}
.mobile-menu-btn .icon-menu,
.mobile-menu-btn .icon-close {
  width: 1.5rem; height: 1.5rem; transition: all 0.2s;
}
.mobile-menu-btn .icon-close {
  position: absolute; inset: 0; margin: auto;
  opacity: 0; transform: rotate(-180deg) scale(0);
}
.mobile-menu-btn.active .icon-menu { opacity: 0; transform: rotate(180deg) scale(0); }
.mobile-menu-btn.active .icon-close { opacity: 1; transform: rotate(0) scale(1); }

/* Mobile menu overlay */
.nav-mobile-panel {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--background) 85%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
}
.dark .nav-mobile-panel {
  background: color-mix(in srgb, #000 85%, transparent);
}
.nav-mobile-panel.open { display: flex; }
.nav-mobile-panel ul { display: flex; flex-direction: column; gap: 2rem; font-size: 1.5rem; text-align: center; }
.nav-mobile-panel a {
  color: var(--muted-foreground);
  transition: color var(--duration-fast);
}
.nav-mobile-panel a:hover { color: var(--accent-foreground); }
.nav-mobile-panel a.btn-primary { color: var(--primary-foreground); }

/* Mobile download CTA */
.mobile-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 20rem;
  padding: 0.875rem 2rem;
  margin-top: 0.5rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--primary-foreground) !important;
  background: var(--primary);
  border-radius: var(--radius);
  transition: opacity var(--duration-fast);
}
.mobile-download-btn:hover { opacity: 0.85; }
.mobile-download-buttons {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}
.mobile-download-buttons .mobile-download-btn {
  flex: 1;
}

/* Toggles pinned to bottom */
.nav-mobile-bottom {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0.5;
  transition: opacity var(--duration-fast);
}
.nav-mobile-bottom:hover { opacity: 0.8; }
.nav-mobile-bottom .btn-icon {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  justify-content: center;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--duration-fast);
  white-space: nowrap;
  line-height: 1;
}
.btn-sm { padding: 0.5rem 0.75rem; height: 2rem; }
.btn-lg { padding: 0.625rem 1rem; height: 2.5rem; font-size: 1rem; }
.btn-icon { padding: 0; width: 2.25rem; height: 2.25rem; }

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}
.btn-primary:hover { opacity: 0.9; }

.btn-outline {
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
}
.btn-outline:hover { background: var(--accent); color: var(--accent-foreground); }

.btn-ghost {
  background: transparent;
  color: var(--foreground);
}
.btn-ghost:hover { background: var(--accent); color: var(--accent-foreground); }

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  background: var(--background);
  position: relative;
  padding: 7rem 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.dark .hero-section { background: #09090b; }

/* Gradient mesh background (dark mode only) */
.hero-bg-mesh {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  display: none;
}
.dark .hero-bg-mesh { display: block; }
.hero-bg-mesh::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -30%;
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.07) 0%, transparent 70%);
  animation: mesh-drift-1 8s ease-in-out infinite;
}
.hero-bg-mesh::after {
  content: '';
  position: absolute;
  top: -40%;
  left: 20%;
  width: 70%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  animation: mesh-drift-2 10s ease-in-out infinite;
}
@keyframes mesh-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(5%, 10%) scale(1.05); }
  66% { transform: translate(-3%, -5%) scale(0.97); }
}
@keyframes mesh-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-8%, -5%) scale(1.03); }
  66% { transform: translate(4%, 8%) scale(0.98); }
}

/* Dot grid overlay */
.hero-dot-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(0,0,0,0.15) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 100%);
  animation: grid-fade 3s ease-in-out infinite;
}
.dark .hero-dot-grid {
  background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
}
@keyframes grid-fade {
  0%, 100% { opacity: 0.03; }
  50% { opacity: 0.07; }
}

/* Hero bottom fade edge */
.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--background), transparent);
  z-index: 2;
  pointer-events: none;
}
.dark .hero-section::after {
  background: linear-gradient(to top, #09090b, transparent);
}

/* Phone mockup */
.hero-phone-wrap {
  position: relative;
}
.hero-phone-glow {
  position: absolute;
  width: 140%;
  height: 140%;
  top: -20%;
  left: -20%;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.06) 40%, transparent 70%);
  filter: blur(50px);
  z-index: -1;
  animation: glow-pulse 4s ease-in-out infinite;
}
.dark .hero-phone-glow {
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 40%, transparent 70%);
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}
.hero-phone-wrap .phone-mockup {
  width: 280px;
}

/* Social proof */
.hero-social-proof {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
}
.hero-stars {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-stars-icons {
  display: flex;
  gap: 0.15rem;
  color: #facc15;
}
.hero-stars-icons svg {
  width: 14px;
  height: 14px;
}
.hero-stars-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  white-space: nowrap;
}
.hero-proof-divider {
  display: none;
  width: 1px;
  height: 1rem;
  background: var(--border);
}
.hero-users {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-user-avatars {
  display: flex;
}
.hero-user-avatars span {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 2px solid var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  font-weight: 700;
  color: #fff;
  margin-left: -0.5rem;
}
.hero-user-avatars span:first-child { margin-left: 0; }
.dark .hero-user-avatars span { border-color: #09090b; }
.hero-users-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  white-space: nowrap;
}
.hero-privacy {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-privacy-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.hero-privacy-icon--dark {
  display: none;
}
.dark .hero-privacy-icon--light {
  display: none;
}
.dark .hero-privacy-icon--dark {
  display: block;
}
.hero-privacy-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  white-space: nowrap;
}

/* Scroll indicator */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.4;
  color: var(--foreground);
  animation: scrollBounce 2s ease-in-out infinite;
  transition: opacity 0.5s ease, filter 0.5s ease;
  display: none;
  z-index: 10;
}
.hero-scroll-hint:hover { opacity: 0.7; }
.hero-scroll-hint.hero-scroll-hidden {
  opacity: 0;
  filter: blur(8px);
  pointer-events: none;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}
@media (min-width: 768px) {
  .hero-scroll-hint { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
  .hero-social-proof { flex-direction: row; }
  .hero-proof-divider { display: block; }
}

.hero-scroll-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
}
.hero-scroll-pill {
  width: 1.25rem;
  height: 2rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.25rem;
}
.hero-scroll-dot {
  width: 0.25rem;
  height: 0.375rem;
  background: var(--muted-foreground);
  border-radius: 9999px;
  animation: bounce 1s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.hero-container {
  position: relative;
  z-index: 10;
  margin: 0 auto;
  max-width: 72rem;
  padding: 0 3.5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  padding-top: 6rem;
}

.hero-left {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 38rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 0.2rem 0.55rem;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.72rem;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: all var(--duration-default) ease;
  width: fit-content;
  margin-top: 0;
  margin-bottom: 0.75rem;
}
.dark .hero-badge {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}
.hero-badge:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border);
}

.badge-label {
  background: var(--muted);
  color: var(--foreground);
  padding: 0.15rem 0.4rem;
  border-radius: 0.375rem;
  font-size: 0.68rem;
  font-weight: 600;
}

.badge-text {
  color: var(--foreground);
}

.icon-arrow {
  width: 16px;
  height: 16px;
  color: var(--muted-foreground);
  transition: transform var(--duration-default) ease;
}

.hero-badge:hover .icon-arrow {
  transform: translateX(2px);
}

.hero-title {
  font-size: clamp(2rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--foreground);
  margin: 0 0 1rem 0;
}
.dark .hero-title {
  background: linear-gradient(to bottom, rgb(244 244 245 / 0.95), rgb(228 228 231 / 0.92) 70%, rgb(161 161 170 / 0.85));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,0.35));
}

.hero-description {
  font-size: 1rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto 2rem auto;
}

/* Hero marquee / ticker */
.hero-marquee {
  overflow: hidden;
  position: relative;
  max-width: 42rem;
  margin: 90px auto 0;
  padding: 30px 3rem 0;
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
.hero-marquee-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: marquee-scroll 25s linear infinite;
}
.hero-marquee-item {
  flex-shrink: 0;
  font-size: 1.1rem;
  color: var(--muted-foreground);
  white-space: nowrap;
}
.hero-marquee-item::after {
  content: '\00B7';
  margin: 0 0.6rem;
  opacity: 0.5;
}
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.hero-cta-primary,
.hero-cta-secondary {
  padding: 0.75rem 1.5rem;
  height: 3rem;
  min-width: 11rem;
  font-size: 1rem;
  box-sizing: border-box;
}
.hero-cta-primary {
  border: 1px solid transparent;
}
.hero-cta-primary svg {
  flex-shrink: 0;
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1rem;
  color: var(--muted-foreground);
}
.hero-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-features li:before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--foreground);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-right {
  display: none;
  flex-shrink: 0;
}

/* Responsive: Desktop Hero Layout */
@media (min-width: 1024px) {
  .hero-container {
    flex-direction: row;
    align-items: center;
    gap: 3.5rem;
    padding: 0 3.5rem;
    padding-top: 0;
  }
  .hero-left {
    text-align: left;
    align-items: flex-start;
    max-width: 42rem;
    flex: 1;
  }
  .hero-left .hero-description {
    margin-left: 0;
    margin-right: 0;
  }
  .hero-left .hero-ctas {
    justify-content: flex-start;
  }
  .hero-left .hero-social-proof {
    justify-content: flex-start;
  }
  .hero-right {
    display: block;
  }
  .hero-phone-wrap .phone-mockup {
    width: 320px;
  }
}


/* ============================================
   SECTION BADGES
   ============================================ */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  padding: 0.25rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
}

/* ---------- Shared Section Headers ---------- */
.section-header {
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.section-header h2 {
  font-size: 3rem; font-weight: 700; letter-spacing: -0.025em;
}
.section-title-with-icon {
  position: relative;
  display: block;
  width: 100%;
}
.section-title-with-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(calc(-50% - 420px), -50%);
  width: 9.5rem;
  height: 9.5rem;
  background-color: var(--muted-foreground);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: var(--section-title-mask);
  mask-image: var(--section-title-mask);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.section-title-with-icon h2 {
  position: relative;
  z-index: 1;
}
.features-header .section-title-with-icon {
  --section-title-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='7' height='7' rx='1.25'/><rect x='14' y='3' width='7' height='7' rx='1.25'/><rect x='3' y='14' width='7' height='7' rx='1.25'/><rect x='14' y='14' width='7' height='7' rx='1.25'/></svg>");
}
.privacy-header .section-title-with-icon {
  --section-title-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M17.5 10H17V8a5 5 0 0 0-10 0v2h-.5A2.5 2.5 0 0 0 4 12.5v6A2.5 2.5 0 0 0 6.5 21h11a2.5 2.5 0 0 0 2.5-2.5v-6A2.5 2.5 0 0 0 17.5 10Zm-8.5 0V8a3 3 0 0 1 6 0v2Z'/><path d='M12 14a1.25 1.25 0 0 1 .75 2.25V18a.75.75 0 0 1-1.5 0v-1.75A1.25 1.25 0 0 1 12 14Z'/></svg>");
}
.reviews-header .section-title-with-icon {
  --section-title-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m3 11 15-5v12L3 14z'/><path d='M11.6 16.8a3 3 0 1 1-5.8 1.6'/></svg>");
}
.pricing-header .section-title-with-icon {
  --section-title-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M20 10.5 13.5 4H6v7.5L12.5 18a2 2 0 0 0 2.83 0l4.67-4.67a2 2 0 0 0 0-2.83Z'/><circle cx='8.75' cy='8.75' r='1.1'/></svg>");
}
.pricing-header .section-title-with-icon::before {
  display: none;
}
.faq-header .section-title-with-icon {
  --section-title-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M9.5 9.5a2.5 2.5 0 0 1 5 0c0 1.75-2.5 2-2.5 3.75'/><path d='M12 16.8h.01'/></svg>");
}
.dark .section-title-with-icon::before { opacity: 0.2; }
.section-header p {
  font-size: 1.125rem; color: var(--muted-foreground);
}
.section-header-narrow p {
  margin: 0 auto; max-width: 42rem;
}

/* ---------- Shared Containers ---------- */
.features-container,
.privacy-container,
.reviews-container,
.pricing-container,
.faq-container,
.footer-container {
  margin: 0 auto; padding: 0 1.5rem;
}

/* ============================================
   H2 GRADIENT TEXT
   ============================================ */
.h2-gradient-text {
  color: var(--foreground);
  line-height: 1.15;
  padding-bottom: 0.1em;
}
.dark .h2-gradient-text {
  background: linear-gradient(to bottom, rgb(244 244 245 / 0.95), rgb(212 212 216 / 0.9), rgb(113 113 122 / 0.8));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,0.35));
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
  padding: 2rem 0 5rem;
  scroll-margin-top: 6rem;
  background: linear-gradient(180deg, #ffffff 0%, #CAD8DD 45%, #ffffff 100%);
}
.dark .features-section {
  background: linear-gradient(180deg, #000000 0%, #0a1420 40%, #0d1b2a 50%, #0a1420 60%, #000000 100%);
}
.features-container { max-width: 80rem; }
.features-header {
  position: relative; z-index: 10;
  margin: 0 auto 5rem;
  max-width: 48rem;
  gap: 2rem;
}

/* Cards left + Phone right layout */
.features-sticky-wrap {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Phone column (sticky on desktop) */
.features-phone-col {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  order: -1; /* phone on top on mobile */
}
.features-phone-sticky {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Steps column */
.features-steps-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Individual step card – compact & clickable */
.feature-step {
  position: relative;
  border-radius: 1rem;
  border: 1px solid transparent;
  border-left: 1px solid transparent;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  transition: all var(--duration-default) ease;
}
.feature-step:hover {
  background: rgba(255,255,255,0.85);
}
.dark .feature-step {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}
.dark .feature-step:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}
.feature-step.is-active {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 4px 20px rgba(var(--color-blue),0.12), 0 1px 4px rgba(0,0,0,0.06);
}
.dark .feature-step.is-active {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 6px 22px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.08);
}

/* Improve text contrast in dark mode for feature cards */
.dark .feature-step,
.dark .feature-step h3 {
  color: var(--card-foreground);
}
.dark .feature-step p {
  color: rgba(255,255,255,0.65);
}
.feature-step h3 {
  font-size: 1.25rem; font-weight: 700; letter-spacing: -0.025em;
  margin-bottom: 0.35rem;
  text-wrap: balance;
}
.feature-step p {
  font-size: 0.9375rem; color: var(--muted-foreground); line-height: 1.6;
  margin: 0.25rem 0 0;
}

/* Mobile inline mockup (hidden on desktop) */
.feature-step-mockup {
  display: none;
}

.feature-screen {
  transition: opacity var(--duration-default) ease;
}

/* Phone Mockup (shared styles) */
.phone-mockup-wrapper {
  position: relative; z-index: 10;
  width: 100%; max-width: 280px; margin: 0 auto;
}
.phone-mockup {
  position: relative;
  width: 260px;
  aspect-ratio: 490/1000;
  margin: 0 auto;
}
.phone-mockup .screen {
  position: absolute;
  overflow: hidden;
  left: 5.33%; right: 5.33%; top: 2.5%; bottom: 2.5%;
  border-radius: 7%;
}
.phone-mockup .screen img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
  transition: opacity 0.5s ease;
}
.phone-mockup .frame {
  position: absolute; inset: 0;
  pointer-events: none;
}
.phone-mockup .frame img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.mockup-glow {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none; display: flex; align-items: center; justify-content: center;
  overflow: visible;
}
.mockup-glow-circle {
  width: 400px; height: 400px; border-radius: 50%;
  filter: blur(1px);
  opacity: 0.8;
  background: radial-gradient(circle, rgba(var(--color-blue),0.3) 0%, rgba(var(--color-blue),0.15) 50%, rgba(var(--color-blue),0.05) 75%, transparent 90%);
}
.dark .mockup-glow-circle {
  opacity: 0.85;
  background: radial-gradient(circle, rgba(var(--color-blue),0.12) 0%, rgba(var(--color-blue),0.06) 40%, rgba(255,255,255,0.02) 70%, transparent 85%);
}

/* ============================================
   TEST MODULES BLOCK (inside features section)
   ============================================ */
.test-modules-block {
  margin-top: 10rem;
  margin-bottom: 2rem;
  margin-left: auto;
  margin-right: auto;
}
.tm-header {
  margin-bottom: 3rem;
  gap: 1.5rem;
}
.tm-header .section-title-with-icon {
  --section-title-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M15.5 2H18a2 2 0 0 1 2 2v2.5a1 1 0 0 1-1 1 2.5 2.5 0 0 0 0 5 1 1 0 0 1 1 1V16a2 2 0 0 1-2 2h-2.5a1 1 0 0 1-1-1 2.5 2.5 0 0 0-5 0 1 1 0 0 1-1 1H6a2 2 0 0 1-2-2v-2.5a1 1 0 0 1 1-1 2.5 2.5 0 0 0 0-5 1 1 0 0 1-1-1V4a2 2 0 0 1 2-2h2.5a1 1 0 0 1 1 1 2.5 2.5 0 0 0 5 0 1 1 0 0 1 1-1z'/></svg>");
}
.tm-header p {
  margin: 0 auto;
  max-width: 42rem;
}

.test-modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 70%;
  margin-left: auto;
  margin-right: auto;
}

.tm-category {
  border-radius: 1rem;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1.5rem;
  transition: all 0.25s ease;
}
.tm-category:hover {
  background: rgba(255,255,255,0.9);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.dark .tm-category {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}
.dark .tm-category:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.06);
  transform: translateY(-2px);
}

.tm-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  background: rgba(0,0,0,0.04);
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}
.dark .tm-icon-wrap {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
}

.tm-category-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}
.dark .tm-category-label {
  color: rgba(255,255,255,0.9);
}

.tm-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.tm-list li {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted-foreground);
  line-height: 1.5;
  padding: 0.125rem 0;
}
.dark .tm-list li {
  color: rgba(255,255,255,0.5);
}

/* ============================================
   PRIVACY SECTION
   ============================================ */
.privacy-section {
  background: white;
  padding: 5rem 0;
  scroll-margin-top: 6rem;
}
.dark .privacy-section { background: #000; }
.privacy-container { max-width: 64rem; }
.privacy-header {
  gap: 2rem;
  margin-bottom: 3.5rem;
}

/* Privacy cards */
.privacy-cards {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.04);
  max-width: 24rem;
  margin: 0 auto;
}
.privacy-card {
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.privacy-card:last-child { border-bottom: none; }
.privacy-card-header {
  padding: 2rem 1.5rem 1.5rem;
}
.privacy-card-decorator {
  position: relative;
  width: 5rem; height: 5rem;
  margin: 0 auto;
}
.privacy-card-icon-box {
  position: absolute; inset: 0; margin: auto;
  display: flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(229,231,235,0.6);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
}
.dark .privacy-card-icon-box {
  background: rgba(30,30,30,0.9);
  border-color: rgba(75,85,99,0.6);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.2);
}
.privacy-card-icon-box svg { width: 1.75rem; height: 1.75rem; }
.privacy-card h3 {
  font-size: 1.125rem; font-weight: 500;
}
.privacy-card-body {
  padding: 0 1.5rem 2rem;
}
.privacy-card-body p {
  font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.625;
}
.privacy-link {
  margin-top: 2.5rem; text-align: center;
  font-size: 1rem; color: var(--muted-foreground);
}
.privacy-link a {
  font-weight: 500; color: var(--foreground);
  text-decoration: underline; text-underline-offset: 4px;
  transition: color var(--duration-fast);
}
.privacy-link a:hover { opacity: 0.8; }

/* ============================================
   REVIEWS SECTION
   ============================================ */
.reviews-section {
  position: relative; overflow: visible;
  scroll-margin-top: 2rem;
  padding: 5rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
}
.reviews-section::before {
  content: '';
  position: absolute;
  top: -12rem; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 85% 35%, #CAD8DD 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}
.dark .reviews-section {
  background: #000;
}
.dark .reviews-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 85% 50%, #0d1b2a 0%, transparent 50%);
  pointer-events: none;
  mask: linear-gradient(to bottom, transparent 0%, black 25%);
  -webkit-mask: linear-gradient(to bottom, transparent 0%, black 25%);
}
.dark .reviews-section::before {
  display: none;
}

.reviews-bg { position: absolute; inset: 0; pointer-events: none; }
.reviews-bg .glow1 {
  position: absolute; left: 50%; top: 4rem;
  width: 34rem; height: 13rem;
  transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(to right, rgba(var(--color-blue),0.10), rgba(var(--color-cyan),0.10), transparent);
  filter: blur(64px);
}
.reviews-bg .glow2 {
  position: absolute; right: 50%; bottom: 2.5rem;
  width: 15rem; height: 15rem;
  transform: translateX(50%);
  border-radius: 50%;
  background: rgba(100,116,139,0.05);
  filter: blur(64px);
}
.reviews-container { position: relative; z-index: 1; max-width: 72rem; }
.reviews-header { gap: 1.5rem; }
.reviews-rating-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 9999px; border: 1px solid var(--border);
  padding: 0.25rem 1rem; font-size: 0.875rem; font-weight: 500; color: var(--muted-foreground);
}
.reviews-rating-badge span { color: var(--foreground); }

/* Review cards */
.reviews-grid {
  margin-top: 3rem;
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
.review-card {
  position: relative;
  display: flex; flex-direction: column;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.9);
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
  transition: all var(--duration-default);
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(var(--color-blue),0.1);
}
.dark .review-card { background: rgba(var(--color-dark-card),0.9); }
.review-card .glow-spot {
  position: absolute; right: -3rem; top: -2.5rem;
  width: 6rem; height: 6rem;
  border-radius: 50%;
  background: rgba(var(--color-blue),0.15);
  filter: blur(32px);
  opacity: 0.6;
  transition: opacity var(--duration-default);
}
.review-card:hover .glow-spot { opacity: 1; }
.review-stars { display: flex; gap: 0.25rem; }
.review-stars svg { width: 1rem; height: 1rem; color: #f59e0b; fill: #f59e0b; }
.review-card h3 { margin-top: 1rem; font-size: 1.125rem; font-weight: 600; color: var(--foreground); }
.review-card .review-text { margin-top: 0.75rem; font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.625; }
.review-card .reviewer { margin-top: 1.5rem; font-size: 0.875rem; font-weight: 500; color: color-mix(in srgb, var(--foreground) 80%, transparent); }
.reviews-cta { margin-top: 2.5rem; display: flex; justify-content: center; }

/* ============================================
   PRICING SECTION
   ============================================ */
.pricing-section {
  position: relative; overflow: hidden;
  scroll-margin-top: 2rem;
  background: white; padding: 5rem 0;
}
.dark .pricing-section { background: #000; }
.pricing-container { max-width: 72rem; }
.pricing-header { gap: 1.5rem; }

.pricing-grid {
  margin-top: 3rem;
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}
.pricing-card {
  position: relative;
  display: flex; flex-direction: column;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.9);
  padding: 2rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
  height: 100%;
}
.dark .pricing-card { background: rgba(var(--color-dark-card),0.9); }

/* Lifetime card glow */
.pricing-card-highlight {
  position: relative;
  height: 100%;
}
.pricing-card-highlight::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 1.5rem;
  background: linear-gradient(to right, rgba(var(--color-blue),0.25), rgba(var(--color-cyan),0.2), transparent);
  filter: blur(16px);
  z-index: -1;
}
.pricing-card-highlight .pricing-card {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  background: rgba(255,255,255,0.95);
}
.dark .pricing-card-highlight .pricing-card { background: rgba(var(--color-dark-card),0.95); }

.pricing-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.pricing-card-top .label { font-size: 0.875rem; font-weight: 500; color: var(--muted-foreground); }
.pricing-card-top h3 { margin-top: 0.5rem; font-size: 1.875rem; font-weight: 600; color: var(--foreground); }
.pricing-card-top .price { margin-top: 0.75rem; font-size: 2.25rem; font-weight: 700; letter-spacing: -0.025em; color: var(--foreground); }
.pricing-badge {
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem; font-weight: 600;
}
.pricing-badge-free { background: var(--muted); color: var(--foreground); }
.pricing-badge-popular {
  background: rgba(59,130,246,0.12); color: rgb(59,130,246); font-weight: 600;
}
.dark .pricing-badge-popular { background: rgba(59,130,246,0.2); color: rgb(96,165,250); }
.pricing-badge-lifetime {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(0,0,0,0.9); color: white;
}
.dark .pricing-badge-lifetime { background: rgba(255,255,255,0.1); }
.pricing-badge-lifetime svg { width: 0.75rem; height: 0.75rem; }

.pricing-card-desc { margin-top: 1rem; font-size: 0.875rem; color: var(--muted-foreground); }
.pricing-features {
  margin-top: 1.5rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  font-size: 0.875rem; color: var(--muted-foreground);
}
.pricing-features li {
  display: flex; align-items: flex-start; gap: 0.5rem;
}
.pricing-features svg { margin-top: 2px; width: 1rem; height: 1rem; flex-shrink: 0; color: var(--foreground); }
.pricing-note {
  margin-top: auto;
  padding-top: 1.5rem;
  font-size: 0.875rem; color: var(--muted-foreground);
}
.pricing-note-aurora {
  font-weight: 600;
  background: linear-gradient(120deg, rgb(59,130,246), rgb(56,189,248), rgb(139,92,246), rgb(59,130,246));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: aurora-shift 6s ease-in-out infinite;
}
@keyframes aurora-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.pricing-appstore {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
  background: #f5f5f5; padding: 5rem 0;
}
.dark .faq-section { background: #000; }
.faq-container { max-width: 64rem; }
.faq-header { gap: 1.5rem; }
.faq-items { margin-top: 3rem; display: flex; flex-direction: column; gap: 1rem; }
.faq-item {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.9);
  padding: 1.5rem;
  text-align: left;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
  transition: background var(--duration-fast);
}
.dark .faq-item { background: rgba(var(--color-dark-card),0.9); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--muted-foreground);
  border-bottom: 2px solid var(--muted-foreground);
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--duration-default) ease;
}
.faq-item summary.is-open::after {
  transform: rotate(-135deg) translateY(-2px);
}
.faq-content-wrapper {
  overflow: hidden;
  transition: height 0.35s var(--ease-smooth), opacity var(--duration-default) ease;
}
.faq-item p {
  margin-top: 0.75rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

/* ============================================
   FOOTER
   ============================================ */
.footer-section {
  border-top: 1px solid var(--border);
  background: #0a0a0a;
  color: #a1a1a1;
  padding: 1.5rem 0;
}
.dark .footer-section { background: #000; }
.footer-container { max-width: 64rem; padding: 0 2rem; margin: 0 auto; }
.footer-content {
  display: flex;
  align-items: center;
  font-size: 0.8125rem;
  color: #a1a1aa;
}
.footer-copyright { flex-shrink: 0; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 0.5rem;
}
.footer-instagram {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  opacity: 0.85;
  transition: opacity var(--duration-fast);
}
.footer-instagram:hover { opacity: 1; }
.footer-dot { color: #a1a1aa; opacity: 0.4; }
.footer-content a { color: #a1a1aa; transition: color var(--duration-fast); }
.footer-content a:hover { color: #f4f4f5; }

/* ============================================
   LANGUAGE TOGGLE
   ============================================ */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  transition: color var(--duration-fast);
}
.lang-toggle:hover {
  color: var(--foreground);
}


/* ============================================
   THEME TOGGLE
   ============================================ */
.theme-toggle {
  position: relative;
  width: 2.25rem; height: 2.25rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
}
.theme-toggle svg { width: 1.2rem; height: 1.2rem; transition: all var(--duration-default); }
.theme-toggle .sun { transform: rotate(0) scale(1); }
.theme-toggle .moon { position: absolute; transform: rotate(90deg) scale(0); }
.dark .theme-toggle .sun { transform: rotate(-90deg) scale(0); }
.dark .theme-toggle .moon { transform: rotate(0) scale(1); }

/* Nav App Store Badge */
.nav-app-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--foreground);
  background: var(--accent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 0.85rem;
  transition: all var(--duration-fast);
}
.nav-app-badge:hover {
  background: var(--muted);
}
.dark .nav-app-badge {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
}
.dark .nav-app-badge:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 640px) {
  .phone-mockup { width: 280px; }
  .phone-mockup-wrapper { max-width: 280px; }
}
@media (min-width: 768px) {
  .hero-section { padding: 8rem 1.5rem; }
  .hero-title { font-size: 3rem; }
  .features-section { padding: 2rem 0 7rem; }
  .features-header { margin-bottom: 5rem; }
  .section-header h2 { font-size: 3.75rem; }
  .features-header h2 { white-space: nowrap; }
  /* Side-by-side: cards LEFT, phone RIGHT */
  .features-sticky-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }
  .features-phone-col {
    order: 2; /* phone on right */
    position: sticky;
    top: 6rem;
    height: fit-content;
    z-index: 5;
  }
  .features-steps-col {
    order: 1; /* cards on left */
    justify-content: center;
    align-self: center;
    gap: 0.75rem;
    padding: 0;
  }
  .feature-step h3 { font-size: 1.375rem; }
  .phone-mockup { width: 320px; }
  .phone-mockup-wrapper { max-width: 320px; }
  .privacy-section { padding: 7rem 0; scroll-margin-top: 7rem; }
  .privacy-header { margin-bottom: 5rem; }
  .privacy-cards {
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%;
  }
  .privacy-card { border-bottom: none; border-right: 1px solid var(--border); }
  .privacy-card:last-child { border-right: none; }
  .privacy-card-decorator { width: 7rem; height: 7rem; }
  .privacy-card-icon-box { width: 3.5rem; height: 3.5rem; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-section { padding: 7rem 0; scroll-margin-top: 3rem; }
  .pricing-section { padding: 7rem 0; scroll-margin-top: 3rem; }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .faq-section { padding: 7rem 0; }
}
@media (min-width: 1024px) {
  .nav-brand { width: auto; }
  .mobile-menu-btn { display: none; }
  .nav-desktop-menu { display: block; }
  .nav-desktop-right { display: flex; }
  .hero-title { font-size: 3.5rem; }
  .feature-step h3 { font-size: 1.5rem; }
  .features-sticky-wrap { gap: 4rem; }
  .features-steps-col { gap: 0.75rem; }
  .section-header p { font-size: 1.25rem; }
  .phone-mockup { width: 340px; }
  .phone-mockup-wrapper { max-width: 360px; }
}
@media (min-width: 1280px) {
  .hero-title { font-size: 4rem; }
  .features-sticky-wrap { gap: 5rem; }
  .features-steps-col { gap: 1rem; }
  .phone-mockup { width: 380px; }
  .phone-mockup-wrapper { max-width: 400px; }
  .reviews-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
.scroll-to-top {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--background) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--foreground);
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity var(--duration-default), transform var(--duration-default);
  pointer-events: none;
}
.scroll-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
@media (max-width: 767px) {
  .scroll-to-top { display: flex; }
}

/* ============================================
   App Store badge in navbar
   ============================================ */
.nav-appstore-link {
  display: inline-flex;
  align-items: center;
  transition: opacity var(--duration-default) ease;
}
.nav-appstore-link:hover {
  opacity: 0.8;
}
.nav-appstore-badge {
  height: 36px;
  width: auto;
}
.nav-appstore-badge-mobile {
  height: 44px;
}

/* ============================================
   CAROUSEL DOTS (shared)
   ============================================ */
.features-carousel-dots,
.reviews-carousel-dots,
.tm-carousel-dots,
.pricing-carousel-dots {
  display: none;
}

/* ============================================
   MOBILE CAROUSEL STYLES (< 768px)
   ============================================ */
@media (max-width: 767px) {

  .features-sticky-wrap { gap: 0; }

  /* -- Features Carousel -- */
  .features-steps-col {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
  }
  .features-steps-col::-webkit-scrollbar { display: none; }

  .feature-step {
    flex: 0 0 100%;
    min-width: 0;
    scroll-snap-align: start;
    padding: 1.5rem;
    border-radius: 1.25rem;
    background: rgba(255,255,255,0.92);
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
  }
  .dark .feature-step {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.1);
  }
  .feature-step.is-active {
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  }

  /* Show inline phone mockup inside each card on mobile */
  .feature-step-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    margin-top: 1.25rem;
  }
  .feature-step-mockup .phone-mockup {
    width: 180px;
  }

  /* Hide the separate phone column on mobile */
  .features-phone-col {
    display: none !important;
  }
  .features-steps-col {
    order: 1 !important;
  }
  .features-carousel-dots {
    order: 3;
  }

  /* Shared carousel dot styles */
  .features-carousel-dots,
  .reviews-carousel-dots,
  .tm-carousel-dots,
  .pricing-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
  }
  .features-carousel-dots { padding-top: 1rem; }
  .reviews-carousel-dots { padding-top: 1.25rem; }
  .tm-carousel-dots { padding-top: 1.25rem; }
  .pricing-carousel-dots { padding-top: 1.25rem; }
  .features-carousel-dots .dot,
  .reviews-carousel-dots .dot,
  .tm-carousel-dots .dot,
  .pricing-carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 128, 128, 0.25);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background var(--duration-default), transform var(--duration-default);
  }
  .features-carousel-dots .dot.active,
  .reviews-carousel-dots .dot.active,
  .tm-carousel-dots .dot.active,
  .pricing-carousel-dots .dot.active {
    background: #0d7377;
    transform: scale(1.3);
  }
  .dark .features-carousel-dots .dot,
  .dark .reviews-carousel-dots .dot,
  .dark .tm-carousel-dots .dot,
  .dark .pricing-carousel-dots .dot {
    background: rgba(255, 255, 255, 0.3);
  }
  .dark .features-carousel-dots .dot.active,
  .dark .reviews-carousel-dots .dot.active,
  .dark .tm-carousel-dots .dot.active,
  .dark .pricing-carousel-dots .dot.active {
    background: rgba(255, 255, 255, 0.9);
  }

  /* -- Test Modules Carousel -- */
  .test-modules-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    max-width: 100%;
  }
  .test-modules-grid::-webkit-scrollbar { display: none; }

  .tm-category {
    flex: 0 0 75%;
    min-width: 0;
    scroll-snap-align: start;
  }

  /* -- Pricing Carousel -- */
  .pricing-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
  }
  .pricing-grid::-webkit-scrollbar { display: none; }

  .pricing-grid > * {
    flex: 0 0 85%;
    min-width: 0;
    scroll-snap-align: start;
  }

  /* -- Reviews Carousel -- */
  .reviews-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
  }
  .reviews-grid::-webkit-scrollbar { display: none; }

  .review-card {
    flex: 0 0 85%;
    min-width: 0;
    scroll-snap-align: center;
  }

  /* -- Mobile Hero -- */
  .hero-section { padding: 5.5rem 1rem 6rem; }
  .hero-container { gap: 2rem; padding: 0 1.5rem; }
  .hero-left {
    text-align: center;
    align-items: center;
  }
  .hero-badge {
    font-size: 0.6rem;
    padding: 0.15rem 0.4rem;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
  }
  .badge-label {
    font-size: 0.56rem;
    padding: 0.1rem 0.3rem;
  }
  .hero-title { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  .hero-description { font-size: 1.05rem; max-width: 100%; }
  .hero-ctas { justify-content: center; flex-direction: column; align-items: stretch; }
  .hero-cta-primary,
  .hero-cta-secondary { width: 100%; justify-content: center; }
  .hero-appstore img { height: 48px; }

  /* Navbar mobile background */
  .nav-inner {
    padding: 0 1rem;
  }

  /* Navbar sits over the hero on mobile, transparent */
  nav.main-nav {
    position: absolute;
    top: 0;
    left: 0;
    background: transparent;
    padding: 0;
  }
  .dark nav.main-nav {
    background: transparent;
  }

  /* Shared mobile section sizing */
  .features-container,
  .privacy-container,
  .reviews-container,
  .pricing-container,
  .faq-container,
  .footer-container { padding: 0 1rem; }

  .section-header h2 { font-size: 2rem; }
  .section-header p { font-size: 1rem; }

  .features-section { padding: 3.5rem 0 3rem; }
  .features-header { margin-bottom: 2rem; gap: 1rem; }

  .test-modules-block { margin-top: 3rem; margin-bottom: 3rem; max-width: 100%; }
  .tm-header { margin-bottom: 2rem; }

  .privacy-section,
  .reviews-section,
  .pricing-section,
  .faq-section { padding: 3.5rem 0; }
  .privacy-header { margin-bottom: 2rem; gap: 1rem; }
  .reviews-header { gap: 1rem; }

  .pricing-card { padding: 1.5rem; }
  .pricing-card-top h3 { font-size: 1.5rem; }
  .pricing-card-top .price { font-size: 1.75rem; }
  .pricing-appstore { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

  .faq-item { padding: 1.25rem; }
  .faq-item summary { font-size: 1rem; }
  .faq-item p { font-size: 0.9375rem; }

  .footer-section { padding: 1.5rem 0; }
  .footer-content {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
  .footer-copyright { margin-right: 0; }
  .footer-links { flex: none; }
  .footer-dot { display: none; }
}

/* ---------- Legal Pages (Privacy Policy, Impress) ---------- */
.legal-page { background: var(--background); }
.legal-page-inner { max-width: 56rem; margin: 0 auto; padding: 7rem 1.5rem 4rem; }
.legal-content { display: flex; flex-direction: column; gap: 2.5rem; font-size: 1rem; color: var(--muted-foreground); line-height: 1.625; }
.legal-page-header { display: flex; flex-direction: column; gap: 0.75rem; }
.legal-page-header h1 { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.025em; color: var(--foreground); }
.legal-page-header p { font-size: 0.875rem; color: var(--muted-foreground); }
.legal-section { display: flex; flex-direction: column; gap: 0.75rem; }
.legal-section h2 { font-size: 1.25rem; font-weight: 600; color: var(--foreground); }
.legal-section ul { list-style: disc; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.legal-section a { color: var(--foreground); text-decoration: underline; text-underline-offset: 4px; }
.legal-section .legal-emphasis { color: var(--foreground); font-weight: 500; }

/* ---------- Contact / Support Form ---------- */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.form-group label { font-size: 0.875rem; font-weight: 500; color: var(--foreground); }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-size: 0.9375rem;
  font-family: inherit;
  line-height: 1.5;
  color: var(--foreground);
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted-foreground); opacity: 0.6; }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--foreground); box-shadow: 0 0 0 2px oklch(0.5 0 0 / 10%); }
.form-group textarea { resize: vertical; min-height: 8rem; }
.contact-submit { align-self: flex-start; min-width: 10rem; justify-content: center; position: relative; }
.contact-submit-loading { display: none; }
.contact-submit.is-loading .contact-submit-text { visibility: hidden; }
.contact-submit.is-loading .contact-submit-loading { display: flex; position: absolute; inset: 0; align-items: center; justify-content: center; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.contact-result { display: none; align-items: flex-start; gap: 0.75rem; padding: 1rem 1.25rem; border-radius: var(--radius); font-size: 0.9375rem; line-height: 1.5; }
.contact-result:not([hidden]) { display: flex; }
.contact-result svg { flex-shrink: 0; margin-top: 0.125rem; }
.contact-result a { color: var(--foreground); text-decoration: underline; text-underline-offset: 4px; }
.contact-success { background: oklch(0.85 0.1 145 / 15%); color: oklch(0.35 0.1 145); }
.contact-success svg { stroke: oklch(0.45 0.15 145); }
.contact-error { background: oklch(0.85 0.1 25 / 15%); color: oklch(0.4 0.1 25); }
.contact-error svg { stroke: oklch(0.5 0.15 25); }
.dark .contact-success { background: oklch(0.35 0.08 145 / 25%); color: oklch(0.8 0.08 145); }
.dark .contact-success svg { stroke: oklch(0.7 0.12 145); }
.dark .contact-error { background: oklch(0.35 0.08 25 / 25%); color: oklch(0.8 0.08 25); }
.dark .contact-error svg { stroke: oklch(0.7 0.12 25); }
