/* ══════════════════════════════════════════════════════════════════
   LingoFlow — Design System
   Typography: Bricolage Grotesque + JetBrains Mono
   Color: Warm beige/tan + copper accents
   ══════════════════════════════════════════════════════════════════ */

/* ── CSS Variables ─────────────────────────────────────────────── */
:root {
  /* Colors — Warm beige palette */
  --bg-deep:       #F5EDE3;
  --bg-surface:    #EDE4D9;
  --bg-card:       #FAF5EF;
  --bg-card-hover: #F0E8DE;
  --bg-elevated:   #FFF9F3;
  --border-subtle: rgba(139,109,78,.12);
  --border-light:  rgba(139,109,78,.2);

  /* Primary — Warm copper/amber */
  --primary-400: #C88B5E;
  --primary-500: #B5734A;
  --primary-600: #9A5D37;
  --primary-grad: linear-gradient(135deg, #B5734A, #D4A574);

  /* Accent */
  --accent-cyan:  #8B6D4E;
  --accent-green: #7A9B6D;
  --accent-amber: #D4A043;
  --accent-red:   #C45C4B;
  --accent-blue:  #7A8FA8;

  /* Text */
  --text-primary:   #2C2418;
  --text-secondary: #6B5B4D;
  --text-muted:     #8F7E6D;
  --text-faint:     #B3A292;

  /* Typography */
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;
  --font-body:    'Bricolage Grotesque', system-ui, sans-serif;

  --fs-xs:  0.75rem;
  --fs-sm:  0.8125rem;
  --fs-md:  0.9375rem;
  --fs-base: 1rem;
  --fs-lg:  1.125rem;
  --fs-xl:  1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.75rem;
  --fs-4xl: 3.5rem;
  --fs-5xl: 4.5rem;

  --fw-light:    200;
  --fw-regular:  400;
  --fw-semibold: 600;
  --fw-bold:     800;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Radii */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --radius-xl:  20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Shadows — heavy warm shadows */
  --shadow-sm:  0 2px 6px rgba(101,74,46,.12), 0 1px 3px rgba(101,74,46,.08);
  --shadow-md:  0 6px 20px rgba(101,74,46,.15), 0 2px 8px rgba(101,74,46,.1);
  --shadow-lg:  0 12px 40px rgba(101,74,46,.18), 0 4px 16px rgba(101,74,46,.12);
  --shadow-xl:  0 20px 60px rgba(101,74,46,.22), 0 8px 24px rgba(101,74,46,.15);
  --shadow-glow: 0 4px 30px rgba(181,115,74,.15);

  /* Nav */
  --nav-height: 72px;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--text-primary);
  background: var(--bg-deep);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { border: none; cursor: pointer; font-family: inherit; font-size: inherit; }
input { font-family: inherit; }

/* ── Container ─────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-6); }

/* ── Text Utilities ────────────────────────────────────────────── */
.text-gradient {
  background: var(--primary-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-muted { color: var(--text-secondary); }
.text-mono { font-family: var(--font-mono); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }

/* ══════════════════════════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav--scrolled {
  background: rgba(245,237,227,.92);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 1px 0 var(--border-subtle), var(--shadow-md);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.nav__logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.nav__logo-icon { border-radius: 6px; }
.nav__logo-text {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.nav__links {
  display: flex; align-items: center; gap: var(--space-8);
}
.nav__link {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-secondary);
  transition: color .2s;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.nav__link:hover { color: var(--text-primary); }
.nav__actions { display: flex; align-items: center; gap: var(--space-4); }

/* Dropdown */
.nav__dropdown {
  position: relative;
}
.nav__dropdown-toggle {
  display: flex; align-items: center; gap: 5px;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color .2s;
  padding: 0;
  border: none;
}
.nav__dropdown-toggle:hover { color: var(--text-primary); }
.nav__dropdown-arrow {
  transition: transform .25s ease;
  flex-shrink: 0;
}
.nav__dropdown.open .nav__dropdown-arrow { transform: rotate(180deg); }
.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 230px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 200;
}
.nav__dropdown.open .nav__dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav__dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-secondary);
  transition: background .15s, color .15s;
  text-decoration: none;
  white-space: nowrap;
}
.nav__dropdown-item img {
  width: 56px; height: 56px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
}
.nav__dropdown-item:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

/* Hamburger */
.nav__hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; padding: 4px;
}
.nav__hamburger span {
  width: 22px; height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav__hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }

