/* SimuCoach website. Colour tokens follow the app (docs/09): same primitives, same light/dark roles.
   Signature: the 18px dot grid of the app sidebar (.dots) with its blue/orange corner glow. */

/* ---------- fonts (bundled, no third-party requests) ---------- */
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter-cyrillic-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Vazirmatn'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/vazirmatn-arabic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }

/* ---------- tokens ---------- */
:root {
  color-scheme: light;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #f0f3f7;
  --surface-3: #e7ebf1;
  --text: #17233a;
  --text-muted: #536073;
  --text-subtle: #636f81;
  --border-subtle: #e9edf2;
  --border: #dfe4eb;
  --border-strong: #b9c3d0;
  --primary: #1f5fbf;
  --primary-hover: #1a51a3;
  --primary-soft: #eaf1fc;
  --on-primary: #ffffff;
  --focus-halo: rgb(31 95 191 / 0.22);
  --success: #0f7552;
  --success-soft: #e3f4ec;
  --danger: #c2352a;
  --danger-soft: #fdeceb;
  --warning: #a65605;
  --accent: #d06c0a;
  --accent-soft: #fdf1e3;
  --brand-navy: #14304f;
  --brand-orange: #f08a24;
  --hero: radial-gradient(120% 140% at 100% 0%, #2d74d6 0%, transparent 55%),
    radial-gradient(90% 120% at 0% 100%, #f08a24 -40%, transparent 45%),
    linear-gradient(135deg, #10284a 0%, #1a4680 60%, #1f5fbf 100%);
  --on-hero: #ffffff;
  --on-hero-muted: #d3def0;
  --hero-accent: #f5a04a;
  --footer: #0e2340;
  --glass: rgb(255 255 255 / 0.82);
  --shadow-xs: 0 1px 2px rgb(16 24 40 / 0.06);
  --shadow-sm: 0 1px 2px rgb(16 24 40 / 0.05), 0 1px 3px rgb(16 24 40 / 0.08);
  --shadow-md: 0 2px 4px -1px rgb(16 24 40 / 0.06), 0 6px 12px -2px rgb(16 24 40 / 0.08);
  --shadow-lg: 0 4px 8px -2px rgb(16 24 40 / 0.06), 0 12px 24px -4px rgb(16 24 40 / 0.1);
  --shadow-xl: 0 8px 16px -4px rgb(16 24 40 / 0.08), 0 24px 48px -12px rgb(16 24 40 / 0.18);
  --dot-ink: color-mix(in srgb, var(--text) 20%, transparent);
  --glow-a: color-mix(in srgb, var(--primary) 10%, transparent);
  --glow-b: color-mix(in srgb, var(--accent) 9%, transparent);

  --font: 'Inter', 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Dark: follows the system unless the visitor picked a theme (data-theme on <html>). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #12161c; --surface: #191e26; --surface-2: #1f252e; --surface-3: #262d38;
    --text: #d8dde5; --text-muted: #9ca5b3; --text-subtle: #7f8999;
    --border-subtle: #232932; --border: #2a313b; --border-strong: #424b59;
    --primary: #7fabe6; --primary-hover: #99bdee; --primary-soft: #1c2940; --on-primary: #0e1521;
    --focus-halo: rgb(127 171 230 / 0.28);
    --success: #68c39f; --success-soft: #17291f; --danger: #e8877f; --danger-soft: #33201f;
    --warning: #e2a35f; --accent: #e9975a; --accent-soft: #2e2218;
    --hero: radial-gradient(120% 140% at 100% 0%, #1d4a8a 0%, transparent 55%),
      radial-gradient(90% 120% at 0% 100%, #b5641a -40%, transparent 45%),
      linear-gradient(135deg, #0b1a30 0%, #10294d 60%, #163a6e 100%);
    --footer: #0b111a; --glass: rgb(18 22 28 / 0.82);
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4); --shadow-md: 0 4px 12px rgb(0 0 0 / 0.35);
    --shadow-lg: 0 10px 24px rgb(0 0 0 / 0.4); --shadow-xl: 0 24px 48px rgb(0 0 0 / 0.5);
    --dot-ink: color-mix(in srgb, var(--text) 10%, transparent);
    --glow-a: transparent; --glow-b: transparent;
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #12161c; --surface: #191e26; --surface-2: #1f252e; --surface-3: #262d38;
  --text: #d8dde5; --text-muted: #9ca5b3; --text-subtle: #7f8999;
  --border-subtle: #232932; --border: #2a313b; --border-strong: #424b59;
  --primary: #7fabe6; --primary-hover: #99bdee; --primary-soft: #1c2940; --on-primary: #0e1521;
  --focus-halo: rgb(127 171 230 / 0.28);
  --success: #68c39f; --success-soft: #17291f; --danger: #e8877f; --danger-soft: #33201f;
  --warning: #e2a35f; --accent: #e9975a; --accent-soft: #2e2218;
  --hero: radial-gradient(120% 140% at 100% 0%, #1d4a8a 0%, transparent 55%),
    radial-gradient(90% 120% at 0% 100%, #b5641a -40%, transparent 45%),
    linear-gradient(135deg, #0b1a30 0%, #10294d 60%, #163a6e 100%);
  --footer: #0b111a; --glass: rgb(18 22 28 / 0.82);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4); --shadow-md: 0 4px 12px rgb(0 0 0 / 0.35);
  --shadow-lg: 0 10px 24px rgb(0 0 0 / 0.4); --shadow-xl: 0 24px 48px rgb(0 0 0 / 0.5);
  --dot-ink: color-mix(in srgb, var(--text) 10%, transparent);
  --glow-a: transparent; --glow-b: transparent;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.65 var(--font);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html[lang='fa'] { --font: 'Vazirmatn', 'Inter', system-ui, Tahoma, sans-serif; }
html[lang='fa'] body { line-height: 1.85; font-feature-settings: normal; }
html[lang='fa'] :is(h1, h2, h3) { letter-spacing: 0 !important; line-height: 1.45; }
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
h1, h2, h3 { color: var(--text); margin: 0; font-weight: 750; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--primary) 25%, transparent); }
[hidden] { display: none !important; }
.i { width: 1.25em; height: 1.25em; flex: none; }
[dir='rtl'] .flip { transform: scaleX(-1); }
.only-dark { display: none !important; }
:root[data-theme='dark'] .only-light { display: none !important; }
:root[data-theme='dark'] .only-dark { display: block !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .only-light { display: none !important; }
  :root:not([data-theme='light']) .only-dark { display: block !important; }
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); position: relative; }
.wrap.narrow { max-width: 860px; }
.center { text-align: center; }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--primary); color: var(--on-primary);
  padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; text-decoration: none; transition: top 0.2s; }
.skip:focus { top: 12px; color: var(--on-primary); }
main:focus { outline: none; }

/* ---------- the signature: dot grid + glow ---------- */
.dots {
  --dot: color-mix(in srgb, var(--on-hero) 14%, transparent);
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px);
  background-size: 18px 18px;
}
.dots.dots-ink { --dot: var(--dot-ink); }
.sig-bg {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(120% 60% at 0% 0%, var(--glow-a), transparent 70%),
    radial-gradient(80% 50% at 100% 100%, var(--glow-b), transparent 70%);
}
.sig-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(var(--dot-ink) 1px, transparent 1.2px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.sig-section { position: relative; isolation: isolate; }
.sig-section > .sig-bg { z-index: -1; }
.sig-section > .sig-bg::after { mask-image: radial-gradient(70% 60% at 50% 0%, black, transparent 80%); -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, black, transparent 80%); }
.sig-mark { display: inline-grid; grid-template-columns: repeat(3, 4px); gap: 3px; flex: none; }
.sig-mark i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.35; }
.sig-mark i:nth-child(1), .sig-mark i:nth-child(5), .sig-mark i:nth-child(9) { opacity: 1; }
.sig-mark i:nth-child(3) { background: var(--brand-orange); opacity: 1; }
.hero-surface { background: var(--hero); color: var(--on-hero); position: relative; isolation: isolate; overflow: hidden; }
.hero-surface > .dots { z-index: -1; }
.hero-surface :is(h1, h2, h3) { color: var(--on-hero); }

/* ---------- buttons ---------- */
.btn {
  --b: var(--primary); --c: var(--on-primary);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 48px; padding: 0.7em 1.35em; border-radius: 999px;
  background: var(--b); color: var(--c); border: 1.5px solid transparent;
  font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: transform 0.15s var(--ease), box-shadow 0.2s, background-color 0.2s, border-color 0.2s;
}
.btn .i { width: 1.1em; height: 1.1em; transition: transform 0.2s var(--ease); }
.btn:hover { transform: translateY(-1px); color: var(--c); }
.btn:hover .i:last-child { transform: translateX(3px); }
[dir='rtl'] .btn:hover .i.flip:last-child { transform: scaleX(-1) translateX(3px); }
.btn:active { transform: translateY(0); }
.btn-primary { box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--primary) 70%, transparent); }
.btn-primary:hover { --b: var(--primary-hover); }
.btn-secondary { --b: var(--surface); --c: var(--text); border-color: var(--border); box-shadow: var(--shadow-xs); }
.btn-secondary:hover { border-color: var(--border-strong); }
.btn-light { --b: #ffffff; --c: #10284a; box-shadow: 0 10px 24px -10px rgb(0 0 0 / 0.5); }
.btn-light:hover { --b: #fff4e8; }
.btn-ghost-light { --b: rgb(255 255 255 / 0.08); --c: #fff; border-color: rgb(255 255 255 / 0.35); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { --b: rgb(255 255 255 / 0.16); }
.btn-sm { min-height: 40px; padding: 0.45em 1.05em; font-size: 0.9375rem; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 42px; height: 42px; padding: 0 10px; border-radius: 999px;
  background: transparent; color: var(--text-muted); border: 1px solid transparent;
  font: inherit; font-size: 0.8125rem; font-weight: 700; cursor: pointer; list-style: none;
}
.icon-btn::-webkit-details-marker { display: none; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.more { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 650; text-decoration: none; }
.more .i { width: 1.05em; height: 1.05em; transition: transform 0.2s var(--ease); }
.more:hover .i { transform: translateX(3px); }
[dir='rtl'] .more:hover .i.flip { transform: scaleX(-1) translateX(3px); }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: var(--glass); backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5); border-bottom: 1px solid transparent; transition: border-color 0.2s, box-shadow 0.2s; }
.hdr.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.hdr-in { display: flex; align-items: center; gap: 20px; height: 72px; }
.logo { display: flex; align-items: center; flex: none; }
.logo .wm { height: 32px; width: auto; }
.nav { display: flex; gap: 2px; margin-inline-start: auto; }
.nav a { padding: 8px 12px; border-radius: 999px; color: var(--text-muted); font-weight: 560; font-size: 0.9375rem; text-decoration: none; white-space: nowrap; transition: color 0.15s, background-color 0.15s; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current='page'] { color: var(--primary); background: var(--primary-soft); }
.hdr-tools { display: flex; align-items: center; gap: 4px; }
.theme-btn .t-sun { display: none; }
:root[data-theme='dark'] .theme-btn .t-sun { display: block; }
:root[data-theme='dark'] .theme-btn .t-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-btn .t-sun { display: block; }
  :root:not([data-theme='light']) .theme-btn .t-moon { display: none; }
}
.hdr-cta { margin-inline-start: 6px; }
.menu-btn { display: none; }
.menu-btn .m-close { display: none; }
.menu-btn[aria-expanded='true'] .m-open { display: none; }
.menu-btn[aria-expanded='true'] .m-close { display: block; }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; }
.lang-menu[open] summary { background: var(--surface-2); color: var(--text); }
.lang-list { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 210px; list-style: none; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-xl); z-index: 60; }
.lang-list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); color: var(--text); text-decoration: none; font-weight: 550; }
.lang-list a:hover { background: var(--surface-2); }
.lang-list a[aria-current='true'] { background: var(--primary-soft); color: var(--primary); }
.lc { font-size: 0.75rem; font-weight: 750; letter-spacing: 0.04em; font-family: 'Inter', sans-serif; }
.lang-list .lc { width: 28px; color: var(--text-subtle); }
.mnav { border-top: 1px solid var(--border); background: var(--surface); max-height: calc(100dvh - 72px); overflow-y: auto; }
.mnav nav { display: flex; flex-direction: column; padding-block: 12px 24px; }
.mnav a:not(.btn) { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--border-subtle);
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 1.0625rem; }
.mnav a[aria-current='page'] { color: var(--primary); }
.mnav a .i { color: var(--text-subtle); width: 1em; }
.mnav-cta { padding-top: 20px; }
.mnav-cta .btn { width: 100%; }
@media (max-width: 1280px) { .nav a { padding-inline: 9px; font-size: 0.875rem; } }
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .hdr-tools { margin-inline-start: auto; }
}
@media (max-width: 560px) {
  .hdr-cta { display: none; }
  .hdr-in { height: 64px; gap: 8px; }
  .logo .wm { height: 28px; }
  .lang-btn .lc { display: none; }
}

