/* Pairline website — one stylesheet, no framework.
   Logical properties (inline/block) everywhere so Persian and Arabic mirror correctly. */

/* ───────── Fonts (self-hosted, SIL OFL 1.1 — see /assets/fonts/LICENSE-*.txt) ───────── */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght.woff2") format("woff2");
  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-200B, U+2010-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-wght.woff2") format("woff2");
  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: "Vazirmatn";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/vazirmatn-nl-wght.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF;
}

/* Persian pages use Estedad, the same typeface as the apps in Persian (app repo D-032). Latin stays Inter. */
@font-face {
  font-family: "Estedad";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/estedad-wght.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF;
}

/* ───────── Tokens ───────── */

:root {
  --blue: #1f5fbf;
  --blue-strong: #184c9a;
  --green: #12b886;
  --green-strong: #0c8a64;
  --amber: #f59f00;
  --red: #e03131;

  --bg: #f7f9fc;
  --bg-tint: #eef3fa;
  --surface: #ffffff;
  --surface-2: #f2f5fa;
  --border: #e2e8f1;
  --border-strong: #cdd6e3;
  --text: #0b1324;
  --text-2: #36445a;
  --muted: #5a687c;

  --primary: var(--blue);
  --primary-hover: var(--blue-strong);
  --on-primary: #ffffff;
  --primary-soft: #e7effb;
  --green-soft: #e3f7f0;
  --amber-soft: #fff3da;
  --red-soft: #fdeaea;
  --success: var(--green-strong);
  --danger: #c92a2a;
  --ring: rgba(31, 95, 191, 0.4);

  --store-bg: #0b1324;
  --store-fg: #ffffff;
  --store-border: transparent;

  --shadow-sm: 0 1px 2px rgba(15, 30, 60, 0.06), 0 1px 1px rgba(15, 30, 60, 0.04);
  --shadow: 0 10px 30px -12px rgba(15, 35, 75, 0.18), 0 2px 6px rgba(15, 35, 75, 0.05);
  --shadow-lg: 0 30px 70px -25px rgba(15, 35, 75, 0.35);

  --hero-a: rgba(31, 95, 191, 0.16);
  --hero-b: rgba(18, 184, 134, 0.13);
  --hero-c: rgba(245, 159, 0, 0.08);

  /* Illustrated phone screens */
  --m-bg: #f3f5f9;
  --m-card: #ffffff;
  --m-text: #0b1324;
  --m-muted: #6b778a;
  --m-line: #e5e9f0;
  --frame-a: #232a38;
  --frame-b: #0b0f17;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-rtl: "Vazirmatn", "Inter", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-fa: "Estedad", "Inter", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0f1a;
    --bg-tint: #0e1524;
    --surface: #111a2a;
    --surface-2: #162236;
    --border: #22304a;
    --border-strong: #2f4060;
    --text: #e9eef7;
    --text-2: #c3cede;
    --muted: #95a3b8;
    --primary: #9dc1ff;
    --primary-hover: #bcd5ff;
    --on-primary: #0a1630;
    --primary-soft: rgba(157, 193, 255, 0.12);
    --green-soft: rgba(18, 184, 134, 0.14);
    --amber-soft: rgba(245, 159, 0, 0.14);
    --red-soft: rgba(224, 49, 49, 0.16);
    --success: #38d9a9;
    --danger: #ff8787;
    --ring: rgba(157, 193, 255, 0.45);
    --store-bg: #000000;
    --store-fg: #ffffff;
    --store-border: #3a4660;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 30px 70px -25px rgba(0, 0, 0, 0.75);
    --hero-a: rgba(157, 193, 255, 0.14);
    --hero-b: rgba(18, 184, 134, 0.12);
    --hero-c: rgba(245, 159, 0, 0.06);
    --m-bg: #0f141d;
    --m-card: #1a2130;
    --m-text: #eef2f8;
    --m-muted: #97a3b6;
    --m-line: #283246;
    --frame-a: #2e3646;
    --frame-b: #05070b;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0a0f1a;
  --bg-tint: #0e1524;
  --surface: #111a2a;
  --surface-2: #162236;
  --border: #22304a;
  --border-strong: #2f4060;
  --text: #e9eef7;
  --text-2: #c3cede;
  --muted: #95a3b8;
  --primary: #9dc1ff;
  --primary-hover: #bcd5ff;
  --on-primary: #0a1630;
  --primary-soft: rgba(157, 193, 255, 0.12);
  --green-soft: rgba(18, 184, 134, 0.14);
  --amber-soft: rgba(245, 159, 0, 0.14);
  --red-soft: rgba(224, 49, 49, 0.16);
  --success: #38d9a9;
  --danger: #ff8787;
  --ring: rgba(157, 193, 255, 0.45);
  --store-bg: #000000;
  --store-fg: #ffffff;
  --store-border: #3a4660;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 30px 70px -25px rgba(0, 0, 0, 0.75);
  --hero-a: rgba(157, 193, 255, 0.14);
  --hero-b: rgba(18, 184, 134, 0.12);
  --hero-c: rgba(245, 159, 0, 0.06);
  --m-bg: #0f141d;
  --m-card: #1a2130;
  --m-text: #eef2f8;
  --m-muted: #97a3b6;
  --m-line: #283246;
  --frame-a: #2e3646;
  --frame-b: #05070b;
  color-scheme: dark;
}

/* ───────── Base ───────── */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.lang-fa,
body.lang-ar {
  font-family: var(--font-rtl);
  line-height: 1.85;
  font-feature-settings: normal;
}

body.lang-fa {
  font-family: var(--font-fa);
}

[hidden] {
  display: none !important;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--primary-hover);
}

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

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--text);
  text-wrap: balance;
}

.lang-fa :is(h1, h2, h3),
.lang-ar :is(h1, h2, h3) {
  letter-spacing: 0;
  line-height: 1.45;
}

p {
  margin: 0 0 1em;
}

code,
pre {
  font-family: var(--mono);
  font-size: 0.9em;
}

code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.05em 0.35em;
  unicode-bidi: isolate;
}

