/* Echo — marketing site. Hand-written, no framework.
   Tokens first; light by default, dark via prefers-color-scheme. Logical properties everywhere (RTL-safe). */

:root {
  --accent: #3346E0;
  --accent-ink: #2A3BC4;
  --violet: #7A3FE4;
  --pink: #E0457B;
  --gold: #B77A05;
  --green: #1C8A4A;
  --red: #D23A3A;
  --yellow: #B98200;
  --ink: #10141C;
  --ink-2: #474F63;
  --ink-3: #5D6579;
  --bg: #F5F6FC;
  --bg-2: #FFFFFF;
  --bg-3: #ECEEF9;
  --card: #FFFFFF;
  --card-2: #F8F9FE;
  --line: rgba(16, 20, 28, .09);
  --line-2: rgba(16, 20, 28, .14);
  --shadow: 0 1px 2px rgba(16, 20, 40, .06), 0 12px 32px -12px rgba(30, 40, 120, .18);
  --shadow-lg: 0 2px 6px rgba(16, 20, 40, .06), 0 40px 80px -30px rgba(40, 50, 160, .35);
  --grad: linear-gradient(120deg, #3346E0 0%, #7A3FE4 55%, #E0457B 100%);
  --grad-soft: linear-gradient(120deg, rgba(51, 70, 224, .12), rgba(122, 63, 228, .10) 55%, rgba(224, 69, 123, .10));
  --glow-1: rgba(51, 70, 224, .16);
  --glow-2: rgba(224, 69, 123, .10);
  --glow-3: rgba(122, 63, 228, .12);
  --header-bg: rgba(245, 246, 252, .82);
  --ok-bg: #E3F4EA;
  --warn-bg: #FBF0D6;
  --bad-bg: #FBE3E3;
  --radius: 22px;
  --radius-sm: 14px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-ipa: "Charis SIL", "Doulos SIL", "Gentium Plus", "Lucida Grande", "Segoe UI", "Arial Unicode MS", serif;
  --gutter: clamp(16px, 4vw, 32px);
  --max: 1200px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #7584FF;
    --accent-ink: #9AA5FF;
    --violet: #A47BFF;
    --pink: #FF6F9F;
    --gold: #E2A52C;
    --green: #4CC27D;
    --red: #FF6B6B;
    --yellow: #F0B93A;
    --ink: #EEF0F8;
    --ink-2: #B4BBCF;
    --ink-3: #9AA2B8;
    --bg: #0A0D15;
    --bg-2: #0F1320;
    --bg-3: #151A2A;
    --card: #131828;
    --card-2: #171D30;
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .14);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -16px rgba(0, 0, 0, .6);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .4), 0 40px 90px -30px rgba(0, 0, 0, .8);
    --grad-soft: linear-gradient(120deg, rgba(117, 132, 255, .16), rgba(164, 123, 255, .12) 55%, rgba(255, 111, 159, .10));
    --glow-1: rgba(80, 96, 255, .22);
    --glow-2: rgba(224, 69, 123, .12);
    --glow-3: rgba(122, 63, 228, .18);
    --header-bg: rgba(10, 13, 21, .78);
    --ok-bg: rgba(76, 194, 125, .14);
    --warn-bg: rgba(240, 185, 58, .14);
    --bad-bg: rgba(255, 107, 107, .14);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font: 400 17px/1.6 var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html[dir="rtl"] body, html[lang="fa"] body { font-family: "Vazirmatn", Tahoma, var(--font); line-height: 1.85; }
