:root {
  --navy: #0b1430;
  --navy-2: #13204d;
  --blue: #2b5cff;
  --blue-d: #1f4fd8;
  --blue-soft: #eaf0ff;
  --amber: #ffb84d;
  --text: #121a2e;
  --muted: #5d6880;
  --bg: #f6f8fc;
  --card: #ffffff;
  --border: #e3e8f2;
  --ok: #16a34a;
  --danger: #dc2626;
  --sh-0: #fff4dc;
  --sh-1: #e6f0ff;
  --sh-2: #efeafd;
  --r: 16px;
  --shadow: 0 1px 2px rgba(16, 24, 48, .06), 0 12px 32px -12px rgba(16, 24, 48, .18);
  --font: "IBM Plex Sans Arabic", -apple-system, "SF Arabic", "Segoe UI", Tahoma, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--blue-d); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; margin-inline: auto; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; border-radius: 8px; }
.skip:focus { inset-inline-start: 8px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; text-decoration: none; border-radius: 12px; padding: 11px 20px; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 7px 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 14px 26px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--blue-d)); color: #fff; box-shadow: 0 8px 24px -8px rgba(43, 92, 255, .7); }
.btn-primary:hover { box-shadow: 0 12px 28px -8px rgba(43, 92, 255, .8); }
.btn-glass { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .25); }
.btn-glass:hover { background: rgba(255, 255, 255, .14); }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-d); }
.btn-light { background: #fff; color: var(--navy); }
.arr { display: inline-block; transition: transform .2s; }
.btn:hover .arr { transform: translateX(-4px); }
[dir=ltr] .btn:hover .arr { transform: translateX(4px); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(11, 20, 48, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.nav-in { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 21px; }
.nav-links { display: flex; gap: 4px; margin-inline-start: 12px; }
.nav-links a, .nav-login, .lang { color: rgba(255, 255, 255, .78); text-decoration: none; font-size: 15px; padding: 6px 10px; border-radius: 8px; }
.nav-links a:hover, .nav-login:hover, .lang:hover, .nav-links a[aria-current] { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-actions { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.lang { border: 1px solid rgba(255, 255, 255, .2); font-size: 13px; }
.menu-btn { display: none; background: none; border: 0; width: 42px; height: 42px; padding: 10px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.menu-btn span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded=true] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-btn[aria-expanded=true] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded=true] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
.mnav { display: flex; flex-direction: column; padding: 8px 16px 18px; gap: 2px; border-top: 1px solid rgba(255, 255, 255, .08); }
.mnav[hidden] { display: none; }
.mnav a { color: #fff; text-decoration: none; padding: 12px 6px; font-size: 17px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.mnav .btn { margin-top: 10px; border: 0; }
@media (max-width: 900px) {
  .nav-links, .nav-login, .nav-actions .lang { display: none; }
  .menu-btn { display: flex; }
}
@media (max-width: 400px) { .nav-actions .btn-sm { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; background: radial-gradient(1200px 600px at 80% -10%, #2643a8 0%, transparent 60%), radial-gradient(900px 500px at 0% 110%, #3b1f8a 0%, transparent 55%), var(--navy); color: #fff; overflow: hidden; padding: 64px 0 88px; }
.hero-glow { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.hero-in { position: relative; display: grid; grid-template-columns: 1fr 1.08fr; gap: 48px; align-items: center; }
.pill { display: inline-block; background: rgba(255, 184, 77, .14); color: var(--amber); border: 1px solid rgba(255, 184, 77, .35); padding: 5px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 5.2vw, 58px); letter-spacing: -.01em; margin-bottom: 18px; }
.grad { background: linear-gradient(90deg, #8fb3ff, #ffd27a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: rgba(255, 255, 255, .78); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero-ctas.center { justify-content: center; }
.hero-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: rgba(255, 255, 255, .7); font-size: 15px; }
.hero-note { margin-top: 18px; font-size: 14px; color: rgba(255, 255, 255, .65); background: rgba(255, 255, 255, .06); border-radius: 10px; padding: 10px 14px; }
.hero-note a { color: #ffd27a; }
.hero-visual { transform: perspective(1400px) rotateY(-6deg) rotateX(3deg); }
[dir=ltr] .hero-visual { transform: perspective(1400px) rotateY(6deg) rotateX(3deg); }
.hero-visual .screen { box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .1); }
@media (max-width: 900px) {
  .hero { padding: 40px 0 56px; }
  .hero-in { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual, [dir=ltr] .hero-visual { transform: none; }
}
@media (max-width: 480px) { .hero-ctas .btn { width: 100%; } }

/* ---------- strip ---------- */
.strip { background: #fff; border-bottom: 1px solid var(--border); }
.strip-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 26px 0; text-align: center; }
.strip b { display: block; font-size: 30px; color: var(--blue-d); line-height: 1.2; unicode-bidi: isolate; }
.strip span { color: var(--muted); font-size: 14px; }
@media (max-width: 700px) { .strip-in { grid-template-columns: repeat(2, 1fr); } }

/* ---------- sections ---------- */
section { scroll-margin-top: 70px; }
.sec-title { font-size: clamp(26px, 3.4vw, 40px); text-align: center; margin-bottom: 14px; }
.sec-title.small { font-size: clamp(22px, 2.6vw, 30px); margin-top: 64px; }
.sec-sub { text-align: center; color: var(--muted); font-size: 18px; margin: 0 auto 32px; max-width: 620px; }
.pain, .features, .steps, .roi, .compare, .pricing-teaser, .roadmap, .faq-sec { padding: 80px 0; }
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.pain-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); }
.pain-card span { font-size: 34px; }
.pain-card h3 { font-size: 20px; margin-top: 10px; }
.pain-card p { color: var(--muted); margin: 0; }
.pain-answer { text-align: center; font-size: 22px; font-weight: 700; margin: 40px 0 0; color: var(--blue-d); }
@media (max-width: 800px) { .pain-grid { grid-template-columns: 1fr; } }

.features { background: #fff; padding-top: 40px; }
.feature { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--border); }
.feature.flip .feature-copy { order: 2; }
.tag { display: inline-block; background: var(--blue-soft); color: var(--blue-d); font-weight: 700; font-size: 13px; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.feature h2 { font-size: clamp(24px, 2.8vw, 34px); }
.feature p { color: var(--muted); font-size: 17px; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-inline-start: 30px; }
.ticks li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: #dcfce7; color: var(--ok); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 28px; padding: 44px 0; }
  .feature.flip .feature-copy { order: 0; }
}
.more { padding: 56px 0 0; text-align: center; }
.more-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.more-grid div { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 16px 12px; font-weight: 600; font-size: 15px; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.more-grid span { font-size: 24px; }
@media (max-width: 800px) { .more-grid { grid-template-columns: repeat(2, 1fr); } }

.steps-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; counter-reset: s; }
.steps-grid li { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 28px; position: relative; }
.steps-grid b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--blue), var(--blue-d)); color: #fff; font-size: 20px; margin-bottom: 14px; }
.steps-grid h3 { font-size: 20px; }
.steps-grid p { color: var(--muted); margin: 0; }
@media (max-width: 800px) { .steps-grid { grid-template-columns: 1fr; } }

.live { background: linear-gradient(120deg, var(--blue-d), #5b3df5); color: #fff; padding: 56px 0; }
.live-in { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.live h2 { font-size: clamp(24px, 3vw, 34px); }
.live p { margin: 0; color: rgba(255, 255, 255, .85); max-width: 640px; }
@media (max-width: 800px) { .live-in { flex-direction: column; align-items: stretch; text-align: center; } }

.roi { background: #fff; }
.roi-in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.roi-copy .sec-title { text-align: start; }
.roi-copy p { color: var(--muted); font-size: 17px; }
.roi-card { background: var(--navy); color: #fff; border-radius: 20px; padding: 28px; display: grid; gap: 18px; box-shadow: var(--shadow); }
.roi-card label { display: grid; grid-template-columns: 1fr auto; gap: 8px; font-size: 15px; color: rgba(255, 255, 255, .85); }
.roi-card output { font-weight: 700; color: #ffd27a; }
.roi-card input[type=range] { grid-column: 1 / -1; width: 100%; accent-color: var(--amber); }
.roi-result { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.roi-result div { background: rgba(255, 255, 255, .07); border-radius: 14px; padding: 14px; }
.roi-result small { display: block; color: rgba(255, 255, 255, .65); }
.roi-result b { font-size: 28px; unicode-bidi: isolate; }
.roi-foot { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .7); }
@media (max-width: 900px) { .roi-in { grid-template-columns: 1fr; } .roi-copy .sec-title { text-align: center; } }

.table-wrap { overflow-x: auto; margin-top: 28px; border-radius: var(--r); border: 1px solid var(--border); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 14px 16px; text-align: start; border-bottom: 1px solid var(--border); }
tbody tr:last-child td { border-bottom: 0; }
th { background: var(--bg); font-weight: 700; }
td:first-child { font-weight: 600; }
.us { background: var(--blue-soft); color: var(--blue-d); font-weight: 700; }
th.us { background: var(--blue-d); color: #fff; }
.cmp td:not(:first-child), .cmp th { text-align: center; }

.story { background: var(--navy); color: #fff; padding: 80px 0; }
.story-in { max-width: 860px; text-align: center; position: relative; }
.quote-mark { font-size: 120px; line-height: .6; color: var(--amber); opacity: .5; font-family: Georgia, serif; }
.story blockquote { margin: 0; }
.story p { font-size: clamp(19px, 2.2vw, 25px); line-height: 1.7; }
.story footer { color: rgba(255, 255, 255, .65); }

/* ---------- pricing ---------- */
.billing-toggle { display: flex; justify-content: center; gap: 4px; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 4px; width: max-content; max-width: 100%; margin: 0 auto 28px; }
.billing-toggle button { font: inherit; border: 0; background: none; padding: 8px 18px; border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--muted); }
.billing-toggle button[aria-pressed=true] { background: var(--navy); color: #fff; }
.save { font-size: 12px; background: #dcfce7; color: var(--ok); padding: 2px 8px; border-radius: 999px; margin-inline-start: 4px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; position: relative; box-shadow: var(--shadow); }
.plan.popular { border: 2px solid var(--blue); transform: translateY(-8px); }
.plan-badge { position: absolute; top: -13px; inset-inline-start: 50%; transform: translateX(50%); background: var(--blue); color: #fff; font-size: 13px; font-weight: 700; padding: 3px 14px; border-radius: 999px; white-space: nowrap; }
[dir=ltr] .plan-badge { transform: translateX(-50%); }
.plan h3 { font-size: 22px; margin: 0; }
.plan-who { color: var(--muted); margin: 4px 0 16px; font-size: 15px; }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price b { font-size: 46px; line-height: 1; unicode-bidi: isolate; }
.price small, .price span { color: var(--muted); }
.price-note { font-size: 13px; color: var(--muted); margin: 6px 0 16px; min-height: 1.6em; }
.limits { list-style: none; padding: 12px 0; margin: 0; border-block: 1px solid var(--border); font-weight: 700; display: grid; gap: 4px; }
.plan .ticks { flex: 1; margin-bottom: 24px; font-size: 15px; }
.plans-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 24px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } .plan.popular { transform: none; } }
.pay-box { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 24px 28px; margin-top: 40px; }
.pay-box p { margin: 0; color: var(--muted); }
@media (max-width: 700px) { .pay-box { flex-direction: column; align-items: stretch; } }

.roadmap { background: #fff; }
.road-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.road-grid div { border: 1px dashed #b9c6e6; border-radius: 14px; padding: 20px; text-align: center; font-weight: 600; display: grid; gap: 8px; color: var(--muted); }
.road-grid span { font-size: 28px; }
@media (max-width: 800px) { .road-grid { grid-template-columns: repeat(2, 1fr); } }

.faq { display: grid; gap: 10px; margin-top: 28px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--blue); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 18px; color: var(--muted); }

.final-cta { background: radial-gradient(800px 400px at 50% 0%, #2643a8, transparent 70%), var(--navy); color: #fff; padding: 88px 0; text-align: center; }
.final-cta h2 { font-size: clamp(28px, 4vw, 44px); }
.final-cta p { color: rgba(255, 255, 255, .78); font-size: 18px; }
.final-cta.inline { border-radius: 24px; margin-top: 64px; padding: 48px 24px; }
.final-cta.inline .btn { margin-top: 10px; }

/* ---------- inner pages ---------- */
.page-head { background: radial-gradient(900px 400px at 70% -20%, #2643a8, transparent 60%), var(--navy); color: #fff; padding: 64px 0 56px; text-align: center; }
.page-head h1 { font-size: clamp(32px, 4.6vw, 50px); }
.page-head .lead { margin-inline: auto; }
.page-head.nf { padding: 120px 0; }
.page-head.nf .btn { margin-top: 18px; }
.pricing-page, .contact-sec, .legal { padding: 56px 0 80px; }
.legal h2 { font-size: 22px; margin-top: 32px; }
.legal p { color: #33405c; }

.contact-in { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; }
.lead-form { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 28px; display: grid; gap: 16px; box-shadow: var(--shadow); }
.lead-form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.lead-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lead-form input:not([type=checkbox]), .lead-form select, .lead-form textarea { font: inherit; font-weight: 400; width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: 2px solid var(--blue-soft); border-color: var(--blue); background: #fff; }
[dir=rtl] .lead-form input[dir=ltr] { text-align: right; }
.lead-form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); font-size: 14px; }
.lead-form .consent input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 0; font-weight: 600; min-height: 1.6em; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--danger); }
.lead-form.sent > :not(.form-msg) { opacity: .45; pointer-events: none; }
.contact-side { display: grid; gap: 14px; }
.side-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.side-card h3 { font-size: 18px; }
.side-card p { color: var(--muted); margin: 0 0 12px; font-size: 15px; }
@media (max-width: 800px) { .contact-in { grid-template-columns: 1fr; } .lead-form .two { grid-template-columns: 1fr; } .lead-form { padding: 20px; } }

/* ---------- footer ---------- */
.foot { background: #070d22; color: rgba(255, 255, 255, .7); padding: 56px 0 24px; font-size: 15px; }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot h4 { color: #fff; margin: 0 0 12px; font-size: 15px; }
.foot-in > div:not(.foot-brand) { display: grid; gap: 8px; align-content: start; }
.foot a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.foot a:hover { color: #fff; }
.foot-brand p { max-width: 420px; }
.foot-eu { font-size: 14px; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 36px; padding-top: 20px; font-size: 13px; }
@media (max-width: 700px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ================= demos ================= */
.chip { --h: 210; display: inline-flex; align-items: center; justify-content: center; background: hsl(var(--h) 85% 93%); border: 1px solid hsl(var(--h) 55% 72%); color: hsl(var(--h) 55% 26%); border-radius: 7px; padding: 2px 8px; font-size: 12px; font-weight: 600; white-space: nowrap; line-height: 1.6; }
.sh-0 { background: var(--sh-0); }
.sh-1 { background: var(--sh-1); }
.sh-2 { background: var(--sh-2); }
.screen { background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); color: var(--text); }
.screen-bar { display: flex; gap: 6px; padding: 9px 12px; background: #f1f4f9; border-bottom: 1px solid var(--border); }
.screen-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d5dbe6; }
.screen-bar i:first-child { background: #ff6b6b; } .screen-bar i:nth-child(2) { background: #ffc94d; } .screen-bar i:nth-child(3) { background: #4ade80; }
.demo { position: relative; font-size: 12px; }
.fake-btn { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--border); background: #fff; border-radius: 8px; padding: 5px 10px; font-weight: 600; font-size: 12px; }
.pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(43, 92, 255, .4); } 50% { box-shadow: 0 0 0 7px rgba(43, 92, 255, 0); } }

/* board */
.demo-board { display: grid; grid-template-columns: 86px 1fr; gap: 10px; padding: 12px; min-height: 250px; }
.db-side { display: flex; flex-direction: column; gap: 6px; border-inline-end: 1px solid var(--border); padding-inline-end: 10px; }
.db-title, .mb-title, .sy-title { font-weight: 700; color: var(--muted); font-size: 11px; margin-bottom: 2px; }
.db-side .chip { cursor: grab; transition: transform .2s, opacity .2s; }
.db-side .chip.lift { transform: scale(1.08); box-shadow: 0 6px 14px -4px rgba(0, 0, 0, .25); }
.db-grid { display: grid; gap: 5px; }
.g-row { display: grid; grid-template-columns: 54px repeat(5, 1fr); gap: 5px; }
.g-head div { text-align: center; font-weight: 700; color: var(--muted); font-size: 11px; }
.g-shift { border-radius: 7px; display: grid; place-items: center; font-weight: 700; font-size: 11px; }
.g-cell { min-height: 58px; border: 1px dashed #cfd7e6; border-radius: 8px; padding: 4px; display: flex; flex-direction: column; gap: 3px; align-items: stretch; position: relative; transition: background .2s, border-color .2s; }
.g-cell .chip { font-size: 10.5px; padding: 1px 4px; animation: pop .35s ease; }
.g-cell.hot { background: #dcfce7; border-color: var(--ok); border-style: solid; }
.g-cell.full { border-style: solid; border-color: #bfe8cc; }
.cnt { position: absolute; bottom: 2px; inset-inline-end: 4px; font-size: 9px; color: var(--muted); font-weight: 600; unicode-bidi: isolate; }
.g-cell.full .cnt { color: var(--ok); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ghost { position: absolute; top: 0; left: 0; pointer-events: none; z-index: 3; opacity: 0; }
.ghost .chip { box-shadow: 0 10px 20px -6px rgba(0, 0, 0, .35); transform: rotate(-4deg) scale(1.05); }
.cursor { position: absolute; top: 0; left: 0; width: 18px; height: 18px; pointer-events: none; z-index: 4; opacity: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 3l14 8-6 1.5L10 19z' fill='%23121a2e' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat center / contain; }
@media (max-width: 480px) {
  .demo-board { grid-template-columns: 1fr; }
  .db-side { flex-direction: row; flex-wrap: wrap; border: 0; border-bottom: 1px solid var(--border); padding: 0 0 8px; }
  .db-title { width: 100%; }
  .g-row { grid-template-columns: 40px repeat(5, 1fr); gap: 3px; }
  .g-cell { min-height: 50px; padding: 2px; }
  .g-cell .chip { font-size: 9.5px; padding: 0 2px; }
  .g-shift, .g-head div { font-size: 9.5px; }
}

/* phone */
.phone { background: #fff; border: 8px solid #10162b; border-radius: 30px; padding: 22px 12px 14px; position: relative; width: 210px; box-shadow: var(--shadow); color: var(--text); flex: none; }
.phone.sm { width: 160px; padding: 20px 8px 12px; }
.phone-notch { position: absolute; top: 6px; inset-inline-start: 50%; transform: translateX(50%); width: 60px; height: 8px; background: #10162b; border-radius: 6px; }
[dir=ltr] .phone-notch { transform: translateX(-50%); }

.demo-hotel { display: flex; align-items: center; gap: 14px; justify-content: center; padding: 10px 0; }
.ph-head { font-weight: 700; font-size: 13px; margin-bottom: 8px; display: grid; }
.ph-head small { color: var(--muted); font-weight: 400; font-size: 11px; }
.ph-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 11px; }
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper i { font-style: normal; width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--border); display: grid; place-items: center; font-weight: 700; transition: background .15s, transform .15s; }
.stepper i.tap { background: var(--blue); color: #fff; transform: scale(.88); }
.stepper b { min-width: 12px; text-align: center; }
.ph-save { margin-top: 10px; background: var(--blue); color: #fff; text-align: center; border-radius: 8px; padding: 6px; font-weight: 700; transition: transform .15s, filter .15s; }
.ph-save.tap { transform: scale(.95); filter: brightness(1.2); }
.flow-arrow { width: 44px; height: 2px; background: #cfd7e6; position: relative; flex: none; overflow: hidden; }
.flow-arrow span { position: absolute; inset-block: 0; width: 16px; background: var(--blue); border-radius: 2px; inset-inline-start: 0; }
.demo-hotel.flowing .flow-arrow span { animation: flow .9s linear infinite; }
@keyframes flow { from { inset-inline-start: -16px; } to { inset-inline-start: 44px; } }
.mini-board { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px; width: 190px; position: relative; box-shadow: var(--shadow); color: var(--text); }
.mb-row { display: grid; grid-template-columns: 50px 1fr; gap: 6px; margin-top: 6px; }
.mb-name { border-radius: 6px; display: grid; place-items: center; font-weight: 700; font-size: 11px; }
.mb-cell { min-height: 34px; border-radius: 7px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; background: repeating-linear-gradient(45deg, #f1f3f8 0 6px, #e6e9f1 6px 12px); color: #8a94a8; transition: background .3s; }
.mb-cell em { font-style: normal; font-size: 10.5px; }
.mb-cell b { font-size: 10.5px; unicode-bidi: isolate; }
.mb-row.open .mb-cell { background: #fff; border: 1px dashed var(--blue); color: var(--blue-d); }
.toast { position: absolute; inset-inline: 8px; bottom: -14px; transform: translateY(8px); opacity: 0; transition: opacity .3s, transform .3s; background: var(--navy); color: #fff; border-radius: 9px; padding: 6px 10px; font-size: 11px; font-weight: 600; text-align: center; }
.toast.show { opacity: 1; transform: none; }
@media (max-width: 480px) {
  .demo-hotel { flex-direction: column; }
  .flow-arrow { width: 2px; height: 28px; }
  .flow-arrow span { width: auto; height: 10px; inset-inline: 0; }
  .demo-hotel.flowing .flow-arrow span { animation: flowv .9s linear infinite; }
  .mini-board { width: 230px; }
}
@keyframes flowv { from { top: -10px; } to { top: 28px; } }

/* rules */
.demo-rules { padding: 14px; display: grid; gap: 10px; }
.rule-try { display: grid; grid-template-columns: 112px auto 1fr; align-items: center; gap: 10px; opacity: .35; transition: opacity .3s; }
.rule-try.active, .rule-try.done { opacity: 1; }
.rt-cell { border: 1px dashed #cfd7e6; border-radius: 9px; padding: 4px 8px; min-height: 46px; display: grid; gap: 2px; transition: background .2s, border-color .2s; }
.rt-cell small { color: var(--muted); font-size: 10.5px; }
.rt-slot { height: 14px; }
.rule-try.active .rt-cell, .rule-try.done .rt-cell { background: repeating-linear-gradient(45deg, #fff1f1 0 6px, #ffe3e3 6px 12px); border-color: #f5a3a3; }
.rt-chip { transition: transform .45s cubic-bezier(.3, .7, .3, 1); justify-self: start; }
.rule-try.active .rt-chip { animation: tryDrop 1.1s ease forwards; }
@keyframes tryDrop {
  0% { transform: translateX(0); }
  35% { transform: translateX(var(--dx, 60px)) rotate(-4deg); }
  45%, 65% { transform: translateX(var(--dx, 60px)); }
  50% { transform: translateX(calc(var(--dx, 60px) - 5px)); }
  60% { transform: translateX(calc(var(--dx, 60px) + 5px)); }
  100% { transform: translateX(0); }
}
.rt-msg { color: var(--danger); font-weight: 600; font-size: 11.5px; opacity: 0; transform: translateY(4px); transition: opacity .3s .5s, transform .3s .5s; }
.rule-try.active .rt-msg, .rule-try.done .rt-msg { opacity: 1; transform: none; }
@media (max-width: 480px) {
  .rule-try { grid-template-columns: 94px auto; }
  .rt-msg { grid-column: 1 / -1; }
}

/* hours */
.demo-hours { padding: 14px; display: grid; gap: 12px; }
.dh-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dh-cards div { background: var(--bg); border-radius: 10px; padding: 8px 10px; }
.dh-cards small { display: block; color: var(--muted); font-size: 10.5px; }
.dh-cards b { font-size: 20px; unicode-bidi: isolate; }
.dh-table { font-size: 12px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; border-collapse: separate; border-spacing: 0; }
.dh-table th, .dh-table td { padding: 7px 10px; }
.dh-table td:first-child { font-weight: 400; }
.adj { unicode-bidi: isolate; direction: ltr; display: inline-block; font-weight: 700; border-radius: 6px; padding: 0 6px; font-size: 11px; }
.adj.up { background: #dcfce7; color: var(--ok); }
.adj.down { background: #fee2e2; color: var(--danger); }
.dh-actions { display: flex; gap: 8px; }

/* image -> whatsapp */
.demo-image { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 10px 0; }
.di-source { display: grid; gap: 10px; justify-items: center; }
.sched-img { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px; width: 250px; box-shadow: var(--shadow); color: var(--text); }
.si-head { font-weight: 700; font-size: 11.5px; margin-bottom: 6px; }
.si-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.si-day { font-size: 8.5px; color: var(--muted); text-align: center; font-weight: 700; overflow: hidden; }
.si-c { font-size: 8.5px; text-align: center; border-radius: 4px; padding: 3px 0; background: hsl(var(--h) 85% 92%); color: hsl(var(--h) 55% 26%); font-weight: 600; overflow: hidden; }
.shot.tap { background: var(--blue); color: #fff; transform: scale(.95); }
.phone.wa { width: 200px; padding: 22px 0 0; overflow: hidden; background: #efe7dd; }
.wa-head { background: #075e54; color: #fff; padding: 8px 10px; font-size: 11.5px; font-weight: 600; display: flex; gap: 6px; align-items: center; margin-top: -22px; padding-top: 24px; }
.wa-av { background: rgba(255, 255, 255, .2); border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; font-size: 11px; }
.wa-body { padding: 10px 8px; display: grid; gap: 6px; min-height: 230px; align-content: start; }
.wa-msg { background: #fff; border-radius: 9px; padding: 5px 8px; font-size: 11px; max-width: 86%; justify-self: start; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.wa-msg.out { background: #dcf8c6; justify-self: end; }
.wa-pic { padding: 4px; opacity: 0; transform: translateY(14px) scale(.9); transition: opacity .4s, transform .4s; }
.wa-pic .sched-img { width: 150px; padding: 5px; box-shadow: none; }
.wa-pic .si-head { font-size: 8px; margin-bottom: 3px; }
.wa-pic .si-grid { gap: 1.5px; }
.wa-pic .si-day, .wa-pic .si-c { font-size: 5.5px; padding: 1px 0; }
.wa-pic small { display: block; padding: 3px 4px 0; font-size: 10px; color: #555; }
.wa-late { opacity: 0; transition: opacity .4s; }
.demo-image.sent .wa-pic { opacity: 1; transform: none; }
.demo-image.replied .wa-late { opacity: 1; }
@media (max-width: 520px) { .demo-image { flex-direction: column; } }

/* sync */
.demo-sync { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 0; }
.laptop { width: 270px; flex: none; }
.lp-screen { background: #fff; border: 8px solid #10162b; border-bottom-width: 10px; border-radius: 12px 12px 0 0; padding: 10px; color: var(--text); min-height: 170px; }
.lp-base { height: 10px; background: linear-gradient(#cfd5e2, #9aa3b6); border-radius: 0 0 14px 14px; margin-inline: -18px; }
.sy-row { display: grid; grid-template-columns: 52px 1fr; gap: 6px; margin-top: 6px; }
.sy-row > span:first-child { border-radius: 6px; display: grid; place-items: center; font-weight: 700; font-size: 10.5px; }
.sy-cell { min-height: 32px; border: 1px dashed #cfd7e6; border-radius: 7px; display: flex; flex-wrap: wrap; gap: 3px; align-items: center; padding: 3px; transition: background .3s; }
.sy-cell.flash { background: #dcfce7; border-color: var(--ok); }
.sy-cell .chip { font-size: 10.5px; padding: 1px 5px; animation: pop .35s ease; }
.sync-wave { display: flex; gap: 4px; }
.sync-wave i { width: 6px; height: 6px; border-radius: 50%; background: #cfd7e6; }
.demo-sync.pulsing .sync-wave i { animation: wave .8s infinite; }
.demo-sync.pulsing .sync-wave i:nth-child(2) { animation-delay: .15s; }
.demo-sync.pulsing .sync-wave i:nth-child(3) { animation-delay: .3s; }
@keyframes wave { 50% { background: var(--blue); transform: scale(1.5); } }
@media (max-width: 520px) {
  .demo-sync { flex-direction: column; }
  .sync-wave { transform: rotate(90deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
