/* =====================================================
   BasharYab Landing Page Styles
   Mobile-first — base: phones, then min-width breakpoints
   ===================================================== */
@import "fonts.css";

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

:root {
  --lp-bg:         #EEF4FE;
  --lp-primary:    #2563EB;
  --lp-primary-dk: #1d4ed8;
  --lp-text:       #0f172a;
  --lp-muted:      #64748b;
  --lp-border:     #e2e8f0;
  --lp-white:      #ffffff;
  --lp-nav-h:      4rem;
  --lp-radius:     1rem;
  --lp-radius-sm:  .5rem;
  --lp-footer-bg:  #0f172a;
  --lp-font-fa:    "Vazirmatn", "Vazir", system-ui, -apple-system, sans-serif;
  --lp-font-en:    system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.lp-body {
  background: var(--lp-bg);
  font-family: var(--lp-font-fa);
  color: var(--lp-text);
  min-height: 100vh;
  overflow-x: hidden;
}

html[lang="en"] .lp-body { font-family: var(--lp-font-en); }

/* ── Container ──────────────────────────────────── */
.lp-container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 768px) {
  .lp-container { padding-inline: 2rem; }
}
@media (min-width: 1024px) {
  .lp-container { padding-inline: 2.5rem; }
}

/* ── Buttons ────────────────────────────────────── */
.lp-btn-primary, .lp-btn-outline, .lp-btn-ghost, .lp-btn-hero {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  border-radius: var(--lp-radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
  min-height: 44px;
  padding: .55rem 1.25rem;
  font-size: .9rem;
  font-family: inherit;
}

.lp-btn-primary {
  background: var(--lp-primary);
  color: var(--lp-white);
  border: 2px solid var(--lp-primary);
}
.lp-btn-primary:hover { background: var(--lp-primary-dk); border-color: var(--lp-primary-dk); }

.lp-btn-outline {
  background: transparent;
  color: var(--lp-primary);
  border: 2px solid var(--lp-primary);
}
.lp-btn-outline:hover { background: var(--lp-primary); color: var(--lp-white); }

.lp-btn-ghost {
  background: #fff;
  color: #0F172A;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 13px 24px;
  font-size: .9375rem;
  font-weight: 600;
}
.lp-btn-ghost:hover { border-color: #CBD5E1; }

.lp-btn-hero {
  background: var(--lp-primary);
  color: var(--lp-white);
  border: 2px solid var(--lp-primary);
  font-size: 1rem;
  padding: .75rem 1.75rem;
  border-radius: var(--lp-radius-sm);
}
.lp-btn-hero:hover { background: var(--lp-primary-dk); border-color: var(--lp-primary-dk); transform: translateY(-1px); }
.lp-btn-hero--white {
  background: var(--lp-white);
  color: var(--lp-primary);
  border-color: var(--lp-white);
}
.lp-btn-hero--white:hover { background: #f0f9ff; border-color: #f0f9ff; }

/* ── NAV ────────────────────────────────────────── */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--lp-white);
  border-bottom: 1px solid var(--lp-border);
  height: var(--lp-nav-h);
  display: flex;
  align-items: center;
}

.lp-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4rem;
}

