/* ============================================================
   TutDub Design System
   ============================================================ */

:root {
  --indigo-50: #eef2ff;
  --indigo-100: #e0e7ff;
  --indigo-200: #c7d2fe;
  --indigo-300: #a5b4fc;
  --indigo-400: #818cf8;
  --indigo-500: #6366f1;
  --indigo-600: #4f46e5;
  --indigo-700: #4338ca;
  --indigo-800: #3730a3;
  --indigo-900: #312e81;

  --purple-50: #faf5ff;
  --purple-500: #a855f7;
  --purple-600: #7c3aed;
  --purple-700: #6d28d9;

  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-200: #a7f3d0;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;

  --red-50: #fef2f2;
  --red-100: #fee2e2;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --red-700: #b91c1c;

  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-500: #f59e0b;
  --amber-600: #d97706;

  --cyan-50: #ecfeff;
  --cyan-600: #0891b2;

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --primary: var(--indigo-600);
  --primary-hover: var(--indigo-700);
  --primary-soft: var(--indigo-50);
  --secondary: var(--purple-600);
  --accent: var(--emerald-500);

  --grad-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --grad-soft: linear-gradient(135deg, var(--indigo-50) 0%, var(--purple-50) 100%);

  --text: var(--gray-900);
  --text-muted: var(--gray-500);
  --text-light: var(--gray-400);
  --bg: #ffffff;
  --bg-soft: var(--gray-50);
  --border: var(--gray-200);
  --border-strong: var(--gray-300);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow: 0 4px 12px rgba(16, 24, 40, 0.08);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, 0.1);
  --shadow-lg: 0 16px 48px rgba(16, 24, 40, 0.16);
  --shadow-brand: 0 8px 24px rgba(79, 70, 229, 0.32);

  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --header-h: 68px;
  --container: 1160px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

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

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
h5 {
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--gray-900);
}

ul,
ol {
  list-style: none;
}

::selection {
  background: var(--indigo-200);
}

:focus-visible {
  outline: 3px solid var(--indigo-300);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
}

.section-sm {
  padding: 48px 0;
}

.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* ---------- Headings & eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--indigo-50);
  border: 1px solid var(--indigo-100);
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  font-size: 40px;
  margin: 16px 0 12px;
  letter-spacing: -0.03em;
}

.section-head p {
  font-size: 18px;
  color: var(--text-muted);
}

.section-head .credits-rule {
  font-size: 16px;
  color: var(--gray-600);
  margin-top: 8px;
}
.section-head .credits-rule strong {
  color: var(--indigo-600);
  font-weight: 800;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: all 0.18s ease;
  white-space: nowrap;
  user-select: none;
  position: relative;
  text-align: center;
}

.btn:active { transform: translateY(1px) scale(0.99); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
  color: #fff;
}

.btn-secondary {
  background: var(--gray-900);
  color: #fff;
}
.btn-secondary:hover:not(:disabled) { background: var(--gray-800); color: #fff; }

.btn-outline {
  border-color: var(--border-strong);
  color: var(--gray-700);
  background: #fff;
}
.btn-outline:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--indigo-50);
}

.btn-ghost {
  color: var(--gray-600);
  border-color: var(--border);
}
.btn-ghost:hover:not(:disabled) {
  color: var(--gray-900);
  background: var(--gray-100);
  border-color: var(--gray-200);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover:not(:disabled) {
  background: var(--emerald-600);
  color: #fff;
}

.btn-lg { padding: 15px 28px; font-size: 16px; border-radius: 14px; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
  white-space: nowrap;
}
.chip .flag { width: auto; height: 15px; vertical-align: -2px; }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}
.card-pad { padding: 24px; }
.card-hover { transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--indigo-200);
}

/* ---------- Stat icon ---------- */
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.stat-icon.indigo { background: var(--indigo-50); color: var(--indigo-600); }
.stat-icon.purple { background: var(--purple-50); color: var(--purple-600); }
.stat-icon.emerald { background: var(--emerald-50); color: var(--emerald-600); }
.stat-icon.amber { background: var(--amber-50); color: var(--amber-600); }
.stat-icon.red { background: var(--red-50); color: var(--red-600); }
.stat-icon.cyan { background: var(--cyan-50); color: var(--cyan-600); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.92);
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 40px 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}
body.lightbox-open {
  overflow: hidden;
}

