/* Design tokens + glass UI (ported from frontend/app/globals.css) */

/* Quicksand font for logo */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@700&display=swap');

:root {
  --font-logo: 'Quicksand', sans-serif;
  /* Light theme */
  --md-background: 255 251 254; /* #FFFBFE */
  --md-on-background: 31 23 61; /* #1F173D */
  --md-primary: 138 107 255; /* #8A6BFF */
  --md-on-primary: 255 255 255;
  --md-secondary-container: 255 214 118; /* #FFD676 */
  --md-on-secondary-container: 31 23 61;
  --md-tertiary: 199 153 255; /* #C799FF */
  --md-surface-container: 248 244 255; /* #F8F4FF */
  --md-surface-container-low: 238 233 255; /* #EEE9FF */
  --md-outline: 166 150 216; /* #A696D8 */
  --md-on-surface-variant: 102 92 133; /* #665C85 */

  --sidebar-bg: linear-gradient(180deg, rgba(248,244,255,0.95) 0%, rgba(238,233,255,0.95) 45%, rgba(228,220,255,0.95) 100%);
  --sidebar-aurora: radial-gradient(800px circle at 20% 10%, rgba(138,107,255,0.25) 0%, transparent 55%), radial-gradient(600px circle at 70% 70%, rgba(255,214,118,0.20) 0%, transparent 60%);
  --app-bg: radial-gradient(900px circle at 18% 22%, rgb(var(--md-primary) / 0.08), transparent 55%), radial-gradient(900px circle at 60% 82%, rgb(var(--md-secondary-container) / 0.10), transparent 55%), linear-gradient(180deg, rgba(255,251,254,1) 0%, rgba(248,244,255,1) 55%, rgba(238,233,255,1) 100%);
}

html.dark {
  /* Dark theme */
  --md-background: 14 12 32; /* #0E0C20 */
  --md-on-background: 247 244 255; /* #F7F4FF */
  --md-primary: 138 107 255; /* #8A6BFF */
  --md-on-primary: 255 255 255;
  --md-secondary-container: 242 201 76; /* #F2C94C */
  --md-on-secondary-container: 31 23 61;
  --md-tertiary: 199 153 255; /* #C799FF */
  --md-surface-container: 20 16 45; /* #14102D */
  --md-surface-container-low: 31 23 61; /* #1F173D */
  --md-outline: 106 93 140; /* #6A5D8C */
  --md-on-surface-variant: 196 189 218; /* #C4BDDA */

  --sidebar-bg: linear-gradient(180deg, rgba(31,23,61,1) 0%, rgba(20,16,45,1) 60%, rgba(14,12,32,1) 100%);
  --sidebar-aurora: radial-gradient(900px circle at 20% 15%, rgba(103,80,164,0.35) 0%, transparent 55%), radial-gradient(700px circle at 70% 75%, rgba(125,82,96,0.28) 0%, transparent 60%);
  --app-bg: radial-gradient(900px circle at 18% 22%, rgb(var(--md-primary) / 0.10), transparent 55%), linear-gradient(180deg, rgba(31,23,61,1) 0%, rgba(20,16,45,1) 60%, rgba(14,12,32,1) 100%), radial-gradient(900px circle at 60% 82%, rgb(var(--md-secondary-container) / 0.10), transparent 55%);
}

body {
  color: rgb(var(--md-on-background));
  background: rgb(var(--md-background));
  background-image: var(--app-bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* A11y: skip link */
.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  transform: translateY(-200%);
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgb(var(--md-primary));
  color: rgb(var(--md-on-primary));
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.skip-link:focus {
  transform: translateY(0);
}

a { text-underline-offset: 0.15em; }

/* Accessibility: visible focus */
:focus-visible {
  outline: 2px solid rgb(var(--md-primary) / 0.55);
  outline-offset: 3px;
}

/* Containers */
.eshopseo-container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 28px;
}

.glass-content {
  position: relative;
  border-radius: 24px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(255,255,255,0.40);
  border: 1px solid rgba(255,255,255,0.50);
  box-shadow: 0 8px 32px rgba(17,12,34,0.06);
  overflow: hidden;
}

html.dark .glass-content {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.30);
}

.glass-content::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: var(--sidebar-aurora);
  opacity: 0.12;
}

html.dark .glass-content::before { opacity: 0.18; }

.md-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transition: box-shadow 300ms ease, border-color 300ms ease, transform 300ms ease;
}

html.dark .md-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

.md-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.10);
  border-color: rgba(255,255,255,0.30);
}

html.dark .md-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.40);
  border-color: rgba(255,255,255,0.15);
}

/* Buttons */
.md-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: transform 150ms ease, background-color 250ms ease, box-shadow 250ms ease;
}

.md-btn:active { transform: translateY(1px); }

.md-btn-filled {
  color: rgb(var(--md-on-primary));
  background: rgb(var(--md-primary));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 8px 20px rgba(103,80,164,0.14);
}

.md-btn-filled:hover {
  background: rgb(var(--md-primary) / 0.90);
  box-shadow: 0 10px 26px rgba(103,80,164,0.16);
}

.md-btn-outline {
  color: rgb(var(--md-primary));
  background: rgb(var(--md-background) / 0.50);
  border: 1px solid rgb(var(--md-outline) / 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.md-btn-outline:hover {
  background: rgb(var(--md-background) / 0.55);
}

/* ========================================
   PUBLIC HEADER (floating glass pill)
   ======================================== */

.public-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  pointer-events: none;
}

.header-glow {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 720px;
  height: 96px;
  filter: blur(60px);
  background: radial-gradient(closest-side, rgba(79,70,229,0.18), transparent);
  pointer-events: none;
}

html.dark .header-glow {
  background: radial-gradient(closest-side, rgba(139,92,246,0.28), transparent);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px 0;
}

.header-pill {
  position: relative;
  pointer-events: auto;
  border-radius: 16px;
  border: 1px solid rgba(165,180,252,0.8);
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 18px 60px rgba(17,12,34,0.08);
}

html.dark .header-pill {
  border-color: rgba(255,255,255,0.08);
  background: rgba(31,23,61,0.65);
  box-shadow: 0 18px 60px rgba(0,0,0,0.35);
}

.header-aurora {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--sidebar-aurora);
  opacity: 0.18;
  pointer-events: none;
}

