/* =========================================================================
   Bya3Com landing — "night shift"
   Dark night sky, brand mint (#3ff0c0) + sky blue (#7aaee6) from the logo.
   Logical properties throughout so RTL (Arabic) and LTR (English) both work.
   ========================================================================= */

:root {
    --night: #060b14;
    --night-2: #0a1220;
    --panel: #0f1a2b;
    --panel-2: #142236;
    --line: rgba(160, 200, 255, .10);
    --line-2: rgba(160, 200, 255, .18);
    --text: #e9f1fb;
    --soft: #a7b6c9;
    --dim: #6f8197;
    --mint: #3ff0c0;
    --mint-2: #22c9a0;
    --sky: #7aaee6;
    --rose: #f6a5c0;
    --sun: #ffd27a;
    --grad: linear-gradient(120deg, var(--mint), var(--sky));
    --r: 24px;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --spring: cubic-bezier(.34, 1.56, .64, 1);
    --font: "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
    --display: "Cairo", var(--font);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--night);
    color: var(--soft);
    font: 400 17px/1.7 var(--font);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); color: var(--text); font-weight: 700; letter-spacing: -.02em; line-height: 1.12; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; line-height: 1.35; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
::selection { background: rgba(63, 240, 192, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--mint); color: var(--night); font-weight: 600; }
.skip:focus { top: 12px; }
[dir="rtl"] .flip { transform: scaleX(-1); }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.section { position: relative; padding: clamp(88px, 12vw, 150px) 0; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .6em;
    font: 600 13px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--mint);
}
[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: 15px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--grad); }
.head { max-width: 760px; margin: 0 auto clamp(48px, 7vw, 80px); text-align: center; }
.head h2 { margin-top: 16px; font-size: clamp(32px, 4.6vw, 56px); text-wrap: balance; }
.head--start { text-align: start; margin-inline: 0; }

/* ---------- Buttons ---------- */
.btn {
    --mx: 0px; --my: 0px;
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
    min-height: 52px; padding: 0 1.5em; border-radius: 999px; border: 0; cursor: pointer;
    font: 600 16px/1 var(--display); white-space: nowrap;
    transform: translate(var(--mx), var(--my));
    transition: transform .4s var(--ease), box-shadow .3s, background .3s, color .3s;
}
.btn--sm { min-height: 42px; padding: 0 1.15em; font-size: 15px; }
.btn--mint { color: #04241b; background: var(--grad); box-shadow: 0 0 0 1px rgba(255,255,255,.15) inset, 0 12px 34px -12px rgba(63, 240, 192, .8); }
.btn--mint:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset, 0 18px 44px -12px rgba(63, 240, 192, 1); }
.btn--line { color: var(--text); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--line:hover { background: rgba(255, 255, 255, .09); }
.btn__icon { width: 18px; height: 18px; transition: translate .3s var(--ease); }
.btn:hover .btn__icon { translate: 4px 0; }
[dir="rtl"] .btn:hover .btn__icon { translate: -4px 0; }
.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); flex: none; }
.pulse-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--mint); animation: pulse 1.8s var(--ease) infinite; }
@keyframes pulse { to { transform: scale(3); opacity: 0; } }

/* ---------- Nav ---------- */
.nav { position: fixed; inset-inline: 0; top: 0; z-index: 60; padding: 16px 0; transition: padding .35s var(--ease); }
.nav__bar {
    width: min(1200px, 100% - 32px); margin-inline: auto;
    display: flex; align-items: center; gap: 12px;
    padding: 8px; padding-inline-start: 18px; border-radius: 999px;
    transition: background .35s, box-shadow .35s;
}
.nav.is-stuck { padding: 10px 0; }
.nav.is-stuck .nav__bar { background: rgba(10, 18, 32, .72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 0 0 1px var(--line), 0 20px 40px -24px rgba(0,0,0,.8); }
.nav__logo { display: flex; align-items: center; gap: 10px; font: 700 18px/1 var(--display); color: var(--text); }
.nav__logo img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 6px 20px -6px rgba(63, 240, 192, .6); transition: transform .5s var(--spring); }
.nav__logo:hover img { transform: rotate(-8deg) scale(1.06); }
.nav__menu { flex: 1; display: flex; align-items: center; gap: 2px; margin-inline-start: 28px; }
.nav__menu a[lang] { margin-inline-start: auto; }
.nav__menu a { padding: .55em .95em; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--soft); transition: color .2s, background .2s; }
.nav__menu a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav__burger { display: none; }

@media (max-width: 900px) {
    .nav__burger {
        display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; flex: none;
        border: 0; border-radius: 50%; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer;
    }
    .nav__burger i { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .3s var(--ease); }
    .nav.is-open .nav__burger i:first-of-type { transform: translateY(4px) rotate(45deg); }
    .nav.is-open .nav__burger i:last-of-type { transform: translateY(-4px) rotate(-45deg); }
    .nav__cta { margin-inline-start: auto; }
    .nav__menu {
        position: absolute; top: calc(100% - 2px); inset-inline: 16px;
        flex-direction: column; align-items: stretch; padding: 10px; border-radius: 22px;
        background: rgba(12, 21, 36, .97); backdrop-filter: blur(18px); box-shadow: 0 0 0 1px var(--line-2), 0 30px 60px -20px #000;
        opacity: 0; transform: translateY(-10px) scale(.98); transform-origin: top; pointer-events: none;
        transition: opacity .25s, transform .35s var(--ease);
    }
    .nav.is-open .nav__menu { opacity: 1; transform: none; pointer-events: auto; }
    .nav.is-open .nav__bar { background: rgba(10, 18, 32, .9); box-shadow: 0 0 0 1px var(--line); }
    .nav__menu a { padding: .85em 1em; font-size: 16px; }
    .nav__menu a[lang] { margin-inline-start: 0; }
}

