/*
Theme Name: Свой Магазин
Theme URI: https://alievgeniy.ru
Author: Евгений Алиев
Author URI: https://alievgeniy.ru
Description: Кастомная тема для лендинга курса «Свой Магазин» и блога
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: svoy-magazin
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
*/


/* ==========================================================================
   0. DESIGN TOKENS / CUSTOM PROPERTIES
   ========================================================================== */

:root {
  /* Radius */
  --radius: 1.5rem;

  /* Typography */
  --font-display: 'Manrope', system-ui, sans-serif;
  --font-sans: 'Manrope', system-ui, sans-serif;

  /* Core palette */
  --background: oklch(0.988 0.002 285);
  --foreground: oklch(0.21 0.008 286);

  --card: oklch(1 0 0);
  --card-foreground: oklch(0.21 0.008 286);

  --popover: oklch(0.995 0.001 285);
  --popover-foreground: oklch(0.21 0.008 286);

  --primary: oklch(0.511 0.262 276.9);
  --primary-foreground: oklch(0.99 0.002 285);
  --primary-glow: oklch(0.541 0.281 293);

  --secondary: oklch(0.965 0.005 285);
  --secondary-foreground: oklch(0.29 0.01 286);

  --muted: oklch(0.965 0.005 285);
  --muted-foreground: oklch(0.455 0.008 286);

  --accent: oklch(0.955 0.015 290);
  --accent-foreground: oklch(0.36 0.12 277);

  --amber: oklch(0.769 0.166 70.1);
  --success: oklch(0.65 0.15 155);

  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.99 0.002 285);

  --border: oklch(0.918 0.004 286);
  --input: oklch(0.918 0.004 286);
  --ring: oklch(0.511 0.262 276.9);

  /* Ink & night */
  --ink: oklch(0.371 0.008 286);
  --night: oklch(0.135 0.01 285);
  --night-foreground: oklch(0.97 0.003 285);
  --night-muted: oklch(0.72 0.012 286);

  /* Gradients */
  --gradient-primary: linear-gradient(120deg, var(--primary), var(--primary-glow));

  /* Shadows */
  --shadow-glass:
    0 1px 1px color-mix(in oklab, var(--foreground) 4%, transparent),
    0 8px 24px -12px color-mix(in oklab, var(--foreground) 14%, transparent),
    0 32px 64px -32px color-mix(in oklab, var(--primary) 22%, transparent);

  --shadow-float:
    0 24px 60px -28px color-mix(in oklab, var(--primary) 40%, transparent),
    0 4px 18px -8px color-mix(in oklab, var(--foreground) 10%, transparent);
}


/* ==========================================================================
   1. RESET & BASE
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

::selection {
  background: color-mix(in oklab, var(--primary) 22%, transparent);
}

img,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.15;
  font-weight: 600;
}


/* ==========================================================================
   2. UTILITY CLASSES
   ========================================================================== */

/* --- Layout --- */

.shell {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .shell {
    padding-inline: 2rem;
  }
}

.section-pad {
  padding-block: 5rem;
}

@media (min-width: 768px) {
  .section-pad {
    padding-block: 8rem;
  }
}

/* --- Glass --- */

.glass {
  background: color-mix(in oklab, var(--card) 62%, transparent);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid color-mix(in oklab, var(--foreground) 8%, transparent);
  border-radius: 24px;
  box-shadow: var(--shadow-glass);
}

.glass-night {
  background: color-mix(in oklab, white 6%, transparent);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid color-mix(in oklab, white 12%, transparent);
  border-radius: 24px;
  box-shadow: 0 30px 80px -40px color-mix(in oklab, var(--primary) 60%, transparent);
}

/* --- Typography --- */

.display-h {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.display-h2 {
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

/* --- Flex helpers --- */

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }

.flex-wrap {
  flex-wrap: wrap;
}

/* --- Visibility --- */

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

.hidden {
  display: none;
}

@media (max-width: 767px) {
  .md\:show {
    display: none;
  }
}

@media (min-width: 768px) {
  .md\:hide {
    display: none;
  }
}


/* ==========================================================================
   3. AURORA ANIMATION
   ========================================================================== */

.aurora-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(90px);
  pointer-events: none;
  will-change: transform;
  animation: aurora-breathe 22s ease-in-out infinite alternate;
}

