/* ============================================================
   باش‌تاپ — صفحهٔ معرفی (لندینگ)
   امضا: کاشی‌های تسلطِ خودِ برنامه. هر کاشی یک مفهوم است و از «شروع‌نشده» تا «تسلط»
   رنگ می‌گیرد؛ سرصفحه همین را یک بار، هنگامِ باز شدنِ صفحه، نشان می‌دهد.
   رنگ‌ها و قلم‌ها همان kashi-base: لاجوردی، فیروزه‌ای، زعفرانی؛ لاله‌زار برای عنوان، وزیرمتن برای متن.
   ============================================================ */

.lp { font-size: 17px; line-height: 2; background: var(--card); color: var(--ink); }
.lp-wrap { max-width: 1160px; margin: 0 auto; padding-inline: clamp(18px, 4vw, 40px); }
.lp-narrow { max-width: 820px; }
.lp h1, .lp h2 { font-family: var(--display); font-weight: 400; color: var(--lapis-deep); letter-spacing: 0; }
.lp h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.32; max-width: 16ch; }
.lp h2 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); line-height: 1.4; margin-bottom: 22px; max-width: 22ch; }
.lp h3 { font-size: 1.08rem; font-weight: 800; line-height: 1.6; color: var(--ink); }
.lp p { max-width: 62ch; }
.lp a { color: var(--lapis); }
.lp-skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; padding: 8px 16px;
  border-radius: 999px; background: var(--lapis); color: #fff !important; }
.lp-skip:focus { top: 12px; }

/* ── دکمه‌ها ── */
.lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 22px;
  border-radius: 14px; border: 2px solid var(--lapis); background: var(--lapis); color: #fff !important;
  font: inherit; font-weight: 800; font-size: 1rem; line-height: 1.6; cursor: pointer; text-decoration: none !important; }
.lp-btn:hover { filter: brightness(1.1); }
.lp-btn-lg { padding: 14px 30px; font-size: 1.08rem; box-shadow: inset 0 -4px 0 var(--saffron), 0 10px 24px rgba(29, 60, 120, .2); }
.lp-btn-sm { padding: 6px 18px; font-size: .92rem; border-radius: 12px; }
.lp-btn-quiet { background: transparent; color: var(--lapis) !important; box-shadow: none; }
.lp-btn-quiet:hover { background: var(--lapis-soft); filter: none; }
@media (prefers-color-scheme: dark) { .lp-btn:not(.lp-btn-quiet) { color: #0F1729 !important; } }

/* ── سربرگ ── */
.lp-top { position: sticky; top: 0; z-index: 30; background: var(--card); border-bottom: 1px solid var(--line); }
.lp-top-in { display: flex; align-items: center; gap: 24px; min-height: 66px; padding-block: 8px; }
.lp-brand .brand-tile { height: 44px; padding: 0 13px; }
.lp-brand .brand-tile img { height: 28px; }
.lp-nav { display: flex; gap: 4px; margin-inline-start: auto; }
.lp-nav a { padding: 4px 12px; border-radius: 999px; color: var(--ink-soft); font-size: .92rem; font-weight: 700; }
.lp-nav a:hover { background: var(--paper); color: var(--ink); text-decoration: none; }
.lp-top .lp-btn { flex: none; }

/* ── سرصفحه ── */
.lp-hero { padding: clamp(36px, 7vw, 84px) 0 28px; overflow: hidden; }
.lp-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.lp-hero-text { display: flex; flex-direction: column; gap: 22px; }
.lp-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-soft); line-height: 2.05; max-width: 34em; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-note { font-size: .92rem; color: var(--ink-soft); }

.lp-hero-art { position: relative; padding-bottom: 150px; }
.lp-mosaic { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 9px; width: 100%; }
.lp-tile { display: block; aspect-ratio: 1; border-radius: 9px; background: var(--t-unknown); }
.lp-tile.lv-weak { background: var(--t-weak); }
.lp-tile.lv-learning { background: var(--t-learning); }
.lp-tile.lv-strong { background: var(--t-strong); }
.lp-tile.lv-mastered { background: var(--t-mastered); }
.lp-mosaic .lp-tile.here { position: relative; box-shadow: 0 0 0 4px var(--card), 0 0 0 7px var(--saffron); z-index: 1; }
.lp-phone-hero { position: absolute; inset-inline-end: -2%; top: 18%; width: min(250px, 42%); z-index: 2; }

/* لحظهٔ اصلیِ صفحه: کاشی‌ها یکی‌یکی رنگ می‌گیرند (یک بار، فقط هنگامِ باز شدن) */
@media (prefers-reduced-motion: no-preference) {
  .lp-mosaic .lp-tile { animation: lp-fill .7s cubic-bezier(.2, .7, .3, 1) var(--d) both; }
  .lp-mosaic .lp-tile.here { animation: lp-fill .7s cubic-bezier(.2, .7, .3, 1) var(--d) both,
    lp-here 1.6s ease-in-out calc(var(--d) + 900ms) 2; }
  .lp-phone-hero { animation: lp-rise .8s cubic-bezier(.2, .7, .3, 1) .15s both; }
  @keyframes lp-fill { from { background: var(--t-unknown); transform: scale(.82); } }
  @keyframes lp-here { 50% { box-shadow: 0 0 0 4px var(--card), 0 0 0 11px var(--saffron); } }
  @keyframes lp-rise { from { opacity: 0; transform: translateY(24px); } }
}

.lp-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 56px;
  padding-top: 18px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--ink-soft); max-width: none; }