html.dark .header-aurora { opacity: 0.25; }

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
}

/* Logo */
.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 160px;
}

.header-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.header-brand-name {
  font-family: var(--font-logo);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgb(var(--md-on-background));
}

/* Mobile menu toggle */
.header-menu-toggle {
  display: flex;
  order: 10;
}

@media (min-width: 768px) {
  .header-menu-toggle { display: none !important; }
}

.header-menu-toggle .icon-menu { display: block; }
.header-menu-toggle .icon-close { display: none; }

.header-menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.header-menu-toggle[aria-expanded="true"] .icon-close { display: block; }

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

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

/* Mobile nav overlay */
.header-nav.mobile-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(165,180,252,0.8);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 18px 60px rgba(17,12,34,0.12);
  z-index: 100;
  gap: 4px;
}

html.dark .header-nav.mobile-open {
  border-color: rgba(255,255,255,0.08);
  background: rgba(31,23,61,0.95);
  box-shadow: 0 18px 60px rgba(0,0,0,0.40);
}

.header-nav.mobile-open .header-nav-menu {
  flex-direction: column;
  width: 100%;
  gap: 4px;
}

.header-nav.mobile-open .header-nav-menu li {
  width: 100%;
}

.header-nav.mobile-open .header-nav-menu li a {
  width: 100%;
  justify-content: flex-start;
  padding: 12px 16px;
}

@media (min-width: 768px) {
  .header-nav.mobile-open {
    position: static;
    flex-direction: row;
    padding: 0;
    border: none;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    margin-top: 0;
  }
  
  .header-nav.mobile-open .header-nav-menu {
    flex-direction: row;
    width: auto;
  }
  
  .header-nav.mobile-open .header-nav-menu li {
    width: auto;
  }
  
  .header-nav.mobile-open .header-nav-menu li a {
    width: auto;
    padding: 8px 12px;
  }
}

/* WordPress menu styling */
.header-nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-nav-menu li {
  margin: 0;
  padding: 0;
}

.header-nav-menu li a,
.header-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: rgb(var(--md-on-surface-variant));
  text-decoration: none;
  border-radius: 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease;
}

.header-nav-menu li a:hover,
.header-nav-link:hover {
  color: rgb(var(--md-on-background));
  background: rgba(255,255,255,0.40);
}

html.dark .header-nav-menu li a:hover,
html.dark .header-nav-link:hover {
  background: rgba(255,255,255,0.10);
}

.dropdown-chevron {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

/* Dropdown */
.header-dropdown {
  position: relative;
}

/* Add invisible bridge between parent and dropdown to prevent menu from closing */
.header-dropdown::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
  pointer-events: none;
}

.header-dropdown:hover::after,
.header-dropdown:focus-within::after {
  pointer-events: auto;
}

.header-dropdown-menu {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 4px;
  width: 260px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(165,180,252,0.8);
  background: var(--sidebar-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 18px 60px rgba(17,12,34,0.12);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease;
}

html.dark .header-dropdown-menu {
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 18px 60px rgba(0,0,0,0.40);
}

.header-dropdown:hover .header-dropdown-menu,
.header-dropdown:focus-within .header-dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.header-dropdown-item {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: rgb(var(--md-on-surface-variant));
  text-decoration: none;
  border-radius: 12px;
  transition: color 150ms ease, background 150ms ease;
}

.header-dropdown-item:hover {
  color: rgb(var(--md-on-background));
  background: rgba(255,255,255,0.60);
}

html.dark .header-dropdown-item:hover {
  background: rgba(255,255,255,0.10);
}

/* Actions */
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: auto;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .header-actions { min-width: 280px; }
}

.header-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(165,180,252,0.8);
  background: rgba(255,255,255,0.80);
  box-shadow: 0 8px 20px rgba(17,12,34,0.08);
  cursor: pointer;
  transition: background 150ms ease;
}

html.dark .header-icon-btn {
  border-color: rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  box-shadow: none;
}

.header-icon-btn:hover {
  background: rgba(255,255,255,0.95);
}

html.dark .header-icon-btn:hover {
  background: rgba(255,255,255,0.12);
}

.header-icon-btn svg {
  width: 18px;
  height: 18px;
  color: rgb(var(--md-on-background) / 0.80);
}

/* Show sun in dark mode, moon in light mode */
.icon-sun { display: none; }
.icon-moon { display: block; }

html.dark .icon-sun { display: block; }
html.dark .icon-moon { display: none; }

/* Sign-up icon button - show on mobile only, hide on desktop */
.header-icon-btn.header-signup-icon {
  display: flex !important;
}

@media (min-width: 768px) {
  .header-icon-btn.header-signup-icon { display: none !important; }
}

.header-btn-outline {
  display: none !important;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: rgb(var(--md-on-surface-variant));
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid rgba(165,180,252,0.8);
  background: rgba(255,255,255,0.80);
  box-shadow: 0 8px 20px rgba(17,12,34,0.08);
  transition: color 150ms ease, background 150ms ease;
}

@media (min-width: 768px) {
  .header-btn-outline { display: inline-flex !important; }
}

html.dark .header-btn-outline {
  border-color: rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  box-shadow: none;
}

.header-btn-outline:hover {
  color: rgb(var(--md-on-background));
  background: rgba(255,255,255,0.95);
}

html.dark .header-btn-outline:hover {
  background: rgba(255,255,255,0.12);
}

.header-btn-primary {
  display: none !important;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: rgb(var(--md-on-background));
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid rgba(165,180,252,0.9);
  background: rgba(255,255,255,0.80);
  transition: background 150ms ease;
}

@media (min-width: 768px) {
  .header-btn-primary { display: inline-flex !important; }
}