@keyframes aurora-breathe {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.55;
  }
  100% {
    transform: translate3d(2%, -3%, 0) scale(1.14);
    opacity: 0.8;
  }
}


/* ==========================================================================
   4. REVEAL / SCROLL ANIMATION
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }


/* ==========================================================================
   5. BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
  gap: 0.5rem;
  white-space: nowrap;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* Primary */
.btn-primary {
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

.btn-primary:hover {
  box-shadow: 0 0 40px -8px var(--primary);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Outline */
.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

.btn-outline:hover {
  background: var(--secondary);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
  padding: 0.75rem 2rem;
}

.btn-ghost:hover {
  background: var(--secondary);
}

/* Sizes */
.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.875rem 2.5rem;
  font-size: 1.125rem;
}

/* Night variant (on dark bg) */
.btn-night {
  background: color-mix(in oklab, white 10%, transparent);
  color: var(--night-foreground);
  border: 1px solid color-mix(in oklab, white 15%, transparent);
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

.btn-night:hover {
  background: color-mix(in oklab, white 16%, transparent);
}


/* ==========================================================================
   6. HEADER
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0.75rem 1.25rem;
  transition: padding 0.3s;
}

@media (min-width: 768px) {
  .site-header {
    padding: 0.75rem 2rem;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 72rem;
  margin-inline: auto;
  padding: 0.625rem 1.5rem;
  border-radius: 9999px;
  transition: all 0.3s;
}

.site-header.scrolled .header-inner {
  background: color-mix(in oklab, var(--card) 62%, transparent);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid color-mix(in oklab, var(--foreground) 8%, transparent);
  box-shadow: var(--shadow-glass);
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.header-logo-icon {
  width: 2rem;
  height: 2rem;
  background: var(--gradient-primary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
}

.header-logo-text {
  font-weight: 600;
  font-size: 1rem;
  color: var(--foreground);
}

/* Nav */
.header-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .header-nav {
    display: flex;
  }
}

.header-nav a {
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  border-radius: 9999px;
  transition: color 0.2s, background 0.2s;
}

.header-nav a:hover {
  color: var(--foreground);
  background: var(--secondary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Mobile menu toggle */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: none;
  color: var(--foreground);
  cursor: pointer;
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--background) 92%, transparent);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-size: 1.25rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 1rem;
  transition: background 0.2s;
}

.mobile-menu a:hover {
  background: var(--secondary);
}

.mobile-menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: var(--foreground);
  cursor: pointer;
  font-size: 1.5rem;
}


/* ==========================================================================
   7. HERO SECTION
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 7rem;
  padding-bottom: 5rem;
}

@media (min-width: 768px) {
  .hero {
    padding-top: 10rem;
    padding-bottom: 8rem;
  }
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  border: 1px solid color-mix(in oklab, var(--primary) 25%, transparent);
  background: color-mix(in oklab, var(--primary) 8%, transparent);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent-foreground);
  width: fit-content;
}

.badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--success);
  position: relative;
}

.badge-dot::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 9999px;
  background: var(--success);
  opacity: 0.4;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 32rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.hero-avatars {
  display: flex;
}

.hero-avatars span {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: var(--muted);
  border: 2px solid var(--background);
  margin-left: -0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
}

.hero-avatars span:first-child {
  margin-left: 0;
}

/* Dashboard card */
.hero-visual {
  position: relative;
}

.dashboard-card {
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.dashboard-title {
  font-weight: 600;
  font-size: 0.9375rem;
}

.dashboard-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: color-mix(in oklab, var(--success) 12%, transparent);
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 600;
}

.dashboard-chart {
  width: 100%;
  height: auto;
  margin-bottom: 1.5rem;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.dashboard-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
}

.dashboard-stat-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.125rem;
}


/* ==========================================================================
   8. PAIN SECTION
   ========================================================================== */

.pain {
  position: relative;
}

.pain-header {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .pain-header {
    margin-bottom: 4rem;
  }
}

.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-description {
  font-size: 1.0625rem;
  color: var(--muted-foreground);
  margin-top: 1rem;
  line-height: 1.6;
}

