/* Sorelo marketing site — one stylesheet for /en/ and /fa/.
 *
 * Direction: the brand film ("Your ideas. In motion."). A near-black stage,
 * big tight display type, real product output as the imagery, and the
 * coral → pink → violet gradient kept for the few moments that earn it
 * (DESIGN.md: never a page background). One warm paper section breaks the
 * dark rhythm the way the film's "A style. All yours." frame does.
 *
 * Written with logical properties throughout so the same rules lay out
 * right-to-left on /fa/ without a mirrored copy.
 */

/* ---------- fonts (self-hosted: Google Fonts is unreliable from Iran) ---------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-opsz.woff2?v=2870bcb8ec") format("woff2-variations"), url("../fonts/inter-opsz.woff2?v=2870bcb8ec") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/vazirmatn-arabic.woff2?v=55397bc2e5") format("woff2-variations"), url("../fonts/vazirmatn-arabic.woff2?v=55397bc2e5") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  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: "Vazirmatn";
  src: url("../fonts/vazirmatn-latin.woff2?v=ee0a5328e8") format("woff2-variations"), url("../fonts/vazirmatn-latin.woff2?v=ee0a5328e8") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2212, U+FEFF;
}

/* ---------- tokens ---------- */
:root {
  --bg: #07080d;
  --bg-raise: #0d0f17;
  --bg-card: #11131c;
  --paper: #f3f0e9;
  --paper-ink: #16151a;
  --paper-ink-2: #5c5a63;
  --ink: #f4f5f8;
  --ink-2: rgba(244, 245, 248, 0.66);
  --ink-3: rgba(244, 245, 248, 0.44);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --glass: rgba(18, 20, 30, 0.62);
  --coral: #ff5a5f;
  --pink: #f43f8f;
  --violet: #7c3aed;
  --violet-glow: rgba(124, 58, 237, 0.45);
  --grad: linear-gradient(120deg, #ff6a4d 0%, #f5238c 45%, #8b3bf0 100%);
  --lime: #d7ff5a;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display-track: -0.045em;
  --h2-track: -0.035em;
  --display-lh: 0.94;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-settle: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}
html:is([lang="fa"], [lang="ar"]) {
  --font: "Vazirmatn", "Inter", ui-sans-serif, system-ui, sans-serif;
  /* Persian has no case and joins letters: negative tracking breaks the
     joins and tight leading clips the dots, so both are relaxed. */
  --display-track: 0;
  --h2-track: 0;
  --display-lh: 1.18;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--pink); color: #fff; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: #fff; color: #000; padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { position: relative; padding-block: clamp(96px, 14vw, 180px); overflow-x: clip; }
.section--tight { padding-block: clamp(64px, 9vw, 120px); }
.center { text-align: center; }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
}
html:is([lang="fa"], [lang="ar"]) .eyebrow { letter-spacing: 0; font-size: 14px; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 12px var(--pink); }
.display {
  margin: 0;
  font-size: clamp(52px, 10.4vw, 148px);
  font-weight: 750;
  line-height: var(--display-lh);
  letter-spacing: var(--display-track);
  font-variation-settings: "opsz" 32;
  text-wrap: balance;
}
html:is([lang="fa"], [lang="ar"]) .display { font-weight: 850; font-size: clamp(46px, 8.6vw, 124px); }
.h2 {
  margin: 0;
  font-size: clamp(40px, 6.4vw, 88px);
  font-weight: 720;
  line-height: 0.98;
  letter-spacing: var(--h2-track);
  font-variation-settings: "opsz" 32;
  text-wrap: balance;
}
html:is([lang="fa"], [lang="ar"]) .h2 { line-height: 1.22; font-weight: 820; font-size: clamp(34px, 5.4vw, 72px); }
.h3 { margin: 0; font-size: clamp(22px, 2.2vw, 28px); font-weight: 680; letter-spacing: -0.02em; line-height: 1.15; }
html:is([lang="fa"], [lang="ar"]) .h3 { letter-spacing: 0; line-height: 1.4; font-weight: 750; }
.lede { margin: 0; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5; color: var(--ink-2); max-width: 36em; text-wrap: pretty; }
html:is([lang="fa"], [lang="ar"]) .lede { line-height: 1.85; }
.muted { color: var(--ink-2); }
.dim { color: var(--ink-3); }
.head { display: grid; gap: 22px; margin-block-end: clamp(48px, 7vw, 88px); }
.head.center { justify-items: center; }
.head.center .lede { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding-inline: 24px; border-radius: 999px;
  font-size: 16px; font-weight: 620; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 0.5s var(--ease-settle), background-color 0.25s, box-shadow 0.35s, color 0.25s;
  will-change: transform;
}
html:is([lang="fa"], [lang="ar"]) .btn { letter-spacing: 0; font-weight: 700; }
.btn:active { transform: scale(0.96); transition-duration: 0.12s; }
.btn--light { background: #fff; color: #0a0a0f; }
.btn--light:hover { box-shadow: 0 10px 40px -8px rgba(255, 255, 255, 0.45); }
.btn--grad { background: var(--grad); color: #fff; box-shadow: 0 12px 40px -12px rgba(244, 63, 143, 0.7); }
.btn--grad:hover { box-shadow: 0 18px 60px -12px rgba(244, 63, 143, 0.85); }
.btn--ghost { background: rgba(255, 255, 255, 0.07); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn--sm { --h: 40px; padding-inline: 18px; font-size: 15px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.arrow { transition: transform 0.35s var(--ease-out); }
.btn:hover .arrow, .link:hover .arrow { transform: translateX(4px); }
[dir="rtl"] .arrow { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arrow, [dir="rtl"] .link:hover .arrow { transform: scaleX(-1) translateX(4px); }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 620; color: var(--ink); }
.link .arrow { width: 16px; height: 16px; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.center .stores { justify-content: center; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  height: 58px; padding-inline: 18px 22px; border-radius: 16px;
  background: #fff; color: #0a0a0f;
  transition: transform 0.5s var(--ease-settle), box-shadow 0.35s;
}
.store:hover { box-shadow: 0 14px 44px -10px rgba(255, 255, 255, 0.4); transform: translateY(-2px); }
.store:active { transform: scale(0.97); }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: grid; line-height: 1.1; text-align: start; }
.store small { font-size: 11px; font-weight: 500; opacity: 0.7; }
.store b { font-size: 18px; font-weight: 680; letter-spacing: -0.02em; }
html:is([lang="fa"], [lang="ar"]) .store b { letter-spacing: 0; font-size: 17px; }
.store--dark { background: rgba(255, 255, 255, 0.07); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.store--dark:hover { background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1px var(--line-2); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset-inline: 0; top: 14px; z-index: 50;
  display: flex; justify-content: center; pointer-events: none;
  transition: transform 0.6s var(--ease-out);
}
.nav__bar {
  pointer-events: auto;
  display: flex; align-items: center; gap: 6px;
  width: min(1120px, 100% - 24px); height: 60px; padding-inline: 10px 8px;
  border-radius: 999px;
  background: rgba(10, 11, 18, 0.5);
  -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px);
  box-shadow: inset 0 0 0 1px var(--line), 0 10px 40px -20px rgba(0, 0, 0, 0.8);
  transition: background-color 0.4s, box-shadow 0.4s;
}
.nav.is-scrolled .nav__bar { background: rgba(10, 11, 18, 0.78); }
.nav.is-hidden { transform: translateY(-120%); }
.nav__logo { display: flex; align-items: center; gap: 10px; padding-inline: 10px 14px; height: 44px; border-radius: 999px; }
.nav__logo img { width: auto; height: 30px; }
.nav__links { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.nav__links a {
  position: relative; padding: 9px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 560; color: var(--ink-2);
  transition: color 0.2s, background-color 0.2s;
}
.nav__links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 3px; margin-inline: auto;
  width: 4px; height: 4px; border-radius: 50%; background: var(--pink);
}
.nav__end { display: flex; align-items: center; gap: 6px; }
/* Language: one button (globe + current language) opening a short list of
   every locale in its own name. <details>, so it works before site.js runs. */
.lang { position: relative; }
.nav__lang {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding-inline: 12px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 650; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer; list-style: none; user-select: none;
  transition: color 0.2s, background-color 0.2s;
}
.nav__lang::-webkit-details-marker { display: none; }
.nav__lang svg { width: 17px; height: 17px; flex: none; }
.nav__lang span:is(:lang(fa), :lang(ar)), html:is([lang="fa"], [lang="ar"]) .nav__lang span { font-family: "Vazirmatn", var(--font); font-size: 15px; font-weight: 700; }
.nav__lang:hover, .lang[open] > .nav__lang { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.nav__lang:focus-visible { outline: 2px solid rgba(244, 63, 143, 0.6); outline-offset: 2px; }
.lang__menu {
  position: absolute; z-index: 30; inset-block-start: calc(100% + 8px); inset-inline-end: 0;
  min-width: 168px; margin: 0; padding: 6px; list-style: none; border-radius: 16px;
  background: rgba(20, 21, 28, 0.96); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 18px 50px -12px rgba(0, 0, 0, 0.8);
  transform-origin: top; animation: lang-in 0.18s var(--ease-settle, ease-out);
}
@keyframes lang-in { from { opacity: 0; transform: translateY(-4px) scale(0.98); } }
@media (prefers-reduced-motion: reduce) { .lang__menu { animation: none; } }
.lang__item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 42px; padding-inline: 12px; border-radius: 11px;
  font-size: 15px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
}
.lang__item:is(:lang(fa), :lang(ar)) { font-family: "Vazirmatn", var(--font); }
a.lang__item:hover, a.lang__item:focus-visible { color: var(--ink); background: rgba(255, 255, 255, 0.07); outline: none; }
.lang__item.is-current { color: var(--ink); }
.lang__item svg { width: 16px; height: 16px; flex: none; color: #ff6aa8; }
.nav__menu { display: none; width: 44px; height: 44px; border-radius: 50%; place-items: center; }
.nav__menu i { position: relative; display: block; width: 18px; height: 1.6px; background: currentColor; border-radius: 2px; transition: background-color 0.2s; }
.nav__menu i::before, .nav__menu i::after {
  content: ""; position: absolute; inset-inline: 0; height: 1.6px; background: currentColor; border-radius: 2px;
  transition: transform 0.45s var(--ease-out), top 0.45s var(--ease-out);
}
.nav__menu i::before { top: -6px; }
.nav__menu i::after { top: 6px; }
.nav.is-open .nav__menu i { background: transparent; }
.nav.is-open .nav__menu i::before { top: 0; transform: rotate(45deg); }
.nav.is-open .nav__menu i::after { top: 0; transform: rotate(-45deg); }

.sheet {
  position: fixed; inset: 0; z-index: 45; display: grid; align-content: start;
  padding: 100px var(--gutter) 40px; gap: 6px;
  background: rgba(7, 8, 13, 0.94);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0s 0.35s;
}
.sheet a.sheet__link {
  font-size: clamp(30px, 8vw, 44px); font-weight: 720; letter-spacing: -0.03em; padding-block: 6px;
  opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out);
}
html:is([lang="fa"], [lang="ar"]) .sheet a.sheet__link { letter-spacing: 0; }
.sheet .stores { margin-block-start: 28px; opacity: 0; transition: opacity 0.5s 0.25s; }
.nav.is-open + .sheet { opacity: 1; visibility: visible; transition: opacity 0.35s; }
.nav.is-open + .sheet a.sheet__link { opacity: 1; transform: none; }
.nav.is-open + .sheet .stores { opacity: 1; }
.nav.is-open + .sheet a.sheet__link:nth-child(2) { transition-delay: 0.04s; }
.nav.is-open + .sheet a.sheet__link:nth-child(3) { transition-delay: 0.08s; }
.nav.is-open + .sheet a.sheet__link:nth-child(4) { transition-delay: 0.12s; }
.nav.is-open + .sheet a.sheet__link:nth-child(5) { transition-delay: 0.16s; }
.nav.is-open + .sheet a.sheet__link:nth-child(6) { transition-delay: 0.2s; }

/* ---------- reveal ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(28px); filter: blur(10px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out), filter 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; filter: none; }
[data-split] .w { display: inline-block; white-space: pre; }
[data-split] .w > i {
  display: inline-block; font-style: normal;
  opacity: 0; transform: translateY(0.35em); filter: blur(12px);
  transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out), filter 0.9s var(--ease-out);
  transition-delay: calc(var(--i) * 70ms + var(--d, 0s));
}
[data-split].is-in .w > i { opacity: 1; transform: none; filter: none; }
.no-js [data-reveal], .no-js [data-split] .w > i { opacity: 1; transform: none; filter: none; }

/* ---------- phone ---------- */
.phone {
  --pw: 300px;
  position: relative; width: var(--pw); aspect-ratio: 9 / 19.5;
  border-radius: calc(var(--pw) * 0.16);
  padding: calc(var(--pw) * 0.024);
  background: linear-gradient(145deg, #2a2c36, #121319 40%, #1b1c24);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 0 0 3px #08090d,
    0 2px 2px rgba(0, 0, 0, 0.4),
    0 30px 60px -20px rgba(0, 0, 0, 0.85),
    0 80px 140px -40px rgba(124, 58, 237, 0.4);
}
.phone::before, .phone::after {
  content: ""; position: absolute; width: 3px; border-radius: 2px; background: #2c2e38;
}
.phone::before { inset-inline-start: -2px; top: 22%; height: 11%; }
.phone::after { inset-inline-end: -2px; top: 26%; height: 15%; }
.phone__screen {
  position: relative; width: 100%; height: 100%; overflow: hidden; background: #000;
  border-radius: calc(var(--pw) * 0.138);
  isolation: isolate;
}
.phone__screen > img, .phone__screen > video { width: 100%; height: 100%; object-fit: cover; }
.phone__island {
  position: absolute; z-index: 5; top: calc(var(--pw) * 0.034); left: 50%; translate: -50% 0;
  width: 32%; height: calc(var(--pw) * 0.09); border-radius: 999px; background: #000;
}
.phone__glare {
  position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 32%);
}

/* ---------- hero ---------- */
.hero { position: relative; height: 210vh; }
.hero__stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 620px;
  display: flex; flex-direction: column; align-items: center;
  padding-block-start: clamp(104px, 15vh, 156px);
  overflow: hidden;
  perspective: 1400px;
}
.hero__glow {
  position: absolute; inset: auto -20% -30% -20%; height: 90%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(50% 55% at 50% 100%, rgba(124, 58, 237, 0.55), transparent 70%),
    radial-gradient(30% 35% at 30% 90%, rgba(244, 63, 143, 0.28), transparent 70%),
    radial-gradient(30% 35% at 72% 92%, rgba(255, 90, 95, 0.18), transparent 70%);
  opacity: calc(0.55 + var(--p, 0) * 0.45);
}
.hero__grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__title {
  position: relative; z-index: 2;
  display: grid; justify-items: center; gap: 22px; text-align: center; padding-inline: var(--gutter);
  transform: translateY(calc(var(--p, 0) * -70px)) scale(calc(1 - var(--p, 0) * 0.06));
  opacity: calc(1 - var(--p, 0) * 1.1);
}
.hero__title .lede { text-align: center; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-block-start: 6px; }
.hero__device {
  position: relative; z-index: 3; flex: none;
  margin-block-start: clamp(36px, 6vh, 64px);
  transform-style: preserve-3d;
  /* --climb is measured by site.js: the distance that lands the phone
     centred in the viewport once the scene has played. */
  transform:
    translateY(calc(var(--p, 0) * var(--climb, -50vh)))
    rotateX(calc(24deg - var(--p, 0) * 24deg))
    scale(calc(0.92 + var(--p, 0) * 0.08));
  transform-origin: 50% 0;
  will-change: transform;
}
.hero__device .phone { --pw: clamp(250px, 24vw, 330px); }
.orbit {
  position: absolute; z-index: 2; width: clamp(120px, 12vw, 176px); border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  opacity: calc(var(--p, 0) * 1.6 - 0.2);
  will-change: transform, opacity;
}
.orbit img { width: 100%; }
.orbit--a { left: 50%; top: 50%; transform: translate(calc(-50% - var(--p, 0) * 30vw), calc(-10% + (1 - var(--p, 0)) * 28vh)) rotate(-8deg); }
.orbit--b { left: 50%; top: 50%; transform: translate(calc(-50% + var(--p, 0) * 30vw), calc(-40% + (1 - var(--p, 0)) * 34vh)) rotate(7deg); }
.orbit--c { left: 50%; top: 50%; transform: translate(calc(-50% - var(--p, 0) * 21vw), calc(-110% + (1 - var(--p, 0)) * 40vh)) rotate(5deg); width: clamp(104px, 9vw, 140px); }
.orbit--d { left: 50%; top: 50%; transform: translate(calc(-50% + var(--p, 0) * 22vw), calc(34% + (1 - var(--p, 0)) * 22vh)) rotate(-6deg); width: clamp(110px, 10vw, 150px); }
.orbit__tag {
  position: absolute; white-space: nowrap; inset-inline-start: 10px; bottom: 10px;
  padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 650;
  background: rgba(8, 9, 14, 0.7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

/* ---------- marquee ---------- */
.marquee {
  --gap: clamp(28px, 4vw, 56px);
  position: relative; display: flex; overflow: hidden; user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex; flex: none; gap: var(--gap); padding-inline-end: var(--gap);
  animation: marquee var(--dur, 60s) linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee--rev .marquee__track { animation-direction: reverse; }
[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes marquee-rtl { to { transform: translateX(100%); } }
.says { padding-block: clamp(40px, 6vw, 72px); border-block: 1px solid var(--line); }
.says__label { display: flex; justify-content: center; margin-block-end: 26px; }
.says__item {
  display: inline-flex; align-items: center; gap: var(--gap);
  font-size: clamp(28px, 4.2vw, 56px); font-weight: 700; letter-spacing: -0.035em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.28);
  transition: color 0.4s, -webkit-text-stroke-color 0.4s;
}
html:is([lang="fa"], [lang="ar"]) .says__item { letter-spacing: 0; font-weight: 800; -webkit-text-stroke: 0; color: rgba(255, 255, 255, 0.2); }
.says__item:nth-child(3n + 1) { color: var(--ink); -webkit-text-stroke-color: transparent; }
.says__item::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--grad); flex: none; }

/* ---------- split feature (caption stage) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.split--flip > :first-child { order: 2; }
.feature-copy { display: grid; gap: 24px; align-content: start; }
.bullets { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.bullets li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink-2); }
.bullets li b { color: var(--ink); font-weight: 620; }
.bullets svg { flex: none; width: 22px; height: 22px; margin-block-start: 2px; color: var(--pink); }

.stage { position: relative; display: grid; place-items: center; }
.stage__halo {
  position: absolute; width: 130%; aspect-ratio: 1; border-radius: 50%; z-index: 0;
  background: radial-gradient(closest-side, var(--halo, rgba(124, 58, 237, 0.4)), transparent 70%);
  transition: background 0.8s;
  filter: blur(10px);
}
.stage .phone { --pw: clamp(260px, 26vw, 340px); z-index: 1; }
.stage__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.55)); }
.stage__kit {
  position: absolute; left: 0; top: 0; width: 360px; height: 640px; border: 0; background: transparent;
  transform-origin: 0 0; pointer-events: none;
  /* The kit document is light-scheme; a dark-scheme embedder would give it
     an opaque canvas. Declaring light here keeps it transparent. */
  color-scheme: light;
  /* Revealed on its first frame drawn in the style's real face (site.js),
     so a fallback face is never shown and swapped. */
  opacity: 0; transition: opacity 0.18s ease-out;
}
.stage.is-live .stage__kit { opacity: 1; }
.stage__fallback { position: absolute; left: 8%; right: 8%; bottom: 14%; border-radius: 14px; overflow: hidden; opacity: 0; transition: opacity 0.4s; }
.stage.is-fallback .stage__fallback { opacity: 1; }
.stage__ui { position: absolute; z-index: 3; inset-inline: 0; top: 7.5%; display: flex; justify-content: center; }
.stage__pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 650; background: rgba(0, 0, 0, 0.45); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.stage__pill i { width: 6px; height: 6px; border-radius: 50%; background: #ff4757; box-shadow: 0 0 8px #ff4757; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding-inline: 6px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  transition: background-color 0.25s, box-shadow 0.25s, color 0.25s, transform 0.45s var(--ease-settle);
}
.chip:hover { color: var(--ink); background: rgba(255, 255, 255, 0.08); }
.chip:active { transform: scale(0.95); }
.chip img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.chip[aria-pressed="true"], .chip[aria-selected="true"] { color: #0a0a0f; background: #fff; box-shadow: none; }
.chip--text { padding-inline: 16px; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: var(--bg-card); box-shadow: inset 0 0 0 1px var(--line);
  padding: clamp(24px, 2.6vw, 36px);
  display: flex; flex-direction: column; gap: 12px; min-height: 340px;
  transition: box-shadow 0.4s;
  isolation: isolate;
}
.card:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 0.5s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(244, 63, 143, 0.12), transparent 60%);
}
.card:hover::before { opacity: 1; }
.card .h3 { max-width: 16em; }
.card p { margin: 0; color: var(--ink-2); max-width: 30em; }
.card__viz { margin-block-start: auto; padding-block-start: 22px; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.tag {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; height: 28px; padding-inline: 12px; border-radius: 999px;
  font-size: 12px; font-weight: 650; letter-spacing: 0.02em; color: var(--ink-2); background: rgba(255, 255, 255, 0.06);
}
.tag svg { width: 14px; height: 14px; }

/* smart cut timeline */
.cut { position: relative; height: 112px; }
.cut__row { position: absolute; inset-inline: 0; top: 18px; height: 56px; display: flex; gap: 3px; }
.cut__seg {
  position: relative; height: 100%; border-radius: 10px; overflow: hidden; flex: var(--f) 1 0;
  background: linear-gradient(180deg, #221d33, #17142a);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.cut__seg::after {
  content: ""; position: absolute; inset: 18% 8%; opacity: 0.9;
  background: repeating-linear-gradient(90deg, rgba(244, 63, 143, 0.75) 0 2px, transparent 2px 6px);
  -webkit-mask-image: var(--wave); mask-image: var(--wave); -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
}
.cut__seg--gap { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0 6px, transparent 6px 12px); box-shadow: inset 0 0 0 1px rgba(255, 90, 95, 0.4); }
.cut__seg--gap::after { display: none; }
.card.is-in .cut__seg--gap { animation: collapse 4.8s var(--ease-in-out) infinite; }
@keyframes collapse {
  0%, 30% { flex-grow: var(--f); opacity: 1; margin-inline: 0; }
  48%, 82% { flex-grow: 0.0001; flex-basis: 0; opacity: 0; margin-inline: -1.5px; }
  100% { flex-grow: var(--f); opacity: 1; }
}
.cut__ruler { position: absolute; inset-inline: 0; bottom: 0; height: 18px; display: flex; justify-content: space-between; color: var(--ink-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.cut__head { position: absolute; top: 6px; bottom: 26px; width: 2px; background: #fff; border-radius: 2px; box-shadow: 0 0 12px rgba(255, 255, 255, 0.7); inset-inline-start: 0; }
.card.is-in .cut__head { animation: sweep 4.8s linear infinite; }
@keyframes sweep { from { inset-inline-start: 0; } to { inset-inline-start: 100%; } }

/* fillers */
.words { display: flex; flex-wrap: wrap; gap: 10px 6px; font-size: clamp(19px, 1.8vw, 24px); font-weight: 560; line-height: 1.4; }
.words span { padding: 4px 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); transition: all 0.6s var(--ease-out); }
.words .um { color: var(--coral); background: rgba(255, 90, 95, 0.1); text-decoration: line-through; text-decoration-thickness: 2px; }
.card.is-in .words .um { animation: um-out 4.2s var(--ease-in-out) infinite; }
@keyframes um-out {
  0%, 35% { max-width: 5em; opacity: 1; padding-inline: 8px; margin-inline: 0; }
  55%, 85% { max-width: 0; opacity: 0; padding-inline: 0; margin-inline: -3px; }
  100% { max-width: 5em; opacity: 1; padding-inline: 8px; }
}
.words span { max-width: 12em; overflow: hidden; white-space: nowrap; }

/* voice */
.wave { display: flex; align-items: center; gap: 3px; height: 96px; }
.wave i { flex: 1; border-radius: 3px; background: linear-gradient(var(--pink), var(--violet)); height: var(--h); min-height: 3px; }
.wave i:nth-child(odd) { --noise: 1; }
.card.is-in .wave i { animation: clean 4s var(--ease-in-out) infinite; animation-delay: calc(var(--k) * 12ms); }
@keyframes clean {
  0%, 30% { height: calc(var(--h) * 0.5 + var(--n) * 60%); background: linear-gradient(#5d5a70, #3b394a); }
  50%, 88% { height: var(--h); background: linear-gradient(var(--pink), var(--violet)); }
  100% { height: calc(var(--h) * 0.5 + var(--n) * 60%); background: linear-gradient(#5d5a70, #3b394a); }
}
.legend { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-block-start: 10px; }

/* colour compare */
.compare {
  --x: 50%;
  position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10; cursor: ew-resize; touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
}
.compare img, .compare video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare__before { clip-path: inset(0 calc(100% - var(--x)) 0 0); }
[dir="rtl"] .compare__before { clip-path: inset(0 0 0 calc(100% - var(--x))); }
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; translate: -1px 0; background: #fff; box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}
[dir="rtl"] .compare__handle { left: auto; right: var(--x); translate: 1px 0; }
.compare__handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; translate: -50% -50%; border-radius: 50%;
  background: rgba(255, 255, 255, 0.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18-6-6 6-6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 20px no-repeat;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.compare__lbl { position: absolute; top: 12px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 650; background: rgba(0, 0, 0, 0.5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.compare__lbl--a { inset-inline-start: 12px; }
.compare__lbl--b { inset-inline-end: 12px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); margin-block-start: 14px; }
.seg button { height: 32px; padding-inline: 14px; border-radius: 999px; font-size: 13px; font-weight: 620; color: var(--ink-2); transition: background-color 0.25s, color 0.25s; }
.seg button[aria-pressed="true"] { background: #fff; color: #0a0a0f; }

/* background */
.bgcut { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 5; max-height: 280px; margin-inline: auto; }
.bgcut img { width: 100%; height: 100%; object-fit: cover; }
.card.is-in .bgcut img { animation: bgblur 5s var(--ease-in-out) infinite; }
@keyframes bgblur { 0%, 30% { filter: none; } 50%, 85% { filter: blur(0) brightness(0.9) saturate(0.9); } }
.bgcut__focus {
  position: absolute; inset: 0;
  -webkit-mask-image: radial-gradient(38% 46% at 50% 44%, transparent 60%, #000 100%);
  mask-image: radial-gradient(38% 46% at 50% 44%, transparent 60%, #000 100%);
  -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0);
}
.card.is-in .bgcut__focus { animation: focus 5s var(--ease-in-out) infinite; }
@keyframes focus { 0%, 30% { -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); } 50%, 85% { -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px); } 100% { -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); } }

/* platform view */
.pv { position: relative; display: grid; place-items: center; }
.pv .phone { --pw: 168px; }
.pv__rail { position: absolute; inset-inline-end: 8%; bottom: 18%; display: grid; gap: 14px; z-index: 6; }
.pv__rail i { width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, 0.85); -webkit-mask: var(--ic) center / 20px no-repeat; mask: var(--ic) center / 20px no-repeat; }
.pv__cap { position: absolute; z-index: 6; inset-inline: 10% 22%; bottom: 10%; display: grid; gap: 4px; }
.pv__cap b { font-size: 10px; }
.pv__cap span { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.7); }
.pv__cap span + span { width: 60%; background: rgba(255, 255, 255, 0.45); }
.pv__safe { position: absolute; z-index: 5; inset: 12% 18% 22% 6%; border: 1.5px dashed rgba(215, 255, 90, 0.8); border-radius: 10px; opacity: 0; transition: opacity 0.5s; }
.card.is-in .pv__safe { animation: safe 4s var(--ease-in-out) infinite; }
@keyframes safe { 0%, 40% { opacity: 0; } 55%, 90% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- paper section: Design Studio ---------- */
.paper { background: var(--paper); color: var(--paper-ink); border-radius: clamp(28px, 4vw, 56px); margin-inline: clamp(8px, 1.4vw, 20px); overflow: hidden; }
.paper .lede, .paper .muted { color: var(--paper-ink-2); }
.paper .eyebrow { color: var(--paper-ink-2); }
.paper .btn--light { background: var(--paper-ink); color: #fff; }
.paper .link { color: var(--paper-ink); }
.m3d { position: relative; height: clamp(520px, 62vw, 760px); overflow: hidden; margin-block-start: clamp(40px, 6vw, 72px); }
.m3d::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(var(--paper), transparent 18%, transparent 78%, var(--paper)); }
.m3d__plane {
  position: absolute; left: 50%; top: 50%; width: 1500px; height: 1500px; margin: -750px 0 0 -750px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 26px;
  transform: rotateX(52deg) rotateZ(-38deg) scale(var(--m3d-scale, 0.9));
  transform-style: preserve-3d;
}
.m3d__col { display: flex; flex-direction: column; gap: 26px; animation: col 26s linear infinite; }
.m3d__col:nth-child(even) { animation-direction: reverse; animation-duration: 32s; }
@keyframes col { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.m3d__col img { width: 100%; border-radius: 16px; box-shadow: 0 30px 50px -20px rgba(40, 30, 20, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.06); background: #e6e1d6; }
.m3d:hover .m3d__col { animation-play-state: paused; }

/* ---------- Image Studio: pinned horizontal gallery ---------- */
.hscroll { position: relative; }
.hscroll__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(24px, 3.4vh, 44px); padding-block: 72px 32px; overflow: hidden; }
.hscroll .h2 { font-size: clamp(36px, 5.2vw, 76px); }
/* Cards share one height so mixed 4:5, 9:16 and 16:9 looks sit on a line. */
.hscroll__track .xcard { width: auto; height: clamp(260px, 46vh, 440px); aspect-ratio: var(--ar, 4 / 5); }
.hscroll__track .xcard img { aspect-ratio: auto; }
.hscroll__track { display: flex; gap: 18px; padding-inline: var(--gutter); will-change: transform; width: max-content; }
.xcard {
  position: relative; flex: none; width: clamp(220px, 22vw, 300px); border-radius: 22px; overflow: hidden; background: var(--bg-card);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.6s var(--ease-settle);
}
.xcard--wide { width: clamp(320px, 36vw, 480px); }
.xcard img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: var(--ar, 4 / 5); transition: transform 1.2s var(--ease-out); }
.xcard:hover img { transform: scale(1.05); }
.xcard:hover { transform: translateY(-6px); }
.xcard__meta {
  position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px; display: grid; gap: 2px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
}
.xcard__meta small { font-size: 11px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.66); }
html:is([lang="fa"], [lang="ar"]) .xcard__meta small { letter-spacing: 0; font-size: 12px; }
.xcard__meta b { font-size: 15px; font-weight: 640; line-height: 1.3; }
.xcard__try {
  position: absolute; top: 12px; inset-inline-end: 12px; height: 30px; padding-inline: 12px; border-radius: 999px; display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 650; background: rgba(255, 255, 255, 0.92); color: #0a0a0f; opacity: 0; transform: translateY(-6px);
  transition: opacity 0.35s, transform 0.45s var(--ease-out);
}
.xcard:hover .xcard__try, .xcard:focus-visible .xcard__try { opacity: 1; transform: none; }
.hscroll__progress { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.hscroll__progress i { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: left; transform: scaleX(var(--p, 0)); }
[dir="rtl"] .hscroll__progress i { transform-origin: right; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { display: grid; gap: 10px; padding: 24px; border-radius: var(--r-md); background: var(--bg-card); box-shadow: inset 0 0 0 1px var(--line); }
.step b { font-size: 13px; font-weight: 700; color: var(--pink); font-variant-numeric: tabular-nums; }
.step p { margin: 0; color: var(--ink-2); }

/* ---------- numbers ---------- */
.nums { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.num { padding: clamp(28px, 4vw, 48px) clamp(16px, 2vw, 28px); display: grid; gap: 6px; }
.num + .num { border-inline-start: 1px solid var(--line); }
.num b { font-size: clamp(44px, 6vw, 84px); font-weight: 740; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
html:is([lang="fa"], [lang="ar"]) .num b { letter-spacing: 0; }
.num span { color: var(--ink-2); font-size: 15px; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 18px; padding: clamp(26px, 2.6vw, 36px); border-radius: var(--r-lg); background: var(--bg-card); box-shadow: inset 0 0 0 1px var(--line); }
.plan--pro { background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; box-shadow: 0 40px 100px -40px rgba(244, 63, 143, 0.55); }
.plan__name { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan__name .h3 { font-size: 26px; }
.plan__big { font-size: clamp(26px, 2.5vw, 34px); font-weight: 740; letter-spacing: -0.035em; line-height: 1.05; }
html:is([lang="fa"], [lang="ar"]) .plan__big { letter-spacing: 0; line-height: 1.4; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; color: var(--ink-2); }
.plan li { display: flex; gap: 12px; }
.plan li svg { flex: none; width: 20px; height: 20px; color: var(--pink); margin-block-start: 3px; }
.plan .btn { margin-block-start: auto; }
.badge { white-space: nowrap; flex: none; display: inline-flex; align-items: center; height: 26px; padding-inline: 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--grad); color: #fff; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 880px; margin-inline: auto; }
.faq details { border-radius: var(--r-md); background: var(--bg-card); box-shadow: inset 0 0 0 1px var(--line); transition: background-color 0.3s; }
.faq details[open] { background: #141724; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 24px; font-size: 18px; font-weight: 620; letter-spacing: -0.01em;
}
html:is([lang="fa"], [lang="ar"]) .faq summary { letter-spacing: 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, 0.07); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; margin: -0.8px 0 0 -5.5px; background: currentColor; border-radius: 2px; transition: transform 0.4s var(--ease-out); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq .ans { padding: 0 24px 22px; color: var(--ink-2); max-width: 64ch; }
.faq .ans p { margin: 0; }
.faq-group + .faq-group { margin-block-start: 56px; }
.faq-group > .h3 { max-width: 880px; margin: 0 auto 18px; }

/* ---------- final CTA ---------- */
.finale { position: relative; overflow: hidden; text-align: center; }
.finale__glow { position: absolute; left: 50%; top: 58%; width: min(1200px, 160vw); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(124, 58, 237, 0.45), rgba(244, 63, 143, 0.12) 50%, transparent 72%); pointer-events: none; }
.finale__icon { width: 112px; height: 112px; margin: 0 auto 34px; border-radius: 26px; box-shadow: 0 30px 80px -20px rgba(244, 63, 143, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1); }
.finale .display { font-size: clamp(56px, 11vw, 160px); }
.finale .stores { justify-content: center; margin-block-start: 40px; }

/* ---------- page hero (inner pages) ---------- */
.phero { position: relative; padding-block: clamp(150px, 20vw, 220px) clamp(56px, 8vw, 100px); overflow: hidden; }
.phero__glow { position: absolute; inset: -30% -10% auto -10%; height: 110%; pointer-events: none; background: radial-gradient(40% 50% at 50% 0%, rgba(124, 58, 237, 0.35), transparent 70%), radial-gradient(25% 30% at 70% 10%, rgba(244, 63, 143, 0.18), transparent 70%); }
.phero .wrap { position: relative; display: grid; gap: 24px; justify-items: start; }
.phero.center .wrap { justify-items: center; text-align: center; }
.phero .display { font-size: clamp(48px, 8.4vw, 120px); }
html:is([lang="fa"], [lang="ar"]) .phero .display { font-size: clamp(42px, 7vw, 100px); }

/* feature rows (features page) */
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: clamp(56px, 8vw, 110px); border-block-start: 1px solid var(--line); }
.frow:nth-child(even) > .frow__media { order: -1; }
.frow__media { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--bg-card); box-shadow: inset 0 0 0 1px var(--line); aspect-ratio: 4 / 3.4; display: grid; place-items: center; }
.frow__media > img.fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fan { position: relative; width: 100%; height: 100%; }
.fan img { position: absolute; top: 50%; left: 50%; width: 34%; border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8); transform: translate(-50%, -50%) rotate(var(--r)) translateX(var(--x)); transition: transform 0.8s var(--ease-settle); }
.frow:hover .fan img { transform: translate(-50%, -50%) rotate(calc(var(--r) * 1.4)) translateX(calc(var(--x) * 1.25)); }
.toc { display: flex; flex-wrap: wrap; gap: 10px; }

/* gallery (image studio page) */
.masonry { columns: 4 240px; column-gap: 16px; }
.masonry .xcard { display: block; width: 100%; margin-block-end: 16px; break-inside: avoid; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 32px; }
.masonry .xcard[hidden] { display: none; }

/* prose (legal/about) */
.prose { max-width: 760px; margin-inline: auto; font-size: 17px; line-height: 1.75; color: var(--ink-2); }
html:is([lang="fa"], [lang="ar"]) .prose { line-height: 2.05; }
.prose h3 { color: var(--ink); font-size: 22px; letter-spacing: -0.015em; margin: 2.2em 0 0.6em; line-height: 1.3; }
html:is([lang="fa"], [lang="ar"]) .prose h3 { letter-spacing: 0; }
.prose p { margin: 0 0 1em; }
.prose ul { padding-inline-start: 1.2em; margin: 0 0 1em; }
.prose li { margin-block: 0.4em; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--pink); text-underline-offset: 3px; }
.prose > :first-child { margin-block-start: 0; color: var(--ink); font-size: 20px; }

/* contact + simple cards */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.tile { display: grid; gap: 12px; align-content: start; padding: 30px; border-radius: var(--r-lg); background: var(--bg-card); box-shadow: inset 0 0 0 1px var(--line); }
.tile__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(244, 63, 143, 0.12); color: var(--pink); }
.tile__icon svg { width: 24px; height: 24px; }
.tile p { margin: 0; color: var(--ink-2); }
.mail { font-size: clamp(26px, 4.4vw, 56px); font-weight: 720; letter-spacing: -0.035em; word-break: break-word; }
.mail { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.18em; text-decoration-color: rgba(244, 63, 143, 0.35); transition: text-decoration-color 0.3s; }
.mail:hover { text-decoration-color: var(--pink); }

/* ---------- footer ---------- */
.foot { border-block-start: 1px solid var(--line); padding-block: 72px 40px; font-size: 15px; }
.foot__grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 36px; }
.foot__brand { display: grid; gap: 16px; align-content: start; max-width: 340px; }
.foot__brand p { margin: 0; color: var(--ink-2); }
.foot h4 { margin: 0 0 16px; font-size: 13px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
html:is([lang="fa"], [lang="ar"]) .foot h4 { letter-spacing: 0; font-size: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot ul a { color: var(--ink-2); transition: color 0.2s; }
.foot ul a:hover { color: var(--ink); }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-block-start: 64px; padding-block-start: 24px; border-block-start: 1px solid var(--line); color: var(--ink-3); font-size: 14px; }
.foot__base nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot__base a:hover { color: var(--ink); }
.foot__langs { display: inline-flex; align-items: center; gap: 14px; }
.foot__langs svg { width: 15px; height: 15px; opacity: 0.7; }
.foot__langs b { font-weight: 650; color: var(--ink-2); }
.foot__langs :is(:lang(fa), :lang(ar)) { font-family: "Vazirmatn", var(--font); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__menu { display: grid; }
  .nav__end { margin-inline-start: auto; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .span-2, .span-3, .span-4, .span-6 { grid-column: span 2; }
  .bento .card.half { grid-column: span 1; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: span 2; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .split, .frow { grid-template-columns: 1fr; }
  .split--flip > :first-child { order: 0; }
  .frow:nth-child(even) > .frow__media { order: 0; }
  .plans { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .nums { grid-template-columns: 1fr 1fr; }
  .num:nth-child(3) { border-inline-start: 0; }
  .num:nth-child(n + 3) { border-block-start: 1px solid var(--line); }
  .hero { height: 190vh; }
  .orbit--c, .orbit--d { display: none; }
}
@media (max-width: 640px) {
  .nav__bar { height: 56px; }
  .nav__cta { display: none; }
  .bento .card.half { grid-column: span 2; }
  .card { min-height: 0; }
  .foot__grid { grid-template-columns: 1fr; }
  .foot__brand { grid-column: auto; }
  .hero__device .phone { --pw: 230px; }
  .orbit { width: 104px; border-radius: 14px; }
  .orbit--a { transform: translate(calc(-50% - var(--p, 0) * 34vw), calc(-10% + (1 - var(--p, 0)) * 28vh)) rotate(-8deg); }
  .orbit--b { transform: translate(calc(-50% + var(--p, 0) * 34vw), calc(-40% + (1 - var(--p, 0)) * 34vh)) rotate(7deg); }
  .store { height: 54px; }
  .faq summary { padding: 18px; font-size: 17px; }
  .faq .ans { padding: 0 18px 18px; }
  .m3d { height: 460px; }
  .m3d__plane { --m3d-scale: 0.62; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  [data-reveal], [data-split] .w > i { opacity: 1 !important; transform: none !important; filter: none !important; }
  .hero { height: auto; }
  .hero__stage { position: relative; height: auto; min-height: 0; padding-block: 140px 80px; display: grid; gap: 48px; }
  .hero__title, .hero__device { transform: none !important; opacity: 1 !important; }
  .orbit { display: none; }
  .hscroll__pin { position: relative; height: auto; }
  .hscroll__track { overflow-x: auto; width: auto; transform: none !important; scroll-snap-type: x mandatory; padding-block-end: 12px; }
  .xcard { scroll-snap-align: start; }
}

/* Wordmark face — the app's Latin brand font, used only for "sorelo". */
@font-face { font-family: "Comfortaa"; src: url("../fonts/comfortaa-bold.woff2?v=c541a22279") format("woff2"); font-weight: 700; font-display: swap; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: "Comfortaa", var(--font); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; line-height: 1; direction: ltr; }
.wordmark img { width: 30px; height: 30px; }

/* ---------- "what you can make" overview (mirrors the app's home tiles) ---------- */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tool {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: start;
  padding: 22px; border-radius: var(--r-md); background: var(--bg-card); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.3s, transform 0.5s var(--ease-settle), background-color 0.3s;
}
.tool:hover { box-shadow: inset 0 0 0 1px var(--line-2); background: #141724; transform: translateY(-3px); }
.tool__icon { grid-row: span 2; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: rgba(244, 63, 143, 0.12); color: var(--pink); }
.tool__icon svg { width: 22px; height: 22px; }
.tool b { font-size: 17px; font-weight: 680; letter-spacing: -0.01em; }
html:is([lang="fa"], [lang="ar"]) .tool b { letter-spacing: 0; }
.tool span { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.tool .arrow { position: absolute; top: 22px; inset-inline-end: 20px; width: 16px; height: 16px; color: var(--ink-3); }

/* ---------- how it works: numbered steps inside a feature section ---------- */
.howto { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; counter-reset: step; }
.howto li { counter-increment: step; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: baseline; color: var(--ink-2); }
.howto li::before {
  content: counter(step); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  font-size: 13px; font-weight: 700; color: var(--ink); background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px var(--line-2);
}
html[lang="fa"] .howto li::before { content: counter(step, persian); }
.howto b { color: var(--ink); font-weight: 620; }
.paper .howto li { color: var(--paper-ink-2); }
.paper .howto li::before { color: var(--paper-ink); background: rgba(0, 0, 0, 0.06); box-shadow: none; }
.paper .howto b { color: var(--paper-ink); }
.howto--row { grid-template-columns: repeat(3, 1fr); gap: 16px; }
.howto--row li { grid-template-columns: 30px 1fr; }
@media (max-width: 860px) {
  .tools { grid-template-columns: 1fr; }
  .howto--row { grid-template-columns: 1fr; }
}
.card--row { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 24px; min-height: 0; }
.card--row .card__text { display: grid; gap: 12px; }
.card--row .card__viz { margin: 0; padding: 0; }
@media (max-width: 860px) { .card--row { grid-template-columns: 1fr; } }
.card--row .card__text .tag { justify-self: start; }

/* ---------- hero: the app's own tool tiles orbit the phone ----------
   Three tiles in a column on each side of the phone, evenly spaced around
   its centre. --side is -1 (start) or 1 (end), --row -1/0/1; the middle row
   sits a little further out so the columns read as a gentle arc. They rise
   from behind the phone as the scene plays and settle beside it. */
.orbit--tile {
  --gap-x: clamp(210px, 20vw, 300px);
  --gap-y: clamp(120px, 15vh, 170px);
  left: 50%; top: 50%;
  width: clamp(84px, 7.4vw, 116px); height: auto; border-radius: 0; overflow: visible; box-shadow: none;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55));
  transform:
    translate(
      calc(-50% + var(--side) * var(--p, 0) * (var(--gap-x) + (1 - var(--row) * var(--row)) * 36px)),
      calc(-50% + var(--row) * var(--gap-y) * var(--p, 0) + (1 - var(--p, 0)) * 26vh)
    )
    rotate(calc(var(--side) * var(--row) * 4deg));
  opacity: calc(var(--p, 0) * 1.8 - 0.3);
}
.orbit--1 { --side: -1; --row: -1; }
.orbit--2 { --side: -1; --row: 0; }
.orbit--3 { --side: -1; --row: 1; }
.orbit--4 { --side: 1; --row: -1; }
.orbit--5 { --side: 1; --row: 0; }
.orbit--6 { --side: 1; --row: 1; }
@media (max-width: 860px) {
  .orbit--tile { width: 64px; --gap-x: 40vw; --gap-y: 110px; }
  .orbit--2, .orbit--5 { display: none; }
}

/* ---------- Create a Reel Cover ---------- */
.reelcover { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: center; margin-block-start: clamp(72px, 9vw, 120px); padding-block-start: clamp(56px, 7vw, 88px); border-block-start: 1px solid var(--line); }
.reelcover__copy { display: grid; gap: 20px; }
.reelcover__title { font-size: clamp(34px, 4.4vw, 60px); }
.reelcover__strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.reel { display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 9 / 16; background: var(--bg-card); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.9), inset 0 0 0 1px var(--line); transition: transform 0.6s var(--ease-settle); }
.reel:nth-child(3n + 2) { transform: translateY(28px); }
.reel img { width: 100%; height: 100%; object-fit: cover; }
.reel:hover { transform: translateY(-8px) scale(1.02); }
.reel:nth-child(3n + 2):hover { transform: translateY(20px) scale(1.02); }
@media (max-width: 1080px) { .reelcover { grid-template-columns: 1fr; } }

/* ---------- features: the app's Quick-tools tiles as the table of contents ---------- */
.apptiles { display: flex; flex-wrap: wrap; gap: clamp(4px, 1.4vw, 18px); margin-block-start: clamp(8px, 2vw, 20px); }
.apptiles a { display: block; border-radius: 22px; transition: transform 0.5s var(--ease-settle), filter 0.3s; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.5)); }
.apptiles a:hover { transform: translateY(-6px); }
.apptiles a:active { transform: scale(0.95); }
.apptiles img { width: clamp(92px, 9.6vw, 136px); height: auto; }
@media (max-width: 640px) { .apptiles { display: grid; grid-template-columns: repeat(3, 1fr); justify-items: center; } }

/* ---------- live plan prices ---------- */
.plan__prices { display: grid; gap: 8px; margin-block: 2px 4px; }
.price-row {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px;
  padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line);
}
.price-row__name { font-weight: 650; }
.price-row__amount { font-size: 18px; font-weight: 740; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; text-align: end; }
html:is([lang="fa"], [lang="ar"]) .price-row__amount { letter-spacing: 0; }
.price-row__meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--ink-3); }
.price-row__meta s { color: var(--ink-3); }
.price-row__save { display: inline-flex; align-items: center; height: 20px; padding-inline: 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: #fff; background: var(--grad); }
.plan__from { font-size: 15px; color: var(--ink-2); }
.plan__from b { color: var(--ink); font-size: 20px; font-weight: 740; }

/* ---------- plans: the paywall card (after 21st.dev "Animated Pricing Card") ---------- */
.pricing { display: grid; gap: 18px; max-width: 880px; margin-inline: auto; }
.period {
  justify-self: center; display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line);
}
.period[hidden] { display: none; }
.period button {
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding-inline: 16px; border-radius: 999px;
  font-size: 14.5px; font-weight: 640; color: var(--ink-2); transition: background-color 0.3s var(--ease-out), color 0.3s;
}
.period button:hover { color: var(--ink); }
.period button[aria-checked="true"] { background: #fff; color: #0a0a0f; }
.period em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--pink); }
.period em:empty { display: none; }
.period button[aria-checked="true"] em { color: #c21b6c; }

.pro-shell {
  padding: 6px; border-radius: 36px;
  background: linear-gradient(160deg, rgba(255, 106, 77, 0.35), rgba(245, 35, 140, 0.25) 40%, rgba(139, 59, 240, 0.35));
  box-shadow: 0 50px 120px -50px rgba(244, 63, 143, 0.55);
}
.pro { display: grid; gap: 22px; padding: clamp(24px, 3.4vw, 40px); border-radius: 31px; background: #0f111a; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.pro__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pro__name { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 22px; font-weight: 720; letter-spacing: -0.02em; }
html:is([lang="fa"], [lang="ar"]) .pro__name { letter-spacing: 0; }
.pro__line { margin: 6px 0 0; color: var(--ink-2); }
.pro__price { display: flex; align-items: baseline; justify-content: center; gap: 10px; flex-wrap: wrap; min-height: 1.2em; }
.pro__amount { font-size: clamp(44px, 7vw, 76px); font-weight: 760; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; text-align: center; }
html:is([lang="fa"], [lang="ar"]) .pro__amount { letter-spacing: 0; font-size: clamp(36px, 6vw, 62px); }
.pro__amount { display: inline-flex; align-items: baseline; gap: 0.25em; flex-wrap: wrap; justify-content: center; }
.pro__num { display: inline-flex; unicode-bidi: isolate; }
.pro__unit { font-size: 0.42em; font-weight: 700; color: var(--ink-2); }
.pro__amount .digit { display: inline-block; white-space: pre; transform-origin: 50% 100%; }
.pro__amount.is-live .digit { animation: digit-in 0.62s var(--ease-settle) both; animation-delay: calc(var(--i) * 32ms); }
@keyframes digit-in { from { opacity: 0; transform: translateY(0.45em) scale(0.6); } to { opacity: 1; transform: none; } }
.pro__per { font-size: 18px; color: var(--ink-3); }
.pro__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; margin-top: -10px; font-size: 14px; color: var(--ink-3); }
.pro__meta[hidden] { display: none; }
.pro__cta { width: 100%; height: 56px; font-size: 17px; }
.pro__rule { height: 1px; background: var(--line); }
.pro__tokens { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 17px; font-weight: 700; }
.pro__tokens[hidden] { display: none; }
.pro__feats { list-style: none; margin: -6px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.pro__feats li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); line-height: 1.45; }
.pro__feats svg { flex: none; width: 18px; height: 18px; margin-top: 2px; padding: 3px; border-radius: 50%; color: var(--pink); background: rgba(244, 63, 143, 0.16); }

.plans-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mini { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--r-lg); background: var(--bg-card); box-shadow: inset 0 0 0 1px var(--line); }
.mini .h3 { font-size: 20px; }
.mini p { margin: 0; font-size: 14.5px; }
.mini ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; color: var(--ink-2); font-size: 14.5px; }
.mini li { display: flex; gap: 10px; }
.mini li svg { flex: none; width: 17px; height: 17px; color: var(--pink); margin-top: 2px; }
.mini .btn { margin-top: auto; align-self: flex-start; }
.packs { display: grid; gap: 6px; }
.packs[hidden] { display: none; }
.pack { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); font-size: 14px; }
.pack__tokens { display: inline-flex; align-items: center; gap: 8px; font-weight: 640; }
.pack__price { display: inline-flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.pack__price s { color: var(--ink-3); font-size: 12.5px; }
@media (max-width: 720px) {
  .pro__feats { grid-template-columns: 1fr; }
  .plans-mini { grid-template-columns: 1fr; }
  .period button { padding-inline: 12px; font-size: 13.5px; }
}

/* =====================================================================
   Content rewrite (Oct 2026): publish-kit hero orbit, "one video → one
   post" kit, the editor-screen stage, proof, SEO landing pages.
   ===================================================================== */

/* ---------- hero: store line under the one primary CTA ---------- */
.hero__meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 16px; margin: -4px 0 0; font-size: 14px; color: var(--ink-3); }
.hero__meta a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-weight: 600; transition: color 0.2s; }
.hero__meta a:hover { color: var(--ink); }
.hero__meta svg { width: 16px; height: 16px; }