/* Logo + nav links grouped */
.lp-nav-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.lp-logo {
  display: flex;
  align-items: center;
  gap: .5625rem;
  text-decoration: none;
  flex-shrink: 0;
}
.lp-logo-icon {
  width: 32px;
  height: 32px;
  background: #2563EB;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(37,99,235,.4);
}
.lp-logo-wordmark {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -.02em;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.lp-logo-bashar { color: var(--lp-text); }
.lp-logo-yab    { color: var(--lp-primary); }
.lp-logo-img    { height: 2rem; width: auto; }

.lp-nav-links {
  display: none;
  align-items: center;
  gap: 1.375rem;
}
.lp-nav-link {
  color: #475569;
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  transition: color .15s;
}
.lp-nav-link:hover { color: var(--lp-text); }

.lp-nav-actions {
  display: none;
  align-items: center;
  gap: .625rem;
}

/* Language switcher — pill with white bg */
.lp-lang-pill {
  border: 1px solid #E2E8F0;
  background: #fff;
  border-radius: 999px;
  padding: 5px 13px;
  font-size: .75rem;
  font-weight: 600;
  color: #64748B;
  text-decoration: none;
  font-family: 'Inter', 'Vazirmatn', system-ui, sans-serif;
  white-space: nowrap;
}
.lp-lang-pill:hover { border-color: #CBD5E1; }

/* ورود — outlined */
.lp-btn-nav-login {
  color: #0F172A;
  text-decoration: none;
  font-size: .875rem;
  font-weight: 600;
  padding: 8px 14px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  background: transparent;
  transition: border-color .15s;
  white-space: nowrap;
}
.lp-btn-nav-login:hover { border-color: #CBD5E1; }

/* شروع رایگان — solid blue */
.lp-btn-nav-signup {
  background: #2563EB;
  color: #fff;
  text-decoration: none;
  font-size: .875rem;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(37,99,235,.35);
  white-space: nowrap;
  transition: background .15s;
}
.lp-btn-nav-signup:hover { background: #1D4ED8; }

/* Keep old lang classes in case used elsewhere */
.lp-lang-switch { display: flex; align-items: center; gap: .25rem; font-size: .8rem; }
.lp-lang-btn { color: var(--lp-muted); text-decoration: none; transition: color .15s; }
.lp-lang-btn:hover, .lp-lang-btn--active { color: var(--lp-primary); font-weight: 600; }
.lp-lang-sep { color: var(--lp-border); }

.lp-hamburger {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--lp-text);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

@media (min-width: 768px) {
  .lp-nav-links   { display: flex; }
  .lp-nav-actions { display: flex; }
  .lp-hamburger   { display: none; }
}

/* ── HERO ───────────────────────────────────────── */
.lp-hero {
  padding-block: 3rem 2rem;
}

.lp-hero-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.lp-hero-text {
  order: 1;
  text-align: center;
}

.lp-hero-widget {
  order: 2;
  display: flex;
  justify-content: center;
}

@media (min-width: 768px) {
  .lp-hero { padding-block: 4.5rem 3rem; }
  .lp-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
  }
  .lp-hero-text, .lp-hero-widget { order: unset; text-align: start; }
  html[dir="rtl"] .lp-hero-text   { order: 2; }
  html[dir="rtl"] .lp-hero-widget { order: 1; }
  html[dir="ltr"] .lp-hero-text   { order: 1; }
  html[dir="ltr"] .lp-hero-widget { order: 2; }
}

@media (min-width: 1024px) {
  .lp-hero { padding-block: 6rem 4rem; }
}

.lp-hero-title {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--lp-text);
  margin-block-end: 1rem;
}

.lp-hero-desc {
  font-size: clamp(.95rem, 1.5vw, 1.1rem);
  color: var(--lp-muted);
  line-height: 1.8;
  margin-block-end: 1.75rem;
}

.lp-hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  margin-block-end: 1rem;
}
@media (min-width: 768px) { .lp-hero-btns { justify-content: flex-start; } }

.lp-hero-guide {
  font-size: .8rem;
  color: var(--lp-muted);
}

/* Widget mockup card */
@keyframes wm-float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}
@keyframes wm-check-pop {
  0%   { transform: scale(0.4); opacity: 0; }
  60%  { transform: scale(1.15); opacity: 1; }
  80%  { transform: scale(0.92); }
  100% { transform: scale(1); opacity: 1; }
}