html.dark .header-btn-primary {
  border-color: rgba(255,255,255,0.20);
  background: rgba(255,255,255,0.16);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

.header-btn-primary:hover {
  background: rgba(255,255,255,0.95);
}

html.dark .header-btn-primary:hover {
  background: rgba(255,255,255,0.22);
}

/* Legacy footer separator */
footer.wp-block-group .wp-block-separator {
  border-color: rgb(var(--md-outline) / 0.25);
}

html.dark footer.wp-block-group .wp-block-separator {
  border-color: rgba(255,255,255,0.10);
}

/* Hero */
.hero {
  padding: 80px 0 48px;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgb(var(--md-on-background) / 0.80);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero__title {
  margin: 28px 0 18px;
  font-size: clamp(48px, 5.5vw, 80px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.hero__title .highlight { color: rgb(var(--md-primary)); }

.hero__subtitle {
  max-width: 860px;
  margin: 0 auto 32px;
  color: rgb(var(--md-on-surface-variant));
  font-size: 22px;
  line-height: 1.6;
}

.hero__cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.stats-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 720px) {
  .hero { padding-top: 80px; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* Blog Archive */
.blog-archive {
  padding-top: 120px;
  padding-bottom: 40px;
}

.blog-archive__header {
  text-align: center;
  margin-bottom: 20px;
}

.blog-archive__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  background: linear-gradient(135deg, rgb(var(--md-on-background)) 0%, rgb(var(--md-primary)) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-archive__subtitle {
  font-size: 18px;
  color: rgb(var(--md-on-surface-variant));
  margin: 0;
}

.blog-archive__content {
  padding-bottom: 80px;
}

.blog-grid {
  gap: 24px !important;
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.15);
}

html.dark .blog-card:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,0.45);
}

.blog-card__image {
  margin: 0 !important;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.blog-card:hover .blog-card__image img {
  transform: scale(1.05);
}

.blog-card__content {
  padding: 20px !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.blog-card__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 !important;
}

.blog-card__categories a {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgb(var(--md-primary));
  background: rgb(var(--md-primary) / 0.12);
  border-radius: 6px;
  text-decoration: none;
  transition: background 200ms ease;
}

.blog-card__categories a:hover {
  background: rgb(var(--md-primary) / 0.20);
}

.blog-card__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 !important;
}

.blog-card__title a {
  color: rgb(var(--md-on-background));
  text-decoration: none;
  transition: color 200ms ease;
}

.blog-card__title a:hover {
  color: rgb(var(--md-primary));
}

.blog-card__date {
  font-size: 13px;
  color: rgb(var(--md-on-surface-variant));
  margin: 0 !important;
}

.blog-card__excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: rgb(var(--md-on-surface-variant));
  margin: 0 !important;
  flex: 1;
}

.blog-card__excerpt p {
  margin: 0;
}

.blog-card__link {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: rgb(var(--md-primary));
  text-decoration: none;
  margin-top: auto;
  transition: gap 200ms ease;
}

.blog-card__link:hover {
  gap: 4px;
}

/* Blog Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgb(var(--md-outline) / 0.15);
}

.blog-pagination a,
.blog-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
  color: rgb(var(--md-on-surface-variant));
  background: rgb(var(--md-surface-variant) / 0.30);
  border-radius: 10px;
  text-decoration: none;
  transition: background 200ms ease, color 200ms ease;
}

.blog-pagination a:hover {
  background: rgb(var(--md-primary) / 0.15);
  color: rgb(var(--md-primary));
}

.blog-pagination .current {
  background: rgb(var(--md-primary));
  color: rgb(var(--md-on-primary));
}

/* Legacy post card styles */
.post-card__meta { color: rgb(var(--md-on-surface-variant)); font-size: 13px; }
.post-card__title { margin: 10px 0 10px; font-size: 20px; line-height: 1.2; }
.post-card__excerpt { color: rgb(var(--md-on-surface-variant)); }

/* ========================================
   LANDING PAGE SECTIONS
   ======================================== */

/* Section spacing */
.section { padding: 80px 0; }
.section--centered { text-align: center; }

.eshopseo-container--narrow { max-width: 800px; }

/* Section headers */
.section-header { text-align: center; margin-bottom: 48px; }

.kicker {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: rgb(var(--md-primary));
  background: rgb(var(--md-primary) / 0.10);
  border: 1px solid rgb(var(--md-primary) / 0.20);
}

html.dark .kicker {
  color: #a78bfa;
  background: rgba(167,139,250,0.10);
  border-color: rgba(167,139,250,0.20);
}

.kicker--green {
  color: #22c55e;
  background: rgba(34,197,94,0.10);
  border-color: rgba(34,197,94,0.20);
}

.section-title {
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 18px;
  letter-spacing: -0.025em;
}

.section-subtitle {
  font-size: 22px;
  color: rgb(var(--md-on-surface-variant));
  max-width: 840px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Hero section enhancements */
.hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 100px;
  padding-bottom: 60px;
}

.hero-glow {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  border-radius: 50%;
  filter: blur(80px);
  background: rgb(var(--md-primary) / 0.15);
  pointer-events: none;
}

html.dark .hero-glow { background: rgb(var(--md-primary) / 0.20); }

.hero__badge-icon {
  width: 16px;
  height: 16px;
  color: rgb(var(--md-primary));
}

html.dark .hero__badge {
  background: rgb(var(--md-primary) / 0.10);
  border-color: rgb(var(--md-primary) / 0.20);
  color: #c4b5fd;
}

.hero__title .highlight {
  background: linear-gradient(135deg, #8b5cf6, #a855f7, #d946ef);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__bullets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 32px;
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.hero__bullets li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgb(var(--md-on-surface-variant));
}

.check-icon {
  width: 16px;
  height: 16px;
  color: #22c55e;
  flex-shrink: 0;
}

html.dark .check-icon { color: #4ade80; }

/* Primary button (gradient) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 20px 40px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 999px;
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(139,92,246,0.25);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.btn-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 16px 40px rgba(139,92,246,0.35);
}

.arrow-icon, .play-icon {
  width: 20px;
  height: 20px;
}

/* Secondary button (outline) */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 20px 40px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid rgb(var(--md-outline) / 0.50);
  color: rgb(var(--md-on-background));
  text-decoration: none;
  background: transparent;
  transition: border-color 200ms ease, background 200ms ease;
}

.btn-secondary:hover {
  border-color: rgb(var(--md-primary));
  background: rgb(var(--md-primary) / 0.05);
}

html.dark .btn-secondary {
  border-color: rgba(255,255,255,0.15);
  color: rgb(var(--md-on-surface-variant));
}

html.dark .btn-secondary:hover {
  border-color: rgb(var(--md-primary));
  background: rgba(255,255,255,0.05);
}

/* Secondary solid button */
.btn-secondary-solid {
  display: block;
  text-align: center;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(255,255,255,0.10);
  color: rgb(var(--md-on-background));
  transition: background 200ms ease;
}

.btn-secondary-solid:hover {
  background: rgba(255,255,255,0.20);
}

html.dark .btn-secondary-solid {
  background: rgba(255,255,255,0.10);
  color: #fff;
}

html.dark .btn-secondary-solid:hover {
  background: rgba(255,255,255,0.18);
}

/* Trust section */
.hero__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero__avatars {
  display: flex;
  margin-right: 4px;
}

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  margin-left: -8px;
  border: 2px solid rgb(var(--md-background));
  background: rgb(var(--md-surface-container-low));
  color: rgb(var(--md-on-surface-variant));
}

.avatar:first-child { margin-left: 0; }

html.dark .avatar {
  background: rgb(var(--md-surface-container-low));
  border-color: rgb(var(--md-background));
}

.hero__stars {
  display: flex;
  gap: 2px;
}

.hero__stars svg {
  width: 16px;
  height: 16px;
  color: #facc15;
}

.hero__trusted-text {
  font-size: 13px;
  color: rgb(var(--md-on-surface-variant));
}

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.stat-item { text-align: center; }

.stat-value {
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 800;
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  font-weight: 500;
  color: rgb(var(--md-on-surface-variant));
}

/* Workflow tabs section - Apitally style */
.workflow-section {
  padding: 40px 0 60px;
}

.workflow-tabs {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: flex-end !important;
  gap: 8px !important;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(103,80,164,0.15);
}

html.dark .workflow-tabs {
  border-bottom-color: rgba(255,255,255,0.10);
}

.workflow-tab {
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px;
  padding: 12px 20px 16px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: rgb(var(--md-on-surface-variant));
  cursor: pointer;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.workflow-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: rgb(var(--md-primary));
}

.workflow-tab:hover {
  color: rgb(var(--md-on-background));
}

.workflow-tab.active {
  color: rgb(var(--md-primary));
  font-weight: 600;
}

.workflow-tab.active::after {
  width: 100%;
}

.workflow-tab-icon {
  width: 24px;
  height: 24px;
  opacity: 0.6;
}

.workflow-tab.active .workflow-tab-icon {
  opacity: 1;
}

.workflow-content {
  position: relative;
  overflow: visible;
}

.workflow-panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: scale(0.98) translateY(8px);
  pointer-events: none;
  transition: opacity 500ms ease, transform 500ms ease;
  z-index: 1;
}

.workflow-panel.active {
  position: relative;
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
  z-index: 2;
}

.workflow-image-placeholder {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(103,80,164,0.20);
  background: rgba(255,255,255,0.60);
  box-shadow: 0 20px 60px rgba(17,12,34,0.12);
}

html.dark .workflow-image-placeholder {
  background: rgba(31,23,61,0.60);
  border-color: rgba(255,255,255,0.10);
  box-shadow: 0 20px 60px rgba(0,0,0,0.40);
}

.workflow-image-placeholder svg,
.workflow-image-placeholder img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .workflow-tabs {
    overflow-x: auto;
    justify-content: flex-start !important;
    -webkit-overflow-scrolling: touch;
  }
  
  .workflow-tab {
    padding: 10px 14px 14px;
    font-size: 11px;
  }
  
  .workflow-tab-icon {
    width: 20px;
    height: 20px;
  }
}