/* ---------- sections ---------- */
.sec { padding-block: clamp(64px, 9vw, 112px); position: relative; }
.sec.tight { padding-block: clamp(40px, 6vw, 72px); }
.sec.alt { background: var(--surface); border-block: 1px solid var(--border-subtle); }
.sec-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .kicker { justify-content: center; }
.kicker { display: flex; align-items: center; gap: 10px; color: var(--primary); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
html[lang='fa'] .kicker { letter-spacing: 0; font-size: 0.9375rem; }
.kicker.on-dark { color: var(--hero-accent); }
.sec-title { font-size: clamp(1.75rem, 3.6vw, 2.75rem); }
.sec-title.sm { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 20px; }
.sec-lead { margin-top: 16px; font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); color: var(--text-muted); }
.sec-more { margin-top: 40px; text-align: center; }
.sec-more.start { text-align: start; margin-top: 28px; }
.split-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 48px); }
.split-head .sec-head { margin-bottom: 0; }
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.g3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); position: relative; }
.sec.alt .card { background: var(--bg); }
.sec.alt .card.hero-surface { background: var(--hero); }
.fcard { padding: 28px; display: flex; flex-direction: column; gap: 12px; transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s; }
.fcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); }
.fcard h3 { font-size: 1.1875rem; }
.fcard p { color: var(--text-muted); font-size: 0.98rem; }
.fcard .checks { margin-top: 6px; }
.ficon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: var(--primary); background: var(--primary-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 14%, transparent); }
.ficon .i { width: 24px; height: 24px; }
.ficon.big { width: 60px; height: 60px; border-radius: 18px; }
.ficon.big .i { width: 30px; height: 30px; }
.fcard:nth-child(4n + 2) .ficon { color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 16%, transparent); }
.fcard:nth-child(4n + 3) .ficon { color: var(--success); background: var(--success-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--success) 16%, transparent); }
.card-action { margin-top: auto; padding-top: 8px; }
.card-action .btn { white-space: normal; word-break: break-all; }
.checks { list-style: none; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .i { color: var(--success); width: 1.25em; height: 1.25em; margin-top: 0.2em; }
.fcard .checks li { font-size: 0.95rem; color: var(--text); }
.tag { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-muted); font-size: 0.8125rem; font-weight: 600; }
.sec.alt .tag { background: var(--surface-3); }

