/* EstateOps marketing site.
   Colour tokens come from the product UI (prototype/css/app.css). */

:root {
  --navy: #151a33;
  --navy-2: #1e2548;
  --blue: #2f6feb;
  --blue-strong: #1f5bd6; /* link text on pale surfaces: keeps AA contrast on --bg */
  --blue-soft: #e8f1ff;
  --ink: #1c2434;
  --muted: #667085;
  --line: #e6eaf2;
  --bg: #f4f6fb;
  --card: #ffffff;
  --ok: #2f7d4a;
  --ok-bg: #e7f6ed;
  --warn: #8a6508;
  --warn-bg: #fff8e6;
  --bad: #b42318;
  --bad-bg: #fdecea;
  --hold: #7a3e9d;
  --hold-bg: #f3e8ff;
  --on-navy: #ffffff;
  --on-navy-muted: #b8c2dc;
  --top-line: #2c355c;
  --focus: #2f6feb;
  --focus-on-navy: #9ec1ff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(21, 26, 51, 0.05);
  --shadow-lift: 0 8px 24px rgba(21, 26, 51, 0.08);
  --shadow-float: 0 16px 40px rgba(5, 8, 20, 0.28);
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 64px;
  --gutter: 16px;
  --max: 1160px;
  font-family: "Segoe UI", "IBM Plex Sans", system-ui, sans-serif;
  color-scheme: light;
}

html[lang="ar"] {
  font-family: "Segoe UI", "IBM Plex Sans", "IBM Plex Sans Arabic", "Noto Sans Arabic", Tahoma, system-ui, sans-serif;
}

/* While the Arabic dictionary is applied on load, avoid a flash of English. */
html.eo-i18n-pending body { visibility: hidden; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue-strong); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 12px; color: var(--ink); }
h1 { font-size: clamp(2.25rem, 4.2vw, 3.25rem); line-height: 1.08; letter-spacing: -0.025em; font-weight: 600; }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); letter-spacing: -0.015em; font-weight: 600; }
h3 { font-size: 1.125rem; font-weight: 600; }
html[lang="ar"] h1, html[lang="ar"] h2 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0 0 12px; }
ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.site-header :focus-visible, .hero-dark :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible { outline-color: var(--focus-on-navy); }

.visually-hidden {
  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; top: -64px; z-index: 100;
  background: var(--card); color: var(--ink); padding: 12px 16px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lift); font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 24px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.98rem; text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .12s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-sm { min-height: 36px; padding: 8px 16px; font-size: 0.9375rem; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-strong); }
