/* Ziyna marketing site. Tokens from 03-design/brand/tokens.json (v2.0.0; colours unchanged from v1.0.0).
   Mobile-first. Logical properties only (RTL-safe). No framework. */

/* ---------- Fonts (self-hosted subsets; see README) ---------- */
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans.woff2") format("woff2"); font-weight: 600 800; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/ibm-plex-sans-arabic-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/ibm-plex-sans-arabic-600.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Noto Kufi Arabic"; src: url("../fonts/noto-kufi-arabic.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --palm-900: #10302A; --palm-800: #173F37; --palm-700: #1E4B43; --palm-500: #3F7A6D; --palm-300: #8CC2B4; --palm-100: #DCEBE6;
  --clay-800: #7A3417; --clay-700: #93411F; --clay-600: #B4532A; --clay-400: #E07A4F; --clay-200: #F2C2A8; --clay-100: #F8E3D7;
  --sand-50: #FAF7F2; --sand-100: #F2ECE2; --sand-200: #E6DCCB; --sand-300: #D3C7B3;
  --stone-500: #8A8173; --stone-600: #6B6356; --stone-700: #57524A; --ink: #1C1B19;

  --bg: var(--sand-50);
  --surface: #FFFFFF;
  --surface-alt: var(--sand-100);
  --line: var(--sand-200);
  --border-control: var(--stone-500);
  --text: var(--ink);
  --text-muted: var(--stone-700);
  --brand: var(--palm-700);
  --action: var(--clay-600);
  --action-hover: var(--clay-700);
  --focus: #2150C8;
  --focus-dark: #9DB8FF;

  --success: #2F6B3E; --success-soft: #E3EFE4;
  --warning: #7F4E00; --warning-soft: #F8EAC9;
  --info: #1F4E8C; --info-soft: #E3EBF6;
  --error: #A3261B; --error-soft: #F8E4DF;

  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-pill: 999px;
  --shadow-card: 0 1px 2px rgb(28 27 25 / 0.06), 0 8px 24px -12px rgb(28 27 25 / 0.18);
  --shadow-lift: 0 2px 4px rgb(28 27 25 / 0.06), 0 24px 48px -20px rgb(16 48 42 / 0.35);

  --gutter: 16px;
  --container: 1200px;
  --header-h: 64px;
  --lh-body: 1.6; --lh-head: 1.12;
  --track-head: -0.02em;
  color-scheme: light;
}
@media (min-width: 760px) { :root { --gutter: 32px; --header-h: 72px; } }

:root[lang="ar"] {
  --font-display: "Noto Kufi Arabic", "IBM Plex Sans Arabic", "Plus Jakarta Sans", Tahoma, sans-serif;
  --font-text: "IBM Plex Sans Arabic", "Inter", "Noto Sans Arabic", Tahoma, sans-serif;
  --lh-body: 1.8; --lh-head: 1.4;
  --track-head: 0;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-block-start: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-text); font-size: 1rem; line-height: var(--lh-body);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: var(--lh-head); letter-spacing: var(--track-head); margin: 0 0 .5em; color: var(--text); text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); font-weight: 800; letter-spacing: calc(var(--track-head) * 1.25); }
h2 { font-size: clamp(1.625rem, 3.4vw, 2.375rem); font-weight: 700; }
h3 { font-size: 1.1875rem; font-weight: 700; line-height: 1.35; }
:root[lang="ar"] h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0 0 1em; padding-inline-start: 1.25em; }
a { color: var(--brand); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--focus-dark); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 16px; inset-block-start: -100px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; }
.skip-link:focus { inset-block-start: 12px; }
.ltr { direction: ltr; unicode-bidi: isolate; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(760px + 2 * var(--gutter)); }
.section { padding-block: clamp(56px, 9vw, 112px); }
.section--alt { background: var(--surface-alt); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section-head { max-width: 720px; margin-block-end: clamp(32px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-block; font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--clay-700); margin: 0 0 12px; }
:root[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: .9375rem; }
.lead { font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); color: var(--text-muted); max-width: 62ch; }
.muted { color: var(--text-muted); }
.fine { font-size: .875rem; color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--r-pill);
  font: 600 1rem/1.2 var(--font-text); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background-color .15s, border-color .15s, color .15s, transform .15s;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--action); color: #fff; }
