/* ==========================================================================
   واژه‌یار — landing page. RTL-first, mobile-first, light/dark.
   Shares its tokens and type with the app so the two feel like one product.
   ========================================================================== */

:root {
  --bg: #f7f5ff;
  --bg-2: #efeaff;
  --surface: #ffffff;
  --surface-2: #faf9ff;
  --ink: #1b1838;
  --ink-2: #4a4670;
  --muted: #6f6b93;
  --line: #e6e1f7;
  --brand: #6c5ce7;
  --brand-2: #8e7bff;
  --brand-soft: #efeaff;
  --pink: #ff7a9e;
  --coral: #ff7a59;
  --good: #12b981;
  --warn: #f5a524;
  --sky: #3aa0ff;
  --grad: linear-gradient(135deg, #6c5ce7 0%, #8e7bff 48%, #ff7a9e 130%);
  --shadow-sm: 0 6px 20px -10px rgba(76, 58, 190, 0.25);
  --shadow-md: 0 22px 44px -22px rgba(76, 58, 190, 0.35);
  --shadow-lg: 0 50px 90px -34px rgba(52, 36, 160, 0.55);
  --font: "Vazirmatn", "Vazir", Tahoma, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-en: "Outfit", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0c1e; --bg-2: #141230; --surface: #1a1835; --surface-2: #201d40;
    --ink: #f3f1ff; --ink-2: #cfcbf0; --muted: #9b98bd; --line: #2b2852;
    --brand: #8b7cff; --brand-2: #a597ff; --brand-soft: #262250;
    --shadow-sm: 0 6px 20px -10px rgba(0, 0, 0, 0.6);
    --shadow-md: 0 22px 44px -22px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 50px 90px -34px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d0c1e; --bg-2: #141230; --surface: #1a1835; --surface-2: #201d40;
  --ink: #f3f1ff; --ink-2: #cfcbf0; --muted: #9b98bd; --line: #2b2852;
  --brand: #8b7cff; --brand-2: #a597ff; --brand-soft: #262250;
  --shadow-sm: 0 6px 20px -10px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 22px 44px -22px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 50px 90px -34px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.8; color: var(--ink); background: var(--bg);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.container.narrow { width: min(100% - 40px, 820px); }
.en { font-family: var(--font-en); direction: ltr; unicode-bidi: isolate; display: inline-block; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.inl { width: 18px; height: 18px; vertical-align: -3px; margin-inline: 2px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 700; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 3px; border-radius: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border-radius: 16px;
  font-weight: 700; font-size: 0.98rem; line-height: 1.5; white-space: nowrap; transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn .ic { transition: transform 0.2s; }
.btn:hover .ic[data-dir], .btn:hover .ic:last-child { }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; border-radius: 13px; }
.btn-xl { padding: 16px 30px; font-size: 1.05rem; border-radius: 18px; }
.btn-primary { color: #fff; background: var(--grad); box-shadow: 0 18px 34px -14px var(--brand); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 24px 40px -14px var(--brand); }
.btn-glass { background: color-mix(in srgb, var(--surface) 72%, transparent); border: 1.5px solid var(--line); color: var(--ink); backdrop-filter: blur(10px); }
.btn-glass:hover { transform: translateY(-2px); border-color: var(--brand); }
.btn-glass:hover .ic { transform: translateX(-4px); }
.btn-ghost { color: var(--ink-2); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-white { background: #fff; color: #5a49d6; box-shadow: 0 18px 34px -16px rgba(0, 0, 0, 0.5); }
.btn-white:hover { transform: translateY(-2px); }
.btn-white:hover .ic { transform: translateX(-4px); }
.btn-outline { color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.55); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.14); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5); background: color-mix(in srgb, var(--bg) 72%, transparent); border-bottom: 1px solid transparent; transition: border-color 0.25s, box-shadow 0.25s; }
.nav.scrolled { border-color: var(--line); box-shadow: 0 10px 30px -22px rgba(40, 28, 120, 0.5); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; }
.brand img { border-radius: 11px; box-shadow: 0 8px 16px -8px var(--brand); }
.nav-links { display: flex; gap: 28px; font-weight: 600; font-size: 0.94rem; color: var(--ink-2); }
.nav-links a { position: relative; padding: 6px 0; transition: color 0.2s; }
.nav-links a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transition: transform 0.25s; }
.nav-links a:hover { color: var(--brand); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 7vw, 88px); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; }
.o1 { width: 520px; height: 520px; background: #8e7bff; inset-block-start: -180px; inset-inline-end: -120px; opacity: 0.4; }
.o2 { width: 420px; height: 420px; background: #ff7a9e; inset-block-start: 180px; inset-inline-start: -160px; opacity: 0.32; }
.o3 { width: 360px; height: 360px; background: #3aa0ff; inset-block-end: -160px; inset-inline-end: 30%; opacity: 0.18; }
.grid { position: absolute; inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--brand) 22%, transparent) 1.2px, transparent 1.2px); background-size: 28px 28px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%); opacity: 0.55; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: 24px; align-items: center; }
h1 { margin-top: 0; font-size: clamp(2.15rem, 5.2vw, 3.9rem); line-height: 1.32; font-weight: 900; letter-spacing: -0.5px; text-wrap: balance; }
.grad { -webkit-box-decoration-break: clone; box-decoration-break: clone; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 22px; max-width: 34em; font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--ink-2); line-height: 2; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.cta-row.center { justify-content: center; }
.trust { list-style: none; padding: 0; margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust .ic { width: 18px; height: 18px; color: var(--good); stroke-width: 2.6; }
.proof { margin-top: 30px; display: inline-flex; align-items: center; gap: 22px; padding: 14px 24px; border-radius: 22px; background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow-sm); backdrop-filter: blur(8px); }
.proof div { display: grid; line-height: 1.5; }
.proof b { font-size: 1.6rem; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.proof span { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.proof i { width: 1px; align-self: stretch; background: var(--line); }

/* ---------- phones ---------- */
.phone { --pw: 270px; width: var(--pw); padding: calc(var(--pw) * 0.034); border-radius: calc(var(--pw) * 0.15); background: linear-gradient(155deg, #2c2856, #0e0c22); box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, 0.13); position: relative; flex: none; }
.phone img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 844; border-radius: calc(var(--pw) * 0.118); background: var(--surface); }
.phone.show { --pw: 310px; margin-inline: auto; }
.phone.sm { --pw: 200px; margin-inline: 0; }

.hero-visual { position: relative; height: 620px; }
.visual-glow { position: absolute; inset: 8% 6%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 45%, transparent), transparent 72%); filter: blur(30px); z-index: 0; }
.p-back, .p-front { position: absolute; }
.p-back { --pw: 232px; left: 2%; top: 74px; transform: rotate(-7deg); z-index: 1; opacity: 0.98; }
.p-front { --pw: 276px; right: 6%; top: 0; transform: rotate(3deg); z-index: 2; }
.float { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 18px; background: color-mix(in srgb, var(--surface) 86%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow-md); backdrop-filter: blur(12px); font-size: 0.86rem; font-weight: 600; color: var(--ink); animation: floaty 7s ease-in-out infinite; }
.f-streak { top: 44px; left: -2%; color: var(--coral); animation-delay: -1s; }
.f-streak .ic { fill: currentColor; stroke: none; width: 22px; height: 22px; }
.f-streak b { font-weight: 900; }
.f-word { bottom: 158px; left: -4%; flex-direction: column; align-items: flex-start; gap: 0; animation-delay: -3s; }
.f-word .en { font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.f-word em { font-style: normal; color: var(--muted); font-size: 0.82rem; }
.f-notif { bottom: 34px; right: -2%; max-width: 268px; animation-delay: -5s; }
.f-notif img { border-radius: 9px; }
.f-notif span { display: grid; line-height: 1.5; }
.f-notif b { font-size: 0.82rem; font-weight: 700; }
.f-notif small { font-size: 0.74rem; color: var(--muted); font-weight: 500; }
@keyframes floaty { 50% { transform: translateY(-12px); } }

/* ---------- ticker ---------- */
.ticker { overflow: hidden; direction: ltr; padding: 16px 0; border-block: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 55%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker-track { display: flex; gap: 14px; width: max-content; animation: marquee 46s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { display: inline-flex; align-items: baseline; gap: 10px; padding: 8px 18px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); white-space: nowrap; }
.ticker b { font-weight: 700; color: var(--brand); }
.ticker em { font-style: normal; color: var(--muted); font-size: 0.9rem; direction: rtl; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(36px, 5vw, 60px); }
.eyebrow { display: inline-block; padding: 5px 14px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 0.84rem; }
.eyebrow.light { background: rgba(255, 255, 255, 0.2); color: #fff; }
h2 { margin-top: 14px; font-size: clamp(1.65rem, 3.6vw, 2.7rem); line-height: 1.45; font-weight: 800; text-wrap: balance; }
.section-head p { margin-top: 12px; color: var(--ink-2); font-size: 1.05rem; }
h3 { font-size: 1.2rem; font-weight: 800; line-height: 1.6; }

/* why */
.why-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 72px); align-items: center; }
.why-copy p { margin-top: 16px; color: var(--ink-2); font-size: 1.04rem; line-height: 2.05; }
.why-copy b { color: var(--brand); }
.curve { padding: clamp(16px, 3vw, 28px); border-radius: 32px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.curve svg { display: block; width: 100%; height: auto; overflow: visible; }
.curve figcaption { margin-top: 8px; text-align: center; font-size: 0.78rem; color: var(--muted); }
.curve .axis path { fill: none; stroke: var(--line); stroke-width: 2; stroke-linecap: round; }
.curve .axis .gl { stroke-dasharray: 3 8; opacity: 0.8; }
.curve .c-bad { fill: none; stroke: var(--coral); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: 0.9; }
.curve .c-good { fill: none; stroke: url(#cg); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.curve .dots circle { fill: var(--surface); stroke: var(--brand); stroke-width: 3.5; }
.curve .t { font: 600 13px var(--font); fill: var(--muted); }
.curve .t.bad { fill: var(--coral); }
.curve .t.good { fill: var(--brand); font-weight: 800; }
.curve .c-fill { display: none; }
html.js .curve:not(.in) .c-bad, html.js .curve:not(.in) .c-good { stroke-dashoffset: 1; }
html.js .curve:not(.in) .dots circle { opacity: 0; }
.curve.in .c-bad { animation: draw 1.6s 0.2s ease both; }
.curve.in .c-good { animation: draw 2.2s 0.5s ease both; }
.curve.in .dots circle { animation: pop 0.5s ease both; }
.curve.in .dots circle:nth-child(1) { animation-delay: 0.9s; }
.curve.in .dots circle:nth-child(2) { animation-delay: 1.3s; }
.curve.in .dots circle:nth-child(3) { animation-delay: 1.7s; }
.curve.in .dots circle:nth-child(4) { animation-delay: 2.1s; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: none; } }
.curve .dots circle { transform-box: fill-box; transform-origin: center; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 28px; border-radius: 30px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(520px 200px at 100% 0, color-mix(in srgb, var(--brand) 9%, transparent), transparent 70%); pointer-events: none; }
.card > * { position: relative; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 0.96rem; line-height: 1.95; margin-bottom: 22px; }
.ico { width: 50px; height: 50px; border-radius: 17px; display: grid; place-items: center; margin-bottom: 18px; background: var(--brand-soft); color: var(--brand); }
.b-quick { grid-column: span 4; }
.b-srs { grid-column: span 2; grid-row: span 2; }
.b-stats, .b-notif { grid-column: span 2; }
.b-voice, .b-offline, .b-bulk, .b-theme, .b-quiz, .b-spell, .b-leech, .b-dictate, .b-mic, .b-custom { grid-column: span 3; }
.b-insight { grid-column: span 6; }
.mini { margin-top: auto; }
.mini-wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; margin-top: auto; }
.mini-wrap .mini { margin-top: 0; }
.mini-wrap .mini-form { flex: 0 1 360px; }
.mini-suggest { flex: 1 1 220px; display: grid; gap: 10px; align-content: start; padding: 16px 18px; border-radius: 20px; border: 1.5px dashed var(--brand-2); background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 9%, transparent), transparent); }
.mini-suggest b { display: flex; align-items: center; gap: 7px; color: var(--brand); font-size: 0.88rem; }
.mini-suggest b .ic { width: 18px; height: 18px; }
.mini-suggest div { display: flex; justify-content: space-between; gap: 12px; font-size: 0.84rem; color: var(--ink); }
.mini-suggest span { color: var(--muted); }
.mini-suggest em { font-style: normal; font-weight: 600; }
.b-srs .boxes { flex: 1; height: auto; min-height: 230px; }

.mini-form { display: grid; gap: 8px; max-width: 360px; padding: 14px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--line); }
.mf-row { display: flex; align-items: center; gap: 4px; padding: 11px 14px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--line); font-weight: 600; }
.mf-row:first-child { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
.mf-row .en { font-size: 1.05rem; font-weight: 700; }
.caret { width: 2px; height: 20px; background: var(--brand); margin-inline-start: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.mf-keys { display: flex; align-items: center; gap: 10px; padding-top: 4px; font-size: 0.8rem; color: var(--muted); }
kbd { font-family: var(--font-en); font-size: 0.78rem; font-weight: 600; padding: 3px 9px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); border-bottom-width: 2.5px; color: var(--ink); direction: ltr; }

.boxes { display: flex; align-items: flex-end; gap: 9px; height: 176px; margin-bottom: 30px; margin-top: auto; }
.boxes div { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; }
.boxes i { display: block; width: 100%; height: var(--h); border-radius: 12px 12px 5px 5px; background: linear-gradient(180deg, var(--c), color-mix(in srgb, var(--c) 60%, transparent)); }
.boxes span { position: absolute; top: 100%; inset-inline: -4px; margin-top: 8px; text-align: center; font-size: 0.68rem; font-weight: 600; color: var(--muted); white-space: nowrap; }

.mini-bars { position: relative; }
.mini-bars > div { display: flex; align-items: flex-end; gap: 7px; height: 92px; }
.mini-bars i { flex: 1; height: var(--h); border-radius: 7px 7px 3px 3px; background: var(--brand-soft); }
.mini-bars i.on { background: var(--brand); }
.chg { position: absolute; inset-block-start: -6px; inset-inline-end: 0; padding: 3px 11px; border-radius: 99px; background: color-mix(in srgb, var(--good) 15%, transparent); color: var(--good); font-weight: 800; font-size: 0.78rem; direction: ltr; }

.notif { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.notif img { border-radius: 11px; }
.notif span { display: grid; line-height: 1.6; }
.notif b { font-size: 0.86rem; }
.notif small { font-size: 0.78rem; color: var(--muted); }

.voice { display: flex; align-items: center; gap: 14px; }
.voice button { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 12px 24px -10px var(--brand); }
.voice .en { font-size: 1.1rem; color: var(--ink-2); }
.wave { display: inline-flex; align-items: center; gap: 4px; height: 34px; margin-inline-start: auto; }
.wave u { width: 5px; height: 100%; border-radius: 4px; background: var(--brand-2); transform: scaleY(0.3); animation: wave 1.1s ease-in-out infinite; }
.wave u:nth-child(2) { animation-delay: 0.12s; } .wave u:nth-child(3) { animation-delay: 0.24s; } .wave u:nth-child(4) { animation-delay: 0.36s; } .wave u:nth-child(5) { animation-delay: 0.48s; }
@keyframes wave { 50% { transform: scaleY(1); } }

.sync { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sync span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 99px; font-weight: 700; font-size: 0.88rem; }
.sync .ic { width: 18px; height: 18px; }
.sync .off { background: color-mix(in srgb, var(--warn) 16%, transparent); color: #c98209; }
.sync .ok { background: color-mix(in srgb, var(--good) 15%, transparent); color: var(--good); }
.sync em { font-style: normal; color: var(--muted); font-size: 1.2rem; }

.bulk { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bulk code { padding: 12px 16px; border-radius: 16px; background: var(--surface-2); border: 1px dashed var(--brand-2); font-size: 0.88rem; line-height: 1.9; color: var(--ink-2); text-align: left; }
.bulk em { font-style: normal; color: var(--muted); font-size: 1.2rem; }
.bulk span { display: grid; padding: 10px 16px; border-radius: 16px; background: var(--brand-soft); color: var(--ink); font-weight: 600; line-height: 1.6; }
.bulk span b { color: var(--brand); }

.theme { display: flex; align-items: center; gap: 16px; }
.half { width: 92px; height: 92px; border-radius: 50%; background: linear-gradient(90deg, #ffffff 50%, #171533 50%); border: 1px solid var(--line); box-shadow: var(--shadow-md); position: relative; }
.half::after { content: ""; position: absolute; inset: 30%; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 25%, transparent); }

.quiz { display: grid; gap: 10px; }
.qz-word { font-family: var(--font-en); direction: ltr; font-weight: 700; font-size: 1.1rem; text-align: center; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.qz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qz-opts span { padding: 10px; border-radius: 12px; background: var(--surface-2); border: 1.5px solid var(--line); text-align: center; font-size: 0.86rem; font-weight: 600; color: var(--ink-2); }
.qz-opts span.ok { background: color-mix(in srgb, var(--good) 15%, transparent); border-color: var(--good); color: var(--good); }

/* ---------- showcase ---------- */
.showcase { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--brand-soft) 60%, transparent) 20%, color-mix(in srgb, var(--brand-soft) 60%, transparent) 80%, transparent); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 7vw, 96px); align-items: center; margin-bottom: clamp(64px, 9vw, 120px); }
.row.flip .row-copy { order: 2; }
.row-copy h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.6; font-weight: 800; margin-bottom: 18px; text-wrap: balance; }
.ticks { list-style: none; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-inline-start: 38px; color: var(--ink-2); line-height: 1.9; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat, var(--grad); }
.fine { margin-top: 18px; font-size: 0.84rem; color: var(--muted); line-height: 1.9; }
.pair { display: flex; justify-content: center; align-items: flex-start; gap: 18px; }
.pair .phone.show { --pw: 232px; margin-inline: 0; }
.pair .phone:nth-child(2) { margin-top: 56px; }
.dark-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; padding: clamp(28px, 5vw, 56px); padding-block-end: 0; border-radius: 40px; color: #fff; overflow: hidden; position: relative; background: radial-gradient(700px 320px at 0% 0%, rgba(142, 123, 255, 0.4), transparent 60%), linear-gradient(135deg, #1d1a44, #0c0b20); box-shadow: var(--shadow-lg); }
.dark-copy { padding-block-end: clamp(28px, 5vw, 56px); }
.dark-copy h3 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.dark-copy p { margin-top: 10px; color: rgba(255, 255, 255, 0.75); }
.dark-shots { display: flex; gap: 16px; align-items: flex-end; margin-bottom: -40px; }
.dark-shots .phone { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7), inset 0 0 0 1.5px rgba(255, 255, 255, 0.14); }
.dark-shots .phone:nth-child(2) { margin-bottom: 30px; }

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: s; }
.steps li { position: relative; padding: 28px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.steps i { width: 50px; height: 50px; border-radius: 17px; display: grid; place-items: center; margin-bottom: 18px; font-style: normal; font-weight: 900; font-size: 1.4rem; color: #fff; background: var(--grad); box-shadow: 0 14px 26px -12px var(--brand); }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: 0.96rem; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 52px; inset-inline-end: -22px; width: 22px; height: 2px; background: repeating-linear-gradient(90deg, var(--brand-2) 0 5px, transparent 5px 10px); }

/* ---------- install ---------- */
.install-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(24px, 5vw, 56px); align-items: center; padding: clamp(28px, 5vw, 60px); border-radius: 44px; color: #fff; position: relative; overflow: hidden; background: radial-gradient(600px 300px at 100% 0, rgba(255, 255, 255, 0.22), transparent 60%), var(--grad); box-shadow: var(--shadow-lg); }
.install-card h2 { color: #fff; }
.install-copy p { margin-top: 14px; max-width: 32em; color: rgba(255, 255, 255, 0.9); font-size: 1.05rem; }
.platforms { list-style: none; padding: 0; display: grid; gap: 12px; }
.platforms li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 22px; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.28); backdrop-filter: blur(10px); }
.platforms .ic { width: 26px; height: 26px; }
.platforms div { display: grid; line-height: 1.6; }
.platforms b { font-weight: 800; }
.platforms span { font-size: 0.84rem; opacity: 0.9; }

/* ---------- faq ---------- */
.faq details { margin-bottom: 12px; padding: 0 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: border-color 0.25s, box-shadow 0.25s; }
.faq details[open] { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); box-shadow: var(--shadow-md); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 700; font-size: 1.04rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 1.4rem; font-weight: 500; line-height: 1; transition: transform 0.3s, background 0.3s, color 0.3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--brand); color: #fff; }
.faq details p { padding-bottom: 22px; color: var(--ink-2); line-height: 2.05; }