/* ---------- Accordion ---------- */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 12px;
  overflow: hidden;
}
.accordion-item[open] { box-shadow: var(--shadow-sm); border-color: var(--indigo-200); }
.accordion-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--gray-900);
  cursor: pointer;
  list-style: none;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary .chev {
  transition: transform 0.2s ease;
  color: var(--gray-400);
  flex-shrink: 0;
}
.accordion-item[open] summary .chev { transform: rotate(180deg); color: var(--primary); }
.accordion-body { padding: 0 20px 20px; color: var(--text-muted); font-size: 15px; }

/* ---------- Avatar ---------- */
.avatar {
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  background: var(--grad-primary);
  letter-spacing: 0;
}
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.avatar-stack { display: flex; }
.avatar-stack .avatar { border: 2.5px solid #fff; margin-left: -10px; }
.avatar-stack .avatar:first-child { margin-left: 0; }

/* ---------- Landing hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(60% 50% at 18% 0%, rgba(99, 102, 241, 0.16) 0%, transparent 60%),
    radial-gradient(55% 45% at 85% 10%, rgba(124, 58, 237, 0.14) 0%, transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--gray-50) 100%);
  padding: calc(var(--header-h) + 56px) 0 96px;
}
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(99, 102, 241, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 100%);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 100%);
  pointer-events: none;
}

/* ---------- Video placeholder ---------- */
.media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
  display: grid;
  place-items: center;
  color: #fff;
}
.media-grad-1 { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.media-grad-2 { background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.media-grad-3 { background: linear-gradient(135deg, #10b981, #0ea5e9); }
.media-grad-4 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.media-grad-5 { background: linear-gradient(135deg, #7c3aed, #db2777); }
.media-grad-6 { background: linear-gradient(135deg, #1f2937, #4b5563); }

/* ---------- Equalizer (waveform) ---------- */
.eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 100%;
}
.eq span {
  width: 4px;
  border-radius: 2px;
  background: currentColor;
  animation: eq 1s ease-in-out infinite;
  transform-origin: bottom;
}

/* ---------- Trust row ---------- */
.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  opacity: 0.55;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--gray-500);
}
.trust-row span { font-size: 18px; }
.trust-row svg { flex-shrink: 0; }
.trust-row img {
  width: auto;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
  filter: grayscale(1);
}
.trust-row .trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
}

/* ============================================================
   Landing page
   ============================================================ */
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-title {
  font-size: 58px;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 22px 0 18px;
}
.hero-sub {
  font-size: 19px;
  color: var(--gray-600);
  max-width: 480px;
  line-height: 1.6;
}
.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.hero-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}
.hero-stars-row {
  display: flex;
  color: var(--amber-500);
  gap: 2px;
}
.hero-stars span {
  font-size: 13px;
  color: var(--text-muted);
}

.mock-video {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.mock-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.35);
}
.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mock-dot.red { background: #f87171; }
.mock-dot.yellow { background: #fbbf24; }
.mock-dot.green { background: #34d399; }
.mock-url {
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.14);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}
.mock-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 40px 24px 20px;
}
.mock-eq {
  height: 110px;
  gap: 5px;
  color: rgba(255, 255, 255, 0.9);
}
.mock-eq span {
  width: 7px;
  height: 100%;
}
.mock-play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
}
.mock-title {
  font-weight: 700;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
}
.mock-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  flex-wrap: wrap;
}
.mock-lang {
  font-size: 20px;
}
.mock-clean {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.2);
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 10px 14px;
  z-index: 2;
}
.fc-1 { top: 14%; left: -8%; }
.fc-2 { top: 46%; right: -8%; }
.fc-3 { bottom: -12%; left: 4%; }
.fc-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.fc-icon.emerald { background: var(--emerald-50); color: var(--emerald-600); }
.fc-icon.purple { background: var(--purple-50); color: var(--purple-600); }
.fc-icon.indigo { background: var(--indigo-50); color: var(--indigo-600); }
.fc-title { font-size: 12.5px; font-weight: 700; color: var(--gray-900); }
.fc-sub { font-size: 11.5px; color: var(--text-muted); }