/* ══════════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2);
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  transition: all .2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
}
.btn--primary {
  background: var(--primary-grad);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-md);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-light);
}
.btn--outline:hover {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.2);
}
.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn--ghost:hover { color: var(--text-primary); }
.btn--green {
  background: linear-gradient(135deg, #059669, #22C55E);
  color: #fff;
  box-shadow: 0 2px 12px rgba(34,197,94,.3);
}
.btn--green:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(34,197,94,.45);
}
.btn--sm  { padding: 8px 18px; font-size: var(--fs-xs); }
.btn--lg  { padding: 16px 36px; font-size: var(--fs-md); }
.btn--full { width: 100%; min-height: 48px; }

/* ══════════════════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: 0 0 var(--space-12);
  overflow: visible;
  display: flex;
  align-items: center;
}
.hero__bg {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .18;
}
.hero__glow--blue {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #D4A574 0%, transparent 70%);
  top: -100px; left: -100px;
}
.hero__glow--purple {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #C88B5E 0%, transparent 70%);
  bottom: -80px; right: -80px;
  opacity: .1;
}
.hero__glow--amber {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #E8C9A0 0%, transparent 70%);
  top: 30%; right: 20%;
  opacity: .12;
}
/* Mesh grid overlay */
.hero__mesh {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(139,109,78,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,109,78,.08) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
}

.hero-split {
  display: block; /* Removing grid since we are now left-aligning and placing widget in sidebar */
  position: relative;
  z-index: 1;
}
.hero-split__content { max-width: 100%; }

.hero h1 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-4xl);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
  text-shadow: 0 2px 8px rgba(101,74,46,.12);
}
.hero h1 .scramble-word {
  display: block;
  background: var(--primary-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__subtitle {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  max-width: 480px;
  line-height: 1.7;
}
.hero__actions {
  display: flex; gap: var(--space-4); flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

/* Service logo strip */
.hero__services {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}
.hero__service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 72px;
  flex: 0 0 auto;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid transparent; /* Remove visible border */
  border-radius: var(--radius-xl);
  transition: all .35s cubic-bezier(0.34,1.56,0.64,1);
  text-decoration: none;
  opacity: 0;
  animation: fadeInUp .6s ease forwards;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03); /* Subtle soft shadow */
}
.hero__service-icon img {
  max-width: 120%;
  max-height: 120%;
  object-fit: contain;
  transition: transform .35s cubic-bezier(0.34,1.56,0.64,1);
}
.hero__service-icon:hover {
  transform: scale(1.08); /* Distinctive hover scale */
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); /* Stronger elevation shadow */
  background: #ffffff; /* Explicitly ensure background stays white on hover */
}
.hero__service-icon:hover img {
  transform: scale(1.05); /* Image also scales slightly */
}

/* Stats bar */
.hero__stats {
  display: flex; gap: var(--space-10); flex-wrap: nowrap;
  align-items: flex-start;
}
.hero__stat {
  text-align: center;
  flex: 1;
  min-width: 0;
}
.hero__stat-value {
  font-family: var(--font-mono);
  font-weight: var(--fw-bold);
  font-size: var(--fs-2xl);
  color: var(--text-primary);
  text-shadow: 0 2px 8px rgba(44,36,24,.1);
  white-space: nowrap;
}
.hero__stat-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: var(--space-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ══════════════════════════════════════════════════════════════════
   BADGE
   ══════════════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 6px 16px;
  background: rgba(37,99,235,.1);
  border: 1px solid rgba(37,99,235,.2);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--primary-400);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-6);
}
.badge--glow {
  box-shadow: 0 0 20px rgba(37,99,235,.15);
}

/* ══════════════════════════════════════════════════════════════════
   PAGE LAYOUT (2-COLUMN STICKY)
   ══════════════════════════════════════════════════════════════════ */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-12);
  align-items: flex-start;
  padding-top: calc(var(--nav-height) + var(--space-12));
  padding-bottom: var(--space-16);
}
.page-layout__content {
  min-width: 0; /* prevent scrolling issues */
}
.page-layout__sidebar {
  /* No align-self to allow stretching to full height of grid */
  position: relative;
  height: 100%;
  align-self: stretch; /* Override parent's flex-start to be as tall as left column */
}
.page-layout__sidebar .sticky-wrapper {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
  z-index: 10;
}

/* Extension Page Specific Layout */
.page-layout--ext .ext-seo-hero {
  grid-column: 1;
  margin-bottom: var(--space-8);
}
.page-layout--ext .ext-page-content {
  grid-column: 1;
}
.page-layout--ext .page-layout__sidebar {
  grid-column: 2;
  grid-row: 1 / span 2;
}


/* ══════════════════════════════════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════════════════════════════════ */
.section {
  padding: var(--space-16) 0;
  position: relative;
}
.section__header {
  text-align: center;
  margin-bottom: var(--space-16);
}
.section__header .hero__service-icon {
  margin: 0 auto var(--space-6);
  opacity: 1;
  animation: none;
}
.section__header h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-3xl);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}
.section__header p {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════════════
   GRID
   ══════════════════════════════════════════════════════════════════ */
.grid {
  display: grid;
  gap: var(--space-6);
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(2, 1fr); } /* Changed to 2 for left col */

/* ══════════════════════════════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════════════════════════════ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: transform .25s ease, border-color .25s, box-shadow .25s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(181,115,74,.25);
  box-shadow: var(--shadow-lg);
}
.card__icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  margin-bottom: var(--space-5);
  background: transparent;
  border: none;
}
.card__title {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-lg);
  margin-bottom: var(--space-3);
}
.card__text {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Extension cards */
.ext-card {
  display: flex; flex-direction: column;
  text-decoration: none;
  cursor: pointer;
}
.ext-card__name {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-lg);
  margin-bottom: var(--space-2);
}
.ext-card__desc {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}
.ext-card__link {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--primary-400);
  margin-top: var(--space-5);
  transition: color .2s;
}
.ext-card:hover .ext-card__link { color: var(--primary-500); }
.ext-card .hero__service-icon {
  align-self: flex-start;
  width: 150px;
  height: 72px;
  opacity: 1;
  animation: none;
  margin-bottom: var(--space-5);
}