strong {
  font-weight: 650;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.container-narrow {
  max-width: 820px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

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

.skip-link:focus {
  top: 12px;
  color: var(--on-primary);
}

main:focus {
  outline: none;
}

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

.icon {
  width: 22px;
  height: 22px;
  flex: none;
}

.icon-sm {
  width: 18px;
  height: 18px;
}

[dir="rtl"] .flip-rtl {
  transform: scaleX(-1);
}

/* ───────── Logo ───────── */

.logo-mark {
  width: 32px;
  height: 32px;
  flex: none;
}

.logo-mark .lm-phone {
  fill: var(--blue);
}

.logo-mark .lm-screen {
  fill: #ffffff;
  opacity: 0.16;
}

.logo-mark .lm-line {
  stroke: var(--green);
  stroke-width: 4;
  stroke-linecap: round;
  fill: none;
}

.logo-mark .lm-node {
  fill: #ffffff;
  stroke: var(--green);
  stroke-width: 3.5;
}

:root[data-theme="dark"] .logo-mark .lm-phone {
  fill: #3d7be0;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-mark .lm-phone {
    fill: #3d7be0;
  }
}

/* ───────── Buttons ───────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  min-height: 38px;
  padding: 6px 16px;
  font-size: 0.9375rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 6px 16px -8px var(--ring);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: var(--on-primary);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
}

.btn-ghost:hover {
  background: var(--primary-soft);
}

.btn.is-disabled {
  opacity: 0.6;
  cursor: default;
  box-shadow: none;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  list-style: none;
  transition: border-color 0.15s, color 0.15s;
}

.icon-btn:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.icon-btn::-webkit-details-marker {
  display: none;
}

/* App Store / Android buttons */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 8px 22px 8px 18px;
  padding-inline: 18px 24px;
  border-radius: 16px;
  background: var(--store-bg);
  color: var(--store-fg);
  border: 1px solid var(--store-border);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background-color 0.15s;
  box-shadow: 0 10px 24px -14px rgba(11, 19, 36, 0.6);
}

.store-btn:hover {
  color: var(--store-fg);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -14px rgba(11, 19, 36, 0.6);
}

.store-btn.is-android {
  background: var(--green-strong);
  border-color: transparent;
}

.store-btn.is-soon {
  background: var(--surface);
  color: var(--muted);
  border: 1px dashed var(--border-strong);
  box-shadow: none;
  cursor: default;
}

.store-btn.is-soon:hover {
  transform: none;
  color: var(--muted);
}

.store-icon {
  width: 28px;
  height: 28px;
}

.store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.store-text small {
  font-size: 0.75rem;
  opacity: 0.85;
  font-weight: 500;
}

.store-text strong {
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.store-btn-md {
  min-height: 50px;
}

.store-btn-md .store-text strong {
  font-size: 1.0625rem;
}

/* ───────── Small elements ───────── */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 6px 14px 6px 10px;
  padding-inline: 10px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 550;
  box-shadow: var(--shadow-sm);
}

.pill .icon {
  color: var(--green);
}

.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.6;
  vertical-align: middle;
  white-space: nowrap;
}

.badge-amber {
  background: var(--amber-soft);
  color: #a86b00;
}

.badge-muted {
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border);
}

:root[data-theme="dark"] .badge-amber {
  color: #ffc94d;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .badge-amber {
    color: #ffc94d;
  }
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lang-fa .eyebrow,
.lang-ar .eyebrow {
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.9375rem;
}

.lead {
  font-size: 1.1875rem;
  color: var(--text-2);
  line-height: 1.65;
}

.lang-fa .lead,
.lang-ar .lead {
  line-height: 1.9;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
}

.link-arrow:hover .icon {
  transform: translateX(3px);
}

[dir="rtl"] .link-arrow:hover .icon {
  transform: scaleX(-1) translateX(3px);
}

.link-arrow .icon {
  transition: transform 0.15s;
}

.hint {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hint .icon {
  margin-top: 3px;
}

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: var(--text-2);
  margin: 0 0 18px;
}

.notice p {
  margin: 0;
}

.notice .icon {
  color: var(--primary);
  margin-top: 2px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
}

.callout {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2);
  padding: 18px 20px;
  margin: 18px 0 0;
}

.callout h2,
.callout h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.0625rem;
  margin: 0 0 6px;
}

.callout p {
  margin: 0;
  color: var(--text-2);
}

.callout.is-green {
  background: var(--green-soft);
  border-color: transparent;
}

.callout.is-green h3 .icon,
.callout.is-green h2 .icon {
  color: var(--success);
}

/* ───────── Header ───────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 750;
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--text);
}

.brand-name {
  font-family: var(--font);
}

.primary-nav {
  margin-inline-start: 18px;
}

.primary-nav ul,
.menu-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav ul {
  display: flex;
  gap: 4px;
}

.primary-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--text-2);
  font-weight: 550;
  font-size: 0.96875rem;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-2);
}

.header-actions {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

details > summary {
  list-style: none;
  cursor: pointer;
}

details > summary::-webkit-details-marker {
  display: none;
}

.lang-menu,
.mobile-menu {
  position: relative;
}

.lang-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.9375rem;
}

.lang-menu summary:hover {
  border-color: var(--border-strong);
}

.menu-panel {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  min-width: 190px;
  padding: 8px;
  margin: 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 60;
}

.menu-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 550;
}

.menu-panel a:hover {
  background: var(--surface-2);
}

.menu-panel a[aria-current] {
  color: var(--primary);
  background: var(--primary-soft);
}

.menu-panel a[lang="ar"],
.footer-langs a[lang="ar"] {
  font-family: var(--font-rtl);
}

.menu-panel a[lang="fa"],
.footer-langs a[lang="fa"] {
  font-family: var(--font-fa);
}

.theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun {
    display: block;
  }

  :root:not([data-theme="light"]) .theme-toggle .icon-moon {
    display: none;
  }
}

.mobile-menu {
  display: none;
}

.mobile-menu .menu-panel {
  min-width: 230px;
}

@media (max-width: 960px) {
  .primary-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }
}

@media (max-width: 520px) {
  .header-cta {
    display: none;
  }

  .header-inner {
    gap: 8px;
  }
}

/* ───────── Hero ───────── */

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  mask-image: linear-gradient(to bottom, #000 65%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent);
  background:
    radial-gradient(ellipse 60% 55% at 85% 20%, var(--hero-a), transparent 70%),
    radial-gradient(ellipse 50% 50% at 10% 85%, var(--hero-b), transparent 70%),
    radial-gradient(ellipse 40% 40% at 50% 0%, var(--hero-c), transparent 70%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--border) 55%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--border) 55%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  opacity: 0.6;
}

.hero {
  padding: 56px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  font-weight: 780;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin-bottom: 22px;
}

.lang-fa .hero h1,
.lang-ar .hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0;
}

.hero-lead {
  font-size: 1.25rem;
  color: var(--text-2);
  max-width: 36em;
  margin-bottom: 30px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  color: var(--text-2);
  font-weight: 550;
  font-size: 0.96875rem;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-points .icon {
  color: var(--green);
}

/* Two phones joined by a line */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 560px;
}