.widget-mockup-card {
  background: var(--lp-white);
  border-radius: var(--lp-radius);
  box-shadow: 0 8px 40px rgba(37, 99, 235, .14), 0 2px 8px rgba(0,0,0,.06);
  padding: 1.75rem;
  width: 100%;
  max-width: 360px;
}
.wm-float { animation: wm-float 4s ease-in-out infinite; }

.wm-form { display: flex; flex-direction: column; gap: .75rem; }

.wm-form-title {
  font-size: .8rem;
  color: var(--lp-muted);
  text-align: end;
  margin-block-end: .25rem;
}

.wm-field {
  background: #f8fafc;
  border: 1.5px solid var(--lp-border);
  border-radius: var(--lp-radius-sm);
  height: 42px;
  display: flex;
  align-items: center;
  padding-inline: .75rem;
}
.wm-field--blurred { opacity: .45; filter: blur(1px); }

.wm-field-line {
  height: 8px;
  background: #cbd5e1;
  border-radius: 4px;
}
.wm-field-line--long { width: 75%; }
.wm-field-line--med  { width: 45%; }

.wm-captcha-row {
  background: #f8fafc;
  border: 1.5px solid var(--lp-border);
  border-radius: var(--lp-radius-sm);
  padding: .65rem .75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.wm-captcha-row--verified {
  background: #f0fdf4;
  border-color: #86efac;
}

.wm-brand-badge {
  display: flex;
  align-items: center;
  gap: .3rem;
  flex-shrink: 0;
}
.wm-brand-name { font-size: .72rem; font-weight: 700; color: var(--lp-primary); }
.wm-brand-dot {
  width: 7px; height: 7px;
  background: var(--lp-primary);
  border-radius: 50%;
}

.wm-verified-texts {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: center;
}
.wm-check-icon { width: 22px; height: 22px; flex-shrink: 0; }
.wm-check-icon svg { width: 22px; height: 22px; display: block; }
.wm-check-pop { animation: wm-check-pop .6s cubic-bezier(.34,1.56,.64,1) 0.3s both; }
.wm-verified-text { font-size: .75rem; font-weight: 700; color: #15803d; }
.wm-verified-sub  { font-size: .65rem; color: #16a34a; margin-block-start: .1rem; }

.wm-submit-btn {
  background: #374151;
  color: var(--lp-white);
  border: none;
  border-radius: var(--lp-radius-sm);
  height: 42px;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
}
.wm-submit-btn--blurred { opacity: .45; filter: blur(1px); }

/* ── TRUSTED BY ─────────────────────────────────── */
.lp-trusted {
  background: var(--lp-white);
  padding-block: 1.5rem;
  border-block: 1px solid var(--lp-border);
}

.lp-trusted .lp-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.lp-trusted-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--lp-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.lp-trusted-logos {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
}

.lp-logo-pill {
  background: var(--lp-bg);
  border: 1px solid var(--lp-border);
  border-radius: 999px;
  padding: .3rem 1rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--lp-muted);
}

/* ── LIVE DEMO ──────────────────────────────────── */
.lp-demo {
  padding-block: 3rem;
}

.lp-demo-title {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  text-align: center;
  margin-block-end: 1.75rem;
}

.lp-demo-inner { display: flex; flex-direction: column; gap: 1rem; align-items: center; }

.lp-demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  background: var(--lp-white);
  padding: .5rem;
  border-radius: var(--lp-radius);
  border: 1px solid var(--lp-border);
}

.lp-demo-tab {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1rem;
  border: none;
  background: transparent;
  border-radius: var(--lp-radius-sm);
  font-size: .85rem;
  font-weight: 500;
  color: var(--lp-muted);
  cursor: pointer;
  transition: background .15s, color .15s;
  min-height: 44px;
  font-family: inherit;
}
.lp-demo-tab:hover { background: var(--lp-bg); color: var(--lp-text); }
.lp-demo-tab--active { background: var(--lp-primary); color: var(--lp-white); }

.lp-demo-card {
  background: var(--lp-white);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  padding: 2rem;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 480px;
}

.lp-demo-preview { width: 100%; display: flex; justify-content: center; }

.lp-demo-widget { width: 100%; max-width: 320px; }

.lp-demo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  color: var(--lp-muted);
  font-size: .9rem;
  text-align: center;
}