/* ══════════════════════════════════════════════════════════════════
   STEPS (How it works)
   ══════════════════════════════════════════════════════════════════ */
.steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 36px;
  width: 2px;
  height: auto;
  background: linear-gradient(180deg, var(--primary-600), var(--primary-400), var(--primary-500));
  opacity: .3;
}
.step { 
  display: flex; 
  align-items: flex-start; 
  text-align: left; 
  position: relative; 
  gap: var(--space-6);
}
.step__number {
  flex: 0 0 56px;
  font-family: var(--font-mono);
  font-weight: var(--fw-bold);
  font-size: var(--fs-xl);
  width: 56px; height: 56px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-elevated);
  border: 2px solid var(--primary-500);
  color: var(--primary-500);
  margin-bottom: var(--space-5);
  box-shadow: var(--shadow-md);
}
.step__title {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-xl);
  margin-bottom: var(--space-2);
}
.step__text {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════════
   PRICING
   ══════════════════════════════════════════════════════════════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  align-items: stretch;
  margin-top: var(--space-8);
}
@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}
.pricing-card {
  background: var(--bg-elevated);
  border: 1px solid rgba(139, 109, 78, 0.1);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  display: flex; flex-direction: column;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.03);
  container-type: inline-size;
}
.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(139, 109, 78, 0.12);
  border-color: rgba(181, 115, 74, 0.3);
}
.pricing-card--featured {
  background: linear-gradient(180deg, rgba(181,115,74,.05), var(--bg-elevated));
  border: 1px solid rgba(181, 115, 74, 0.3);
  box-shadow: 0 16px 40px rgba(181, 115, 74, 0.1);
}
.pricing-card__header {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(139, 109, 78, 0.1);
}
.pricing-card__name-row {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.pricing-card__badge {
  background: var(--primary-grad);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(181, 115, 74, 0.3);
  white-space: nowrap;
}

/* Salute Animation (kept for backwards compatibility if needed occasionally) */
@keyframes salute {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.7); }
  25% { transform: scale(1.1) rotate(2deg); box-shadow: 0 0 20px 10px rgba(234, 179, 8, 0); }
  50% { transform: scale(1) rotate(-2deg); }
  75% { transform: scale(1.1) rotate(1deg); box-shadow: 0 0 20px 10px rgba(234, 179, 8, 0); }
  100% { transform: scale(1) rotate(0deg); }
}
.badge--salute {
  display: inline-block;
  font-size: var(--fs-lg);
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #eab308, #ef4444);
  background-size: 200% 200%;
  padding: 8px 24px;
  border-radius: var(--radius-full);
  border: 2px solid #fef08a;
  box-shadow: 0 0 15px rgba(234, 179, 8, 0.5), inset 0 0 10px rgba(255,255,255,0.5);
  animation: salute 2s infinite ease-in-out, gradientShift 3s infinite alternate;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.pricing-card__name {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-xl);
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}
.pricing-card__price {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(1.8rem, 11cqi, 3.5rem);
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.pricing-card__duration {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  font-weight: var(--fw-medium);
}
.pricing-card__features {
  list-style: none;
  flex: 1;
  margin-bottom: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.pricing-card__features li {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  display: flex; align-items: flex-start; gap: var(--space-3);
  line-height: 1.5;
}
.pricing-check {
  width: 18px;
  height: 18px;
  color: var(--primary-500);
  background: rgba(181, 115, 74, 0.1);
  padding: 3px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
}
.pricing-card__action {
  margin-top: auto;
}
/* Bundle */
.bundle {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid rgba(37,99,235,.15);
  border-radius: var(--radius-2xl);
  padding: var(--space-12);
  box-shadow: var(--shadow-glow);
}
.bundle h3 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-6);
}
.bundle__apps {
  display: flex; justify-content: center; gap: var(--space-3);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}
.bundle__app-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  border: 1px solid;
  transition: transform .2s;
}
.bundle__app-icon:hover { transform: scale(1.15); }
.bundle__original {
  font-size: var(--fs-xl);
  color: var(--text-muted);
  text-decoration: line-through;
  margin-bottom: var(--space-2);
}
.bundle__price {
  font-family: var(--font-mono);
  font-weight: var(--fw-bold);
  font-size: var(--fs-4xl);
  margin-bottom: var(--space-3);
}
.bundle__save {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
}

/* ══════════════════════════════════════════════════════════════════
   LANGUAGE GRID
   ══════════════════════════════════════════════════════════════════ */
