/* ===================== Montaj — site styles ===================== */
:root {
  --bg: #060609; --bg2: #0c0c12; --panel: rgba(255, 255, 255, 0.035); --panel2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08); --line2: rgba(255, 255, 255, 0.14);
  --text: #f2f2f6; --muted: #a2a2b2; --dim: #6c6c7c;
  --teal: #22d3c5; --violet: #7c5cff; --pink: #ff5f8f; --amber: #ffb547;
  --max: 1220px; --r: 22px;
  --font: 'IBM Plex Sans Arabic', 'Inter', 'Segoe UI', system-ui, sans-serif;
  --display: 'Readex Pro', 'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.8 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }
.grad { background: linear-gradient(95deg, #5ff3e7 0%, var(--teal) 30%, #8fb6ff 60%, var(--violet) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-warm { background: linear-gradient(95deg, var(--pink), var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
svg.i { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* aurora background */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: 0.22; animation: drift 26s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { background: var(--teal); top: -28vmax; right: -12vmax; }
.aurora i:nth-child(2) { background: var(--violet); top: -18vmax; left: -22vmax; animation-delay: -8s; opacity: 0.18; }
.aurora i:nth-child(3) { background: var(--pink); top: 60vh; left: 30vw; width: 40vmax; height: 40vmax; animation-delay: -16s; opacity: 0.08; }
@keyframes drift { to { transform: translate(6vmax, 4vmax) scale(1.08); } }
.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.05; 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'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E"); }

/* nav */
.nav { position: sticky; top: 0; z-index: 60; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(6, 6, 9, 0.72); backdrop-filter: blur(18px) saturate(1.4); border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: center; gap: 11px; font: 700 22px var(--display); letter-spacing: 0.2px; }
.logo img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 6px 26px -8px var(--teal); }
.nav-links { display: flex; gap: 26px; margin-inline-start: auto; font-size: 15.5px; }
.nav-links a { color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.lang { border: 1px solid var(--line2); background: transparent; color: var(--text); border-radius: 999px; padding: 6px 14px; font-size: 13.5px; cursor: pointer; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px; border-radius: 15px; font: 600 17px var(--font); border: 1px solid transparent; cursor: pointer; transition: transform .18s, box-shadow .25s, background .2s, border-color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { color: #00201d; background: linear-gradient(180deg, #4ff0e3, var(--teal)); box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 16px 40px -14px rgba(34, 211, 197, .75); }
.btn-ghost { background: var(--panel); border-color: var(--line2); color: var(--text); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: rgba(255,255,255,.28); }
.btn-heart { color: #fff; background: linear-gradient(135deg, #ff5f8f, #ff8a5c); box-shadow: 0 16px 40px -16px rgba(255, 95, 143, .8); }
.btn-sm { padding: 9px 16px; font-size: 14.5px; border-radius: 11px; }
.btn small { font-weight: 500; opacity: .75; font-size: 13px; }

/* hero */
.hero { padding: 64px 0 30px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 0.95fr 1.25fr; gap: 54px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line2); font-size: 14px; color: var(--muted); }
.badge b { background: var(--teal); color: #00201d; border-radius: 999px; padding: 1px 9px; font-size: 12.5px; }
h1 { font: 700 clamp(40px, 5.6vw, 76px)/1.08 var(--display); letter-spacing: -1px; margin: 22px 0 20px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); margin: 0 0 30px; max-width: 560px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; font-size: 14px; color: var(--dim); }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta svg.i { width: 16px; height: 16px; color: var(--teal); }

.stage { position: relative; }
.window { border-radius: 16px; overflow: hidden; border: 1px solid var(--line2); background: #0d0d12; box-shadow: 0 50px 120px -40px rgba(34, 211, 197, .35), 0 40px 90px -30px rgba(124, 92, 255, .35), 0 0 0 1px rgba(255,255,255,.03); transform: perspective(1600px) rotateY(var(--ry, -6deg)) rotateX(3deg); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
[dir=ltr] .window { --ry: 6deg; }
.stage:hover .window { transform: perspective(1600px) rotateY(0) rotateX(0); }
.window .bar { height: 34px; display: flex; align-items: center; gap: 7px; padding-inline: 14px; background: #15151c; border-bottom: 1px solid var(--line); }
.window .bar i { width: 11px; height: 11px; border-radius: 50%; background: #34343f; }
.window .bar span { margin-inline-start: auto; font-size: 12px; color: var(--dim); }
.window video { width: 100%; aspect-ratio: 1440 / 838; object-fit: cover; background: #000; }
.chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 11px 15px; border-radius: 15px; background: rgba(14, 14, 20, .78); border: 1px solid var(--line2); backdrop-filter: blur(14px); box-shadow: 0 18px 40px -18px #000; font-size: 14px; animation: float 6s ease-in-out infinite; }
.chip b { display: block; font: 700 18px var(--display); line-height: 1.2; }
.chip small { color: var(--muted); font-size: 12.5px; }
.chip .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.chip.c1 { top: -18px; inset-inline-start: -28px; } .chip.c1 .dot { background: rgba(34, 211, 197, .16); color: var(--teal); }
.chip.c2 { bottom: 70px; inset-inline-end: -26px; animation-delay: -2s; } .chip.c2 .dot { background: rgba(255, 95, 143, .16); color: var(--pink); }
.chip.c3 { bottom: -22px; inset-inline-start: 18%; animation-delay: -4s; } .chip.c3 .dot { background: rgba(124, 92, 255, .2); color: #a996ff; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* engine strip */
.strip { margin-top: 70px; padding: 22px 0; border-block: 1px solid var(--line); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.strip .row { display: flex; gap: 54px; width: max-content; animation: marquee 38s linear infinite; }
.strip span { font: 600 17px var(--display); color: var(--dim); white-space: nowrap; }
.strip span em { font-style: normal; color: var(--muted); font-weight: 400; font-size: 14px; margin-inline-start: 6px; }
@keyframes marquee { to { transform: translateX(-50%); } }
[dir=rtl] .strip .row { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* sections */
section { padding: 110px 0; position: relative; }
.head { text-align: center; max-width: 780px; margin: 0 auto 56px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font: 600 14px var(--font); letter-spacing: .6px; margin-bottom: 12px; }
h2 { font: 700 clamp(30px, 4vw, 52px)/1.15 var(--display); margin: 0 0 16px; letter-spacing: -0.5px; }
.head p { color: var(--muted); font-size: 18.5px; margin: 0; }

/* templates carousel */
.tpl-track { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); padding: 10px 0 30px; }
.tpl-row { display: flex; gap: 22px; width: max-content; animation: marquee 60s linear infinite; }
[dir=rtl] .tpl-row { animation-name: marquee-rtl; }
.tpl-row:hover { animation-play-state: paused; }
.phone { width: 230px; flex: none; }
.phone .scr { border-radius: 28px; overflow: hidden; border: 6px solid #17171e; box-shadow: 0 0 0 1px var(--line2), 0 30px 60px -30px #000; aspect-ratio: 9/16; background: #000; }
.phone .scr img { width: 100%; height: 100%; object-fit: cover; }
.phone.wide { width: 410px; } .phone.wide .scr { aspect-ratio: 16/9; border-radius: 18px; }
.phone.sq { width: 300px; } .phone.sq .scr { aspect-ratio: 1; }
.phone.p45 { width: 260px; } .phone.p45 .scr { aspect-ratio: 4/5; }
.phone p { margin: 12px 0 0; text-align: center; font-weight: 600; }
.phone small { display: block; text-align: center; color: var(--dim); font-size: 13px; }

/* feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 120px; }
.feature:last-child { margin-bottom: 0; }
.feature.flip .media { order: 2; }
.feature h3 { font: 700 clamp(26px, 3vw, 38px)/1.2 var(--display); margin: 0 0 14px; }
.feature p { color: var(--muted); font-size: 18px; margin: 0 0 22px; }
.ticks { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li svg.i { color: var(--teal); margin-top: 4px; width: 19px; height: 19px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pills span { font-size: 13.5px; padding: 4px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); }
.engine { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--dim); margin-top: 18px; }
.engine b { color: var(--muted); font-weight: 600; }
.media { position: relative; }
.glass { border-radius: var(--r); border: 1px solid var(--line2); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); padding: 18px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.9); }

/* before / after slider */
.ba { position: relative; overflow: hidden; border-radius: 16px; user-select: none; touch-action: none; --pos: 50%; cursor: ew-resize; background: #000; }
.ba img { width: 100%; height: 100%; object-fit: cover; }
.ba .after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.ba .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; transform: translateX(-1px); box-shadow: 0 0 20px #0009; }
.ba .handle::after { content: '⟷'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 42px; height: 42px; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; font-size: 18px; font-weight: 700; box-shadow: 0 6px 20px #0008; }
.ba .lbl { position: absolute; top: 12px; padding: 3px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); }
.ba .lbl.l { left: 12px; } .ba .lbl.r { right: 12px; background: var(--teal); color: #00201d; }

/* voice A/B */
.ab { display: grid; gap: 14px; }
.ab-switch { display: grid; grid-template-columns: 1fr 1fr; background: rgba(0,0,0,.35); border: 1px solid var(--line); border-radius: 14px; padding: 5px; }
.ab-switch button { border: 0; background: transparent; color: var(--muted); padding: 10px; border-radius: 10px; font-size: 15.5px; font-weight: 600; cursor: pointer; }
.ab-switch button.on { background: var(--panel2); color: var(--text); box-shadow: 0 0 0 1px var(--line2); }
.ab-switch button.on.after { background: rgba(34, 211, 197, .16); color: var(--teal); }
.wave { position: relative; height: 96px; border-radius: 12px; overflow: hidden; background: rgba(0,0,0,.35); border: 1px solid var(--line); }
.wave img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; transition: opacity .3s; }
.wave .prog { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; left: 0; box-shadow: 0 0 10px #fff8; }
.ab-ctrl { display: flex; align-items: center; gap: 14px; }
.play { width: 54px; height: 54px; border-radius: 50%; border: 0; background: #fff; color: #000; display: grid; place-items: center; cursor: pointer; flex: none; box-shadow: 0 10px 30px -10px #fff6; }
.play svg.i { width: 22px; height: 22px; fill: #000; stroke: none; }
.ab-ctrl .t { font-size: 14px; color: var(--muted); }
.ab-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ab-stats div { padding: 12px; border-radius: 12px; background: rgba(0,0,0,.3); border: 1px solid var(--line); text-align: center; font-size: 13px; color: var(--muted); }
.ab-stats b { display: block; font: 700 20px var(--display); color: var(--text); }

/* reframe visual */
.reframe { display: grid; grid-template-columns: 1.7fr auto 0.75fr; gap: 18px; align-items: center; }
.reframe img { border-radius: 12px; border: 1px solid var(--line2); }
.reframe .arrow { color: var(--teal); }
[dir=rtl] .reframe .arrow svg { transform: scaleX(-1); }

/* stats band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 28px 22px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); text-align: center; }
.stat b { display: block; font: 700 clamp(30px, 3.6vw, 46px)/1.1 var(--display); }
.stat span { color: var(--muted); font-size: 15px; }

/* everything grid */
.all { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.all div { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); font-size: 15.5px; transition: border-color .2s, background .2s; }
.all div:hover { border-color: var(--line2); background: var(--panel2); }
.all svg.i { color: var(--teal); }

/* support cards */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 1000px; margin: 0 auto; }
.plan { position: relative; padding: 34px; border-radius: 26px; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); border: 1px solid var(--line2); display: flex; flex-direction: column; }
.plan.love { border-color: rgba(255, 95, 143, .45); background: linear-gradient(170deg, rgba(255, 95, 143, .13), rgba(124, 92, 255, .08) 55%, rgba(255,255,255,.02)); box-shadow: 0 40px 90px -50px rgba(255, 95, 143, .7); }
.plan .tag { position: absolute; top: -13px; inset-inline-end: 24px; background: linear-gradient(135deg, var(--pink), var(--amber)); color: #fff; font-size: 12.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plan h3 { font: 700 22px var(--display); margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.plan .price { font: 700 52px/1.1 var(--display); margin: 14px 0 4px; }
.plan .price small { font-size: 18px; color: var(--muted); font-weight: 500; }
.plan .sub { color: var(--muted); margin: 0 0 22px; font-size: 15.5px; }
.plan .ticks { margin-bottom: 26px; }
.plan .push { margin-top: auto; }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.amounts button { font: 700 17px var(--display); padding: 12px 4px; border-radius: 13px; border: 1px solid var(--line2); background: rgba(0,0,0,.25); color: var(--text); cursor: pointer; transition: all .15s; }
.amounts button small { display: block; font: 500 11.5px var(--font); color: var(--muted); }
.amounts button.on { border-color: var(--pink); background: rgba(255, 95, 143, .2); box-shadow: 0 0 0 3px rgba(255, 95, 143, .15); }
.custom { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 6px 6px 6px 14px; border-radius: 13px; border: 1px solid var(--line2); background: rgba(0,0,0,.25); }
[dir=rtl] .custom { padding: 6px 14px 6px 6px; }
.custom label { color: var(--muted); font-size: 14.5px; white-space: nowrap; }
.custom input { flex: 1; min-width: 0; font: 700 18px var(--display); padding: 8px 10px; border-radius: 9px; border: 0; background: transparent; color: var(--text); outline: none; }
.custom b { color: var(--muted); font-size: 14px; padding-inline-end: 8px; }
.fine { font-size: 13px; color: var(--dim); margin-top: 12px; text-align: center; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* faq */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); transition: border-color .2s; }
.faq details[open] { border-color: var(--line2); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 24px; font: 600 18px var(--font); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: 0; padding: 0 24px 22px; }

/* final cta */
.final { text-align: center; padding: 80px 30px; border-radius: 32px; border: 1px solid var(--line2); background: radial-gradient(120% 120% at 50% 0%, rgba(34, 211, 197, .18), transparent 60%), radial-gradient(100% 100% at 100% 100%, rgba(124, 92, 255, .2), transparent 60%), var(--bg2); }
.final h2 { margin-bottom: 14px; }
.final p { color: var(--muted); font-size: 18.5px; margin: 0 auto 30px; max-width: 620px; }
.final .cta { justify-content: center; }

/* footer */
footer { padding: 56px 0 46px; color: var(--muted); font-size: 14.5px; border-top: 1px solid var(--line); margin-top: 110px; }
footer .wrap { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 30px; }
footer h4 { color: var(--text); margin: 0 0 12px; font: 600 15px var(--font); }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
footer a:hover { color: var(--text); }
.credits { font-size: 12.5px; line-height: 1.8; color: var(--dim); }
.copy { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* blog (shared by /blog pages) */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--panel); display: flex; flex-direction: column; transition: transform .25s, border-color .25s; }
.post-card:hover { transform: translateY(-4px); border-color: var(--line2); }
.post-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.post-card div { padding: 18px 22px 24px; }
.post-card h3 { margin: 6px 0 8px; font: 700 20px/1.45 var(--display); }
.post-card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.post-card time { font-size: 13px; color: var(--teal); }
article.post { max-width: 780px; margin: 0 auto; padding: 70px 0 40px; }
article.post h1 { font-size: clamp(32px, 4.6vw, 50px); margin: 10px 0 16px; }
article.post h2 { font-size: clamp(24px, 3vw, 30px); margin: 46px 0 12px; }
article.post p, article.post li { color: #d2d2dc; font-size: 18.5px; }
article.post img { border-radius: 16px; border: 1px solid var(--line2); margin: 28px 0; }
article.post .meta { color: var(--muted); font-size: 15px; display: block; margin: 0; }
article.post code { background: #1b1b24; padding: 2px 8px; border-radius: 6px; font-size: 15px; direction: ltr; unicode-bidi: embed; }
article.post blockquote { margin: 26px 0; padding: 16px 22px; border-inline-start: 4px solid var(--teal); background: var(--panel); border-radius: 12px; color: var(--text); }
article.post .stat { display: inline; padding: 0; background: none; border: 0; font-weight: 700; color: var(--teal); }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; }

@media (max-width: 1020px) {
  .hero-grid, .feature { grid-template-columns: 1fr; gap: 40px; }
  .feature.flip .media { order: 0; }
  .window { transform: none; }
  .chip.c1 { inset-inline-start: 8px; } .chip.c2 { inset-inline-end: 8px; }
  .all { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .plans, .posts { grid-template-columns: 1fr; }
  footer .wrap { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  section { padding: 76px 0; }
  .hero { padding-top: 34px; }
  .cta .btn { width: 100%; }
  .chip { display: none; }
  .phone { width: 180px; } .phone.wide { width: 300px; } .phone.sq { width: 230px; } .phone.p45 { width: 200px; }
  .all { grid-template-columns: 1fr; }
  .amounts { grid-template-columns: repeat(2, 1fr); }
  .reframe { grid-template-columns: 1fr; }
  .reframe .arrow { justify-self: center; transform: rotate(90deg); }
  .reframe img.tall { max-width: 200px; justify-self: center; }
  footer .wrap { grid-template-columns: 1fr; }
  .plan { padding: 26px; }
  .nav .lang { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, .reveal { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Latin numbers/units inside Arabic layout: keep their own order (0.1% CPU, -16 LUFS, <10 ms) */
.chip b, .stat b, .ab-stats b, .phone small, .engine, .strip span { unicode-bidi: plaintext; }
.chip b { text-align: start; }
.stat b, .ab-stats b { direction: ltr; unicode-bidi: isolate; }

/* grids: let children shrink below their content width (prevents horizontal scroll on phones) */
.hero-grid > *, .feature > *, .plans > *, .stats > *, .all > *, .posts > * { min-width: 0; }
@media (max-width: 1020px) { .plans { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .btn { white-space: normal; text-align: center; } .plan .price { font-size: 44px; } }

/* beta */
.beta-bar { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 16px; font-size: 14px; color: var(--muted); background: linear-gradient(90deg, rgba(34,211,197,.12), rgba(124,92,255,.12)); border-bottom: 1px solid var(--line); text-align: center; }
.beta-pill { display: inline-block; font: 700 11px/1 var(--font); letter-spacing: 1px; padding: 4px 8px; border-radius: 999px; color: #00201d; background: linear-gradient(135deg, var(--teal), #8fb6ff); vertical-align: middle; }
.beta-pill.sm { font-size: 9.5px; padding: 3px 6px; margin-inline-start: 2px; }
.link { background: none; border: 0; color: var(--teal); font: 600 14px var(--font); cursor: pointer; padding: 0; }
.link:hover { text-decoration: underline; }

/* feedback modal */
.modal-bg { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); }
.modal-bg[hidden] { display: none; }
.modal { position: relative; width: min(520px, 100%); padding: 28px; border-radius: 22px; background: #111118; border: 1px solid var(--line2); box-shadow: 0 40px 100px -30px #000; display: grid; gap: 12px; animation: pop .25s ease; }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } }
.modal h3 { margin: 0; font: 700 24px var(--display); }
.modal p { margin: 0; }
.modal .x { position: absolute; top: 14px; inset-inline-end: 16px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line2); background: transparent; color: var(--muted); font-size: 20px; cursor: pointer; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px; border-radius: 13px; background: rgba(0,0,0,.35); border: 1px solid var(--line); }
.seg button { border: 0; padding: 9px; border-radius: 10px; background: transparent; color: var(--muted); font: 600 14.5px var(--font); cursor: pointer; }
.seg button.on { background: var(--panel2); color: var(--text); box-shadow: 0 0 0 1px var(--line2); }
.modal textarea, .modal input { width: 100%; font: 400 16px var(--font); color: var(--text); background: rgba(0,0,0,.35); border: 1px solid var(--line2); border-radius: 12px; padding: 12px 14px; outline: none; resize: vertical; }
.modal textarea:focus, .modal input:focus { border-color: var(--teal); }