/* ==========================================================================
   9b. FORCE MAJEURE SECTION
   ========================================================================== */

.force-majeure {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    var(--background) 0%,
    color-mix(in oklab, var(--destructive) 4%, var(--background)) 50%,
    var(--background) 100%
  );
}

.fm-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .fm-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
  }
}

.fm-card {
  padding: 2rem;
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s;
  border: 1px solid color-mix(in oklab, var(--destructive) 15%, transparent) !important;
}

.fm-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 20px 50px -15px color-mix(in oklab, var(--destructive) 20%, transparent),
    var(--shadow-glass);
}

.fm-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1.25rem;
}

.fm-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.fm-card-text {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.65;
}

.fm-cta-text {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 36rem;
  margin-inline: auto;
  line-height: 1.6;
}


/* ==========================================================================
   10. PAIN SECTION (continued)
   ========================================================================== */

.pain-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .pain-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.pain-card {
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.pain-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-float);
}

.pain-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: color-mix(in oklab, var(--primary) 10%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--primary);
  font-size: 1.25rem;
}

.pain-card-title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.625rem;
  color: var(--foreground);
}

.pain-card-text {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}


/* ==========================================================================
   9. COMPARISON SECTION
   ========================================================================== */

.comparison {
  background-color: var(--night);
  color: var(--night-foreground);
  position: relative;
  overflow: hidden;
}

.comparison-header {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .comparison-header {
    margin-bottom: 4rem;
  }
}

.comparison .section-label {
  color: var(--primary-glow);
}

.comparison .section-description {
  color: var(--night-muted);
}

/* Tab switcher (mobile) */
.comparison-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .comparison-tabs {
    display: none;
  }
}