.lang-grid {
  display: flex; flex-wrap: wrap; gap: var(--space-3);
  justify-content: flex-start;
}
.lang-tag {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  cursor: pointer;
}
.lang-tag:hover {
  border-color: rgba(181, 115, 74, 0.4);
  color: var(--text-primary);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 16px rgba(181, 115, 74, 0.15);
  background: linear-gradient(180deg, #fff, var(--bg-elevated));
}

/* ══════════════════════════════════════════════════════════════════
   WIDGET DEMO (Hero interactive preview)
   ══════════════════════════════════════════════════════════════════ */
.widget-demo {
  position: relative;
  width: 300px;
  height: 420px;
}
.widget-demo__icon {
  position: absolute;
  bottom: 0; left: 0;
  width: 120px; height: 120px;
  transform-origin: bottom left;
  z-index: 2;
  cursor: pointer;
}
.widget-demo__panel {
  position: absolute;
  bottom: 56px; left: 0;
  width: 280px;
  background: linear-gradient(180deg, #FFF9F3, #F5EDE3);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-subtle);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 3;
}
.widget-demo__panel-header {
  padding: 12px 14px 8px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: space-between;
}
.widget-demo__lang-list {
  max-height: 200px;
  overflow-y: auto;
  padding: 4px 0;
}
.widget-demo__lang-list::-webkit-scrollbar { width: 4px; }
.widget-demo__lang-list::-webkit-scrollbar-track { background: transparent; }
.widget-demo__lang-list::-webkit-scrollbar-thumb { background: rgba(139,109,78,.2); border-radius: 4px; }
.widget-demo__lang-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 14px;
  font-size: var(--fs-sm);
  transition: background .15s;
}
.widget-demo__lang-item:hover { background: rgba(139,109,78,.08); }
.widget-demo__badge {
  position: absolute;
  bottom: 44px; left: 36px;
  background: linear-gradient(135deg, #FAF5EF, #EDE4D9);
  color: var(--text-primary);
  font-size: 10px;
  font-weight: var(--fw-bold);
  padding: 3px 8px;
  border-radius: var(--radius-md);
  letter-spacing: .5px;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 4px;
  box-shadow: var(--shadow-md);
  z-index: 4;
  opacity: 0;
  transform: scale(0);
}

/* ══════════════════════════════════════════════════════════════════
   EXTENSION HERO
   ══════════════════════════════════════════════════════════════════ */
.ext-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.ext-hero__info { position: relative; }
.ext-hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ══════════════════════════════════════════════════════════════════
   FORMS
   ══════════════════════════════════════════════════════════════════ */
.form-group {
  margin-bottom: var(--space-5);
}
.form-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--fs-md);
  outline: none;
  transition: border-color .2s, background .2s;
}
.form-input:focus {
  border-color: rgba(181,115,74,.5);
  background: rgba(181,115,74,.06);
}
.form-input::placeholder { color: var(--text-muted); }
.promo-input {
  display: flex; gap: var(--space-2);
}
.promo-input .form-input { flex: 1; }

/* Auth / Account panels */
.auth-panel {
  display: flex;
  padding-top: calc(var(--nav-height) + var(--space-20));
  padding-bottom: var(--space-20);
  justify-content: center;
  min-height: 70vh;
}
.panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  width: 100%;
  max-width: 420px;
}

/* ── Affiliate Program Page ────────────────────────────────── */
.aff-page { padding-bottom: var(--space-12); }

.aff-hero {
  text-align: center;
  padding: calc(var(--nav-height) + var(--space-24)) 0 var(--space-16);
  position: relative;
  z-index: 1;
}
.aff-hero__badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  color: #fff;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
  padding: 6px 18px; border-radius: 100px; margin-bottom: var(--space-4);
}
.aff-hero__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800; line-height: 1.15; margin-bottom: var(--space-4);
}
.aff-hero__subtitle {
  font-size: var(--fs-lg); color: var(--text-secondary); max-width: 720px; margin: 0 auto var(--space-3);
  line-height: 1.7;
}
.aff-hero__cta-text { font-size: var(--fs-md); color: var(--text-primary); }

.aff-section { padding: var(--space-12) 0; }
.aff-section--dark {
  background: linear-gradient(135deg, rgba(0,0,0,.04) 0%, rgba(var(--primary-rgb, 194,139,87), .05) 100%);
  padding: var(--space-12) 0;
}
.aff-section--cta {
  background: linear-gradient(135deg, rgba(var(--primary-rgb, 194,139,87), .1) 0%, rgba(var(--primary-rgb, 194,139,87), .03) 100%);
  padding: var(--space-12) 0;
  border-top: 1px solid rgba(var(--primary-rgb, 194,139,87), .15);
}
.aff-section__title {
  font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800;
  text-align: center; margin-bottom: var(--space-3);
}
.aff-section__desc {
  font-size: var(--fs-md); color: var(--text-secondary); text-align: center;
  max-width: 700px; margin: 0 auto var(--space-6); line-height: 1.7;
}
.aff-section__note {
  font-size: var(--fs-md); color: var(--text-secondary); text-align: center;
  max-width: 600px; margin: var(--space-6) auto 0; line-height: 1.6;
}