.hero-glow {
  position: absolute;
  inset: 12% 8%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 22%, transparent), transparent 65%);
  filter: blur(30px);
  z-index: -1;
}

.hero-visual .device {
  flex: none;
}

.hero-visual .hero-android {
  --w: 232px;
  transform: translateY(26px) rotate(-4deg);
}

.hero-visual .hero-iphone {
  --w: 250px;
  transform: translateY(-14px) rotate(3deg);
}

[dir="rtl"] .hero-android {
  transform: translateY(26px) rotate(4deg);
}

[dir="rtl"] .hero-iphone {
  transform: translateY(-14px) rotate(-3deg);
}

.hero-link {
  position: relative;
  width: 110px;
  height: 40px;
  margin-inline: -26px;
  z-index: 2;
  display: grid;
  place-items: center;
}

.hero-link svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.link-path {
  fill: none;
  stroke: var(--green);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 7 9;
  animation: link-flow 1.2s linear infinite;
  vector-effect: non-scaling-stroke;
}

@keyframes link-flow {
  to {
    stroke-dashoffset: -32;
  }
}

.hero-lock {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--green-strong);
  border: 2px solid var(--green);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--green) 16%, transparent), var(--shadow);
}

:root[data-theme="dark"] .hero-lock {
  color: var(--green);
}

@media (max-width: 960px) {
  .hero {
    padding: 36px 0 56px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-visual {
    min-height: 0;
    padding: 24px 0 10px;
  }

  .hero-visual .hero-android {
    --w: 188px;
  }

  .hero-visual .hero-iphone {
    --w: 204px;
  }
}

@media (max-width: 480px) {
  .hero-visual .hero-android {
    --w: 142px;
  }

  .hero-visual .hero-iphone {
    --w: 154px;
  }

  .hero-link {
    width: 70px;
    margin-inline: -18px;
  }

  .hero-lock {
    width: 38px;
    height: 38px;
  }

  .store-btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* ───────── Sections ───────── */

.section {
  padding: 96px 0;
  position: relative;
}

.section-first {
  padding-top: 24px;
}

.section-tint {
  background: var(--bg-tint);
  border-block: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}

.section-head {
  max-width: 760px;
  margin-bottom: 52px;
}

.section-head.is-center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2,
.h-section {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 760;
  letter-spacing: -0.03em;
}

.lang-fa .section-head h2,
.lang-ar .section-head h2,
.lang-fa .h-section,
.lang-ar .h-section {
  font-weight: 800;
  letter-spacing: 0;
}

.h-section {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 24px;
}

@media (max-width: 720px) {
  .section {
    padding: 64px 0;
  }

  .section-head {
    margin-bottom: 36px;
  }
}

/* What it is */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.pillar {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.pillar h3 {
  font-size: 1.25rem;
  margin-top: 18px;
}

.pillar p {
  margin: 0;
  color: var(--text-2);
}

.pillar-icon,
.feature-icon,
.how-icon,
.dl-icon,
.diagram-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
}

.pillars .pillar:nth-child(2) .pillar-icon {
  background: var(--green-soft);
  color: var(--success);
}

.pillars .pillar:nth-child(3) .pillar-icon {
  background: var(--amber-soft);
  color: #b77400;
}

@media (max-width: 860px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  position: relative;
  padding: 26px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

.feature-card h3 {
  font-size: 1.125rem;
  margin: 18px 0 8px;
}

.feature-card p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.96875rem;
}

.feature-icon.is-call,
.feature-icon.is-dualsim {
  background: var(--green-soft);
  color: var(--success);
}

.feature-icon.is-contacts,
.feature-icon.is-widget {
  background: var(--amber-soft);
  color: #b77400;
}

.feature-icon.is-demo {
  background: var(--red-soft);
  color: var(--danger);
}

:root[data-theme="dark"] :is(.feature-icon.is-contacts, .feature-icon.is-widget, .pillars .pillar:nth-child(3) .pillar-icon) {
  color: #ffc94d;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) :is(.feature-icon.is-contacts, .feature-icon.is-widget, .pillars .pillar:nth-child(3) .pillar-icon) {
    color: #ffc94d;
  }
}

@media (max-width: 1080px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* How it works */
.diagram {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: 0;
  max-width: 940px;
  margin: 0 auto 120px;
}

.diagram-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 28px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.diagram-node strong {
  font-size: 1.125rem;
  margin-top: 8px;
}

.diagram-node span:last-child {
  color: var(--muted);
  font-size: 0.9375rem;
}

.diagram-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
}

.diagram-icon .icon {
  width: 30px;
  height: 30px;
}

.diagram-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.diagram-line {
  order: 2;
  align-self: stretch;
  margin-inline: -14px;
  height: 4px;
  border-radius: 4px;
  background: repeating-linear-gradient(90deg, var(--green) 0 8px, transparent 8px 16px);
  background-size: 32px 4px;
  animation: line-flow 1.4s linear infinite;
  opacity: 0.8;
}

@keyframes line-flow {
  to {
    background-position: 32px 0;
  }
}

.diagram-badge {
  order: 1;
}

.diagram-sub {
  order: 3;
}

.diagram-badge,
.diagram-sub,
.diagram-noserver {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.875rem;
  background: var(--surface);
  border: 1px solid var(--border);
}

.diagram-badge {
  background: var(--green-soft);
  border-color: transparent;
  color: var(--success);
  font-size: 0.9375rem;
}

.diagram-sub {
  color: var(--text-2);
  background: transparent;
  border-color: transparent;
}

.diagram-noserver {
  position: absolute;
  top: calc(100% + 40px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  color: var(--muted);
  border-style: dashed;
}

.how-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.how-points h3 {
  font-size: 1.1875rem;
  margin: 16px 0 8px;
}

.how-points p {
  color: var(--text-2);
  margin: 0;
}

@media (max-width: 860px) {
  .diagram {
    grid-template-columns: 1fr;
    max-width: 380px;
  }

  .diagram-link {
    padding: 0;
    gap: 0;
  }

  .diagram-line {
    order: 0;
    align-self: center;
    width: 4px;
    height: 36px;
    margin: 0;
    background: repeating-linear-gradient(180deg, var(--green) 0 8px, transparent 8px 16px);
    background-size: 4px 32px;
    animation: none;
  }

  .diagram-link::after {
    content: "";
    order: 5;
    width: 4px;
    height: 36px;
    border-radius: 4px;
    background: repeating-linear-gradient(180deg, var(--green) 0 8px, transparent 8px 16px);
    opacity: 0.8;
  }

  .diagram-noserver {
    position: static;
    transform: none;
    order: 4;
    margin-top: 6px;
  }

  .diagram {
    margin-bottom: 48px;
  }

  .how-points {
    grid-template-columns: 1fr;
  }
}

/* Screens gallery */
.gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

.gallery-label {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: var(--container);
  margin: 0 auto 10px;
  padding-inline: 20px;
  font-size: 1rem;
  color: var(--muted);
  font-weight: 650;
}

.gallery-row {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 24px max(20px, calc((100vw - var(--container)) / 2 + 20px)) 72px;
  margin-bottom: -40px;
  scrollbar-width: thin;
  justify-content: safe center;
}

.gallery-row:focus-visible {
  outline-offset: -3px;
}

.gallery-item {
  margin: 0;
  scroll-snap-align: center;
  flex: none;
}

.gallery-item .device {
  --w: 238px;
}

.gallery-note {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 auto;
}

@media (max-width: 560px) {
  .gallery-item .device {
    --w: 200px;
  }

  .gallery-item figcaption {
    max-width: 200px;
  }
}

/* Letter */
.letter {
  position: relative;
  padding: 48px 52px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.letter::before {
  content: "\201C";
  position: absolute;
  top: -8px;
  inset-inline-end: 34px;
  font-size: 9rem;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--primary);
  opacity: 0.12;
}

.letter h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 760;
  margin-bottom: 22px;
}

.letter p {
  font-size: 1.125rem;
  color: var(--text-2);
}

.letter p.eyebrow {
  font-size: 0.875rem;
  color: var(--primary);
}

.lang-fa .letter p.eyebrow,
.lang-ar .letter p.eyebrow {
  font-size: 0.9375rem;
}

.letter-sign {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.letter-sign span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.letter-sign small {
  color: var(--muted);
}

.avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: #fff;
  font-weight: 750;
  font-size: 1.25rem;
}

@media (max-width: 600px) {
  .letter {
    padding: 32px 24px;
  }
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 26px 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.step h3 {
  font-size: 1.125rem;
  margin: 18px 0 8px;
}

.step p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.96875rem;
}

.step-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 750;
  font-size: 1.0625rem;
  box-shadow: 0 0 0 6px var(--primary-soft);
}