/* ---------- home hero ---------- */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(96px, 11vw, 150px); }
.hero-glow { position: absolute; inset: auto -10% -40% auto; width: 60%; aspect-ratio: 1; z-index: -1;
  background: radial-gradient(circle, rgb(240 138 36 / 0.22), transparent 60%); filter: blur(10px); }
[dir='rtl'] .hero-glow { inset: auto auto -40% -10%; }
.hero > .dots { mask-image: radial-gradient(90% 90% at 30% 40%, black, transparent 90%); -webkit-mask-image: radial-gradient(90% 90% at 30% 40%, black, transparent 90%); }
.hero-in { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: 999px;
  background: rgb(255 255 255 / 0.1); border: 1px solid rgb(255 255 255 / 0.2); color: #fff; font-size: 0.875rem; font-weight: 600; margin-bottom: 24px; }
.eyebrow .sig-mark i:nth-child(3) { background: var(--hero-accent); }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -0.035em; line-height: 1.04; }
html[lang='fa'] .hero h1 { line-height: 1.35; font-size: clamp(2.2rem, 5.2vw, 3.9rem); }
html[lang='uk'] .hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
.hero h1 em, .phero-title em, .sec-title em { font-style: normal; position: relative; white-space: nowrap; }
.hero h1 em { color: var(--hero-accent); }
.hero h1 em::after { content: ''; position: absolute; inset-inline: 0; bottom: -0.04em; height: 0.12em; border-radius: 99px;
  background: linear-gradient(90deg, var(--hero-accent), transparent); opacity: 0.6; }
[dir='rtl'] .hero h1 em::after { background: linear-gradient(-90deg, var(--hero-accent), transparent); }
.hero-lead { margin-top: 24px; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--on-hero-muted); max-width: 600px; }
.hero-actions, .cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cta-actions.center { justify-content: center; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 32px; color: var(--on-hero-muted); font-size: 0.9375rem; }
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust .i { color: #7fe0b4; width: 1.1em; height: 1.1em; }
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero h1 em { white-space: normal; }
}

/* phone mockup */
.hero-art { position: relative; display: flex; justify-content: center; }
.mock { position: relative; width: min(100%, 360px); }
.phone { position: relative; background: var(--bg); color: var(--text); border-radius: 40px; padding: 16px 14px 14px;
  border: 8px solid #0b1a30; box-shadow: 0 40px 80px -24px rgb(0 0 0 / 0.55), 0 0 0 1px rgb(255 255 255 / 0.08);
  transform: rotate(-2deg); animation: phoneIn 0.9s var(--ease) both; }