/* Extension cards */
.aff-ext-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-3); max-width: 700px; margin: 0 auto;
}
.aff-ext-card {
  display: flex; align-items: center; gap: var(--space-3);
  background: var(--surface-1, #fff); border: 1px solid var(--border-subtle, #eee);
  border-radius: var(--radius-lg); padding: var(--space-3) var(--space-4);
  transition: transform .2s, box-shadow .2s;
}
.aff-ext-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.aff-ext-card img, .aff-ext-logo { border-radius: var(--radius-md); width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; }
.aff-ext-card strong { font-size: var(--fs-sm); }
.aff-ext-card small { color: var(--text-muted); font-size: 11px; }

/* Benefits */
.aff-benefits-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4); margin-top: var(--space-2);
}
.aff-benefit-card {
  background: var(--surface-1, #fff); border: 1px solid var(--border-subtle, #eee);
  border-radius: var(--radius-xl); padding: var(--space-6);
  text-align: center; transition: transform .2s, box-shadow .2s;
}
.aff-benefit-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.1); }
.aff-benefit-icon { font-size: 2.5rem; margin-bottom: var(--space-3); }
.aff-benefit-card h3 { font-size: var(--fs-md); margin-bottom: var(--space-2); }
.aff-benefit-card p { font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.6; }

/* Who is this for */
.aff-who-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
}
.aff-who-card {
  background: var(--surface-1, #fff); border: 1px solid var(--border-subtle, #eee);
  border-radius: var(--radius-xl); padding: var(--space-5);
  line-height: 1.6; font-size: var(--fs-sm); color: var(--text-secondary);
  transition: transform .2s;
}
.aff-who-card:hover { transform: translateY(-2px); }
.aff-who-card strong { color: var(--text-primary); display: block; margin-bottom: 4px; }
.aff-who-emoji { font-size: 1.8rem; display: block; margin-bottom: var(--space-2); }

/* Steps */
.aff-steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4); margin-top: var(--space-2);
}
.aff-step {
  text-align: center; background: var(--surface-1, #fff);
  border: 1px solid var(--border-subtle, #eee);
  border-radius: var(--radius-xl); padding: var(--space-6);
}
.aff-step__num {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  color: #fff; font-size: 1.3rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-3);
}
.aff-step h3 { font-size: var(--fs-md); margin-bottom: var(--space-2); }
.aff-step p { font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.6; }

/* Auth box */
.aff-auth-box {
  max-width: 420px; margin: 0 auto;
  background: var(--surface-1, #fff); border: 1px solid var(--border-subtle, #eee);
  border-radius: var(--radius-xl); padding: var(--space-6);
  box-shadow: 0 8px 32px rgba(0,0,0,.06);
}
#affAuthWrap .auth-panel { padding: 0; min-height: auto; }
.acct-tab-row {
  display: flex; gap: 4px; margin-bottom: var(--space-4);
  background: var(--surface-2, #f5f5f5); border-radius: var(--radius-lg); padding: 3px;
}
.acct-tab {
  flex: 1; padding: 8px 0; border: none; background: transparent;
  border-radius: var(--radius-md); font-size: var(--fs-sm); font-weight: 600;
  color: var(--text-muted); cursor: pointer; transition: all .2s;
}
.acct-tab.active {
  background: var(--primary-500); color: #fff;
  box-shadow: 0 2px 8px rgba(var(--primary-rgb, 194,139,87), .3);
}

/* ── Account Dashboard ──────────────────────────────────────── */
.acct-error {
  background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3);
  color: #f87171; border-radius: var(--radius-lg); padding: var(--space-3) var(--space-4);
  font-size: var(--fs-sm); margin-bottom: var(--space-4);
}
.acct-success {
  background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.3);
  color: #4ade80; border-radius: var(--radius-lg); padding: var(--space-3) var(--space-4);
  font-size: var(--fs-sm); margin-bottom: var(--space-4);
}
.acct-or-divider {
  text-align: center; margin: var(--space-4) 0; color: var(--text-muted);
  font-size: var(--fs-sm); position: relative;
}
.acct-or-divider::before, .acct-or-divider::after {
  content: ''; position: absolute; top: 50%; width: 40%; height: 1px;
  background: var(--border-subtle);
}
.acct-or-divider::before { left: 0; }
.acct-or-divider::after { right: 0; }
.acct-google-btn { display: flex; align-items: center; gap: var(--space-3); justify-content: center; }

/* Dashboard layout */
.acct-dashboard {
  padding-top: calc(var(--nav-height) + var(--space-12));
  padding-bottom: var(--space-20);
  min-height: 70vh;
}
.acct-dashboard-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--space-8);
}
.acct-dashboard-header h2 { font-family: var(--font-display); font-size: var(--fs-2xl); }
.acct-email { color: var(--text-muted); font-size: var(--fs-sm); margin-top: var(--space-1); }
.acct-grid {
  display: grid; grid-template-columns: 1fr 340px; gap: var(--space-8);
}
.acct-section h3 {
  font-family: var(--font-display); font-size: var(--fs-lg); margin-bottom: var(--space-4);
}