@media (max-width: 1000px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.price-card.is-featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
}

.price-card h3 {
  font-size: 1.375rem;
  margin: 10px 0 6px;
}

.price-platform {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9375rem;
}

.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0;
}

.price strong {
  font-size: 2.75rem;
  font-weight: 780;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.price span {
  color: var(--muted);
  font-weight: 550;
}

.price-ribbon {
  position: absolute;
  top: -14px;
  inset-inline-end: 24px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: 0 8px 18px -8px rgba(18, 184, 134, 0.8);
}

.price-card .btn {
  margin-top: auto;
}

.price-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 900px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.price-note .icon {
  margin-top: 3px;
}

@media (max-width: 760px) {
  .price-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .price-card {
    padding: 28px 22px;
  }
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-2);
}

.check-list .icon {
  margin-top: 4px;
  color: var(--success);
}

.check-list.is-x .icon {
  color: var(--danger);
}

/* FAQ */
.faq {
  display: grid;
  gap: 12px;
}

.faq-item {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.faq-item[open] {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 620;
  font-size: 1.0625rem;
}

.faq-item summary:hover {
  color: var(--primary);
}

.faq-chevron {
  transform: rotate(90deg);
  transition: transform 0.2s;
  color: var(--muted);
}

.faq-item[open] .faq-chevron {
  transform: rotate(-90deg);
}

.faq-answer {
  padding: 0 22px 20px;
  color: var(--text-2);
}

.faq-answer p {
  margin: 0;
}

/* CTA band */
.cta-band {
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(18, 184, 134, 0.35), transparent 60%),
    radial-gradient(ellipse 60% 80% at 0% 100%, rgba(157, 193, 255, 0.25), transparent 60%),
    linear-gradient(135deg, #123d80, #1f5fbf 55%, #1b6fb0);
  color: #fff;
  border: 0;
}

.cta-band h2,
.cta-band .lead {
  color: #fff;
}

.cta-band .lead {
  opacity: 0.9;
}

.cta-band h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 780;
}

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.cta-band .store-btn {
  background: #0b1324;
  border-color: rgba(255, 255, 255, 0.18);
}

.cta-band .store-btn.is-android {
  background: var(--green-strong);
}

.cta-band .store-btn.is-soon {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.35);
}

.cta-release {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(5, 15, 35, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
}

.cta-release-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-weight: 650;
  margin: 0 0 14px;
}

.cta-band .release-meta dt {
  color: rgba(255, 255, 255, 0.7);
}

.cta-band .release-meta dd {
  color: #fff;
}

.cta-band .hash {
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.cta-band .copy-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.cta-band .link-arrow,
.cta-band .muted {
  color: #fff;
  opacity: 0.92;
}

@media (max-width: 900px) {
  .cta-inner {
    grid-template-columns: 1fr;
  }
}

/* Release metadata */
.release-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 20px;
  margin: 0 0 18px;
}

.release-meta.is-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.release-meta > div {
  min-width: 0;
}

.release-meta .is-wide {
  grid-column: 1 / -1;
}

.release-meta dt {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}

.release-meta dd {
  margin: 0;
  font-weight: 600;
}

.hash-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.hash {
  display: block;
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.5;
  word-break: break-all;
  overflow-wrap: anywhere;
  border-radius: 10px;
  direction: ltr;
  text-align: left;
}

td .hash,
.data-table .hash {
  display: inline-block;
  padding: 2px 6px;
  font-size: 0.78rem;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.copy-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.copy-btn.is-copied {
  border-color: var(--success);
  color: var(--success);
}

@media (max-width: 560px) {
  .release-meta,
  .release-meta.is-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hash-row {
    flex-direction: column;
  }

  .hash-row .hash {
    width: 100%;
  }
}

/* ───────── Inner pages ───────── */

.page-hero {
  padding: 64px 0 44px;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.25rem);
  font-weight: 780;
  letter-spacing: -0.03em;
}

.lang-fa .page-hero h1,
.lang-ar .page-hero h1 {
  font-weight: 800;
  letter-spacing: 0;
}

.page-hero .lead {
  margin-bottom: 0;
  max-width: 46em;
}

.download-card .callout h3 {
  margin: 0 0 6px;
}

