/* The product sites (submarine.sinaxhpm.com, echoes.sinaxhpm.com): one style
   sheet, themed per site by <body data-site>. No inline styles anywhere (the
   server's CSP is style-src 'self'); logical properties, so right-to-left
   pages mirror on their own; motion only when the reader allows it. */

/* ---- fonts (self-hosted, OFL; each subset loads only when a page uses it) ---- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-latin-wght-normal.3100e775e8.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-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("/assets/fonts/inter-latin-ext-wght-normal.34b9c504ca.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: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-cyrillic-wght-normal.71d5ee93cc.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Vazirmatn"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/vazirmatn-arabic-wght-normal.84a382e46c.woff2") format("woff2");
  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; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/jetbrains-mono-latin-400-normal.14425ba9c6.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: dark;
  --bg: #04070f;
  --bg-2: #060b16;
  --card: #0a1120;
  --card-2: #0e172a;
  --glass: rgba(15, 23, 42, 0.55);
  --line: rgba(148, 163, 184, 0.13);
  --line-2: rgba(148, 163, 184, 0.24);
  --text: #e7edf6;
  --soft: #c6d0de;
  --muted: #95a3b8;
  --faint: #66758c;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --accent: #22d3ee;
  --accent-2: #a78bfa;
  --a: 34, 211, 238;
  --b: 167, 139, 250;
  --accent-ink: #02121a;
  --radius: 18px;
  --radius-sm: 11px;
  --max: 1180px;
  --text-max: 780px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
}
body[data-site="echoes"] {
  --accent: #2dd4bf;
  --accent-2: #818cf8;
  --a: 45, 212, 191;
  --b: 129, 140, 248;
  --accent-ink: #022019;
}
:lang(fa), :lang(ar) { --font: "Vazirmatn", "Inter", Tahoma, "Segoe UI", system-ui, sans-serif; }
:lang(zh-Hans) { --font: "Inter", system-ui, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; }
:lang(ja) { --font: "Inter", system-ui, "Hiragino Sans", "Yu Gothic UI", "Meiryo", "Noto Sans CJK JP", sans-serif; }
:lang(hi) { --font: "Inter", system-ui, "Nirmala UI", "Noto Sans Devanagari", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 var(--font); font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
:lang(fa) body, :lang(ar) body { line-height: 1.85; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(var(--a), 0.3); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.02em; }
:lang(fa) :is(h1, h2, h3, h4), :lang(ar) :is(h1, h2, h3, h4), :lang(hi) :is(h1, h2, h3, h4), :lang(ja) :is(h1, h2, h3, h4), :lang(zh-Hans) :is(h1, h2, h3, h4) { letter-spacing: 0; line-height: 1.35; }
h1 { font-size: clamp(2.4rem, 5.2vw + 0.4rem, 4.4rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 2.6vw + 0.8rem, 2.8rem); letter-spacing: -0.03em; }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-inline-start: 1.25em; }
li + li { margin-top: 0.35em; }
code {
  font-family: var(--mono); font-size: 0.86em; background: rgba(148, 163, 184, 0.1);
  border: 1px solid var(--line); border-radius: 7px; padding: 0.08em 0.4em;
  direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere;
}
code.hash { word-break: break-all; }
strong { color: #fff; font-weight: 650; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: 22px; }
.narrow { max-width: var(--text-max); }
.muted { color: var(--muted); }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.grad { background: linear-gradient(100deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip { position: absolute; inset-inline-start: 12px; top: -80px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 9px 15px; border-radius: 10px; font-weight: 650; }
.skip:focus { top: 12px; }

/* ---- header ---- */
.site-head { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid transparent; transition: background 0.25s, border-color 0.25s; }
.site-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(4, 7, 15, 0.72); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); font-weight: 750; font-size: 1.12rem; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.nav > a { color: var(--muted); padding: 8px 12px; border-radius: 10px; font-size: 0.94rem; font-weight: 500; }
.nav > a:hover, .nav > a[aria-current="page"] { color: var(--text); background: rgba(148, 163, 184, 0.08); text-decoration: none; }
.nav .icon-link { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; }
.nav .icon-link svg { width: 19px; height: 19px; }
.nav > .cta { margin-inline-start: 8px; }
.pop { position: relative; }
.pop > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 7px; color: var(--muted); padding: 8px 12px; border-radius: 10px; font-size: 0.94rem; user-select: none; }
.pop > summary::-webkit-details-marker { display: none; }
.pop > summary:hover, .pop[open] > summary { color: var(--text); background: rgba(148, 163, 184, 0.08); }
.pop > summary svg { width: 18px; height: 18px; flex: none; }
.pop-panel {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 45; min-width: 210px; padding: 7px; border-radius: 14px;
  background: rgba(10, 17, 32, 0.97); border: 1px solid var(--line-2); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.pop-panel a { display: block; color: var(--soft); padding: 8px 12px; border-radius: 9px; font-size: 0.94rem; }
.pop-panel a:hover { background: rgba(148, 163, 184, 0.09); color: var(--text); text-decoration: none; }
.pop-panel a[aria-current="true"] { color: var(--accent); }
.lang-list { display: grid; grid-template-columns: 1fr 1fr; min-width: 320px; }
.menu { display: none; }
.menu .pop-panel { min-width: 280px; }
.menu .pop-panel hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
@media (max-width: 900px) {
  .nav { display: none; }
  .menu { display: block; margin-inline-start: auto; }
  .lang-list { min-width: 0; }
}

/* ---- buttons, pills ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 20px; border-radius: 12px;
  font-weight: 650; font-size: 0.98rem; color: var(--text); background: rgba(148, 163, 184, 0.08); border: 1px solid var(--line-2);
  transition: transform 0.15s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn:hover { text-decoration: none; background: rgba(148, 163, 184, 0.14); border-color: rgba(148, 163, 184, 0.34); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.primary { color: var(--accent-ink); border-color: transparent; background: linear-gradient(110deg, var(--accent), var(--accent-2)); box-shadow: 0 10px 30px -10px rgba(var(--a), 0.6); }
.btn.primary:hover { box-shadow: 0 14px 36px -10px rgba(var(--a), 0.8); filter: brightness(1.06); }
.btn.small { padding: 8px 14px; font-size: 0.9rem; border-radius: 10px; }
.btn.danger { color: #1a0505; border-color: transparent; background: var(--danger); }
.btn.danger:hover { background: #fb8f8f; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
@media (prefers-reduced-motion: no-preference) { .btn:active { transform: translateY(1px); } }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 8px; border-radius: 999px;
  border: 1px solid rgba(var(--a), 0.35); background: rgba(var(--a), 0.08); color: var(--soft); font-size: 0.88rem; font-weight: 550;
}
.pill b { color: var(--accent-ink); background: var(--accent); border-radius: 999px; padding: 1px 9px; font-size: 0.78rem; font-weight: 750; }
.badge {
  display: inline-block; vertical-align: middle; margin-inline-start: 8px; font-size: 0.7rem; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--warn); border: 1px solid rgba(251, 191, 36, 0.45); background: rgba(251, 191, 36, 0.08); padding: 2px 8px; border-radius: 999px;
}
:lang(fa) .badge, :lang(ar) .badge, :lang(ja) .badge, :lang(zh-Hans) .badge, :lang(hi) .badge { letter-spacing: 0; text-transform: none; }
.kicker { display: inline-block; color: var(--accent); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px; }
:lang(fa) .kicker, :lang(ar) .kicker, :lang(ja) .kicker, :lang(zh-Hans) .kicker, :lang(hi) .kicker { letter-spacing: 0; text-transform: none; font-size: 0.92rem; }

/* ---- sections ---- */
section { position: relative; padding-block: 104px; }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.12rem; margin: 0; }
.alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid var(--line); }
@media (max-width: 720px) { section { padding-block: 72px; } .section-head { margin-bottom: 40px; } }