/* ── STEPS ──────────────────────────────────────── */
.lp-steps {
  padding-block: 3.5rem;
  background: var(--lp-white);
}

.lp-section-title {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  text-align: center;
  margin-block-end: .5rem;
}

.lp-section-sub {
  text-align: center;
  color: var(--lp-muted);
  font-size: .95rem;
  line-height: 1.7;
  margin-block-end: 2.5rem;
  max-width: 600px;
  margin-inline: auto;
}

.lp-steps-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.lp-step-connector { display: none; }

@media (min-width: 768px) {
  .lp-steps-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: start;
    gap: 1rem;
  }
  .lp-step-connector {
    display: block;
    align-self: center;
    width: 2.5rem;
    height: 2px;
    background: var(--lp-primary);
    opacity: .3;
    margin-block-start: 1.5rem;
  }
}

.lp-step-card {
  background: var(--lp-bg);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  padding: 1.5rem;
  text-align: center;
}

.lp-step-num {
  width: 48px; height: 48px;
  background: var(--lp-primary);
  color: var(--lp-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin-inline: auto;
  margin-block-end: 1rem;
}

.lp-step-title {
  font-size: 1rem;
  font-weight: 700;
  margin-block-end: .5rem;
}

.lp-step-desc {
  font-size: .875rem;
  color: var(--lp-muted);
  line-height: 1.7;
}

/* ── WHY US ─────────────────────────────────────── */
.lp-why {
  padding-block: 4rem;
}

.lp-why-badge {
  background: #dbeafe;
  color: var(--lp-primary);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: .3rem .85rem;
  border-radius: 999px;
  margin-block-end: .75rem;
  display: flex;
  justify-content: center;
  width: fit-content;
  margin-inline: auto;
}

.lp-why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

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

.lp-why-card {
  background: var(--lp-white);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  padding: 1.5rem;
  transition: box-shadow .2s, transform .2s;
}
.lp-why-card:hover {
  box-shadow: 0 8px 24px rgba(37, 99, 235, .1);
  transform: translateY(-2px);
}

.lp-why-icon {
  width: 40px; height: 40px;
  margin-block-end: 1rem;
}
.lp-why-icon svg { width: 40px; height: 40px; }

.lp-why-title {
  font-size: .95rem;
  font-weight: 700;
  margin-block-end: .4rem;
}

.lp-why-desc {
  font-size: .85rem;
  color: var(--lp-muted);
  line-height: 1.7;
}

/* ── PRICING ────────────────────────────────────── */
.lp-pricing {
  padding-block: 4rem;
  background: var(--lp-white);
}

.lp-pricing-hero {
  background: linear-gradient(135deg, var(--lp-primary) 0%, #3b82f6 100%);
  border-radius: var(--lp-radius);
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
  margin-block-end: 2.5rem;
  position: relative;
  overflow: hidden;
}

.lp-pricing-hero::after {
  content: '';
  position: absolute;
  inset-inline-end: -2rem;
  top: -2rem;
  width: 10rem;
  height: 10rem;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
}

@media (min-width: 768px) {
  .lp-pricing-hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.lp-pricing-hero-title {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: var(--lp-white);
}

.lp-pricing-hero-sub {
  font-size: .9rem;
  color: rgba(255,255,255,.8);
  margin-block-start: .3rem;
}

.lp-plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

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

.lp-plan-card {
  background: var(--lp-bg);
  border: 1.5px solid var(--lp-border);
  border-radius: var(--lp-radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: box-shadow .2s, transform .2s;
}
.lp-plan-card:hover {
  box-shadow: 0 6px 20px rgba(37, 99, 235, .1);
  transform: translateY(-2px);
}
.lp-plan-card--paid {
  border-color: var(--lp-primary);
  background: var(--lp-white);
}

.lp-plan-name { font-size: .85rem; font-weight: 600; color: var(--lp-muted); text-transform: uppercase; letter-spacing: .05em; }

.lp-plan-price { font-size: 1.2rem; font-weight: 800; color: var(--lp-text); }
.lp-plan-amount { font-size: 1.5rem; }
.lp-plan-currency { font-size: .8rem; font-weight: 500; color: var(--lp-muted); }

.lp-plan-features {
  list-style: none;
  padding: 0;
  font-size: .85rem;
  color: var(--lp-muted);
  line-height: 1.7;
  flex: 1;
}
.lp-plan-features li::before { content: "✓ "; color: #22c55e; font-weight: 700; }

.lp-plan-cta {
  text-align: center;
  background: var(--lp-primary);
  color: var(--lp-white);
  border-radius: var(--lp-radius-sm);
  padding: .6rem;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-plan-cta:hover { background: var(--lp-primary-dk); }

/* ── FOOTER ─────────────────────────────────────── */
.lp-footer {
  background: var(--lp-footer-bg);
  color: #94a3b8;
  padding-block: 3rem 1.5rem;
}

.lp-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-block-end: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

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

.lp-footer-logo { margin-block-end: .75rem; }
.lp-footer-logo-img { height: 2rem; filter: brightness(0) invert(1); opacity: .85; }

.lp-footer-tagline { font-size: .875rem; line-height: 1.7; }

.lp-footer-col-title {
  color: var(--lp-white);
  font-size: .9rem;
  font-weight: 700;
  margin-block-end: 1rem;
}

.lp-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.lp-footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: .875rem;
  transition: color .15s;
}
.lp-footer-links a:hover { color: var(--lp-white); }
.lp-footer-links--contact li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .875rem;
  line-height: 1.6;
}
.lp-footer-links--contact svg { margin-block-start: .2rem; flex-shrink: 0; }

.lp-footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-block-start: 1.5rem;
  align-items: center;
  text-align: center;
}

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

.lp-footer-copy { font-size: .8rem; }

.lp-enamad-img {
  height: 60px;
  width: auto;
  border-radius: var(--lp-radius-sm);
  opacity: .9;
  transition: opacity .15s;
}
.lp-enamad-img:hover { opacity: 1; }

/* ── Scroll-behavior ────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ── Shared widget animations ───────────────────── */
@keyframes byPulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
  70%  { box-shadow: 0 0 0 10px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
@keyframes bySpin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.by-pulse { animation: byPulse 2.4s ease-out infinite; }
.by-spin-loader {
  width: 16px; height: 16px;
  border: 2px solid #2563eb;
  border-top-color: transparent;
  border-radius: 50%;
  display: block;
  animation: bySpin .7s linear infinite;
}

/* ── TRY IT ─────────────────────────────────────── */
.lp-try { padding-block: 3rem; background: var(--lp-bg); }
.lp-try-inner { display: flex; flex-direction: column; gap: 2rem; }
.lp-try-text { order: 1; }
.lp-try-box  { order: 2; }

@media (min-width: 768px) {
  .lp-try { padding-block: 3.5rem 4rem; }
  .lp-try-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3.25rem; align-items: center; }
  html[dir="rtl"] .lp-try-text { order: 1; }
  html[dir="rtl"] .lp-try-box  { order: 2; }
  html[dir="ltr"] .lp-try-text { order: 2; }
  html[dir="ltr"] .lp-try-box  { order: 1; }
}

.lp-try-eyebrow { font-size:.8rem; font-weight:700; color:var(--lp-primary); letter-spacing:.05em; margin-block-end:.65rem; display:block; }
.lp-try-title { font-size:clamp(1.35rem,3.5vw,1.85rem); font-weight:800; margin-block-end:.75rem; letter-spacing:-.01em; line-height:1.4; }
.lp-try-desc { font-size:.95rem; color:var(--lp-muted); line-height:1.8; }
.lp-try-box-label { font-size:1.1rem; font-weight:800; color:var(--lp-text); margin-block-end:.7rem; }

.lp-try-slides-wrap {
  position: relative; height: 200px;
  background: var(--lp-white);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  box-shadow: 0 22px 50px -26px rgba(15,23,42,.3);
  overflow: hidden;
}

.lp-try-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem 1.5rem;
  transition: opacity .6s ease, transform .6s cubic-bezier(.4,0,.2,1);
  opacity: 0; pointer-events: none;
}

.lp-try-thumbs { display: grid; grid-template-columns: repeat(4,1fr); gap: .6rem; margin-block-start: .75rem; }

.lp-try-thumb {
  cursor: pointer;
  border: 1px solid var(--lp-border); background: var(--lp-white);
  border-radius: var(--lp-radius-sm); padding: .65rem .4rem;
  text-align: center; transition: border-color .2s, background .2s; min-height: 44px;
}
.lp-thumb-icon  { font-size:1.15rem; line-height:1; display:block; }
.lp-thumb-label { font-size:.68rem; font-weight:700; margin-block-start:.3rem; display:block; color:var(--lp-muted); }

.lp-slide-auto {
  width:100%; max-width:340px;
  border:1.5px solid #86efac; background:#f0fdf4;
  border-radius:var(--lp-radius-sm); padding:1rem 1.1rem;
  display:flex; align-items:center; gap:.85rem;
  box-shadow:0 0 0 4px rgba(34,197,94,.12);
}
.lp-slide-auto-icon { width:38px; height:38px; border-radius:50%; background:#22c55e; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.lp-slide-auto-main { font-size:.9rem; font-weight:800; color:#15803d; }
.lp-slide-auto-sub  { font-size:.72rem; color:#65a30d; margin-block-start:.15rem; }

.lp-slide-cb {
  width:100%; max-width:340px;
  border:1px solid var(--lp-border); background:var(--lp-white);
  border-radius:var(--lp-radius-sm); padding:1rem 1.1rem;
  display:flex; align-items:center; justify-content:space-between; gap:.75rem;
  box-shadow:0 12px 30px -18px rgba(15,23,42,.25);
}
.lp-cb-left { display:flex; align-items:center; gap:.8rem; cursor:pointer; user-select:none; }
[data-cb-box] { width:28px; height:28px; border:2px solid #cbd5e1; border-radius:8px; display:flex; align-items:center; justify-content:center; transition:all .25s; flex-shrink:0; }
[data-cb-text] { font-size:.88rem; color:var(--lp-text); font-weight:600; }
.lp-cb-brand { display:flex; flex-direction:column; align-items:center; gap:.2rem; flex-shrink:0; }
.lp-cb-brand-icon { width:28px; height:28px; border-radius:8px; background:#eff6ff; display:flex; align-items:center; justify-content:center; }
.lp-cb-brand-name { font-size:.55rem; color:#94a3b8; font-family:system-ui,sans-serif; font-weight:700; }

.lp-slide-puzzle {
  width:100%; max-width:340px;
  border:1px solid var(--lp-border); background:var(--lp-white);
  border-radius:var(--lp-radius-sm); padding:1rem 1.1rem;
  display:flex; flex-direction:column; gap:.65rem;
  box-shadow:0 12px 30px -18px rgba(15,23,42,.25);
}
[data-puzzle-label] { font-size:.8rem; color:#64748b; }
.lp-puzzle-track { position:relative; height:34px; background:#f1f5f9; border-radius:10px; overflow:hidden; }
[data-puzzle-fill] { position:absolute; inset:0 auto 0 0; width:0; background:linear-gradient(90deg,#dbeafe,#93c5fd); }
[data-puzzle-piece] { position:absolute; top:4px; bottom:4px; inset-inline-end:4px; width:26px; background:#2563eb; border-radius:7px; display:flex; align-items:center; justify-content:center; z-index:1; }
html[dir="ltr"] [data-puzzle-piece] { inset-inline-end:auto; inset-inline-start:4px; }
.by-rng { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; z-index:2; direction:ltr; }

/* Math challenge widget */
@keyframes lp-shake {
  0%,100%{transform:translateX(0);}
  20%{transform:translateX(-6px);}
  40%{transform:translateX(6px);}
  60%{transform:translateX(-4px);}
  80%{transform:translateX(4px);}
}
.lp-shake { animation:lp-shake .45s ease-in-out; }

.lp-math-widget {
  width:100%; max-width:360px;
  border:1px solid var(--lp-border); background:var(--lp-white);
  border-radius:14px; padding:1.5rem 1.25rem 1.125rem;
  box-shadow:0 14px 32px -18px rgba(15,23,42,.28);
  display:flex; flex-direction:column; gap:.875rem;
}
.lp-math-q-row {
  display:flex; align-items:center; gap:.625rem;
}
.lp-math-q {
  font-size:1.375rem; font-weight:900; color:var(--lp-text);
  letter-spacing:-.01em; flex-shrink:0;
  font-family:'Inter',system-ui,sans-serif;
}
.lp-math-eq {
  font-size:1.25rem; font-weight:700; color:var(--lp-muted); flex-shrink:0;
}
.lp-math-input {
  width:72px; height:44px; flex-shrink:0;
  border:1.5px solid var(--lp-border); border-radius:10px;
  background:#F8FAFC; text-align:center;
  font-size:1.125rem; font-weight:700; color:var(--lp-text);
  font-family:inherit; outline:none;
  transition:border-color .2s, background .2s;
}
.lp-math-input:focus { border-color:#2563EB; background:#fff; box-shadow:0 0 0 3px rgba(37,99,235,.12); }
.lp-math-btn {
  margin-inline-start:auto; height:44px; padding:0 1.125rem;
  background:#0F172A; color:#fff; border:none; border-radius:10px;
  font-size:.9rem; font-weight:700; cursor:pointer; flex-shrink:0;
  font-family:inherit; transition:background .2s;
}
.lp-math-btn:hover { background:#1E293B; }
.lp-math-status {
  font-size:.8125rem; font-weight:600; min-height:1rem; margin:0;
}
.lp-math-status--ok  { color:#15803D; }
.lp-math-status--err { color:#DC2626; }

/* ── ADVANTAGES ─────────────────────────────────── */
.lp-adv { padding-block: 4rem; background: #f8fafc; }
.lp-adv-grid { display:grid; grid-template-columns:1fr; gap:1.25rem; }
@media (min-width:480px)  { .lp-adv-grid { grid-template-columns:1fr 1fr; } }
@media (min-width:1024px) { .lp-adv-grid { grid-template-columns:repeat(3,1fr); } }

.lp-adv-card {
  background:var(--lp-white); border:1px solid var(--lp-border);
  border-radius:18px; padding:1.6rem;
  display:flex; flex-direction:column; gap:.65rem;
  box-shadow:0 14px 34px -24px rgba(15,23,42,.28);
  transition:border-color .2s, box-shadow .2s;
}
.lp-adv-card:hover { border-color:#bfdbfe; box-shadow:0 14px 34px -18px rgba(37,99,235,.15); }
.lp-adv-icon { width:46px; height:46px; border-radius:13px; display:flex; align-items:center; justify-content:center; font-size:1.4rem; }
.lp-adv-title { font-size:1.05rem; font-weight:800; color:var(--lp-text); letter-spacing:-.01em; }
.lp-adv-desc  { font-size:.85rem; color:var(--lp-muted); line-height:1.8; }