html[lang="fa"] { --font-display: "Vazirmatn", Tahoma, sans-serif; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--accent-ink); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -.025em; margin: 0 0 .5em; color: var(--ink); text-wrap: balance; }
html[lang="fa"] h1, html[lang="fa"] h2, html[lang="fa"] h3, html[lang="fa"] h4 { letter-spacing: 0; line-height: 1.4; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { padding-inline-start: 1.25em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; color: var(--bg); }
.ltr { direction: ltr; unicode-bidi: isolate; }
.ipa { font-family: var(--font-ipa); direction: ltr; unicode-bidi: isolate; }
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-color-scheme: dark) { .grad-text { background: linear-gradient(120deg, #8D99FF, #B58CFF 55%, #FF7FAA); -webkit-background-clip: text; background-clip: text; } }

/* page glow backdrop (static gradients, no blur filters) */
.page-glow { position: absolute; inset: 0 0 auto 0; height: 1100px; pointer-events: none; z-index: -1; overflow: hidden;
  background:
    radial-gradient(600px 420px at 85% 10%, var(--glow-1), transparent 70%),
    radial-gradient(520px 380px at 8% 30%, var(--glow-3), transparent 70%),
    radial-gradient(700px 400px at 60% 80%, var(--glow-2), transparent 70%);
}

/* ---------- buttons ---------- */
.btn { --b: var(--accent); display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: .7em 1.35em; border-radius: 999px; font: 650 16px/1.2 var(--font); text-decoration: none; border: 0; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s; white-space: nowrap; }
html[lang="fa"] .btn { font-family: "Vazirmatn", Tahoma, var(--font); font-weight: 700; }
.btn-primary { color: #fff; background: var(--grad); box-shadow: 0 10px 24px -10px rgba(51, 70, 224, .7); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(51, 70, 224, .8); }
.btn-ghost { color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { color: var(--ink); background: var(--bg-3); }
.btn-sm { min-height: 40px; padding: .5em 1.05em; font-size: 15px; }

/* App Store badge (CSS recreation; swap for Apple's official artwork if preferred) */
.appstore { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 16px; border-radius: 14px; background: #000; color: #fff; text-decoration: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 10px 26px -12px rgba(0, 0, 0, .55); transition: transform .2s ease; direction: ltr; }
.appstore:hover { color: #fff; transform: translateY(-2px); }
.appstore svg { width: 26px; height: 30px; flex: none; }
.appstore span { display: grid; line-height: 1.05; text-align: left; font-family: var(--font); }
.appstore small { font-size: 11.5px; font-weight: 500; letter-spacing: .01em; }
.appstore b { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
@media (prefers-color-scheme: dark) { .appstore { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); } }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.cta-note { font-size: 14px; color: var(--ink-3); margin: 12px 0 0; }

/* ---------- promo bar ---------- */
.promo-bar { position: relative; z-index: 51; background: var(--grad); color: #fff; font-size: 14.5px; }
.promo-bar[hidden] { display: none; }
.promo-bar .container { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding-block: 6px; text-align: center; }
.promo-bar a { color: #fff; font-weight: 700; }
.promo-bar .tag { background: rgba(255, 255, 255, .2); border-radius: 999px; padding: 2px 10px; font-weight: 700; font-size: 12.5px; letter-spacing: .03em; text-transform: uppercase; }
.promo-bar [data-promo-text] { flex: 0 1 auto; min-width: 0; }
.promo-bar a { flex: none; }
@media (max-width: 640px) {
  .promo-bar { font-size: 13px; line-height: 1.4; }
  .promo-bar .tag { display: none; }
  .promo-bar .container { justify-content: flex-start; text-align: start; gap: 8px; padding-inline-end: 6px; }
}
.promo-bar button { margin-inline-start: auto; background: transparent; border: 0; color: #fff; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 20px; line-height: 1; flex: none; }
.promo-bar button:hover { background: rgba(255, 255, 255, .15); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 21px/1 var(--font-display); letter-spacing: -.02em; flex: none; }
.brand:hover { color: var(--ink); }
.brand img, .brand svg { width: 34px; height: 34px; border-radius: 9px; }
.brand small { font: 600 13px/1 "Vazirmatn", Tahoma, sans-serif; color: var(--ink-3); letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { color: var(--ink); background: var(--bg-3); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); text-decoration: none; font-weight: 650; font-size: 14px; padding: 8px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); }
.lang-switch:hover { color: var(--ink); background: var(--bg-3); }
.lang-switch svg { width: 16px; height: 16px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 24px; height: 24px; margin: auto; }
@media (max-width: 980px) {
  .nav { display: none; position: absolute; inset-inline: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 16px; background: var(--bg-2); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav a { padding: 14px 8px; font-size: 17px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-open .nav { display: flex; }
  .menu-btn { display: grid; }
  .header-actions { margin-inline-start: auto; }
}
@media (max-width: 520px) {
  .header-actions .btn { display: none; }
  .brand small { display: none; }
}

/* ---------- hero ---------- */
.hero { overflow-x: clip; position: relative; padding: clamp(36px, 7vw, 84px) 0 clamp(40px, 6vw, 80px); }
.hero .container { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; }
html[lang="fa"] .eyebrow { letter-spacing: 0; font-size: 15px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px rgba(51, 70, 224, .15); }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); font-weight: 850; letter-spacing: -.04em; margin-bottom: 20px; }
html[lang="fa"] .hero h1 { font-size: clamp(36px, 5.6vw, 64px); letter-spacing: 0; font-weight: 900; line-height: 1.3; }
.hero .lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 36em; margin-bottom: 28px; }
.hero-points { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--ink-2); font-size: 15px; font-weight: 550; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--green); flex: none; }

.hero-stage { position: relative; aspect-ratio: 1 / 1.02; max-width: 600px; width: 100%; margin-inline: auto; }
.hero-stage .phone { position: absolute; }
.hero-stage .p-center { width: 47%; left: 26.5%; top: 6%; z-index: 3; }
.hero-stage .p-left { width: 38%; left: 0; top: 18%; z-index: 2; transform: rotate(-7deg); }
.hero-stage .p-right { width: 38%; right: 0; top: 18%; z-index: 2; transform: rotate(7deg); }
.hero-stage .mascot-wrap { position: absolute; width: 30%; right: -3%; top: -6%; z-index: 5; }
html[dir="rtl"] .hero-stage .mascot-wrap { right: auto; left: -2%; }
.hero-chip { position: absolute; z-index: 6; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow-lg); font-weight: 700; font-size: 14px; white-space: nowrap; color: var(--ink); }
.hero-chip .ipa { font-size: 18px; }
.hero-chip.c1 { left: -3%; bottom: 14%; }
.hero-chip.c2 { right: -2%; bottom: 26%; }
.hero-chip.c3 { left: 6%; top: 4%; }
.hero-chip .bad { color: var(--red); }
.hero-chip .ok { color: var(--green); }
.hero-chip .flame { color: #F06A1D; display: inline-flex; width: 17px; height: 17px; }
.flame svg { width: 100%; height: 100%; }
.w-small .flame { display: block; }
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero .cta-row, .hero-points { justify-content: center; }
  .hero-stage { max-width: 520px; }
}
@media (max-width: 480px) {
  .hero-chip { font-size: 12.5px; padding: 7px 10px; }
  .hero-chip.c3 { display: none; }
}

/* ---------- phone mockup ---------- */
/* The element is the screen; the bezel is a box-shadow ring (no layout impact, no CLS). */
.phone { --bz: clamp(5px, 1.1vw, 9px); position: relative; aspect-ratio: 1320 / 2868; border-radius: 12.5% / 5.75%; background: #0E0F13;
  box-shadow: 0 0 0 var(--bz) #0E0F13, 0 0 0 calc(var(--bz) + 1.5px) #454A56, var(--shadow-lg); }
.phone::after { content: ""; position: absolute; top: 1.25%; left: 50%; width: 28.6%; height: 3.7%; transform: translateX(-50%); background: #000; border-radius: 999px; z-index: 2; }
.phone picture, .phone img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; object-position: top; }
.phone.no-island::after { display: none; }
@media (prefers-color-scheme: dark) { .phone { box-shadow: 0 0 0 var(--bz) #050608, 0 0 0 calc(var(--bz) + 1.5px) #5A6070, var(--shadow-lg); } }
.shot-label { display: block; margin-top: 14px; text-align: center; font-size: 13.5px; color: var(--ink-3); font-weight: 550; }

/* ---------- Echo character (art rendered from the app's EchoCharacterArtwork) ---------- */
.echo-char { display: block; width: 100%; }
.echo-char img { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 18px rgba(40, 30, 120, .22)); }
.js .echo-char.animate img { animation: m-float 5s ease-in-out infinite; }
@keyframes m-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.rings { position: absolute; inset: 0; pointer-events: none; }
.rings i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(122, 63, 228, .35); opacity: 0; }
.js .rings i { animation: ring 4.5s ease-out infinite; }
.js .rings i:nth-child(2) { animation-delay: 1.5s; }
.js .rings i:nth-child(3) { animation-delay: 3s; }
@keyframes ring { 0% { transform: scale(.5); opacity: .7; } 100% { transform: scale(1.35); opacity: 0; } }

/* ---------- stats strip ---------- */
.stats { padding: 8px 0 24px; }
.stats ul { list-style: none; margin: 0; padding: 18px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.stats li { text-align: center; padding: 10px 6px; }
.stats li + li { border-inline-start: 1px solid var(--line); }
.stats b { display: block; font: 850 clamp(24px, 3vw, 34px)/1.1 var(--font-display); letter-spacing: -.03em; }
html[lang="fa"] .stats b { letter-spacing: 0; }
.stats span { font-size: 14px; color: var(--ink-3); font-weight: 550; }
@media (max-width: 760px) {
  .stats ul { grid-template-columns: repeat(2, 1fr); }
  .stats li + li { border-inline-start: 0; }
  .stats li:last-child { grid-column: 1 / -1; }
}

/* ---------- sections ---------- */
.section { padding: clamp(56px, 9vw, 120px) 0; position: relative; }
.section.tight { padding-top: clamp(28px, 4vw, 56px); }
.section.alt { background: var(--bg-2); }
.section-head { max-width: 760px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 850; letter-spacing: -.035em; }
html[lang="fa"] .section-head h2 { font-size: clamp(28px, 4vw, 46px); letter-spacing: 0; font-weight: 900; }
.section-head p { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); }
.section-head .eyebrow { justify-content: center; }

/* how it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; background: var(--card); border-radius: var(--radius); padding: 26px 22px 24px; box-shadow: var(--shadow); counter-increment: step; }
.step::before { content: counter(step); position: absolute; top: 18px; inset-inline-end: 20px; font: 850 46px/1 var(--font-display); color: var(--line-2); }
.step .ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: var(--grad); margin-bottom: 18px; box-shadow: 0 10px 20px -10px rgba(51, 70, 224, .7); }
.step .ico svg { width: 26px; height: 26px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 15.5px; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* interactive scoring demo */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 48px); align-items: center; margin-top: clamp(40px, 6vw, 72px); }
.demo-card { background: var(--card); border-radius: 28px; box-shadow: var(--shadow-lg); padding: clamp(20px, 3vw, 32px); position: relative; overflow: hidden; }
.demo-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--grad); }
.demo-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; direction: ltr; justify-content: center; }
.demo-tabs button { font: 650 15px/1 var(--font); padding: 10px 16px; border-radius: 999px; border: 0; cursor: pointer; background: var(--bg-3); color: var(--ink-2); min-height: 40px; }
.demo-tabs button[aria-selected="true"] { background: var(--accent); color: #fff; }
.demo-top { display: flex; align-items: center; gap: 22px; }
.ring-score { position: relative; width: 112px; height: 112px; flex: none; }
.ring-score svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-score circle { fill: none; stroke-width: 10; }
.ring-score .track { stroke: var(--bg-3); }
.ring-score .bar { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 289; stroke-dashoffset: 289; transition: stroke-dashoffset 1s cubic-bezier(.2, .8, .2, 1), stroke .4s; }
.ring-score b { position: absolute; inset: 0; display: grid; place-items: center; font: 850 34px/1 var(--font-display); letter-spacing: -.03em; }
.demo-verdict h3 { font-size: 21px; margin: 0 0 4px; }
.demo-verdict p { margin: 0; color: var(--ink-2); font-size: 15px; }
.demo-word { display: flex; justify-content: center; margin: 24px 0 6px; font: 850 clamp(48px, 7vw, 68px)/1 var(--font-display); letter-spacing: -.02em; direction: ltr; }
.demo-word span { transition: color .4s, background .4s; border-radius: 10px; padding: 0 1px; }
.demo-word .s-ok { color: var(--green); }
.demo-word .s-mid { color: var(--yellow); background: var(--warn-bg); }
.demo-word .s-bad { color: var(--red); background: var(--bad-bg); }
.demo-ipa { text-align: center; color: var(--ink-3); font-size: 18px; margin-bottom: 18px; }
.phonemes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; direction: ltr; }
.phonemes div { min-width: 64px; padding: 10px 8px 8px; border-radius: 14px; text-align: center; border: 1.5px solid transparent; }
.phonemes .ipa { display: block; font-size: 24px; font-weight: 700; line-height: 1.2; color: var(--ink); }
.phonemes small { font-weight: 800; font-size: 14px; }
.phonemes .s-ok { background: var(--ok-bg); border-color: rgba(28, 138, 74, .25); color: var(--green); }
.phonemes .s-mid { background: var(--warn-bg); border-color: rgba(185, 130, 0, .3); color: var(--yellow); }
.phonemes .s-bad { background: var(--bad-bg); border-color: rgba(210, 58, 58, .3); color: var(--red); }
.demo-tip { margin-top: 20px; padding: 14px 16px; border-radius: 16px; background: var(--grad-soft); font-size: 15px; color: var(--ink-2); display: flex; gap: 12px; align-items: flex-start; }
.demo-tip b { color: var(--ink); }
.demo-tip .m-mini { width: 56px; flex: none; margin-block: -8px; }
.demo-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 16px; font-size: 13px; color: var(--ink-3); }
.demo-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-inline-end: 6px; vertical-align: middle; }
.demo-note { text-align: center; font-size: 12.5px; color: var(--ink-3); margin: 12px 0 0; }
.demo-copy h3 { font-size: clamp(26px, 3vw, 36px); font-weight: 850; }
.demo-copy p { color: var(--ink-2); font-size: 17px; }
@media (max-width: 900px) { .demo { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .demo-top { gap: 14px; } .ring-score { width: 92px; height: 92px; } .ring-score b { font-size: 28px; } .phonemes div { min-width: 56px; } }

/* feature rows */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 88px); align-items: center; padding: clamp(36px, 5vw, 64px) 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.rev > :last-child { order: -1; }
.feature-copy h3 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 850; letter-spacing: -.03em; }
html[lang="fa"] .feature-copy h3 { letter-spacing: 0; font-weight: 900; }
.feature-copy > p { font-size: 18px; color: var(--ink-2); }
.feature-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 750; color: var(--accent); margin-bottom: 12px; background: var(--grad-soft); padding: 6px 12px; border-radius: 999px; }
.feature-kicker svg { width: 16px; height: 16px; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: 16px; }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C8A4A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.checks b { color: var(--ink); }
.feature-media { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 4%; }
.feature-media .phone { width: 46%; max-width: 290px; }
.feature-media .phone.small { width: 40%; margin-top: 12%; }
.feature-media.single .phone { width: 58%; max-width: 320px; }
.feature-media .backdrop { position: absolute; inset: 8% 6%; border-radius: 40px; background: var(--grad-soft); z-index: -1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.chip .ipa { color: var(--accent); font-weight: 700; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature.rev > :last-child { order: 0; }
  .feature-media { max-width: 520px; margin-inline: auto; width: 100%; }
}

/* result card crop */
.card-shot { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--card); width: 100%; max-width: 560px; }
.card-shot img { width: 100%; }