/* Comparison section (problem section) - sleek glassmorphism style */
.comparison-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(138,107,255,0.20);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: linear-gradient(135deg, rgba(138,107,255,0.08) 0%, rgba(199,153,255,0.05) 50%, rgba(255,214,118,0.06) 100%);
}

html.dark .comparison-wrapper {
  border-color: rgba(138,107,255,0.25);
  background: linear-gradient(135deg, rgba(138,107,255,0.12) 0%, rgba(199,153,255,0.08) 50%, rgba(242,201,76,0.05) 100%);
}

.comparison-wrapper__glow {
  position: absolute;
  top: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  background: rgba(239,68,68,0.40);
  pointer-events: none;
}

.comparison-wrapper__glow--right {
  top: auto;
  left: auto;
  bottom: -50px;
  right: -50px;
  background: rgba(34,197,94,0.40);
}

.comparison-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.comparison-col {
  padding: 36px 40px;
  position: relative;
}

.comparison-col--bad {
  background: rgba(239,68,68,0.03);
}

html.dark .comparison-col--bad {
  background: rgba(239,68,68,0.05);
}

.comparison-col--good {
  background: rgba(34,197,94,0.03);
}

html.dark .comparison-col--good {
  background: rgba(34,197,94,0.05);
}

.comparison-col--bad::after {
  content: '';
  position: absolute;
  top: 20%;
  bottom: 20%;
  right: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(138,107,255,0.30), transparent);
}

.comparison-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.comparison-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 16px;
}

.comparison-icon--bad {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.25);
  color: #ef4444;
}

.comparison-icon--good {
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.25);
  color: #22c55e;
}

.comparison-label {
  font-size: 15px;
  font-weight: 700;
  color: rgb(var(--md-on-surface-variant));
  letter-spacing: 0.01em;
}

.comparison-label--bad {
  color: #ef4444;
}