/* ---- hero ---- */
.hero { padding-block: 84px 72px; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 760px; z-index: -1;
  background:
    radial-gradient(520px 320px at 22% 32%, rgba(var(--a), 0.22), transparent 70%),
    radial-gradient(560px 360px at 80% 20%, rgba(var(--b), 0.2), transparent 70%);
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent);
}
.hero::after {
  content: ""; position: absolute; inset: 0 0 auto; height: 720px; z-index: -1; opacity: 0.5;
  background-image: linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 30%, transparent 75%);
}
.hero-copy { text-align: center; max-width: 920px; margin-inline: auto; }
.hero-copy .pill { margin-bottom: 26px; }
.hero h1 { margin-bottom: 22px; }
.hero .lede { color: var(--soft); font-size: clamp(1.06rem, 0.6vw + 0.96rem, 1.3rem); max-width: 760px; margin: 0 auto 34px; }
.hero .btn-row { justify-content: center; }
.trust { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; color: var(--muted); font-size: 0.94rem; }
.trust li { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.trust li svg { width: 17px; height: 17px; color: var(--ok); flex: none; }
.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.platforms span { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 0.86rem; background: rgba(148, 163, 184, 0.04); }
.platforms svg { width: 15px; height: 15px; }
.hero-stage { position: relative; margin: 64px auto 0; max-width: 1120px; }
.hero-stage .shot { position: relative; z-index: 1; }
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .hero-stage .shot { transform: perspective(2400px) rotateX(7deg); transform-origin: 50% 0; transition: transform 0.6s ease; }
  .hero-stage:hover .shot { transform: perspective(2400px) rotateX(2deg); }
}
.hero-stage::before { content: ""; position: absolute; inset: 8% 6% -6%; z-index: 0; background: radial-gradient(closest-side, rgba(var(--a), 0.35), rgba(var(--b), 0.18) 55%, transparent); filter: blur(40px); }
.float-chip {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px;
  background: rgba(10, 17, 32, 0.88); border: 1px solid var(--line-2); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  font-size: 0.86rem; font-weight: 600; color: var(--soft); backdrop-filter: blur(8px);
}
.float-chip svg { width: 16px; height: 16px; color: var(--accent); }
.float-chip.c1 { top: 14%; inset-inline-start: -3%; }
.float-chip.c2 { top: 46%; inset-inline-end: -4%; }
.float-chip.c3 { bottom: 10%; inset-inline-start: 6%; }
@media (max-width: 1000px) { .float-chip { display: none; } }