[dir='rtl'] .phone { transform: rotate(2deg); }
.phone-notch { width: 90px; height: 22px; background: #0b1a30; border-radius: 0 0 14px 14px; margin: -16px auto 10px; }
.phone-bar { display: flex; gap: 8px; align-items: center; }
.chip-sm { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 700; color: var(--primary); background: var(--primary-soft); padding: 5px 10px; border-radius: 99px; }
.chip-sm .i { width: 14px; height: 14px; }
.lvl { font-size: 0.75rem; font-weight: 800; color: var(--accent); background: var(--accent-soft); padding: 5px 10px; border-radius: 99px; font-family: 'Inter', sans-serif; }
.phone-title { font-weight: 750; font-size: 1.0625rem; margin: 12px 4px 12px; }
.chat { display: flex; flex-direction: column; gap: 10px; min-height: 290px; }
.msg { display: flex; gap: 8px; align-items: flex-end; animation: msgIn 0.5s var(--ease) both; }
.msg:nth-child(2) { animation-delay: 0.5s; } .tip { animation: msgIn 0.5s var(--ease) 1s both; } .msg:nth-child(4) { animation-delay: 1.5s; }
.msg.me { justify-content: flex-end; }
.av { width: 30px; height: 30px; flex: none; }
.av .pip { width: 30px; height: 30px; }
.av .pip-aura, .av .pip-shadow { display: none; }
.bubble { padding: 10px 14px; border-radius: 18px; font-size: 0.9375rem; line-height: 1.45; max-width: 82%; display: flex; gap: 8px; align-items: center; }
.them .bubble { background: var(--surface); border: 1px solid var(--border); border-end-start-radius: 6px; }
.me .bubble { background: var(--primary); color: var(--on-primary); border-end-end-radius: 6px; }
.play { color: var(--primary); display: inline-flex; }
.play .i { width: 18px; height: 18px; }
.tip { display: flex; gap: 8px; align-items: flex-start; font-size: 0.8125rem; color: var(--success); background: var(--success-soft); padding: 9px 12px; border-radius: 14px; }
.tip .i { width: 16px; height: 16px; margin-top: 2px; }
.typing { gap: 4px; padding: 14px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-subtle); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.2s; } .typing i:nth-child(3) { animation-delay: 0.4s; }
.composer { display: flex; align-items: center; gap: 8px; margin-top: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 99px; padding: 6px; }
.composer .mic, .composer .send { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.composer .mic { background: var(--danger-soft); color: var(--danger); animation: pulse 2s infinite; }
.composer .send { background: var(--primary); color: var(--on-primary); }
.composer .i { width: 18px; height: 18px; }
.composer .field { flex: 1; color: var(--text-subtle); font-size: 0.8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.float { position: absolute; background: var(--surface); color: var(--text); border-radius: 16px; box-shadow: var(--shadow-xl); border: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-weight: 700; font-size: 0.875rem; animation: bob 6s ease-in-out infinite; }
.float .i { color: var(--accent); }
.f-streak { bottom: 30%; inset-inline-start: -56px; }
.f-img { bottom: -26px; inset-inline-end: 28px; animation-delay: -2s; padding: 8px; gap: 6px; }
.f-img img { width: 34px; height: 34px; padding: 4px; background: var(--surface-2); border-radius: 10px; }
.f-pip { top: -46px; inset-inline-end: -22px; background: none; border: 0; box-shadow: none; padding: 0; animation: none; }
.f-pip .pip { width: 112px; height: 112px; }
@media (max-width: 560px) { .f-streak { inset-inline-start: -6px; top: auto; bottom: -18px; } .f-img { display: none; } .f-pip { inset-inline-end: -6px; } }

/* ---------- stats ---------- */
.stats-wrap { margin-top: clamp(-90px, -7vw, -60px); position: relative; z-index: 2; }
.stats { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-xl); overflow: hidden; }
.stats li { padding: 28px 24px; display: flex; flex-direction: column; gap: 6px; border-inline-start: 1px solid var(--border-subtle); }
.stats li:first-child { border-inline-start: 0; }
.stats strong { font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  background: linear-gradient(135deg, var(--primary), #2d74d6 50%, var(--brand-orange)); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; }
.stats span { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.4; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .stats li:nth-child(3) { border-inline-start: 0; } .stats li:nth-child(n + 3) { border-top: 1px solid var(--border-subtle); } }

/* ---------- steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 20px; counter-reset: s; position: relative; }
.step { position: relative; padding: 28px 24px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); }
.sec:not(.alt) .step { background: var(--surface); }
.step h3 { font-size: 1.125rem; margin: 18px 0 8px; }
.step p { color: var(--text-muted); font-size: 0.97rem; }
.step-n { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 1.125rem;
  color: #fff; background: linear-gradient(135deg, #1f5fbf, #2d74d6); box-shadow: 0 8px 16px -8px #1f5fbf; flex: none; }
.step:nth-child(even) .step-n, .mini-steps li:nth-child(even) .step-n { background: linear-gradient(135deg, #d06c0a, #f08a24); box-shadow: 0 8px 16px -8px #d06c0a; }
.step:not(:last-child)::after { content: ''; position: absolute; top: 49px; inset-inline-start: calc(24px + 44px + 8px); inset-inline-end: -14px; height: 2px;
  background-image: radial-gradient(var(--border-strong) 1px, transparent 1.4px); background-size: 6px 2px; }
@media (max-width: 1000px) { .step::after { display: none; } }

/* ---------- scenarios ---------- */
.scard { padding: 24px; display: flex; flex-direction: column; gap: 10px; transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.scard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.scard-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.scard-img { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-2);
  background-image: radial-gradient(var(--dot-ink) 1px, transparent 1.2px); background-size: 9px 9px; }
.sec.alt .scard-img { background-color: var(--surface); }
.scard-img img { width: 38px; height: 38px; }
.scard h3 { font-size: 1.125rem; }
.scard p { color: var(--text-muted); font-size: 0.96rem; }
.say { margin-top: auto !important; padding-top: 12px; border-top: 1px dashed var(--border); display: flex; flex-direction: column; gap: 2px; }
.say-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-subtle); }
html[lang='fa'] .say-label { letter-spacing: 0; font-size: 0.8125rem; }
.say q { quotes: none; font-weight: 650; color: var(--primary); font-size: 1rem; }
[dir='rtl'] .say q { align-self: flex-start; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font: inherit; font-weight: 600; font-size: 0.9375rem; cursor: pointer; transition: all 0.15s; }
.chip:hover { border-color: var(--border-strong); }
.chip[aria-pressed='true'] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.chip .count { font-size: 0.75rem; padding: 2px 8px; border-radius: 99px; background: var(--surface-3); color: var(--text-muted); }
.chip[aria-pressed='true'] .count { background: rgb(255 255 255 / 0.22); color: inherit; }
.scen-grid .scard.out { display: none; }
.mini-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mini-steps li { display: flex; gap: 16px; align-items: flex-start; }
.mini-steps h2 { font-size: 1.125rem; margin-bottom: 4px; }
.mini-steps p { color: var(--text-muted); font-size: 0.97rem; }
@media (max-width: 800px) { .mini-steps { grid-template-columns: 1fr; } }

/* ---------- languages ---------- */
.lcard { padding: 28px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.lcard::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--primary); }
.lcard.lc-uk::before { background: linear-gradient(90deg, #2d74d6 50%, #f5c400 50%); }
.lcard.lc-fa::before { background: var(--accent); }
.lcard.lc-fi::before { background: linear-gradient(90deg, #fff 30%, #1f5fbf 30% 45%, #fff 45%); border-bottom: 1px solid var(--border); }
.lcard-native { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; color: var(--primary); line-height: 1.3; }
.lcard-native[lang='fa'] { font-family: 'Vazirmatn', sans-serif; }
.lcard h3 { font-size: 1rem; color: var(--text-muted); font-weight: 650; }
.lcard p { color: var(--text-muted); font-size: 0.96rem; }
.lcard .more { margin-top: auto; padding-top: 6px; }

/* ---------- Pip ---------- */
.pip { width: 100%; height: auto; overflow: visible; }
.pip .pip-eyes { transform-box: fill-box; transform-origin: center; animation: pipBlink 5s infinite; }
.pip.live .pip-char { animation: pipFloat 4.5s ease-in-out infinite; }
.pip.live .pip-shadow { transform-box: fill-box; transform-origin: center; animation: pipShadow 4.5s ease-in-out infinite; }
.pip .pip-antenna { transform-box: fill-box; transform-origin: bottom center; animation: pipAntenna 3s ease-in-out infinite; }
.pip-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.pip-stage { position: relative; aspect-ratio: 1; max-width: 440px; width: 100%; margin-inline: auto; display: grid; place-items: center; }
.pip-orbit { position: absolute; inset: 4%; border-radius: 50%; overflow: hidden; background: radial-gradient(circle, var(--primary-soft), transparent 70%);
  border: 1px dashed color-mix(in srgb, var(--primary) 30%, transparent); }
.pip-orbit .dots { mask-image: radial-gradient(circle, black 30%, transparent 72%); -webkit-mask-image: radial-gradient(circle, black 30%, transparent 72%); }
.pip-stage .pip { width: 78%; position: relative; }
.pip-split .checks { margin-top: 24px; font-weight: 550; }
@media (max-width: 860px) { .pip-split { grid-template-columns: 1fr; } .pip-stage { max-width: 320px; } }

/* ---------- banner (YKI) ---------- */
.banner { border-radius: var(--r-xl); padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; box-shadow: var(--shadow-xl); }
.banner > .dots { mask-image: linear-gradient(to left, black, transparent 70%); -webkit-mask-image: linear-gradient(to left, black, transparent 70%); }
.banner h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.banner-text > p:not(.kicker) { margin-top: 14px; color: var(--on-hero-muted); font-size: 1.0625rem; max-width: 560px; }
.banner-levels { display: grid; gap: 12px; }
.lvl-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; padding: 18px 20px; border-radius: var(--r);
  background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.18); backdrop-filter: blur(6px); }
.lvl-card span { font-weight: 700; font-size: 1.125rem; }
.lvl-card strong { grid-row: span 2; font-size: 1.5rem; color: var(--hero-accent); font-family: 'Inter', sans-serif; }
.lvl-card small { color: var(--on-hero-muted); }
@media (max-width: 800px) { .banner { grid-template-columns: 1fr; } }

/* ---------- article cards ---------- */
.acard { overflow: hidden; transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.acard:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.acard-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.acard-link:hover { color: inherit; }
.acard-art { position: relative; height: 150px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 60%),
    radial-gradient(100% 90% at 100% 100%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%), var(--surface-2); }
.acard-icon { position: relative; width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--surface); color: var(--primary); box-shadow: var(--shadow-lg); }
.acard-icon .i { width: 30px; height: 30px; }
.acard-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.acard h3 { font-size: 1.1875rem; line-height: 1.3; }
.acard-body > p:not(.meta) { color: var(--text-muted); font-size: 0.96rem; }
.acard .more { margin-top: auto; padding-top: 6px; color: var(--primary); }
.meta { display: flex; align-items: center; gap: 6px; color: var(--text-subtle); font-size: 0.8125rem; font-weight: 600; }
.meta .i { width: 15px; height: 15px; }
.guides-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.acard.big { grid-column: 1 / -1; }
.acard.big .acard-link { flex-direction: row; }
.acard.big .acard-art { height: auto; min-height: 260px; flex: 0 0 42%; }
.acard.big h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
@media (max-width: 760px) { .guides-grid { grid-template-columns: 1fr; } .acard.big .acard-link { flex-direction: column; } .acard.big .acard-art { min-height: 160px; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); transition: border-color 0.2s, box-shadow 0.2s; }
.sec.alt .faq-item { background: var(--bg); }
.faq-item[open] { border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); box-shadow: var(--shadow-md); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; font-weight: 650; font-size: 1.03rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-i { color: var(--primary); transition: transform 0.25s var(--ease); }
.faq-item[open] .faq-i { transform: rotate(45deg); }
.faq-a { padding: 0 20px 20px; color: var(--text-muted); }
.faq-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.faq-nav { position: sticky; top: 96px; display: grid; gap: 20px; }
.faq-nav ol { list-style: none; display: grid; gap: 4px; border-inline-start: 2px solid var(--border); }
.faq-nav a { display: block; padding: 6px 16px; color: var(--text-muted); text-decoration: none; font-weight: 600; margin-inline-start: -2px; border-inline-start: 2px solid transparent; }
.faq-nav a:hover { color: var(--primary); border-color: var(--primary); }
.faq-group + .faq-group { margin-top: 48px; }
.faq-group h2 { font-size: 1.5rem; margin-bottom: 18px; }
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; } .faq-nav { position: static; } }
.privacy-card { padding: clamp(28px, 4vw, 44px); background-image: radial-gradient(var(--dot-ink) 1px, transparent 1.2px) !important; background-size: 18px 18px !important;
  background-color: var(--bg) !important; }