.btn-outline { background: var(--card); color: var(--ink); border-color: #cfd6e6; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue-strong); }
.btn-light { background: transparent; color: var(--on-navy); border-color: rgba(255, 255, 255, 0.35); }
.btn-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn .ext { width: 14px; height: 14px; flex: none; }
html[dir="rtl"] .btn .ext { transform: scaleX(-1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy); color: var(--on-navy);
  border-bottom: 1px solid var(--top-line);
}
.nav { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on-navy); text-decoration: none; font-weight: 600; font-size: 1.125rem; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 6px; background: var(--blue); color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 600;
}
.nav-menu { display: flex; align-items: center; gap: 20px; margin-inline-start: auto; }
.nav-links { list-style: none; display: flex; gap: 4px; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: 8px; color: var(--on-navy-muted);
  text-decoration: none; font-weight: 500;
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav-links a[aria-current="page"] { color: #fff; background: var(--navy-2); box-shadow: inset 0 -2px 0 var(--blue); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.lang-btn {
  min-height: 36px; padding: 6px 12px; border-radius: 8px; cursor: pointer;
  background: var(--navy-2); color: #fff; border: 1px solid var(--top-line); font-weight: 500;
}
.lang-btn:hover { border-color: var(--on-navy-muted); }
.nav-toggle {
  display: none; margin-inline-start: auto; width: 44px; height: 44px; border-radius: 10px;
  background: var(--navy-2); border: 1px solid var(--top-line); cursor: pointer; padding: 0;
  place-items: center;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; position: relative; content: "";
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 919px) {
  html.js .nav-toggle { display: grid; }
  .nav { flex-wrap: wrap; }
  .nav-menu { width: 100%; flex-direction: column; align-items: stretch; gap: 12px; padding-bottom: 16px; margin-inline-start: 0; }
  html.js .nav-menu { display: none; }
  html.js .nav-menu.open { display: flex; }
  .nav-links { flex-direction: column; gap: 2px; }
  .nav-links a { padding: 12px; }
  .nav-actions { flex-wrap: wrap; }
  .nav-actions .btn { flex: 1; }
}

/* ---------- Sections ---------- */
main { display: block; }
.section { padding-block: 80px; }
.section-tight { padding-block: 48px; }
.section-white { background: var(--card); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 0.9375rem; font-weight: 500;
  color: var(--blue-strong); margin-bottom: 8px;
}
.lede { font-size: 1.125rem; color: var(--muted); max-width: 680px; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 20px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px;
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

/* ---------- Hero ---------- */
.hero-dark {
  background: var(--navy);
  color: var(--on-navy); padding-block: 80px;
}
.hero-dark h1 { color: #fff; margin-bottom: 20px; }
html[lang="ar"] .hero-dark h1 { font-size: clamp(2rem, 3.6vw, 2.75rem); }
.hero-dark .lede { color: var(--on-navy-muted); }
.hero-dark .eyebrow { color: var(--focus-on-navy); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 64px; } }
.hero-note { margin-top: 16px; font-size: 0.92rem; color: var(--on-navy-muted); }
.hero-light { padding-block: 56px 40px; }
.hero-light .lede { margin-bottom: 0; }

/* ---------- Product frame (simplified views, labelled) ---------- */
.frame {
  margin: 0; background: var(--card); color: var(--ink); border-radius: 16px;
  box-shadow: var(--shadow-float); overflow: hidden; border: 1px solid var(--line);
}
.frame-bar {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--navy-2); color: #fff;
  font-size: 0.9rem; font-weight: 500; flex-wrap: wrap;
}
.frame-dots { display: inline-flex; gap: 6px; }
.frame-dots span { width: 8px; height: 8px; border-radius: 50%; background: #3a4470; }
.frame-scopes { display: inline-flex; gap: 4px; margin-inline-start: auto; background: var(--navy); padding: 4px; border-radius: 8px; }
.frame-scopes span { padding: 2px 8px; border-radius: 4px; font-size: 0.8125rem; color: var(--on-navy-muted); font-weight: 500; }
.frame-scopes span.on { background: var(--blue); color: #fff; }
.frame-body { padding: 16px; display: grid; gap: 8px; background: var(--bg); }
.frame-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 12px; font-size: 0.9375rem;
}
.frame-row .who { font-weight: 500; }
.frame-row .what { color: var(--muted); font-size: 0.85rem; display: block; font-weight: 400; }
.frame-row .tag { width: 4px; align-self: stretch; border-radius: 2px; }
.frame figcaption, .frame-caption {
  padding: 12px 16px; font-size: 0.8125rem; color: var(--muted); background: var(--card); border-top: 1px solid var(--line);
}

.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 6px;
  font-size: 0.8125rem; font-weight: 500; white-space: nowrap;
}
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-bad { background: var(--bad-bg); color: var(--bad); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-hold { background: var(--hold-bg); color: var(--hold); }
.pill-blue { background: var(--blue-soft); color: var(--blue-strong); }
.pill-grey { background: #eef1f7; color: #475067; }
/* Who acts: one quiet tag, so status colours keep their meaning */
.pill-role { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.tag.bad { background: var(--bad); } .tag.hold { background: var(--hold); } .tag.warn { background: #b8860b; } .tag.blue { background: var(--blue); } .tag.grey { background: #98a2b3; }

/* ---------- Four books ---------- */
.book { position: relative; }
.book-icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--blue-soft); color: var(--blue-strong);
  display: grid; place-items: center; margin-bottom: 16px;
}
.book-icon svg { width: 20px; height: 20px; }
.joined {
  margin-top: 24px; padding: 20px 24px; border-radius: var(--radius); background: var(--navy); color: #fff;
  display: grid; gap: 4px;
}
.joined strong { font-size: 1.0625rem; font-weight: 600; }
.joined span { color: var(--on-navy-muted); }

/* ---------- Six-step strip ---------- */
.steps { list-style: none; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.step {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px;
}
.step-num {
  width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 500;
  display: grid; place-items: center; font-size: 0.8125rem; font-family: var(--mono);
}
.step h3 { font-size: 1rem; margin: 4px 0 0; }
.step p { font-size: 0.92rem; color: var(--muted); margin: 0; }
.step .role { margin-top: auto; padding-top: 8px; }
.handoff-note {
  margin-top: 24px; display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px;
  background: var(--blue-soft); border-radius: var(--radius); color: #1b2a55;
}
.handoff-note svg { flex: none; width: 20px; height: 20px; color: var(--blue-strong); margin-top: 2px; }
.handoff-note p { margin: 0; }

/* ---------- Proof points ---------- */
.proof-kicker { font-size: 0.875rem; font-weight: 500; color: var(--blue-strong); margin-bottom: 8px; display: block; }

/* ---------- Roles ---------- */
.role-card { display: flex; flex-direction: column; gap: 10px; }
.role-head { display: flex; align-items: center; gap: 12px; }
.role-avatar {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line);
}
.role-avatar svg { width: 20px; height: 20px; }
.role-card h3 { margin: 0; }
.role-start { font-size: 0.85rem; color: var(--muted); margin: 0; }
.role-list { list-style: none; display: grid; gap: 8px; }
.role-list li { position: relative; padding-inline-start: 20px; font-size: 0.95rem; }
.role-list li::before {
  content: ""; position: absolute; inset-inline-start: 4px; top: 0.66em; width: 6px; height: 6px; border-radius: 50%; background: #b9c4dc;
}
.role-cannot { margin-top: auto; padding: 12px; border-radius: 8px; background: var(--bg); font-size: 0.88rem; color: #475067; }
.role-cannot strong { color: var(--ink); }
.buyer-band {
  margin-top: 20px; display: grid; gap: 16px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow);
}
@media (min-width: 800px) { .buyer-band { grid-template-columns: auto 1fr auto; } }
.buyer-band p { margin: 0; }
.buyer-tabs { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Not-list ---------- */
.not-grid { display: grid; gap: 12px; }
@media (min-width: 720px) { .not-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.not-item {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
}
.not-item svg { flex: none; width: 18px; height: 18px; color: var(--muted); margin-top: 4px; }
.not-item p { margin: 0; }

/* ---------- Plans ---------- */
.plans { display: grid; gap: 20px; align-items: stretch; }
@media (min-width: 680px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.plan.featured { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.plan-badge {
  position: absolute; top: -12px; inset-inline-start: 20px; background: var(--blue); color: #fff;
  font-size: 0.8125rem; font-weight: 500; padding: 2px 8px; border-radius: 6px;
}
.plan h3 { font-size: 1.3rem; margin: 0; }
.plan-price { font-size: 1.5rem; font-weight: 600; margin: 0; }
.plan-price-sub { font-size: 0.88rem; color: var(--muted); margin: -8px 0 0; }
.plan-limits { display: flex; gap: 8px; }
.plan-limit { flex: 1; background: var(--bg); border-radius: 8px; padding: 12px; }
.plan-limit b { display: block; font-size: 1.375rem; line-height: 1.1; font-weight: 600; font-variant-numeric: tabular-nums; }
.plan-limit span { font-size: 0.82rem; color: var(--muted); }
.plan-desc { color: #3b4559; font-size: 0.95rem; margin: 0; }
.plan-list { list-style: none; display: grid; gap: 8px; font-size: 0.93rem; }
.plan-list li { display: flex; gap: 8px; align-items: flex-start; }
.plan-list svg { flex: none; width: 18px; height: 18px; color: var(--ok); margin-top: 3px; }
.plan .btn { margin-top: auto; width: 100%; }
.plan-mini { padding: 20px; }
.plan-mini h3 { font-size: 1.1rem; margin-bottom: 4px; }
.plan-mini p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.plan-mini.featured { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }

/* ---------- Comparison table ---------- */
.table-wrap {
  position: relative;
  overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.compare { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 0.95rem; }
.compare caption { text-align: start; padding: 16px 20px 0; font-weight: 600; }
.compare th, .compare td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.compare th[scope="row"] { text-align: start; font-weight: 500; }
.compare thead th { font-size: 0.95rem; background: var(--card); position: sticky; top: 0; }
.compare thead th.featured { color: var(--blue-strong); }
.compare td.featured, .compare th.featured { background: #f5f8ff; }
.compare tr.group th { background: var(--bg); text-align: start; font-size: 0.875rem; color: var(--muted); font-weight: 500; padding-block: 8px; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.yes { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); }
.yes svg { width: 14px; height: 14px; }
.no { color: #98a2b3; }
.limit { font-weight: 600; font-variant-numeric: tabular-nums; }
.table-note { margin-top: 12px; font-size: 0.92rem; color: var(--muted); }
.scroll-hint { display: none; font-size: 0.85rem; color: var(--muted); margin-bottom: 8px; }
@media (max-width: 719px) { .scroll-hint { display: block; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.25rem; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 16px; margin: 0; color: #3b4559; }

/* ---------- Product page ---------- */
.subnav {
  position: sticky; top: var(--header-h); z-index: 20; background: rgba(244, 246, 251, 0.96);
  backdrop-filter: blur(6px); border-bottom: 1px solid var(--line);
}
.subnav ul { list-style: none; display: flex; gap: 4px; overflow-x: auto; padding-block: 10px; scrollbar-width: thin; }
.subnav a {
  display: block; white-space: nowrap; padding: 6px 12px; border-radius: 8px; font-size: 0.9375rem; font-weight: 500;
  text-decoration: none; color: #3b4559; border: 1px solid transparent;
}
.subnav a:hover { background: var(--card); border-color: var(--line); color: var(--blue-strong); }
html.js .product-page { scroll-padding-top: 130px; }
.feature { padding-block: 56px; border-bottom: 1px solid var(--line); scroll-margin-top: 120px; }
.feature:last-of-type { border-bottom: 0; }
.feature-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .feature-grid { grid-template-columns: 1fr 1fr; gap: 48px; } .feature-grid.single { grid-template-columns: 1fr; } }
.feature-num { font-size: 0.8125rem; font-weight: 500; font-family: var(--mono); color: var(--blue-strong); margin-bottom: 8px; display: block; }
.check-list { list-style: none; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list svg { flex: none; width: 18px; height: 18px; color: var(--ok); margin-top: 4px; }
.check-list.two { gap: 10px 28px; }
@media (min-width: 720px) { .check-list.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.used-by { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 20px; font-size: 0.88rem; color: var(--muted); }
.callout {
  margin-top: 20px; padding: 16px; border-radius: 10px; background: var(--warn-bg); color: #5c4306;
  border-inline-start: 3px solid #b8860b; font-size: 0.95rem;
}
.callout p { margin: 0; }
.callout.info { background: var(--blue-soft); color: #1b2a55; border-inline-start-color: var(--blue); }

/* Floor plate diagram */
.diagram { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.diagram-body { padding: 20px; }
.diagram-title { font-weight: 600; font-size: 0.9375rem; margin-bottom: 16px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.plate { display: grid; gap: 8px; }
.floor { display: grid; grid-template-columns: 52px repeat(4, minmax(0, 1fr)); gap: 8px; align-items: stretch; }
.floor-label { font-size: 0.8125rem; font-weight: 500; font-family: var(--mono); color: var(--muted); display: grid; place-items: center; background: var(--bg); border-radius: 8px; }
.unit {
  border-radius: 8px; padding: 8px; min-height: 64px; display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid; font-size: 0.78rem; line-height: 1.3;
}
.unit b { font-size: 0.85rem; direction: ltr; unicode-bidi: isolate; text-align: start; }
.unit.av { background: var(--ok-bg); border-color: #b7e0c5; color: var(--ok); }
.unit.hd { background: var(--hold-bg); border-color: #dcc4f0; color: var(--hold); }
.unit.ct { background: #eef1f7; border-color: #d5dbe8; color: #475067; }
.unit .pub { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.unit .pub::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; font-size: 0.82rem; color: #475067; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; border: 1px solid; }
.legend .av { background: var(--ok-bg); border-color: #b7e0c5; }
.legend .hd { background: var(--hold-bg); border-color: #dcc4f0; }
.legend .ct { background: #eef1f7; border-color: #d5dbe8; }
.diagram figcaption { padding: 12px 20px; font-size: 0.82rem; color: var(--muted); border-top: 1px solid var(--line); }

/* Cheque state diagram */
.flow { display: grid; gap: 10px; }
.flow-main { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.flow-node {
  padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: 0.875rem; border: 1px solid var(--line); background: var(--bg);
}
.flow-node small { display: block; font-weight: 400; color: var(--muted); font-size: 0.75rem; }
.flow-arrow { color: #98a2b3; }
html[dir="rtl"] .flow-arrow { transform: scaleX(-1); display: inline-block; }
.flow-outcomes { display: grid; gap: 8px; margin-top: 4px; }
@media (min-width: 560px) { .flow-outcomes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.outcome { border-radius: 10px; padding: 10px 12px; font-size: 0.85rem; border: 1px solid; }
.outcome b { display: block; font-size: 0.92rem; margin-bottom: 2px; }
.outcome.ok { background: var(--ok-bg); border-color: #b7e0c5; color: #1f5a34; }
.outcome.bad { background: var(--bad-bg); border-color: #f4c3be; color: #8a1c13; }
.outcome.warn { background: var(--warn-bg); border-color: #f0dca6; color: #5c4306; }
.flow-loop {
  margin-top: 6px; display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: #3b4559;
  background: var(--bg); border-radius: 10px; padding: 10px 12px; border: 1px dashed #c4cde0;
}
.flow-loop svg { flex: none; width: 18px; height: 18px; color: var(--blue-strong); margin-top: 2px; }

/* ---------- Prototype page ---------- */
.try { counter-reset: try; display: grid; gap: 20px; list-style: none; }
@media (min-width: 900px) { .try { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.try-card { display: flex; flex-direction: column; gap: 10px; }
.try-num { font-size: 0.8125rem; font-weight: 500; font-family: var(--mono); color: var(--blue-strong); }
.try-card ol { padding-inline-start: 20px; display: grid; gap: 6px; font-size: 0.95rem; }
.facts { list-style: none; display: grid; gap: 12px; }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.facts li { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.facts svg { flex: none; width: 20px; height: 20px; color: var(--blue-strong); margin-top: 2px; }
.facts p { margin: 0; }
.url-chip {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 8px 16px; border-radius: 8px;
  background: var(--navy-2); color: var(--on-navy-muted); font-size: 0.9rem; border: 1px solid var(--top-line);
}
.url-chip code { color: #fff; font-family: var(--mono); font-size: 0.875rem; direction: ltr; unicode-bidi: isolate; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.form-card { padding: 28px; }
@media (max-width: 480px) { .form-card { padding: 20px; } }
.form-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .field.full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label { font-weight: 500; font-size: 0.9375rem; }
.req { color: var(--bad); margin-inline-start: 2px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1px solid #cfd6e6; background: #fff;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid rgba(47, 111, 235, 0.35); outline-offset: 0; border-color: var(--blue); }
.field [aria-invalid="true"] { border-color: var(--bad); background: #fffafa; }
.field input[type="tel"], .field input[type="email"] { direction: ltr; text-align: start; }
html[dir="rtl"] .field input[type="tel"], html[dir="rtl"] .field input[type="email"] { text-align: right; }
.hint { font-size: 0.85rem; color: var(--muted); margin: 0; }
.field-error { font-size: 0.88rem; color: var(--bad); font-weight: 600; margin: 0; display: flex; gap: 6px; align-items: flex-start; }
.field-error:empty { display: none; }
.field-error::before { content: "!"; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--bad); color: #fff; font-size: 0.75rem; display: grid; place-items: center; margin-top: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--blue); }
.consent label { font-weight: 500; }
.consent.invalid { border-color: var(--bad); background: #fffafa; }
.form-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form-summary { margin-bottom: 20px; padding: 12px 16px; border-radius: 10px; background: var(--bad-bg); color: var(--bad); font-weight: 500; }
.plan-note { margin: 0 0 20px; }
.aside-stack { display: grid; gap: 16px; }
.aside-card h2 { font-size: 1.1rem; }
.aside-card ol { padding-inline-start: 20px; display: grid; gap: 8px; }

.confirm { border-top: 3px solid var(--ok); }
.confirm h2 { display: flex; gap: 10px; align-items: center; font-size: 1.5rem; }
.confirm h2 svg { width: 28px; height: 28px; color: var(--ok); flex: none; }
.confirm-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 16px 0; padding: 16px; background: var(--bg); border-radius: 10px; font-size: 0.95rem; }
.confirm-dl dt { color: var(--muted); }
.confirm-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 480px) { .confirm-dl { grid-template-columns: 1fr; } .confirm-dl dd { margin-bottom: 6px; } }
.confirm .btn-row { margin-top: 20px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--bad); text-decoration: underline; cursor: pointer; font-size: 0.92rem; }
.status-msg { margin-top: 12px; font-size: 0.92rem; }

/* ---------- Privacy / prose ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin-top: 36px; }
.prose ul { padding-inline-start: 22px; display: grid; gap: 6px; margin-bottom: 12px; }
.prose code { background: #eef1f7; padding: 1px 6px; border-radius: 5px; font-size: 0.9em; direction: ltr; unicode-bidi: isolate; }
.prose .updated { color: var(--muted); font-size: 0.9rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #fff; border-radius: 16px; padding: 40px 32px; display: grid; gap: 20px; align-items: center; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; padding: 48px; } }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--on-navy-muted); margin: 0; max-width: 620px; }
.cta-band .btn-row { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy-muted); padding-block: 48px 24px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-cat { margin-top: 16px; max-width: 360px; }
.footer-head { color: #fff; font-weight: 500; font-size: 0.9375rem; margin-bottom: 12px; }
.footer-links { list-style: none; display: grid; gap: 8px; }
.footer-base { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--top-line); font-size: 0.85rem; }
.footer-base p { margin: 0; }

/* Signature: unit and cheque codes read like a register, in mono with tabular figures. */
.code, .record-id, .unit b, .floor-label, .browser-url, .url-chip code, .chan { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.frame, .record, .diagram, .compare, .plan-limits, .phone, .pp, .outbox, .frame-kpis { font-variant-numeric: tabular-nums; }

/* Brand and identifiers stay left-to-right inside Arabic text. */
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

@media print {
  .site-header, .site-footer, .subnav, .cta-band, .nav-toggle { display: none !important; }
  body { background: #fff; }
}

/* =========================================================
   Simplified product visuals. All are HTML so they translate and flip in RTL.
   ========================================================= */
.frame.light { box-shadow: var(--shadow-lift); }
.frame, .diagram, .record, .browser { position: relative; }
.visual { min-width: 0; }

/* Check marks drawn in CSS for long feature lists */
.check-list.css li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 4px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%232f7d4a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.feature-text .check-list { margin-top: 20px; }
@media (min-width: 960px) { .feature-grid.flip > .visual { order: -1; } }

/* KPI tiles inside a frame */
.frame-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 480px) { .frame-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.frame-kpi { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.frame-kpi b { display: block; font-size: 1.5rem; line-height: 1.1; }
.frame-kpi span { font-size: 0.78rem; color: var(--muted); }
.frame-kpi.bad b { color: var(--bad); } .frame-kpi.warn b { color: var(--warn); } .frame-kpi.hold b { color: var(--hold); } .frame-kpi.blue b { color: var(--blue-strong); }

/* One unit record */
.record { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lift); overflow: hidden; }
.record-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 16px 20px; background: var(--navy); color: #fff; }
.record-id { font-weight: 500; font-size: 1.25rem; font-family: var(--mono); letter-spacing: -0.01em; }
.record-sub { display: block; color: var(--on-navy-muted); font-size: 0.85rem; font-weight: 400; }
.record-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.record-row { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 16px 20px; border-top: 1px solid var(--line); }
.record-row:first-of-type { border-top: 0; }
.record-ico { width: 32px; height: 32px; border-radius: 8px; background: var(--bg); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; }
.record-ico svg { width: 16px; height: 16px; }
.record-row h3 { font-size: 0.8125rem; font-weight: 500; color: var(--muted); margin: 0 0 2px; }
.record-row p { margin: 0; font-size: 0.9375rem; font-weight: 500; }
.chq-dots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chq-dots i { width: 24px; height: 24px; border-radius: 4px; display: block; }
.c-ok { background: var(--ok); } .c-bad { background: var(--bad); } .c-blue { background: var(--blue); } .c-exp { background: #d5dbe8; }
.mini-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 0.78rem; color: #475067; }
.mini-legend span { display: inline-flex; align-items: center; gap: 5px; }
.mini-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.ledger-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: #e3e8f2; margin-top: 10px; }
.ledger-bar .paid { background: var(--ok); width: 38%; }
.ledger-bar .late { background: var(--bad); width: 9%; }
.l-rest { background: #e3e8f2; border: 1px solid #c9d1e1; }
.record figcaption { padding: 12px 20px; font-size: 0.82rem; color: var(--muted); border-top: 1px solid var(--line); }
.books-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1000px) { .books-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: 32px; } }

/* Buyer home phone */
.phone-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.phone { width: 290px; max-width: 100%; border-radius: 36px; background: #0c1020; padding: 10px; box-shadow: 0 16px 40px rgba(21, 26, 51, 0.18); }
.phone-screen { border-radius: 28px; overflow: hidden; background: var(--bg); display: flex; flex-direction: column; }
.phone-top { background: var(--navy); color: #fff; padding: 12px 16px 16px; }
.phone-notch { width: 84px; height: 6px; border-radius: 4px; background: #2c355c; margin: 0 auto 12px; }
.phone-brand { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--on-navy-muted); }
.phone-brand .pill { background: var(--navy-2); color: #fff; font-size: 0.7rem; }
.phone-hello { font-size: 1.125rem; font-weight: 600; margin-top: 8px; }
.phone-body { padding: 12px; display: grid; gap: 10px; }
.phone-callout { border-radius: 12px; padding: 10px 12px; font-size: 0.82rem; font-weight: 600; display: flex; gap: 8px; align-items: flex-start; }
.phone-callout::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; margin-top: 6px; }
.phone-callout.bad { background: var(--bad-bg); color: var(--bad); }
.phone-callout.warn { background: var(--warn-bg); color: var(--warn); }
.phone-unit { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: 0.85rem; }
.phone-unit strong { display: block; font-size: 0.95rem; }
.phone-unit .muted { font-size: 0.78rem; }
.phone-unit .ledger-bar { height: 8px; }
.phone-split { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 0.78rem; color: #475067; }
.phone-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); background: var(--card); }
.phone-tabs span { text-align: center; font-size: 0.68rem; padding: 10px 2px 12px; color: var(--muted); font-weight: 600; }
.phone-tabs span.on { color: var(--blue-strong); box-shadow: inset 0 2px 0 var(--blue); }
.phone-fig figcaption { font-size: 0.82rem; color: var(--muted); text-align: center; max-width: 320px; }
.buyer-feature { margin-top: 32px; display: grid; gap: 32px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 20px; }
@media (min-width: 860px) { .buyer-feature { grid-template-columns: auto minmax(0, 1fr); padding: 32px 40px; gap: 48px; } }
.buyer-feature h3 { font-size: 1.4rem; }
.buyer-feature .buyer-tabs { margin-top: 16px; }

/* Leads board */
.board { display: grid; gap: 12px; padding: 16px; background: var(--bg); }
@media (min-width: 560px) { .board { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.board-col h3 { font-size: 0.8125rem; font-weight: 500; color: var(--muted); margin: 0 0 8px; display: flex; justify-content: space-between; }
.lead-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 0.85rem; font-weight: 600; display: grid; gap: 6px; justify-items: start; margin-bottom: 8px; }
.lead-card .pill { font-size: 0.72rem; padding: 2px 8px; }
.hold-strip { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; margin: 0 16px 16px; padding: 12px; border-radius: 8px; background: var(--hold-bg); color: var(--hold); font-size: 0.875rem; font-weight: 500; }
.fake-btn { display: inline-block; padding: 4px 12px; border-radius: 6px; background: var(--card); border: 1px solid #dcc4f0; color: var(--hold); font-size: 0.8125rem; font-weight: 500; }
.fake-btn.blue { border-color: #c9dbff; color: var(--blue-strong); }

/* Contract plan preview and approval chain */
.pp { padding: 16px; background: var(--bg); display: grid; gap: 14px; }
.pp-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; font-weight: 600; }
.pp-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pp-tile { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 8px; font-size: 0.75rem; color: var(--muted); }
.pp-tile b { display: block; color: var(--ink); font-size: 0.95rem; }
.pp-tile.dep { background: var(--navy); border-color: var(--navy); color: var(--on-navy-muted); }
.pp-tile.dep b { color: #fff; }
.chain { list-style: none; display: grid; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; }
.chain li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; font-size: 0.86rem; border-top: 1px dashed var(--line); }
.chain li:first-child { border-top: 0; }
.chain .dot { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; font-weight: 600; }
.chain .dot.done { background: var(--ok); color: #fff; }
.chain .dot.wait { background: var(--card); border: 2px solid var(--blue); }
.chain .dot.next { background: #e3e8f2; }

/* Outbox */
.outbox-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--card); border-bottom: 1px solid var(--line); font-weight: 600; font-size: 0.92rem; }
.outbox { list-style: none; background: var(--bg); padding: 10px; display: grid; gap: 8px; }
.outbox li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 0.86rem; }
.outbox .kind { font-weight: 500; }
.outbox .meta { grid-column: 1; color: var(--muted); font-size: 0.8rem; }
.outbox .pill { grid-row: 1 / span 2; grid-column: 2; }
.chan { display: inline-block; padding: 2px 6px; border-radius: 4px; background: #eef1f7; color: #475067; font-size: 0.75rem; font-weight: 500; font-family: var(--mono); margin-inline-end: 8px; }

/* Permission matrix */
.matrix { width: 100%; border-collapse: collapse; font-size: 0.86rem; background: var(--card); }
.matrix th, .matrix td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: center; }
.matrix th[scope="row"] { text-align: start; font-weight: 500; }
.matrix thead th { font-size: 0.8rem; color: var(--muted); }
.matrix tr:last-child th, .matrix tr:last-child td { border-bottom: 0; }

/* Browser window with the prototype task walk */
.browser { margin: 0; background: var(--card); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-float); border: 1px solid var(--line); color: var(--ink); }
.browser-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #e9edf5; }
.browser-url { flex: 1; min-width: 0; background: var(--card); border-radius: 8px; padding: 4px 12px; font-size: 0.8125rem; font-family: var(--mono); color: #475067; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: left; }
.browser-app { background: var(--navy); color: #fff; padding: 12px 16px; display: flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 500; }
.walk { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 16px; background: var(--bg); }
@media (min-width: 560px) { .walk { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.walk li { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 12px; font-size: 0.8125rem; font-weight: 500; display: grid; gap: 8px; align-content: start; }
.walk .n { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-strong); font-size: 0.75rem; font-weight: 500; font-family: var(--mono); }
.walk li.done .n { background: var(--ok); color: #fff; }
.walk li.now { border-color: var(--blue); }
.walk li.now .n { background: var(--blue); color: #fff; }
.browser figcaption { padding: 12px 16px; font-size: 0.82rem; color: var(--muted); border-top: 1px solid var(--line); }

/* Floor plate on phones: keep unit codes on one line */
.unit b { white-space: nowrap; }
@media (max-width: 479px) {
  .diagram-body { padding: 14px; }
  .floor { grid-template-columns: 34px repeat(4, minmax(0, 1fr)); gap: 5px; }
  .plate { gap: 5px; }
  .unit { padding: 6px 5px; min-height: 58px; font-size: 0.66rem; }
  .unit b { font-size: 0.74rem; }
  .unit .pub::before { display: none; }
  .floor-label { font-size: 0.72rem; }
}

/* =========================================================
   Hero hook, announcement pill, scenario demo, status cards
   ========================================================= */
.announce {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px;
  color: var(--on-navy-muted); font-size: 0.9375rem; text-decoration: none;
  transition: color .15s var(--ease);
}
.announce:hover { color: #fff; text-decoration: underline; }
.announce .chev { transition: transform .15s var(--ease); }
.announce:hover .chev { transform: translateX(2px); }
html[dir="rtl"] .announce .chev { transform: scaleX(-1); display: inline-block; }
html[dir="rtl"] .announce:hover .chev { transform: scaleX(-1) translateX(2px); }
.hero-dark h1 .h1-line { display: block; }
.hero-dark h1 .h1-accent { color: var(--on-navy-muted); }

.scen-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 24px; }
.scen-tab {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 20px;
  border: 1px solid #cfd6e6; background: var(--card); color: var(--ink); font-weight: 500; cursor: pointer;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.scen-tab:hover { border-color: #98a2b3; }
.scen-tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.scen-tab .sdot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.sdot.bad { background: var(--bad); } .sdot.hold { background: var(--hold); } .sdot.warn { background: #b8860b; } .sdot.blue { background: var(--blue); }
.scen-panel {
  display: grid; gap: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-lift); padding: 20px;
}
@media (min-width: 900px) { .scen-panel { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); padding: 32px; gap: 32px; } }
.scen-event { background: var(--navy); color: #fff; border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.scen-kicker { font-size: 0.875rem; font-weight: 500; color: var(--on-navy-muted); }
.scen-event h3 { color: #fff; font-size: 1.375rem; margin: 0; }
.scen-event p { color: var(--on-navy-muted); margin: 0; }
.scen-event .pill { margin-top: auto; }
.scen-right h4 { font-size: 0.9375rem; margin: 0 0 12px; color: var(--muted); font-weight: 500; }
.scen-effects { list-style: none; display: grid; gap: 8px; }
.scen-effects li {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg);
}
.scen-n { width: 28px; height: 28px; border-radius: 50%; background: var(--card); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; font-weight: 500; font-size: 0.8125rem; font-family: var(--mono); }
.scen-where { font-weight: 500; display: block; }
.scen-what { display: block; color: var(--muted); font-size: 0.9rem; }
@media (max-width: 519px) {
  .scen-effects li { grid-template-columns: 28px minmax(0, 1fr); }
  .scen-effects li .pill { grid-column: 2; justify-self: start; }
}
.scen-note { grid-column: 1 / -1; margin: 0; padding: 12px 16px; border-radius: 8px; background: var(--blue-soft); color: #1b2a55; font-size: 0.95rem; }
html.js .scen-panel[hidden] { display: none; }

.status-grid { display: grid; gap: 20px; }
@media (min-width: 820px) { .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.status-card { display: flex; flex-direction: column; gap: 12px; }
.status-card.live { border-top: 3px solid var(--ok); }
.status-card.notyet { border-top: 3px solid #b8860b; }
.status-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.status-head h3 { margin: 0; }
.cross-list { list-style: none; display: grid; gap: 10px; }
.cross-list li { display: flex; gap: 10px; align-items: flex-start; }
.cross-list li::before {
  content: ""; flex: none; width: 16px; height: 16px; margin-top: 5px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 5l10 10M15 5L5 15' fill='none' stroke='%238a6508' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.footer-base p + p { margin-top: 6px; }

@media (min-width: 900px) { .scen-event { align-self: start; } }

/* =========================================================
   Theme toggle button
   ========================================================= */
.theme-btn {
  width: 36px; height: 36px; display: inline-grid; place-items: center; flex: none; cursor: pointer;
  border-radius: 8px; background: var(--navy-2); border: 1px solid var(--top-line); color: #fff; padding: 0;
}
.theme-btn:hover { border-color: var(--on-navy-muted); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .i-sun { display: none; }
html[data-theme="dark"] .theme-btn .i-sun { display: block; }
html[data-theme="dark"] .theme-btn .i-moon { display: none; }
html:not(.js) .theme-btn { display: none; }

/* =========================================================
   Dark theme. Tokens are the product's own dark tokens (prototype/css/app.css),
   except --blue-strong for link text and #2f6feb wherever white text sits on the accent.
   ========================================================= */
html[data-theme="dark"] {
  color-scheme: dark;
  --navy: #0c1020;
  --navy-2: #171d36;
  --blue: #6b93ff;
  --blue-strong: #8fb0ff;
  --blue-soft: #1c2b55;
  --ink: #e8ecf6;
  --muted: #9aa3bb;
  --line: #2a3354;
  --bg: #0f1324;
  --card: #171d33;
  --ok: #5dca82;
  --ok-bg: #163024;
  --warn: #e0b44a;
  --warn-bg: #2e2610;
  --bad: #f08a82;
  --bad-bg: #3a1c1a;
  --hold: #c9a0ea;
  --hold-bg: #2a1d3a;
  --top-line: #2c355c;
  --focus: #8fb0ff;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-lift: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-float: 0 16px 40px rgba(0, 0, 0, 0.5);
}
html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .brand-mark,
html[data-theme="dark"] .frame-scopes span.on,
html[data-theme="dark"] .plan-badge,
html[data-theme="dark"] .walk li.now .n,
html[data-theme="dark"] .step-num { background: #2f6feb; color: #fff; }
html[data-theme="dark"] .btn-primary:hover { background: #1f5bd6; }
html[data-theme="dark"] .scen-tab[aria-selected="true"] { background: #232a45; border-color: #4a5580; }
html[data-theme="dark"] .btn-outline,
html[data-theme="dark"] .scen-tab { border-color: #3a4470; }
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .field textarea { background: #12182c; border-color: #3a4470; }
html[data-theme="dark"] .field [aria-invalid="true"],
html[data-theme="dark"] .consent.invalid { background: #2a1517; }
html[data-theme="dark"] .field-error::before { color: #2a1517; }
html[data-theme="dark"] .pill-grey,
html[data-theme="dark"] .chan,
html[data-theme="dark"] .prose code { background: #232a45; color: #c3cadb; }
html[data-theme="dark"] .role-cannot,
html[data-theme="dark"] .plan-desc,
html[data-theme="dark"] .faq details p,
html[data-theme="dark"] .legend,
html[data-theme="dark"] .mini-legend,
html[data-theme="dark"] .phone-split,
html[data-theme="dark"] .flow-loop,
html[data-theme="dark"] .subnav a { color: #c3cadb; }
html[data-theme="dark"] .compare td.featured,
html[data-theme="dark"] .compare th.featured { background: #1a2240; }
html[data-theme="dark"] .callout { color: #f3d98a; }
html[data-theme="dark"] .callout.info,
html[data-theme="dark"] .handoff-note,
html[data-theme="dark"] .scen-note { color: #d6e2ff; }
html[data-theme="dark"] .unit.av, html[data-theme="dark"] .legend .av { border-color: #2c5a3c; }
html[data-theme="dark"] .unit.hd, html[data-theme="dark"] .legend .hd { border-color: #4a3566; }
html[data-theme="dark"] .unit.ct, html[data-theme="dark"] .legend .ct { background: #1e2540; border-color: #3a4470; color: #c3cadb; }
html[data-theme="dark"] .outcome.ok { border-color: #2c5a3c; color: #a6e6bb; }
html[data-theme="dark"] .outcome.bad { border-color: #5c2a27; color: #f6b3ad; }
html[data-theme="dark"] .outcome.warn { border-color: #5a4a1c; color: #f3d98a; }
html[data-theme="dark"] .ledger-bar,
html[data-theme="dark"] .chain .dot.next { background: #2a3354; }
html[data-theme="dark"] .l-rest { background: #2a3354; border-color: #3a4470; }
html[data-theme="dark"] .c-exp { background: #3a4470; }
html[data-theme="dark"] .fake-btn { border-color: #4a3566; }
html[data-theme="dark"] .fake-btn.blue { border-color: #2c3f7a; }
html[data-theme="dark"] .browser-bar { background: #1e2540; }
html[data-theme="dark"] .browser-url { background: var(--bg); color: #c3cadb; }
html[data-theme="dark"] .subnav { background: rgba(15, 19, 36, 0.94); }
html[data-theme="dark"] .phone { box-shadow: 0 0 0 1px var(--top-line), 0 16px 40px rgba(0, 0, 0, 0.5); }
/* Navy blocks need an edge against the dark page */
html[data-theme="dark"] .joined,
html[data-theme="dark"] .cta-band,
html[data-theme="dark"] .scen-event,
html[data-theme="dark"] .pp-tile.dep { box-shadow: inset 0 0 0 1px var(--top-line); }
html[data-theme="dark"] .site-footer { border-top: 1px solid var(--top-line); }
/* Brighter check and cross icons for dark cards */
html[data-theme="dark"] .check-list.css li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%235dca82' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
html[data-theme="dark"] .cross-list li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 5l10 10M15 5L5 15' fill='none' stroke='%23e0b44a' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}