.how-card {
  position: relative;
  padding: 28px;
  text-align: left;
}
.how-num {
  position: absolute;
  top: 22px;
  right: 24px;
  font-size: 44px;
  font-weight: 900;
  color: var(--gray-200);
  letter-spacing: -0.03em;
}
.how-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  margin-bottom: 18px;
}
.how-title {
  font-size: 19px;
  margin-bottom: 8px;
}
.how-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
}

.demo-section {
  background: var(--bg-soft);
}
.demo-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}
.demo-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}
.demo-tag.before { background: var(--red-50); color: var(--red-600); }
.demo-tag.after { background: var(--emerald-50); color: var(--emerald-600); }
.demo-window {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.demo-window.clean {
  border-color: var(--emerald-200);
  background: linear-gradient(180deg, #fff, var(--emerald-50));
}
.demo-line {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-700);
  margin-bottom: 12px;
}
.demo-line:last-child { margin-bottom: 0; }
.filler {
  background: var(--red-100);
  color: var(--red-700);
  border-radius: 4px;
  padding: 1px 5px;
  font-weight: 600;
  text-decoration: line-through;
  text-decoration-color: var(--red-500);
}
.demo-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-brand);
}
.demo-stats {
  margin-top: 14px;
}
.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: var(--radius-full);
}
.stat-pill.bad { background: var(--gray-100); color: var(--gray-600); }
.stat-pill.good { background: var(--emerald-100); color: var(--emerald-700); }
.demo-langs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 40px;
  font-weight: 600;
  color: var(--gray-700);
}
.demo-langs .chip {
  padding: 6px 13px;
}
.demo-video {
  max-width: 760px;
  margin: 56px auto 0;
  text-align: center;
}
.demo-video-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 20px;
}
.demo-video-player {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: var(--shadow-sm);
}
.demo-video-el {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius-lg) - 6px);
  background: var(--gray-900);
  object-fit: contain;
}
.demo-video-langs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.demo-video-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray-600);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 7px 14px;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.demo-video-lang .flag {
  width: auto;
  height: 14px;
  flex-shrink: 0;
  border-radius: 2px;
}
.demo-video-lang:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.demo-video-lang.active {
  background: var(--grad-primary);
  border-color: transparent;
  color: #fff;
}
.demo-video-lang-tag {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.75;
}

.feat-card {
  padding: 26px;
}
.feat-title {
  font-size: 17px;
  margin: 16px 0 8px;
}
.feat-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.is-hidden {
  display: none !important;
}

.pricing-section {
  background: var(--bg-soft);
}
.pricing-grid {
  align-items: stretch;
}
.pricing-grid.single-plan {
  grid-template-columns: minmax(0, 420px);
  justify-content: center;
}
.pricing-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 560px;
  margin: 36px auto 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  text-align: center;
  line-height: 1.6;
}
.pricing-note svg { color: var(--emerald-500); flex-shrink: 0; }

.billing-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.billing-toggle {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 2px;
}
.billing-period {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: 0;
  border-radius: var(--radius-full);
  background: transparent;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s ease;
}
.billing-save {
  display: inline;
  align-items: center;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: var(--emerald-100);
  color: var(--emerald-600);
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}
.billing-period.active .billing-save {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.billing-period:hover { color: var(--gray-900); }
.billing-period.active {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.billing-country-form { margin: 0; }
.billing-country {
  padding: 9px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  background: #fff;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  max-width: 220px;
}

.price-card {
  position: relative;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  background: #fff;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.price-card.popular {
  border-color: var(--primary);
  box-shadow: var(--shadow-brand);
  background: linear-gradient(180deg, #fff 0%, var(--indigo-50) 180%);
}
.popular-tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: var(--shadow-brand);
}
.price-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--gray-900);
}
.price-tagline {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 5px;
  min-height: 38px;
}
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 18px;
  white-space: nowrap;
}
.price-num {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--gray-900);
  white-space: nowrap;
}
.price-currency {
  font-size: 20px;
  font-weight: 600;
  vertical-align: baseline;
  margin: 0 1px;
}
.popular .price-num {
  color: var(--primary);
}
.price-period {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}
.price-was {
  margin-left: 2px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: line-through;
  white-space: nowrap;
}
.price-card-free .price-num {
  font-size: 28px;
}
.billing-meta {
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
}
.price-credits {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.price-feats {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.price-feats li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--gray-700);
  font-weight: 500;
}
.feat-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--emerald-100);
  color: var(--emerald-600);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.faq-section {
  background: var(--bg-soft);
}

