/* Same colours and fonts as the Rafiq dashboard (front/app: tailwind.config.js, main.tsx). */
@font-face { font-family: 'Readex Pro'; font-weight: 400; font-display: swap; src: url(fonts/readex-pro-arabic-400-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Readex Pro'; font-weight: 400; font-display: swap; src: url(fonts/readex-pro-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2010-206F, U+20AC, U+2122; }
@font-face { font-family: 'Readex Pro'; font-weight: 600; font-display: swap; src: url(fonts/readex-pro-arabic-600-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Readex Pro'; font-weight: 600; font-display: swap; src: url(fonts/readex-pro-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2010-206F, U+20AC, U+2122; }
@font-face { font-family: 'Alexandria'; font-weight: 600; font-display: swap; src: url(fonts/alexandria-arabic-600-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Alexandria'; font-weight: 600; font-display: swap; src: url(fonts/alexandria-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2010-206F, U+20AC, U+2122; }
@font-face { font-family: 'Alexandria'; font-weight: 800; font-display: swap; src: url(fonts/alexandria-arabic-800-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Alexandria'; font-weight: 800; font-display: swap; src: url(fonts/alexandria-latin-800-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2010-206F, U+20AC, U+2122; }

/* ألوان سما: حبر وأرضية وكرتون الطرود وختمان */
:root { --ink: #142340; --ground: #e8edf1; --kraft: #d9b48a; --sent: #17684b; --card: #fff; --muted: rgb(20 35 64 / .68); --line: rgb(20 35 64 / .1); --radius: .625rem; --big: 1.25rem; color-scheme: light; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ink); font: 16px/1.75 'Readex Pro', 'Segoe UI', system-ui, sans-serif; }
/* Only the active language is shown. */
html[lang="ar"] body span[lang="en"], html[lang="en"] body span[lang="ar"] { display: none; }
h1, h2, h3, .brand, .price b, .unused { font-family: Alexandria, 'Readex Pro', system-ui, sans-serif; font-weight: 800; }
h1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); line-height: 1.35; margin: 12px 0; text-wrap: balance; }
h1 em { font-style: normal; color: var(--kraft); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.4; margin: 0; }
h3 { font-size: 1.15rem; line-height: 1.5; margin: 0 0 6px; }
a { color: inherit; text-underline-offset: 4px; }
.wrap { width: min(100% - 40px, 1080px); margin-inline: auto; }
.wrap.narrow { width: min(100% - 40px, 760px); }
section { padding-block: 64px; }

/* header */
header { position: sticky; top: 0; z-index: 10; background: var(--ink); color: #fff; border-bottom: 1px solid rgb(255 255 255 / .1); }
header .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 28px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.2rem; text-decoration: none; }
.brand img { width: 30px; height: 31px; }
header nav { display: flex; gap: 22px; }
header nav a { text-decoration: none; color: rgb(255 255 255 / .78); padding-block: 4px; border-bottom: 2px solid transparent; }
header nav a:hover, header nav a[aria-current] { color: #fff; border-bottom-color: var(--kraft); }
.actions { display: flex; gap: 10px; margin-inline-start: auto; }
header .button, header button { padding: 7px 16px; font-size: .88rem; }

/* buttons */
button, .button { font: 600 .98rem/1.6 'Readex Pro', 'Segoe UI', system-ui, sans-serif; border: 1px solid var(--ink); border-radius: var(--radius); padding: 11px 24px; background: var(--ink); color: #fff; cursor: pointer; text-decoration: none; display: inline-flex; justify-content: center; transition: transform .15s, box-shadow .15s; }
button:hover:not(:disabled), .button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 16px rgb(20 35 64 / .18); }
.accent { background: var(--kraft); border-color: var(--kraft); color: var(--ink); }
#lang, .ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / .35); }
.outline { background: transparent; color: var(--ink); border-color: var(--line); }
button:disabled { opacity: .7; cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--kraft); outline-offset: 2px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.sales-note { font-size: .85rem; opacity: .75; margin: 10px 0 0; }

/* hero */
.hero { background: radial-gradient(circle at 85% 15%, rgb(217 180 138 / .16), transparent 42%), var(--ink); color: #fff; padding-block: 56px 72px; }
.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.lead { font-size: 1.1rem; color: rgb(255 255 255 / .8); max-width: 36rem; margin: 0; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.center .row { justify-content: center; }
.badge { display: inline-block; border: 1px solid currentColor; border-radius: 99px; padding: 2px 14px; font-size: .8rem; opacity: .75; }

/* example chat */
.phone { margin: 0 auto; width: 100%; max-width: 380px; }
.screen { background: var(--ground); color: var(--ink); border: 8px solid #0b1528; border-radius: 34px; padding: 0 12px 16px; box-shadow: 0 28px 60px rgb(0 0 0 / .35); overflow: hidden; display: flex; flex-direction: column; gap: 8px; font-size: .9rem; line-height: 1.7; }
.bar { display: flex; align-items: center; gap: 10px; margin-inline: -12px; padding: 14px 16px 10px; background: var(--card); border-bottom: 1px solid var(--line); }
.bar i { width: 36px; height: 36px; border-radius: 50%; background: var(--kraft); display: grid; place-items: center; font-style: normal; font-weight: 600; }
.bar b { display: block; line-height: 1.4; }
.bar small { color: var(--sent); display: block; font-size: .75rem; }
.screen p { margin: 0; padding: 8px 13px; border-radius: 16px; max-width: 84%; }
.screen .in { align-self: flex-start; background: var(--card); border-start-start-radius: 4px; }
.screen .out { align-self: flex-end; background: var(--ink); color: #fff; border-start-end-radius: 4px; }
figcaption { text-align: center; font-size: .8rem; opacity: .65; margin-top: 12px; }

/* content */
.heading { text-align: center; margin-bottom: 36px; }
.heading p { color: var(--muted); margin: 8px 0 0; }
.grid.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 20px; }
.card { background: var(--card); border-radius: var(--big); padding: 28px; border: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; position: relative; }
.card p { margin: 0; color: var(--muted); }
.card .button { margin-top: auto; }
.product .badge { position: absolute; top: 28px; inset-inline-end: 28px; }
.product .badge.live { color: var(--sent); opacity: 1; }
.product.muted { background: rgb(255 255 255 / .6); }
.icon { width: 48px; height: 48px; border-radius: 14px; background: var(--kraft); display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
ul.ticks { list-style: none; padding: 0; margin: 10px 0 22px; }
.ticks li { position: relative; padding-inline-start: 28px; margin-bottom: 8px; }
.ticks li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--sent); font-weight: 700; }
.card ul.ticks:last-child { margin-bottom: 0; }

.band { background: var(--card); }

.pricing { background: var(--card); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); max-width: 860px; margin-inline: auto; border-radius: var(--big); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 18px 44px rgb(20 35 64 / .12); }
.amount { background: var(--ink); color: #fff; padding: 36px 28px; text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.price { margin: 0 0 22px; }
.price b { display: block; font-size: 4.6rem; line-height: 1.2; color: var(--kraft); }
.pricing ul.ticks { margin: 0; padding: 32px; align-self: center; }


footer { background: var(--ink); color: #fff; padding-block: 40px 28px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
footer p { margin: 6px 0 0; color: rgb(255 255 255 / .7); }
footer nav { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
footer .small { flex-basis: 100%; border-top: 1px solid rgb(255 255 255 / .15); padding-top: 18px; font-size: .85rem; }

/* after the order is confirmed */
ol.journey { list-style: none; counter-reset: stage; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.journey > li { counter-increment: stage; background: var(--ground); border-radius: var(--big); padding: 24px; display: flex; flex-direction: column; min-width: 0; }
.journey > li::before { content: counter(stage); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--kraft); font: 800 1.05rem Alexandria, system-ui, sans-serif; margin-bottom: 14px; }
.journey > li > p { margin: 0 0 18px; color: var(--muted); font-size: .93rem; }
.alert { margin-top: auto; background: var(--card); border-radius: 16px; border-inline-start: 4px solid var(--sent); padding: 12px 16px; white-space: pre-line; font-size: .9rem; }
.board { margin-top: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.col { background: rgb(255 255 255 / .55); border: 1px dashed var(--line); border-radius: var(--radius); padding: 8px; min-height: 62px; font-size: .8rem; color: var(--muted); }
.col.on { grid-row: span 3; background: var(--card); border: 1px solid var(--ink); color: var(--ink); }
.slip { margin-top: 8px; background: var(--kraft); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; line-height: 1.6; animation: land .6s ease-out .2s both; }
.slip strong { font-size: .95rem; }
@keyframes land { from { opacity: 0; transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { .slip { animation: none; } }
.mini { margin-top: auto; display: flex; flex-direction: column; gap: 8px; font-size: .9rem; }
.mini p { margin: 0; padding: 8px 13px; border-radius: 16px; max-width: 88%; }
.mini .in { align-self: flex-start; background: var(--card); }
.mini .out { align-self: flex-end; background: var(--ink); color: #fff; }

/* motion: the classes are added by site.js only */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease var(--wait), transform .6s ease var(--wait); }
.reveal.in { opacity: 1; transform: none; }
.card.reveal.in:hover { transform: translateY(-4px); transition-delay: 0s; box-shadow: 0 16px 36px rgb(20 35 64 / .12); }
.hero .split > div:first-child > * { animation: rise .7s ease both; }
.hero .split > div:first-child > :nth-child(2) { animation-delay: .1s; }
.hero .split > div:first-child > :nth-child(3) { animation-delay: .2s; }
.hero .split > div:first-child > :nth-child(n+4) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.phone { position: relative; }
.screen { padding-bottom: 84px; } /* room for the new-order notice */
.screen p { transition: opacity .35s ease, transform .35s ease; }
.screen p.wait { opacity: 0; transform: translateY(10px); }
.screen p.typing { position: relative; color: transparent; }
.screen p.typing::after { content: "• • •"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; animation: blink .9s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.toast { position: absolute; bottom: 62px; inset-inline-start: -18px; background: var(--kraft); color: var(--ink); border-radius: 14px; padding: 10px 16px; display: flex; flex-direction: column; font-size: .88rem; line-height: 1.6; box-shadow: 0 16px 34px rgb(0 0 0 / .35); opacity: 0; transform: translateY(-14px) scale(.92); transition: opacity .4s, transform .4s cubic-bezier(.2, 1.6, .4, 1); pointer-events: none; }
.phone.done .toast { opacity: 1; transform: none; }
.replay { background: transparent; border: 0; color: inherit; font-size: .8rem; padding: 0 6px; text-decoration: underline; }

/* sales sections */
.demo { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); background: var(--card); border-radius: var(--big); overflow: hidden; box-shadow: 0 18px 44px rgb(20 35 64 / .12); }
.asks { background: var(--ink); padding: 24px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.asks button { justify-content: flex-start; background: transparent; color: #fff; border-color: rgb(255 255 255 / .25); }
.asks button[aria-pressed="true"] { background: var(--kraft); border-color: var(--kraft); color: var(--ink); }
.stage { padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 380px; }
.scene { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.scene .mini { margin: 0; font-size: 1rem; background: var(--ground); border-radius: var(--big); padding: 18px; }
.scene .mini p { animation: rise .35s ease both; }
.scene .mini .out { animation-delay: .1s; }
.shot { display: block; margin-top: 8px; background: rgb(255 255 255 / .14); border-radius: 10px; padding: 22px 34px; text-align: center; }
.scene.typing .out { font-size: 0; min-width: 76px; min-height: 42px; position: relative; }
.scene.typing .out .shot { display: none; }
.scene.typing .out::after { content: "• • •"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 1rem; animation: blink .9s ease-in-out infinite; }
.scene.typing .did { visibility: hidden; }
.did { margin: 0; border-inline-start: 4px solid var(--sent); padding-inline-start: 14px; }
.did b { display: block; color: var(--sent); font-size: .85rem; }
.stage small { color: var(--muted); }
@media (max-width: 700px) {
  .demo { grid-template-columns: 1fr; }
  .asks { flex-direction: row; flex-wrap: wrap; padding: 16px; }
  .asks button { padding: 7px 14px; font-size: .86rem; }
  .stage { padding: 18px; }
}
.finale { background: radial-gradient(circle at 50% 0, rgb(217 180 138 / .22), transparent 60%), var(--ink); color: #fff; text-align: center; }
.finale p { color: rgb(255 255 255 / .8); }
.finale .row { justify-content: center; }
main { display: block; }

@media (max-width: 560px) { .toast { inset-inline-start: 0; } }
@media (prefers-reduced-motion: reduce) { .hero .split > div:first-child > * { animation: none; } .toast { transition: none; } }

/* how the system works */
ol.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.flow li { position: relative; background: var(--ground); border-radius: var(--big); padding: 24px 20px; text-align: center; }
.flow .icon { margin-inline: auto; }
.flow p { margin: 0; color: var(--muted); font-size: .93rem; }
/* a dot travels from each step to the next */
.flow li:not(:last-child)::after { content: ""; position: absolute; top: 50%; inset-inline-end: -20px; width: 12px; height: 12px; border-radius: 50%; background: var(--kraft); animation: travel 1.8s ease-in-out infinite; }
html[dir="rtl"] .flow li:not(:last-child)::after { animation-name: travel-rtl; }
.flow li:nth-child(2)::after { animation-delay: .45s; }
.flow li:nth-child(3)::after { animation-delay: .9s; }
@keyframes travel { from { transform: translateX(-8px); opacity: 0; } 50% { opacity: 1; } to { transform: translateX(8px); opacity: 0; } }
@keyframes travel-rtl { from { transform: translateX(8px); opacity: 0; } 50% { opacity: 1; } to { transform: translateX(-8px); opacity: 0; } }
.handover { max-width: 760px; margin: 24px auto 0; text-align: center; background: rgb(217 180 138 / .25); border-radius: var(--radius); padding: 16px 20px; }
@media (max-width: 900px) {
  ol.flow { grid-template-columns: 1fr; }
  .flow li:not(:last-child)::after { top: auto; bottom: -20px; inset-inline-end: calc(50% - 6px); animation-name: travel-down; }
  html[dir="rtl"] .flow li:not(:last-child)::after { animation-name: travel-down; }
  @keyframes travel-down { from { transform: translateY(-8px); opacity: 0; } 50% { opacity: 1; } to { transform: translateY(8px); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) { .flow li::after { animation: none !important; } }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  section { padding-block: 48px; }
  .hero { padding-block: 32px 48px; }
}
@media (max-width: 560px) {
  header .wide { display: none; }
  header nav { order: 3; width: 100%; }
  .card { padding: 22px; }
  .product .badge { position: static; margin-bottom: 10px; }
}
.terms { max-width: 640px; margin: 18px auto 0; text-align: center; font-size: .85rem; color: var(--muted); }
/* terms and privacy */
.clause { background: var(--card); border-radius: var(--big); padding: 24px 28px; margin-bottom: 16px; }
.clause h2 { font-size: 1.25rem; }
.clause ul { margin: 12px 0 0; padding-inline-start: 20px; }
.clause li { margin-bottom: 8px; }
.clause mark { background: rgb(217 180 138 / .5); padding: 0 6px; border-radius: 4px; }