/* ---------- final CTA + footer ---------- */
.final { padding-bottom: clamp(56px, 8vw, 100px); }
.final-card { text-align: center; padding: clamp(36px, 6vw, 80px) clamp(20px, 5vw, 60px); border-radius: 48px; color: #fff; position: relative; overflow: hidden; background: radial-gradient(500px 260px at 20% 0, rgba(255, 255, 255, 0.22), transparent 60%), radial-gradient(500px 300px at 90% 100%, rgba(255, 122, 158, 0.55), transparent 60%), linear-gradient(135deg, #5b48e0, #7d69f5); box-shadow: var(--shadow-lg); }
.final-card h2 { color: #fff; max-width: 18em; margin-inline: auto; }
.final-card p { margin: 14px auto 0; max-width: 30em; color: rgba(255, 255, 255, 0.9); font-size: 1.08rem; }
.footer { padding: 44px 0 56px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.foot-in { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.foot-brand { display: grid; gap: 12px; justify-items: start; }
.foot-brand p { color: var(--muted); }
.foot-links { display: grid; gap: 10px; }
.foot-links b { margin-bottom: 2px; }
.foot-links a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); font-weight: 600; transition: color 0.2s; }
.foot-links a:hover { color: var(--brand); }
.foot-links .ic { width: 19px; height: 19px; color: var(--brand); }

/* ---------- install dialog ---------- */
dialog { width: min(calc(100% - 32px), 460px); padding: 26px 24px 22px; border: 0; border-radius: 30px; background: var(--surface); color: var(--ink); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.6); }
dialog::backdrop { background: rgba(13, 12, 30, 0.55); backdrop-filter: blur(5px); }
dialog[open] { animation: dlg 0.3s cubic-bezier(0.2, 0.9, 0.25, 1); }
@keyframes dlg { from { opacity: 0; transform: translateY(18px) scale(0.97); } }
.dlg-x { position: absolute; inset-block-start: 14px; inset-inline-end: 14px; margin: 0; }
.dlg-x button { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; color: var(--muted); }
.dlg-x button:hover { background: var(--brand-soft); color: var(--brand); }
dialog h3 { margin-bottom: 14px; padding-inline-end: 40px; font-size: 1.3rem; }
.inapp { margin-bottom: 16px; padding: 16px; border-radius: 20px; background: color-mix(in srgb, var(--warn) 14%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); }
.inapp b { display: block; margin-bottom: 4px; }
.inapp p { margin-bottom: 12px; font-size: 0.9rem; line-height: 1.9; color: var(--ink-2); }
.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 16px; background: var(--brand-soft); margin-bottom: 16px; }
.tabs button { padding: 9px; border-radius: 12px; font-weight: 700; font-size: 0.9rem; color: var(--muted); transition: all 0.2s; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm); }
.how { margin: 0; padding: 0; list-style: none; counter-reset: h; display: grid; gap: 12px; }
.how li { counter-increment: h; position: relative; padding: 4px 44px 4px 0; line-height: 2; color: var(--ink-2); }
.how li::before { content: counter(h, persian); position: absolute; inset-inline-start: auto; right: 0; top: 4px; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-size: 0.9rem; line-height: 1; }
.how b { color: var(--ink); }
.dlg-foot { margin-top: 20px; display: flex; justify-content: center; }