.cta-section {
  padding: 88px 0;
}
.cta-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--indigo-900), var(--purple-700));
  padding: 72px 32px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-box h2 {
  font-size: 40px;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.cta-box p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 28px;
}
.cta-eq {
  position: absolute;
  top: -40px;
  left: -20px;
  height: 220px;
  gap: 5px;
  color: rgba(255, 255, 255, 0.08);
  transform: rotate(-12deg);
}
.cta-eq span { width: 9px; }

/* ---------- Header ---------- */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 850;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.app-header.transparent {
  background: transparent;
  border-bottom-color: transparent;
}
.app-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border);
}

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

.desktop-nav {
  display: flex;
  gap: 28px;
  margin-left: 32px;
}
.desktop-nav a {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--gray-600);
}
.desktop-nav a:hover {
  color: var(--gray-900);
}

.text-invert {
  color: #fff !important;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.lang-switch {
  position: relative;
  display: inline-block;
}
.lang-switch > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  padding: 7px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--gray-200);
  background: #fff;
  user-select: none;
  transition: all 0.15s ease;
}
.lang-switch > summary::-webkit-details-marker {
  display: none;
}
.lang-switch > summary:hover {
  border-color: var(--gray-300);
  color: var(--gray-900);
}
.lang-switch > summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.lang-caret {
  width: 12px;
  height: 12px;
  transition: transform 0.15s ease;
}
.lang-switch[open] > summary .lang-caret {
  transform: rotate(180deg);
}
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 60;
}
.lang-menu li {
  margin: 0;
}
.lang-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  text-decoration: none;
  transition: all 0.15s ease;
}
.lang-menu a:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}
.lang-menu a.active {
  color: var(--primary);
  background: var(--indigo-50);
}
.lang-switch .lang-menu a {
  border-bottom: none;
}

.app-header.transparent .lang-switch > summary {
  background: rgba(255, 255, 255, 0.12);
}
.app-header.transparent .lang-switch > summary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lang-switch-mobile {
  margin: 4px 0 8px;
}
.lang-switch-mobile > summary {
  font-size: 14px;
  padding: 10px 14px;
}
.lang-switch-mobile .lang-menu {
  position: static;
  box-shadow: none;
  margin-top: 8px;
}

.hamburger {
  display: none;
  color: var(--gray-900);
}

.mobile-menu {
  display: none;
}
.mobile-menu.open {
  display: block;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 16px 0 24px;
  z-index: 849;
}
.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  font-weight: 600;
  font-size: 15px;
  color: var(--gray-800);
  border-bottom: 1px solid var(--gray-50);
}
.mobile-sep {
  height: 1px;
  background: var(--gray-100);
  margin: 8px 0;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--gray-900);
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--grad-primary);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-brand);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 64px 0 28px;
  margin-top: 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand .brand-logo {
  color: #fff;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 14px;
  max-width: 320px;
  line-height: 1.7;
  color: var(--gray-500);
}
.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.footer-socials a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gray-400);
  transition: all 0.15s ease;
}
.footer-socials a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.footer-col-title {
  font-weight: 700;
  color: #fff;
  font-size: 14px;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  padding: 7px 0;
  font-size: 14px;
  color: var(--gray-500);
  transition: color 0.15s ease;
}
.footer-col a:hover {
  color: #fff;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 24px;
  font-size: 13px;
  color: var(--gray-500);
  flex-wrap: wrap;
}
.heart {
  color: var(--red-500);
}

/* ============================================================
   Pages (blog / article / feedback / static)
   ============================================================ */

/* Fixed header clearance for non-landing pages */
body:not(.landing-page) {
  padding-top: var(--header-h);
}
body:not(.landing-page) .section {
  padding: 48px 0 96px;
}