.lp-legend-cap { flex-basis: 100%; }
.lp-chip { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--ink); }
.lp-chip .lp-tile { width: 14px; border-radius: 4px; }

/* ── گوشی و رایانه (تصویرِ واقعیِ برنامه) ── */
.lp-phone { margin: 0; justify-self: center; width: min(300px, 100%); }
.lp-phone img { display: block; width: 100%; height: auto; border-radius: 34px; border: 9px solid #172133;
  background: #172133; box-shadow: 0 30px 60px -20px rgba(20, 43, 87, .45), 0 0 0 1px rgba(20, 43, 87, .08); }
.lp-phone figcaption, .lp-desk figcaption { margin-top: 14px; font-size: .86rem; color: var(--ink-soft); text-align: center; line-height: 1.8; }
.lp-desk { margin: 40px 0 0; }
.lp-desk img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line);
  box-shadow: 0 30px 60px -28px rgba(20, 43, 87, .4); }
@media (prefers-color-scheme: dark) { .lp-phone img { border-color: #2A3655; background: #2A3655; } }

/* ── بخش‌ها ── */
.lp-sec { padding: clamp(56px, 8vw, 104px) 0; }
.lp-sec-alt { background: var(--paper); }
.lp-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.lp-split-rev { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); }

/* مراحل: واقعاً ترتیبی‌اند؛ شماره روی کاشی‌ای که مرحله‌به‌مرحله پررنگ‌تر می‌شود */
.lp-steps { list-style: none; margin: 0; padding: 0; counter-reset: st; display: flex; flex-direction: column; gap: 26px; }
.lp-steps li { counter-increment: st; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 18px; }
.lp-steps li::before { content: counter(st, persian); grid-row: span 2; display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 13px; font-family: var(--display); font-size: 1.5rem; line-height: 1;
  color: #fff; background: var(--t-learning); }
.lp-steps li:nth-child(1)::before { background: var(--t-weak); color: var(--lapis-deep); }
.lp-steps li:nth-child(3)::before { background: var(--t-strong); }
.lp-steps li:nth-child(4)::before { background: var(--t-mastered); }
.lp-steps p { color: var(--ink-soft); }
@media (prefers-color-scheme: dark) { .lp-steps li::before { color: #0F1729; } }

.lp-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.lp-feats li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 16px; align-items: start; }
.lp-feats .lp-tile { width: 22px; margin-top: 8px; border-radius: 6px; }
.lp-feats p { color: var(--ink-soft); }

.lp-who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.lp-who-col { padding-top: 18px; border-top: 4px solid var(--t-learning); }
.lp-who-col.who-learn { border-top-color: var(--t-weak); }
.lp-who-col.who-org { border-top-color: var(--t-mastered); }
.lp-who-col h3 { font-size: 1.2rem; margin-bottom: 10px; }
.lp-who-col ul { margin: 0; padding-inline-start: 20px; color: var(--ink-soft); }
.lp-who-col li { margin-bottom: 8px; line-height: 1.95; }
.lp-who-col li::marker { color: var(--saffron); }

/* ── نصب ── */
.lp-install-head { display: flex; align-items: center; gap: 22px; margin-bottom: 26px; }
.lp-install-head h2 { margin-bottom: 6px; }
.lp-install-head p { color: var(--ink-soft); }
.lp-appicon { flex: none; width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 12px 26px -10px rgba(20, 43, 87, .5); }
.lp-install-btn { margin-bottom: 22px; }
.lp-installed { margin-bottom: 18px; padding: 10px 16px; border-radius: 12px; background: var(--turquoise-soft);
  color: var(--turquoise); font-weight: 700; }
.lp-os { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.lp-os-col { padding: 22px 24px; border-radius: 20px; background: var(--card); border: 1.5px solid var(--line); }
.lp-os-col.mine { border-color: var(--lapis); box-shadow: 0 0 0 4px var(--lapis-soft); }
.lp-os-col h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin-bottom: 10px; }
.lp-here { font-size: .74rem; padding: 0 10px; border-radius: 999px; background: var(--lapis); color: #fff; line-height: 1.9; }
@media (prefers-color-scheme: dark) { .lp-here { color: #0F1729; } }
.lp-os-col ol { margin: 0; padding-inline-start: 22px; list-style: persian; }
.lp-os-col li { margin-bottom: 8px; line-height: 2; }
.lp-ico { display: inline-block; width: 22px; height: 22px; vertical-align: -5px; margin: 0 2px; padding: 2px;
  border-radius: 6px; background: var(--lapis-soft); fill: none; stroke: var(--lapis); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
.lp-ico circle { fill: var(--lapis); stroke: none; }
.lp-small { margin-top: 18px; font-size: .88rem; color: var(--ink-soft); }

/* ── درخواستِ حساب ── */
.lp-request { padding: clamp(56px, 8vw, 96px) 0; background: var(--lapis-deep); color: #E6ECF7; scroll-margin-top: 66px; }
.lp-request-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.lp-request h2 { color: #fff; }
.lp-request-text p { margin-bottom: 14px; color: #C9D6EE; }
@media (prefers-color-scheme: dark) { .lp-request { background: #0B1222; } }
.lp-form { display: flex; flex-direction: column; gap: 16px; padding: clamp(20px, 3vw, 30px); border-radius: 22px;
  background: var(--card); color: var(--ink); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .45); }
.lp-field { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.lp-field label, .lp-field legend { font-weight: 700; font-size: .92rem; color: var(--ink); padding: 0; }
.lp-opt { font-weight: 400; color: var(--ink-soft); }
.lp-field input, .lp-field textarea { width: 100%; font: inherit; font-size: 16px; line-height: 1.8; padding: 10px 14px;
  border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); }
.lp-field input:focus, .lp-field textarea:focus { outline: none; border-color: var(--lapis); box-shadow: 0 0 0 3px var(--lapis-soft); }
.lp-field.bad input { border-color: var(--pomegranate); }
.lp-err { font-size: .84rem; color: var(--pomegranate); }
.lp-err-box { padding: 10px 14px; border-radius: 12px; background: var(--pomegranate-soft); color: var(--pomegranate); font-size: .9rem; }
.lp-roles { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.lp-roles legend { margin-bottom: 6px; width: 100%; }
.lp-role { position: relative; cursor: pointer; }
.lp-role input { position: absolute; opacity: 0; }
.lp-role span { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--paper); font-size: .9rem; font-weight: 700; color: var(--ink-soft); line-height: 1.7; }
.lp-role input:checked + span { border-color: var(--lapis); background: var(--lapis-soft); color: var(--lapis); }
.lp-role input:focus-visible + span { outline: 3px solid var(--saffron); outline-offset: 2px; }
.lp-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.lp-submit { align-self: flex-start; margin-top: 4px; }
.lp-sent { align-items: center; text-align: center; padding-block: 40px; }
.lp-sent svg { fill: none; stroke: var(--turquoise); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lp-sent h3 { font-size: 1.3rem; }
.lp-sent p { color: var(--ink-soft); }

/* ── پرسش‌ها ── */
.lp-faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.lp-faq details { border-bottom: 1px solid var(--line); }
.lp-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 16px 2px; font-weight: 800; font-size: 1.04rem; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-inline-end: 2.5px solid var(--lapis);
  border-bottom: 2.5px solid var(--lapis); transform: rotate(45deg); margin-top: -6px; transition: transform .2s; }
.lp-faq details[open] summary::after { transform: rotate(-135deg); margin-top: 6px; }
.lp-faq details p { padding: 0 2px 18px; color: var(--ink-soft); }

/* ── پایان ── */
.lp-end { padding: 0 0 clamp(56px, 8vw, 96px); }
.lp-end-in { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center;
  padding: clamp(36px, 6vw, 64px) 20px; border-radius: 28px; background: var(--paper); }
.lp-end h2 { margin: 0; max-width: none; }
.lp .site-foot { margin-top: 0; }

.lp :focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 76px; }

/* ── تبلت ── */
@media (max-width: 980px) {
  .lp-nav { display: none; }
  .lp-top .lp-btn { margin-inline-start: auto; }
  .lp-hero-in, .lp-split, .lp-split-rev, .lp-request-in { grid-template-columns: minmax(0, 1fr); }
  .lp-hero-art { padding-bottom: 120px; max-width: 560px; width: 100%; justify-self: center; }
  .lp-split-rev > figure { order: 2; }
  .lp-who { grid-template-columns: minmax(0, 1fr); gap: 26px; }
}
/* ── گوشی ── */
@media (max-width: 640px) {
  .lp { font-size: 16px; }
  .lp-top-in { min-height: 58px; gap: 12px; }
  .lp-brand .brand-tile { height: 38px; padding: 0 10px; }
  .lp-brand .brand-tile img { height: 24px; }
  .lp-hero { padding-top: 28px; }
  .lp h1 { max-width: none; }
  .lp-cta .lp-btn { flex: 1 1 100%; }
  .lp-mosaic { gap: 6px; width: 100%; }
  .lp-tile { border-radius: 6px; }
  .lp-phone-hero { width: 44%; top: 14%; }
  .lp-hero-art { padding-bottom: 110px; }
  .lp-legend { margin-top: 44px; }
  .lp-phone { width: min(250px, 78%); }
  .lp-os { grid-template-columns: minmax(0, 1fr); }
  .lp-install-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .lp-submit { align-self: stretch; }
  .lp-desk { margin-top: 28px; }
}
.lp-hp input { font-size: 16px; }

/* ── دوره‌های عمومی ── */
.lp-courses { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.lp-courses a { display: inline-block; padding: 10px 20px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--line); border-top: 3px solid var(--turquoise); font-weight: 700; color: var(--lapis); }
.lp-courses a:hover { border-color: var(--lapis); text-decoration: none; }