/* ---------- reveal on scroll ---------- */
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: var(--d, 0s); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .b-quick { grid-column: span 6; }
  .b-srs { grid-column: span 3; grid-row: auto; }
  .b-stats { grid-column: span 3; }
  .b-notif { grid-column: span 6; }
  .b-voice, .b-offline, .b-bulk, .b-theme, .b-quiz, .b-spell, .b-leech, .b-dictate, .b-mic, .b-custom { grid-column: span 3; }
  .b-insight { grid-column: span 6; }
  .hero-visual { height: 580px; }
  .p-back { --pw: 208px; } .p-front { --pw: 250px; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .cta-row, .trust { justify-content: center; }
  .hero-visual { height: 560px; max-width: 460px; margin-inline: auto; width: 100%; }
  .why-grid, .row, .install-card { grid-template-columns: minmax(0, 1fr); }
  .row.flip .row-copy { order: 0; }
  .row-copy { text-align: center; }
  .ticks { text-align: right; max-width: 30em; margin-inline: auto; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li::after { display: none; }
  .dark-band { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .dark-shots { justify-content: center; margin-bottom: -40px; }
  .platforms { max-width: 460px; }
  .foot-in { flex-direction: column; }
}
@media (max-width: 640px) {
  .container, .container.narrow { width: min(100% - 32px, var(--container)); }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .b-quick, .b-srs, .b-stats, .b-notif, .b-voice, .b-offline, .b-bulk, .b-theme, .b-quiz, .b-spell, .b-leech, .b-dictate, .b-insight, .b-mic, .b-custom { grid-column: auto; }
  .card { padding: 24px; border-radius: 26px; }
  .nav-in { height: 62px; }
  .nav-cta .btn-ghost { display: none; }
  .btn-xl { padding: 15px 24px; width: 100%; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .hero-visual { height: 500px; }
  .p-back { --pw: 176px; left: -2%; top: 84px; } .p-front { --pw: 218px; right: 2%; }
  .f-streak { top: 24px; left: 0; } .f-word { bottom: 132px; left: -2%; } .f-notif { display: none; }
  .proof { gap: 16px; padding: 12px 18px; }
  .pair .phone.show { --pw: 150px; } .pair .phone:nth-child(2) { margin-top: 36px; }
  .phone.show { --pw: 250px; }
  .phone.sm { --pw: 150px; }
  .dark-band { border-radius: 30px; }
  .install-card, .final-card { border-radius: 32px; }
  .faq details { padding: 0 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html.js .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
}

/* ---------- new features: leech + dictation cards ---------- */
.leech-mini { display: grid; gap: 10px; padding: 14px; border-radius: 20px; background: color-mix(in srgb, var(--warn) 8%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--warn) 30%, var(--line)); }
.lm-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lm-row .en { font-weight: 700; font-size: 1.1rem; }
.lm-badge { font-style: normal; padding: 1px 10px; border-radius: 99px; background: color-mix(in srgb, var(--warn) 18%, transparent); color: color-mix(in srgb, var(--warn) 70%, var(--ink)); font-size: 0.74rem; font-weight: 800; }
.lm-row small { margin-inline-start: auto; color: var(--muted); font-weight: 600; }
.lm-tip { padding: 8px 12px; border-radius: 12px; border: 1.5px dashed var(--line); color: var(--ink-2); font-size: 0.84rem; font-weight: 600; }
.lm-btn { justify-self: start; padding: 8px 18px; border-radius: 14px; background: var(--brand); color: #fff; font-weight: 700; font-size: 0.86rem; box-shadow: 0 3px 0 color-mix(in srgb, var(--brand) 60%, #000); }
.dict-mini { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--line); }
.dm-play { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 4px 0 color-mix(in srgb, var(--brand) 60%, #000); }
.dm-play .ic { width: 26px; height: 26px; }
.dm-lines { display: grid; gap: 1px; flex: 1; text-align: center; }
.dm-lines small { color: var(--muted); font-size: 0.72rem; font-weight: 700; }
.dm-lines .en { font-size: 1.3rem; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 4px; justify-self: center; }
.dm-lines mark { background: color-mix(in srgb, var(--good) 20%, transparent); color: var(--good); border-radius: 5px; padding: 0 2px; }

/* ---------- motivation section ---------- */
.m-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.m-note { margin: 26px auto 0; max-width: 40em; text-align: center; color: var(--muted); font-size: 0.92rem; line-height: 1.9; }
.xp-mini { display: flex; align-items: center; gap: 14px; }
.xm-lvl { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 1.5rem; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 4px 0 color-mix(in srgb, var(--brand) 60%, #000); }
.xp-mini > div { flex: 1; display: grid; gap: 6px; }
.xp-mini b { font-size: 0.92rem; }
.xp-mini small { color: var(--muted); font-size: 0.76rem; }
.xm-bar { display: block; height: 9px; border-radius: 99px; background: var(--brand-soft); overflow: hidden; }
.xm-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.qst-mini { display: grid; gap: 8px; }
.qst-mini > div { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-size: 0.84rem; font-weight: 600; }
.qst-mini i { flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.qst-mini i .ic { width: 14px; height: 14px; stroke-width: 2.4; }
.qst-mini .ok i .ic { color: #fff; stroke-width: 3.4; }
.qst-mini span { flex: 1; color: var(--ink-2); }
.qst-mini b { color: var(--brand); font-size: 0.8rem; direction: ltr; }
.qst-mini .ok { background: color-mix(in srgb, var(--good) 10%, transparent); border-color: color-mix(in srgb, var(--good) 40%, var(--line)); }
.qst-mini .ok i { background: var(--good); }
.qst-mini .ok span { color: var(--muted); }
.qst-mini .ok b { color: var(--good); }
.wk-mini { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.wk-mini span { display: grid; justify-items: center; gap: 4px; }
.wk-mini .dayico { width: 100%; max-width: 38px; height: auto; aspect-ratio: 1; filter: drop-shadow(0 3px 4px rgba(240, 80, 60, 0.25)); }
.wk-mini small { color: var(--muted); font-size: 0.72rem; font-weight: 700; }
.wk-mini small.today { color: var(--coral); font-weight: 800; }
.wk-mini .dim .dayico { color: var(--line); filter: none; opacity: .7; }
@media (max-width: 900px) { .m-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- new feature minis: insights, mic, custom study ---------- */
.ins-mini { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 16px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--line); }
.im-ret { display: flex; align-items: center; gap: 12px; }
.im-ret b { font-size: 2.3rem; font-weight: 900; color: var(--good); line-height: 1; }
.im-ret span { display: grid; font-weight: 700; font-size: .92rem; }
.im-ret small { color: var(--muted); font-weight: 600; font-size: .76rem; }
.im-cal { flex: 1; min-width: 0; display: grid; grid-template-rows: repeat(7, 12px); grid-auto-flow: column; grid-auto-columns: 12px; gap: 3px; justify-content: end; overflow: hidden; direction: rtl; }
.im-cal i { display: block; border-radius: 3px; background: var(--line); }
.im-cal .l1 { background: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.im-cal .l2 { background: color-mix(in srgb, var(--brand) 55%, var(--line)); }
.im-cal .l3 { background: color-mix(in srgb, var(--brand) 80%, var(--line)); }
.im-cal .l4 { background: var(--brand); }
.mic-mini { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--line); }
.mm-rec { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #f04d5d; box-shadow: 0 0 0 8px color-mix(in srgb, #f04d5d 18%, transparent); }
.mm-rec .ic { width: 24px; height: 24px; }
.mm-lines { flex: 1; display: grid; gap: 8px; }
.mm-lines > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .8rem; color: var(--muted); font-weight: 700; }
.mm-lines .ok { color: var(--good); }
.mm-lines .wave { height: 22px; gap: 3px; margin: 0; }
.mm-lines .wave u { width: 4px; background: var(--muted); }
.mm-lines .ok .wave u { background: var(--good); }
@media (prefers-reduced-motion: reduce) { .mm-lines .wave u { transform: scaleY(.6); } .mm-lines .wave u:nth-child(odd) { transform: scaleY(.95); } }
.custom-mini { display: flex; flex-wrap: wrap; gap: 10px; }
.custom-mini span { padding: 10px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; font-size: .88rem; color: var(--ink-2); }