/* ---------- Shared headings ---------- */
.section-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid var(--indigo-100);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}
.section-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0 0 12px;
}
.section-title .hl,
.hl {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.section-intro {
  font-size: 17.5px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 720px;
  margin: 0 0 40px;
}
.section-intro a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.section-intro a:hover {
  color: var(--primary-hover);
}

/* ---------- Rich content (raw HTML) ---------- */
.rich-content {
  color: var(--gray-700);
  font-size: 16.5px;
  line-height: 1.75;
  word-wrap: break-word;
}
.rich-content > * + * {
  margin-top: 16px;
}
.rich-content h2,
.rich-content h3,
.rich-content h4 {
  color: var(--text);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.rich-content h2 {
  font-size: 26px;
  margin: 40px 0 8px;
}
.rich-content h3 {
  font-size: 21px;
  margin: 32px 0 6px;
}
.rich-content h4 {
  font-size: 17.5px;
  margin: 24px 0 4px;
}
.rich-content p {
  margin: 0 0 16px;
}
.rich-content ul,
.rich-content ol {
  padding-left: 22px;
  margin: 0 0 16px;
}
.rich-content ul {
  list-style: disc;
}
.rich-content ol {
  list-style: decimal;
}
.rich-content li {
  margin-bottom: 6px;
}
.rich-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rich-content a:hover {
  color: var(--primary-hover);
}
.rich-content img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin: 24px auto;
  cursor: zoom-in;
}
.rich-content blockquote {
  border-left: 3px solid var(--indigo-300);
  background: var(--gray-50);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  color: var(--gray-600);
  font-style: italic;
  margin: 24px 0;
}
.rich-content blockquote > :last-child {
  margin-bottom: 0;
}
.rich-content pre {
  background: var(--gray-900);
  color: #e5e7eb;
  padding: 16px 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
  margin: 24px 0;
}
.rich-content code {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas,
    monospace;
  font-size: 0.9em;
  background: var(--gray-100);
  padding: 2px 6px;
  border-radius: 6px;
}
.rich-content pre code {
  background: none;
  padding: 0;
}
.rich-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}
.rich-content th,
.rich-content td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}
.rich-content th {
  background: var(--gray-50);
  font-weight: 600;
}
.rich-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

/* ---------- Blog list ---------- */
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  align-items: start;
  margin-top: 8px;
}
.blog-main {
  min-width: 0;
}
.blog-list {
  display: grid;
  gap: 24px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.blog-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.blog-card-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.blog-card-title {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text);
}
.blog-card-title:hover {
  color: var(--primary);
}
.blog-card-excerpt {
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.65;
}
.blog-card-link {
  align-self: flex-start;
  margin-top: 4px;
}
.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.blog-card-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid var(--indigo-100);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.blog-card-tag:hover {
  background: var(--indigo-100);
  border-color: var(--indigo-200);
}
.blog-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
}
.blog-pagination-item {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--gray-600);
  font-weight: 600;
  font-size: 14.5px;
  padding: 0 8px;
  transition: all 0.15s ease;
}
.blog-pagination-item:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.blog-pagination-item.active {
  background: var(--grad-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-brand);
}
.blog-rss {
  margin-top: 24px;
  text-align: center;
}
.blog-rss-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray-500);
}
.blog-rss-link:hover {
  color: var(--primary);
}
.blog-rss-link i {
  color: var(--primary);
  font-size: 15px;
}
.blog-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.blog-sidebar-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 14px;
}
.blog-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.blog-cat-chip,
.blog-tag-chip {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray-600);
  background: #fff;
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  transition: all 0.15s ease;
}
.blog-cat-chip:hover,
.blog-tag-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.blog-cat-chip.active,
.blog-tag-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ---------- Blog article ---------- */
.blog-article-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  margin-bottom: 8px;
}
.blog-article-breadcrumbs a {
  color: var(--gray-500);
  font-weight: 500;
}
.blog-article-breadcrumbs a:hover {
  color: var(--primary);
}
.blog-article-breadcrumbs-sep {
  color: var(--gray-300);
}
.blog-article-title {
  max-width: 800px;
  font-size: 42px;
  margin-bottom: 16px;
}
.blog-article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.blog-article-date {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.blog-article-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--text-muted);
}
.blog-article-tag {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}
.blog-article-tag:hover {
  background: var(--indigo-100);
}
.blog-article-lead {
  max-width: 780px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--gray-700);
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-left: 3px solid var(--indigo-300);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
}
.blog-article-lead > :last-child {
  margin-bottom: 0;
}
.blog-article-body {
  max-width: 780px;
}
.blog-article-back {
  margin-top: 40px;
}