/* ---- screenshots ---- */
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); background: var(--card); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.02) inset; }
.shot a { display: block; cursor: zoom-in; }
.shot.tall { max-width: 360px; margin-inline: auto; }
.shot.phone { max-width: 300px; margin-inline: auto; border-radius: 30px; border-width: 6px; border-color: #1b2436; }
.shot figcaption { padding: 10px 14px; font-size: 0.86rem; color: var(--muted); border-top: 1px solid var(--line); }

/* ---- "one app instead of" ---- */
.instead { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; }
.instead .old { padding: 7px 14px; border-radius: 999px; border: 1px dashed var(--line-2); color: var(--muted); font-size: 0.9rem; text-decoration: line-through; text-decoration-color: rgba(248, 113, 113, 0.7); }
.instead .arrow { color: var(--faint); font-size: 1.2rem; }
.instead .new { padding: 7px 16px; border-radius: 999px; background: linear-gradient(110deg, rgba(var(--a), 0.18), rgba(var(--b), 0.18)); border: 1px solid rgba(var(--a), 0.4); color: var(--text); font-weight: 650; }

/* ---- bento ---- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 26px; background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line); transition: border-color 0.25s, transform 0.25s;
}
.tile:hover { border-color: rgba(var(--a), 0.38); }
.tile.wide { grid-column: span 2; }
.tile.tall { grid-row: span 2; }
.tile h3 { margin: 14px 0 6px; font-size: 1.1rem; }
.tile p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.tile .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--accent); background: rgba(var(--a), 0.1); border: 1px solid rgba(var(--a), 0.25); }
.tile .ico svg { width: 22px; height: 22px; }
.tile .mini { margin: 18px -26px -26px; border-top: 1px solid var(--line); }
.tile .mini img { width: 100%; }
@media (max-width: 1020px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } .tile.wide { grid-column: auto; } }

/* ---- feature rows ---- */
.features { display: grid; gap: 96px; }
.feature { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.feature.flip .feature-text { order: 2; }
.feature-text h3 { font-size: clamp(1.45rem, 1.2vw + 1rem, 1.9rem); letter-spacing: -0.025em; }
.feature-text > p { color: var(--muted); font-size: 1.05rem; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { margin: 0; display: flex; gap: 11px; align-items: flex-start; color: var(--soft); }
.ticks li svg { flex: none; width: 19px; height: 19px; margin-top: 3px; color: var(--accent); }
@media (max-width: 900px) { .features { gap: 64px; } .feature { grid-template-columns: 1fr; gap: 26px; } .feature.flip .feature-text { order: 0; } }

/* ---- showcase (a section about one thing, with points) ---- */
.showcase { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; }
.points { display: grid; gap: 14px; }
.point { display: flex; gap: 14px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(148, 163, 184, 0.03); }
.point .ico { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--accent); background: rgba(var(--a), 0.1); }
.point .ico svg { width: 19px; height: 19px; }
.point h3 { font-size: 1.02rem; margin: 2px 0 4px; }
.point p { margin: 0; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 960px) { .showcase { grid-template-columns: 1fr; } }

/* ---- cards ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.card { background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { margin-bottom: 0.45em; }
.card p { color: var(--muted); margin: 0; }
.card .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(var(--a), 0.1); color: var(--accent); margin-bottom: 16px; }
.card .ico svg { width: 21px; height: 21px; }
.glow-card { position: relative; border-radius: calc(var(--radius) + 4px); padding: 1px; background: linear-gradient(130deg, rgba(var(--a), 0.55), rgba(148, 163, 184, 0.12) 40%, rgba(var(--b), 0.5)); }
.glow-card > .inner { border-radius: var(--radius); background: linear-gradient(180deg, #0b1324, #070d1a); padding: 40px; }
@media (max-width: 640px) { .glow-card > .inner { padding: 26px 20px; } }
.more { margin-top: 30px; text-align: center; }
.more a { font-weight: 650; display: inline-flex; align-items: center; gap: 8px; }
.more a svg, .arrow-ico { width: 17px; height: 17px; }
[dir="rtl"] .arrow-ico, [dir="rtl"] .more a svg { transform: scaleX(-1); }

/* ---- free ---- */
.free { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; }
.free .big { font-size: clamp(3.6rem, 7vw, 6rem); font-weight: 850; letter-spacing: -0.05em; line-height: 1; margin: 0 0 10px; }
.free .big + p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { margin: 0; display: flex; gap: 12px; align-items: flex-start; color: var(--soft); font-size: 1.03rem; }
.checks li svg { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 50%; color: var(--ok); background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.35); margin-top: 2px; }
@media (max-width: 860px) { .free { grid-template-columns: 1fr; text-align: center; } .checks { text-align: start; } }

/* ---- download ---- */
.platform-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.platform-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: var(--radius); background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); }
.platform-card .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--text); background: rgba(148, 163, 184, 0.08); }
.platform-card .ico svg { width: 23px; height: 23px; }
.platform-card h3 { margin: 6px 0 0; font-size: 1.15rem; }
.platform-card p { color: var(--muted); font-size: 0.93rem; flex: 1; margin: 0; }
.platform-card .btn { margin-top: 12px; }
@media (max-width: 1020px) { .platform-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .platform-cards { grid-template-columns: 1fr; } }
.note { margin-top: 22px; padding: 15px 18px; border-radius: 13px; background: rgba(251, 191, 36, 0.06); border: 1px solid rgba(251, 191, 36, 0.24); color: var(--soft); font-size: 0.95rem; }
.verify-box { margin-top: 22px; padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(148, 163, 184, 0.03); }
.verify-box h3 { font-size: 1.02rem; display: flex; align-items: center; gap: 9px; }
.verify-box h3 svg { width: 18px; height: 18px; color: var(--ok); }
.verify-box ul { color: var(--muted); margin: 0; }

