/* Roken designy — WhatsApp site. Light only (no dark surfaces), one pine green for actions,
   WhatsApp's own green only inside its mark. Logical properties throughout: the same sheet serves
   the Arabic (rtl) and English (ltr) pages. */

:root {
  --bg: #f5f7f6;
  --surface: #ffffff;
  --ink: #17302a;
  --muted: #566862;
  --line: #dce4e0;
  --pine: #0d5c4b;
  --pine-hover: #08443a;
  --mint: #e1f2e9;
  --amber: #8a5a06;
  --amber-bg: #fbf0d9;
  --chat-bg: #ebf0ed;
  --wa: #25d366;
  --display: 'Alexandria', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --body: 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.8 var(--body); }
html[lang="en"] body { line-height: 1.65; }
img, svg { display: block; }
a { color: var(--pine); text-underline-offset: 3px; }
a:hover { color: var(--pine-hover); }
:focus-visible { outline: 3px solid var(--pine); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; font-weight: 600; }
h1 { font-size: clamp(31px, 5.2vw, 50px); line-height: 1.45; letter-spacing: -0.01em; }
h2 { font-size: clamp(25px, 3.4vw, 34px); line-height: 1.5; }
h3 { font-size: 19px; line-height: 1.6; }
html[lang="en"] h1 { line-height: 1.15; letter-spacing: -0.025em; }
html[lang="en"] h2 { line-height: 1.25; letter-spacing: -0.015em; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap { padding-inline: 28px; } }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--surface); padding: 10px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { top: 12px; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand-word { font-family: 'Alexandria', sans-serif; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; direction: ltr; }
.brand-word span { font-weight: 400; color: var(--muted); }
.nav { display: none; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15.5px; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { background: var(--mint); color: var(--pine-hover); }
.nav a[aria-current="page"] { color: var(--pine); font-weight: 600; }
.head-end { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.lang { font-size: 15px; text-decoration: none; color: var(--muted); padding: 8px 10px; border-radius: 10px; }
.lang:hover { background: var(--mint); color: var(--pine-hover); }
.head-end .btn { display: none; }
@media (min-width: 960px) {
  .nav { display: flex; }
  .head-end { margin-inline-start: 8px; }
  .head-end .btn { display: inline-flex; }
  .menu { display: none; }
}

/* Phone menu — a native <details>, works without JS. */
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 20px; height: 20px; }
.menu[open] summary { background: var(--mint); border-color: transparent; }
.menu-panel { position: absolute; inset-inline-end: 0; top: 52px; width: min(300px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 8px; box-shadow: 0 18px 40px -18px rgba(23, 48, 42, 0.35); }
.menu-panel a { display: block; padding: 12px 14px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.menu-panel a:hover { background: var(--mint); }
.menu-panel .btn { margin-top: 6px; width: 100%; justify-content: center; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 12px 22px; border-radius: 14px; font: 600 16px/1.3 var(--body); text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--pine); color: #fff; }
.btn-primary:hover { background: var(--pine-hover); color: #fff; }
.btn-line { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: #b9c8c1; background: #f0f5f2; color: var(--ink); }
.btn .wa-mark { width: 22px; height: 22px; flex-shrink: 0; }
.head-end .btn { min-height: 44px; padding: 8px 16px; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { padding-block: 44px 56px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.hero h1 { max-width: 15ch; }
html[lang="en"] .hero h1 { max-width: 17ch; }
.hero .lead { margin-top: 18px; font-size: 18.5px; color: var(--muted); max-width: 34em; }
.hero .actions { margin-top: 28px; }
@media (min-width: 960px) {
  .hero { padding-block: 72px 80px; }
  .hero .wrap { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
}

/* The demo phone — a business's WhatsApp, drawn in our own style (not WhatsApp's). */
.demo { justify-self: center; width: min(380px, 100%); }
.demo-tabs { display: flex; gap: 6px; padding: 5px; background: #e4ebe7; border-radius: 14px; margin-bottom: 14px; }
.demo-tabs button { flex: 1; min-height: 42px; border: 0; border-radius: 10px; background: transparent; font: 500 15px/1.3 var(--body); color: var(--muted); cursor: pointer; }
.demo-tabs button:hover { color: var(--ink); background: rgba(255, 255, 255, 0.6); }
.demo-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(23, 48, 42, 0.14); }
.phone { background: var(--surface); border-radius: 30px; padding: 8px; border: 1px solid var(--line); box-shadow: 0 40px 70px -40px rgba(13, 92, 75, 0.45); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 10px 12px 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--mint); color: var(--pine); display: grid; place-items: center; font: 700 16px/1 var(--display); flex-shrink: 0; }
.chat-head strong { display: block; font-size: 15.5px; line-height: 1.4; }
.chat-head small { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; }
.chat-head .wa-mark { width: 22px; height: 22px; margin-inline-start: auto; }
.chat { background: var(--chat-bg); border-radius: 22px; padding: 16px 12px; height: 512px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden; }
.msg { max-width: 84%; padding: 8px 12px 6px; border-radius: 16px; font-size: 14.5px; line-height: 1.6; background: var(--surface); box-shadow: 0 1px 1px rgba(23, 48, 42, 0.08); }
.msg.in { align-self: flex-start; border-start-start-radius: 4px; }
.msg.out { align-self: flex-end; background: #d9f0e3; border-start-end-radius: 4px; }
.msg .who { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12.5px; font-weight: 600; color: var(--pine); }
.msg .who::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.msg.staff .who { color: var(--amber); }
.msg .items { margin: 8px 0 2px; display: grid; gap: 6px; }
.msg .item { background: rgba(255, 255, 255, 0.75); border-radius: 10px; padding: 7px 10px; display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.msg .item b { font-weight: 600; white-space: nowrap; }
.sys { align-self: center; text-align: center; max-width: 92%; font-size: 12.5px; line-height: 1.5; color: var(--amber); background: var(--amber-bg); border-radius: 10px; padding: 6px 12px; }
.typing { align-self: flex-end; background: #d9f0e3; border-radius: 16px; padding: 12px 14px; display: flex; gap: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--pine); opacity: 0.35; animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 50% { opacity: 1; } }
.msg, .sys { animation: pop 0.28s ease-out both; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
.demo-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .msg, .sys, .typing i { animation: none; } }

/* ── Facts strip ────────────────────────────────────────────────────────── */
.facts { border-block: 1px solid var(--line); background: var(--surface); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; }
.facts li { padding: 18px 0; font-size: 15.5px; line-height: 1.6; color: var(--ink); display: flex; gap: 12px; align-items: flex-start; }
.facts li + li { border-top: 1px solid var(--line); }
.facts li svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; }
@media (min-width: 860px) {
  .facts ul { grid-template-columns: repeat(3, 1fr); }
  .facts li { padding: 22px 24px; }
  .facts li:first-child { padding-inline-start: 0; }
  .facts li + li { border-top: 0; border-inline-start: 1px solid var(--line); }
}

/* ── Sections ───────────────────────────────────────────────────────────── */
.section { padding-block: 64px; }
@media (min-width: 960px) { .section { padding-block: 96px; } }
.section-head { max-width: 40em; margin-bottom: 36px; }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 18px; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }

/* What it does — rows split by rules, not a grid of identical cards. */
.does { display: grid; gap: 0; }
.does > div { padding-block: 26px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.does p { color: var(--muted); max-width: 36em; }
@media (min-width: 860px) {
  .does { grid-template-columns: 1fr 1fr; column-gap: 56px; }
}

/* Keep-your-number block: text beside a plain two-sided diagram. */
.keep { display: grid; gap: 32px; align-items: center; }
.keep ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.keep li { padding-inline-start: 26px; position: relative; }
.keep li::before { content: ''; position: absolute; inset-inline-start: 2px; top: 0.72em; width: 10px; height: 10px; border-radius: 3px; background: var(--pine); }
.split { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 24px; padding: 22px 18px; }
.split .side { text-align: center; display: grid; gap: 8px; justify-items: center; font-size: 15px; line-height: 1.5; }
.split .side strong { font-family: var(--display); font-weight: 600; font-size: 16px; }
.split .side span { color: var(--muted); font-size: 13.5px; }
.split .num { direction: ltr; font: 600 14px/1 var(--body); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; white-space: nowrap; }
.split .side svg { width: 46px; height: 46px; }
@media (min-width: 960px) { .keep { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* Steps — a real sequence, so it is numbered. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 22px 24px; display: grid; gap: 6px; }
.section.alt .steps li { background: var(--bg); }
.steps li::before { content: counter(s); font: 600 15px/1 var(--display); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: var(--pine); margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 16px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 18px; } }

.rules { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; max-width: 46em; }
.rules li { padding: 16px 0; border-top: 1px solid var(--line); padding-inline-start: 28px; position: relative; }
.rules li::before { content: ''; position: absolute; inset-inline-start: 2px; top: calc(16px + 0.62em); width: 12px; height: 7px; border-left: 2.5px solid var(--pine); border-bottom: 2.5px solid var(--pine); transform: rotate(-45deg); /* a tick is a glyph: not mirrored in RTL */ }
.rules li:last-child { border-bottom: 1px solid var(--line); }

.cta { background: var(--mint); border-radius: 28px; padding: 36px 24px; display: grid; gap: 20px; align-items: center; }
.cta p { color: var(--muted); margin-top: 8px; }
@media (min-width: 860px) { .cta { grid-template-columns: 1fr auto; padding: 44px 48px; } }

/* ── Inner pages ────────────────────────────────────────────────────────── */
.page-head { padding-block: 48px 8px; }
.page-head p { margin-top: 14px; color: var(--muted); font-size: 18.5px; max-width: 38em; }
@media (min-width: 960px) { .page-head { padding-block: 72px 16px; } }

.price-rows { display: grid; gap: 14px; }
.price-row { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px; display: grid; gap: 10px; }
.price-row .when { justify-self: start; font-size: 13.5px; font-weight: 600; color: var(--pine); background: var(--mint); border-radius: 999px; padding: 3px 12px; }
.price-row.meta .when { color: var(--amber); background: var(--amber-bg); }
.price-row p { color: var(--muted); }
.price-row ul { margin: 6px 0 0; padding-inline-start: 20px; color: var(--muted); }
@media (min-width: 860px) {
  .price-row { grid-template-columns: 200px 1fr; column-gap: 32px; padding: 28px 32px; }
  .price-row .when { grid-row: span 3; align-self: start; }
}

.faq { max-width: 46em; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 24px/1 var(--body); color: var(--pine); flex-shrink: 0; }
.faq details[open] summary::after { content: '−'; }
.faq details > div { padding: 0 20px 18px; color: var(--muted); }

.facts-table { width: 100%; max-width: 46em; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.facts-table th, .facts-table td { text-align: start; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 16px; }
.facts-table tr:last-child th, .facts-table tr:last-child td { border-bottom: 0; }
.facts-table th { width: 38%; font-weight: 500; color: var(--muted); }
@media (max-width: 560px) {
  .facts-table th, .facts-table td { display: block; width: auto; }
  .facts-table th { padding-bottom: 0; border-bottom: 0; }
}

.prose { max-width: 44em; }
.prose p + p { margin-top: 14px; }
.prose h2 { font-size: 23px; margin: 40px 0 10px; }
.prose h2:first-child { margin-top: 0; }

.contact-ways { display: grid; gap: 14px; max-width: 46em; }
.way { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; text-decoration: none; color: var(--ink); }
a.way:hover { border-color: #b9c8c1; color: var(--ink); }
.way svg { width: 36px; height: 36px; flex-shrink: 0; }
.way strong { display: block; font-family: var(--display); font-weight: 600; }
.way span { display: block; color: var(--muted); font-size: 15.5px; }
.way .ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* Legal documents */
.doc { max-width: 46em; padding-block: 8px 72px; }
.doc .updated { color: var(--muted); font-size: 15px; margin-top: 10px; }
.doc > .page-head { margin-bottom: 24px; }
.doc h2 { font-size: 21px; margin: 38px 0 8px; }
.doc p, .doc li { color: var(--ink); }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-inline-start: 22px; margin: 10px 0; }
.doc li + li { margin-top: 6px; }
.doc .note { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin-top: 24px; }

/* /connect */
.connect { max-width: 560px; margin: 0 auto; padding-block: 40px 72px; }
.connect .card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; margin: 24px 0 20px; }
.connect .card ol { margin: 8px 0 0; padding-inline-start: 22px; }
.connect .card li + li { margin-top: 6px; }
.connect .btn { width: 100%; justify-content: center; min-height: 56px; font-size: 17px; }
.connect .btn:disabled { opacity: 0.55; cursor: default; }
#status { margin-top: 16px; min-height: 28px; white-space: pre-line; }
#status.bad { color: #b42318; }
.small { color: var(--muted); font-size: 15px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-foot { margin-top: 0; background: var(--surface); border-top: 1px solid var(--line); padding-block: 48px 32px; font-size: 15.5px; }
.foot-grid { display: grid; gap: 32px; }
.foot-grid h2 { font-size: 15px; font-family: var(--body); font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot-grid a { color: var(--ink); text-decoration: none; display: inline-block; padding-block: 5px; }
.foot-grid a:hover { color: var(--pine); text-decoration: underline; }
.foot-grid a.brand { display: inline-flex; padding: 0; }
.foot-grid a.brand:hover { text-decoration: none; color: var(--ink); }
.foot-brand p { color: var(--muted); margin-top: 12px; max-width: 26em; }
.legal-line { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.75; display: grid; gap: 6px; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

/* A real chat scrolls: older messages fade out at the top instead of being cut mid-bubble. */
.chat { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 36px); mask-image: linear-gradient(to bottom, transparent 0, #000 36px); }
@media (max-width: 559px) {
  .hero .actions .btn, .cta .actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* Policy pages: the whole set in a side list (a wrapped row of links on phones). */
.legal-wrap { display: grid; gap: 8px; padding-top: 24px; }
.legal-nav { font-size: 15px; }
.legal-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.legal-nav a { display: inline-block; padding: 7px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; background: var(--surface); border: 1px solid var(--line); }
.legal-nav a:hover { border-color: #b9c8c1; color: var(--ink); }
.legal-nav a[aria-current="page"], .legal-nav a.on { background: var(--mint); border-color: transparent; color: var(--pine); font-weight: 600; }
.legal-home { margin-bottom: 6px; }
@media (min-width: 960px) {
  .legal-wrap { grid-template-columns: 220px 1fr; gap: 56px; align-items: start; padding-top: 48px; }
  .legal-nav { position: sticky; top: 96px; padding-top: 20px; }
  .legal-nav ul { display: grid; gap: 2px; }
  .legal-nav a { display: block; background: none; border: 0; padding: 8px 12px; }
  .legal-home { margin-bottom: 8px; }
  .legal-nav a.legal-home:not(.on) { color: var(--muted); }
}
.doc .way span { font-size: 15px; }