/* License cards */
.acct-license-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl); padding: var(--space-5);
  margin-bottom: var(--space-4); transition: border-color .2s;
}
.acct-license-card:hover { border-color: var(--primary-500); }
.acct-license-header { display: flex; gap: var(--space-4); align-items: center; }
.acct-license-logo { width: 48px; height: 48px; border-radius: var(--radius-lg); object-fit: contain; background: var(--bg-body); padding: 4px; }
.acct-license-app { font-weight: 600; font-size: var(--fs-base); }
.acct-license-plan { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 2px; display: flex; align-items: center; gap: var(--space-2); }
.acct-license-expiry { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 2px; }
.acct-badge {
  display: inline-block; padding: 2px 8px; border-radius: 9999px;
  font-size: 11px; font-weight: 600; letter-spacing: .02em;
}
.acct-badge--active { background: rgba(34,197,94,.15); color: #4ade80; }
.acct-badge--expired { background: rgba(239,68,68,.15); color: #f87171; }
.acct-license-key-row {
  display: flex; align-items: center; gap: var(--space-2);
  margin-top: var(--space-3); background: var(--bg-body); padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-lg); border: 1px solid var(--border-subtle);
}
.acct-license-key {
  flex: 1; font-size: var(--fs-xs); font-family: var(--font-mono);
  word-break: break-all; color: var(--text-secondary);
}
.acct-copy-btn {
  background: none; border: none; cursor: pointer; font-size: 16px;
  padding: var(--space-1); border-radius: var(--radius-md);
  transition: background .2s;
}
.acct-copy-btn:hover { background: var(--border-subtle); }
.acct-license-actions { margin-top: var(--space-3); }
.acct-rebind-select {
  width: 100%; padding: var(--space-2) var(--space-3);
  background: var(--bg-body); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); color: var(--text-primary);
  font-size: var(--fs-sm); cursor: pointer;
}
.acct-empty {
  padding: var(--space-10); text-align: center; color: var(--text-muted);
  background: var(--bg-card); border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-xl);
}
.acct-empty a { color: var(--primary-500); font-weight: 600; }

/* Sidebar cards */
.acct-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl); padding: var(--space-5);
  margin-bottom: var(--space-4);
}
.acct-card h4 { font-family: var(--font-display); font-size: var(--fs-base); margin-bottom: var(--space-2); }
.acct-card-desc { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: var(--space-4); }
.acct-ref-row { display: flex; gap: var(--space-2); }
.acct-ref-input { flex: 1; font-size: var(--fs-xs); background: var(--bg-body); }
.acct-ref-stat { font-size: var(--fs-xs); color: var(--text-muted); margin-top: var(--space-2); text-align: center; }

/* Telegram button */
.acct-telegram-btn {
  display: flex; align-items: center; gap: var(--space-3); justify-content: center;
  padding: var(--space-3) var(--space-5); border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(42,171,238,.12), rgba(42,171,238,.06));
  border: 1px solid rgba(42,171,238,.25); color: #2AABEE;
  font-weight: 600; font-size: var(--fs-sm); text-decoration: none;
  transition: all .3s;
}
.acct-telegram-btn:hover {
  background: linear-gradient(135deg, rgba(42,171,238,.22), rgba(42,171,238,.12));
  border-color: rgba(42,171,238,.5); transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(42,171,238,.15);
}

@media (max-width: 768px) {
  .acct-grid { grid-template-columns: 1fr; }
  .acct-dashboard-header { flex-direction: column; gap: var(--space-3); text-align: center; }
}

/* Checkout form */
.checkout-form {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  max-width: 500px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════════════
   SUCCESS PAGE
   ══════════════════════════════════════════════════════════════════ */
.success-page {
  padding-top: calc(var(--nav-height) + var(--space-20));
  padding-bottom: var(--space-20);
  text-align: center;
  min-height: 70vh;
}
.success-icon {
  font-size: 4rem;
  width: 96px; height: 96px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(34,197,94,.15), rgba(6,214,160,.15));
  border: 2px solid var(--accent-green);
  margin-bottom: var(--space-6);
  color: var(--accent-green);
}
.license-key-box {
  display: inline-flex; align-items: center; gap: var(--space-3);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 24px;
  font-family: var(--font-mono);
  font-size: var(--fs-md);
  cursor: pointer;
  transition: border-color .2s;
}
.license-key-box:hover { border-color: var(--primary-600); }

/* ══════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-16) 0 var(--space-8);
  background: var(--bg-surface);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}
.footer__tagline {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-top: var(--space-4);
  max-width: 280px;
  line-height: 1.6;
}
.footer__heading {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}
.footer__link {
  display: block;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  padding: var(--space-1) 0;
  transition: color .2s;
}
.footer__link:hover { color: var(--text-primary); }
.footer__bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-6);
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* ══════════════════════════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(1.4); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.animate-fade-in-up {
  opacity: 0;
  animation: fadeInUp .7s ease forwards;
}
.animate-delay-1 { animation-delay: .1s; }
.animate-delay-2 { animation-delay: .2s; }
.animate-delay-3 { animation-delay: .35s; }
.animate-delay-4 { animation-delay: .5s; }
.animate-delay-5 { animation-delay: .65s; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════════════
   404 PAGE
   ══════════════════════════════════════════════════════════════════ */