.updated {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.page-hero.is-error {
  padding: 110px 0 120px;
  text-align: center;
}

.page-hero.is-error .lead {
  margin: 0 auto 28px;
  max-width: 32em;
}

.error-code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  margin: 0 0 10px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Download */
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.download-card {
  padding: 32px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  scroll-margin-top: 90px;
}

.download-card h3 {
  font-size: 1.125rem;
  margin: 28px 0 12px;
}

.download-card-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.download-card-head h2 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.download-card-head p {
  margin: 0;
  color: var(--text-2);
}

.dl-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  flex: none;
}

.dl-icon.is-android {
  background: var(--green-soft);
  color: var(--success);
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin: 4px 0 14px;
}

.req {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.req .icon {
  color: var(--success);
}

.num-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.num-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--text-2);
}

.num-list .num {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9375rem;
  margin-top: 1px;
}

.only-desktop {
  display: flex;
}

@media (hover: none) and (pointer: coarse) {
  .only-desktop {
    display: none;
  }
}

@media (max-width: 900px) {
  .download-grid {
    grid-template-columns: 1fr;
  }

  .download-card {
    padding: 24px 20px;
  }
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  margin: 0 0 18px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: start;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.data-table thead th {
  background: var(--surface-2);
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--muted);
  white-space: nowrap;
}

.data-table tbody tr:last-child > * {
  border-bottom: 0;
}

.data-table tbody th {
  font-weight: 620;
}

.data-table td {
  color: var(--text-2);
}

.perm {
  display: inline;
  font-size: 0.78rem;
  word-break: break-word;
  background: none;
  border: 0;
  padding: 0;
  color: var(--text);
}

.perm-note {
  display: block;
  margin-top: 4px;
  font-weight: 500;
  color: var(--muted);
}

@media (min-width: 761px) {
  .data-table.is-permissions tbody th {
    min-width: 17rem;
  }
}

.data-table .badge {
  margin-inline-start: 6px;
}

@media (max-width: 760px) {
  .data-table.is-stack thead,
  .data-table.is-versions thead,
  .data-table.is-checksums thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .data-table.is-stack tr,
  .data-table.is-versions tr,
  .data-table.is-checksums tr {
    display: block;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
  }

  .data-table tbody tr:last-child {
    border-bottom: 0;
  }

  .data-table.is-stack :is(th, td),
  .data-table.is-versions :is(th, td),
  .data-table.is-checksums :is(th, td) {
    display: block;
    padding: 4px 0;
    border: 0;
  }

  .data-table.is-stack tbody th {
    font-size: 1rem;
    padding-bottom: 8px;
  }

  .data-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    font-weight: 650;
    color: var(--muted);
  }
}

/* Long-form documents (privacy, terms, open source) */
.doc-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 96px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.toc h2 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 10px;
}

.lang-fa .toc h2,
.lang-ar .toc h2 {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9375rem;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.toc a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.9375rem;
}

.toc a:hover {
  background: var(--surface-2);
  color: var(--text);
}

.doc > section {
  scroll-margin-top: 90px;
  margin-bottom: 44px;
}

.doc h2 {
  font-size: 1.625rem;
  font-weight: 740;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.doc h3 {
  font-size: 1.1875rem;
  margin-top: 28px;
}

.doc p,
.doc li {
  color: var(--text-2);
}

.doc-num {
  display: inline-grid;
  place-items: center;
  flex: none;
  min-width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
}

.promise-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.promise-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--green-soft);
  color: var(--text);
}

.promise-list .icon {
  color: var(--success);
  margin-top: 4px;
}

.bullets {
  margin: 0;
  padding-inline-start: 1.2em;
  display: grid;
  gap: 10px;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.two-col .card {
  padding: 22px;
}

.two-col h3 {
  margin-top: 0;
  font-size: 1.0625rem;
}

@media (max-width: 900px) {
  .doc-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .toc {
    position: static;
  }

  .two-col {
    grid-template-columns: 1fr;
  }
}

/* Verify */
.current-release {
  margin-bottom: 40px;
}

.verify-steps {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: grid;
  gap: 28px;
}

.verify-steps > li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 18px;
}

.verify-steps h2 {
  font-size: 1.375rem;
  margin-top: 4px;
}

.verify-steps p {
  color: var(--text-2);
}

.cmd {
  margin: 0 0 12px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0d1422;
}

.cmd figcaption {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #aab6c8;
  background: #131c2d;
  border-bottom: 1px solid #1f2a3e;
}

.cmd-body {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 4px 0;
}

.cmd pre {
  flex: 1;
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  color: #e6edf7;
  text-align: left;
}

.cmd code {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
}

.cmd .copy-btn {
  background: #1a2436;
  border-color: #2a3750;
  color: #d0d9e6;
  margin-inline-end: 8px;
}

.expected {
  margin-top: 6px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 44px;
}

.info-grid .callout {
  margin: 0;
}

@media (max-width: 900px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}

/* Support */
.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.contact-card {
  scroll-margin-top: 90px;
}

.more-faq {
  margin-top: 18px;
}

@media (max-width: 900px) {
  .support-grid {
    grid-template-columns: 1fr;
  }
}

.contact-form {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 560px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

.field label {
  display: block;
  font-weight: 620;
  margin-bottom: 6px;
}

.optional {
  font-weight: 450;
  color: var(--muted);
  font-size: 0.875rem;
}

.field input,
.field select,
.field textarea,
.admin input,
.admin select {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field textarea {
  resize: vertical;
  min-height: 150px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.field .hint {
  margin-top: 6px;
  font-size: 0.875rem;
}

.hp {
  position: absolute;
  inset-inline-start: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0;
  min-height: 1.4em;
  font-weight: 600;
}

.form-status:empty {
  display: none;
}

.form-status.is-success {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--success);
}

.form-status.is-error {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--red-soft);
  color: var(--danger);
}

.contact-form .btn {
  justify-self: start;
}

/* ───────── Footer ───────── */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 56px 0 28px;
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-brand p {
  color: var(--muted);
  margin: 14px 0 0;
  max-width: 26em;
}

.footer-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.footer-note .icon {
  color: var(--success);
  margin-top: 3px;
}

.site-footer h2 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 14px;
}