.privacy-card .ficon { color: var(--success); background: var(--success-soft); margin-bottom: 20px; }
.privacy-card .sec-head { margin-bottom: 20px; }

/* ---------- page hero ---------- */
.phero { position: relative; padding-block: clamp(40px, 6vw, 80px) clamp(48px, 7vw, 96px); border-bottom: 1px solid var(--border-subtle); isolation: isolate; overflow: hidden; }
.phero > .sig-bg { z-index: -1; }
.phero-in.with-aside { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .phero-in.with-aside { grid-template-columns: 1fr; } }
.phero-text { max-width: 780px; }
.phero-title { font-size: clamp(2.2rem, 5vw, 3.75rem); letter-spacing: -0.03em; line-height: 1.08; }
html[lang='fa'] .phero-title { line-height: 1.4; }
.phero-title em, .sec-title em { color: var(--primary); }
.phero-title em::after { content: ''; position: absolute; inset-inline: 0; bottom: 0.02em; height: 0.28em; z-index: -1; border-radius: 4px;
  background: color-mix(in srgb, var(--brand-orange) 28%, transparent); }
@media (max-width: 600px) { .phero-title em { white-space: normal; } }
.phero-lead { margin-top: 20px; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--text-muted); max-width: 680px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 22px; font-size: 0.875rem; color: var(--text-subtle); }
.crumbs li { display: flex; align-items: center; gap: 6px; }
.crumbs a { color: var(--text-muted); text-decoration: none; font-weight: 550; }
.crumbs a:hover { color: var(--primary); }
.crumbs .sep { width: 14px; height: 14px; }
.crumbs [aria-current] { color: var(--text); font-weight: 600; max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* how: day card + timeline */
.day { padding: 28px; }
.day h2 { display: flex; align-items: center; gap: 10px; font-size: 1.125rem; margin-bottom: 16px; }
.day h2 .i { color: var(--accent); }
.day ol { list-style: none; display: grid; gap: 4px; }
.day li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 12px 0; border-top: 1px dashed var(--border); font-size: 0.97rem; }
.day li:first-child { border-top: 0; }
.day .t { font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
.timeline { list-style: none; display: grid; gap: 0; max-width: 860px; margin-inline: auto; position: relative; }
.timeline::before { content: ''; position: absolute; top: 24px; bottom: 24px; inset-inline-start: 23px; width: 2px;
  background-image: radial-gradient(var(--border-strong) 1.2px, transparent 1.4px); background-size: 2px 8px; }
.timeline li { display: grid; grid-template-columns: 48px 1fr; gap: 24px; padding-block: 18px; position: relative; }
.tl-n { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--surface); border: 2px solid var(--primary); color: var(--primary); box-shadow: 0 0 0 6px var(--bg); }
.timeline li:nth-child(even) .tl-n { border-color: var(--accent); color: var(--accent); }
.timeline h2 { font-size: 1.3rem; margin: 8px 0 6px; }
.timeline p { color: var(--text-muted); }