.page-404 {
  padding-top: calc(var(--nav-height) + var(--space-24));
  padding-bottom: var(--space-24);
  text-align: center;
  min-height: 70vh;
}
.page-404__code {
  font-family: var(--font-mono);
  font-weight: var(--fw-bold);
  font-size: 8rem;
  line-height: 1;
  background: var(--primary-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: .4;
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .page-layout { grid-template-columns: 1fr; }
  .page-layout__sidebar { 
    position: static; 
    order: -1; 
    margin-bottom: var(--space-2);
  }
  
  /* Mobile order overrides for extension page */
  .page-layout--ext { gap: 0; padding-top: calc(var(--nav-height) + 3rem); }
  .page-layout--ext .ext-seo-hero { order: 1; margin-bottom: var(--space-2); margin-top: 0; grid-column: 1; }
  .page-layout--ext .page-layout__sidebar { order: 2; margin-top: 0; margin-bottom: var(--space-12); grid-column: 1; grid-row: auto; }
  .page-layout--ext .ext-page-content { order: 3; grid-column: 1; }
  
  .hero-split, .ext-hero { grid-template-columns: 1fr; }
  .hero-split__demo { order: -1; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
}

@media (max-width: 768px) {
  :root {
    --fs-3xl: 2rem;
    --fs-4xl: 2.5rem;
    --fs-5xl: 3rem;
  }
  .nav__links { display: none; }
  .nav__links.open {
    display: flex; flex-direction: column;
    position: absolute; top: var(--nav-height); left: 0; right: 0;
    background: rgba(245,237,227,.96);
    backdrop-filter: blur(16px);
    padding: var(--space-6);
    gap: var(--space-4);
    border-bottom: 1px solid var(--border-subtle);
  }
  .nav__hamburger { display: flex; }
  .pricing-grid { grid-template-columns: 1fr; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .hero__stats { gap: var(--space-6); flex-wrap: wrap; justify-content: center; }
  .hero__stat { flex: 0 0 calc(50% - var(--space-6)); min-width: 110px; margin-bottom: var(--space-4); }
  .hero h1 { font-size: var(--fs-3xl); }
  .bundle { padding: var(--space-8); }
  .slider-wrapper { margin: var(--space-6) auto var(--space-2); }
  .ext-seo-hero__header { flex-direction: column; align-items: flex-start !important; }
  
  /* Affiliate Page Mobile Adjustments */
  .aff-hero { padding: var(--space-10) 0 var(--space-8); }
  .aff-hero__title { font-size: 2.2rem; }
  .aff-section { padding: var(--space-8) 0; }
  .aff-section--dark, .aff-section--cta { padding: var(--space-8) 0; }
  .aff-ext-grid, .aff-benefits-grid, .aff-who-grid, .aff-steps-grid { grid-template-columns: 1fr; }
  .aff-auth-box { padding: var(--space-4); margin: 0 var(--space-4); }
}

@media (max-width: 480px) {
  .container { padding-left: var(--space-4); padding-right: var(--space-4); }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .aff-hero__title { font-size: 1.8rem; }
  .aff-hero { padding-top: calc(var(--nav-height) + var(--space-16)); }
  .panel-card { padding: var(--space-6) var(--space-5); margin: 0; width: 100%; }
  #affAuthWrap .panel-card { border: none; box-shadow: none; background: transparent; padding: 0; }
}

/* ══════════════════════════════════════════════════════════════════
   FAQ ACCORDION
   ══════════════════════════════════════════════════════════════════ */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.faq-item {
  background: var(--surface-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.faq-item:hover {
  box-shadow: var(--shadow-md);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-6);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  line-height: 1.4;
  transition: background 0.15s;
}
.faq-question:hover {
  background: var(--surface-secondary);
}
.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  transition: transform 0.3s ease;
}
.faq-item.open .faq-icon {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 var(--space-6);
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 var(--space-6) var(--space-6);
}
.faq-answer p {
  color: var(--text-secondary);
  font-size: var(--fs-base);
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════════════
   IMAGE COMPARISON SLIDER
   ══════════════════════════════════════════════════════════════════ */
.slider-wrapper {
  max-width: 900px;
  margin: var(--space-12) auto;
}
.img-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
}
.img-slider img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}
.img-slider-base {
  position: absolute;
  top: 0; left: 0;
}
.img-slider-clip {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}
.img-slider-range {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  margin: 0;
  appearance: none;
  background: transparent;
  outline: none;
  cursor: ew-resize;
  z-index: 10;
  opacity: 0;
}
.img-slider-range::-webkit-slider-thumb {
  appearance: none;
  width: 100px; height: 100vh;
  background: transparent;
  cursor: ew-resize;
}
.slider-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: #fff;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 5;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
.slider-handle-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  background: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  color: var(--primary-500);
  transition: transform 0.2s, box-shadow 0.2s;
}
.img-slider-range:active ~ .slider-handle .slider-handle-btn,
.img-slider-range:hover ~ .slider-handle .slider-handle-btn {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.first-letter-cap { display: inline-block; }
.first-letter-cap::first-letter { text-transform: uppercase; }

/* ══════════════════════════════════════════════════════════════════
   PURCHASE POPUP
   ══════════════════════════════════════════════════════════════════ */
.purchase-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 25, 18, 0.6);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  animation: fadeIn .25s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: scale(.92) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.purchase-popup {
  background: linear-gradient(180deg, #FBF5EF, #F5EDE3);
  border: 1px solid rgba(139, 109, 78, 0.15);
  border-radius: 24px;
  padding: 40px 36px;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(30, 25, 18, 0.3), 0 0 0 1px rgba(255,255,255,0.1);
  animation: popIn .35s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #3A2E22;
}
.purchase-popup::-webkit-scrollbar { width: 4px; }
.purchase-popup::-webkit-scrollbar-thumb { background: rgba(139,109,78,.3); border-radius: 4px; }

.pp-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #8F7E6D;
  transition: color .2s;
  line-height: 1;
}
.pp-close:hover { color: #3A2E22; }

.pp-header {
  text-align: center;
  margin-bottom: 28px;
  position: relative;
}
.pp-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: #3A2E22;
  margin-bottom: 4px;
}
.pp-subtitle {
  font-size: 0.95rem;
  color: #8F7E6D;
}
.pp-price-display {
  text-align: center;
  margin: 16px 0 24px;
}
.pp-price-original {
  font-size: 1.1rem;
  color: #B5A08A;
  text-decoration: line-through;
  margin-right: 8px;
}
.pp-price-final {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.2rem;
  color: #A0714E;
}
.pp-price-final small {
  font-size: 0.9rem;
  font-weight: 500;
  color: #8F7E6D;
}
.pp-divider {
  border: none;
  border-top: 1px solid rgba(139, 109, 78, 0.12);
  margin: 20px 0;
}
.pp-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #6B5D4F;
  margin-bottom: 6px;
}
.pp-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #D4C4B0;
  border-radius: 12px;
  background: #fff;
  font-size: 0.95rem;
  color: #3A2E22;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}