.btn-primary:hover { background: var(--action-hover); }
.btn-secondary { background: var(--palm-700); color: #fff; }
.btn-secondary:hover { background: var(--palm-800); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-control); }
.btn-ghost:hover { background: var(--surface); border-color: var(--text); }
.btn-light { background: #fff; color: var(--palm-800); }
.btn-light:hover { background: var(--sand-100); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgb(255 255 255 / .7); }
.btn-outline-light:hover { background: rgb(255 255 255 / .1); border-color: #fff; }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (max-width: 479px) { .btn-row > .btn { flex: 1 1 100%; white-space: normal; } }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

/* ---------- Header ---------- */
.site-header { position: sticky; inset-block-start: 0; z-index: 50; background: rgb(250 247 242 / .92); backdrop-filter: saturate(1.4) blur(10px); border-block-end: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--palm-700); flex: none; min-height: 44px; }
/* Logo: outlined Ziyna lockup, inlined (03-design/brand/scripts/apply_site_brand.py). Corners and wordmark use
   currentColor (.brand colour); the diamond is .brand-dot. Min width 110px EN, 100px AR (brand guidelines). */
.brand-lockup { height: 36px; width: auto; display: block; }
:root[lang="ar"] .brand-lockup { height: 38px; }
.brand-dot { fill: var(--clay-600); }
.site-footer .brand-dot, .mock-side .brand-dot { fill: var(--clay-400); }
.brand-symbol { width: 32px; height: 32px; }
.nav-toggle { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 8px 12px; background: transparent; border: 1.5px solid var(--border-control); border-radius: var(--r-pill); font: 600 .9375rem var(--font-text); color: var(--text); cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle[aria-expanded="true"] .icon-open, .nav-toggle[aria-expanded="false"] .icon-close { display: none; }
.site-nav { display: none; }
.site-nav.is-open { display: block; position: absolute; inset-inline: 0; inset-block-start: 100%; background: var(--bg); border-block-end: 1px solid var(--line); box-shadow: 0 16px 32px -16px rgb(28 27 25 / .25); padding: 8px var(--gutter) 20px; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a { display: flex; align-items: center; min-height: 48px; padding-inline: 4px; color: var(--text); text-decoration: none; font-weight: 500; border-block-end: 1px solid var(--line); }
.nav-list a[aria-current="page"] { color: var(--palm-700); font-weight: 600; }
.nav-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 16px; align-items: center; }
.lang-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding-inline: 8px; color: var(--text); font-weight: 600; text-decoration: none; }
.lang-link:hover { text-decoration: underline; }
.lang-link svg { width: 18px; height: 18px; }
.no-js .nav-toggle { display: none; }
.no-js .site-nav { display: block; position: static; box-shadow: none; padding: 0 0 12px; }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open { display: flex; align-items: center; flex: 1; position: static; background: none; border: 0; box-shadow: none; padding: 0; max-height: none; overflow: visible; }
  .nav-list { display: flex; gap: 4px; margin-inline: auto; }
  .nav-list a { border: 0; min-height: 44px; padding-inline: 12px; border-radius: var(--r-pill); font-size: .9688rem; }
  .nav-list a:hover { background: var(--sand-100); }
  .nav-list a[aria-current="page"] { background: var(--palm-100); color: var(--palm-800); }
  .nav-actions { margin: 0; flex-wrap: nowrap; }
  .no-js .site-nav { display: flex; padding: 0; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 104px); overflow: hidden; position: relative; }
.hero::before { content: ""; position: absolute; inset-block-start: -240px; inset-inline-end: -200px; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(closest-side, rgb(140 194 180 / .35), transparent); pointer-events: none; }
.hero-grid { display: grid; gap: clamp(40px, 6vw, 64px); align-items: center; position: relative; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1.08fr; } }
.hero h1 .accent { color: var(--palm-700); display: block; }
.hero .lead { margin-block-end: 28px; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: .9375rem; color: var(--text-muted); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--success); flex: none; }
.pill-note { display: inline-flex; align-items: center; gap: 8px; margin-block-end: 20px; padding: 6px 14px 6px 8px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); font-size: .875rem; font-weight: 500; color: var(--text-muted); }
[dir="rtl"] .pill-note { padding: 6px 8px 6px 14px; }
.pill-note b { background: var(--clay-100); color: var(--clay-800); border-radius: var(--r-pill); padding: 2px 10px; font-weight: 600; }