/* features */
.flist { display: grid; gap: clamp(24px, 4vw, 40px); }
.frow { display: grid; grid-template-columns: 340px 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(20px, 3vw, 32px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-sm); }
.frow.rev { grid-template-columns: 1fr 340px; }
.frow.rev .frow-art { order: 2; }
.frow-art { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(100% 100% at 0% 0%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 60%),
    radial-gradient(100% 100% at 100% 100%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%), var(--surface-2); }
.frow-icon { position: relative; width: 88px; height: 88px; border-radius: 26px; display: grid; place-items: center; background: var(--surface); color: var(--primary); box-shadow: var(--shadow-xl); }
.frow-icon .i { width: 42px; height: 42px; }
.frow:nth-child(3n + 2) .frow-icon { color: var(--accent); }
.frow:nth-child(3n) .frow-icon { color: var(--success); }
.frow-n { position: absolute; top: 14px; inset-inline-start: 18px; font-weight: 800; font-size: 0.875rem; color: var(--text-subtle); letter-spacing: 0.08em; }
.frow-text h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
.frow-text > p { margin-top: 12px; color: var(--text-muted); font-size: 1.0625rem; }
.frow-text .checks { margin-top: 20px; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
@media (max-width: 860px) { .frow, .frow.rev { grid-template-columns: 1fr; } .frow.rev .frow-art { order: 0; } .frow-art { aspect-ratio: 16 / 7; } .frow-text .checks { grid-template-columns: 1fr; } }
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--bg); box-shadow: var(--shadow-md); }
.compare { width: 100%; border-collapse: collapse; min-width: 520px; }
.compare th, .compare td { padding: 16px 20px; text-align: start; border-bottom: 1px solid var(--border-subtle); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { font-size: 0.875rem; color: var(--text-muted); font-weight: 700; }
.compare thead th.us { color: var(--primary); }
.compare tbody th { color: var(--text-subtle); font-weight: 700; width: 48px; }
.compare td { color: var(--text-muted); }
.compare td span { vertical-align: middle; }
.compare td .i { display: inline-block; vertical-align: middle; margin-inline-end: 8px; width: 18px; height: 18px; }
.compare .no { color: var(--text-subtle); }
.compare .yes { color: var(--success); }
.compare td.us { color: var(--text); font-weight: 650; background: color-mix(in srgb, var(--primary) 5%, transparent); }

/* YKI */
.yki-badge { padding: 28px; display: grid; gap: 12px; }
.yki-badge .ficon { color: var(--accent); background: var(--accent-soft); margin-bottom: 6px; }
.yk-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: var(--r); background: var(--surface-2); font-weight: 650; }
.yk-row strong { color: var(--primary); font-family: 'Inter', sans-serif; }
.yk-row.muted { opacity: 0.55; }
.levels { display: grid; gap: 14px; }
.level { padding: 22px 24px; }
.level h3 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 1.25rem; margin-top: 14px; }
.level h3 small { font-size: 0.9rem; color: var(--text-muted); font-weight: 600; }
.level p { color: var(--text-muted); margin-top: 4px; }
.level.muted { opacity: 0.65; }
.level-bar { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.level-bar .w1 { width: 33%; } .level-bar .w2 { width: 66%; } .level-bar .w3 { width: 100%; }
.level-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1f5fbf, #f08a24); }
[dir='rtl'] .level-bar span { margin-inline-start: 0; background: linear-gradient(-90deg, #1f5fbf, #f08a24); }
.note { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; padding: 16px 18px; border-radius: var(--r); background: var(--accent-soft); color: var(--text); font-size: 0.95rem; }
.note .i { color: var(--accent); margin-top: 3px; }
.note.wide { margin-top: 32px; background: var(--primary-soft); }
.note.wide .i { color: var(--primary); }
.callout { display: flex; gap: 18px; margin-top: 48px; padding: clamp(24px, 3vw, 32px); border-radius: var(--r-lg); border: 1px dashed color-mix(in srgb, var(--primary) 40%, var(--border));
  background: color-mix(in srgb, var(--primary) 5%, var(--surface)); }
.callout > .i { width: 28px; height: 28px; color: var(--primary); }
.callout h2 { font-size: 1.25rem; margin-bottom: 8px; }
.callout p { color: var(--text-muted); }

/* grammar */
.gcard { padding: 28px; }
.gcard h2 { font-size: 1.4rem; }
.gcard > p:not(.kicker):not(.avoid) { margin-top: 10px; color: var(--text-muted); }
.ex { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 0.97rem; }
.ex td { padding: 10px 0; border-top: 1px solid var(--border-subtle); vertical-align: top; }
.ex td:first-child { font-weight: 700; color: var(--primary); padding-inline-end: 14px; }
.ex td:last-child { color: var(--text-muted); }
.avoid { display: flex; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--danger-soft); font-size: 0.93rem; }
.avoid .i { color: var(--danger); margin-top: 2px; }
.avoid s { color: var(--danger); }
.topic { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.topic h3 { font-size: 1.125rem; }
.topic p { color: var(--text-muted); font-size: 0.95rem; }
.topic .topic-ex { margin-top: auto; padding: 10px 12px; border-radius: var(--r-sm); background: var(--primary-soft); color: var(--primary); font-weight: 650; font-size: 0.9rem; }
.source { display: flex; gap: 10px; justify-content: center; align-items: center; margin-top: 36px; color: var(--text-subtle); font-size: 0.93rem; text-align: center; }

/* about */
.story .prose p { color: var(--text-muted); }
.maker { padding: clamp(24px, 4vw, 40px); display: flex; gap: 28px; align-items: center; }
.maker img { width: 44px; height: auto; flex: none; }
.maker h2 { font-size: 1.4rem; }
.maker p { color: var(--text-muted); margin: 8px 0 12px; }

/* ---------- article ---------- */
.post-hero .phero-title { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.post-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; color: var(--text-subtle); font-size: 0.9rem; font-weight: 600; }
.post-meta span { display: inline-flex; align-items: center; gap: 7px; }
.post-meta .i { width: 16px; height: 16px; color: var(--primary); }
.post-grid { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: clamp(32px, 5vw, 72px); justify-content: center; padding-block: clamp(40px, 6vw, 72px); }
.toc { position: relative; }
.toc nav { position: sticky; top: 96px; }
.toc-title { font-size: 0.8125rem; font-weight: 750; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-subtle); margin-bottom: 12px; }
html[lang='fa'] .toc-title { letter-spacing: 0; }
.toc ol { list-style: none; display: grid; gap: 2px; border-inline-start: 2px solid var(--border); counter-reset: t; }
.toc a { display: block; padding: 6px 14px; margin-inline-start: -2px; border-inline-start: 2px solid transparent; color: var(--text-muted); text-decoration: none; font-size: 0.92rem; line-height: 1.4; }
.toc a:hover, .toc a.active { color: var(--primary); border-color: var(--primary); }
@media (max-width: 900px) { .post-grid { grid-template-columns: minmax(0, 1fr); } .toc nav { position: static; } .toc { padding: 20px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); } }
.prose { font-size: 1.0938rem; }
.prose > section + section { margin-top: 44px; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-bottom: 16px; scroll-margin-top: 96px; }
.prose p + p, .prose p + ul, .prose ul + p, .prose table + p, .prose p + table { margin-top: 16px; }
.prose ul { list-style: none; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-inline-start: 26px; }
.prose ul li::before { content: ''; position: absolute; inset-inline-start: 4px; top: 0.7em; width: 8px; height: 8px; border-radius: 3px; background: var(--brand-orange); transform: rotate(45deg); }
.prose em { font-style: normal; font-weight: 650; color: var(--primary); }
.prose strong { font-weight: 700; color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.97rem; display: block; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r); }
.prose thead { background: var(--surface-2); }
.prose th, .prose td { padding: 12px 16px; text-align: start; border-bottom: 1px solid var(--border-subtle); white-space: nowrap; }
.prose td:last-child { white-space: normal; }
.prose th { font-size: 0.85rem; font-weight: 750; color: var(--text-muted); }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose tbody tr:nth-child(even) { background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
.post-cta { margin-top: 56px; padding: 32px; border-radius: var(--r-xl); display: flex; gap: 24px; align-items: center; border: 0; }
.post-cta h2 { font-size: 1.5rem; margin-bottom: 8px; }
.post-cta p { color: var(--on-hero-muted); margin-bottom: 20px; }
.post-cta-pip { width: 120px; flex: none; }
@media (max-width: 600px) { .post-cta { flex-direction: column; text-align: center; } .post-cta .btn { width: 100%; white-space: normal; } }
.legal h2 { font-size: 1.35rem; }
.legal p, .legal li { color: var(--text-muted); }
.legal li strong, .legal p strong { color: var(--text); }
.legal section { scroll-margin-top: 96px; }
.legal code { font-size: 0.85em; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); overflow-wrap: anywhere; }
.legal-toc { margin-bottom: 40px; padding: 20px 24px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.legal-toc h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 10px; color: var(--text-muted); }
.legal-toc ul { display: block; margin: 0; padding: 0; columns: 2 240px; column-gap: 32px; }
.legal-toc ul li { margin: 0 0 6px; padding: 0; break-inside: avoid; }
.legal-toc ul li::before { content: none; }