.comparison-label--good {
  color: #22c55e;
}

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

.comparison-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  line-height: 1.5;
  color: rgb(var(--md-on-surface-variant));
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.30);
  border: 1px solid rgba(255,255,255,0.20);
  transition: transform 0.2s ease, background 0.2s ease;
}

html.dark .comparison-list li {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}

.comparison-list li:hover {
  transform: translateX(4px);
}

.comparison-col--bad .comparison-list li:hover {
  background: rgba(239,68,68,0.08);
}

.comparison-col--good .comparison-list li:hover {
  background: rgba(34,197,94,0.08);
}

.comparison-col--good .comparison-list li {
  color: rgb(var(--md-on-background));
}

.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
}

.icon-box--red {
  background: rgba(239,68,68,0.15);
  color: #ef4444;
}

.icon-box--green {
  background: rgba(34,197,94,0.15);
  color: #22c55e;
}

.check-sm {
  width: 13px;
  height: 13px;
}

/* Steps grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card { padding: 32px; }

.step-number {
  font-size: 56px;
  font-weight: 900;
  color: rgb(var(--md-primary) / 0.08);
  line-height: 1;
  margin-bottom: 16px;
  transition: color 200ms ease;
}

html.dark .step-number { color: rgba(255,255,255,0.05); }

.step-card:hover .step-number { color: rgb(var(--md-primary) / 0.20); }

.step-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 14px;
}

.step-desc {
  font-size: 14px;
  color: rgb(var(--md-on-surface-variant));
  margin: 0 0 16px;
  line-height: 1.6;
}

.step-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgb(var(--md-primary) / 0.10);
  color: rgb(var(--md-primary));
}

html.dark .step-badge {
  background: rgba(167,139,250,0.10);
  color: #a78bfa;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card { padding: 24px; }

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgb(var(--md-primary) / 0.10);
  margin-bottom: 20px;
  transition: background 200ms ease;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: rgb(var(--md-primary));
}

html.dark .feature-icon {
  background: rgba(167,139,250,0.10);
}

html.dark .feature-icon svg { color: #a78bfa; }

.feature-card:hover .feature-icon {
  background: rgb(var(--md-primary) / 0.18);
}

.feature-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
}

.feature-desc {
  font-size: 16px;
  color: rgb(var(--md-on-surface-variant));
  margin: 0;
  line-height: 1.6;
}

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

.testimonial-card { padding: 24px; }

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
}

.testimonial-stars svg {
  width: 16px;
  height: 16px;
  color: #facc15;
}

.testimonial-quote {
  font-size: 14px;
  line-height: 1.6;
  color: rgb(var(--md-on-surface-variant));
  margin: 0 0 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  background: rgb(var(--md-primary) / 0.15);
  color: rgb(var(--md-primary));
}

html.dark .testimonial-avatar {
  background: rgba(167,139,250,0.15);
  color: #a78bfa;
}

.testimonial-name {
  font-size: 14px;
  font-weight: 600;
}

.testimonial-role {
  font-size: 12px;
  color: rgb(var(--md-on-surface-variant));
}

/* Pricing */
.trial-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 40px;
  margin-bottom: 40px;
  background: linear-gradient(135deg, rgb(var(--md-primary) / 0.15), rgba(168,85,247,0.08));
  border: 2px solid rgb(var(--md-primary) / 0.30);
}

html.dark .trial-card {
  background: linear-gradient(135deg, rgb(var(--md-primary) / 0.20), rgba(168,85,247,0.10));
  border-color: rgb(var(--md-primary) / 0.40);
}

.trial-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  filter: blur(80px);
  background: rgb(var(--md-primary) / 0.30);
  pointer-events: none;
}

.trial-glow--alt {
  top: auto;
  right: auto;
  bottom: -50px;
  left: -50px;
  background: rgb(var(--md-secondary-container) / 0.30);
}

.trial-content {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.trial-info { flex: 1; min-width: 280px; }

.trial-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: rgb(var(--md-primary) / 0.20);
  color: rgb(var(--md-primary));
  margin-bottom: 12px;
}

html.dark .trial-badge {
  background: rgba(167,139,250,0.20);
  color: #c4b5fd;
}

.trial-title {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 12px;
}

.trial-desc {
  font-size: 16px;
  color: rgb(var(--md-on-surface-variant));
  margin: 0 0 16px;
}

.trial-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trial-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgb(var(--md-on-surface-variant));
}

.trial-action { text-align: center; }

.trial-price {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 4px;
}

.trial-period {
  font-size: 14px;
  color: rgb(var(--md-on-surface-variant));
  margin-bottom: 20px;
}

/* Pricing grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pricing-card {
  padding: 28px;
  position: relative;
}

.pricing-card--popular {
  border: 2px solid rgb(var(--md-primary) / 0.50);
  background: rgba(255,255,255,0.15);
}

html.dark .pricing-card--popular {
  border-color: rgb(var(--md-primary) / 0.60);
  background: rgba(255,255,255,0.08);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgb(var(--md-primary));
  color: #fff;
}

.pricing-price {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 4px;
}

.pricing-period {
  font-size: 14px;
  font-weight: 400;
  color: rgb(var(--md-on-surface-variant));
}

.pricing-name {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
}

.pricing-desc {
  font-size: 14px;
  color: rgb(var(--md-on-surface-variant));
  margin: 0 0 16px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgb(var(--md-on-surface-variant));
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item { overflow: hidden; }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: rgb(var(--md-on-surface-variant));
  transition: transform 200ms ease;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 20px;
  font-size: 15px;
  line-height: 1.7;
  color: rgb(var(--md-on-surface-variant));
  margin: 0;
}

/* Final CTA */
.final-cta {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 64px 32px;
  text-align: center;
  background: linear-gradient(135deg, rgb(var(--md-primary) / 0.15), rgba(168,85,247,0.08));
}

html.dark .final-cta {
  background: linear-gradient(135deg, rgb(var(--md-primary) / 0.20), rgba(168,85,247,0.10));
}