/* hands-free loop */
.loop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.loop div { background: var(--card); border-radius: 18px; padding: 16px 14px; box-shadow: var(--shadow); text-align: center; position: relative; }
.loop svg { width: 28px; height: 28px; margin: 0 auto 8px; color: var(--accent); }
.loop b { display: block; font-size: 15px; }
.loop small { color: var(--ink-3); font-size: 13px; line-height: 1.4; display: block; }
.js .loop div.on { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
@media (max-width: 420px) { .loop { grid-template-columns: 1fr; } }

/* streak calendar illustration */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 20px; direction: ltr; max-width: 420px; }
html[dir="rtl"] .week { direction: rtl; }
.week span { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--bg-3); color: var(--ink-3); font-size: 13px; font-weight: 700; }
.week span.done { background: linear-gradient(135deg, #FF9A3D, #F0542A); color: #fff; }
.week span.freeze { background: linear-gradient(135deg, #8FD3FF, #4D8DFF); color: #fff; }

/* leagues */
.tiers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tier { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; padding: 6px 11px 6px 8px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); }
.tier i { width: 16px; height: 18px; clip-path: polygon(50% 0, 100% 18%, 100% 62%, 50% 100%, 0 62%, 0 18%); background: var(--c); }

/* bento grid (quests, widget, notifications...) */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); position: relative; overflow: hidden; min-width: 0; }
.tile h3 { font-size: 22px; margin-bottom: 8px; }
.tile p { color: var(--ink-2); font-size: 15.5px; }
.t-2 { grid-column: span 2; } .t-3 { grid-column: span 3; } .t-4 { grid-column: span 4; } .t-6 { grid-column: span 6; }
@media (max-width: 980px) { .t-2 { grid-column: span 3; } .t-4 { grid-column: span 6; } }
@media (max-width: 680px) { .bento { grid-template-columns: 1fr; } .t-2, .t-3, .t-4, .t-6 { grid-column: auto; } }
.tile .icon-badge { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px; color: #fff; }
.tile .icon-badge svg { width: 24px; height: 24px; }

.quest { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); margin-top: 10px; }
.quest .qi { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.quest .qi svg { width: 18px; height: 18px; }
.quest .qb { flex: 1; min-width: 0; }
.quest .qb b { font-size: 14.5px; display: block; }
.quest .bar { display: block; height: 6px; border-radius: 6px; background: var(--bg-3); overflow: hidden; margin-top: 6px; }
.quest .bar i { display: block; height: 100%; background: var(--grad); border-radius: 6px; width: var(--p); }
.quest .gem { font-weight: 800; color: var(--violet); font-size: 14px; white-space: nowrap; }
.shop-items { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.shop-items div { background: var(--card-2); border-radius: 14px; padding: 12px; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.shop-items b { display: block; font-size: 14.5px; }
.shop-items span { color: var(--ink-3); font-size: 13px; }

/* widget + live activity mockups */
.widget-row { display: flex; gap: 16px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.w-small { width: 158px; height: 158px; border-radius: 30px; padding: 16px; color: #fff; background: linear-gradient(150deg, #3346E0, #7A3FE4 60%, #E0457B); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; display: flex; flex-direction: column; }
.w-small .flame { width: 26px; height: 26px; }
.w-small b { font: 850 42px/1 var(--font-display); margin-top: auto; letter-spacing: -.03em; }
.w-small small { font-size: 13px; opacity: .9; font-weight: 600; }
.w-small .wm { position: absolute; width: 64px; top: 4px; inset-inline-end: 4px; }
.live { width: min(340px, 100%); border-radius: 26px; background: #121318; color: #fff; padding: 16px 18px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-lg); }
.live .lm { width: 60px; flex: none; margin-block: -6px; }
.live b { display: block; font-size: 15.5px; }
.live .count, .live small { display: block; }
.live .count { font: 800 26px/1.1 ui-monospace, "SF Mono", Menlo, monospace; color: #FF8A5B; letter-spacing: -.02em; direction: ltr; }
.live small { color: #B9BCC8; font-size: 12.5px; }

.notifs { display: grid; gap: 10px; margin-top: 16px; }
.notif { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 20px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line), 0 8px 20px -14px rgba(0, 0, 0, .35); }
.notif img { width: 38px; height: 38px; border-radius: 9px; flex: none; }
.notif .nt { flex: 1; min-width: 0; font-size: 14px; line-height: 1.4; }
.notif .nt b { display: block; font-size: 14.5px; }
.notif .nt span { color: var(--ink-2); }
.notif time { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.js .notif { transition: transform .5s, opacity .5s; }

/* languages marquee */
.langs { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); margin-top: 28px; direction: ltr; }
.langs ul { display: flex; gap: 10px; list-style: none; padding: 0; margin: 0; width: max-content; }
.js .langs ul { animation: marquee 60s linear infinite; }
.langs li { padding: 10px 16px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 650; white-space: nowrap; font-size: 15px; }
@keyframes marquee { to { transform: translateX(-50%); } }
.langs:hover ul { animation-play-state: paused; }
.lang-phones { display: flex; justify-content: center; gap: 3%; align-items: flex-start; }
.lang-phones .phone { width: 31%; max-width: 250px; }
.lang-phones .phone:nth-child(2) { margin-top: 6%; }

/* light/dark compare slider */
.compare-slider { position: relative; width: min(330px, 78%); margin: 0 auto; direction: ltr; }
.compare-slider .phone { width: 100%; }
.compare-slider .dark-layer { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--split, 50%)); }
.compare-slider .handle { position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 3px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .2); transform: translateX(-50%); pointer-events: none; z-index: 4; }
.compare-slider .handle::after { content: "⇆"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #10141C; display: grid; place-items: center; font-size: 18px; box-shadow: var(--shadow); }
.compare-slider input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 5; margin: 0; }
.mode-labels { display: flex; justify-content: space-between; max-width: 330px; margin: 14px auto 0; font-size: 13.5px; font-weight: 650; color: var(--ink-3); direction: ltr; }

/* Persian speakers */
.persian { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.mistakes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mistake { background: var(--card); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); }
.mistake .sym { display: inline-grid; place-items: center; min-width: 52px; height: 52px; padding: 0 10px; border-radius: 14px; background: var(--grad); color: #fff; font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.mistake h3 { font-size: 18px; margin-bottom: 6px; }
.mistake p { font-size: 15px; color: var(--ink-2); margin: 0 0 10px; }
.mistake .pair { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-weight: 700; direction: ltr; justify-content: flex-start; }
html[dir="rtl"] .mistake .pair { justify-content: flex-end; }
.pair .no { color: var(--red); text-decoration: line-through; text-decoration-thickness: 2px; }
.pair .yes { color: var(--green); }
@media (max-width: 900px) { .mistakes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .mistakes { grid-template-columns: 1fr; } }
.split-shots { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: clamp(40px, 6vw, 72px); }
@media (max-width: 860px) { .split-shots { grid-template-columns: 1fr; } }

/* IELTS */
.ielts { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.criteria { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.criteria div { background: var(--card); border-radius: 18px; padding: 16px; box-shadow: var(--shadow); }
.criteria b { display: block; font-size: 15.5px; }
.criteria small { color: var(--ink-3); font-size: 13.5px; }
.criteria .hl { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.metrics div { background: var(--card); border-radius: 16px; padding: 14px 8px; text-align: center; box-shadow: var(--shadow); }
.metrics b { display: block; font-size: 15px; }
.metrics small { color: var(--ink-3); font-size: 12.5px; line-height: 1.3; display: block; }
@media (max-width: 860px) { .ielts { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .metrics { grid-template-columns: 1fr 1fr; } }

/* comparison table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--card); -webkit-overflow-scrolling: touch; }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15.5px; }
.compare th, .compare td { padding: 16px 18px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; }
.compare thead th { font-size: 14px; color: var(--ink-3); font-weight: 700; background: var(--card-2); }
.compare thead th.echo { color: var(--accent); }
.compare tbody th { font-weight: 600; color: var(--ink); }
.compare td { color: var(--ink-2); }
.compare td.echo { background: rgba(51, 70, 224, .05); color: var(--ink); font-weight: 650; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.yes-i, .no-i, .part-i { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; margin-inline-end: 8px; vertical-align: middle; font-size: 13px; font-weight: 900; }
.yes-i { background: var(--ok-bg); color: var(--green); }
.no-i { background: var(--bad-bg); color: var(--red); }
.part-i { background: var(--warn-bg); color: var(--yellow); }
@media (max-width: 640px) {
  .compare { min-width: 0; font-size: 13.5px; line-height: 1.45; }
  .compare th, .compare td { padding: 12px 9px; }
  .compare .yes-i, .compare .no-i, .compare .part-i { display: grid; margin: 0 0 4px; width: 22px; height: 22px; }
}
.table-note { font-size: 13px; color: var(--ink-3); margin-top: 12px; text-align: center; }

/* pricing */
.toggles { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 32px; }
.seg { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); gap: 4px; }
.seg button { font: 700 15px/1 var(--font); border: 0; background: transparent; color: var(--ink-2); padding: 11px 18px; border-radius: 999px; cursor: pointer; min-height: 42px; display: inline-flex; align-items: center; gap: 8px; }
html[lang="fa"] .seg button { font-family: "Vazirmatn", Tahoma, sans-serif; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.seg .save { font-size: 12px; background: var(--ok-bg); color: var(--green); padding: 3px 8px; border-radius: 999px; }
.seg button[aria-pressed="true"] .save { background: rgba(76, 194, 125, .25); color: #7BE3A6; }
@media (prefers-color-scheme: light) { .seg button[aria-pressed="true"] .save { color: #A8F0C6; } }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plans[data-group="family"] { grid-template-columns: minmax(0, 520px); justify-content: center; }
.plan { background: var(--card); border-radius: 26px; padding: 28px 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; position: relative; }
.plan[hidden] { display: none; }
.plan.featured { box-shadow: 0 0 0 2px var(--accent), var(--shadow-lg); }
.plan .ribbon { position: absolute; top: -13px; inset-inline-start: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: 12.5px; font-weight: 800; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
html[dir="rtl"] .plan .ribbon { transform: translateX(50%); }
.plan h3 { font-size: 22px; margin-bottom: 4px; }
.plan .tagline { color: var(--ink-3); font-size: 14.5px; margin-bottom: 18px; min-height: 2.6em; }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; min-height: 52px; }
.price b { font: 850 40px/1.1 var(--font-display); letter-spacing: -.03em; }
html[lang="fa"] .price b { letter-spacing: 0; font-size: 34px; }
.price .per { color: var(--ink-3); font-size: 15px; }
.price .tbd { font: 700 18px/1.3 var(--font); color: var(--ink-2); }
html[lang="fa"] .price .tbd { font-family: "Vazirmatn", Tahoma, sans-serif; }
.price-sub { font-size: 13.5px; color: var(--green); font-weight: 650; min-height: 1.5em; margin-bottom: 16px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.plan li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C8A4A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.plan li.minus::before { background: var(--bg-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 12h10'/%3E%3C/svg%3E") center / 13px no-repeat; }
.plan .btn { margin-top: auto; width: 100%; }
.price-note { text-align: center; font-size: 13.5px; color: var(--ink-3); margin-top: 22px; }
@media (max-width: 920px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* promotions */
.promos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.promo { border-radius: 22px; padding: 22px; position: relative; overflow: hidden; color: #fff; min-height: 180px; display: flex; flex-direction: column; }
.promo[hidden] { display: none; }
.promo h3 { color: #fff; font-size: 19px; margin-bottom: 6px; }
.promo p { font-size: 14.5px; opacity: .95; margin-bottom: 14px; }
.promo a { margin-top: auto; color: #fff; font-weight: 750; font-size: 14.5px; }
.promo .pi { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .2); display: grid; place-items: center; margin-bottom: 14px; }
.promo .pi svg { width: 22px; height: 22px; }
.promo.p1 { background: linear-gradient(140deg, #3346E0, #7A3FE4); }
.promo.p2 { background: linear-gradient(140deg, #E0457B, #F07A3A); }
.promo.p3 { background: linear-gradient(140deg, #148A5B, #1FB37A); }
.promo.p4 { background: linear-gradient(140deg, #7A3FE4, #C04BD6); }
@media (max-width: 980px) { .promos { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .promos { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 700; font-size: 17.5px; position: relative; }
html[dir="rtl"] .faq summary { padding: 20px 22px 20px 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; inset-inline-end: 22px; top: 50%; width: 12px; height: 12px; border-inline-end: 2.5px solid var(--ink-3); border-bottom: 2.5px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .ans { padding: 0 22px 20px; color: var(--ink-2); }
.faq .ans p:last-child { margin: 0; }

/* final CTA */
.final { padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 9vw, 120px); }
.final-card { position: relative; overflow: hidden; border-radius: 36px; background: linear-gradient(130deg, #2B3BD0 0%, #6A36D8 55%, #D2407A 100%); color: #fff; padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.final-card h2 { color: #fff; font-size: clamp(32px, 4.6vw, 56px); font-weight: 850; letter-spacing: -.035em; }
html[lang="fa"] .final-card h2 { letter-spacing: 0; }
.final-card p { font-size: 18px; opacity: .92; max-width: 34em; }
.final-card .mascot-big { position: relative; width: min(280px, 70%); margin-inline: auto; }
.final-card .rings i { border-color: rgba(255, 255, 255, .45); }
.final-card .appstore { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4), 0 12px 30px -10px rgba(0, 0, 0, .5); }
.final-card .btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.final-card .btn-ghost:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.final-card .bg-rings { position: absolute; width: 640px; height: 640px; inset-inline-end: -180px; top: -200px; border-radius: 50%; box-shadow: 0 0 0 60px rgba(255, 255, 255, .05), 0 0 0 130px rgba(255, 255, 255, .04), 0 0 0 200px rgba(255, 255, 255, .03); pointer-events: none; }
@media (max-width: 820px) { .final-card { grid-template-columns: 1fr; text-align: center; } .final-card p { margin-inline: auto; } .final-card .cta-row { justify-content: center; } .final-card .mascot-big { order: -1; width: 160px; } }

/* footer */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 56px 0 32px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-footer h2 { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
html[lang="fa"] .site-footer h2 { letter-spacing: 0; font-size: 15px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.foot-about p { color: var(--ink-3); max-width: 30em; margin-top: 12px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-about { grid-column: 1 / -1; } }

/* ---------- subpages (legal, support, guides) ---------- */
.crumbs { font-size: 14px; color: var(--ink-3); margin: 28px 0 0; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; color: var(--line-2); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.page-hero { padding: clamp(28px, 5vw, 56px) 0 clamp(20px, 3vw, 32px); }
.page-hero h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 850; letter-spacing: -.035em; max-width: 18em; }
html[lang="fa"] .page-hero h1 { letter-spacing: 0; font-weight: 900; }
.page-hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 44em; }
.page-meta { font-size: 14px; color: var(--ink-3); }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 5vw, 64px); align-items: start; padding-bottom: clamp(56px, 8vw, 100px); }
.article.narrow { grid-template-columns: minmax(0, 760px); justify-content: center; }
.prose { font-size: 17.5px; color: var(--ink-2); min-width: 0; }
.prose h2 { font-size: clamp(25px, 2.6vw, 32px); margin-top: 1.8em; font-weight: 800; }
.prose h3 { font-size: 21px; margin-top: 1.5em; }
.prose h2:first-child { margin-top: 0; }
.prose strong { color: var(--ink); }
.prose li { margin-bottom: .45em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.6em; font-size: 16px; background: var(--card); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: start; }
.prose thead th { background: var(--card-2); color: var(--ink); font-size: 14.5px; }
.prose .table-scroll { overflow-x: auto; }
.prose .callout { background: var(--grad-soft); border-radius: 18px; padding: 18px 20px; margin: 1.5em 0; color: var(--ink-2); }
.prose .callout b { color: var(--ink); }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: 14px; color: var(--ink-3); margin-top: 10px; text-align: center; }
.word-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 1em 0 1.5em; padding: 0; list-style: none; }
.word-grid li { background: var(--card); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); margin: 0; direction: ltr; text-align: left; }
.word-grid b { display: block; color: var(--ink); font-size: 17px; }
.word-grid .ipa { color: var(--ink-3); font-size: 15px; }
.aside { position: sticky; top: 92px; display: grid; gap: 16px; }
.aside-card { background: var(--card); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); }
.aside-card h2 { font-size: 18px; margin-bottom: 10px; }
.aside-card p { font-size: 15px; color: var(--ink-2); }
.aside-card .phone { width: 62%; margin: 6px auto 16px; }
.aside-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; }
.aside-card a { text-decoration: none; }
.aside-card a:hover { text-decoration: underline; }
.toc ol { padding-inline-start: 1.1em; margin: 0; font-size: 15px; display: grid; gap: 6px; }
@media (max-width: 920px) { .article { grid-template-columns: 1fr; } .aside { position: static; } }
.guide-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding-bottom: clamp(56px, 8vw, 100px); }
.guide-card { display: block; background: var(--card); border-radius: 22px; padding: 26px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.guide-card .sym { display: inline-grid; place-items: center; min-width: 48px; height: 48px; padding: 0 10px; border-radius: 14px; background: var(--grad); color: #fff; font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.guide-card h2 { font-size: 22px; margin-bottom: 6px; }
.guide-card p { color: var(--ink-2); font-size: 15.5px; margin: 0; }
@media (max-width: 680px) { .guide-cards { grid-template-columns: 1fr; } }
.inline-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; background: var(--card); border-radius: 22px; padding: 22px 24px; box-shadow: var(--shadow); margin: 2em 0; }
.inline-cta p { margin: 0; color: var(--ink); font-weight: 650; max-width: 30em; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 1em 0 2em; }
.contact-grid div { background: var(--card); border-radius: 18px; padding: 20px; box-shadow: var(--shadow); font-size: 15.5px; }
.contact-grid b { display: block; color: var(--ink); margin-bottom: 4px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* 404 */
.nf { text-align: center; padding: clamp(48px, 10vw, 120px) 0; }
.nf .mascot-wrap { width: 180px; margin: 0 auto 16px; }
.nf h1 { font-size: clamp(36px, 6vw, 64px); }
.nf p { color: var(--ink-2); font-size: 18px; }
.nf .cta-row { justify-content: center; margin-top: 24px; }

/* ---------- reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero-stage .phone { animation: rise 1s cubic-bezier(.2, .7, .2, 1) both; }
.js .hero-stage .p-left { animation-delay: .12s; }
.js .hero-stage .p-right { animation-delay: .2s; }
.js .hero-chip { animation: pop .7s cubic-bezier(.2, .9, .3, 1.3) both, bob 6s ease-in-out 1s infinite; }
.js .hero-chip.c1 { animation-delay: .5s, 1.2s; }
.js .hero-chip.c2 { animation-delay: .7s, 2s; }
.js .hero-chip.c3 { animation-delay: .9s, 2.8s; }
@keyframes rise { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }
@keyframes pop { from { opacity: 0; scale: .7; } to { opacity: 1; scale: 1; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .langs ul { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .langs { mask-image: none; -webkit-mask-image: none; }
  .rings i { display: none; }
}

@media print {
  .site-header, .promo-bar, .site-footer, .final, .aside { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- Echo around the page ---------- */
.feature-media .char-peek { position: absolute; width: clamp(84px, 22%, 130px); bottom: -4%; inset-inline-start: -2%; z-index: 3; }
.tile .tile-char { position: absolute; top: 10px; inset-inline-end: 10px; width: 84px; pointer-events: none; }
.tile:has(.tile-char) h3 { padding-inline-end: 70px; }
.promo .promo-char { position: absolute; top: 6px; inset-inline-end: 6px; width: 88px; pointer-events: none; }
.promo:has(.promo-char) h3 { padding-inline-end: 64px; }
.section-head .head-char { width: 110px; margin: 0 auto 6px; }
.inline-cta.has-char { flex-wrap: nowrap; }
.inline-cta .cta-char { width: 88px; flex: none; margin-block: -14px; }
.inline-cta.has-char p { flex: 1; }
.page-hero.has-char { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.page-hero.has-char .hero-char { order: 2; width: clamp(120px, 18vw, 200px); grid-row: 1 / span 3; grid-column: 2; }
.page-hero.has-char > :not(.hero-char) { grid-column: 1; }
@media (max-width: 700px) {
  .inline-cta.has-char { flex-wrap: wrap; }
  .inline-cta .cta-char { width: 72px; margin-block: -6px 0; }
  .page-hero.has-char { grid-template-columns: 1fr; }
  .page-hero.has-char .hero-char { grid-row: auto; grid-column: 1; order: -1; width: 120px; }
}

/* ---------- Meet Echo ---------- */
.meet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.meet-card { margin: 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 18px 20px; text-align: center; position: relative; overflow: hidden; }
.meet-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 62%; background: var(--grad-soft); opacity: .7; z-index: 0; }
.meet-card .echo-char { position: relative; width: min(180px, 86%); margin: 0 auto 6px; z-index: 1; }
.meet-card figcaption { position: relative; z-index: 1; display: grid; gap: 4px; }
.meet-card figcaption b { font-size: 18px; }
.meet-card figcaption span { color: var(--ink-2); font-size: 14.5px; line-height: 1.45; }
.js .meet-card:nth-child(2n) .echo-char.animate img { animation-delay: -1.2s; }
.js .meet-card:nth-child(3n) .echo-char.animate img { animation-delay: -2.5s; }
.js .meet-card:nth-child(4n) .echo-char.animate img { animation-delay: -3.7s; }
@media (max-width: 900px) { .meet-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .meet-card { padding: 12px 12px 16px; } .meet-card figcaption b { font-size: 16px; } .meet-card figcaption span { font-size: 13.5px; } }