/* ---------- Night sky ---------- */
.sky { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.sky__stars {
    position: absolute; inset: -50%;
    background-image:
        radial-gradient(1.5px 1.5px at 20px 30px, #fff, transparent),
        radial-gradient(1px 1px at 120px 80px, rgba(255,255,255,.8), transparent),
        radial-gradient(1.2px 1.2px at 200px 160px, rgba(255,255,255,.7), transparent),
        radial-gradient(1px 1px at 60px 200px, rgba(170,220,255,.9), transparent),
        radial-gradient(1.6px 1.6px at 260px 40px, rgba(63,240,192,.8), transparent);
    background-size: 300px 240px;
    opacity: .55;
    animation: stars 120s linear infinite;
    mask-image: linear-gradient(#000 30%, transparent 90%);
    -webkit-mask-image: linear-gradient(#000 30%, transparent 90%);
}
@keyframes stars { to { transform: translate3d(-300px, 120px, 0); } }
.sky__moon {
    position: absolute; top: 96px; inset-inline-end: 47%;
    width: 96px; height: 96px; border-radius: 50%;
    box-shadow: inset 22px -10px 0 0 #ffe2a0;
    filter: drop-shadow(0 0 26px rgba(255, 210, 122, .45));
    transform: rotate(-20deg);
    opacity: .85;
}
[dir="rtl"] .sky__moon { box-shadow: inset -22px -10px 0 0 #ffe2a0; transform: rotate(20deg); }
.sky__glow {
    position: absolute; inset-inline: -10%; bottom: -30%; height: 70%;
    background: radial-gradient(50% 50% at 50% 50%, rgba(63, 240, 192, .16), transparent 70%), radial-gradient(40% 40% at 80% 40%, rgba(122, 174, 230, .16), transparent 70%);
    filter: blur(20px);
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding: 150px 0 40px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero__title { margin-top: 22px; font-size: clamp(40px, 6.2vw, 78px); font-weight: 800; }
[dir="rtl"] .hero__title { font-size: clamp(38px, 5.4vw, 68px); }
.hero__after { display: block; color: var(--soft); font-weight: 600; }
.rotator { position: relative; display: grid; color: transparent; }
.rotator__word {
    grid-area: 1 / 1; width: max-content; max-width: 100%;
    background: var(--grad); -webkit-background-clip: text; background-clip: text;
    opacity: 0; transform: translateY(.45em) rotateX(-60deg); filter: blur(6px);
    transition: opacity .5s var(--ease), transform .6s var(--ease), filter .5s;
}
.rotator__word.is-active { opacity: 1; transform: none; filter: none; }
.rotator__word.is-leaving { opacity: 0; transform: translateY(-.45em) rotateX(60deg); filter: blur(6px); }
.hero__lead { margin-top: 26px; max-width: 54ch; font-size: clamp(17px, 1.5vw, 19px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__note { margin-top: 16px; font-size: 14px; color: var(--dim); }

/* Demo card */
.demo { position: relative; padding-top: 70px; }
.demo__mascot { position: absolute; z-index: 3; top: 0; inset-inline-end: 34px; width: 112px; filter: drop-shadow(0 18px 30px rgba(63, 240, 192, .25)); }
.demo__label {
    position: absolute; top: 34px; inset-inline-start: 6px;
    display: flex; align-items: center; gap: 10px;
    font: 600 13px/1 var(--display); color: var(--mint);
}
.post {
    position: relative; z-index: 2;
    border-radius: 26px; padding: 18px;
    background: linear-gradient(180deg, #111d30, #0c1626);
    box-shadow: 0 0 0 1px var(--line-2), 0 50px 100px -40px rgba(0, 0, 0, .9), 0 0 120px -40px rgba(63, 240, 192, .35);
}
.post__head { display: flex; align-items: center; gap: 12px; }
.post__head strong { display: block; font: 600 15px/1.3 var(--display); color: var(--text); }
.post__head small { font-size: 12.5px; color: var(--dim); }
.avatar { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; font: 700 15px/1 var(--display); }
.avatar--store { background: linear-gradient(135deg, var(--rose), var(--sun)); color: #3a1a26; }
.avatar--you { width: 34px; height: 34px; font-size: 10px; background: var(--panel-2); color: var(--soft); box-shadow: inset 0 0 0 1px var(--line-2); }
.avatar--c { width: 32px; height: 32px; font-size: 13px; color: var(--night); }
.post__text { margin: 14px 0 12px; color: var(--text); font-size: 15px; line-height: 1.6; }
.post__media {
    position: relative; height: 120px; border-radius: 16px; overflow: hidden;
    background: radial-gradient(60% 90% at 30% 20%, rgba(246, 165, 192, .55), transparent), radial-gradient(60% 90% at 80% 80%, rgba(255, 210, 122, .45), transparent), #1a2236;
}
.tag { position: absolute; width: 54px; height: 70px; border-radius: 12px 12px 18px 18px; background: rgba(255,255,255,.85); box-shadow: 0 10px 20px -8px rgba(0,0,0,.4); }
.tag::before { content: ""; position: absolute; top: -10px; inset-inline-start: 50%; width: 22px; height: 16px; margin-inline-start: -11px; border: 3px solid rgba(255,255,255,.85); border-bottom: 0; border-radius: 12px 12px 0 0; }
.tag--a { inset-inline-start: 18%; top: 34px; transform: rotate(-8deg); background: #ffe0ea; }
.tag--b { inset-inline-start: 44%; top: 26px; background: #fff3d1; }
.tag--c { inset-inline-start: 68%; top: 36px; transform: rotate(9deg); background: #d6f9ee; }
.post__meta { display: flex; justify-content: space-between; padding: 10px 2px; font-size: 13px; color: var(--dim); border-bottom: 1px solid var(--line); }
.react { font-style: normal; font-size: 12px; margin-inline-end: -4px; }

.thread { display: flex; flex-direction: column; gap: 12px; padding: 14px 0 6px; max-height: 280px; overflow-y: auto; scrollbar-width: none; }
.thread::-webkit-scrollbar { display: none; }
.cmt { display: flex; gap: 10px; align-items: flex-start; animation: pop .5s var(--spring) both; }
.cmt--reply { margin-inline-start: 42px; }
.cmt__bubble { padding: 9px 13px; border-radius: 18px; background: var(--panel-2); font-size: 14.5px; line-height: 1.5; color: var(--text); }
.cmt__bubble b { display: block; font: 600 13px/1.4 var(--display); color: var(--text); }
.cmt--reply .cmt__bubble { background: rgba(63, 240, 192, .12); box-shadow: inset 0 0 0 1px rgba(63, 240, 192, .3); }
.cmt__badge { display: inline-flex; align-items: center; gap: 4px; margin-inline-start: 6px; padding: 2px 7px; border-radius: 999px; background: var(--grad); color: #04241b; font: 600 10.5px/1.4 var(--display); vertical-align: 1px; }
.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); animation: blip 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blip { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } }

.composer { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.composer input {
    flex: 1; min-width: 0; height: 44px; padding: 0 16px; border: 0; border-radius: 999px;
    background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); outline: none;
    font-size: 15px; transition: box-shadow .25s;
}
.composer input::placeholder { color: var(--dim); }
.composer input:focus { box-shadow: inset 0 0 0 1.5px var(--mint), 0 0 0 4px rgba(63, 240, 192, .12); }
.composer button {
    display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%;
    background: var(--grad); color: #04241b; cursor: pointer; transition: transform .3s var(--spring);
}
.composer button:hover { transform: scale(1.08) rotate(-8deg); }
.composer button:active { transform: scale(.92); }
.composer button svg { width: 20px; height: 20px; }
.composer.is-shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.toast {
    position: absolute; z-index: 4; bottom: -26px; inset-inline-start: -28px;
    display: flex; align-items: center; gap: 12px; max-width: 300px;
    padding: 12px 16px 12px 12px; padding-inline: 12px 16px; border-radius: 18px;
    background: rgba(20, 34, 54, .92); backdrop-filter: blur(14px);
    box-shadow: 0 0 0 1px var(--line-2), 0 24px 50px -20px #000;
    opacity: 0; transform: translateY(16px) scale(.94); pointer-events: none;
    transition: opacity .35s, transform .5s var(--spring);
}
.toast.is-on { opacity: 1; transform: none; }
.toast__icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; background: linear-gradient(135deg, #00b2ff, #a033ff); color: #fff; }
.toast__icon svg { width: 22px; height: 22px; }
.toast strong { display: block; font: 600 13.5px/1.3 var(--display); color: var(--text); }
.toast small { font-size: 12.5px; color: var(--soft); line-height: 1.4; display: block; }

/* Mascot */
.mascot { overflow: visible; }
.mascot__eyes { transition: transform .18s ease-out; }
.mascot__lids { transform-box: fill-box; transform-origin: center; animation: blink 5s infinite; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.mascot__bulb { animation: bulb 2.4s ease-in-out infinite; }
@keyframes bulb { 50% { opacity: .35; } }
.mascot__zzz { opacity: 0; font: 700 16px var(--display); fill: var(--sky); }
.mascot.is-asleep .mascot__lids { animation: none; transform: scaleY(.12); }
.mascot.is-asleep .mascot__smile { d: path("M70 90 Q80 92 90 90"); }
.mascot.is-asleep .mascot__zzz { opacity: 1; }
.mascot.is-asleep .mascot__zzz text { animation: zzz 2.6s ease-in-out infinite; }
.mascot.is-asleep .mascot__zzz text:last-child { animation-delay: .8s; }
.mascot.is-asleep .mascot__bulb { animation: none; opacity: .3; }
.mascot .mascot__smile { transition: d .4s var(--ease); }
@keyframes zzz { 0% { opacity: 0; transform: translate(0, 6px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(8px, -14px); } }

/* Works with */
.works { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 36px; margin-top: clamp(80px, 10vw, 120px); padding-top: 32px; border-top: 1px solid var(--line); }
.works > span { font-size: 14px; color: var(--dim); }
.works ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; }
.works li { display: flex; align-items: center; gap: 9px; font: 600 16px/1 var(--display); color: var(--soft); transition: color .3s; }
.works li svg { width: 22px; height: 22px; transition: transform .4s var(--spring); }
.works li:hover { color: var(--text); }
.works li:hover svg { transform: scale(1.2) rotate(-8deg); color: var(--mint); }

/* ---------- Feature story (sticky device) ---------- */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.chapter { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; opacity: .35; transition: opacity .5s var(--ease); }
.chapter.is-active { opacity: 1; }
.chapter__tag { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; padding: 6px 14px 6px 6px; padding-inline: 6px 14px; border-radius: 999px; background: rgba(63, 240, 192, .08); box-shadow: inset 0 0 0 1px rgba(63, 240, 192, .22); font: 600 14px/1 var(--display); color: var(--mint); }
.chapter__tag b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #04241b; font-size: 12px; }
.chapter h3 { margin-top: 22px; font-size: clamp(28px, 3.4vw, 42px); }
.chapter > p { margin-top: 16px; max-width: 48ch; font-size: 18px; }
.checks { display: grid; gap: 10px; margin-top: 24px; }
.checks li { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 500; }
.checks li::before { content: ""; width: 22px; height: 22px; flex: none; border-radius: 8px; background: rgba(63, 240, 192, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4L18 8' fill='none' stroke='%233ff0c0' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.chapter__screen { display: none; }

.stage__sticky { position: sticky; top: calc(50vh - 280px); display: grid; justify-items: center; gap: 22px; }
.device {
    position: relative; overflow: hidden;
    border-radius: 34px; background: linear-gradient(180deg, #111d30, #0b1524);
    box-shadow: 0 0 0 1px var(--line-2), 0 0 0 8px rgba(255,255,255,.025), 0 60px 120px -50px #000, 0 0 160px -60px rgba(63, 240, 192, .4);
}
.device--stage { width: min(440px, 100%); height: 520px; }
.stage__screen { position: absolute; inset: 0; opacity: 0; transform: translateY(24px) scale(.97); filter: blur(4px); transition: opacity .55s var(--ease), transform .7s var(--ease), filter .55s; pointer-events: none; }
.stage__screen.is-active { opacity: 1; transform: none; filter: none; }
.stage__dots { display: flex; gap: 8px; }
.stage__dots i { width: 8px; height: 8px; border-radius: 999px; background: var(--line-2); transition: width .4s var(--ease), background .3s; }
.stage__dots i.is-active { width: 28px; background: var(--mint); }

/* Screens */
.scr { height: 100%; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.scr__bar { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font: 600 14px/1 var(--display); color: var(--text); }
.scr__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); }
.rule { display: grid; gap: 10px; padding: 14px; border-radius: 18px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.rule__key { justify-self: start; padding: 5px 12px; border-radius: 999px; background: rgba(122, 174, 230, .16); color: var(--sky); font: 600 14px/1.3 var(--display); }
.rule__arrow { width: 20px; height: 20px; color: var(--dim); transform: rotate(90deg); }
[dir="rtl"] .rule__arrow { transform: rotate(90deg); }
.rule__reply { padding: 10px 14px; border-radius: 16px; background: rgba(63, 240, 192, .12); color: var(--text); font-size: 14px; line-height: 1.5; }
.switches { display: grid; gap: 8px; margin-top: auto; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.03); font-size: 14px; color: var(--text); }
.switch__ui { position: relative; width: 40px; height: 24px; flex: none; border-radius: 999px; background: var(--grad); }
.switch__ui::after { content: ""; position: absolute; top: 3px; inset-inline-end: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }

.scr--flow { align-items: center; justify-content: center; gap: 0; }
.node { width: 100%; padding: 14px 16px; border-radius: 18px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); font-size: 14.5px; text-align: center; }
.node--start { width: auto; display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; background: var(--grad); color: #04241b; font: 600 14px/1 var(--display); box-shadow: 0 10px 30px -10px rgba(63, 240, 192, .8); }
.node__dot { width: 8px; height: 8px; border-radius: 50%; background: #04241b; }
.node--phone { width: auto; padding: 10px 18px; border-radius: 999px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.chips span { padding: 6px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--sky); color: var(--sky); font-size: 13.5px; font-weight: 600; }
.wire { width: 2px; height: 34px; background: repeating-linear-gradient(var(--mint) 0 6px, transparent 6px 12px); background-size: 2px 12px; animation: flow 1s linear infinite; }
@keyframes flow { to { background-position: 0 12px; } }
.broadcast { margin-top: 28px; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 14px; background: rgba(255, 210, 122, .1); color: var(--sun); font-size: 13.5px; }
.broadcast span { font-weight: 600; margin-inline-end: 6px; }

.scr--ig { flex-direction: row; gap: 16px; align-items: stretch; }
.story { position: relative; flex: 0 0 44%; border-radius: 20px; overflow: hidden; background: linear-gradient(160deg, #f58529, #dd2a7b 50%, #8134af); }
.story__bars { position: absolute; top: 10px; inset-inline: 10px; display: flex; gap: 4px; }
.story__bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.4); }
.story__bars i:first-child { background: #fff; }
.story__art { position: absolute; inset: 0; display: grid; place-items: center; font-size: 72px; }
.dm { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.dm small { color: var(--dim); font-size: 12.5px; }
.dm p { max-width: 95%; padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.45; }
.dm__in { align-self: flex-start; background: var(--panel-2); color: var(--text); }
.dm__out { align-self: flex-end; background: linear-gradient(135deg, #8134af, #dd2a7b); color: #fff; }
.dm__out--2 { opacity: .85; }

.ai { padding: 16px; border-radius: 20px; background: linear-gradient(var(--panel-2), var(--panel-2)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; }
.ai__label { font: 600 13px/1 var(--display); color: var(--mint); }
.ai__text { margin-top: 10px; min-height: 4.6em; color: var(--text); font-size: 15px; line-height: 1.55; }
.ai__text.is-typing::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-inline-start: 2px; vertical-align: -3px; background: var(--mint); animation: caret .8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.week__day { display: grid; justify-items: center; gap: 8px; padding: 10px 2px; border-radius: 14px; background: rgba(255,255,255,.03); }
.week__day small { font-size: 11px; color: var(--dim); }
.week__day i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.week__day.has-post i { background: var(--sky); box-shadow: 0 0 10px var(--sky); }
.week__day.is-today { background: rgba(63, 240, 192, .1); box-shadow: inset 0 0 0 1px rgba(63, 240, 192, .4); }
.week__day.is-today i { background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.fan { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: var(--panel-2); }
.fan__post { padding: 6px 12px; border-radius: 999px; background: rgba(63, 240, 192, .14); color: var(--mint); font: 600 13px/1.2 var(--display); }
.fan__pages { display: flex; }
.fan__pages i { display: grid; place-items: center; width: 30px; height: 30px; margin-inline-start: -8px; border-radius: 50%; background: var(--c); color: var(--night); font: 700 12px/1 var(--display); font-style: normal; box-shadow: 0 0 0 3px var(--panel-2); transition: margin .4s var(--spring); }
.fan:hover .fan__pages i { margin-inline-start: 4px; }
.fan small { color: var(--soft); font-size: 13px; margin-inline-start: auto; }

/* ---------- Tools bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile {
    --x: 50%; --y: 50%;
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; flex-direction: column; padding: 26px; border-radius: var(--r);
    background: var(--panel); box-shadow: inset 0 0 0 1px var(--line);
    transition: transform .5s var(--ease);
}
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; background: radial-gradient(380px circle at var(--x) var(--y), rgba(63, 240, 192, .13), transparent 45%); transition: opacity .35s; }
.tile::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; opacity: 0; pointer-events: none;
    background: radial-gradient(260px circle at var(--x) var(--y), rgba(63, 240, 192, .8), transparent 60%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
    transition: opacity .35s;
}
.tile:hover { transform: translateY(-4px); }
.tile:hover::before, .tile:hover::after { opacity: 1; }
.tile h3 { margin-top: auto; font-size: 21px; }
.tile p { margin-top: 8px; font-size: 15.5px; }
.tile__art { position: relative; height: 150px; margin-bottom: 22px; }

.toasts { display: grid; align-content: center; }
.mini-toast {
    grid-area: 1 / 1; justify-self: center; display: flex; align-items: center; gap: 10px; width: 92%;
    padding: 10px 12px; border-radius: 14px; background: var(--panel-2); box-shadow: 0 0 0 1px var(--line-2), 0 14px 30px -14px #000;
    font-size: 13.5px; color: var(--text);
    animation: stack 6s var(--ease) infinite; animation-delay: calc(var(--i) * -2s);
}
.mini-toast__icon { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 9px; background: #2aa3e0; color: #fff; }
.mini-toast__icon svg { width: 16px; height: 16px; }
@keyframes stack {
    0% { transform: translateY(46px) scale(.9); opacity: 0; }
    10%, 33% { transform: translateY(0) scale(1); opacity: 1; z-index: 3; }
    43%, 66% { transform: translateY(-30px) scale(.93); opacity: .55; z-index: 2; }
    76%, 92% { transform: translateY(-54px) scale(.86); opacity: .2; z-index: 1; }
    100% { transform: translateY(-70px) scale(.8); opacity: 0; }
}

.avatars { display: flex; align-items: center; justify-content: center; }
.avatars i { display: grid; place-items: center; width: 60px; height: 60px; margin-inline-start: -16px; border-radius: 50%; background: var(--c); color: var(--night); font: 700 20px/1 var(--display); font-style: normal; box-shadow: 0 0 0 5px var(--panel); transition: margin .5s var(--spring), transform .5s var(--spring); }
.tile--team:hover .avatars i { margin-inline-start: 8px; }
.tile--team:hover .avatars i:nth-child(odd) { transform: translateY(-8px); }

.bars { display: flex; align-items: flex-end; gap: 10px; padding: 10px 6px 0; border-bottom: 1px solid var(--line-2); }
.bars i { flex: 1; height: 6%; border-radius: 8px 8px 3px 3px; background: linear-gradient(var(--mint), rgba(122, 174, 230, .4)); transition: height 1s var(--spring); transition-delay: calc(var(--i) * 70ms); }
.tile--reports.is-in .bars i { height: var(--h); }
.tile--reports:hover .bars i:nth-child(6) { filter: brightness(1.3); box-shadow: 0 0 20px rgba(63, 240, 192, .6); }

.cards { display: grid; place-items: center; }
.cards i { grid-area: 1 / 1; width: 64%; height: 92px; border-radius: 16px; background: var(--panel-2); box-shadow: 0 0 0 1px var(--line-2), 0 20px 30px -18px #000; transition: transform .6s var(--spring); }
.cards i::before, .cards i::after { content: ""; position: absolute; inset-inline-start: 16px; height: 8px; border-radius: 6px; background: var(--line-2); }
.cards i { position: relative; }
.cards i::before { top: 22px; width: 50%; background: var(--mint); opacity: .6; }
.cards i::after { top: 42px; width: 70%; box-shadow: 0 18px 0 var(--line-2); }
.cards i:nth-child(1) { transform: rotate(-8deg) translate(-14px, 6px); }
.cards i:nth-child(2) { transform: rotate(5deg) translate(12px, 2px); }
.tile--templates:hover .cards i:nth-child(1) { transform: rotate(-14deg) translate(-46px, 12px); }
.tile--templates:hover .cards i:nth-child(2) { transform: rotate(12deg) translate(46px, 10px); }
.tile--templates:hover .cards i:nth-child(3) { transform: translateY(-10px); }

.droid { display: grid; place-items: center; color: #3ddc84; }
.droid svg { width: 96px; height: 96px; transition: transform .6s var(--spring); }
.tile--android:hover .droid svg { transform: translateY(-8px) rotate(-6deg); }

.orbit { display: grid; place-items: center; }
.orbit__core { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--grad); color: #04241b; font: 800 26px/1 var(--display); box-shadow: 0 0 40px -6px rgba(63, 240, 192, .7); }
.orbit i {
    position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 36px; height: 36px; margin: -18px;
    border-radius: 50%; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--sky); font: 700 15px/1 var(--display); font-style: normal;
    transform: rotate(var(--a)) translateX(64px) rotate(calc(-1 * var(--a)));
    animation: orbit 14s linear infinite;
}
.tile--pages:hover .orbit i { animation-duration: 4s; }
@keyframes orbit { from { transform: rotate(var(--a)) translateX(64px) rotate(calc(-1 * var(--a))); } to { transform: rotate(calc(var(--a) + 360deg)) translateX(64px) rotate(calc(-1 * var(--a) - 360deg)); } }

/* ---------- Timeline ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.timeline__track { position: absolute; top: 34px; inset-inline: 16.6%; height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.timeline__fill { position: absolute; inset-block: 0; inset-inline-start: 0; width: calc(var(--p, 0) * 100%); background: var(--grad); box-shadow: 0 0 12px var(--mint); }
.tstep { position: relative; text-align: center; }
.tstep__num {
    display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto 24px; border-radius: 22px;
    background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2), 0 0 0 8px var(--night);
    font: 800 26px/1 var(--display); color: var(--mint); transition: transform .5s var(--spring), background .4s, color .4s;
}
.tstep:hover .tstep__num { transform: rotate(-8deg) scale(1.08); background: var(--grad); color: #04241b; }
.tstep h3 { font-size: 24px; }
.tstep p { margin: 10px auto 0; max-width: 32ch; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq .head { position: sticky; top: 120px; }
.faq__list { display: grid; gap: 12px; }
.qa { border-radius: 20px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); transition: background .3s, box-shadow .3s; }
.qa[open] { background: var(--panel-2); box-shadow: inset 0 0 0 1px rgba(63, 240, 192, .25); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none; font: 600 18px/1.4 var(--display); color: var(--text); }
.qa summary::-webkit-details-marker { display: none; }
.qa__icon { position: relative; width: 30px; height: 30px; flex: none; border-radius: 50%; background: rgba(255,255,255,.05); transition: transform .4s var(--spring), background .3s; }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--text); }
.qa__icon::after { transform: rotate(90deg); transition: transform .3s; }
.qa[open] .qa__icon { transform: rotate(180deg); background: var(--grad); }
.qa[open] .qa__icon::before, .qa[open] .qa__icon::after { background: #04241b; }
.qa[open] .qa__icon::after { transform: rotate(0); }
.qa__body { display: grid; grid-template-rows: 1fr; padding: 0 22px 20px; }
.qa__body p { overflow: hidden; }
.js .qa:not([open]) .qa__body { grid-template-rows: 0fr; }

/* ---------- CTA ---------- */
.cta__card {
    --x: 50%; --y: 50%;
    position: relative; isolation: isolate; overflow: hidden; text-align: center;
    padding: clamp(48px, 8vw, 96px) clamp(24px, 6vw, 80px);
    border-radius: 40px; background: radial-gradient(120% 100% at 50% 0%, #10233a, #0a1322 70%);
    box-shadow: inset 0 0 0 1px var(--line-2);
}
.cta__card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(520px circle at var(--x) var(--y), rgba(63, 240, 192, .14), transparent 50%); }
.sky--card .sky__stars { opacity: .5; }
.cta__bot { position: relative; width: 120px; margin: 0 auto 28px; cursor: pointer; outline-offset: 8px; }
.cta__hint { position: absolute; top: 50%; inset-inline-start: calc(100% + 14px); white-space: nowrap; font-size: 13px; color: var(--dim); transform: translateY(-50%); transition: opacity .3s; }
.cta__bot.is-awake .cta__hint { opacity: 0; }
.cta__card h2 { font-size: clamp(32px, 5vw, 60px); max-width: 16ch; margin-inline: auto; text-wrap: balance; }
.cta__card > p { margin: 18px auto 0; max-width: 48ch; font-size: 18px; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.cta { padding-top: 40px; }

/* ---------- Footer ---------- */
.footer { padding: 24px 0 32px; overflow: hidden; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer__brand { display: flex; align-items: center; gap: 18px; max-width: 440px; }
.footer__brand img { width: 52px; height: 52px; flex: none; border-radius: 14px; }
.footer__brand p { font-size: 15px; color: var(--dim); }
.footer__nav { display: flex; flex-wrap: wrap; align-content: center; gap: 8px 24px; font-size: 15px; }
.footer__nav a { color: var(--soft); transition: color .2s; }
.footer__nav a:hover { color: var(--mint); }
.footer__word {
    margin: 24px 0 8px; text-align: center; direction: ltr;
    font: 800 clamp(64px, 17vw, 240px)/.9 var(--display); letter-spacing: -.04em;
    color: transparent; -webkit-text-stroke: 1px rgba(122, 174, 230, .22);
    background: radial-gradient(300px circle at var(--x, 50%) 50%, rgba(63, 240, 192, .5), transparent 60%);
    -webkit-background-clip: text; background-clip: text;
    user-select: none;
}
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--dim); }
.footer__bottom a { color: var(--soft); }
.footer__bottom a:hover { color: var(--mint); }

/* ---------- Motion: entrance & reveal ---------- */
.js .rise { opacity: 0; transform: translateY(26px); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--d, 0s) + .1s); }
@keyframes rise { to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .toast { inset-inline-start: -8px; }
    .bento { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
    .hero { padding-top: 120px; }
    .hero__grid { grid-template-columns: 1fr; }
    .hero__copy { text-align: center; }
    .hero__copy .eyebrow { justify-content: center; }
    .rotator__word { justify-self: center; }
    .hero__lead { margin-inline: auto; }
    .hero__actions { justify-content: center; }
    .demo { width: min(480px, 100%); margin-inline: auto; }
    .sky__moon { width: 54px; height: 54px; top: 78px; inset-inline-end: 40%; opacity: .55; box-shadow: inset 12px -6px 0 0 #ffe2a0; }
    [dir="rtl"] .sky__moon { box-shadow: inset -12px -6px 0 0 #ffe2a0; }
    .story-grid { grid-template-columns: 1fr; }
    .stage { display: none; }
    .chapter { min-height: 0; opacity: 1; padding: 0 0 72px; }
    .chapter__screen { display: block; width: min(440px, 100%); height: 460px; margin-top: 32px; }
    .faq__grid { grid-template-columns: 1fr; }
    .faq .head { position: static; text-align: center; margin-inline: auto; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .nav__cta { display: none; }
    .nav__burger { margin-inline-start: auto; }
    .hero__actions .btn { flex: 1 1 100%; }
    .demo__mascot { width: 88px; inset-inline-end: 18px; top: 10px; }
    .demo__label { top: 40px; }
    .toast { inset-inline: 8px; bottom: -34px; max-width: none; }
    .bento { grid-template-columns: 1fr; }
    .timeline { grid-template-columns: 1fr; gap: 44px; }
    .timeline__track { display: none; }
    .chapter__screen { height: 430px; }
    .scr { padding: 20px; }
    .scr--ig { flex-direction: column; }
    .story { flex: 0 0 150px; }
    .cta__hint { display: none; }
    .footer__top, .footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .js .rise, .js .reveal { opacity: 1; transform: none; }
    .bars i { height: var(--h); }
}

/* plan screen: keep content grouped in the middle */
.scr--plan { justify-content: center; gap: 18px; }
.scr--plan .fan { margin-top: 0; }
.scr--rules { justify-content: center; }
.scr--rules .switches { margin-top: 6px; }

/* =========================================================================
   Inner pages: privacy policy & data deletion
   ========================================================================= */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: 150px 0 64px; border-bottom: 1px solid var(--line); }
.page-hero__inner { max-width: 860px; text-align: center; }
.page-hero h1 { margin-top: 18px; font-size: clamp(36px, 5.6vw, 64px); font-weight: 800; text-wrap: balance; }
.page-hero__lead { margin: 20px auto 0; max-width: 64ch; font-size: clamp(16px, 1.5vw, 18px); }
.page-hero__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.pill { padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 14px; color: var(--soft); }
.pill b { color: var(--text); font-weight: 600; }

.doc-section { padding: clamp(48px, 7vw, 88px) 0 clamp(80px, 10vw, 120px); }
.doc { display: grid; grid-template-columns: 280px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.doc--delete { grid-template-columns: 1fr 360px; }
.doc__toc { position: sticky; top: 110px; }
.doc__toc-title { margin-bottom: 14px; font: 700 13px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.doc__toc ol { display: grid; gap: 2px; padding-inline-start: 2px; border-inline-start: 1px solid var(--line-2); }
.doc__toc a {
    position: relative; display: flex; gap: 10px; padding: 8px 14px; margin-inline-start: -1px;
    border-inline-start: 2px solid transparent; font-size: 14.5px; line-height: 1.45; color: var(--soft);
    transition: color .2s, border-color .2s, background .2s;
}
.doc__toc a span { font: 600 12px/1.9 var(--display); color: var(--dim); }
.doc__toc a:hover { color: var(--text); }
.doc__toc a.is-active { color: var(--mint); border-inline-start-color: var(--mint); background: linear-gradient(90deg, rgba(63, 240, 192, .08), transparent); }
[dir="rtl"] .doc__toc a.is-active, .doc[dir="rtl"] .doc__toc a.is-active { background: linear-gradient(-90deg, rgba(63, 240, 192, .08), transparent); }
.doc__toc a.is-active span { color: var(--mint); }

.doc__body { display: grid; gap: 16px; min-width: 0; }
.doc-card { scroll-margin-top: 110px; padding: clamp(22px, 3vw, 34px); border-radius: var(--r); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .4s; }
.doc-card:target { box-shadow: inset 0 0 0 1px rgba(63, 240, 192, .5), 0 0 60px -30px rgba(63, 240, 192, .6); }
.doc-card h2 { display: flex; align-items: center; gap: 14px; font-size: clamp(20px, 2.2vw, 26px); }
.doc-card__num { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: rgba(63, 240, 192, .1); box-shadow: inset 0 0 0 1px rgba(63, 240, 192, .25); color: var(--mint); font: 700 14px/1 var(--display); }
.doc-card__num svg { width: 20px; height: 20px; }

.prose { margin-top: 16px; color: var(--soft); font-size: 16.5px; line-height: 1.8; }
.prose > * + * { margin-top: 12px; }
.prose ul, .prose ol { display: grid; gap: 10px; padding: 0; }
.prose ul li { position: relative; padding-inline-start: 26px; }
.prose ul li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .7em; width: 8px; height: 8px; border-radius: 3px; background: var(--grad); transform: rotate(45deg); }
.prose ol { counter-reset: n; }
.prose ol > li { position: relative; counter-increment: n; padding-inline-start: 42px; min-height: 30px; }
.prose ol > li::before { content: counter(n); position: absolute; inset-inline-start: 0; top: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--mint); font: 700 14px/1 var(--display); }
.prose a { color: var(--mint); text-decoration: underline; text-decoration-color: rgba(63, 240, 192, .4); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--mint); }
.prose strong { color: var(--text); }
.prose a.link-arrow { text-decoration: none; font-weight: 600; }

/* Admin editor HTML: drop inline sizes / spacing, frame screenshots */
.editor-content span[style] { font-size: inherit !important; }
.editor-content p:empty, .editor-content br + br { display: none; }
.editor-content img { display: block; width: auto !important; max-width: 100%; height: auto !important; margin: 16px 0 8px; border-radius: 16px; box-shadow: 0 0 0 1px var(--line-2), 0 24px 50px -24px #000; }
.prose--steps ol > li { padding-bottom: 6px; }
.doc-card--steps > .btn { margin-top: 26px; }

.steps-list { display: grid; gap: 12px; margin-top: 20px; counter-reset: n; }
.steps-list li { position: relative; counter-increment: n; padding: 14px 16px; padding-inline-start: 58px; border-radius: 16px; background: var(--panel-2); color: var(--text); }
.steps-list li::before { content: counter(n); position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--grad); color: #04241b; font: 700 14px/1 var(--display); }

.doc__side { position: sticky; top: 110px; display: grid; gap: 16px; }
.side-card { padding: 26px; border-radius: var(--r); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.side-card h2 { font-size: 20px; }
.ways { display: grid; gap: 18px; margin-top: 18px; }
.ways li { display: flex; gap: 14px; }
.ways__icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--grad); color: #04241b; font: 800 17px/1 var(--display); }
.ways strong { display: block; color: var(--text); font-family: var(--display); font-weight: 700; }
.ways p { margin-top: 4px; font-size: 15px; line-height: 1.6; }
.ways a { display: inline-block; margin-top: 6px; color: var(--mint); font-size: 15px; }
.side-card--soft { display: grid; gap: 4px; padding: 10px; }
.side-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; color: var(--text); font-weight: 600; transition: background .2s; }
.side-link svg { width: 18px; height: 18px; color: var(--mint); transition: translate .3s var(--ease); }
.side-link:hover { background: rgba(255,255,255,.05); }
.side-link:hover svg { translate: 4px 0; }
[dir="rtl"] .side-link:hover svg { translate: -4px 0; }

.help-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 16px; padding: clamp(24px, 3vw, 34px); border-radius: var(--r); background: radial-gradient(120% 140% at 0% 0%, rgba(63, 240, 192, .14), transparent 60%), var(--panel-2); box-shadow: inset 0 0 0 1px rgba(63, 240, 192, .25); }
.help-card h2 { font-size: 22px; }
.help-card p { margin-top: 6px; }
.help-card__actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 960px) {
    .page-hero { padding-top: 120px; }
    .doc, .doc--delete { grid-template-columns: 1fr; }
    .doc__toc { position: static; }
    .doc__toc ol { grid-template-columns: 1fr 1fr; border: 0; gap: 6px; }
    .doc__toc a { border: 0; border-radius: 12px; background: var(--panel); margin: 0; }
    .doc__side { position: static; }
}
@media (max-width: 640px) {
    .doc__toc { display: none; }
    .help-card__actions .btn { flex: 1 1 100%; }
}