.final-cta__glow {
  position: absolute;
  top: -80px;
  left: 25%;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  filter: blur(80px);
  background: rgb(var(--md-primary) / 0.30);
  pointer-events: none;
}

.final-cta__glow--alt {
  top: auto;
  left: auto;
  bottom: -80px;
  right: 25%;
  background: rgba(168,85,247,0.25);
}

.final-cta__content { position: relative; }

.final-cta__title {
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 800;
  margin: 0 0 18px;
}

.final-cta__subtitle {
  font-size: 22px;
  color: rgb(var(--md-on-surface-variant));
  margin: 0 0 36px;
}

.final-cta__note {
  font-size: 14px;
  color: rgb(var(--md-on-surface-variant));
  margin: 16px 0 0;
}

/* ========================================
   PRICING V2 (matching app pricing page)
   ======================================== */

/* Pricing page specific */
.pricing-page {
  position: relative;
  min-height: 100vh;
  padding-top: 140px;
  padding-bottom: 80px;
  overflow: hidden;
}

.pricing-page__bg {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,251,254,1) 0%, rgba(248,244,255,1) 55%, rgba(238,233,255,1) 100%);
  z-index: -2;
}

html.dark .pricing-page__bg {
  background: linear-gradient(180deg, rgba(31,23,61,1) 0%, rgba(20,16,45,1) 60%, rgba(14,12,32,1) 100%);
}

.pricing-page__aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(800px circle at 20% 10%, rgba(138,107,255,0.25) 0%, transparent 55%),
              radial-gradient(600px circle at 70% 70%, rgba(255,214,118,0.20) 0%, transparent 60%);
}

html.dark .pricing-page__aurora {
  background: radial-gradient(900px circle at 20% 15%, rgba(103,80,164,0.35) 0%, transparent 55%),
              radial-gradient(700px circle at 70% 75%, rgba(125,82,96,0.28) 0%, transparent 60%);
}

.pricing-page__header {
  text-align: center;
  margin-bottom: 48px;
}

.pricing-page__title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.pricing-page__subtitle {
  font-size: 18px;
  color: rgb(var(--md-on-surface-variant));
  max-width: 600px;
  margin: 0 auto;
}

/* Pricing grid v2 */
.pricing-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

@media (max-width: 900px) {
  .pricing-grid-v2 { grid-template-columns: 1fr; }
}

.pricing-card-v2 {
  position: relative;
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.pricing-card-v2 * {
  box-sizing: border-box;
}

.pricing-card-v2--popular {
  border: 2px solid rgb(var(--md-primary));
}

.popular-badge-v2 {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgb(var(--md-primary));
  margin-bottom: 12px;
}

.pricing-name-v2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
}

.pricing-price-v2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
}

.pricing-period-v2 {
  font-size: 16px;
  font-weight: 400;
  color: rgb(var(--md-on-surface-variant));
  margin-left: 4px;
}

.pricing-desc-v2 {
  font-size: 14px;
  color: rgb(var(--md-on-surface-variant));
  margin: 0 0 20px;
}

.pricing-features-v2 {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}

.pricing-features-v2 li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: rgb(var(--md-on-surface-variant));
}

.pricing-features-v2 .check-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-btn-v2 {
  display: block;
  padding: 14px 24px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid rgba(31,23,61,0.25);
  background: transparent;
  color: rgb(var(--md-on-background));
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

html.dark .pricing-btn-v2 {
  border-color: rgba(255,255,255,0.20);
}

.pricing-btn-v2:hover {
  background: rgb(var(--md-primary) / 0.08);
  border-color: rgb(var(--md-primary) / 0.40);
}

.pricing-btn-v2--filled {
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
  border-color: transparent;
  color: #fff;
}

.pricing-btn-v2--filled:hover {
  background: linear-gradient(135deg, #7c4ddb, #9945e0);
  border-color: transparent;
}

/* Trial Banner */
.trial-banner {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(138,107,255,0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 40px;
  margin-bottom: 64px;
  background: linear-gradient(135deg, rgba(138,107,255,0.12) 0%, rgba(199,153,255,0.08) 50%, rgba(255,214,118,0.10) 100%);
}

html.dark .trial-banner {
  border-color: rgba(138,107,255,0.30);
  background: linear-gradient(135deg, rgba(138,107,255,0.15) 0%, rgba(199,153,255,0.10) 50%, rgba(242,201,76,0.08) 100%);
}

.trial-banner__glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 256px;
  height: 256px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.30;
  background: rgba(138,107,255,0.40);
  pointer-events: none;
}

.trial-banner__glow--alt {
  top: auto;
  right: auto;
  bottom: 0;
  left: 0;
  width: 192px;
  height: 192px;
  opacity: 0.20;
  background: rgba(242,201,76,0.50);
}

.trial-banner__content {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.trial-banner__info {
  flex: 1;
  min-width: 280px;
}

.trial-banner__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: rgb(var(--md-primary));
  margin-bottom: 12px;
}

.sparkle-icon {
  width: 20px;
  height: 20px;
}

.trial-banner__title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  margin: 0 0 10px;
}

.trial-banner__desc {
  font-size: 16px;
  color: rgb(var(--md-on-surface-variant));
  margin: 0;
  max-width: 500px;
}

.trial-banner__action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.trial-banner__price {
  font-size: 40px;
  font-weight: 800;
}

.trial-banner__price span {
  font-size: 16px;
  font-weight: 400;
  color: rgb(var(--md-on-surface-variant));
  margin-left: 6px;
}

.trial-banner__note {
  font-size: 13px;
  color: rgb(var(--md-on-surface-variant));
  margin: 0;
}

/* Add-on Packs */
.addons-section {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.addons-title {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 8px;
}

.addons-subtitle {
  font-size: 15px;
  color: rgb(var(--md-on-surface-variant));
  margin: 0 0 28px;
}

.addons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

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

.addon-card {
  padding: 28px 20px;
  text-align: center;
}

.addon-amount {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 4px;
}

.addon-label {
  font-size: 14px;
  color: rgb(var(--md-on-surface-variant));
  margin-bottom: 12px;
}

.addon-price {
  font-size: 22px;
  font-weight: 700;
  color: rgb(var(--md-primary));
  margin-bottom: 16px;
}

.addon-btn {
  display: block;
  padding: 12px 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid rgba(31,23,61,0.25);
  background: transparent;
  color: rgb(var(--md-on-background));
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

html.dark .addon-btn {
  border-color: rgba(255,255,255,0.20);
}

.addon-btn:hover {
  background: rgb(var(--md-primary) / 0.08);
  border-color: rgb(var(--md-primary) / 0.40);
}

.addons-note {
  font-size: 14px;
  color: rgb(var(--md-on-surface-variant));
  margin: 0;
}

/* ========================================
   SCROLL ANIMATIONS & HOVER EFFECTS
   ======================================== */

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

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

/* Staggered children animation */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 200ms; }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 400ms; }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 600ms; }
.reveal-stagger.revealed > *:nth-child(5) { transition-delay: 800ms; }
.reveal-stagger.revealed > *:nth-child(6) { transition-delay: 1000ms; }