/* ---------- hero: the publish kit assembles around the phone ---------- */
.opost {
  width: clamp(120px, 11vw, 168px); padding: 12px; border-radius: 18px; filter: none;
  background: rgba(17, 19, 28, 0.86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 50px -20px rgba(0, 0, 0, 0.9);
  font-size: 13px; line-height: 1.5; color: var(--ink);
}
.opost--cover { padding: 0; overflow: hidden; width: clamp(104px, 9vw, 140px); }
.opost--cover img { width: 100%; height: auto; }
.opost__tag { position: absolute; inset-inline-start: 8px; top: 8px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; background: #fff; color: #0a0a0f; }
.opost--chip { display: inline-flex; align-items: center; gap: 8px; width: auto; padding: 10px 14px; border-radius: 999px; font-weight: 650; white-space: nowrap; }
.opost--chip svg { width: 18px; height: 18px; color: var(--pink); flex: none; }
.opost--caption small { display: block; margin-block-end: 4px; font-size: 11px; font-weight: 700; color: var(--ink-3); }
.opost--caption p { margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.opost--tags { display: flex; flex-wrap: wrap; gap: 4px; }
.opost--tags span { color: #c4b5fd; font-weight: 650; direction: ltr; unicode-bidi: isolate; }
html:is([lang="fa"], [lang="ar"]) .opost--tags span { direction: rtl; }
/* The card for the film's current beat lights up (site.js); the rest step
   back a little, so the eye goes phone -> card -> phone. */
.hero .opost { transition: scale 0.5s var(--ease-settle, cubic-bezier(0.16, 1, 0.3, 1)), box-shadow 0.5s ease, filter 0.5s ease; }
.hero:has(.opost.is-beat) .opost:not(.is-beat) { filter: brightness(0.72) saturate(0.8); }
.hero .opost.is-beat {
  scale: 1.07;
  box-shadow: inset 0 0 0 1px rgba(255, 61, 139, 0.6), 0 24px 60px -18px rgba(255, 61, 139, 0.45);
}
@media (prefers-reduced-motion: reduce) { .hero .opost { transition: none; } .hero .opost.is-beat { scale: 1; } }
@media (max-width: 860px) {
  /* Phones keep two pieces of the kit, one each side, inside the screen. */
  .opost { --gap-x: 33vw; width: 116px; padding: 9px; font-size: 11.5px; border-radius: 14px; }
  .opost--cover { width: 88px; padding: 0; }
  .orbit--2.opost, .orbit--3.opost, .orbit--5.opost, .orbit--6.opost { display: none; }
  .opost--caption p { -webkit-line-clamp: 3; }
}

/* ---------- one video in, one post out ---------- */
.kit { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: kit; }
.kit__card {
  position: relative; counter-increment: kit; display: flex; flex-direction: column; gap: 12px;
  padding: clamp(20px, 2.2vw, 28px); border-radius: var(--r-lg); background: var(--bg-card); box-shadow: inset 0 0 0 1px var(--line);
}
.kit__card p { margin: 0; color: var(--ink-2); }
.kit__viz { height: 200px; margin-block-end: 10px; border-radius: 18px; overflow: hidden; background: #0b0c12; box-shadow: inset 0 0 0 1px var(--line); position: relative; }
.kit__viz--sub img { width: 100%; height: 100%; object-fit: cover; }
.kit__viz--cut { display: grid; align-content: center; gap: 14px; padding: 18px; }
.kit__viz--cut .cut { height: 80px; }
.kit__viz--cut .cut__row { top: 12px; }
.kit__viz--cut .cut__head { bottom: 4px; }
.kit.is-in .cut__seg--gap { animation: collapse 4.8s var(--ease-in-out) infinite; }
.kit.is-in .cut__head { animation: sweep 4.8s linear infinite; }
.kit__fixes { display: flex; flex-wrap: wrap; gap: 6px; }
.kit__fixes span { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding-inline: 8px 10px; border-radius: 999px; font-size: 12px; font-weight: 650; color: var(--ink-2); background: rgba(255, 255, 255, 0.06); }
.kit__fixes svg { width: 13px; height: 13px; color: var(--pink); }
.kit__viz--post { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 12px; align-items: start; background: #fff; color: #16151a; }
.kit__cover { width: 100%; height: 176px; object-fit: cover; border-radius: 10px; }
.kit__caption { font-size: 13px; line-height: 1.55; display: grid; gap: 8px; }
html:is([lang="fa"], [lang="ar"]) .kit__caption { line-height: 1.85; }
.kit__caption p { margin: 0; color: #16151a; }
.kit__tags { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.kit__tags span { color: #6d28d9; font-weight: 650; }
@media (max-width: 860px) { .kit { grid-template-columns: 1fr; } }

/* ---------- caption section: trending chips + six facts ---------- */
.chips__label { display: inline-flex; align-items: center; gap: 10px; margin: 6px 0 -8px; }
.chips__label .dot { width: 6px; height: 6px; border-radius: 50%; background: #ff4757; box-shadow: 0 0 8px #ff4757; }
.chips__note { margin: -6px 0 0; font-size: 14px; }
.chip__dot { width: 32px; height: 32px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.feats { list-style: none; margin: clamp(56px, 7vw, 96px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; }
.feats li { display: grid; grid-template-columns: 40px 1fr; gap: 4px 14px; align-content: start; }
.feats__icon { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--pink); background: rgba(244, 63, 143, 0.12); }
.feats__icon svg { width: 20px; height: 20px; }
.feats b { font-size: 17px; font-weight: 680; }
.feats li > span:last-child { color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 860px) { .feats { grid-template-columns: 1fr; } }

/* ---------- editor stage: the app's editor screen, drawn ---------- */
.ed { display: flex; flex-direction: column; background: #080910; color: #f4f5f8; font-size: calc(var(--pw) * 0.034); }
.ed__top { flex: none; display: flex; align-items: center; gap: 0.6em; padding: 3.6em 1em 0.7em; }
.ed__back { width: 3em; height: 3em; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.ed__back svg { width: 1.5em; height: 1.5em; }
[dir="rtl"] .ed__back svg { transform: scaleX(-1); }
.ed__title { flex: 1; min-width: 0; font-size: 1.25em; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed__export { flex: none; display: inline-flex; align-items: center; height: 3em; border-radius: 999px; background: #f4f5f8; color: #080910; font-weight: 700; }
.ed__export i { display: inline-flex; align-items: center; gap: 0.15em; padding-inline: 0.8em 0.6em; font-style: normal; font-size: 0.9em; font-weight: 600; border-inline-end: 1px solid rgba(8, 9, 16, 0.15); direction: ltr; }
.ed__export i svg { width: 1em; height: 1em; }
.ed__export b { display: inline-flex; align-items: center; gap: 0.3em; padding-inline: 0.7em 0.9em; font-size: 1.05em; }
.ed__export .arrow { width: 1.1em; height: 1.1em; }
.ed__preview { position: relative; flex: 1 1 auto; min-height: 0; display: grid; place-items: center; background: #000; }
.ed__video { position: relative; height: 100%; aspect-ratio: 9 / 16; max-width: 100%; overflow: hidden; isolation: isolate; }
.ed__video .stage__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ed__video::after { content: ""; position: absolute; inset: 55% 0 0; z-index: 1; pointer-events: none; background: linear-gradient(transparent, rgba(0, 0, 0, 0.35)); }
.ed__video .stage__kit { z-index: 2; }
.ed__video .stage__fallback { z-index: 2; left: 6%; right: 6%; bottom: 30%; }
.ed__panel { flex: none; background: #080910; border-radius: 1.4em 1.4em 0 0; margin-top: -1em; position: relative; z-index: 3; padding-block-end: 1.4em; }
.ed__panel::before { content: ""; display: block; width: 3em; height: 0.35em; margin: 0.6em auto 0; border-radius: 1em; background: rgba(255, 255, 255, 0.2); }
.ed__transport { display: flex; justify-content: center; align-items: center; gap: 1.3em; height: 4em; color: rgba(244, 245, 248, 0.8); }
.ed__transport > svg { width: 1.8em; height: 1.8em; }
.ed__play { width: 3.4em; height: 3.4em; border-radius: 50%; display: grid; place-items: center; background: #23242e; color: #fff; }
.ed__play svg { width: 1.6em; height: 1.6em; }
.ed__tl { direction: ltr; display: grid; grid-template-columns: 3.9em 1fr; margin-inline: 0.6em; padding: 0.5em 0.4em 0.6em 0; border-radius: 1em; background: #15161e; }
.ed__heads { display: grid; grid-template-rows: 2.2em 3.6em 3.2em; justify-items: center; align-items: center; }
.ed__heads i { grid-row: 2; width: 2.8em; height: 2.8em; border-radius: 0.9em; display: grid; place-items: center; background: #23242e; color: #f4f5f8; }
.ed__heads i + i { grid-row: 3; }
.ed__heads i.is-on { background: var(--pink); }
.ed__heads svg { width: 1.45em; height: 1.45em; }
.ed__lanes { position: relative; overflow: hidden; height: 9em; }
/* 1 s of video = 5em. The strip slides under the fixed, centred head;
   site.js writes --ed-t (0..1 of the caption loop) as the stage plays. */
.ed__strip {
  --sec: 5em;
  position: absolute; top: 0; left: 50%; width: calc((var(--n) * 0.52 + 2.4) * var(--sec));
  transform: translateX(calc(var(--ed-t, 0) * (var(--n) * 0.52 + 1.1) * var(--sec) * -1));
}
.ed__ruler { display: flex; height: 2.2em; align-items: center; font-size: 0.8em; color: rgba(244, 245, 248, 0.4); font-variant-numeric: tabular-nums; }
.ed__ruler span { flex: none; width: calc(var(--sec) / 0.8); }
.ed__film { height: 3.1em; margin-block: 0.25em; border-radius: 0.8em; background-size: auto 100%; background-repeat: repeat-x; background-position: 0 30%; box-shadow: inset 0 0 0 0.25em #15161e; }
.ed__chips { display: flex; gap: 0.25em; height: 2.6em; }
.ed__chips span { flex: none; font-size: 0.8em; width: calc(var(--sec) * 0.52 / 0.8 - 0.31em); display: grid; place-items: center; padding-inline: 0.3em; border-radius: 0.7em; background: #30313b; color: #f4f5fa; font-weight: 600; white-space: nowrap; overflow: hidden; }
.ed__chips span.is-on { box-shadow: inset 0 0 0 0.13em #fff; }
.ed__head { position: absolute; top: 0.1em; bottom: 0; left: 50%; width: 0.13em; margin-left: -0.065em; background: #fff; border-radius: 1em; }
.ed__head b { position: absolute; top: 0; left: 50%; translate: -50% 0; height: 1.8em; padding-inline: 0.55em; display: grid; place-items: center; border-radius: 999px; background: #fff; color: #15161e; font-size: 0.85em; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ed__rail { display: flex; justify-content: space-between; padding: 1em 1.1em 0; }
.ed__rail span { display: grid; justify-items: center; gap: 0.35em; width: 4.2em; color: rgba(244, 245, 248, 0.72); }
.ed__rail span.is-on { color: var(--pink); }
.ed__rail svg { width: 1.9em; height: 1.9em; }
.ed__rail small { font-size: 0.85em; font-weight: 600; white-space: nowrap; }
.stage .ed .phone__island { top: calc(var(--pw) * 0.03); }

/* ---------- proof: the trending ranking + numbers ---------- */
.proof { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: stretch; }
.rank { list-style: none; margin: 0; padding: 10px; display: grid; gap: 4px; border-radius: var(--r-lg); background: var(--bg-card); box-shadow: inset 0 0 0 1px var(--line); }
.rank li { display: grid; grid-template-columns: 28px 48px 1fr; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 16px; }
.rank li:first-child { background: rgba(255, 255, 255, 0.05); }
.rank__n { font-size: 15px; font-weight: 700; color: var(--ink-3); text-align: center; font-variant-numeric: tabular-nums; }
.rank li:first-child .rank__n { color: var(--pink); }
.rank img, .rank__dot { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.rank b { font-size: 18px; font-weight: 680; direction: ltr; text-align: start; unicode-bidi: plaintext; }
.proof__nums { display: grid; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); }
.proof__nums .num + .num { border-inline-start: 0; border-block-start: 1px solid var(--line); }
.quotes { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.quotes li { padding: 26px; border-radius: var(--r-lg); background: var(--bg-card); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 14px; }
.quotes blockquote { margin: 0; font-size: 18px; line-height: 1.6; }
.quotes cite { font-style: normal; color: var(--ink-3); font-size: 14px; }
@media (max-width: 860px) { .proof { grid-template-columns: 1fr; } }

.plans__welcome { font-weight: 650; color: var(--ink); }

/* ---------- features page TOC ---------- */
.toc { justify-content: flex-start; margin-block-start: -12px; }

/* ---------- SEO landing pages ---------- */
.phero--seo .wrap { max-width: 980px; margin-inline: auto; }
.phero--seo .display { font-size: clamp(42px, 7vw, 96px); }
html:is([lang="fa"], [lang="ar"]) .phero--seo .display { font-size: clamp(36px, 6vw, 80px); }
.answer { max-width: 44em; color: var(--ink); opacity: 0.86; }
.updated { margin: -10px 0 0; font-size: 14px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.steps .h3 { font-size: 20px; }
@media (max-width: 1080px) { .steps--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .steps--4 { grid-template-columns: 1fr; } }
.tile .h3 { font-size: 22px; }
.cmp { overflow-x: auto; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); background: var(--bg-card); }
.cmp table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15.5px; }
.cmp th, .cmp td { padding: 18px 20px; text-align: start; vertical-align: top; border-block-end: 1px solid var(--line); }
.cmp tr:last-child th, .cmp tr:last-child td { border-block-end: 0; }
.cmp thead th { font-size: 14px; font-weight: 700; color: var(--ink-3); }
.cmp thead th.is-us { color: var(--ink); }
.cmp tbody th { font-weight: 650; width: 26%; }
.cmp td { color: var(--ink-2); width: 37%; }
.cmp td.is-us { color: var(--ink); background: rgba(244, 63, 143, 0.06); }
@media (max-width: 640px) {
  /* Phones: one card per row, both answers side by side and labelled. */
  .cmp table { min-width: 0; }
  .cmp thead { display: none; }
  .cmp tbody, .cmp tr { display: block; }
  .cmp tr { display: grid; grid-template-columns: 1fr 1fr; border-block-end: 1px solid var(--line); }
  .cmp tr:last-child { border-block-end: 0; }
  .cmp tbody th { grid-column: 1 / -1; width: auto; padding: 16px 16px 6px; border: 0; }
  .cmp td { width: auto; padding: 8px 16px 16px; border: 0; font-size: 14.5px; }
  .cmp td::before { content: attr(data-label); display: block; margin-block-end: 4px; font-size: 12px; font-weight: 700; color: var(--ink-3); }
  .cmp td.is-us::before { color: var(--pink); }
}
.cmp__note { margin: 14px 0 0; font-size: 13.5px; max-width: 60em; }
.shopband { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(28px, 4vw, 56px); border-radius: var(--r-xl); background: var(--paper); color: var(--paper-ink); }
.shopband .lede { color: var(--paper-ink-2); margin-block: 18px 22px; }
.shopband .link { color: var(--paper-ink); }
.shopband .bullets li { color: var(--paper-ink-2); }
.shopband .h2 { font-size: clamp(32px, 4.4vw, 60px); }
@media (max-width: 860px) { .shopband { grid-template-columns: 1fr; } }
.related { display: grid; gap: 18px; }
.related__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related__item { position: relative; display: grid; gap: 4px; padding: 22px 48px 22px 22px; border-radius: var(--r-md); background: var(--bg-card); box-shadow: inset 0 0 0 1px var(--line); transition: background-color 0.3s, transform 0.5s var(--ease-settle); }
[dir="rtl"] .related__item { padding: 22px 22px 22px 48px; }
.related__item:hover { background: #141724; transform: translateY(-3px); }
.related__item span { color: var(--ink-2); font-size: 15px; }
.related__item .arrow { position: absolute; top: 24px; inset-inline-end: 20px; width: 16px; height: 16px; color: var(--ink-3); }
@media (max-width: 860px) { .related__list { grid-template-columns: 1fr; } }

/* ---------- proof: reels made with Sorelo (our own, as posted) ---------- */
.made { margin-block-start: clamp(48px, 7vw, 88px); }
.made__head { display: grid; justify-items: center; gap: 10px; margin: 0 0 24px; text-align: center; }
.made__head b { font-size: clamp(20px, 2.2vw, 26px); font-weight: 750; letter-spacing: -0.02em; }
.made__row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.made__row li { display: grid; gap: 10px; }
.made__row video { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 20px; background: #111;
  box-shadow: inset 0 0 0 1px var(--line), 0 24px 50px -24px rgba(0, 0, 0, 0.9); }
.made__row span { font-size: 14px; font-weight: 600; color: var(--ink-2); text-align: center; }
@media (max-width: 860px) {
  .made__row { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 46%; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .made__row::-webkit-scrollbar { display: none; }
  .made__row li { scroll-snap-align: start; }
}

/* ---------- free caption + hashtag generator (tool_page.html) ---------- */
.captool {
  max-width: 760px; margin-inline: auto; display: grid; gap: 18px;
  padding: clamp(20px, 3vw, 32px); border-radius: var(--r-lg);
  background: var(--bg-card); box-shadow: inset 0 0 0 1px var(--line);
}
.captool__label, .captool__field > span, .captool__field > legend { font-size: 14px; font-weight: 650; color: var(--ink-2); }
.captool__input, .captool__field select {
  width: 100%; border: 0; border-radius: 16px; padding: 14px 16px; font: inherit; color: var(--ink);
  background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line-2);
}
.captool__input { resize: vertical; min-height: 96px; line-height: 1.6; }
.captool__input:focus, .captool__field select:focus { outline: 2px solid rgba(244, 63, 143, 0.6); outline-offset: 2px; }
.captool__row { display: grid; gap: 18px; grid-template-columns: minmax(0, 220px) 1fr; align-items: start; }
.captool__field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.captool__field select { appearance: none; cursor: pointer; }
.captool .chip { cursor: pointer; }
.captool .chip:has(input:checked) { color: #0a0a0f; background: #fff; box-shadow: none; }
.captool .chip:has(input:focus-visible) { outline: 2px solid rgba(244, 63, 143, 0.6); outline-offset: 2px; }
.captool__go { justify-self: start; }
.captool__go[aria-busy="true"] { opacity: 0.7; pointer-events: none; }
.captool__status { min-height: 1.4em; margin: 0; color: var(--ink-2); font-size: 15px; }
.captool__status.is-error { color: #ff8fb7; }
.captool__out { display: grid; gap: 14px; }
.captool__out[hidden] { display: none; }
.captool__card { border-radius: 18px; padding: 18px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line); }
.captool__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.captool__caption { white-space: pre-line; line-height: 1.75; margin: 0; }
.captool__tags { margin: 0; font-weight: 650; word-spacing: 6px; color: #c8b6ff; }
.captool__note { margin: 10px 0 0; font-size: 13px; }
.captool__upsell { display: grid; gap: 10px; justify-items: start; padding: 20px; border-radius: 18px; background: linear-gradient(135deg, rgba(244, 63, 143, 0.16), rgba(124, 58, 237, 0.16)); box-shadow: inset 0 0 0 1px var(--line-2); }
.captool__upsell p { margin: 0; color: var(--ink-2); }
@media (max-width: 640px) { .captool__row { grid-template-columns: 1fr; } }