.comparison-tab {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid color-mix(in oklab, white 12%, transparent);
  background: transparent;
  color: var(--night-muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.comparison-tab.active {
  background: color-mix(in oklab, white 10%, transparent);
  color: var(--night-foreground);
}

/* Columns */
.comparison-grid {
  display: grid;
  gap: 2rem;
  position: relative;
}

@media (min-width: 768px) {
  .comparison-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

/* Divider line (desktop) */
.comparison-divider {
  display: none;
}

@media (min-width: 768px) {
  .comparison-divider {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: linear-gradient(
      to bottom,
      transparent,
      color-mix(in oklab, var(--primary) 50%, transparent) 30%,
      color-mix(in oklab, var(--primary) 50%, transparent) 70%,
      transparent
    );
  }
}

.comparison-column-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.comparison-column-title .icon-amber {
  color: var(--amber);
}

.comparison-column-title .icon-primary {
  color: var(--primary-glow);
}

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

.comparison-item {
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* Marketplace (amber / negative) */
.comparison-item-marketplace {
  background: color-mix(in oklab, var(--amber) 6%, transparent);
  border: 1px solid color-mix(in oklab, var(--amber) 12%, transparent);
  color: var(--night-foreground);
}

/* Own store (primary / positive) */
.comparison-item-own {
  background: color-mix(in oklab, var(--primary) 8%, transparent);
  border: 1px solid color-mix(in oklab, var(--primary) 16%, transparent);
  color: var(--night-foreground);
}

/* Mobile panel toggling */
@media (max-width: 767px) {
  .comparison-column {
    display: none;
  }

  .comparison-column.active {
    display: block;
  }
}


/* ==========================================================================
   10. TIMELINE SECTION
   ========================================================================== */

.timeline {
  position: relative;
}

.timeline-header {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .timeline-header {
    margin-bottom: 4rem;
  }
}

/* Desktop: horizontal */
.timeline-track {
  display: none;
}

@media (min-width: 1024px) {
  .timeline-track {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    position: relative;
  }
}

/* Progress line (desktop) */
.timeline-line {
  display: none;
}

@media (min-width: 1024px) {
  .timeline-line {
    display: block;
    position: absolute;
    top: 1.625rem;
    left: 1.625rem;
    right: 1.625rem;
    height: 2px;
    background: var(--border);
  }

  .timeline-line-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 1px;
  }
}

.timeline-step {
  text-align: center;
  position: relative;
}

.timeline-number {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  margin-inline: auto;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 2;
  background: var(--background);
  border: 2px solid var(--border);
  color: var(--muted-foreground);
  transition: all 0.3s;
}

.timeline-step.active .timeline-number {
  background: var(--gradient-primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

.timeline-step-title {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}

.timeline-step-text {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

/* Mobile: vertical */
.timeline-track-mobile {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  padding-left: 3rem;
}

@media (min-width: 1024px) {
  .timeline-track-mobile {
    display: none;
  }
}

.timeline-track-mobile::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1.5rem;
  width: 2px;
  background: var(--border);
  transform: translateX(-50%);
}

.timeline-track-mobile .timeline-number {
  position: absolute;
  left: 0;
  margin: 0;
  width: 3rem;
  height: 3rem;
}

.timeline-track-mobile .timeline-step {
  text-align: left;
}


/* ==========================================================================
   11. PROGRAM SECTION
   ========================================================================== */

.program {
  position: relative;
}

.program-header {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .program-header {
    margin-bottom: 4rem;
  }
}

.program-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .program-layout {
    grid-template-columns: 1fr 20rem;
    gap: 3rem;
  }
}

/* Accordion modules */
.program-modules {
  display: flex;
  flex-direction: column;
}

/* Sidebar summary */
.program-sidebar {
  order: -1;
}

@media (min-width: 1024px) {
  .program-sidebar {
    order: 1;
  }
}

.program-summary-card {
  padding: 1.5rem;
  position: sticky;
  top: 7rem;
}

.program-summary-title {
  font-weight: 600;
  margin-bottom: 1rem;
}

.program-summary-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.program-summary-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--muted-foreground);
}

.program-summary-item strong {
  color: var(--foreground);
  font-weight: 600;
}


/* ==========================================================================
   12. ACCORDION
   ========================================================================== */

.accordion-trigger {
  display: flex;
  width: 100%;
  align-items: baseline;
  gap: 1rem;
  padding: 1.5rem 0;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.2s;
}

.accordion-trigger:hover {
  color: var(--primary);
}

.accordion-trigger-number {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  min-width: 2rem;
}

.accordion-chevron {
  transition: transform 0.3s;
  margin-left: auto;
  flex-shrink: 0;
  color: var(--muted-foreground);
}

.accordion-trigger[aria-expanded="true"] .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content.open {
  max-height: 1000px;
}

.accordion-body {
  padding: 1rem 0 1.5rem 3rem;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.accordion-body ul {
  list-style: disc;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}


/* ==========================================================================
   13. VALUE SECTION
   ========================================================================== */

.value {
  position: relative;
}

.value-header {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .value-header {
    margin-bottom: 4rem;
  }
}

.value-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .value-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.value-card {
  padding: 1.75rem;
}

.value-card.span-2 {
  grid-column: span 1;
}

@media (min-width: 1024px) {
  .value-card.span-2 {
    grid-column: span 2;
  }
}

.value-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.875rem;
  background: color-mix(in oklab, var(--primary) 10%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 1.125rem;
}

.value-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.value-card-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}


/* ==========================================================================
   14. AUTHOR SECTION
   ========================================================================== */

.author {
  background-color: var(--night);
  color: var(--night-foreground);
  position: relative;
  overflow: hidden;
}

.author-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .author-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
  }
}

.author-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: color-mix(in oklab, white 8%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.author .section-label {
  color: var(--primary-glow);
}

.author-name {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.author-bio {
  color: var(--night-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.author-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 0.5rem;
}

.author-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--night-foreground);
}

.author-stat-label {
  font-size: 0.8125rem;
  color: var(--night-muted);
  margin-top: 0.125rem;
}


/* ==========================================================================
   15. CASES SECTION
   ========================================================================== */

.cases {
  position: relative;
}

.cases-header {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .cases-header {
    margin-bottom: 4rem;
  }
}

.cases-grid {
  display: grid;
  gap: 1.5rem;
}

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

/* Mobile: horizontal scroll */
@media (max-width: 767px) {
  .cases-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
  }

  .case-card {
    min-width: 85%;
    scroll-snap-align: start;
    flex-shrink: 0;
  }
}

.case-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.case-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.case-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  flex-shrink: 0;
}