.pp-input:focus {
  border-color: #A0714E;
  box-shadow: 0 0 0 3px rgba(160,113,78,.12);
}
.pp-input::placeholder { color: #B5A08A; }

.pp-promo-row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}
.pp-promo-row .pp-input { flex: 1; }
.pp-btn-check {
  padding: 12px 18px;
  border: 1px solid #D4C4B0;
  border-radius: 12px;
  background: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  color: #A0714E;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.pp-btn-check:hover {
  background: #A0714E;
  color: #fff;
  border-color: #A0714E;
}
.pp-promo-result {
  font-size: 0.85rem;
  min-height: 20px;
  margin-bottom: 8px;
}
.pp-promo-ok { color: #16a34a; }
.pp-promo-err { color: #dc2626; }

.pp-field { margin-bottom: 16px; }

.pp-or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: #B5A08A;
  font-size: 0.8rem;
}
.pp-or-divider::before, .pp-or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(139, 109, 78, 0.15);
}
.pp-btn-google {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #D4C4B0;
  border-radius: 14px;
  background: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  color: #3A2E22;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all .25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  letter-spacing: 0.01em;
}
.pp-btn-google:hover {
  background: linear-gradient(135deg, #fafafa, #f0ebe5);
  border-color: #A0714E;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  transform: translateY(-1px);
}
.pp-btn-google:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
.pp-btn-google svg { width: 22px; height: 22px; flex-shrink: 0; }

.pp-btn-pay {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #C4956A, #A0714E);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .25s;
  margin-top: 20px;
  box-shadow: 0 4px 16px rgba(160,113,78,.3);
}
.pp-btn-pay:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(160,113,78,.4);
  background: linear-gradient(135deg, #D4A57A, #B0815E);
}
.pp-btn-pay:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Success popup styles */
.pp-success-icon {
  font-size: 3rem;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(34,197,94,.15), rgba(6,214,160,.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.pp-key-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #fff;
  border: 1px solid #D4C4B0;
  border-radius: 12px;
  padding: 14px 16px;
  font-family: var(--font-mono, monospace);
  font-size: 0.85rem;
  margin: 12px 0;
  word-break: break-all;
}
.pp-key-copy {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: #A0714E;
  flex-shrink: 0;
  transition: transform .2s;
}
.pp-key-copy:hover { transform: scale(1.2); }
.pp-order-id {
  text-align: center;
  font-size: 0.85rem;
  color: #8F7E6D;
  margin-top: 8px;
}

@media (max-width: 480px) {
  .purchase-popup {
    padding: 28px 20px;
    border-radius: 20px;
  }
  .pp-price-final { font-size: 1.8rem; }
}