.lang-fa .site-footer h2,
.lang-ar .site-footer h2 {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9375rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.site-footer a {
  color: var(--text-2);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.footer-bottom p {
  margin: 0;
}

.footer-langs {
  display: flex !important;
  gap: 16px !important;
}

.footer-langs a[aria-current] {
  color: var(--primary);
  font-weight: 650;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ───────── Illustrated phones ───────── */

.device {
  --w: 240px;
  position: relative;
  width: var(--w);
  aspect-ratio: 9 / 19.4;
  padding: calc(var(--w) * 0.034);
  border-radius: calc(var(--w) * 0.165);
  background: linear-gradient(150deg, var(--frame-a), var(--frame-b) 60%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 0 0 calc(var(--w) * 0.009) rgba(0, 0, 0, 0.6),
    0 40px 70px -30px rgba(9, 20, 45, 0.55),
    0 16px 30px -18px rgba(9, 20, 45, 0.45);
  container-type: inline-size;
  direction: inherit;
}

.device.is-android {
  aspect-ratio: 9 / 19.6;
  border-radius: calc(var(--w) * 0.12);
  padding: calc(var(--w) * 0.028);
}

.device-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--w) * 0.135);
  background: var(--m-bg);
  color: var(--m-text);
  font-size: 3.7cqw;
  line-height: 1.35;
  font-weight: 450;
}

.device.is-android .device-screen {
  border-radius: calc(var(--w) * 0.095);
}

/* Real screenshots: the frame follows the image's own proportions. */
.device.is-shot {
  aspect-ratio: auto;
}

.device.is-shot .device-screen {
  height: auto;
  background: transparent;
}

.device.is-shot .device-screen img {
  display: block;
  width: 100%;
  height: auto;
}

/* A {light, dark} pair from gallery.json shows the variant matching the site theme. */
.device-screen img.shot-dark {
  display: none;
}

:root[data-theme="dark"] .device-screen img.shot-light {
  display: none;
}

:root[data-theme="dark"] .device-screen img.shot-dark {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .device-screen img.shot-light {
    display: none;
  }

  :root:not([data-theme="light"]) .device-screen img.shot-dark {
    display: block;
  }
}

.gallery-item figcaption {
  max-width: 238px;
  margin: 16px auto 0;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-2);
}

.gallery-item .device {
  margin-inline: auto;
}

.device .icon {
  width: 1.15em;
  height: 1.15em;
}

.home-bar {
  position: absolute;
  bottom: 2.2cqw;
  left: 50%;
  width: 36cqw;
  height: 1.4cqw;
  margin-left: -18cqw;
  border-radius: 2cqw;
  background: var(--m-text);
  opacity: 0.35;
}

.device.is-shot .home-bar,
.device.is-shot .sb {
  display: none;
}

/* status bars */
.sb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 13cqw;
  padding: 0 8cqw;
  font-size: 4cqw;
  font-weight: 650;
  font-family: var(--font);
}

.sb-android {
  height: 9cqw;
  padding: 0 6cqw;
  font-size: 3.5cqw;
}

.sb-island {
  position: absolute;
  top: 3cqw;
  left: 50%;
  width: 31cqw;
  height: 9cqw;
  margin-left: -15.5cqw;
  border-radius: 5cqw;
  background: #000;
}

.sb-cam {
  position: absolute;
  top: 2.4cqw;
  left: 50%;
  width: 4.2cqw;
  height: 4.2cqw;
  margin-left: -2.1cqw;
  border-radius: 50%;
  background: #000;
}

.sb-icons {
  display: inline-flex;
  align-items: center;
  gap: 1.6cqw;
}

.sb-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.6cqw;
  height: 2.8cqw;
}

.sb-bars i {
  display: block;
  width: 0.9cqw;
  background: currentColor;
  border-radius: 0.3cqw;
}

.sb-bars i:nth-child(1) {
  height: 35%;
}

.sb-bars i:nth-child(2) {
  height: 55%;
}

.sb-bars i:nth-child(3) {
  height: 78%;
}

.sb-bars i:nth-child(4) {
  height: 100%;
}

.sb-batt {
  position: relative;
  width: 6.2cqw;
  height: 3cqw;
  border: 0.35cqw solid currentColor;
  border-radius: 0.9cqw;
  opacity: 0.9;
}

.sb-batt::after {
  content: "";
  position: absolute;
  inset: 0.35cqw;
  inset-inline-end: 1.2cqw;
  background: currentColor;
  border-radius: 0.3cqw;
}

/* shared mock pieces */
.m-app {
  padding: 2cqw 5.5cqw 8cqw;
}

.m-title {
  font-size: 8.4cqw;
  font-weight: 760;
  margin: 3cqw 0 3.5cqw;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.m-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2cqw;
}

.m-row span {
  color: var(--m-muted);
  font-size: 3.2cqw;
  flex: none;
}

.m-sub {
  display: inline-flex;
  align-items: center;
  gap: 1.4cqw;
  color: var(--m-muted);
  font-size: 3.3cqw;
}

.m-seg {
  display: flex;
  gap: 1cqw;
  padding: 1cqw;
  border-radius: 3cqw;
  background: color-mix(in srgb, var(--m-text) 7%, transparent);
  margin-bottom: 4cqw;
  font-size: 3.3cqw;
  font-weight: 600;
}

.m-seg span {
  flex: 1;
  text-align: center;
  padding: 1.4cqw 0;
  border-radius: 2.2cqw;
  color: var(--m-muted);
}

.m-seg .is-on {
  background: var(--m-card);
  color: var(--m-text);
  box-shadow: 0 0.4cqw 1.2cqw rgba(0, 0, 0, 0.08);
}

.m-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.2cqw;
  padding: 1.8cqw 3cqw;
  border-radius: 3cqw;
  font-size: 3.2cqw;
  font-weight: 650;
  white-space: nowrap;
}

.m-chip.is-primary {
  background: var(--blue);
  color: #fff;
}

.m-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.m-list li {
  display: flex;
  gap: 3cqw;
  padding: 3.2cqw 0;
  border-bottom: 1px solid var(--m-line);
}

.m-list li > div {
  min-width: 0;
  flex: 1;
}

.m-list strong {
  font-size: 3.9cqw;
}