.case-name {
  font-weight: 600;
  font-size: 0.9375rem;
}

.case-niche {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.case-result {
  padding: 0.75rem 1rem;
  border-radius: 0.875rem;
  background: color-mix(in oklab, var(--success) 8%, transparent);
  color: var(--success);
  font-size: 0.8125rem;
  font-weight: 600;
}

.case-text {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}


/* ==========================================================================
   16. FIT SECTION
   ========================================================================== */

.fit {
  position: relative;
}

.fit-header {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .fit-header {
    margin-bottom: 4rem;
  }
}

.fit-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .fit-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

.fit-column {
  padding: 2rem;
  border-radius: var(--radius);
}

.fit-column-yes {
  background: color-mix(in oklab, var(--success) 6%, transparent);
  border: 1px solid color-mix(in oklab, var(--success) 15%, transparent);
}

.fit-column-no {
  background: var(--secondary);
  border: 1px solid var(--border);
}

.fit-column-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fit-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.fit-item-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.125rem;
}

.fit-column-yes .fit-item-icon {
  color: var(--success);
}

.fit-column-no .fit-item-icon {
  color: var(--muted-foreground);
}


/* ==========================================================================
   17. PRICING SECTION
   ========================================================================== */

.pricing {
  position: relative;
}

.pricing-header {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .pricing-header {
    margin-bottom: 4rem;
  }
}

.pricing-grid {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.pricing-card {
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
  transform: translateY(-4px);
}

/* Featured card */
.pricing-card.featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-float);
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .pricing-card.featured {
    transform: scale(1.04);
    padding: 2.25rem;
  }

  .pricing-card.featured:hover {
    transform: scale(1.04) translateY(-4px);
  }
}

.pricing-featured-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.pricing-plan-name {
  font-size: 1.125rem;
  font-weight: 600;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.pricing-amount {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.pricing-currency {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--muted-foreground);
}

.pricing-period {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  flex-grow: 1;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.pricing-feature-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
  margin-top: 0.125rem;
}

.pricing-feature.disabled {
  color: var(--muted-foreground);
}

.pricing-feature.disabled .pricing-feature-icon {
  color: var(--muted-foreground);
  opacity: 0.4;
}

/* Comparison table */
.pricing-matrix-toggle {
  text-align: center;
  margin-top: 2.5rem;
}

.pricing-matrix {
  margin-top: 2rem;
  overflow-x: auto;
}

.pricing-matrix table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.pricing-matrix th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--border);
}

.pricing-matrix td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted-foreground);
}

.pricing-matrix tr:last-child td {
  border-bottom: none;
}

.pricing-matrix td:first-child {
  color: var(--foreground);
  font-weight: 500;
}


/* ==========================================================================
   18. GUARANTEE SECTION
   ========================================================================== */

.guarantee {
  position: relative;
}

.guarantee-card {
  max-width: 48rem;
  margin-inline: auto;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .guarantee-card {
    padding: 3.5rem;
    flex-direction: row;
    text-align: left;
    gap: 2rem;
  }
}

.guarantee-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 9999px;
  background: color-mix(in oklab, var(--success) 10%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--success);
  font-size: 1.75rem;
}

.guarantee-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.guarantee-text {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}


/* ==========================================================================
   19. FAQ SECTION
   ========================================================================== */

.faq {
  position: relative;
}

.faq-header {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .faq-header {
    margin-bottom: 4rem;
  }
}

.faq-grid {
  display: grid;
  gap: 0;
}

@media (min-width: 768px) {
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 3rem;
  }
}


/* ==========================================================================
   20. FINAL CTA SECTION
   ========================================================================== */

.final-cta {
  background-color: var(--night);
  color: var(--night-foreground);
  position: relative;
  overflow: hidden;
}

.final-cta-header {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: 3rem;
}

.final-cta .section-label {
  color: var(--primary-glow);
}

.final-cta .section-description {
  color: var(--night-muted);
}