/* ---------- Portal mock (illustration, HTML/CSS) ---------- */
.mock-wrap { position: relative; }
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-lift); overflow: hidden; font-size: 13px; line-height: 1.4; color: var(--text); }
:root[lang="ar"] .mock { line-height: 1.6; }
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--sand-100); border-block-end: 1px solid var(--line); }
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--sand-300); display: block; }
.mock-url { flex: 1; max-width: 260px; margin-inline: auto; background: var(--surface); border-radius: var(--r-pill); padding: 4px 12px; font-size: 11.5px; color: var(--stone-700); text-align: center; }
.mock-app { display: grid; grid-template-columns: 1fr; }
@media (min-width: 560px) { .mock-app { grid-template-columns: 148px 1fr; } }
.mock-side { display: none; background: var(--palm-800); color: #fff; padding: 16px 12px; }
@media (min-width: 560px) { .mock-side { display: block; } }
.mock-side .m-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-block-end: 18px; font-size: 14px; }
.mock-side .m-brand svg { width: 22px; height: 22px; }
.mock-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mock-side li { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; color: rgb(255 255 255 / .82); }
.mock-side li svg { width: 15px; height: 15px; }
.mock-side li.is-active { background: rgb(255 255 255 / .12); color: #fff; font-weight: 600; }
.mock-main { padding: 16px; display: grid; gap: 12px; background: var(--sand-50); min-width: 0; }
.mock-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mock-head b { font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.mock-head .m-sub { display: block; font-size: 11px; color: var(--stone-700); font-weight: 500; }
.m-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--clay-600); color: #fff; border-radius: var(--r-pill); padding: 7px 12px; font-weight: 600; font-size: 12px; white-space: nowrap; }
.m-btn svg { width: 13px; height: 13px; }
.mock-cards { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.m-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-width: 0; }
.m-card .m-label { color: var(--stone-700); font-size: 11.5px; font-weight: 500; }
.m-usage-num { font-family: var(--font-display); font-size: 24px; font-weight: 800; line-height: 1.1; margin-block: 2px 8px; }
.m-usage-num small { font-family: var(--font-text); font-size: 12px; color: var(--stone-700); font-weight: 500; }
.m-segs { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; }
.m-segs i { height: 6px; border-radius: 3px; background: var(--sand-200); display: block; }
.m-segs i.on { background: var(--palm-700); }
.m-stat { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.m-stat + .m-stat { margin-block-start: 8px; padding-block-start: 8px; border-block-start: 1px solid var(--line); }
.m-stat b { font-family: var(--font-display); font-size: 20px; font-weight: 800; }
.m-table { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.m-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 9px 12px; }
@media (min-width: 560px) { .m-row { grid-template-columns: 1.6fr 1fr auto; } }
.m-row + .m-row { border-block-start: 1px solid var(--line); }
.m-row .m-ref { display: block; font-size: 10.5px; color: var(--stone-700); letter-spacing: .04em; }
.m-row .m-title { font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-row .m-photos { display: none; color: var(--stone-700); font-size: 12px; }
@media (min-width: 560px) { .m-row .m-photos { display: block; } }
.chip { display: inline-flex; align-items: center; gap: 5px; border-radius: var(--r-pill); padding: 3px 9px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.chip svg { width: 12px; height: 12px; }
.chip--ready { background: var(--success-soft); color: var(--success); }
.chip--review { background: var(--warning-soft); color: var(--warning); }
.chip--staging { background: var(--info-soft); color: var(--info); }
.chip--queued { background: var(--sand-100); color: var(--stone-700); }
.mock-float { position: absolute; inset-inline-start: -8px; inset-block-end: -22px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-card); padding: 10px 14px; display: flex; align-items: center; gap: 10px; font-size: 13px; max-width: 280px; }
.mock-float .dot { width: 32px; height: 32px; border-radius: 10px; background: var(--success-soft); color: var(--success); display: grid; place-items: center; flex: none; }
.mock-float .dot svg { width: 18px; height: 18px; }
.mock-float b { display: block; font-size: 13px; }
.mock-float span { color: var(--stone-700); font-size: 12px; }
@media (min-width: 1024px) { .mock-float { inset-inline-start: -28px; } }
.mock-caption { margin: 36px 0 0; font-size: .8125rem; color: var(--text-muted); text-align: center; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid { gap: 20px; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 28px); box-shadow: var(--shadow-card); }
.card h3 { margin-block-end: 8px; }
.card p:last-child, .card ul:last-child { margin-block-end: 0; }
.icon-badge { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--palm-100); color: var(--palm-700); margin-block-end: 16px; }
.icon-badge svg { width: 22px; height: 22px; }
.icon-badge--clay { background: var(--clay-100); color: var(--clay-700); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 16px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-card); }
.step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--palm-700); color: #fff; font-family: "Plus Jakarta Sans", var(--font-display); font-weight: 800; margin-block-end: 16px; }
.step p { color: var(--text-muted); margin: 0; }