/* ---- faq ---- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { border-radius: 14px; border: 1px solid var(--line); background: rgba(148, 163, 184, 0.03); transition: border-color 0.2s, background 0.2s; }
.faq details[open] { border-color: rgba(var(--a), 0.35); background: rgba(var(--a), 0.04); }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 18px; height: 18px; color: var(--muted); transition: transform 0.2s; }
.faq details[open] summary svg { transform: rotate(45deg); color: var(--accent); }
.faq details > div { padding: 0 22px 18px; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }

/* ---- footer ---- */
.site-foot { border-top: 1px solid var(--line); padding-block: 64px 40px; color: var(--muted); font-size: 0.93rem; background: linear-gradient(180deg, var(--bg), #02040a); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr) 1.4fr; gap: 32px; }
.foot-grid h4 { color: var(--text); font-size: 0.86rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
:lang(fa) .foot-grid h4, :lang(ar) .foot-grid h4, :lang(ja) .foot-grid h4, :lang(zh-Hans) .foot-grid h4, :lang(hi) .foot-grid h4 { letter-spacing: 0; text-transform: none; font-size: 0.95rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot-grid li { margin: 0; }
.foot-grid a { color: var(--muted); }
.foot-grid a:hover { color: var(--text); }
.foot-about p { margin: 12px 0 0; }
.sister { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(148, 163, 184, 0.03); color: var(--soft); }
.sister:hover { border-color: var(--line-2); text-decoration: none; }
.sister img { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.sister b { display: block; color: var(--text); }
.sister span { font-size: 0.88rem; color: var(--muted); }
.foot-langs { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.88rem; }
.foot-langs a { color: var(--faint); }
.foot-langs a[aria-current="true"] { color: var(--text); }
.foot-bottom { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--faint); font-size: 0.86rem; }
@media (max-width: 980px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-about, .foot-sister { grid-column: 1 / -1; } }

/* ---- documents (security, privacy, delete) ---- */
.doc-hero { padding-block: 72px 36px; border-bottom: 1px solid var(--line); background: radial-gradient(700px 260px at 15% 0%, rgba(var(--a), 0.13), transparent 70%), radial-gradient(600px 240px at 90% 10%, rgba(var(--b), 0.11), transparent 70%); }
.doc-hero h1 { font-size: clamp(2rem, 3.2vw + 0.8rem, 3.2rem); max-width: 900px; }
.doc-hero .lede { color: var(--soft); font-size: 1.15rem; max-width: 800px; margin: 0; }
.doc-hero .meta { color: var(--faint); font-size: 0.9rem; margin-top: 14px; }
.translation-note { display: inline-block; margin-bottom: 20px; padding: 9px 14px; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(148, 163, 184, 0.05); color: var(--muted); font-size: 0.9rem; }
.doc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; padding-block: 48px 104px; }
.toc { position: sticky; top: 96px; align-self: start; font-size: 0.9rem; }
.toc b { display: block; color: var(--text); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
:lang(fa) .toc b, :lang(ar) .toc b, :lang(ja) .toc b, :lang(zh-Hans) .toc b, :lang(hi) .toc b { letter-spacing: 0; text-transform: none; font-size: 0.9rem; }
.toc ol { list-style: none; padding: 0; margin: 0; border-inline-start: 1px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 14px; color: var(--muted); border-inline-start: 2px solid transparent; margin-inline-start: -1px; }
.toc a:hover { color: var(--text); text-decoration: none; }
.toc a.active { color: var(--accent); border-inline-start-color: var(--accent); }
.doc-body { max-width: 800px; }
.doc-body > section { padding-block: 0 44px; margin-bottom: 44px; border-bottom: 1px solid var(--line); }
.doc-body > section:last-child { border-bottom: 0; }
.doc-body h2 { font-size: 1.6rem; letter-spacing: -0.02em; }
.doc-body h3 { font-size: 1.08rem; margin-top: 1.4em; }
.doc-body p, .doc-body li { color: var(--soft); }
@media (max-width: 960px) { .doc { grid-template-columns: 1fr; gap: 0; } .toc { display: none; } }
.summary-box { border-radius: var(--radius); padding: 26px 28px; background: linear-gradient(180deg, rgba(var(--a), 0.08), rgba(var(--b), 0.04)); border: 1px solid rgba(var(--a), 0.28); }
.summary-box h2 { font-size: 1.25rem; }
.summary-box ul { margin: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.two-col > div { border-radius: var(--radius); padding: 22px 24px; border: 1px solid var(--line); background: rgba(148, 163, 184, 0.03); }
.two-col h3 { margin-top: 0; font-size: 1.02rem; display: flex; align-items: center; gap: 10px; }
.two-col h3 svg { width: 19px; height: 19px; flex: none; }
.two-col .cannot { border-color: rgba(52, 211, 153, 0.3); }
.two-col .cannot h3 svg { color: var(--ok); }
.two-col .can { border-color: rgba(251, 191, 36, 0.28); }
.two-col .can h3 svg { color: var(--warn); }
.two-col ul { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.flow { margin: 22px 0 6px; display: grid; gap: 14px; }
.flow-zone { border: 1px dashed rgba(52, 211, 153, 0.45); border-radius: var(--radius); padding: 16px 18px 18px; background: rgba(52, 211, 153, 0.03); }
.flow-zone > span { display: block; font-size: 0.82rem; color: var(--ok); margin-bottom: 10px; font-weight: 650; }
.flow-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.chip { padding: 9px 13px; border-radius: 11px; background: var(--card-2); border: 1px solid var(--line-2); font-weight: 600; font-size: 0.94rem; }
.chip.op { background: transparent; border-style: dashed; color: var(--accent); font-family: var(--mono); font-size: 0.82rem; font-weight: 500; }
.chip.server { border-color: rgba(251, 191, 36, 0.45); }
.arrow { color: var(--faint); }
.arrow::before { content: "→"; }
[dir="rtl"] .arrow::before { content: "←"; }
.flow figcaption { color: var(--muted); font-size: 0.92rem; }
.code-links { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 7px; }
.code-links li { margin: 0; font-size: 0.92rem; }
.code-links a { display: inline-flex; gap: 8px; align-items: center; }
.code-links a svg { width: 15px; height: 15px; flex: none; }
.code-links span { color: var(--faint); font-family: var(--mono); font-size: 0.78rem; direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
pre {
  margin: 14px 0; padding: 18px 20px; overflow-x: auto; border-radius: 14px; background: #050914; border: 1px solid var(--line);
  font: 0.84rem/1.65 var(--mono); color: #c9d4e5; direction: ltr; text-align: left;
}
pre code { background: none; border: 0; padding: 0; font-size: inherit; }
pre .k { color: #7dd3fc; }
pre .s { color: #86efac; }
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 12px; }
.steps li { counter-increment: step; margin: 0; padding: 18px 20px; border-radius: 14px; background: rgba(148, 163, 184, 0.03); border: 1px solid var(--line); }
.steps li h3 { margin: 0 0 4px; font-size: 1.02rem; display: flex; gap: 12px; align-items: center; }
.steps li h3::before { content: counter(step); flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-family: var(--mono); font-size: 0.82rem; color: var(--accent-ink); background: var(--accent); }
.steps li p { margin: 0; color: var(--muted); }
table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
th, td { text-align: start; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { color: var(--text); font-weight: 650; background: rgba(148, 163, 184, 0.06); }
td { color: var(--soft); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; margin: 16px 0; }
.table-wrap table { margin: 0; }
.table-wrap tr:last-child td { border-bottom: 0; }
.params td:first-child { white-space: nowrap; color: var(--text); font-weight: 600; }
.params td:last-child { font-family: var(--mono); font-size: 0.82rem; }
:lang(fa) .params td:last-child, :lang(ar) .params td:last-child, :lang(zh-Hans) .params td:last-child, :lang(ja) .params td:last-child, :lang(hi) .params td:last-child { font-family: var(--font); font-size: 0.9rem; }
@media (max-width: 640px) { .params td:first-child { white-space: normal; } }

/* ---- delete form ---- */
.delete-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 40px; align-items: start; padding-block: 48px 104px; }
.delete-grid .form-card { position: sticky; top: 96px; }
@media (max-width: 960px) { .delete-grid { grid-template-columns: 1fr; } .delete-grid .form-card { position: static; } }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 7px; font-weight: 600; font-size: 0.95rem; }
.form input[type="email"], .form input[type="password"] { font: inherit; color: var(--text); background: #050914; border: 1px solid var(--line-2); border-radius: 11px; padding: 12px 14px; width: 100%; }
.form input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(var(--a), 0.22); }
.form .hint { font-weight: 400; color: var(--faint); font-size: 0.85rem; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); }
.form .check input { margin-top: 5px; width: 17px; height: 17px; accent-color: var(--danger); flex: none; }
.form .btn.danger { justify-self: start; }
.form-status { min-height: 1.6em; font-weight: 600; margin-top: 12px; }
.form-status.error { color: var(--danger); }
.form-status.ok { color: var(--ok); }
.js-only[hidden] { display: none; }
.no-js-note { color: var(--warn); }

/* ---- 404 ---- */
.nf { min-height: 64vh; display: grid; place-items: center; text-align: center; padding-block: 96px; }
.nf .code { font-size: clamp(4rem, 12vw, 8rem); font-weight: 850; letter-spacing: -0.05em; line-height: 1; margin-bottom: 10px; }

/* ---- the picture viewer (site.js) ---- */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(2, 4, 10, 0.88); backdrop-filter: blur(4px); }
.lightbox img { max-width: 96vw; max-height: 90vh; width: auto; height: auto; border-radius: 12px; border: 1px solid var(--line-2); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7); }
.lightbox button { position: fixed; top: 16px; inset-inline-end: 16px; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(10, 17, 32, 0.9); color: var(--text); font-size: 1.4rem; cursor: pointer; }

/* ---- appear on scroll (only below the fold, only with motion allowed; site.js) ---- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { transition: opacity 0.7s ease, transform 0.7s ease; }
  .reveal.pre { opacity: 0; transform: translateY(22px); }
}

/* ---- additions ---- */
:is(h1, h2) em { font-style: normal; background: linear-gradient(100deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.instead-band { padding-block: 34px; }
.instead-band p { margin-bottom: 14px; font-size: 0.95rem; }
.duo { display: grid; grid-template-columns: 2.4fr 1fr; gap: 14px; margin-top: 14px; align-items: start; }
.duo .shot { border-radius: 14px; }
.note em, .doc-body em { color: var(--soft); }

/* ---- a picture with a phone in front of it ---- */
.combo { position: relative; }
.combo > .shot:first-child { position: relative; z-index: 1; }
.combo .over { position: absolute; z-index: 2; width: 24%; max-width: 240px; inset-inline-end: -5%; bottom: -9%; margin: 0; border-radius: 22px; border-width: 5px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7); }
.feature .combo .over { width: 26%; inset-inline-end: -3%; bottom: -10%; }
.hero-stage.narrow { max-width: 860px; }
@media (max-width: 700px) { .combo .over { border-radius: 14px; border-width: 3px; inset-inline-end: -2%; } }
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .hero-stage.combo .shot.over { transform: none; }
  .hero-stage.combo:hover .shot.over { transform: none; }
}

/* ---- tools, grouped ---- */
.tool-groups { display: grid; gap: 36px; }
.tool-group h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; color: var(--soft); margin-bottom: 14px; }
.tool-group h3 span { font-size: 0.78rem; font-weight: 650; color: var(--accent); background: rgba(var(--a), 0.1); border: 1px solid rgba(var(--a), 0.3); border-radius: 999px; padding: 1px 9px; }
.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tool { display: flex; gap: 13px; align-items: flex-start; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--card-2), var(--card)); transition: border-color 0.2s; }
.tool:hover { border-color: rgba(var(--a), 0.38); }
.tool .ico { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--accent); background: rgba(var(--a), 0.1); }
.tool .ico svg { width: 19px; height: 19px; }
.tool b { display: block; color: var(--text); font-weight: 650; margin-bottom: 2px; }
.tool span { display: block; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
@media (max-width: 1020px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tool-grid { grid-template-columns: 1fr; } }

/* ---- a row of pictures with captions ---- */
.more-title { margin: 96px 0 24px; font-size: 1.3rem; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .gallery { grid-template-columns: 1fr; } }

/* ---- devices ---- */
.devices { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 28px; }
.devices .shot { margin: 0; flex: none; }
.devices .shot.phone { width: 250px; }
.devices .shot.tablet { width: 400px; }
.shot.tablet { border-radius: 26px; border-width: 8px; border-color: #1b2436; }
@media (max-width: 700px) { .devices .shot.phone { width: 60vw; } .devices .shot.tablet { width: 86vw; } }
.center-note { max-width: 760px; margin-inline: auto; text-align: center; }

/* ---- downloads with several files ---- */
.platform-cards.five { grid-template-columns: repeat(5, 1fr); }
.platform-card.featured { border-color: rgba(var(--a), 0.45); background: linear-gradient(180deg, rgba(var(--a), 0.1), var(--card)); }
.dl-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dl-links .btn { margin: 0; }
@media (max-width: 1100px) { .platform-cards.five { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .platform-cards.five { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .platform-cards.five { grid-template-columns: 1fr; } }
.verify-box > ul { margin: 0; color: var(--muted); }
.showcase { align-items: start; }
.form-card h2 { font-size: 1.35rem; letter-spacing: -0.01em; }
.form-card .inner { padding: 30px; }
.float-chip.c4 { top: 6%; inset-inline-end: -6%; }
