/**
 * PROMPT 209 — Public Website Premium Conversion UX
 * SaaS + premium education · RTL · non-destructive layer over home.css
 */
:root {
  --cv-purple: #7c3aed;
  --cv-blue: #2563eb;
  --cv-green: #059669;
  --cv-orange: #ea580c;
  --cv-ink: #0f172a;
  --cv-muted: #64748b;
  --cv-radius: 20px;
  --cv-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  --cv-shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.1);
}

/* ── Hero conversion polish ───────────────────────────────── */
.home-page-v2 .hp-hero-copy .cv209-trust {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 1rem;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.35);
  backdrop-filter: blur(10px);
}
.home-page-v2 .hp-hero-copy .cv209-trust i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.22);
}
.home-page-v2 .hp-hero-copy .cv209-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 1.15rem;
}
.home-page-v2 .hp-hero-copy .cv209-pill {
  display: inline-flex;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.home-page-v2 .cv209-ai-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 1rem;
  padding: 10px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.28), rgba(37, 99, 235, 0.22));
  border: 1px solid rgba(196, 181, 253, 0.35);
  color: #f5f3ff;
  cursor: pointer;
  text-align: right;
  font: inherit;
  max-width: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.home-page-v2 .cv209-ai-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(124, 58, 237, 0.25);
}
.home-page-v2 .cv209-ai-chip strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
}
.home-page-v2 .cv209-ai-chip span {
  display: block;
  font-size: 0.75rem;
  opacity: 0.88;
  margin-top: 2px;
}
.home-page-v2 .cv209-ai-chip .ico {
  font-size: 1.35rem;
  flex-shrink: 0;
}

/* Lightweight assessment preview (no heavy animation) */
.home-page-v2 .cv209-preview {
  position: absolute;
  inset: auto 6% 8% 6%;
  z-index: 2;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 12px 14px;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  max-width: 280px;
  margin-inline-start: auto;
}
.home-page-v2 .hp-hero-stage {
  position: relative;
}
.home-page-v2 .cv209-preview__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #e2e8f0;
}
.home-page-v2 .cv209-preview__badge {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.18);
  color: #6ee7b7;
  font-size: 0.65rem;
}
.home-page-v2 .cv209-preview__bars {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.home-page-v2 .cv209-preview__row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  color: #cbd5e1;
  font-weight: 700;
}
.home-page-v2 .cv209-preview__row span {
  flex: 0 0 4.2rem;
}
.home-page-v2 .cv209-preview__row i {
  flex: 1;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: block;
}
.home-page-v2 .cv209-preview__row i em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7c3aed, #38bdf8);
}

/* ── Conversion sections ──────────────────────────────────── */
.cv209-wrap {
  direction: rtl;
  color: var(--cv-ink);
  font-family: 'Vazirmatn', Vazir, Tahoma, system-ui, sans-serif;
}
.cv209-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) 1.25rem;
}
.cv209-section__head {
  text-align: center;
  margin-bottom: 1.75rem;
  max-width: 40rem;
  margin-inline: auto;
}
.cv209-section__label {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--cv-purple);
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  margin-bottom: 0.65rem;
}
.cv209-section__head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}
.cv209-section__head p {
  margin: 0;
  color: var(--cv-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* Product cards */
.cv209-products {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.cv209-product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 700px) {
  .cv209-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1000px) {
  .cv209-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.cv209-pcard {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--cv-radius);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--cv-shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 210px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  color: inherit;
}
.cv209-pcard:hover {
  transform: translateY(-3px);
  box-shadow: var(--cv-shadow-lg);
  border-color: #c7d2fe;
}
.cv209-pcard--ielts {
  background: linear-gradient(165deg, #faf5ff 0%, #fff 55%);
  border-color: #ddd6fe;
}
.cv209-pcard__ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}
.cv209-pcard--ielts .cv209-pcard__ico {
  background: linear-gradient(145deg, #ede9fe, #e0e7ff);
  border-color: #c4b5fd;
}
.cv209-pcard h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}
.cv209-pcard p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--cv-muted);
  line-height: 1.6;
  flex: 1;
}
.cv209-pcard__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cv209-pcard__skills span {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
}
.cv209-pcard__cta {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--cv-blue);
}