/* ---------- Feedback pages ---------- */
.feedback-section {
  text-align: center;
}
.feedback-section .container {
  max-width: 720px;
}
.feedback-section .section-intro {
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
.feedback-form {
  margin-top: 8px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 20px;
}
.feedback-form-field {
  display: grid;
  gap: 8px;
}
.feedback-form-field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
}
.feedback-form-field input,
.feedback-form-field textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.feedback-form-field input:focus,
.feedback-form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.feedback-form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-muted);
  cursor: pointer;
}
.feedback-form-check input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--primary);
  cursor: pointer;
}
.feedback-form-check a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.feedback-form-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.feedback-form-noscript {
  font-size: 14px;
  color: var(--amber-600);
  background: var(--amber-50);
  border: 1px solid var(--amber-100);
  padding: 10px 16px;
  border-radius: var(--radius);
}

/* ---------- Shop page ---------- */
.shop-section {
  text-align: center;
}
.shop-section .container {
  max-width: 560px;
}
.shop-form {
  margin-top: 8px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 20px;
}
.shop-form-field {
  display: grid;
  gap: 8px;
}
.shop-form-field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
}
.shop-form-field input,
.shop-form-field select {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.shop-form-field input:focus,
.shop-form-field select:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.shop-form-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}
.shop-form-note {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
}
.shop-coupon-row {
  display: flex;
  gap: 10px;
}
.shop-coupon-row input {
  flex: 1;
}
.shop-coupon-result {
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius);
  margin-top: 4px;
}
.shop-coupon-ok {
  background: var(--emerald-50);
  color: var(--emerald-700);
  border: 1px solid var(--emerald-200);
}
.shop-coupon-error {
  background: var(--red-50);
  color: var(--red-700);
  border: 1px solid var(--red-100);
}
.shop-price-box {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.shop-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  padding: 4px 0;
}
.shop-price-original {
  color: var(--text-muted);
}
.shop-price-discount {
  color: var(--emerald-600);
  font-weight: 600;
}
.shop-price-final {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 12px;
}
.shop-price-final.shop-total-first {
  border-top: 0;
  margin-top: 0;
  padding-top: 4px;
}
.shop-alert {
  font-size: 14px;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  text-align: left;
}
.shop-alert-error {
  background: var(--red-50);
  color: var(--red-700);
  border: 1px solid var(--red-100);
}
.shop-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--emerald-50);
  color: var(--emerald-600);
  font-size: 36px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.shop-success-text {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
#shop-success p .btn {
  margin: 8px 4px 0;
}
.shop-fail-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--red-50);
  color: var(--red-600);
  font-size: 36px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 2px solid var(--red-200);
}

/* ---------- Static page ---------- */
.static-page-title {
  text-align: center;
  margin-bottom: 32px;
}
.static-page-lead {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 640px;
}
.static-page-section {
  margin-top: 56px;
}
.static-page-section-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 8px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.static-page-section-description {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 16px;
}

/* ---------- 404 page ---------- */
.error-section {
  text-align: center;
}
.error-section .container {
  max-width: 640px;
}
.error-section .section-intro {
  margin-left: auto;
  margin-right: auto;
}
.error-code {
  font-size: 108px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 8px;
}
.error-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ---------- Animations ---------- */
@keyframes eq {
  0%, 100% { height: 30%; }
  50% { height: 100%; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.float-y { animation: float-y 5s ease-in-out infinite; }
.fade-up { animation: fade-up 0.5s ease both; }
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding-top: calc(var(--header-h) + 40px); }
  .section-head h2 { font-size: 34px; }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    max-width: 520px;
  }
  .float-card.fc-2 { right: -2%; }
  .demo-grid {
    grid-template-columns: 1fr;
  }
  .demo-arrow {
    transform: rotate(90deg);
    margin: 0 auto;
  }
  .blog-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .blog-sidebar {
    position: static;
  }
}