/* Audience split */
.split { display: grid; gap: 16px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 20px; } }
.audience { border-radius: var(--r-xl); padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; }
.audience--agent { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.audience--agency { background: var(--palm-800); color: #fff; }
.audience--agency h3, .audience--agency .eyebrow { color: #fff; }
.audience--agency .eyebrow { color: var(--clay-200); }
.audience--agency .check-list li { color: rgb(255 255 255 / .92); }
.audience--agency .check-list svg { color: var(--palm-300); }
.audience h3 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); }
.audience .btn-row { margin-block-start: auto; padding-block-start: 16px; }
.check-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.check-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.check-list svg { width: 20px; height: 20px; margin-block-start: 3px; color: var(--success); }

/* Features */
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.feature h3 { font-size: 1.0625rem; margin-block-end: 6px; }
.feature p { color: var(--text-muted); margin: 0; font-size: .9688rem; }
.label-sample { display: inline-block; margin-block-start: 12px; background: rgb(28 27 25 / .88); color: #fff; border-radius: 6px; padding: 4px 10px; font-size: .8125rem; font-weight: 500; }

/* ---------- Before / after ---------- */
.gallery { display: grid; gap: 20px; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } .compare-card--featured { grid-column: 1 / -1; } }
.compare-card { margin: 0; }
.compare { --pos: 50%; position: relative; aspect-ratio: 1312 / 894; border-radius: var(--r-lg); overflow: hidden; background: var(--sand-200); touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; box-shadow: var(--shadow-card); }
.compare-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-before, .compare-after { position: absolute; inset: 0; }
.compare-before { z-index: 2; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
[dir="rtl"] .compare-before { clip-path: inset(0 0 0 calc(100% - var(--pos))); }
.compare-handle { position: absolute; z-index: 3; inset-block: 0; inset-inline-start: var(--pos); width: 0; outline: none; }
.compare-handle::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: -1.5px; width: 3px; background: #fff; box-shadow: 0 0 0 1px rgb(28 27 25 / .35); }
.compare-knob { position: absolute; inset-block-start: 50%; inset-inline-start: 0; width: 48px; height: 48px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--palm-700), 0 6px 16px rgb(0 0 0 / .3); display: grid; place-items: center; color: var(--palm-700); }
[dir="rtl"] .compare-knob { transform: translate(50%, -50%); }
.compare-knob svg { width: 24px; height: 24px; }
.compare-handle:focus-visible .compare-knob { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--focus), 0 6px 16px rgb(0 0 0 / .3); }
.tag { position: absolute; z-index: 4; font-size: .8125rem; font-weight: 600; padding: 5px 10px; border-radius: 6px; line-height: 1.3; pointer-events: none; }
.tag-before { inset-block-start: 12px; inset-inline-start: 12px; background: rgb(250 247 242 / .94); color: var(--ink); }
.tag-staged { inset-block-end: 12px; inset-inline-end: 12px; background: rgb(28 27 25 / .88); color: #fff; font-weight: 500; max-width: calc(100% - 24px); }
.compare-before .tag-before { z-index: 1; }
.compare-card figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding-block-start: 12px; font-size: .9375rem; }
.compare-card figcaption .caption-note { color: var(--text-muted); font-size: .875rem; }
.placeholder-flag { position: absolute; z-index: 5; inset-block-start: 12px; inset-inline-end: 12px; background: var(--warning-soft); color: var(--warning); border: 1px solid var(--warning); font-size: .75rem; font-weight: 600; padding: 3px 8px; border-radius: 6px; pointer-events: none; }
.gallery-hint { font-size: .875rem; color: var(--text-muted); margin-block-start: 16px; }
.gallery-empty { background: var(--surface); border: 1px dashed var(--border-control); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); text-align: center; }
.gallery-empty p { max-width: 52ch; margin-inline: auto; }