/* Choice cards */
.choice-cards {
  display: grid;
  gap: 1.25rem;
  max-width: 56rem;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .choice-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.choice-card {
  padding: 2rem;
  border-radius: var(--radius);
  background: color-mix(in oklab, white 4%, transparent);
  border: 1px solid color-mix(in oklab, white 8%, transparent);
  transition: all 0.3s;
}

.choice-card.dimmed {
  opacity: 0.55;
}

.choice-card.active {
  background: color-mix(in oklab, var(--primary) 10%, transparent);
  border-color: color-mix(in oklab, var(--primary) 40%, transparent);
  box-shadow: 0 0 60px -20px color-mix(in oklab, var(--primary) 50%, transparent);
}

.choice-card-title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.choice-card-text {
  font-size: 0.875rem;
  color: var(--night-muted);
  line-height: 1.6;
}

/* Countdown */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

.countdown-block {
  text-align: center;
}

.countdown-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--night-foreground);
}

.countdown-label {
  font-size: 0.6875rem;
  color: var(--night-muted);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.countdown-separator {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--night-muted);
  margin-bottom: 1rem;
}


/* ==========================================================================
   21. FOOTER
   ========================================================================== */

.site-footer {
  background-color: var(--night);
  color: var(--night-foreground);
  padding-block: 4rem 2rem;
  border-top: 1px solid color-mix(in oklab, white 6%, transparent);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
  }
}

.footer-brand-text {
  font-size: 0.875rem;
  color: var(--night-muted);
  line-height: 1.6;
  margin-top: 0.75rem;
  max-width: 24rem;
}

.footer-heading {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--night-muted);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-links a {
  font-size: 0.9375rem;
  color: var(--night-foreground);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary-glow);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--night-foreground);
  margin-bottom: 0.5rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid color-mix(in oklab, white 6%, transparent);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-legal {
  font-size: 0.8125rem;
  color: var(--night-muted);
}

.footer-legal-links {
  display: flex;
  gap: 1rem;
}

.footer-legal-links a {
  font-size: 0.8125rem;
  color: var(--night-muted);
  transition: color 0.2s;
}

.footer-legal-links a:hover {
  color: var(--night-foreground);
}


/* ==========================================================================
   22. MOBILE BOTTOM BAR
   ========================================================================== */

.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 0.75rem 1rem;
  background: color-mix(in oklab, var(--card) 80%, transparent);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border-top: 1px solid color-mix(in oklab, var(--foreground) 6%, transparent);
  transform: translateY(100%);
  transition: transform 0.3s;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-bar.visible {
  transform: translateY(0);
}

@media (min-width: 1024px) {
  .mobile-bar {
    display: none;
  }
}

.mobile-bar-text {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
}

.mobile-bar .btn {
  flex-shrink: 0;
}


/* ==========================================================================
   23. DIALOG / MODAL
   ========================================================================== */

.dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--night) 60%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.dialog-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.dialog {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-float);
  width: 100%;
  max-width: 28rem;
  padding: 2rem;
  position: relative;
  transform: translateY(12px) scale(0.97);
  transition: transform 0.3s;
}

.dialog-overlay.open .dialog {
  transform: translateY(0) scale(1);
}

.dialog-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: none;
  background: var(--secondary);
  color: var(--muted-foreground);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.dialog-close:hover {
  background: var(--accent);
  color: var(--foreground);
}

.dialog-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.dialog-description {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

/* Form */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: var(--foreground);
}

.form-input {
  width: 100%;
  padding: 0.625rem 1rem;
  border: 1px solid var(--input);
  border-radius: 0.75rem;
  background: var(--background);
  color: var(--foreground);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 20%, transparent);
}

.form-input::placeholder {
  color: var(--muted-foreground);
}