/* ---------- CTA band ---------- */
.cta-band { padding-block: clamp(56px, 8vw, 96px); }
.cta-card { border-radius: var(--r-xl); padding: clamp(32px, 6vw, 72px); display: grid; grid-template-columns: 1fr 260px; gap: 32px; align-items: center; box-shadow: var(--shadow-xl); }
.cta-card > .dots { mask-image: radial-gradient(80% 120% at 85% 50%, black, transparent 80%); -webkit-mask-image: radial-gradient(80% 120% at 85% 50%, black, transparent 80%); }
.cta-card h2 { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -0.03em; }
.cta-text > p { margin-top: 14px; color: var(--on-hero-muted); font-size: 1.125rem; max-width: 620px; }
.cta-text .cta-note { font-size: 0.875rem; margin-top: 18px; opacity: 0.85; }
.cta-pip .pip { width: 100%; }
@media (max-width: 760px) { .cta-card { grid-template-columns: 1fr; } .cta-pip { width: 160px; order: -1; } }

/* ---------- 404 ---------- */
.nf { text-align: center; }
.nf-pip { width: 180px; margin: 0 auto 8px; }
.nf-code { font-size: 1rem; font-weight: 800; color: var(--accent); letter-spacing: 0.3em; margin-bottom: 8px; }
.nf .phero-lead { margin-inline: auto; }