/* IELTS landing */
.cv209-ielts {
  background: linear-gradient(160deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
  color: #f8fafc;
}
.cv209-ielts .cv209-section__label {
  background: rgba(167, 139, 250, 0.15);
  border-color: rgba(196, 181, 253, 0.35);
  color: #ddd6fe;
}
.cv209-ielts .cv209-section__head p {
  color: rgba(226, 232, 240, 0.85);
}
.cv209-ielts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 1.5rem;
}
@media (min-width: 800px) {
  .cv209-ielts-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.cv209-skill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1rem;
  min-height: 140px;
}
.cv209-skill h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 800;
}
.cv209-skill p {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.85;
  line-height: 1.55;
}
.cv209-ielts-why {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 1.5rem;
}
@media (min-width: 700px) {
  .cv209-ielts-why {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.cv209-ielts-why article {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.84rem;
  line-height: 1.55;
}
.cv209-ielts-why strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 800;
}
.cv209-ielts-cta {
  text-align: center;
}
.cv209-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 1.35rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}
.cv209-btn:hover {
  transform: translateY(-1px);
}
.cv209-btn--primary {
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  color: #fff;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
}
.cv209-btn--secondary {
  background: #fff;
  color: #312e81;
  border: 1px solid #e2e8f0;
}
.cv209-btn--ghost {
  background: transparent;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.cv209-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* Pricing */
.cv209-pricing {
  background: #fff;
}
.cv209-price-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 800px) {
  .cv209-price-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.cv209-price {
  position: relative;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--cv-radius);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--cv-shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 260px;
}
.cv209-price--featured {
  border-color: #c4b5fd;
  background: linear-gradient(180deg, #faf5ff 0%, #fff 40%);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.12);
}
.cv209-price__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  background: #ffedd5;
  color: #c2410c;
  border: 1px solid #fed7aa;
}
.cv209-price h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}
.cv209-price__desc {
  margin: 0;
  font-size: 0.82rem;
  color: var(--cv-muted);
  line-height: 1.55;
  flex: 1;
}
.cv209-price__val {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--cv-ink);
}
.cv209-price__val s {
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 700;
  margin-left: 8px;
}
.cv209-price__note {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
}

/* Trust */
.cv209-trust {
  background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
}
.cv209-trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 700px) {
  .cv209-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1000px) {
  .cv209-trust-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.cv209-tcard {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.1rem;
  box-shadow: var(--cv-shadow);
}
.cv209-tcard__ico {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}
.cv209-tcard h3 {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: #1e3a8a;
}
.cv209-tcard p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--cv-muted);
  line-height: 1.55;
}

/* How it works */
.cv209-how {
  background: #fff;
}
.cv209-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 920px;
  margin: 0 auto;
}
@media (min-width: 800px) {
  .cv209-steps {
    flex-direction: row;
    align-items: stretch;
  }
}
.cv209-step {
  flex: 1;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.1rem;
  position: relative;
}
.cv209-step__n {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  margin-bottom: 0.65rem;
}
.cv209-step h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 800;
}
.cv209-step p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--cv-muted);
  line-height: 1.55;
}
@media (min-width: 800px) {
  .cv209-step:not(:last-child)::after {
    content: '←';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    color: #c4b5fd;
    font-weight: 900;
    font-size: 1rem;
  }
}

/* Final CTA */
.cv209-final {
  background: linear-gradient(135deg, #4c1d95 0%, #2563eb 55%, #0ea5e9 100%);
  color: #fff;
  text-align: center;
  border-radius: 0;
  margin: 0;
  padding: clamp(2.75rem, 6vw, 4.5rem) 1.25rem;
}
.cv209-final h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 900;
}
.cv209-final p {
  margin: 0 auto 1.35rem;
  max-width: 32rem;
  opacity: 0.92;
  line-height: 1.65;
  font-size: 0.95rem;
}
.cv209-final .cv209-btn--primary {
  background: #fff;
  color: #5b21b6;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.cv209-final .cv209-btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

/* Floating AI hint near existing robot dock */
.cv209-fab-hint {
  position: fixed;
  bottom: 96px;
  left: 22px;
  z-index: 90;
  max-width: 200px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: var(--cv-shadow-lg);
  font-size: 0.75rem;
  color: #334155;
  line-height: 1.45;
  direction: rtl;
  animation: cv209fade 0.35s ease;
}
.cv209-fab-hint strong {
  display: block;
  color: #5b21b6;
  margin-bottom: 2px;
  font-size: 0.78rem;
}
.cv209-fab-hint button {
  position: absolute;
  top: 4px;
  left: 6px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  color: #94a3b8;
  line-height: 1;
}
@keyframes cv209fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 640px) {
  .home-page-v2 .cv209-preview {
    display: none; /* keep mobile hero light */
  }
  .cv209-fab-hint {
    bottom: 88px;
    left: 12px;
    max-width: 160px;
  }
  .cv209-btn-row {
    flex-direction: column;
  }
  .cv209-btn {
    width: 100%;
  }
}

/* Reveal helper */
.cv209-reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.cv209-reveal.is-in {
  opacity: 1;
  transform: none;
}