/* ---------- Pricing ---------- */
.plans { display: grid; gap: 16px; align-items: stretch; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .plans { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px 24px; box-shadow: var(--shadow-card); }
.plan h3 { font-size: 1.125rem; margin-block-end: 4px; }
.plan-for { color: var(--text-muted); font-size: .9375rem; margin-block-end: 18px; min-height: 3em; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-block-end: 4px; }
.price-num { font-family: "Plus Jakarta Sans", var(--font-display); font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--text); }
.price-cur, .price-per { font-weight: 600; color: var(--text-muted); font-size: .9375rem; }
.price-note { font-size: .875rem; color: var(--text-muted); margin-block-end: 20px; }
.plan .check-list { font-size: .9375rem; gap: 10px; }
.plan .btn { margin-block-start: auto; }
.plan--featured { background: var(--palm-800); border-color: var(--palm-800); color: #fff; }
.plan--featured h3, .plan--featured .price-num { color: #fff; }
.plan--featured .plan-for, .plan--featured .price-cur, .plan--featured .price-per, .plan--featured .price-note { color: rgb(255 255 255 / .85); }
.plan--featured .check-list li { color: rgb(255 255 255 / .94); }
.plan--featured .check-list svg { color: var(--palm-300); }
.plan-badge { position: absolute; inset-block-start: -13px; inset-inline-start: 24px; background: var(--clay-600); color: #fff; font-size: .8125rem; font-weight: 600; padding: 4px 12px; border-radius: var(--r-pill); }
.pricing-notes { margin-block-start: 28px; display: grid; gap: 16px; }
@media (min-width: 900px) { .pricing-notes { grid-template-columns: repeat(3, 1fr); } }
.note-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; font-size: .9375rem; }
.section--alt .note-box { background: var(--sand-50); }
.note-box h3 { font-size: 1rem; margin-block-end: 6px; font-family: var(--font-text); font-weight: 600; letter-spacing: 0; }
.note-box p { margin: 0; color: var(--text-muted); }

.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.table-wrap:focus-visible { outline-offset: 2px; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .9375rem; }
.compare-table th, .compare-table td { padding: 14px 16px; text-align: start; border-block-end: 1px solid var(--line); vertical-align: top; }
.compare-table thead th { background: var(--sand-100); font-weight: 600; font-size: .875rem; }
.compare-table tbody th { font-weight: 500; color: var(--text); }
.compare-table tr:last-child > * { border-block-end: 0; }
.compare-table caption { text-align: start; padding: 0 0 12px; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-weight: 600; min-height: 56px; border-radius: var(--r-md); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; transition: transform .2s; color: var(--palm-700); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .faq-body { padding: 0 20px 18px; color: var(--text-muted); }
.faq .faq-body p:last-child { margin: 0; }
.faq h3 { margin: 0; font-size: 1.0313rem; font-family: var(--font-text); font-weight: 600; letter-spacing: 0; line-height: 1.45; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--palm-800); color: #fff; border-radius: var(--r-xl); padding: clamp(32px, 6vw, 64px); display: grid; gap: 24px; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset-block-end: -120px; inset-inline-end: -80px; width: 320px; height: 320px; border-radius: 64px; border: 48px solid rgb(255 255 255 / .06); transform: rotate(12deg); pointer-events: none; }
.cta-band h2 { color: #fff; margin: 0 0 10px; }
.cta-band p { color: rgb(255 255 255 / .88); margin: 0; max-width: 60ch; }
@media (min-width: 960px) { .cta-band { grid-template-columns: 1.4fr auto; align-items: center; } }

/* ---------- Walkthrough (for agencies) ---------- */
.walk { display: grid; gap: clamp(48px, 8vw, 96px); }
.walk-item { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .walk-item { grid-template-columns: 1fr 1.1fr; gap: 56px; } .walk-item:nth-child(even) .walk-text { order: 2; } }
.walk-text .step-num { margin-block-end: 12px; }
.walk-text p { color: var(--text-muted); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-lift); padding: 18px; font-size: 13.5px; line-height: 1.45; }
.panel-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-block-end: 14px; font-weight: 700; font-family: var(--font-display); font-size: 15px; }
.p-field { display: grid; gap: 4px; margin-block-end: 10px; }
.p-field span { font-size: 12px; color: var(--stone-700); font-weight: 500; }
.p-input { border: 1.5px solid var(--border-control); border-radius: 10px; padding: 8px 10px; background: #fff; }
.p-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-block: 6px 12px; }
.p-photo { border-radius: 10px; border: 1px solid var(--line); overflow: hidden; background: var(--sand-100); }
.p-photo .ph { aspect-ratio: 4 / 3; background: linear-gradient(135deg, #EFE7DA, #DCD1BE); position: relative; }
.p-photo .ph::after { content: ""; position: absolute; inset-inline: 18% ; inset-block-end: 18%; height: 30%; border-radius: 6px 6px 2px 2px; background: rgb(30 75 67 / .14); }
.p-photo.skip .ph::after { display: none; }
.p-photo .pm { display: flex; justify-content: space-between; gap: 4px; padding: 6px 8px; font-size: 11px; font-weight: 600; }
.p-photo .pm em { font-style: normal; color: var(--stone-700); font-weight: 500; }
.p-photo.on { outline: 2px solid var(--palm-700); outline-offset: -1px; }
.p-styles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.p-style { border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 10px; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 12.5px; }
.p-style.on { border-color: var(--palm-700); background: var(--palm-100); }
.p-sw { display: flex; gap: 2px; }
.p-sw i { width: 10px; height: 16px; border-radius: 3px; display: block; }
.p-counter { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--sand-100); border-radius: 10px; padding: 8px 12px; font-size: 12.5px; margin-block-start: 12px; }
.p-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.p-timeline li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-block-end: 1px solid var(--line); }
.p-timeline li:last-child { border: 0; }
.p-timeline .tl-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--sand-200); color: var(--stone-700); }
.p-timeline .tl-dot svg { width: 13px; height: 13px; }
.p-timeline .done .tl-dot { background: var(--success-soft); color: var(--success); }
.p-timeline .now .tl-dot { background: var(--info-soft); color: var(--info); }
.p-timeline small { color: var(--stone-700); }
.p-ready { display: grid; gap: 10px; }
.p-ba { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: linear-gradient(90deg, #E9E1D3 0 50%, #D9CDB7 50% 100%); }
.p-ba .p-sofa { position: absolute; inset-inline-start: 56%; inset-inline-end: 8%; inset-block-end: 16%; height: 26%; border-radius: 10px 10px 4px 4px; background: var(--palm-500); opacity: .75; }
.p-ba .p-rug { position: absolute; inset-inline-start: 54%; inset-inline-end: 4%; inset-block-end: 6%; height: 10%; border-radius: 50%; background: var(--clay-200); }
.p-ba .p-win { position: absolute; inset-block-start: 12%; inset-inline-start: 10%; width: 30%; height: 44%; border: 3px solid #fff; border-radius: 4px; background: #CFE0E6; }
.p-ba .p-line { position: absolute; inset-block: 0; inset-inline-start: 50%; width: 3px; background: #fff; }
.p-ba .tag-staged { font-size: 10.5px; padding: 3px 7px; inset-block-end: 8px; inset-inline-end: 8px; }
.p-ba .tag-before { font-size: 10.5px; padding: 3px 7px; inset-block-start: 8px; inset-inline-start: 8px; }
.p-ba .p-qr { position: absolute; inset-inline-start: 8px; inset-block-end: 8px; width: 15%; aspect-ratio: 1; border: 1.5px dashed rgb(28 27 25 / .45); border-radius: 4px; }
.p-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.p-btn { display: inline-flex; align-items: center; gap: 6px; border-radius: var(--r-pill); padding: 7px 12px; font-weight: 600; font-size: 12.5px; border: 1.5px solid var(--border-control); }
.p-btn svg { width: 14px; height: 14px; }
.p-btn--primary { background: var(--clay-600); border-color: var(--clay-600); color: #fff; }
.p-team { list-style: none; margin: 0; padding: 0; }
.p-team li { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-block-end: 1px solid var(--line); }
.p-team li:last-child { border: 0; }
.p-av { width: 32px; height: 32px; border-radius: 50%; background: var(--sand-100); display: grid; place-items: center; font-weight: 700; font-size: 11px; color: var(--palm-800); }
.p-team small { display: block; color: var(--stone-700); }
.p-role { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: var(--r-pill); background: var(--palm-100); color: var(--palm-800); }
.p-role--agent { background: var(--sand-100); color: var(--stone-700); }
.p-inv { display: grid; gap: 8px; margin-block-start: 14px; }
.p-inv-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.panel-note { margin: 12px 0 0; font-size: 12px; color: var(--stone-700); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 20px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: start; } }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: .9375rem; }
.field .hint { font-size: .875rem; color: var(--text-muted); }
.field input, .field select, .field textarea { font: inherit; color: var(--text); background: #fff; border: 1.5px solid var(--border-control); border-radius: var(--r-md); padding: 11px 14px; min-height: 48px; width: 100%; }
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.field-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-status { font-size: .9375rem; color: var(--text-muted); min-height: 1.5em; margin: 0; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact-item { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.contact-item .icon-badge { margin: 0; }
.contact-item h2, .contact-item h3 { font-size: 1.0625rem; margin-block-end: 4px; }
.contact-item p { margin: 0 0 8px; color: var(--text-muted); font-size: .9375rem; }

/* ---------- Legal ---------- */
.draft-banner { display: flex; gap: 12px; align-items: flex-start; background: var(--warning-soft); color: #4A2E00; border: 1px solid #C99A3D; border-radius: var(--r-md); padding: 14px 16px; margin-block-end: 28px; }
.draft-banner svg { width: 20px; height: 20px; flex: none; margin-block-start: 2px; color: var(--warning); }
.draft-banner p { margin: 0; }
.legal-body h2 { font-size: 1.3125rem; margin-block: 2em .5em; }
.legal-body table { width: 100%; border-collapse: collapse; margin-block: 0 1.25em; font-size: .9375rem; background: var(--surface); }
.legal-body th, .legal-body td { border: 1px solid var(--line); padding: 10px 12px; text-align: start; vertical-align: top; }
.legal-body th { background: var(--sand-100); font-weight: 600; }
.legal-body li { margin-block-end: .4em; }
.legal-toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 20px; margin-block-end: 8px; }
.legal-toc h2 { font-size: 1rem; margin: 0 0 8px; font-family: var(--font-text); letter-spacing: 0; }
.legal-toc ol { margin: 0; columns: 2 220px; }

/* ---------- Simple pages (app, 404) ---------- */
.center-page { min-height: calc(100vh - var(--header-h) - 220px); display: grid; place-items: center; text-align: center; padding-block: 72px; }
.center-page .inner { max-width: 560px; }
.center-page .icon-badge { margin-inline: auto; width: 56px; height: 56px; border-radius: 16px; }
.center-page .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--palm-900); color: rgb(255 255 255 / .86); padding-block: 56px 32px; margin-block-start: 0; font-size: .9375rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer .brand { color: #fff; }
.footer-tag { margin-block-start: 14px; max-width: 36ch; color: rgb(255 255 255 / .8); }
.footer-col h2 { font-family: var(--font-text); font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--palm-300); margin-block-end: 12px; }
:root[lang="ar"] .footer-col h2 { letter-spacing: 0; text-transform: none; font-size: .9375rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.footer-col a { display: inline-flex; align-items: center; min-height: 36px; }
.footer-base { margin-block-start: 40px; padding-block-start: 24px; border-block-start: 1px solid rgb(255 255 255 / .14); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .875rem; color: rgb(255 255 255 / .75); }
.footer-base p { margin: 0; }

/* ---------- Motion / forced colours ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .btn, .chip, .tag, .plan, .card, .step, .feature { border: 1px solid CanvasText; }
  .compare-handle::before { background: CanvasText; }
  .compare-knob { border: 2px solid CanvasText; }
}
@media print {
  .site-header, .site-footer, .cta-band, .skip-link { display: none; }
}

/* ---------- Utilities (no inline styles: CSP style-src 'self') ---------- */
[data-u="center"] { justify-content: center; }
[data-u="center-text"] { text-align: center; }
[data-u="mx-auto"] { margin-inline: auto; }
[data-u="mt20"] { margin-block-start: 20px; }
[data-u="m0"] { margin: 0; }
[data-u="pb32"] { padding-block-end: 32px; }
[data-u="pb40"] { padding-block-end: 40px; }
[data-u="pt16"] { padding-block-start: 16px; }
[data-u="submit-row"] { margin-block-start: 12px; justify-content: space-between; align-items: center; }
.u-self-center { align-self: center; }
.m-cell { min-width: 0; }
.plan-card { display: grid; gap: 12px; }
.plan-card .check-list { margin-block-end: 8px; }
:root[lang="en"] :lang(ar) { font-family: "IBM Plex Sans Arabic", "Inter", Tahoma, sans-serif; line-height: 1.8; letter-spacing: 0; text-transform: none; }
:root[lang="ar"] :lang(en) { font-family: "Inter", system-ui, sans-serif; }
.sw-ink { background: #1C1B19; } .sw-sand1 { background: #F2ECE2; } .sw-sand2 { background: #E6DCCB; } .sw-sand3 { background: #D3C7B3; }
.sw-clay { background: #B4532A; } .sw-clay8 { background: #7A3417; } .sw-oak { background: #C9B79C; } .sw-palm3 { background: #8CC2B4; }
.sw-palm7 { background: #1E4B43; } .sw-white { background: #FFFFFF; box-shadow: inset 0 0 0 1px #D3C7B3; } .sw-stone { background: #57524A; }

/* ---------- Mobile refinements ---------- */
@media (max-width: 639px) {
  .feature { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 18px; }
  .feature .icon-badge { grid-row: span 3; margin: 0; }
  .feature h3 { margin-block: 2px 4px; }
  .mock-float { position: relative; inset: auto; margin: -18px 12px 0 auto; width: max-content; }
  [dir="rtl"] .mock-float { margin: -18px auto 0 12px; }
  .mock-caption { margin-block-start: 16px; }
}

/* ---------- Audit fixes, 26 Sep 2026 (06-verify/ux-audit.md, fix log S-01..S-03) ---------- */
/* S-01: tick icons in the plan comparison table had no size and grew to the column width (up to 234px). */
.compare-table td svg { display: inline-block; width: 20px; height: 20px; vertical-align: -4px; color: var(--success); }
/* S-02: the WhatsApp button on /contact/ could not wrap and pushed the page to 365px wide at 320px (WCAG 1.4.10). */
.contact-item > div { min-width: 0; }
.contact-item .btn { white-space: normal; text-align: start; }
/* S-03: the dark Agency plan card used the light-page focus colour (1.7:1 on palm-800, WCAG 1.4.11 / 2.4.7). */
.plan--featured :focus-visible { outline-color: var(--focus-dark); }

/* ---- First listing: choose WhatsApp or a free portal account (details disclosure) ---- */
.start-choice { position: relative; display: inline-flex; }
.start-choice > summary { list-style: none; }
.start-choice > summary::-webkit-details-marker { display: none; }
.start-choice > summary .chev { width: 18px; height: 18px; transition: transform .15s; }
.start-choice[open] > summary .chev { transform: rotate(180deg); }
.start-menu { position: absolute; z-index: 30; inset-block-start: calc(100% + 8px); inset-inline-start: 0; width: max-content; min-width: 100%; max-width: min(340px, calc(100vw - 32px)); display: grid; gap: 4px; padding: 8px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lift); text-align: start; }
.start-choice--up .start-menu { inset-block-start: auto; inset-block-end: calc(100% + 8px); }
.start-menu a.start-opt { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: var(--r-md); color: var(--text); text-decoration: none; white-space: normal; }
.start-menu a.start-opt:hover { background: var(--sand-100); }
.start-menu :focus-visible { outline-color: var(--focus); }
.start-opt svg { width: 22px; height: 22px; flex: none; margin-block-start: 1px; color: var(--palm-700); }
.start-opt b { display: block; font-weight: 600; }
.start-opt small { display: block; margin-block-start: 2px; color: var(--text-muted); font-size: .875rem; line-height: 1.4; }
.start-choice--block { display: flex; margin-block-start: auto; }
.start-choice--block > summary { width: 100%; }
@media (max-width: 479px) {
  .btn-row > .start-choice { flex: 1 1 100%; }
  .btn-row > .start-choice > summary { flex: 1 1 100%; white-space: normal; }
  .start-menu { width: auto; }
}
/* ---- Plan groups: per listing and agency plans ---- */
.plan-group + .plan-group { margin-block-start: 40px; }
.plan-group-head { margin-block-end: 18px; max-width: 62ch; }
.plan-group-head h3 { font-size: 1.25rem; margin-block-end: 4px; }
.plan-group-head p { margin: 0; color: var(--text-muted); }
.plan h4 { font-size: 1.125rem; margin-block-end: 4px; }
.plan--featured h4 { color: #fff; }
@media (min-width: 900px) { .plans--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .pricing-notes--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pricing-notes--4 { grid-template-columns: repeat(4, 1fr); } }
.table-title { font-size: 1.125rem; margin-block: 0 12px; }
.table-wrap + .table-title { margin-block-start: 32px; }
.compare-table--plans { min-width: 560px; }

/* Copy v2 (27 Sep 2026): plain-language summary box at the top of legal pages */
.legal-summary { margin-block: 20px 4px; }
.legal-summary h2 { font-size: 1.0625rem; margin: 0 0 8px; font-family: var(--font-text); font-weight: 600; letter-spacing: 0; }
.legal-summary ul { margin: 0 0 10px; padding-inline-start: 1.25em; display: grid; gap: 6px; color: var(--text); }
.legal-summary p { font-size: .875rem; }