@media (max-width: 860px) {
  .desktop-nav,
  .login-btn {
    display: none;
  }
  .hamburger {
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  body:not(.landing-page) .section { padding: 40px 0 72px; }
  .trust-row { gap: 24px; }
  .trust-row span { font-size: 15px; }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .section-title { font-size: 32px; }
  .section-intro { font-size: 16.5px; }
  .blog-article-title { font-size: 34px; }
  .blog-article-lead { font-size: 18px; }
  .feedback-form { padding: 24px; }
}

@media (max-width: 640px) {
  .hero-title { font-size: 42px; }
  .hero-sub { font-size: 17px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-grid.single-plan { grid-template-columns: 1fr; }
  .blog-card { padding: 22px; gap: 8px; }
  .blog-card-title { font-size: 19px; }
  .blog-article-title { font-size: 28px; }
  .blog-article-meta { gap: 12px; }
  .feedback-form-actions .btn { width: 100%; }
  .static-page-section { margin-top: 40px; }
  .error-code { font-size: 72px; }
  .error-actions .btn { width: 100%; }
}

/* ---- Compare plans table (pricing page) ---- */
.compare-section { padding-top: 24px; }
.compare-wrap { border-radius: var(--radius-xl); overflow: hidden; }
.compare-table { width: 100%; min-width: 560px; border-collapse: collapse; }
.compare-table th,
.compare-table td {
  padding: 15px 14px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.compare-table th:first-child { text-align: left; width: 240px; }
.compare-table thead th {
  background: var(--gray-50);
  font-weight: 700;
}
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tbody td { color: var(--gray-700); }
.compare-plan { font-weight: 800; font-size: 15px; color: var(--gray-900); }
.compare-feat,
td.compare-feat {
  font-weight: 600;
  color: var(--gray-800);
  text-align: left;
  white-space: nowrap;
}
.compare-cell .cmp-check { color: var(--emerald-500); display: inline-grid; place-items: center; }
.cmp-no { color: var(--gray-300); font-weight: 700; }
.cmp-val { font-weight: 600; color: var(--gray-800); white-space: nowrap; }

/* ---- On-demand credits (pricing page) ---- */
.credits-card { margin-top: 28px; padding: 20px 24px; }
.credits-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.credits-title { font-size: 19px; font-weight: 800; color: var(--gray-900); margin: 0; }
.credits-chips { display: flex; gap: 6px; }
.credit-chip {
  min-width: 46px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--gray-50);
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.credit-chip:hover { border-color: var(--indigo-300); color: var(--indigo-600); }
.credit-chip.active {
  background: var(--indigo-600);
  border-color: var(--indigo-600);
  color: #fff;
}
.credits-eyebrow {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--indigo-600);
  white-space: nowrap;
}
.credits-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 20px;
  align-items: center;
  margin-top: 16px;
}
.credits-value { display: flex; align-items: baseline; gap: 6px; justify-content: flex-end; }
.credits-num { font-size: 28px; font-weight: 800; line-height: 1; color: var(--gray-900); }
.credits-label { font-size: 12px; color: var(--gray-500); font-weight: 600; }
.credits-control { padding: 4px 2px; }
.credit-range { width: 100%; height: 5px; border-radius: 999px; background: var(--indigo-100); appearance: none; }
.credit-range::-webkit-slider-thumb {
  appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--indigo-600);
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(79, 70, 229, 0.35);
  cursor: pointer;
}
.credit-range::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--indigo-600);
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(79, 70, 229, 0.35);
  cursor: pointer;
}
.credits-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--gray-500);
  font-weight: 600;
}
.credits-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  white-space: nowrap;
}
.credits-per { font-size: 13px; color: var(--gray-600); }
.credits-per span { font-weight: 800; color: var(--gray-900); }
.credits-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.credits-note { font-size: 13px; color: var(--gray-500); margin: 0; }

@media (max-width: 720px) {
  .credits-eyebrow { margin-left: 0; width: 100%; }
  .credits-row { grid-template-columns: 1fr; gap: 10px; }
  .credits-value { justify-content: flex-start; }
  .credits-actions { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ---------- Cookie consent ---------- */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgba(16, 24, 40, 0.1);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  display: none;
}
.cookie-consent.show {
  display: block;
  transform: translateY(0);
}
.cookie-consent-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.cookie-consent-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray-700);
}
.cookie-consent-text a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}
.cookie-consent-accept {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .cookie-consent-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .cookie-consent-accept {
    align-self: flex-end;
  }
}