/* ---------- footer ---------- */
.ftr { position: relative; background: var(--footer); color: #c5d1e3; padding-block: 72px 32px; overflow: hidden; isolation: isolate; }
.ftr > .dots { --dot: rgb(255 255 255 / 0.07); z-index: -1; mask-image: linear-gradient(to bottom, black, transparent 70%); -webkit-mask-image: linear-gradient(to bottom, black, transparent 70%); }
.ftr::before { content: ''; position: absolute; inset: 0; z-index: -2; background: radial-gradient(60% 80% at 0% 0%, rgb(45 116 214 / 0.25), transparent 70%), radial-gradient(40% 60% at 100% 100%, rgb(240 138 36 / 0.14), transparent 70%); }
.ftr-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.fbrand img { height: 34px; width: auto; }
.fbrand p { margin: 18px 0 22px; max-width: 340px; font-size: 0.97rem; color: #a9b7cc; }
.fcol h2 { color: #fff; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; font-weight: 750; }
html[lang='fa'] .fcol h2 { letter-spacing: 0; font-size: 0.9375rem; }
.fcol ul { list-style: none; display: grid; gap: 10px; }
.fcol a, .ftr-lang-links a { color: #c5d1e3; text-decoration: none; font-size: 0.97rem; }
.fcol a:hover, .ftr-lang-links a:hover { color: #fff; text-decoration: underline; }
.ftr-langs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 48px; padding-block: 20px; border-block: 1px solid rgb(255 255 255 / 0.1); font-size: 0.93rem; color: #a9b7cc; }
.ftr-langs > .i { color: var(--hero-accent); }
.ftr-lang-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-inline-start: auto; }
.ftr-lang-links a[aria-current] { color: #fff; font-weight: 700; }
.ftr-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: 0.875rem; color: #8b9ab0; }
.credit a { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 650; text-decoration: none; margin-inline-start: 4px; }
.credit a:hover { color: var(--hero-accent); }
.credit img { width: 12px; height: auto; }
@media (max-width: 860px) { .ftr-top { grid-template-columns: 1fr 1fr; } .fbrand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .ftr-top { gap: 32px 20px; } .ftr-lang-links { margin-inline-start: 0; } }

/* ---------- language suggestion ---------- */
.suggest { position: fixed; inset-inline: 16px; bottom: 16px; z-index: 70; max-width: 560px; margin-inline: auto; display: flex; align-items: center; gap: 12px;
  padding: 12px 12px 12px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-xl); animation: msgIn 0.4s var(--ease) both; }
.suggest p { flex: 1; font-size: 0.93rem; font-weight: 550; }
.suggest .btn { min-height: 40px; }
.suggest .icon-btn { min-width: 40px; height: 40px; }

/* ---------- motion ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@keyframes pipFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pipShadow { 0%, 100% { transform: scaleX(1); opacity: 0.22; } 50% { transform: scaleX(0.85); opacity: 0.14; } }
@keyframes pipBlink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
@keyframes pipAntenna { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes blink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--danger) 45%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes phoneIn { from { opacity: 0; transform: translateY(30px) rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .hdr, .ftr, .cta-band, .toc, .post-cta, .suggest { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Hero surface wins over the plain card background wherever both apply. */
.card.hero-surface, .sec.alt .card.hero-surface { background: var(--hero); border-color: transparent; }
.prose .tbl { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r); margin-block: 4px; }
.prose .tbl table { display: table; border: 0; border-radius: 0; min-width: 100%; }
.prose, .toc { min-width: 0; }

/* ---------- answer box (question + direct answer) ---------- */
.answer-sec { padding-block: clamp(40px, 6vw, 72px) 0; }
.answer-sec + .sec { padding-top: clamp(48px, 7vw, 88px); }
.stats-wrap + .answer-sec { padding-top: clamp(56px, 7vw, 88px); }
.answer { padding: clamp(28px, 4vw, 44px); padding-inline-start: clamp(28px, 5vw, 56px); overflow: hidden; }
.answer::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: 5px; background: linear-gradient(180deg, var(--primary), var(--brand-orange)); }
.answer::after { content: ''; position: absolute; inset-block: 0; inset-inline-end: 0; width: 40%; pointer-events: none;
  background-image: radial-gradient(var(--dot-ink) 1px, transparent 1.2px); background-size: 18px 18px;
  mask-image: linear-gradient(to left, black, transparent); -webkit-mask-image: linear-gradient(to left, black, transparent); }
[dir='rtl'] .answer::after { mask-image: linear-gradient(to right, black, transparent); -webkit-mask-image: linear-gradient(to right, black, transparent); }
.answer-mark { display: inline-flex; color: var(--primary); margin-bottom: 14px; }
.answer h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); margin-bottom: 16px; position: relative; }
.answer-body { position: relative; display: grid; gap: 14px; color: var(--text-muted); font-size: 1.0625rem; }
.answer-body strong { color: var(--text); font-weight: 650; }
.answer-body p:first-child { color: var(--text); font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); }

/* FAQ questions are h3 headings inside summary */
.faq-item summary h3 { font-size: 1.03rem; font-weight: 650; line-height: 1.45; letter-spacing: 0; margin: 0; }
html[lang='fa'] .faq-item summary h3 { line-height: 1.8; }

/* ---------- article extras ---------- */
.takeaways { margin-bottom: 44px; padding: 24px 28px; border-radius: var(--r-lg); background: var(--success-soft);
  border: 1px solid color-mix(in srgb, var(--success) 25%, transparent); }
.takeaways h2 { display: flex; align-items: center; gap: 10px; font-size: 1.125rem !important; margin-bottom: 14px !important; color: var(--success); }
.takeaways ul { gap: 8px; }
.takeaways li { font-size: 1rem; }
.takeaways li::before { background: var(--success) !important; border-radius: 50% !important; transform: none !important; }
.post-faq { margin-top: 48px; }
.post-faq .faq-item { background: var(--surface); }
.sources { margin-top: 44px; padding: 22px 26px; border-radius: var(--r-lg); border: 1px dashed var(--border-strong); background: var(--surface); }
.sources h2 { display: flex; align-items: center; gap: 10px; font-size: 1.0625rem !important; margin-bottom: 12px !important; }
.sources h2 .i { color: var(--primary); }
.sources ul { gap: 8px; }
.sources li { display: flex; align-items: center; gap: 6px; font-size: 0.97rem; }
.sources li::before { display: none; }
.prose .sources ul li { padding-inline-start: 0; }
.sources .ext { width: 14px; height: 14px; color: var(--text-subtle); }
.reviewed { display: flex; align-items: center; gap: 8px; margin-top: 20px !important; font-size: 0.875rem; color: var(--text-subtle); }
.reviewed .i { color: var(--success); width: 16px; height: 16px; }
.related-pages { margin-top: 28px; }
.related-pages > p { font-size: 0.8125rem; font-weight: 750; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-subtle); margin-bottom: 10px; }
html[lang='fa'] .related-pages > p { letter-spacing: 0; }
.prose .related-pages ul { display: flex; flex-wrap: wrap; gap: 8px; }
.prose .related-pages li { padding: 0; }
.prose .related-pages li::before { display: none; }
.related-pages a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.93rem; }
.related-pages a:hover { border-color: var(--primary); color: var(--primary); }
.related-pages .i { width: 14px; height: 14px; }

/* ---------- sources on YKI page ---------- */
.wrap > .sources { margin-top: 0; }
.wrap > .sources ul { list-style: none; display: grid; gap: 8px; }

/* ---------- glossary ---------- */
.glossary-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.glossary-layout .faq-nav .toc-title { margin-bottom: 0; }
@media (max-width: 860px) { .glossary-layout { grid-template-columns: minmax(0, 1fr); } }
.gloss-group + .gloss-group { margin-top: 56px; }
.gloss-group h2 { font-size: 1.5rem; margin-bottom: 18px; scroll-margin-top: 96px; }
.gloss { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; margin: 0; }
.term { padding: 22px 24px; scroll-margin-top: 96px; }
.term:target { border-color: var(--primary); box-shadow: 0 0 0 4px var(--focus-halo); }
.term dt { font-weight: 750; font-size: 1.125rem; color: var(--primary); margin-bottom: 8px; }
[dir='rtl'] .term dt { text-align: end; }
.term dd { margin: 0; color: var(--text-muted); font-size: 0.97rem; display: grid; gap: 12px; }
.term-ex { display: flex; flex-direction: column; gap: 2px; padding-top: 10px; border-top: 1px dashed var(--border); }
.term-ex span { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-subtle); }
html[lang='fa'] .term-ex span { letter-spacing: 0; font-size: 0.8125rem; }
.term-ex q { quotes: none; color: var(--text); font-weight: 600; }
[dir='rtl'] .term-ex q { align-self: flex-start; }
