/* ==========================================================================
   Lingino landing — one accent (indigo), one highlight (gold), calm neutrals.
   RTL-first, mobile-first. Dark mode follows the system setting.
   ========================================================================== */

:root {
  --bg: #fafaf9;
  --bg-tint: #f3f2ee;
  --surface: #ffffff;
  --text: #1c1917;
  --text-soft: #57534e;
  --line: #e7e5e4;

  --accent: #4338ca;
  --accent-hover: #3730a3;
  --accent-soft: #eef2ff;
  --gold: #f5a524;
  --gold-hover: #e0951a;
  --gold-soft: #fef3c7;
  --ok: #15803d;
  --danger: #b91c1c;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(28, 25, 23, .06), 0 8px 24px -12px rgba(28, 25, 23, .18);
  --header-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12110f;
    --bg-tint: #191816;
    --surface: #211f1c;
    --text: #f5f5f4;
    --text-soft: #b5b0aa;
    --line: #34312d;
    --accent: #a5b4fc;
    --accent-hover: #c7d2fe;
    --accent-soft: #25264a;
    --gold-soft: #3a2f12;
    --ok: #4ade80;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
img { max-width: 100%; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: #fff; padding: .5rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 10px; }

.muted { color: var(--text-soft); }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .6rem 1.5rem;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; border-radius: 999px;
  transition: background-color .2s, border-color .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: .35rem 1.1rem; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
@media (prefers-color-scheme: dark) { .btn-primary { color: #12110f; } }
.btn-gold { background: var(--gold); color: #1c1917; }
.btn-gold:hover { background: var(--gold-hover); }
.btn-dark { background: var(--text); color: var(--bg); }
.btn-dark:hover { opacity: .88; }
.btn-outline { border-color: var(--line); background: transparent; color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ----- Chips ----- */
.chip {
  display: inline-block; padding: .1rem .75rem; border-radius: 999px;
  font-size: .8rem; font-weight: 700; background: var(--accent-soft); color: var(--accent);
}
.chip-soft { background: var(--bg-tint); color: var(--text-soft); }
.chip-gold { background: var(--gold-soft); color: #92590a; }
@media (prefers-color-scheme: dark) { .chip-gold { color: var(--gold); } }

/* ----- Header ----- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1rem; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 800; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 10px; background: var(--accent); color: #fff; font-weight: 800;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) { .brand-mark { color: #12110f; } }
.brand-name { font-family: system-ui, sans-serif; letter-spacing: -.01em; }
.nav { display: none; margin-inline: auto; gap: .25rem; }
.nav a { padding: .4rem .9rem; border-radius: 999px; text-decoration: none; color: var(--text-soft); font-weight: 500; }
.nav a:hover { color: var(--accent); background: var(--accent-soft); }
.header-inner > .btn { margin-inline-start: auto; }
@media (min-width: 860px) {
  .nav { display: flex; }
  .header-inner > .btn { margin-inline-start: 0; }
}

/* ----- Hero ----- */
.hero { padding: 2.5rem 0 3rem; }
.hero-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) {
  .hero { padding: 4.5rem 0 5rem; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 3.5rem; align-items: center; }
}
.eyebrow { font-size: .9rem; font-weight: 700; color: var(--accent); margin-bottom: .75rem; }
h1 { font-size: clamp(2rem, 5.4vw, 3.4rem); line-height: 1.3; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
.hl { color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--text-soft); margin-top: 1rem; max-width: 34em; }
.checks { margin-top: 1.5rem; display: grid; gap: .55rem; }
.checks li { position: relative; padding-inline-start: 2rem; font-weight: 500; }
.checks li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: .45em;
  width: 1.25rem; height: 1.25rem; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='10' r='9' stroke-width='1.6'/%3E%3Cpath d='M5.8 10.5l2.8 2.8L14.2 7.6'/%3E%3C/svg%3E") center / 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='10' r='9' stroke-width='1.6'/%3E%3Cpath d='M5.8 10.5l2.8 2.8L14.2 7.6'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* ----- Lead form / gift card ----- */
.gift-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 1.5rem; box-shadow: var(--shadow);
}
@media (min-width: 560px) { .gift-card { padding: 2rem; } }
.gift-card h2 { font-size: 1.35rem; line-height: 1.5; margin: .75rem 0 .25rem; }
.lead-form { display: grid; gap: 1rem; margin-top: 1.25rem; }
.field label { display: block; font-size: .9rem; font-weight: 700; margin-bottom: .35rem; }
.field input, .field select {
  width: 100%; min-height: 50px; padding: .5rem 1rem;
  font: inherit; color: var(--text); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
}
.field input { text-align: right; }
.field input::placeholder { color: var(--text-soft); opacity: .7; }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .88rem; margin-top: .35rem; }
.form-status { font-weight: 700; font-size: .95rem; padding: .75rem 1rem; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.fineprint { font-size: .82rem; color: var(--text-soft); margin-top: .9rem; }
.gift-contents { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .9rem; font-size: .92rem; }
.gift-contents summary { cursor: pointer; font-weight: 700; color: var(--accent); }
.gift-contents ul { margin-top: .6rem; display: grid; gap: .3rem; color: var(--text-soft); list-style: disc; padding-inline-start: 1.25rem; }

/* ----- Stats ----- */
.stats { border-block: 1px solid var(--line); background: var(--surface); }
.stats-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; padding: 1.75rem 0; text-align: center; }
.stats-grid strong { display: block; font-size: 1.75rem; font-weight: 800; color: var(--accent); line-height: 1.3; }
.stats-grid span { font-size: .9rem; color: var(--text-soft); }
@media (min-width: 760px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }

/* ----- Sections ----- */
.section { padding: 3.5rem 0; }
.section-tint { background: var(--bg-tint); }
@media (min-width: 900px) { .section { padding: 5rem 0; } }
.section-head { max-width: 40rem; margin: 0 auto 2.5rem; text-align: center; }
.section-head h2, #app-title, .final-cta h2 { font-size: clamp(1.6rem, 3.6vw, 2.25rem); line-height: 1.4; font-weight: 800; text-wrap: balance; }
.section-head p { color: var(--text-soft); margin-top: .6rem; font-size: 1.05rem; }

.grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem;
}
.card h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.card p { color: var(--text-soft); font-size: .96rem; }

/* ----- Courses ----- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 1.75rem; }
.filter {
  min-height: 42px; padding: .3rem 1.1rem; font: inherit; font-weight: 700; cursor: pointer;
  color: var(--text-soft); background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px;
}
.filter:hover { border-color: var(--accent); color: var(--accent); }
.filter.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .filter.is-active { color: #12110f; } }

.course {
  display: flex; flex-direction: column; gap: .75rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem;
  transition: box-shadow .2s, transform .2s;
}
.course:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.course[hidden] { display: none; }
.course-top { display: flex; flex-wrap: wrap; gap: .4rem; }
.course h3 { font-size: 1.2rem; line-height: 1.5; }
.course > p { color: var(--text-soft); font-size: .96rem; }
.course details { font-size: .92rem; }
.course summary { cursor: pointer; font-weight: 700; color: var(--accent); }
.course details ul { margin-top: .5rem; display: grid; gap: .25rem; color: var(--text-soft); list-style: disc; padding-inline-start: 1.25rem; }
.course-foot {
  margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap;
}
.course-foot small { display: block; color: var(--text-soft); font-size: .8rem; line-height: 1.4; }
.price { font-size: 1.15rem; font-weight: 800; }

/* ----- Method / comparison ----- */
.method-grid { margin-bottom: 3rem; }
.compare { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.compare-row { display: grid; grid-template-columns: 1fr; gap: .15rem; padding: 1rem 1.25rem; border-top: 1px solid var(--line); }
.compare-row:first-child { border-top: 0; }
.compare-head { display: none; background: var(--bg-tint); font-weight: 800; }
.compare-row [role="rowheader"] { font-weight: 800; }
.compare-row div:nth-child(2) { color: var(--text-soft); }
.compare-row .us { font-weight: 700; color: var(--accent); }
.compare-row div:nth-child(2)::before { content: 'روش سنتی: '; font-size: .8rem; color: var(--danger); font-weight: 700; }
.compare-row .us::before { content: 'لینگینو: '; font-size: .8rem; color: var(--ok); font-weight: 700; }
@media (min-width: 760px) {
  .compare-row { grid-template-columns: 9rem 1fr 1.2fr; gap: 1.5rem; align-items: center; }
  .compare-head { display: grid; }
  .compare-row div:nth-child(2)::before, .compare-row .us::before { content: none; }
}

/* ----- App ----- */
.app-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .app-grid { grid-template-columns: 1.2fr .8fr; } }
.phone { width: 270px; max-width: 100%; margin-inline: auto; padding: 10px; border-radius: 38px; background: #1c1917; box-shadow: 0 30px 60px -20px rgba(0,0,0,.4); }
.phone-screen { background: var(--surface); border-radius: 30px; padding: 1.1rem 1rem 1.25rem; display: grid; gap: .75rem; font-size: .82rem; }
.phone-bar { display: flex; justify-content: space-between; align-items: center; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.phone-bar b { color: var(--accent); font-family: system-ui, sans-serif; }
.phone-bar span { color: var(--text-soft); font-size: .75rem; }
.phone-item { background: var(--bg-tint); border-radius: 12px; padding: .65rem .75rem; display: grid; gap: .35rem; }
.phone-item > div:first-child { display: flex; justify-content: space-between; gap: .5rem; align-items: center; }
.phone-item small { color: var(--text-soft); font-size: .7rem; }
.tag { font-size: .68rem; font-weight: 700; padding: 0 .5rem; border-radius: 999px; white-space: nowrap; }
.tag-live { background: #fee2e2; color: #b91c1c; }
.tag-ok { background: #dcfce7; color: #166534; }
.bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.phone-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.phone-actions span { text-align: center; padding: .55rem; border: 1px solid var(--line); border-radius: 10px; font-weight: 700; font-size: .75rem; }

/* ----- Testimonials ----- */
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.quote blockquote { font-size: 1.02rem; }
.quote blockquote::before { content: '«'; color: var(--accent); font-weight: 800; }
.quote blockquote::after { content: '»'; color: var(--accent); font-weight: 800; }
.quote figcaption { margin-top: auto; display: grid; font-size: .85rem; }
.quote figcaption span { color: var(--text-soft); }

/* ----- FAQ ----- */
.faq { display: grid; gap: .75rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1.25rem; }
.faq summary { cursor: pointer; font-weight: 700; padding: 1.1rem 0; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; color: var(--accent); line-height: 1; flex: none; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding-bottom: 1.1rem; color: var(--text-soft); }

/* ----- Final CTA ----- */
.final-cta { padding: 3.5rem 0; background: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .final-cta { background: #312e81; } }
.final-inner { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 900px) { .final-inner { grid-template-columns: 1.1fr .9fr; gap: 3rem; } }
.final-cta p { opacity: .9; margin-top: .5rem; }
.lead-form-inline { margin-top: 0; grid-template-columns: 1fr; }
@media (min-width: 560px) { .lead-form-inline { grid-template-columns: 1fr auto; align-items: start; } .lead-form-inline .form-status { grid-column: 1 / -1; } }
.final-cta .field-error { color: #fecaca; }
.final-cta .form-status { background: rgba(255,255,255,.18); color: #fff; }
.final-cta .field input { background: #fff; color: #1c1917; border-color: transparent; }
.final-cta .field input::placeholder { color: #78716c; }

/* ----- Footer ----- */
.site-footer { padding: 3rem 0 6rem; border-top: 1px solid var(--line); font-size: .92rem; }
.footer-inner { display: grid; gap: 1.75rem; }
@media (min-width: 860px) { .footer-inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: start; } .site-footer { padding-bottom: 3rem; } }
.footer-inner .muted { margin-top: .5rem; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 1.25rem; }
.footer-links a, .social a { text-decoration: none; color: var(--text-soft); }
.footer-links a:hover, .social a:hover { color: var(--accent); }
.social { display: flex; flex-wrap: nowrap; gap: .5rem; align-items: center; }
.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: 0 0 44px; padding: .5rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface);
  transition: color .2s, border-color .2s, background-color .2s;
}
.social-link:hover, .social-link:focus-visible { border-color: var(--accent); background: var(--accent-soft); }
.social-icon { width: 24px; height: 24px; flex: none; }
.copyright { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--text-soft); font-size: .85rem; }

/* ----- Sticky mobile CTA ----- */
.sticky-cta {
  position: fixed; inset-inline: 16px; bottom: 16px; z-index: 40;
  display: flex; justify-content: center; align-items: center; min-height: 52px;
  background: var(--gold); color: #1c1917; font-weight: 800; text-decoration: none;
  border-radius: 999px; box-shadow: 0 10px 30px -8px rgba(0,0,0,.35);
  transform: translateY(150%); transition: transform .3s;
}
.sticky-cta.is-visible { transform: none; }
@media (min-width: 900px) { .sticky-cta { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