.m-list p {
  margin: 0.6cqw 0 0;
  font-size: 3.4cqw;
  color: var(--m-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.m-list p.m-missed {
  display: flex;
  align-items: center;
  gap: 1.2cqw;
  color: var(--red);
}

.m-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 10.5cqw;
  height: 10.5cqw;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 4.2cqw;
}

.m-avatar.is-blue {
  background: linear-gradient(135deg, #4c86e0, #1f5fbf);
}

.m-avatar.is-green {
  background: linear-gradient(135deg, #3fd3a3, #0c9a6e);
}

.m-avatar.is-amber {
  background: linear-gradient(135deg, #ffc14d, #f08c00);
}

/* messages: notification banner */
.m-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2.4cqw 2.8cqw;
  align-items: start;
  padding: 3.2cqw;
  margin-top: 1cqw;
  border-radius: 5cqw;
  background: color-mix(in srgb, var(--m-card) 92%, transparent);
  box-shadow: 0 2cqw 6cqw rgba(10, 20, 40, 0.16);
  border: 1px solid var(--m-line);
}

.m-banner-icon {
  display: grid;
  place-items: center;
  width: 9cqw;
  height: 9cqw;
  border-radius: 2.4cqw;
  background: #fff;
  box-shadow: 0 0 0 1px var(--m-line);
}

.m-banner-icon .logo-mark {
  width: 7cqw;
  height: 7cqw;
}

.m-banner-body p {
  margin: 0.6cqw 0 0;
  font-size: 3.3cqw;
}

.m-banner .m-chip {
  grid-column: 2;
  justify-self: start;
}

/* incoming call */
.device-screen:has(.m-call) {
  background: linear-gradient(170deg, #34495e 0%, #1c2733 45%, #0d1117 100%);
  color: #fff;
}

.device-screen:has(.m-call) .home-bar {
  background: #fff;
}

.m-call {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: calc(100% - 13cqw);
  padding-top: 6cqw;
}

.m-call-label {
  margin: 0;
  font-size: 3.6cqw;
  opacity: 0.75;
}

.m-call-name {
  margin: 1.5cqw 0 0;
  font-size: 9cqw;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.01em;
}

.m-call-via {
  margin: 1cqw 0 0;
  font-size: 3.6cqw;
  opacity: 0.75;
}

.m-call-avatar {
  display: grid;
  place-items: center;
  width: 26cqw;
  height: 26cqw;
  margin: 9cqw 0 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #8aa3c2, #4d6585);
  font-size: 11cqw;
  font-weight: 600;
  box-shadow: 0 0 0 3cqw rgba(255, 255, 255, 0.06), 0 0 0 6cqw rgba(255, 255, 255, 0.035);
}

.m-call-extras {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
  padding: 0 5cqw;
  font-size: 3.3cqw;
  opacity: 0.85;
}

.m-call-extras span {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4cqw;
}

.m-call-actions {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 6cqw 3cqw 9cqw;
}

.m-call-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2cqw;
  font-size: 3.4cqw;
}

.m-call-circle {
  display: grid;
  place-items: center;
  width: 17cqw;
  height: 17cqw;
  border-radius: 50%;
}

.m-call-circle .icon {
  width: 7.5cqw;
  height: 7.5cqw;
  fill: #fff;
  stroke: #fff;
}

.m-call-btn.is-decline .m-call-circle {
  background: var(--red);
}

.m-call-btn.is-decline .icon {
  transform: rotate(135deg);
}

.m-call-btn.is-accept .m-call-circle {
  background: #2fb550;
  animation: ring 1.8s ease-in-out infinite;
}

@keyframes ring {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(47, 181, 80, 0.55);
  }

  60% {
    box-shadow: 0 0 0 4cqw rgba(47, 181, 80, 0);
  }
}

/* status widget (iPhone home screen) */
.device-screen:has(.m-home) {
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(31, 95, 191, 0.55), transparent 70%),
    radial-gradient(ellipse 80% 60% at 90% 90%, rgba(18, 184, 134, 0.5), transparent 70%),
    linear-gradient(160deg, #13233f, #0b1526);
  color: #fff;
}

.device-screen:has(.m-home) .home-bar {
  background: #fff;
}

.m-home {
  display: grid;
  gap: 4cqw;
  padding-top: 5cqw;
}

.m-widget {
  padding: 4.5cqw;
  border-radius: 6cqw;
  background: rgba(255, 255, 255, 0.86);
  color: #0b1324;
  box-shadow: 0 2cqw 8cqw rgba(0, 0, 0, 0.25);
}

:root[data-theme="dark"] .m-widget {
  background: rgba(28, 34, 48, 0.88);
  color: #eef2f8;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .m-widget {
    background: rgba(28, 34, 48, 0.88);
    color: #eef2f8;
  }
}

.m-widget-head {
  display: flex;
  align-items: center;
  gap: 2cqw;
  font-size: 3.6cqw;
}

.m-widget-head .logo-mark {
  width: 6cqw;
  height: 6cqw;
}

.m-dot {
  width: 2.2cqw;
  height: 2.2cqw;
  border-radius: 50%;
  background: var(--green);
  margin-inline-start: auto;
  box-shadow: 0 0 0 1cqw rgba(18, 184, 134, 0.25);
}

.m-widget-battery {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 3cqw;
}

.m-big {
  font-size: 11cqw;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.m-widget .m-sub {
  color: inherit;
  opacity: 0.65;
}

.m-meter {
  display: block;
  height: 2cqw;
  margin: 3cqw 0 4cqw;
  border-radius: 2cqw;
  background: rgba(127, 140, 160, 0.25);
  overflow: hidden;
}

.m-meter i {
  display: block;
  width: 82%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), #38d9a9);
}

.m-widget-sims {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3cqw;
}

.m-widget-sims > div {
  display: grid;
  gap: 1cqw;
  padding: 2.4cqw;
  border-radius: 3cqw;
  background: rgba(127, 140, 160, 0.12);
}

.m-widget-sims small {
  font-size: 3cqw;
  opacity: 0.65;
}

.m-sim {
  font-weight: 650;
  font-size: 3.4cqw;
}

.m-signal {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.8cqw;
  height: 3.6cqw;
}

.m-signal i {
  display: block;
  width: 1.3cqw;
  border-radius: 0.4cqw;
  background: currentColor;
  opacity: 0.25;
}

.m-signal i:nth-child(1) {
  height: 30%;
}

.m-signal i:nth-child(2) {
  height: 55%;
}

.m-signal i:nth-child(3) {
  height: 78%;
}

.m-signal i:nth-child(4) {
  height: 100%;
}

.m-signal i.is-on {
  opacity: 1;
}

.m-widget-small {
  padding: 3.5cqw 4.5cqw;
}

.m-widget-small .m-widget-head .icon {
  color: var(--green);
}

.m-widget-small p {
  margin: 1cqw 0 0;
}

.m-apps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5cqw;
  padding: 2cqw 2cqw 0;
}