.reveal-stagger.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* Card hover zoom effect */
.md-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.md-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 48px rgba(17,12,34,0.12);
}

html.dark .md-card:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}

/* Pricing card specific hover */
.pricing-card-v2:hover {
  transform: translateY(-6px) scale(1.02);
}

/* Feature card icon pulse on hover */
.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-icon {
  transition: transform 0.25s ease, background 0.25s ease;
}

/* Step card number highlight on hover */
.step-card:hover .step-number {
  transform: scale(1.05);
}

.step-number {
  transition: color 0.2s ease, transform 0.25s ease;
}

/* Testimonial card subtle lift */
.testimonial-card:hover {
  transform: translateY(-6px);
}

/* Button hover scale */
.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px) scale(1.03);
}

/* Stats bar items */
.stat-item {
  transition: transform 0.25s ease;
}

.stat-item:hover {
  transform: scale(1.05);
}

/* Addon card hover */
.addon-card:hover {
  transform: translateY(-4px) scale(1.03);
}

/* Trial banner subtle pulse */
.trial-banner {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trial-banner:hover {
  transform: scale(1.01);
  box-shadow: 0 20px 60px rgba(138,107,255,0.15);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger > *,
  .md-card,
  .feature-icon,
  .step-number,
  .btn-primary,
  .btn-secondary,
  .stat-item,
  .trial-banner {
    transition: none !important;
    transform: none !important;
  }
  
  .reveal {
    opacity: 1;
  }
  
  .reveal-stagger > * {
    opacity: 1;
  }
}

/* ========================================
   FAQ ACCORDION
   ======================================== */

.faq-item {
  overflow: hidden;
  transition: background 0.2s ease;
}

.faq-item[open] {
  background: rgb(var(--md-primary) / 0.03);
}

html.dark .faq-item[open] {
  background: rgba(255,255,255,0.03);
}

.faq-question {
  cursor: pointer;
  padding: 20px 24px;
  font-size: 17px;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.2s ease;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-question::after {
  transform: rotate(-135deg);
}

.faq-question:hover {
  color: rgb(var(--md-primary));
}

.faq-answer {
  padding: 0 24px 20px;
  font-size: 15px;
  line-height: 1.7;
  color: rgb(var(--md-on-surface-variant));
  animation: faqSlideDown 0.25s ease-out;
}

@keyframes faqSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .comparison-grid,
  .steps-grid,
  .features-grid,
  .testimonials-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .comparison-col--bad {
    border-right: none;
    border-bottom: 1px solid rgb(var(--md-outline) / 0.20);
  }

  html.dark .comparison-col--bad {
    border-bottom-color: rgba(255,255,255,0.10);
  }

  .stats-bar { grid-template-columns: 1fr; gap: 16px; }

  .trial-content { flex-direction: column; text-align: center; }
  .trial-info { text-align: left; }

  .hero-section { padding-top: 90px; }
}

/* ========================================
   SINGLE POST LAYOUT (with sidebars)
   ======================================== */

.single-post-layout {
  position: relative;
  padding-top: 100px;
  min-height: 100vh;
}

/* Floating TOC sidebar (left, outside main content) */
.toc-sidebar {
  position: fixed;
  top: 160px;
  left: 24px;
  /* Fill available space: from left edge to where content container starts */
  /* Container is 1200px centered, so right edge = (100vw - 1200px) / 2 - gap */
  right: calc(50% + 600px + 24px);
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  z-index: 40;
  display: none;
}

/* Custom scrollbar for TOC sidebar - glass theme */
.toc-sidebar::-webkit-scrollbar {
  width: 6px;
}

.toc-sidebar::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.10);
  border-radius: 3px;
}

html.dark .toc-sidebar::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.04);
}

.toc-sidebar::-webkit-scrollbar-thumb {
  background: rgb(var(--md-primary) / 0.30);
  border-radius: 3px;
  transition: background 0.2s ease;
}

.toc-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgb(var(--md-primary) / 0.50);
}

.toc-sidebar::-webkit-scrollbar-thumb:active {
  background: rgb(var(--md-primary) / 0.70);
}

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

.toc-sidebar__inner {
  padding: 20px;
  border-radius: 16px;
  background: rgba(255,255,255,0.60);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.40);
  box-shadow: 0 8px 32px rgba(17,12,34,0.06);
}

html.dark .toc-sidebar__inner {
  background: rgba(31,23,61,0.60);
  border-color: rgba(255,255,255,0.08);
}

.toc-sidebar__title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgb(var(--md-on-surface-variant));
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgb(var(--md-outline) / 0.20);
}

.toc-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toc-sidebar__nav a {
  display: block;
  padding: 6px 0;
  font-size: 13px;
  color: rgb(var(--md-on-surface-variant));
  text-decoration: none;
  line-height: 1.4;
  transition: color 150ms ease;
}