.form-hint {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

.form-error {
  font-size: 0.75rem;
  color: var(--destructive);
  margin-top: 0.25rem;
}

.form-input.error {
  border-color: var(--destructive);
}

/* Success state */
.dialog-success {
  text-align: center;
  padding: 1rem 0;
}

.dialog-success-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background: color-mix(in oklab, var(--success) 12%, transparent);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.dialog-success-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.dialog-success-text {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
}


/* ==========================================================================
   24. BLOG STYLES
   ========================================================================== */

/* Blog listing */
.blog-listing {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .blog-listing {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .blog-listing {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glass);
}

.blog-card-image {
  aspect-ratio: 16 / 9;
  background: var(--muted);
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.03);
}

.blog-card-body {
  padding: 1.5rem;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.blog-card-title {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
}

.blog-card-title a:hover {
  color: var(--primary);
}

.blog-card-excerpt {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Category badges */
.category-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: color-mix(in oklab, var(--primary) 10%, transparent);
  color: var(--accent-foreground);
}

/* Blog post typography */
.blog-content {
  max-width: 42rem;
  margin-inline: auto;
}

.blog-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.blog-content h2 {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.blog-content h3 {
  font-size: 1.375rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.blog-content p {
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
  color: var(--ink);
}

.blog-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-content a:hover {
  color: var(--primary-glow);
}

.blog-content ul,
.blog-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.blog-content ul {
  list-style: disc;
}

.blog-content ol {
  list-style: decimal;
}

.blog-content li {
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.blog-content blockquote {
  border-left: 3px solid var(--primary);
  padding-left: 1.25rem;
  margin-block: 1.5rem;
  font-style: italic;
  color: var(--muted-foreground);
}

.blog-content pre {
  background: var(--night);
  color: var(--night-foreground);
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
}

.blog-content code {
  background: var(--secondary);
  padding: 0.125rem 0.375rem;
  border-radius: 0.375rem;
  font-size: 0.875em;
}

.blog-content pre code {
  background: none;
  padding: 0;
  border-radius: 0;
}

.blog-content img {
  border-radius: 1rem;
  margin-block: 2rem;
}

.blog-content figure {
  margin-block: 2rem;
}

.blog-content figcaption {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  text-align: center;
  margin-top: 0.75rem;
}

.blog-content hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin-block: 2.5rem;
}

.blog-content table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 1.5rem;
  font-size: 0.9375rem;
}

.blog-content th,
.blog-content td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.blog-content th {
  font-weight: 600;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}

.pagination a {
  color: var(--muted-foreground);
  border: 1px solid var(--border);
}

.pagination a:hover {
  background: var(--secondary);
  color: var(--foreground);
}

.pagination .current {
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  border: none;
}

.pagination .dots {
  border: none;
  color: var(--muted-foreground);
}

.pagination .prev,
.pagination .next {
  width: auto;
  padding-inline: 1rem;
  gap: 0.375rem;
}


/* ==========================================================================
   25. WORDPRESS-SPECIFIC UTILITIES
   ========================================================================== */

/* Screen reader text (WP pattern) */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.screen-reader-text:focus {
  display: block;
  top: 5px;
  left: 5px;
  width: auto;
  height: auto;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--background);
  color: var(--foreground);
  box-shadow: var(--shadow-glass);
  border-radius: 0.5rem;
  clip: auto;
  z-index: 100000;
}

/* WP alignment */
.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin-inline: auto;
}

.alignwide {
  max-width: 60rem;
  margin-inline: auto;
}

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

/* WP captions */
.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  text-align: center;
  margin-top: 0.5rem;
}

/* WP gallery */
.gallery {
  display: grid;
  gap: 0.5rem;
}

.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }

.gallery-item img {
  border-radius: 0.75rem;
}

/* Post navigation */
.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.post-navigation a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--primary);
  transition: color 0.2s;
}

.post-navigation a:hover {
  color: var(--primary-glow);
}

/* Comments */
.comments-area {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.comments-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.comment-body {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--secondary);
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.comment-author {
  font-weight: 600;
  font-size: 0.9375rem;
}

.comment-date {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.comment-content p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink);
}

.comment-reply-link {
  font-size: 0.8125rem;
  color: var(--primary);
  font-weight: 500;
  margin-top: 0.5rem;
  display: inline-block;
}

/* Comment form */
.comment-respond {
  margin-top: 2rem;
}

.comment-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.625rem 1rem;
  border: 1px solid var(--input);
  border-radius: 0.75rem;
  background: var(--background);
  color: var(--foreground);
  font-family: inherit;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
  outline: none;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 20%, transparent);
}

.comment-form textarea {
  min-height: 8rem;
  resize: vertical;
}

.comment-form .submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-weight: 500;
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  padding: 0.75rem 2rem;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.comment-form .submit:hover {
  box-shadow: 0 0 40px -8px var(--primary);
  transform: translateY(-1px);
}


/* ==========================================================================
   26. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
