/* Home page (/ and /<lang>). One file for everything below the nav except the hero tour (herodemo.css).
   Builds on the tokens in app.css and the shared marketing pieces in site.css (sections, FAQ, template cards).
   Order follows the page: hero, facts, jobs, Magic Clips, languages, caption playground, templates, the kit,
   pricing, final call, phone sticky bar, right-to-left. */
.wrap { max-width: 1200px; margin: 0 auto; }
html[data-home] section { padding: 72px 24px; }
.sec-head h2, .split-copy h2 { text-wrap: balance; }
.fine { margin: 18px 0 0; max-width: 620px; color: var(--muted); font-size: 14px; }
.fine a { color: var(--text); text-underline-offset: 3px; }
a.pill { text-decoration: none; color: inherit; }
a.pill:hover { background: var(--panel); }

/* ---------- nav ---------- */
.nav-lang { display: inline-flex; align-items: center; margin-inline-end: 10px; color: var(--text-2, var(--muted)); }
.nav-lang .lang-switch select { max-width: 132px; }
.nav-links a { white-space: nowrap; }
@media (max-width: 640px) { .nav-lang { display: none; } }

/* ---------- hero: the promise, one action, then the tour ---------- */
.hero { padding: 44px 24px 64px; overflow: hidden; }
.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 900px; margin: 0 auto 44px; }
.hero h1 { font-size: clamp(38px, 6.2vw, 80px); font-weight: 800; letter-spacing: -0.05em; line-height: 0.98; margin: 22px 0 20px; text-wrap: balance; }
.hero p.lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--text-2); max-width: 640px; margin: 0 0 26px; text-wrap: pretty; }
.hero .cta-row { justify-content: center; }
.hero-note { margin-top: 16px; }
.hero-live { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); }
.hero-live i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #e5484d; box-shadow: 0 0 0 3px rgba(229, 72, 77, .2); animation: lp-blink 1.4s infinite; }
@keyframes lp-blink { 50% { opacity: .3; } }
@keyframes lp-marquee { to { transform: translateX(-50%); } }
@keyframes lp-up { to { transform: translateY(-50%); } }

/* ---------- the four numbers, said once ---------- */
.facts { border-top: 1px solid var(--text); background: var(--panel); padding: 0 24px; }
.facts .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts .wrap > div { display: flex; align-items: center; gap: 14px; padding: 22px 22px; border-inline-start: 1px solid var(--border-2); }
.facts .wrap > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.facts b { flex: none; font: 800 36px/1 var(--display); letter-spacing: -0.045em; }
.facts span { font-size: 13.5px; line-height: 1.35; color: var(--text-2); }