.m-app-icon {
  aspect-ratio: 1;
  border-radius: 4.5cqw;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.m-app-icon.is-0 {
  background: linear-gradient(135deg, #4c86e0, #1f5fbf);
}

.m-app-icon.is-1 {
  background: linear-gradient(135deg, #3fd3a3, #0c9a6e);
}

.m-app-icon.is-2 {
  background: linear-gradient(135deg, #ffd27a, #f59f00);
}

.m-app-icon.is-3 {
  background: rgba(255, 255, 255, 0.85);
}

/* USSD */
.m-ussd-input {
  padding: 3cqw 4cqw;
  border-radius: 4cqw;
  background: var(--m-card);
  border: 1px solid var(--m-line);
  font-family: var(--mono);
  font-size: 6cqw;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.08em;
}

.m-bubble {
  margin: 4cqw 0;
  padding: 3.4cqw 4cqw;
  border-radius: 4.5cqw;
  border-start-start-radius: 1.2cqw;
  background: color-mix(in srgb, var(--blue) 12%, var(--m-card));
  font-size: 3.6cqw;
}

.m-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.6cqw 4cqw;
  padding: 0 4cqw;
}

.m-keypad span {
  display: grid;
  place-items: center;
  aspect-ratio: 1.6;
  border-radius: 999px;
  background: color-mix(in srgb, var(--m-text) 7%, transparent);
  font-size: 5cqw;
  font-weight: 500;
}

.m-send {
  display: block;
  margin: 4cqw 4cqw 0;
  padding: 2.6cqw;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 650;
  text-align: center;
  font-size: 3.6cqw;
}

/* Android bridge app */
.m-bridge-head {
  display: flex;
  align-items: center;
  gap: 2.4cqw;
  margin: 3cqw 0 4cqw;
  font-size: 4.6cqw;
}

.m-bridge-head .logo-mark {
  width: 8cqw;
  height: 8cqw;
}

.m-bridge-status {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 1cqw;
  padding: 4.5cqw;
  padding-inline-start: 11cqw;
  border-radius: 5cqw;
  background: color-mix(in srgb, var(--green) 14%, var(--m-card));
  border: 1px solid color-mix(in srgb, var(--green) 30%, transparent);
}

.m-bridge-status strong {
  font-size: 4.2cqw;
}

.m-pulse {
  position: absolute;
  inset-inline-start: 4.5cqw;
  top: 5.6cqw;
  width: 3cqw;
  height: 3cqw;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(18, 184, 134, 0.6);
  }

  100% {
    box-shadow: 0 0 0 3cqw rgba(18, 184, 134, 0);
  }
}

.m-bridge-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3cqw;
  margin: 3.5cqw 0;
}

.m-bridge-stats > div {
  display: grid;
  gap: 1cqw;
  padding: 3.2cqw 3.8cqw;
  border-radius: 4cqw;
  background: var(--m-card);
  border: 1px solid var(--m-line);
}

.m-bridge-stats strong {
  font-size: 5.4cqw;
  line-height: 1.1;
}

.m-bridge-stats .m-signal {
  height: 5cqw;
  color: var(--green-strong);
}

.m-label {
  margin: 4cqw 0 1.6cqw;
  font-size: 3.2cqw;
  font-weight: 650;
  color: var(--m-muted);
}

.m-toggles {
  list-style: none;
  margin: 0;
  padding: 0 4cqw;
  border-radius: 5cqw;
  background: var(--m-card);
  border: 1px solid var(--m-line);
}

.m-toggles li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3.1cqw 0;
  font-size: 3.8cqw;
  font-weight: 550;
  border-bottom: 1px solid var(--m-line);
}

.m-toggles li:last-child {
  border-bottom: 0;
}

.m-switch {
  position: relative;
  width: 9.5cqw;
  height: 5.6cqw;
  border-radius: 999px;
  background: var(--green);
}

.m-switch::after {
  content: "";
  position: absolute;
  top: 0.7cqw;
  inset-inline-end: 0.7cqw;
  width: 4.2cqw;
  height: 4.2cqw;
  border-radius: 50%;
  background: #fff;
}

.m-sims {
  display: grid;
  gap: 2.4cqw;
  margin-top: 3.5cqw;
}

.m-sims > div {
  display: flex;
  align-items: center;
  gap: 2.4cqw;
  padding: 3cqw 3.8cqw;
  border-radius: 4cqw;
  background: var(--m-card);
  border: 1px solid var(--m-line);
  font-size: 3.6cqw;
}

.m-sims .m-sim {
  display: grid;
  place-items: center;
  min-width: 9cqw;
  height: 6cqw;
  padding: 0 1.6cqw;
  border-radius: 1.6cqw;
  background: var(--blue);
  color: #fff;
  font-size: 2.9cqw;
}

.m-sims .m-signal {
  margin-inline-start: auto;
  color: var(--green-strong);
}

/* Android pairing */
.m-pair {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.m-pair .m-title {
  margin-top: 9cqw;
}

.m-pair .m-bridge-head {
  justify-content: center;
}

.m-pair .m-title {
  font-size: 6.4cqw;
  margin-top: 5cqw;
}

.m-qr {
  width: 64cqw;
  margin: 5cqw auto;
  padding: 4cqw;
  border-radius: 5cqw;
  background: #fff;
  color: #0b1324;
  box-shadow: 0 2cqw 8cqw rgba(15, 30, 60, 0.14);
}

.m-pair .m-sub {
  display: block;
  font-size: 3.5cqw;
  padding: 0 4cqw;
}

.m-pill {
  display: inline-flex;
  align-items: center;
  gap: 1.4cqw;
  margin-top: 5cqw;
  padding: 1.8cqw 3.4cqw;
  border-radius: 999px;
  background: color-mix(in srgb, var(--green) 14%, var(--m-card));
  color: var(--green-strong);
  font-size: 3.2cqw;
  font-weight: 650;
}

/* ───────── Motion & print ───────── */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .copy-btn,
  .hero-visual,
  .gallery {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}

/* ───────── Open Graph image template (1200×630) ───────── */

.og-page .site-header,
.og-page .site-footer,
.og-page .skip-link {
  display: none;
}

.og-canvas {
  position: relative;
  isolation: isolate;
  width: 1200px;
  height: 630px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 620px 1fr;
  align-items: center;
  padding: 0 60px;
  background: var(--bg);
}

.og-canvas h1 {
  font-size: 64px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 18px 0 26px;
}

.lang-fa .og-canvas h1,
.lang-ar .og-canvas h1 {
  font-size: 54px;
  line-height: 1.4;
  letter-spacing: 0;
}

.og-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-size: 34px;
  font-weight: 760;
  letter-spacing: -0.02em;
  font-family: var(--font);
}

.og-brand .logo-mark {
  width: 56px;
  height: 56px;
}

.og-canvas .hero-points {
  font-size: 22px;
  gap: 12px 26px;
}

.og-canvas .hero-points .icon {
  width: 24px;
  height: 24px;
}

.og-canvas .hero-visual {
  min-height: 0;
  transform: scale(0.94);
}

.og-canvas .hero-android {
  --w: 205px;
}

.og-canvas .hero-iphone {
  --w: 222px;
}