.toc-sidebar__nav a:hover,
.toc-sidebar__nav a.active {
  color: rgb(var(--md-primary));
}

.toc-sidebar__nav a[data-level="3"] {
  padding-left: 12px;
  font-size: 12px;
}

.toc-sidebar__nav a[data-level="4"] {
  padding-left: 24px;
  font-size: 12px;
}

/* Main content area */
.single-post-main {
  padding-bottom: 60px;
}

.single-post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 1024px) {
  .single-post-grid {
    grid-template-columns: 1fr 300px;
  }
}

/* Article */
.single-post-article {
  padding: 32px;
}

.single-post__title {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}

.single-post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgb(var(--md-outline) / 0.20);
  font-size: 14px;
  color: rgb(var(--md-on-surface-variant));
}

html.dark .single-post__meta {
  border-bottom-color: rgba(255,255,255,0.10);
}

.single-post__meta a {
  color: rgb(var(--md-primary));
  text-decoration: none;
}

.single-post__meta a:hover {
  text-decoration: underline;
}

/* Tags within meta section */
.single-post__meta .tags-label {
  font-weight: 600;
  color: rgb(var(--md-on-background));
  margin-left: 12px;
  margin-right: 8px;
}

/* Article content typography */
.single-post-article .wp-block-post-content {
  font-size: 18px;
  line-height: 1.75;
}

.single-post-article .wp-block-post-content h2 {
  font-size: 32px;
  font-weight: 700;
  margin: 44px 0 18px;
}

.single-post-article .wp-block-post-content h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 36px 0 14px;
}

.single-post-article .wp-block-post-content h4 {
  font-size: 20px;
  font-weight: 600;
  margin: 28px 0 12px;
}

.single-post-article .wp-block-post-content p {
  margin: 0 0 20px;
}

.single-post-article .wp-block-post-content ul,
.single-post-article .wp-block-post-content ol {
  margin: 0 0 20px;
  padding-left: 24px;
}

.single-post-article .wp-block-post-content li {
  margin-bottom: 8px;
}

.single-post-article .wp-block-post-content blockquote {
  margin: 24px 0;
  padding: 16px 24px;
  border-left: 4px solid rgb(var(--md-primary));
  background: rgb(var(--md-primary) / 0.05);
  border-radius: 0 12px 12px 0;
  font-style: italic;
}

.single-post-article .wp-block-post-content pre {
  margin: 24px 0;
  padding: 20px;
  border-radius: 12px;
  background: rgba(0,0,0,0.04);
  overflow-x: auto;
  font-size: 14px;
}

html.dark .single-post-article .wp-block-post-content pre {
  background: rgba(255,255,255,0.06);
}

.single-post-article .wp-block-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 24px 0;
}

/* Right sidebar */
.single-post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 1024px) {
  .single-post-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
  }
}

.sidebar-widget {
  padding: 20px;
}

.sidebar-widget__title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgb(var(--md-outline) / 0.20);
}

html.dark .sidebar-widget__title {
  border-bottom-color: rgba(255,255,255,0.10);
}

/* Recent posts in sidebar */
.sidebar-post-link {
  display: block;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: rgb(var(--md-on-background));
  text-decoration: none;
  border-bottom: 1px solid rgb(var(--md-outline) / 0.10);
  transition: color 150ms ease;
}

.sidebar-post-link:last-child {
  border-bottom: none;
}

.sidebar-post-link:hover {
  color: rgb(var(--md-primary));
}

/* Categories in sidebar */
.sidebar-categories {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-categories li {
  padding: 8px 0;
  border-bottom: 1px solid rgb(var(--md-outline) / 0.10);
}

.sidebar-categories li:last-child {
  border-bottom: none;
}

.sidebar-categories a {
  font-size: 14px;
  color: rgb(var(--md-on-background));
  text-decoration: none;
  transition: color 150ms ease;
}

.sidebar-categories a:hover {
  color: rgb(var(--md-primary));
}

/* Tags in sidebar */
.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sidebar-tags a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: rgb(var(--md-on-surface-variant));
  background: rgb(var(--md-primary) / 0.08);
  border-radius: 999px;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease;
}

.sidebar-tags a:hover {
  background: rgb(var(--md-primary) / 0.15);
  color: rgb(var(--md-primary));
}

/* Footer */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid rgb(var(--md-outline) / 0.20);
}

html.dark .site-footer {
  border-top-color: rgba(255,255,255,0.10);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.footer-brand-name {
  font-family: var(--font-logo);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-tagline {
  font-size: 12px;
  color: rgb(var(--md-on-surface-variant));
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* WordPress footer menu styling */
.footer-nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav-menu li {
  margin: 0;
  padding: 0;
}

.footer-nav a,
.footer-nav-menu li a {
  font-size: 14px;
  color: rgb(var(--md-on-surface-variant));
  text-decoration: none;
  transition: color 200ms ease;
}

.footer-nav a:hover,
.footer-nav-menu li a:hover {
  color: rgb(var(--md-on-background));
}

.footer-copyright {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgb(var(--md-outline) / 0.20);
  text-align: center;
  font-size: 14px;
  color: rgb(var(--md-on-surface-variant));
}

html.dark .footer-copyright {
  border-top-color: rgba(255,255,255,0.10);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ===========================================
   MOBILE HEADER BUTTON VISIBILITY (FINAL)
   These rules MUST be at the end to override all others
   =========================================== */

/* Sign-up icon: SHOW on mobile, HIDE on desktop */
a.header-icon-btn.header-signup-icon,
.header-actions .header-icon-btn.header-signup-icon {
  display: flex !important;
}

@media (min-width: 768px) {
  a.header-icon-btn.header-signup-icon,
  .header-actions .header-icon-btn.header-signup-icon {
    display: none !important;
  }
}

/* Try for Free button: HIDE on mobile, SHOW on desktop */
a.header-btn-primary,
.header-actions .header-btn-primary {
  display: none !important;
}

@media (min-width: 768px) {
  a.header-btn-primary,
  .header-actions .header-btn-primary {
    display: inline-flex !important;
  }
}