/* ---------- copy beside a picture (Magic Clips, languages) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.split.rev .split-copy { order: 2; }
.split-copy .eyebrow { margin-bottom: 16px; }
.split-copy h2 { font-size: clamp(28px, 4.2vw, 48px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.04; margin: 0 0 14px; }
.split-copy > p:not(.fine) { font-size: 17px; color: var(--text-2); max-width: 540px; margin: 0 0 26px; }
.pts { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.pts li { position: relative; padding-inline-start: 24px; color: var(--text-2); font-size: 15.5px; }
.pts li::before { content: ''; position: absolute; inset-inline-start: 0; top: 6px; width: 11px; height: 11px; background: var(--accent); border: 1px solid var(--text); }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 0 36px; }
.sec-head-row .sec-head { margin: 0; }
.sec-head-row > .btn { flex: none; }

/* ---------- job cards ---------- */
.jobs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.job { display: flex; flex-direction: column; border: 1px solid var(--text); border-radius: 8px; background: var(--panel); overflow: hidden; color: inherit; text-decoration: none !important; transition: transform .15s, box-shadow .15s; }
.job:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--text); }
.jv { position: relative; height: 180px; overflow: hidden; border-bottom: 1px solid var(--text); background: var(--bg); display: grid; place-items: center; }
.jt { padding: 16px 20px 20px; }
.jk { display: inline-block; font: 700 11px var(--mono); letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; background: var(--accent); border: 1px solid var(--text); margin-bottom: 10px; }
.jk em { font-style: normal; }
.jt h3 { font-size: 19px; letter-spacing: -0.02em; margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.jt h3 em { font: 700 9.5px var(--mono); font-style: normal; padding: 2px 6px; border-radius: 3px; background: var(--text); color: var(--bg); letter-spacing: .05em; }
.jt p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* 1 · describe it */
.j-design .jv { padding: 18px; display: flex; flex-direction: column; gap: 14px; place-items: initial; background: repeating-linear-gradient(0deg, transparent 0 23px, color-mix(in srgb, var(--text) 6%, transparent) 23px 24px), var(--bg); }
.jp { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--text); border-radius: 8px; background: var(--field, #fff); box-shadow: 3px 3px 0 var(--accent); font: 500 13px var(--font); }
.jp-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: j-type 6s steps(40) infinite; }
@keyframes j-type { 0% { max-width: 0; } 45%, 100% { max-width: 100%; } }
.jcards { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.jcards i { display: grid; place-items: center; border-radius: 6px; background: var(--c); border: 1px solid var(--text); animation: j-pop 6s ease-out infinite both; }
.jcards i:nth-child(2) { animation-delay: .15s; } .jcards i:nth-child(3) { animation-delay: .3s; }
.jcards b { font: 800 22px var(--display); color: #fff; mix-blend-mode: difference; letter-spacing: -0.03em; }
@keyframes j-pop { 0%, 48% { opacity: 0; transform: translateY(10px) scale(.94); } 58%, 100% { opacity: 1; transform: none; } }

/* 2 · long video → shorts */
.j-shorts .jv { background: #17150f; gap: 16px; padding: 18px; display: flex; flex-direction: column; justify-content: center; }
.jstrip { position: relative; display: flex; gap: 3px; height: 38px; width: 100%; }
.jstrip i { flex: 1; border-radius: 3px; background: linear-gradient(180deg, #3a3730, #26241f); }
.jstrip i:nth-child(2), .jstrip i:nth-child(5), .jstrip i:nth-child(7) { background: #ffd60a; }
.jph { position: absolute; top: -6px; bottom: -6px; width: 2px; background: #fff; animation: j-scan 4s linear infinite; }
@keyframes j-scan { from { left: 0; } to { left: 100%; } }
.jclips { display: flex; gap: 12px; justify-content: center; }
.jclips span { position: relative; width: 44px; aspect-ratio: 9/16; border-radius: 6px; background: linear-gradient(160deg, #ffd60a, #ff7a59); border: 1px solid #f3f0e8; animation: j-rise 4s ease-out infinite both; }
.jclips span:nth-child(2) { animation-delay: .25s; background: linear-gradient(160deg, #9ee7ff, #2f6690); } .jclips span:nth-child(3) { animation-delay: .5s; background: linear-gradient(160deg, #f6d6dc, #c84f78); }
.jclips b { position: absolute; top: -9px; right: -9px; font: 700 11px var(--mono); padding: 2px 5px; border-radius: 4px; background: #f3f0e8; color: #17150f; }
@keyframes j-rise { 0%, 30% { opacity: 0; transform: translateY(16px); } 45%, 100% { opacity: 1; transform: none; } }

/* 3 · every language */
.j-lang .jv { background: color-mix(in srgb, var(--accent) 22%, var(--bg)); gap: 14px; display: flex; flex-direction: column; justify-content: center; }
.jcap { position: relative; width: 82%; height: 52px; }
.jcap span { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 6px 12px; border-radius: 8px; background: #17150f; color: #fff; font: 800 16px/1.2 var(--display); letter-spacing: -0.01em; opacity: 0; animation: j-cycle 12.5s infinite; }
.jcap span[lang="ar"] { font-family: 'Cairo', var(--display); letter-spacing: 0; }
.jcap span:nth-child(2) { animation-delay: 2.5s; } .jcap span:nth-child(3) { animation-delay: 5s; } .jcap span:nth-child(4) { animation-delay: 7.5s; } .jcap span:nth-child(5) { animation-delay: 10s; }
@keyframes j-cycle { 0% { opacity: 0; transform: translateY(6px); } 3%, 18% { opacity: 1; transform: none; } 21%, 100% { opacity: 0; transform: translateY(-6px); } }
.jchips { display: flex; gap: 6px; }
.jchips b { font: 700 11px var(--mono); padding: 3px 7px; border-radius: 4px; border: 1px solid var(--text); background: var(--bg); animation: j-chip 12.5s steps(1) infinite; }
.jchips b:nth-child(2) { animation-delay: 2.5s; } .jchips b:nth-child(3) { animation-delay: 5s; } .jchips b:nth-child(4) { animation-delay: 7.5s; } .jchips b:nth-child(5) { animation-delay: 10s; }
@keyframes j-chip { 0%, 19% { background: var(--text); color: var(--bg); } 20%, 100% { background: var(--bg); color: var(--text); } }

/* 4 · product → ad */
.j-product .jv { background: #f6d6dc; }
.jprod { position: relative; width: 130px; height: 140px; }
.jbottle { position: absolute; left: 50%; bottom: 10px; width: 54px; height: 96px; margin-left: -27px; border-radius: 12px 12px 9px 9px; background: linear-gradient(90deg, #2f6690, #4f8ec0 45%, #2f6690); border: 1px solid #17150f; box-shadow: 10px 12px 0 rgba(23,21,15,.18); animation: j-float 4s ease-in-out infinite; }
.jbottle::before { content: ''; position: absolute; left: 15px; top: -19px; width: 22px; height: 20px; border-radius: 5px 5px 0 0; background: #17150f; }
.jbottle::after { content: ''; position: absolute; left: 9px; right: 9px; top: 32px; height: 28px; border-radius: 4px; background: #f3f0e8; }
.jtag { position: absolute; right: -14px; top: 10px; font: 800 18px var(--display); padding: 6px 10px; border-radius: 999px; background: #ffd60a; border: 1px solid #17150f; transform: rotate(10deg); animation: j-pop 4s ease-out infinite both; }
.jbuy { position: absolute; left: -24px; right: -24px; bottom: -14px; text-align: center; font: 700 12px var(--mono); padding: 7px; border-radius: 6px; background: #17150f; color: #ffd60a; clip-path: inset(0 100% 0 0); animation: j-wipe 4s ease-in-out infinite; }
@keyframes j-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes j-wipe { 0%, 35% { clip-path: inset(0 100% 0 0); } 55%, 100% { clip-path: inset(0 0 0 0); } }

/* 5 · captions that pop */
.j-caps .jv { background: #2f6690; }
.jwords { max-width: 80%; text-align: center; font: 900 26px/1.15 var(--display); color: #fff; text-transform: uppercase; letter-spacing: -0.02em; }
.jwords span { display: inline-block; padding: 0 3px; border-radius: 4px; animation: j-word 3.6s steps(1) infinite; }
.jwords span:nth-child(1) { animation-delay: 0s; } .jwords span:nth-child(2) { animation-delay: .6s; } .jwords span:nth-child(3) { animation-delay: 1.2s; } .jwords span:nth-child(4) { animation-delay: 1.8s; } .jwords span:nth-child(5) { animation-delay: 2.4s; } .jwords span:nth-child(6) { animation-delay: 3s; }
@keyframes j-word { 0% { background: #ffd60a; color: #17150f; transform: scale(1.08); } 16%, 100% { background: transparent; color: #fff; transform: none; } }

/* 6 · screen recorder */
.j-rec .jv { background: #17150f; }
.jscr { position: relative; width: 72%; aspect-ratio: 16/10; border-radius: 6px; background: #f3f0e8; overflow: hidden; animation: j-zoom 6s ease-in-out infinite; transform-origin: 70% 60%; }
.jbar { position: absolute; left: 0; right: 0; top: 0; height: 12%; background: #dcd6c6; }
.jl { position: absolute; left: 10%; height: 6%; width: 60%; border-radius: 3px; background: #cbc4b0; }
.jl:nth-of-type(2) { top: 24%; } .jl.s { top: 38%; width: 40%; } .jl:nth-of-type(4) { top: 52%; }
.jzoom { position: absolute; left: 52%; top: 48%; width: 34%; height: 26%; border-radius: 4px; background: #ffd60a; border: 1px solid #17150f; }
.jcur { position: absolute; left: 66%; top: 58%; width: 0; height: 0; border-left: 7px solid #17150f; border-top: 5px solid transparent; border-bottom: 5px solid transparent; transform: rotate(-30deg); animation: j-cur 6s ease-in-out infinite; }
.jcam { position: absolute; right: 5%; bottom: 7%; width: 18%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 38%, #e0a77f 0 22%, transparent 23%), radial-gradient(circle at 50% 100%, #17150f 0 45%, #2f6690 46%); border: 2px solid #fff; }
@keyframes j-zoom { 0%, 25% { transform: scale(1); } 45%, 75% { transform: scale(1.6); } 95%, 100% { transform: scale(1); } }
@keyframes j-cur { 0% { left: 30%; top: 30%; } 25%, 100% { left: 66%; top: 58%; } }

/* ---------- Magic Clips ---------- */
.mcl-steps { list-style: none; margin: 0 0 26px; padding: 0; counter-reset: s; display: grid; gap: 14px; }
.mcl-steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; }
.mcl-steps li::before { content: counter(s); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 13px var(--mono); border: 1px solid var(--text); background: var(--accent); color: var(--on-accent, #17150f); }
.mcl-steps b { font: 700 17px/1.25 var(--display); letter-spacing: -0.01em; }
.mcl-steps span { color: var(--muted); font-size: 14.5px; }
.clip-link { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; max-width: 540px; border: 1px solid var(--text); border-radius: 10px; background: var(--field, #fff); box-shadow: 4px 4px 0 var(--accent); }
.clip-link .cl-ic { font-size: 18px; }
.clip-link input[type=url] { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 15px var(--font); color: var(--text); padding: 8px 2px; }
.clip-link .btn { white-space: nowrap; }
.mcl-stage { position: relative; min-height: 420px; border: 1px solid var(--text); border-radius: 12px; background: repeating-linear-gradient(90deg, transparent 0 23px, color-mix(in srgb, var(--text) 6%, transparent) 23px 24px), var(--panel-2, var(--bg)); padding: 22px; overflow: hidden; }
.mcl-src { display: flex; align-items: center; gap: 10px; width: 62%; padding: 10px 12px; border: 1px solid var(--text); border-radius: 8px; background: #17150f; color: #f3f0e8; font: 600 12px var(--mono); }
.mcl-src i { flex: 1; height: 18px; border-radius: 3px; background: repeating-linear-gradient(90deg, #ffd60a 0 2px, transparent 2px 5px); opacity: .75; order: 2; }
.mcl-cards { display: grid; gap: 10px; width: 58%; margin-top: 18px; }
.mcl-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--text); border-radius: 8px; background: var(--panel, #fff); box-shadow: 3px 3px 0 var(--text); animation: mcl-in 7s ease-out infinite both; }
.mcl-card:nth-child(2) { animation-delay: .35s; } .mcl-card:nth-child(3) { animation-delay: .7s; }
.mcl-card strong { display: block; font: 700 14px/1.2 var(--display); }
.mcl-card em { font-style: normal; font-size: 12px; color: var(--muted); }
.mcl-card .sc { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 800 15px var(--display); border: 3px solid currentColor; }
.sc.hi { color: #1fa463; } .sc.mid { color: #d99a00; }
.mcl-phone { position: absolute; right: 22px; bottom: 22px; width: 36%; aspect-ratio: 9 / 16; border: 1px solid var(--text); border-radius: 14px; background: linear-gradient(170deg, #3f3a2a, #17150f); box-shadow: 6px 6px 0 var(--accent); overflow: hidden; }
.mcl-head { position: absolute; top: 12%; left: 8%; right: 8%; text-align: center; padding: 4px 6px; background: #ffd60a; color: #17150f; font: 900 clamp(9px, 1.1vw, 13px)/1.15 Montserrat, var(--display); border-radius: 3px; }
.mcl-emoji { position: absolute; top: 46%; left: 14%; font-size: clamp(26px, 3vw, 40px); transform: rotate(-8deg); animation: mcl-pop 3.5s ease-out infinite both; }
.mcl-cap { position: absolute; bottom: 18%; left: 6%; right: 6%; text-align: center; color: #fff; font: 900 clamp(11px, 1.3vw, 16px)/1.2 Montserrat, var(--display); text-transform: uppercase; text-shadow: 0 2px 0 #000, 0 0 6px #000; }
.mcl-cap b { color: #2fe58a; } .mcl-cap i { font-style: normal; color: #ffe600; }
@keyframes mcl-in { 0%, 8% { opacity: 0; transform: translateX(-14px); } 18%, 100% { opacity: 1; transform: none; } }
@keyframes mcl-pop { 0%, 40% { opacity: 0; transform: scale(.4) rotate(-8deg); } 50% { opacity: 1; transform: scale(1.15) rotate(-8deg); } 58%, 85% { opacity: 1; transform: scale(1) rotate(-8deg); } 100% { opacity: 0; } }

/* ---------- every language: one poster whose words switch language (drawn in CSS, no editor engine) ---------- */
.lx-stage { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.lx-phone { position: relative; width: min(280px, 72vw); aspect-ratio: 9/16; border-radius: 30px; border: 1px solid var(--text); background: #17150f; padding: 10px; box-shadow: 14px 14px 0 var(--accent); }
.lx-screen { position: absolute; inset: 10px; border-radius: 22px; overflow: hidden; background: #f6e7a1; }
.lx-poster { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-bottom: 12%; text-align: center; color: #3b2416; background: #f6e7a1; transition: opacity .35s; }
.lx-poster.out { opacity: 0; }
.lx-band { position: absolute; left: -25%; right: -25%; padding: 8px 0; overflow: hidden; white-space: nowrap; direction: ltr; font: 800 14px/1 var(--display); letter-spacing: .03em; }
.lx-band i { display: inline-block; font-style: normal; animation: lp-marquee 16s linear infinite; }
.lx-band bdi { padding: 0 .7em; }
.lx-band.a { top: 11%; transform: rotate(-7deg); background: #3b2416; color: #f6e7a1; }
.lx-band.b { bottom: 9%; transform: rotate(6deg); background: #c8102e; color: #fff; }
.lx-band.b i { animation-direction: reverse; }
.lx-big { font: 800 88px/0.9 var(--display); letter-spacing: -0.06em; }
.lx-sub { margin-top: 8px; font: italic 700 23px/1.1 'Playfair Display', Georgia, serif; color: #c8102e; }
.lx-foot { margin-top: 10px; font: 600 9px var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.lx-badge { position: absolute; inset-inline-end: 7%; top: 25%; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #c8102e; color: #fff; font: 800 11px/1.05 var(--display); white-space: pre-line; transform: rotate(12deg); }
.lx-poster[lang="ar"] .lx-band, .lx-poster[lang="ar"] .lx-sub, .lx-poster[lang="ar"] .lx-badge, .lx-poster[lang="ar"] .lx-foot { font-family: 'Cairo', 'IBM Plex Sans Arabic', sans-serif; font-style: normal; letter-spacing: 0; }
.lx-cap { position: absolute; left: 22px; right: 22px; bottom: 24%; text-align: center; font: 800 14px/1.35 var(--display); color: #fff; pointer-events: none; }
.lx-cap span { background: rgba(15,14,12,.82); padding: 4px 8px; border-radius: 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lx-cap[lang="ar"] { font-family: 'Cairo', var(--display); }
.lx-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 440px; }
.lx-chips button { font: 600 12.5px var(--font); padding: 6px 11px; border-radius: 999px; border: 1px solid var(--text); background: var(--panel); color: var(--text); cursor: pointer; }
.lx-chips button[lang="ar"] { font-family: 'IBM Plex Sans Arabic', 'Cairo', var(--font); }
.lx-chips button.on { background: var(--text); color: var(--bg); }

/* ---------- caption playground (/js/captionplay.js) ---------- */
.cp { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: center; }
.cp-ctl { display: flex; flex-direction: column; gap: 12px; }
.cp-lbl { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); }
.cp textarea { width: 100%; resize: vertical; min-height: 92px; padding: 14px 16px; border-radius: 8px; border: 1px solid var(--text); background: var(--field); color: var(--text); font: 600 18px/1.45 var(--display); box-shadow: 4px 4px 0 var(--text); outline: none; transition: box-shadow .12s; }
.cp textarea:focus { box-shadow: 4px 4px 0 var(--accent); }
.cp-samples { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.cp-samples button { height: 30px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--border-2); background: none; color: var(--text-2); font: 600 12.5px var(--font); cursor: pointer; }
.cp-samples button:hover { border-color: var(--text); color: var(--text); }
.cp-styles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 4px; }
.cp-styles button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px 9px; border-radius: 8px; border: 1px solid var(--border-2); background: #24241f; color: #f2efe6; cursor: pointer; transition: transform .12s; }
.cp-styles button:hover { transform: translateY(-2px); }
.cp-styles button b { font: 600 11px var(--font); color: #bdb9aa; }
.cp-styles button.on { border-color: var(--text); box-shadow: 0 0 0 2px var(--accent), 3px 3px 0 2px var(--text); }
.cp-styles .hd-cap.mini { font-size: 16px; }
.cp-row { display: flex; align-items: center; gap: 14px; margin: 4px 0 10px; }
.cp-sw { display: flex; gap: 8px; }
.cp-sw button { width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--text); cursor: pointer; }
.cp-sw button.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text); }
.cp-note { margin: 4px 0 0; color: var(--muted); font-size: 14px; max-width: 520px; }
.cp-stage { display: grid; place-items: center; }
.cp-phone { position: relative; width: 270px; aspect-ratio: 9 / 16; border-radius: 34px; border: 10px solid #17150f; background: #4e3428; overflow: hidden; box-shadow: 14px 14px 0 var(--accent); }
.cp-phone::before { content: ''; position: absolute; left: 50%; top: 8px; width: 74px; height: 20px; margin-left: -37px; border-radius: 99px; background: #17150f; z-index: 4; }
.cp-scene { position: absolute; inset: 0; background: linear-gradient(180deg, #7a5644, #4e3428); }
.cp-scene .hd-person { position: absolute; left: 50%; bottom: 0; width: 300px; height: 330px; transform: translateX(-50%); }
.cp-lamp { position: absolute; right: -30px; top: 40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 210, 140, .55), transparent 70%); }
.cp-plant { position: absolute; left: 12px; bottom: 120px; width: 50px; height: 110px; background: radial-gradient(ellipse at 50% 30%, #3f7a4a 40%, transparent 41%), radial-gradient(ellipse at 30% 55%, #2f6b3c 35%, transparent 36%), radial-gradient(ellipse at 70% 50%, #35703f 35%, transparent 36%), linear-gradient(transparent 72%, #b5532f 72%); }
.cp-ui { position: absolute; left: 14px; right: 14px; bottom: 26px; display: flex; align-items: flex-end; justify-content: space-between; z-index: 3; }
.cp-handle { font: 700 13px 'Instrument Sans', sans-serif; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.cp-icons { display: flex; flex-direction: column; gap: 12px; margin-bottom: 60px; }
.cp-icons i { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .85); }
.cp-prog { position: absolute; left: 14px; right: 14px; bottom: 12px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .3); z-index: 3; overflow: hidden; }
.cp-prog i { display: block; height: 100%; background: #fff; transform-origin: 0 50%; transition: transform .2s; }
.hd-cap.cp-cap { left: 8%; right: 8%; bottom: 38%; font-size: 26px; line-height: 1.25; }
.hd-cap.cp-cap[dir="rtl"] { font-family: Cairo, 'IBM Plex Sans Arabic', sans-serif; font-weight: 900; }
.cp-cap.s-spotlight span.on, .cp-cap.s-bounce span.on { color: var(--hl); }
.cp-cap.s-boxed span.on { background: var(--hl); }
.cp-cap.s-bold { color: var(--hl); }
.cp-cap.s-neon { color: var(--hl); text-shadow: 0 0 8px var(--hl); }
.cp-cap.s-minimal span.on { color: var(--hl); }

/* ---------- templates: one tidy row of posters (the live preview loads on hover, /js/tpllazy.js) ---------- */
#templates .tpl-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 16px; align-items: start; }
#templates .tpl-card b { font-size: 14.5px; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#templates .tpl-card > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#templates .tpl-prev { padding: 0; }

/* ---------- the kit: six tools with a small live picture, then the whole list on request ---------- */
#more .studio-strip { margin: 0 0 16px; }
.kit { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bx { position: relative; display: flex; flex-direction: column; border: 1px solid var(--text); border-radius: 8px; background: var(--panel); overflow: hidden; }
.bx.w2 { grid-column: span 2; }
.bx .vis { position: relative; height: 170px; overflow: hidden; border-bottom: 1px solid var(--text); background: var(--bg); color: var(--text); }
.bx .txt { padding: 16px 20px 20px; }
.bx h3 { font-size: 18px; letter-spacing: -0.02em; margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.bx h3 em { font: 700 9.5px var(--mono); font-style: normal; padding: 2px 6px; border-radius: 3px; background: var(--accent); border: 1px solid var(--text); letter-spacing: .05em; }
.bx p { margin: 0; color: var(--muted); font-size: 14.5px; }

.v-txt { padding: 18px 18px 0; font-family: Georgia, 'Times New Roman', serif; }
.v-txt p { margin: 0; font-size: 18px; line-height: 1.55; color: var(--text); }
.v-txt span { border-radius: 3px; padding: 0 1px; }
.v-txt .cut { text-decoration: line-through; color: #c0392b; opacity: .75; }
.v-txt .now { background: var(--accent); }
.v-txt .chips { position: absolute; left: 18px; right: 18px; bottom: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.v-txt .chips span { font: 600 12px/1 var(--font, system-ui); border: 1px solid var(--text); border-radius: 999px; padding: 6px 9px; background: var(--panel-2); }

.v-ask { padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; font-size: 13.5px; }
.v-ask .me, .v-ask .bot { max-width: 90%; padding: 8px 11px; border: 1px solid var(--text); border-radius: 12px; line-height: 1.35; }
.v-ask .me { align-self: flex-end; background: var(--accent); border-end-end-radius: 3px; }
.v-ask .bot { align-self: flex-start; background: var(--panel-2); border-end-start-radius: 3px; }
.v-ask .bot i { font-style: normal; text-decoration: underline; margin-inline-start: 6px; }

.v-resize { display: grid; place-items: center; padding-bottom: 26px; background: color-mix(in srgb, var(--accent) 22%, var(--bg)); }
.mg-fr { position: relative; overflow: hidden; background: #17150f; border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: mg-shape 9s ease-in-out infinite; }
.mg-fr .t { position: absolute; color: #ffd60a; font: 800 14px/1 var(--display); letter-spacing: -0.03em; white-space: nowrap; animation: mg-t 9s ease-in-out infinite; }
.mg-fr .a, .mg-fr .b { position: absolute; border-radius: 3px; }
.mg-fr .a { background: #ff5ca8; animation: mg-a 9s ease-in-out infinite; }
.mg-fr .b { background: #3ee0ff; animation: mg-b 9s ease-in-out infinite; }
.mg-fr .c { position: absolute; color: #fff; font: 600 8px var(--mono); opacity: .8; animation: mg-c 9s ease-in-out infinite; }
@keyframes mg-shape { 0%, 26% { width: 62px; height: 110px; } 34%, 60% { width: 104px; height: 104px; } 68%, 94% { width: 170px; height: 96px; } 100% { width: 62px; height: 110px; } }
@keyframes mg-t { 0%, 26% { left: 7px; top: 9px; font-size: 10px; } 34%, 60% { left: 9px; top: 10px; font-size: 14px; } 68%, 94% { left: 11px; top: 13px; font-size: 16px; } 100% { left: 7px; top: 9px; font-size: 10px; } }
@keyframes mg-a { 0%, 26% { left: 7px; top: 30px; width: 48px; height: 34px; } 34%, 60% { left: 9px; top: 34px; width: 40px; height: 40px; } 68%, 94% { left: 98px; top: 12px; width: 60px; height: 38px; } 100% { left: 7px; top: 30px; width: 48px; height: 34px; } }
@keyframes mg-b { 0%, 26% { left: 7px; top: 68px; width: 48px; height: 20px; } 34%, 60% { left: 54px; top: 34px; width: 40px; height: 40px; } 68%, 94% { left: 98px; top: 54px; width: 60px; height: 26px; } 100% { left: 7px; top: 68px; width: 48px; height: 20px; } }
@keyframes mg-c { 0%, 26% { left: 7px; top: 96px; } 34%, 60% { left: 9px; top: 86px; } 68%, 94% { left: 11px; top: 78px; } 100% { left: 7px; top: 96px; } }
.mg-sizes { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.mg-sizes span { font: 700 11px var(--mono); padding: 3px 8px; border-radius: 4px; border: 1px solid var(--text); background: var(--bg); animation: mg-on 9s steps(1) infinite; }
.mg-sizes span:nth-child(2) { animation-delay: -6s; } .mg-sizes span:nth-child(3) { animation-delay: -3s; }
@keyframes mg-on { 0%, 33% { background: var(--text); color: var(--bg); } 34%, 100% { background: var(--bg); color: var(--text); } }

.v-stock { padding: 0 14px; }
.v-stock .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; animation: lp-up 14s linear infinite; }
.v-stock .grid i { aspect-ratio: 4/3; border-radius: 4px; background: var(--c); position: relative; overflow: hidden; }
.v-stock .grid i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255, 255, 255, .25), transparent 55%); }
.v-stock .q { position: absolute; left: 14px; right: 14px; top: 12px; z-index: 1; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 6px; background: var(--field); border: 1px solid var(--text); box-shadow: 3px 3px 0 var(--text); font-size: 13px; font-weight: 600; }
.v-stock .q svg { width: 15px; height: 15px; }

.v-rfx { position: relative; overflow: hidden; background: linear-gradient(160deg, #66757f, #39434c); }
.v-rfx .w { position: absolute; left: 0; right: 0; top: 16%; text-align: center; font: 800 44px/1 var(--display); letter-spacing: -0.04em; color: #fff; white-space: nowrap; }
.v-rfx .p, .v-rfx .ring, .v-rfx .tag { position: absolute; left: 50%; animation: rfx-walk 7s ease-in-out infinite; }
.v-rfx .p { bottom: -6px; width: 84px; height: 62px; margin-left: -42px; border-radius: 42px 42px 6px 6px; background: #1f272e; }
.v-rfx .p::before { content: ''; position: absolute; left: 50%; bottom: 100%; width: 40px; height: 48px; margin: 0 0 -8px -20px; border-radius: 50%; background: #1f272e; }
.v-rfx .ring { bottom: 44px; width: 58px; height: 64px; margin-left: -29px; border: 2.5px solid #ffd60a; border-radius: 50%; }
.v-rfx .tag { bottom: 114px; margin-left: -19px; padding: 2px 7px; border-radius: 4px; background: #ffd60a; color: #17150f; font: 700 10px var(--mono); }
@keyframes rfx-walk { 0%, 100% { translate: -46px 0; } 50% { translate: 46px 0; } }
.v-brand { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 0 18px; }
.v-brand .kitb { display: flex; flex-direction: column; gap: 8px; }
.v-brand .mk { width: 44px; height: 44px; border-radius: 8px; background: var(--text); color: var(--accent); display: grid; place-items: center; font: 800 20px var(--display); }
.v-brand .sw { display: flex; gap: 5px; }
.v-brand .sw i { width: 18px; height: 18px; border-radius: 4px; border: 1px solid var(--text); }
.v-brand .aa { font: 800 22px var(--display); }
.v-brand .post { width: 80px; aspect-ratio: 9/16; border-radius: 6px; border: 1px solid var(--text); display: flex; flex-direction: column; justify-content: flex-end; padding: 8px; gap: 4px; animation: lp-brand 4s steps(1) infinite; color: #fff; }
.v-brand .post b { font: 800 12px/1 var(--display); }
.v-brand .post i { width: 16px; height: 16px; border-radius: 4px; background: currentColor; }
@keyframes lp-brand { 0% { background: #6e6a5a; color: #fff; } 50% { background: #17150f; color: #ffd60a; } }
.v-brand .arrow { font: 700 20px var(--mono); }

.v-vo { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 0 24px; }
.v-vo .script { font: 600 17px/1.35 var(--display); color: var(--text); max-width: 480px; }
.v-vo .script span { background: linear-gradient(90deg, var(--accent-soft) 50%, transparent 50%) 100% 0 / 200% 100% no-repeat; animation: lp-read 5s linear infinite; }
@keyframes lp-read { 0% { background-position: 100% 0; } 80%, 100% { background-position: 0 0; } }
.v-vo .row2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.v-vo .voice { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 5px; border-radius: 99px; border: 1px solid var(--border-2); font-size: 12.5px; font-weight: 600; background: var(--panel); }
.v-vo .voice i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); }
.v-vo .voice.on { border-color: var(--text); box-shadow: 2px 2px 0 var(--text); }
.v-vo .bars { display: flex; align-items: center; gap: 3px; height: 34px; margin-inline-start: auto; }
.v-vo .bars i { width: 4px; border-radius: 2px; background: var(--text); animation: lp-bar 1s ease-in-out infinite alternate; }
@keyframes lp-bar { from { height: 15%; } to { height: 100%; } }

/* The complete list, folded away: a title and two lines each, the full text on hover. */
.allf { margin-top: 28px; border-top: 1px solid var(--text); border-bottom: 1px solid var(--border-2); }
.allf[open] { border-bottom: 0; }
.allf summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; padding: 18px 0; font: 700 18px var(--display); letter-spacing: -0.01em; }
.allf summary b { font: 700 11px var(--mono); padding: 2px 7px; border-radius: 3px; background: var(--accent); border: 1px solid var(--text); letter-spacing: 0; }
.allf summary::-webkit-details-marker { display: none; }
.allf summary::after { content: '+'; margin-inline-start: auto; font: 500 22px/1 var(--mono); }
.allf[open] summary::after { content: '–'; }
.allf summary:hover { color: var(--text-2); }
.allf .features { grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--border-2); }
.allf .feature { padding: 16px 18px 18px; }
.allf .feature::after { content: none; }
.allf .feature .fi { margin-bottom: 8px; }
.allf .feature .fi svg { width: 18px; height: 18px; }
.allf .feature h3 { font-size: 15px; margin-bottom: 4px; }
.allf .feature p { font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }

/* ---------- pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; align-items: stretch; }
.price-card { background: var(--panel); border: 1px solid var(--border-2); border-radius: 8px; padding: 26px; display: flex; flex-direction: column; position: relative; }
.price-card.hl { border-color: var(--text); box-shadow: 6px 6px 0 var(--text); }
.price-card .tag { position: absolute; top: -12px; left: 24px; background: var(--accent); color: var(--on-accent); border: 1px solid var(--text); font: 600 10.5px var(--mono); text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 9px; border-radius: 3px; }
.price-card h3 { font-size: 21px; margin-bottom: 4px; }
.price { font: 800 48px/1.1 var(--display); letter-spacing: -0.04em; margin: 14px 0 4px; }
.price small { font: 500 14px var(--font); color: var(--muted); letter-spacing: 0; }
.price-card .billed { color: var(--muted); font-size: 13px; min-height: 18px; }
.price-card ul { list-style: none; padding: 18px 0 0; margin: 16px 0 22px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 9px; flex: 1; font-size: 14.5px; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); }
.price-card li svg { width: 17px; height: 17px; color: var(--text); flex: none; margin-top: 2px; }

/* ---------- final call ---------- */
.final { border-radius: 10px; padding: 76px 32px; background: var(--bg); text-align: center; position: relative; overflow: hidden; }
.final h2 { font-size: clamp(32px, 5.4vw, 64px); }
.final .cta-row { justify-content: center; }
footer { border-top: 1px solid var(--text); padding: 32px 24px; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
footer a { text-decoration: none; }

/* ---------- phones: a bottom "Start" bar once the hero is scrolled past ---------- */
.lp-sticky { display: none; }

/* ---------- narrower screens ---------- */
@media (max-width: 1000px) {
  .jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .allf .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #templates .tpl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #templates .tpl-card:nth-child(n + 9) { display: none; }
}
@media (max-width: 900px) {
  html[data-home] section { padding: 52px 20px; }
  .hero { padding: 28px 20px 48px; }
  .hero-copy { margin-bottom: 32px; }
  .facts { padding: 0 20px; }
  .facts .wrap { grid-template-columns: 1fr 1fr; }
  .facts .wrap > div { padding: 16px 14px; border-top: 1px solid var(--border-2); }
  .facts .wrap > div:nth-child(-n + 2) { border-top: 0; }
  .facts .wrap > div:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .facts b { font-size: 28px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.rev .split-copy { order: 0; }
  .cp { grid-template-columns: 1fr; gap: 36px; }
  .cp-stage { order: -1; }
  .cp-styles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sec-head-row { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 28px; }
  .lp-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--text); transform: translateY(110%); transition: transform .22s ease; }
  .lp-sticky.on { transform: none; }
  .lp-sticky span { font-size: 12.5px; color: var(--text-2); font-weight: 500; }
  .lp-sticky .btn { height: 40px; flex: none; }
  body.has-sticky { padding-bottom: 64px; }
}
@media (max-width: 640px) {
  .hero-live { display: none; }
  .hero .cta-row { width: 100%; }
  .hero .cta-row .btn { flex: 1 1 100%; }
  /* Job cards become a compact list: the picture shrinks to a thumbnail beside the words. */
  .jobs { grid-template-columns: 1fr; gap: 10px; }
  .job { flex-direction: row; align-items: stretch; }
  .job .jv { flex: none; width: 104px; height: auto; min-height: 104px; border-bottom: 0; border-inline-end: 1px solid var(--text); }
  .job .jv > * { zoom: .5; }
  .jt { padding: 12px 14px 14px; min-width: 0; }
  .jk { display: none; }
  .jt h3 { font-size: 17px; }
  .jt p { font-size: 13.5px; }
  /* The kit drops its pictures: six short lines. */
  .kit { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--text); border-radius: 8px; overflow: hidden; }
  .bx, .bx.w2 { grid-column: auto; border: 0; border-radius: 0; border-bottom: 1px solid var(--border-2); }
  .bx:last-child { border-bottom: 0; }
  .bx .vis { display: none; }
  .bx .txt { padding: 14px 16px; }
  .allf .features { grid-template-columns: 1fr; }
  #templates .tpl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; }
  #templates .tpl-card:nth-child(n + 7) { display: none; }
  #templates .tpl-card b { font-size: 12.5px; }
  #templates .tpl-card > span { display: none; }
  .mcl-stage { min-height: 340px; padding: 14px; }
  .mcl-src { width: 100%; }
  .clip-link { flex-wrap: wrap; padding: 8px; }
  .clip-link .btn { width: 100%; }
  .clip-link .cl-ic { display: none; }
  /* Plans sit side by side and swipe, instead of four tall cards stacked. */
  .pricing { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 16px 20px 18px; scrollbar-width: none; }
  .pricing::-webkit-scrollbar { display: none; }
  .price-card { flex: 0 0 82%; scroll-snap-align: center; padding: 22px; }
  .cp-phone { width: 230px; }
  .lx-phone { width: min(240px, 66vw); }
  .lx-big { font-size: 72px; }
  .final { padding: 52px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-live i, .job *, .kit *, .mcl-card, .mcl-emoji, .lx-band i { animation: none !important; }
  .jcap span:first-child { opacity: 1; }
  .jp-t { max-width: none; }
  .jbuy { clip-path: none; }
}

/* ---------- right to left (the Arabic home page) ---------- */
html[dir="rtl"] body { line-height: 1.7; }
html[dir="rtl"] .logo, html[dir="rtl"] .price, html[dir="rtl"] .facts b { font-family: 'Bricolage Grotesque', sans-serif; }
html[dir="rtl"] .pill, html[dir="rtl"] .eyebrow, html[dir="rtl"] .hero-note, html[dir="rtl"] .hero-live, html[dir="rtl"] .tpl-card > span, html[dir="rtl"] .price-card .tag, html[dir="rtl"] .pseg button, html[dir="rtl"] .cp-lbl, html[dir="rtl"] .bx h3 em, html[dir="rtl"] .jk, html[dir="rtl"] .jt h3 em { font: 600 13px 'IBM Plex Sans Arabic', system-ui, sans-serif; letter-spacing: 0; text-transform: none; }
html[dir="rtl"] .hero h1 { letter-spacing: -0.01em; line-height: 1.2; }
html[dir="rtl"] .sec-head h2, html[dir="rtl"] .final h2, html[dir="rtl"] .split-copy h2 { letter-spacing: -0.01em; line-height: 1.3; }
html[dir="rtl"] .feature h3, html[dir="rtl"] .tpl-card b, html[dir="rtl"] .faq summary, html[dir="rtl"] .bx h3, html[dir="rtl"] .jt h3, html[dir="rtl"] .mcl-steps b, html[dir="rtl"] .allf summary { letter-spacing: 0; }
html[dir="rtl"] .features { border-left: 0; border-right: 1px solid var(--border-2); }
html[dir="rtl"] .feature { border-right: 0; border-left: 1px solid var(--border-2); }
html[dir="rtl"] .price-card.hl, html[dir="rtl"] .job:hover { box-shadow: -6px 6px 0 var(--text); }
html[dir="rtl"] .job:hover { transform: translate(2px, -2px); }
html[dir="rtl"] .price-card .tag { left: auto; right: 24px; }
html[dir="rtl"] .faq summary::after { margin-right: auto; margin-left: 0; }
html[dir="rtl"] .cp-phone, html[dir="rtl"] .lx-phone { box-shadow: -14px 14px 0 var(--accent); }
html[dir="rtl"] .clip-link { box-shadow: -4px 4px 0 var(--accent); }
html[dir="rtl"] .jclips b { right: auto; left: -9px; }

/* ================= second pass (2026-10-13): real template media, section rhythm, motion ================= */

/* ---------- hero: dotted paper, real posters beside the headline, and the headline's middle line changes language ---------- */
.hero { position: relative; }
.hero::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 600px; pointer-events: none; background-image: radial-gradient(color-mix(in srgb, var(--text) 17%, transparent) 1px, transparent 1.6px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(ellipse 72% 100% at 50% 0%, #000 25%, transparent 76%); mask-image: radial-gradient(ellipse 72% 100% at 50% 0%, #000 25%, transparent 76%); }
.hero .wrap { position: relative; }
.hero h1 { font-size: clamp(38px, 5.7vw, 76px); line-height: 1.03; }
.hero h1 .grad-text { display: block; width: fit-content; margin: 0 auto; white-space: nowrap; transition: opacity .2s ease, transform .2s ease; }
.hero h1 .grad-text.swap { opacity: 0; transform: translateY(.16em); }
.hero h1 .grad-text[lang="ar"] { font-family: 'Cairo', 'IBM Plex Sans Arabic', sans-serif; font-weight: 900; letter-spacing: 0; }
.hero h1 .grad-text[lang="zh"], .hero h1 .grad-text[lang="ja"], .hero h1 .grad-text[lang="ko"], .hero h1 .grad-text[lang="hi"] { letter-spacing: -0.02em; }
.hero-side { display: none; position: absolute; inset: 0; pointer-events: none; }
.hero-side img { position: absolute; width: 108px; height: 192px; object-fit: cover; border-radius: 10px; border: 1px solid var(--text); background: var(--panel-2); box-shadow: 6px 6px 0 var(--text); animation: hero-bob 7s ease-in-out infinite alternate; }
.hero-side img:nth-child(1) { left: 4px; top: 14px; rotate: -7deg; }
.hero-side img:nth-child(2) { left: 84px; top: 204px; rotate: 5deg; box-shadow: 6px 6px 0 var(--accent); animation-delay: -3s; }
.hero-side img:nth-child(3) { right: 4px; top: 6px; rotate: 6deg; box-shadow: 6px 6px 0 var(--accent); animation-delay: -5s; }
.hero-side img:nth-child(4) { right: 88px; top: 198px; rotate: -5deg; animation-delay: -1.5s; }
@keyframes hero-bob { to { translate: 0 -9px; } }
@media (min-width: 1180px) { .hero-side { display: block; } }

/* ---------- the 35 caption languages, in their own scripts ---------- */
.ribbon { overflow: hidden; background: var(--text); color: var(--bg); border-top: 1px solid var(--text); }
.ribbon-run { display: flex; width: max-content; }
.ribbon.run .ribbon-run { animation: lp-marquee 90s linear infinite; }
.ribbon span { display: inline-flex; align-items: center; padding: 13px 0; font: 700 17px/1.3 var(--display); white-space: nowrap; }
.ribbon span::after { content: '✶'; margin: 0 20px; font-size: 12px; color: var(--accent); }
.ribbon span[lang="ar"], .ribbon span[lang="ur"], .ribbon span[lang="fa"] { font-family: 'Cairo', 'IBM Plex Sans Arabic', sans-serif; }
[dir="rtl"] .ribbon.run .ribbon-run { animation-name: lp-marquee-rtl; }
@keyframes lp-marquee-rtl { to { transform: translateX(50%); } }
#languages { border-top: 0; background: color-mix(in srgb, var(--accent) 13%, var(--bg)); }

/* ---------- templates: a dark wall of real template videos (posters first; a video plays on hover, the large one by itself) ---------- */
#templates { background: var(--bg); color: var(--text); }
#templates .tpl-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-flow: dense; gap: 22px 16px; align-items: stretch; }
#templates .tpl-card.big { grid-column: span 2; grid-row: span 2; }
#templates .tpl-card.big .tpl-prev { flex: 1; min-height: 0; aspect-ratio: auto !important; }
#templates .tpl-prev { border-color: color-mix(in srgb, var(--text) 30%, transparent); }
#templates .tpl-prev video { z-index: 1; opacity: 0; transition: opacity .3s; }
#templates .tpl-prev.playing video { opacity: 1; }
#templates .tpl-card.big b { font-size: 17px; }

/* ---------- pricing: its own tone, and plan lists that start short ---------- */
#pricing { background: var(--panel-2); }
.pricing:not(.all) .price-card li:nth-child(n + 6) { display: none; }
.plans-more { display: flex; justify-content: center; margin-top: 20px; }
.plans-more .btn[hidden] { display: none; }

/* ---------- FAQ: the heading stays beside the questions ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: 56px; align-items: start; }
.faq-wrap .sec-head { margin: 0; position: sticky; top: 96px; }
.faq-wrap .sec-head p { margin: 0 0 20px; }
.faq-wrap .faq { max-width: none; }
.faq details p { animation: faq-open .25s ease; }
@keyframes faq-open { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- final call: posters fanned out along the bottom edge ---------- */
.final { isolation: isolate; }
.final-fan { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.final-fan img { position: absolute; bottom: -40px; width: 108px; height: 192px; object-fit: cover; border-radius: 10px; border: 1px solid #000; box-shadow: 0 14px 34px rgba(0, 0, 0, .55); }
.final-fan img:nth-child(1) { left: 2%; rotate: -14deg; bottom: -56px; }
.final-fan img:nth-child(2) { left: 10%; rotate: -6deg; }
.final-fan img:nth-child(3) { left: 18.5%; rotate: 4deg; bottom: -64px; }
.final-fan img:nth-child(4) { right: 18.5%; rotate: -4deg; bottom: -64px; }
.final-fan img:nth-child(5) { right: 10%; rotate: 6deg; }
.final-fan img:nth-child(6) { right: 2%; rotate: 14deg; bottom: -56px; }

/* ---------- sections ease in as they are reached (only once the script has asked for it) ---------- */
html.rv-on .rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
html.rv-on .rv.in { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  #templates .tpl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #templates .tpl-card:nth-child(n + 9) { display: flex; }
}
@media (max-width: 900px) {
  .faq-wrap { grid-template-columns: 1fr; gap: 28px; }
  .faq-wrap .sec-head { position: static; }
  .final-fan { display: none; }
  .ribbon span { padding: 10px 0; font-size: 15px; }
}
@media (max-width: 640px) {
  .hero::before { height: 420px; }
  #templates .tpl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; }
  #templates .tpl-card:nth-child(n + 7) { display: none; }
  #templates .tpl-card.big b { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-side img, .ribbon.run .ribbon-run { animation: none; }
  .ribbon { overflow-x: auto; }
  html.rv-on .rv { opacity: 1; transform: none; transition: none; }
}
html[dir="rtl"] .hero-side img { box-shadow: -6px 6px 0 var(--text); }

/* Touch screens: the language chips and the language menu are a full fingertip tall. */
@media (pointer: coarse) {
  .lx-chips button { padding: 9px 13px; }
  .nav-lang .lang-switch select { min-height: 36px; }
  .cp-samples button { height: 36px; }
}
