/* ==========================================================================
   Alterra website styles
   Brand source: Alterra Brand Guidelines v1.0 (colour, typography, pattern)
   Structure: 1 Fonts · 2 Tokens · 3 Base · 4 Layout · 5 Components · 6 Sections
   Logical properties are used throughout so the layout mirrors in RTL.
   ========================================================================== */

/* 1. Fonts (self-hosted from the brand package, SIL OFL) ------------------ */
@font-face {
  font-family: "Varela Round";
  src: url("../fonts/VarelaRound-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
/* Arabic, for the future RTL site */
@font-face {
  font-family: "Tajawal";
  src: url("../fonts/Tajawal-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Tajawal";
  src: url("../fonts/Tajawal-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

/* 2. Tokens ---------------------------------------------------------------- */
:root {
  /* Brand colour (guidelines p.9) */
  --ink: #0A0A0F;
  --slate: #6B6B76;
  --mist: #E4E4E7;
  --white: #FFFFFF;
  --real-1: #00E5FF;
  --real-2: #2979FF;
  --copy-1: #7C4DFF;
  --copy-2: #FF4DCB;

  /* Derived neutrals */
  --ink-2: #121219;
  --ink-3: #1B1B24;
  --canvas: #F4F4F6;
  --line: #E4E4E7;
  --line-strong: #D2D2D8;
  --text: var(--ink);
  --text-muted: #5E5E69;          /* Slate, nudged for AA on Canvas */
  --on-dark: #FFFFFF;
  --on-dark-muted: #A9A9B5;
  --on-dark-line: rgba(255, 255, 255, 0.12);

  /* Gradients: for the mark, key moments and backgrounds only */
  --grad-real: linear-gradient(135deg, var(--real-1), var(--real-2));
  --grad-copy: linear-gradient(135deg, var(--copy-1), var(--copy-2));
  --grad-spectrum: linear-gradient(90deg, var(--real-1), var(--real-2) 45%, var(--copy-1) 80%, var(--copy-2));

  /* Functional status colours (kept separate from brand colours) */
  --ok: #12A66E;
  --ok-text: #0B7A51;
  --warn: #E09B0B;
  --warn-text: #8F5E00;
  --risk: #E5484D;
  --risk-text: #B9262B;

  /* Type */
  --font-ui: "Varela Round", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "Tajawal", "Varela Round", system-ui, sans-serif;

  /* Space and shape */
  --gutter: 16px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --header-h: 68px;
  --focus: var(--real-2);

  /* Thin circle mesh, two colours (brand pattern) */
  --mesh: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' fill='none' stroke-width='1'><circle cx='0' cy='0' r='60' stroke='%232979FF'/><circle cx='0' cy='60' r='60' stroke='%232979FF'/><circle cx='0' cy='120' r='60' stroke='%232979FF'/><circle cx='60' cy='0' r='60' stroke='%237C4DFF'/><circle cx='60' cy='60' r='60' stroke='%237C4DFF'/><circle cx='60' cy='120' r='60' stroke='%237C4DFF'/><circle cx='120' cy='0' r='60' stroke='%232979FF'/><circle cx='120' cy='60' r='60' stroke='%232979FF'/><circle cx='120' cy='120' r='60' stroke='%232979FF'/></svg>");
}

@media (min-width: 640px) { :root { --gutter: 28px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; --header-h: 76px; } }

/* 3. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
:lang(ar) body, body:lang(ar) { font-family: var(--font-ar); line-height: 1.75; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-weight: 400; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
strong { font-weight: 400; color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(41, 121, 255, 0.2); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.section-dark :focus-visible, .hero :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { --focus: var(--real-1); }

[hidden] { display: none !important; }
.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: 12px; inset-block-start: -60px; z-index: 100;
  background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { inset-block-start: 12px; }

/* 4. Layout ---------------------------------------------------------------- */
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: 88px; }
@media (min-width: 1024px) { .section { padding-block: 128px; } }
.section-light { background: var(--white); }
.section-canvas { background: var(--canvas); }
.section-dark { background: var(--ink); color: var(--on-dark); overflow: hidden; isolation: isolate; }

.section-head { display: grid; gap: 20px; margin-block-end: 48px; }
@media (min-width: 1024px) {
  .section-head { margin-block-end: 72px; }
  .section-head.split { grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: end; }
}
.section-head.center { text-align: center; max-width: 820px; margin-inline: auto; justify-items: center; }

.mesh {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--mesh); background-size: 120px 120px;
  opacity: 0.22;
}
.mesh-hero {
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 75% 45%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse 70% 70% at 75% 45%, #000 0%, transparent 70%);
  opacity: 0.32;
}
.mesh-vision {
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 60%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 30%, #000 60%, transparent);
  opacity: 0.16;
}
.mesh-contact {
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 0% 100%, #000, transparent 70%);
          mask-image: radial-gradient(ellipse 60% 80% at 0% 100%, #000, transparent 70%);
  opacity: 0.22;
}

/* 5. Components ------------------------------------------------------------ */

/* Type */
.display {
  font-size: clamp(2.6rem, 1.55rem + 4.9vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.h2 {
  font-size: clamp(2rem, 1.35rem + 2.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.lede { font-size: clamp(1.06rem, 1rem + 0.3vw, 1.22rem); line-height: 1.6; color: var(--text-muted); max-width: 60ch; }
.lede-on-dark { color: var(--on-dark-muted); }
.lede strong { color: var(--text); }
.lede-on-dark strong { color: var(--on-dark); }
.eyebrow {
  display: inline-flex; align-items: flex-start; gap: 10px;
  font-size: 0.78rem; line-height: 1.5; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted);
}
.eyebrow .num { color: var(--text); }
.eyebrow-on-dark { color: var(--on-dark-muted); }
.eyebrow-on-dark .num { color: var(--on-dark); }
.eyebrow .dot { margin-block-start: 0.33em; width: 8px; height: 8px; border-radius: 50%; background: var(--grad-real); box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.12); }
:lang(ar) .eyebrow { letter-spacing: 0; text-transform: none; }

.footnote { margin-block-start: 28px; font-size: 0.85rem; color: var(--text-muted); max-width: 72ch; }
.footnote.center { margin-inline: auto; text-align: center; }
.footnote-on-dark { color: var(--on-dark-muted); }
.footnote a { color: inherit; text-underline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-size: 0.98rem; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn-sm { min-height: 40px; padding: 9px 18px; font-size: 0.92rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--white); color: var(--ink); }
.btn-primary:hover { background: var(--mist); }
.btn-ghost-dark { color: var(--on-dark); border-color: rgba(255, 255, 255, 0.28); background: transparent; }
.btn-ghost-dark:hover { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.04); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #24242E; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--ink); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.6; cursor: progress; }
.icon { width: 18px; height: 18px; flex: none; }
[dir="rtl"] .icon-arrow { transform: scaleX(-1); }
.text-link {
  display: inline-flex; align-items: center; gap: 6px; color: var(--ink);
  text-decoration: none; border-block-end: 1px solid var(--ink); padding-block-end: 2px;
}
.text-link:hover { border-color: var(--real-2); color: var(--real-2); }

.tag-illustrative {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; border: 1px dashed #B5B5BF; color: var(--text-muted); background: var(--white);
}

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Header ------------------------------------------------------------------- */
.site-header {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 50;
  height: var(--header-h); color: var(--on-dark);
  transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-block-end: 1px solid transparent;
}
.site-header.is-scrolled, .site-header.is-open {
  background: rgba(10, 10, 15, 0.92);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
          backdrop-filter: blur(14px) saturate(140%);
  border-block-end-color: var(--on-dark-line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; flex: none; padding: 6px 0; border-radius: 6px; }
.brand img { width: 128px; height: auto; }
@media (min-width: 1024px) { .brand img { width: 144px; } }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-cta { display: none; }
@media (min-width: 640px) { .header-cta { display: inline-flex; } }

.menu-toggle {
  width: 44px; height: 44px; display: inline-grid; place-items: center;
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 50%; cursor: pointer;
}
.menu-icon { position: relative; width: 18px; height: 10px; }
.menu-icon span { position: absolute; inset-inline: 0; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .25s ease, inset-block-start .25s ease; }
.menu-icon span:first-child { inset-block-start: 0; }
.menu-icon span:last-child { inset-block-start: 8.5px; }
.menu-toggle[aria-expanded="true"] .menu-icon span:first-child { inset-block-start: 4.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon span:last-child { inset-block-start: 4.25px; transform: rotate(-45deg); }

.primary-nav ul { display: flex; gap: 4px; }
.primary-nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 999px;
  color: #CFCFD8; text-decoration: none; font-size: 0.95rem; transition: color .2s ease, background-color .2s ease;
}
.primary-nav a:not(.btn):hover { color: var(--white); background: rgba(255, 255, 255, 0.06); }
.primary-nav a[aria-current="true"] { color: var(--white); }
.nav-mobile-extra { display: none; }

@media (max-width: 1023.98px) {
  .primary-nav {
    position: fixed; inset-inline: 0; inset-block-start: var(--header-h);
    height: calc(100dvh - var(--header-h));
    background: var(--ink); padding: 24px var(--gutter) 40px;
    display: none; flex-direction: column; justify-content: space-between; overflow-y: auto;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav li { border-block-end: 1px solid var(--on-dark-line); }
  .primary-nav a:not(.btn) { width: 100%; min-height: 60px; padding-inline: 0; font-size: 1.35rem; color: var(--white); border-radius: 0; }
  .primary-nav a:not(.btn):hover { background: transparent; color: var(--real-1); }
  .nav-mobile-extra { display: grid; gap: 16px; margin-block-start: 32px; }
}
@media (min-width: 1024px) {
  .menu-toggle { display: none; }
  .primary-nav { display: block; }
}

/* Hero --------------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink); color: var(--on-dark);
  padding-block: calc(var(--header-h) + 40px) 72px;
}
@media (min-width: 1024px) {
  .hero { padding-block: calc(var(--header-h) + 64px) 104px; min-height: min(100vh, 940px); display: flex; align-items: center; }
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.02fr 1fr; gap: 40px; } }
.hero-copy { display: grid; gap: 26px; max-width: 640px; }
.hero .display { margin-block-start: 4px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 6px; }
.hero-scope { margin-block-start: 18px; padding-block-start: 22px; border-block-start: 1px solid var(--on-dark-line); }
.hero-scope-label { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-muted); margin-block-end: 12px; }
.scope-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.scope-chips li {
  font-size: 0.9rem; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16); color: #E6E6EC; background: rgba(255, 255, 255, 0.03);
}

.hero-visual { width: 100%; max-width: 640px; margin-inline: auto; }
.layers { width: 100%; height: auto; overflow: visible; }
.layers text { font-family: var(--font-ui); }

/* One scene, three readings. Custom properties pass through <use>. */
#scene * { fill: none; stroke: var(--line-c); stroke-width: var(--lw); stroke-linecap: round; stroke-linejoin: round; }
#scene .solid { fill: var(--solid-c); }
#scene .spill { fill: var(--spill-c); stroke: var(--spill-line); }
.scene-real { --line-c: rgba(10, 10, 15, 0.42); --solid-c: rgba(10, 10, 15, 0.13); --lw: 1.6px; --spill-c: rgba(10, 10, 15, 0.16); --spill-line: transparent; }
.scene-copy { --line-c: rgba(255, 255, 255, 0.78); --solid-c: transparent; --lw: 1px; --spill-c: transparent; --spill-line: rgba(255, 255, 255, 0.78); }
.scene-window { --line-c: #FFFFFF; --solid-c: rgba(255, 255, 255, 0.07); --lw: 1.3px; --spill-c: rgba(255, 77, 203, 0.28); --spill-line: #FF4DCB; }

.detect .box { fill: none; stroke-width: 1.6; }
.detect .box.ok { stroke: #2BD99F; }
.detect .box.review { stroke: #FF4DCB; }
.detect .chip.ok { fill: #2BD99F; }
.detect .chip.review { fill: #FF4DCB; }
.detect text { font-size: 9.5px; fill: var(--ink); }
.scan { opacity: 0; }

.leaders path { fill: none; stroke: rgba(255, 255, 255, 0.45); stroke-width: 1; }
.leaders circle { fill: var(--white); }
.leaders text { font-size: 13px; fill: #D4D4DC; }

@media (prefers-reduced-motion: no-preference) {
  .js .detect { opacity: 0; animation: detect-in .7s ease forwards; }
  .js .detect-1 { animation-delay: .9s; }
  .js .detect-2 { animation-delay: 1.5s; }
  .js .detect-3 { animation-delay: 2.1s; }
  .js .scan { animation: scan 7s cubic-bezier(.45, 0, .55, 1) 2.6s infinite; }
}
@keyframes detect-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes scan {
  0% { opacity: 0; transform: translateY(70px); }
  12% { opacity: 1; }
  70% { opacity: 1; }
  85%, 100% { opacity: 0; transform: translateY(400px); }
}

/* F&B: challenges ---------------------------------------------------------- */
.sub-h { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); margin-block-end: 20px; }
.challenge-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-block-end: 72px; }
@media (min-width: 640px) { .challenge-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .challenge-grid { grid-template-columns: repeat(3, 1fr); } }
.challenge-grid li { background: var(--white); padding: 26px 26px 30px; display: grid; gap: 8px; align-content: start; }
.challenge-num { font-size: 0.8rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.challenge-grid h4 { font-weight: 400; font-size: 1.25rem; line-height: 1.3; }
.challenge-grid p { color: var(--text-muted); }

/* Approach ----------------------------------------------------------------- */
.approach { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 640px) { .approach { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1100px) { .approach { grid-template-columns: repeat(4, 1fr); } }
.approach-step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; display: grid; gap: 14px; align-content: start;
}
.approach-step h3 { font-size: 1.45rem; display: flex; align-items: center; gap: 12px; }
.approach-step p { color: var(--text-muted); }
.step-num {
  width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center;
  font-size: 0.8rem; border: 1px solid var(--line-strong); color: var(--text-muted);
}
.approach-glyph { height: 96px; display: flex; align-items: center; }
.approach-glyph svg { height: 80px; width: 120px; }
.g-real { fill: url(#hvReal); }
.g-copy { fill: url(#hvCopy); }
.g-copy-outline { fill: none; stroke: url(#hvCopy); stroke-width: 2; stroke-dasharray: 3 5; stroke-linecap: round; }
.g-window { fill: var(--white); }
.g-frame { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; }
.g-dot { fill: var(--ink); }
.g-tick { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .approach-glyph svg { transform: scaleX(-1); }

/* Product showcase --------------------------------------------------------- */
.product-sub { margin-block-start: 12px; font-size: 1.15rem; color: var(--text-muted); }
.showcase { display: grid; gap: 28px; align-items: start; }


.feature-list { display: grid; gap: 6px; }
@media (min-width: 640px) { .feature-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .feature-list { grid-template-columns: repeat(4, 1fr); gap: 8px 12px; } }
.feature {
  position: relative; display: grid; gap: 4px; text-align: start; cursor: pointer;
  padding: 14px 18px; padding-inline-start: 22px; border-radius: var(--radius);
  background: transparent; border: 1px solid transparent;
  transition: background-color .2s ease, border-color .2s ease;
}
.feature::before {
  content: ""; position: absolute; inset-inline-start: 8px; inset-block: 16px; width: 3px; border-radius: 3px;
  background: var(--line-strong); transition: background .2s ease;
}
.feature:hover { background: var(--canvas); }
.feature[aria-pressed="true"] { background: var(--canvas); border-color: var(--line); }
.feature[aria-pressed="true"]::before { background: linear-gradient(180deg, var(--real-1), var(--real-2), var(--copy-1)); }
.feature-title { font-size: 1.04rem; color: var(--ink); }
.feature-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }

.app-frame {
  position: relative; display: grid; border-radius: 22px; overflow: hidden;
  background: var(--ink); padding: 6px; box-shadow: 0 30px 80px -30px rgba(10, 10, 15, 0.45), 0 0 0 1px rgba(10,10,15,.06);
}
@media (min-width: 768px) { .app-frame { grid-template-columns: 184px 1fr; padding: 8px; } }
.app-side { display: none; color: var(--on-dark-muted); padding: 18px 12px; font-size: 0.86rem; }
@media (min-width: 768px) { .app-side { display: block; } }
.app-brand { display: flex; align-items: center; gap: 10px; color: var(--white); padding: 2px 8px 22px; font-size: 0.95rem; }
.app-brand img { width: 22px; height: 22px; }
.app-side li { padding: 9px 10px; border-radius: 9px; }
.app-side li.is-active { background: rgba(255, 255, 255, 0.08); color: var(--white); }

.app-main {
  container-type: inline-size; background: var(--canvas); border-radius: 16px;
  padding: 18px; display: grid; gap: 14px; min-width: 0;
}
@media (min-width: 640px) { .app-main { padding: 24px; } }
.app-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.app-title { font-size: 1.2rem; }
.app-meta { font-size: 0.85rem; color: var(--text-muted); }

.app-toast {
  display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px;
}
.toast-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--real-2); flex: none; box-shadow: 0 0 0 4px rgba(41, 121, 255, 0.15); }

.app-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@container (min-width: 560px) {
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "score trend" "locations alerts" "ask ask" "actions actions"; }
}
@container (min-width: 820px) {
  .app-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr) minmax(0, 1.1fr);
    grid-template-areas: "score trend trend" "score locations alerts" "ask ask actions";
  }
}
.panel-score { grid-area: score; }
.panel-trend { grid-area: trend; }
.panel-locations { grid-area: locations; }
.panel-alerts { grid-area: alerts; }
.panel-actions { grid-area: actions; }
.panel-ask { grid-area: ask; }
@container (max-width: 559.98px) { .app-grid > * { grid-area: auto; } }

.panel {
  background: var(--white); border: 1px solid #ECECF0; border-radius: var(--radius); padding: 16px;
  min-width: 0; transition: opacity .3s ease, box-shadow .3s ease, filter .3s ease;
}
.panel-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-block-end: 12px; }
.panel-label { font-size: 0.8rem; color: var(--text-muted); }
.panel-row .panel-label { margin: 0; }
.panel-score .panel-label { margin-block-end: 8px; }
.panel-hint { font-size: 0.75rem; color: #8A8A95; }

.app-frame.has-focus .panel, .app-frame.has-focus .app-toast { opacity: 0.38; filter: saturate(0.4); }
.app-frame.has-focus .is-focus { opacity: 1; filter: none; box-shadow: 0 0 0 2px var(--real-2), 0 14px 34px -12px rgba(41, 121, 255, 0.35); }

.score-wrap { position: relative; width: 140px; height: 140px; margin: 4px auto 16px; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: #ECECF1; stroke-width: 10; }
.ring-value { fill: none; stroke: url(#ringGrad); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.2,.7,.2,1); }
.score-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.score-num > span { font-size: 2.4rem; line-height: 1; letter-spacing: -0.02em; }
.score-delta { text-align: center; font-size: 0.78rem; color: var(--ok-text); margin-block: -8px 16px; }

.cat-bars { display: grid; gap: 10px; }
.cat-bars li { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; font-size: 0.82rem; }
.cat-bars .bar { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: #ECECF1; overflow: hidden; }
.cat-bars .bar span { display: block; height: 100%; border-radius: inherit; background: var(--grad-real); }
.cat-bars .val { color: var(--ink); font-variant-numeric: tabular-nums; }

.trend { width: 100%; height: 132px; overflow: visible; }
.trend .t-grid { stroke: #EEEEF2; stroke-width: 1; vector-effect: non-scaling-stroke; }
.trend .t-line { fill: none; stroke: var(--real-2); stroke-width: 2.25; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.trend .t-area { fill: url(#trendFill); }
.trend-axis { display: flex; justify-content: space-between; font-size: 0.7rem; color: #8A8A95; margin-block-start: 6px; }

.loc-list { display: grid; gap: 2px; }
.loc-list li {
  display: grid; grid-template-columns: minmax(0, 1fr) 54px 34px 44px; align-items: center; gap: 10px;
  font-size: 0.84rem; padding-block: 7px; border-block-end: 1px solid #F0F0F3;
}
.loc-list li:last-child { border: 0; }
.loc-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc-bar { height: 5px; border-radius: 5px; background: #ECECF1; overflow: hidden; }
.loc-bar span { display: block; height: 100%; background: var(--grad-real); border-radius: inherit; }
.loc-score { text-align: end; font-variant-numeric: tabular-nums; }
.delta { font-size: 0.75rem; text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.delta.up { color: var(--ok-text); }
.delta.down { color: var(--risk-text); }

.gap-list { display: grid; gap: 10px; }
.gap-list li { border: 1px solid #ECECF0; border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; align-content: start; background: #FBFBFC; }
.gap-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.72rem; color: var(--text-muted); }
.gap-cat { padding: 2px 8px; border-radius: 999px; background: #EEF3FF; color: #1D4FC4; }
.gap-title { font-size: 0.88rem; line-height: 1.4; }
.gap-action { font-size: 0.8rem; color: var(--text-muted); line-height: 1.45; padding-inline-start: 10px; border-inline-start: 2px solid var(--copy-1); }
.gap-action b { display: block; font-weight: 400; color: var(--ink); font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; margin-block-end: 2px; }

.report-chip { font-size: 0.72rem; padding: 3px 9px; border-radius: 999px; background: var(--canvas); border: 1px solid var(--line); white-space: nowrap; }
.alert-list { display: grid; gap: 8px; }
.alert-list li { display: grid; grid-template-columns: 10px 1fr auto; gap: 4px 10px; align-items: baseline; font-size: 0.84rem; padding-block: 6px; border-block-end: 1px solid #F0F0F3; }
.alert-list li:last-child { border: 0; }
.alert-dot { width: 8px; height: 8px; border-radius: 50%; align-self: center; }
.alert-dot.high { background: var(--risk); }
.alert-dot.medium { background: var(--warn); }
.alert-dot.low { background: #9A9AA6; }
.alert-loc { grid-column: 2; font-size: 0.75rem; color: var(--text-muted); }
.alert-time { font-size: 0.75rem; color: #8A8A95; font-variant-numeric: tabular-nums; }
.noscript { color: var(--on-dark-muted); padding: 24px; }

/* Assessment scope --------------------------------------------------------- */
.scope-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 640px) { .scope-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .scope-grid { grid-template-columns: repeat(4, 1fr); } }
.scope-item { background: var(--white); padding: 32px 28px 36px; display: grid; gap: 12px; align-content: start; }
.scope-item h3 { font-size: 1.35rem; }
.scope-item p { color: var(--text-muted); }
.scope-icon { width: 44px; height: 44px; margin-block-end: 18px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.caveat {
  margin-block-start: 24px; display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px; border-radius: var(--radius); background: var(--white); border: 1px dashed var(--line-strong);
  color: var(--text-muted); font-size: 0.95rem;
}
.caveat svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; margin-block-start: 2px; }

/* Outcomes ----------------------------------------------------------------- */
.outcomes { display: grid; gap: 48px; }
@media (min-width: 1024px) { .outcomes { grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: start; } }
.outcomes-head { display: grid; gap: 20px; align-content: start; justify-items: start; }
@media (min-width: 1024px) { .outcomes-head { position: sticky; inset-block-start: calc(var(--header-h) + 40px); } }
.outcome-list { border-block-start: 1px solid var(--line); }
.outcome { display: grid; gap: 6px 28px; padding-block: 22px; border-block-end: 1px solid var(--line); }
@media (min-width: 640px) { .outcome { grid-template-columns: 0.9fr 1.1fr; align-items: baseline; } }
.outcome dt { font-size: 1.18rem; display: flex; gap: 12px; align-items: baseline; }
.outcome dt::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad-real); flex: none; transform: translateY(-2px); }
.outcome dd { color: var(--text-muted); }

/* Multi-location matrix ---------------------------------------------------- */
.matrix-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; }
@media (min-width: 768px) { .matrix-card { padding: 28px; } }
.matrix-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-block-end: 18px; }
.sort-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sort-label { font-size: 0.82rem; color: var(--text-muted); margin-inline-end: 4px; }
.sort-btn {
  min-height: 40px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white);
  font-size: 0.88rem; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.sort-btn:hover { border-color: var(--line-strong); }
.sort-btn[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.matrix-scroll { overflow-x: auto; border-radius: 12px; }
.matrix { width: 100%; min-width: 620px; border-collapse: separate; border-spacing: 4px; font-size: 0.92rem; }
.matrix th { font-weight: 400; font-size: 0.78rem; color: var(--text-muted); text-align: center; padding: 6px 8px; white-space: nowrap; }
.matrix th:first-child, .matrix td:first-child { text-align: start; }
.matrix th[aria-sort] { color: var(--ink); }
.matrix th[aria-sort]::after { content: " ↑"; }
.matrix td { padding: 12px 10px; border-radius: 10px; text-align: center; font-variant-numeric: tabular-nums; transition: background-color .3s ease; }
.matrix tbody th { font-weight: 400; text-align: start; color: var(--ink); font-size: 0.92rem; white-space: nowrap; padding: 12px 10px 12px 4px; }
.matrix td.band-a, .sw.band-a { background: rgba(41, 121, 255, 0.16); }
.matrix td.band-b, .sw.band-b { background: rgba(124, 77, 255, 0.09); }
.matrix td.band-c, .sw.band-c { background: rgba(255, 77, 203, 0.2); }
.matrix td.is-sorted { box-shadow: inset 0 0 0 1.5px rgba(10, 10, 15, 0.55); }
.matrix .overall { font-size: 1rem; }
.matrix-foot { display: grid; gap: 18px; margin-block-start: 18px; padding-block-start: 18px; border-block-start: 1px solid var(--line); }
@media (min-width: 900px) { .matrix-foot { grid-template-columns: auto 1fr; gap: 40px; align-items: start; } }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.82rem; color: var(--text-muted); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.insights { display: grid; gap: 8px; }
@media (min-width: 900px) { .insights { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.insights li { font-size: 0.88rem; color: var(--text-muted); padding-inline-start: 12px; border-inline-start: 2px solid var(--real-2); }
.insights b { display: block; font-weight: 400; color: var(--ink); font-size: 0.95rem; }

/* Steps -------------------------------------------------------------------- */
.steps { display: grid; gap: 28px; }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.step { position: relative; padding-block-start: 26px; display: grid; gap: 10px; align-content: start; }
.step::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 2px; border-radius: 2px; background: var(--line); }
.step::after { content: ""; position: absolute; inset-block-start: 0; inset-inline-start: 0; width: 48px; height: 2px; border-radius: 2px; background: var(--grad-spectrum); }
.step-index { font-size: 0.85rem; color: var(--text-muted); }
.step h3 { font-size: 1.4rem; }
.step p { color: var(--text-muted); }

/* Vision / roadmap --------------------------------------------------------- */
.roadmap { display: grid; gap: 20px; }
@media (min-width: 1024px) { .roadmap { grid-template-columns: 0.85fr 1.15fr; gap: 28px; align-items: stretch; } }
.road-now {
  position: relative; border-radius: var(--radius-lg); padding: 30px; overflow: hidden; display: grid; gap: 14px; align-content: start;
  background: linear-gradient(var(--ink-3), var(--ink-3)) padding-box, var(--grad-spectrum) border-box;
  border: 1px solid transparent;
}
.road-now h3 { font-size: 2rem; }
.road-now p { color: var(--on-dark-muted); max-width: 44ch; }
.road-features { display: grid; gap: 10px; margin-block-start: 10px; padding-block-start: 18px; border-block-start: 1px solid var(--on-dark-line); }
.road-features li { display: flex; gap: 10px; align-items: baseline; color: #E2E2E8; font-size: 0.95rem; }
.road-features li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad-real); flex: none; transform: translateY(-2px); }
.road-mark { width: 64px; height: auto; margin-block-start: 24px; align-self: end; }
.road-tag {
  display: inline-flex; align-self: start; justify-self: start; width: fit-content;
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.4); color: #D4D4DC;
}
.road-tag.road-tag-now { border: 0; background: var(--grad-real); color: var(--ink); }
.road-tag-light { border-color: #A5A5B0; color: var(--text-muted); }
:lang(ar) .road-tag { letter-spacing: 0; }
.road-next { border-radius: var(--radius-lg); border: 1px dashed rgba(255, 255, 255, 0.2); padding: 24px; }
@media (min-width: 768px) { .road-next { padding: 30px; } }
.road-heading { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-muted); margin-block-end: 8px; }
.road-list { display: grid; }
@media (min-width: 640px) { .road-list { grid-template-columns: 1fr 1fr; column-gap: 28px; } }
.road-list li { display: grid; gap: 8px; padding-block: 20px; border-block-end: 1px solid var(--on-dark-line); align-content: start; }
@media (min-width: 640px) { .road-list li:last-child { border: 0; } .road-list li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.road-list h3 { font-size: 1.12rem; line-height: 1.35; }
.road-list p { font-size: 0.92rem; color: var(--on-dark-muted); }

/* About -------------------------------------------------------------------- */
.about { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .about { grid-template-columns: 1fr 1fr; gap: 72px; } }
.about-mark svg { width: 100%; max-width: 460px; margin-inline: auto; }
.about-leaders path { fill: none; stroke: #9C9CA8; stroke-width: 1; }
.about-leaders circle { fill: var(--ink); }
.about-leaders text { font-family: var(--font-ui); font-size: 13px; fill: var(--ink); }
.about-copy { display: grid; gap: 20px; }
.about-copy > p:not(.eyebrow):not(.lede) { color: var(--text-muted); max-width: 60ch; }
.about-copy em { font-style: normal; color: var(--ink); }

/* Contact ------------------------------------------------------------------ */
.contact-grid { display: grid; gap: 44px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; } }
.contact-copy { display: grid; gap: 22px; align-content: start; }
.expect { display: grid; gap: 12px; margin-block-start: 6px; }
.expect li { display: flex; gap: 12px; align-items: baseline; color: #E2E2E8; }
.expect li::before { content: ""; width: 14px; height: 8px; flex: none; border-inline-start: 1.5px solid var(--real-1); border-block-end: 1.5px solid var(--real-1); transform: translateY(-3px) rotate(-45deg); }
[dir="rtl"] .expect li::before { transform: translateY(-3px) rotate(45deg); }

.demo-form {
  background: var(--white); color: var(--ink); border-radius: var(--radius-lg);
  padding: 24px; display: grid; gap: 18px;
}
@media (min-width: 640px) { .demo-form { padding: 36px; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-size: 0.92rem; }
.req { color: var(--risk-text); }
.opt { color: var(--text-muted); font-size: 0.85rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--white); font-size: 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 112px; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #A9A9B4; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--real-2); box-shadow: 0 0 0 3px rgba(41, 121, 255, 0.22); }
.field [aria-invalid="true"] { border-color: var(--risk-text); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.2); }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-inline-end: 40px; cursor: pointer; }
.select-wrap::after {
  content: ""; position: absolute; inset-inline-end: 16px; inset-block-start: 50%; width: 8px; height: 8px;
  border-inline-end: 1.5px solid var(--ink); border-block-end: 1.5px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.field-error { font-size: 0.85rem; color: var(--risk-text); min-height: 0; }
.field-error:empty { display: none; }
.field-meta { display: flex; justify-content: space-between; gap: 12px; }
.char-count { font-size: 0.8rem; color: var(--text-muted); margin-inline-start: auto; font-variant-numeric: tabular-nums; }
.char-count.is-over { color: var(--risk-text); }
.demo-form .btn-primary { background: var(--ink); color: var(--white); margin-block-start: 4px; }
.demo-form .btn-primary:hover { background: #24242E; }
.form-note { font-size: 0.82rem; color: var(--text-muted); }
.form-summary { padding: 12px 14px; border-radius: var(--radius-sm); background: #FDEDEE; color: var(--risk-text); font-size: 0.92rem; }
.form-summary:focus { outline: 2px solid var(--risk-text); outline-offset: 2px; }
.form-status:empty { display: none; }
.form-status { padding: 14px 16px; border-radius: var(--radius-sm); font-size: 0.94rem; background: var(--canvas); border-inline-start: 3px solid var(--real-2); }
.form-status.is-success { border-color: var(--ok); background: #EAF7F1; }
.form-status.is-error { border-color: var(--risk); background: #FDEDEE; }
.form-fallback { display: grid; gap: 10px; justify-items: start; }
.form-fallback textarea { width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--canvas); font-size: 0.88rem; line-height: 1.5; resize: vertical; }

/* Footer ------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--on-dark); border-block-start: 1px solid var(--on-dark-line); padding-block: 64px 32px; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 48px; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 48px; } }
.footer-brand { display: grid; gap: 14px; justify-items: start; }
.footer-brand img { width: 148px; height: auto; }
.footer-line { font-size: 1.3rem; margin-block-start: 10px; }
.footer-desc { color: var(--on-dark-muted); max-width: 56ch; font-size: 0.95rem; }
.footer-head { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-muted); margin-block-end: 10px; }
.footer-nav ul, .footer-contact ul { display: grid; gap: 2px; }
.footer-contact a { display: inline-flex; min-height: 40px; align-items: center; color: #E2E2E8; text-decoration: none; }
.footer-contact a:hover { color: var(--real-1); }
.footer-nav a { display: inline-flex; min-height: 40px; align-items: center; color: #E2E2E8; text-decoration: none; }
.footer-nav a:hover { color: var(--real-1); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-block-start: 48px; padding-block-start: 24px; border-block-start: 1px solid var(--on-dark-line); font-size: 0.85rem; color: var(--on-dark-muted); }

/* Motion preferences ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .js .reveal { opacity: 1; transform: none; }
  .scan { display: none; }
}

/* Small-screen refinements -------------------------------------------------- */
.matrix thead th:first-child, .matrix tbody th { position: sticky; inset-inline-start: 0; z-index: 1; background: var(--white); }
@media (max-width: 639.98px) {
  .leaders text { font-size: 20px; }
}
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.copy-feedback { font-size: 0.85rem; color: var(--ok-text); }

/* ==========================================================================
   v2 components
   ========================================================================== */

/* Header language link */
.lang-link {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 12px; border-radius: 999px;
  color: #CFCFD8; text-decoration: none; font-size: 0.95rem; border: 1px solid transparent;
}
.lang-link:hover { color: var(--white); border-color: rgba(255, 255, 255, 0.22); }
.lang-link[lang="ar"] { font-family: var(--font-ar); font-size: 1.02rem; }
.lang-link[lang="en"] { font-family: var(--font-ui); }
.header-actions > .lang-link { display: none; }
@media (min-width: 1024px) { .header-actions > .lang-link { display: inline-flex; } }
.lang-link-mobile { justify-self: start; font-size: 1.15rem; padding-inline: 0; color: var(--white); }

/* Hero additions */
.eyebrow-sep { margin-inline: 0.5em; opacity: 0.5; }
.hero-privacy { display: flex; gap: 10px; align-items: flex-start; margin-block-start: 18px; font-size: 0.9rem; color: var(--on-dark-muted); }
.hero-privacy svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--real-1); stroke-width: 1.5; margin-block-start: 2px; }
.hero-privacy a { color: var(--white); text-underline-offset: 3px; margin-inline-start: 4px; }
.layers, .v-scene, .about-mark svg { direction: ltr; }

/* Feature badge */
.feature-badge {
  display: inline-block; margin-inline-start: 6px; padding: 1px 7px; border-radius: 999px; font-size: 0.68rem;
  letter-spacing: 0.06em; vertical-align: 2px; color: var(--white); background: var(--grad-copy);
}

/* Ask Alterra chat */
.ask-label { display: inline-flex; align-items: center; gap: 8px; color: var(--ink) !important; }
.ask-label img { width: 16px; height: 16px; }
.chat { display: grid; gap: 10px; }
.bubble { max-width: 92%; padding: 10px 14px; border-radius: 14px; font-size: 0.86rem; line-height: 1.5; }
.bubble-user { justify-self: end; background: var(--ink); color: var(--white); border-end-end-radius: 4px; }
.bubble-ai { justify-self: start; background: var(--canvas); border: 1px solid #ECECF0; border-end-start-radius: 4px; min-height: 40px; }
.ai-answer p + p { margin-block-start: 6px; }
.ai-answer b { font-weight: 400; color: var(--ink); background: linear-gradient(transparent 62%, rgba(124, 77, 255, 0.18) 0); }
.ai-refs { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 8px; }
.ai-refs span { font-size: 0.72rem; padding: 2px 8px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--text-muted); }
.typing { display: none; gap: 4px; padding-block: 6px; }
.chat.is-typing .typing { display: inline-flex; }
.chat.is-typing .ai-answer { display: none; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: #A3A3AE; animation: blink 1s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.chat-input {
  margin-block-start: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 6px 6px 16px; padding-inline-start: 16px;
  font-size: 0.84rem; color: #8A8A95; background: var(--white);
}
.chat-send { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--white); background: var(--ink); flex: none; }
.chat-send svg { width: 16px; height: 16px; }
[dir="rtl"] .chat-send svg { transform: scaleX(-1); }

/* Snapshot thumbnail in alerts */
.alert-snap { grid-column: 2 / -1; display: flex; align-items: center; gap: 8px; margin-block-start: 4px; font-size: 0.72rem; color: var(--text-muted); }
.alert-snap svg { width: 56px; height: 36px; border-radius: 6px; flex: none; }
.app-frame.has-focus .panel-alerts.is-focus-snap { opacity: 1; filter: none; box-shadow: 0 0 0 2px var(--real-2), 0 14px 34px -12px rgba(41, 121, 255, 0.35); }

/* More standards */
.more-standards { margin-block-start: 28px; }
.more-label { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-block-end: 14px; }
.standard-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.standard-chips li { font-size: 0.92rem; padding: 7px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); }
.standard-chips .chip-own { border-style: dashed; border-color: #A5A5B0; color: var(--text-muted); background: transparent; }

/* Privacy flow */
.privacy-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .privacy-grid { grid-template-columns: 0.9fr 1.1fr; gap: 72px; } }
.privacy-copy { display: grid; gap: 22px; justify-items: start; }
.text-link-dark { color: var(--white); border-color: rgba(255, 255, 255, 0.5); }
.text-link-dark:hover { color: var(--real-1); border-color: var(--real-1); }
.flow { display: grid; gap: 14px; }
@media (min-width: 768px) { .flow { grid-template-columns: 1fr 1fr 1.6fr; align-items: center; gap: 0; } }
.flow-node {
  position: relative; display: grid; gap: 4px; padding: 18px; border-radius: var(--radius);
  border: 1px solid var(--on-dark-line); background: rgba(255, 255, 255, 0.03);
}
.flow-mid { background: linear-gradient(var(--ink-3), var(--ink-3)) padding-box, var(--grad-spectrum) border-box; border-color: transparent; }
.flow-k { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-muted); }
.flow-t { font-size: 1.02rem; }
@media (min-width: 768px) {
  .flow-in { margin-inline-end: 28px; }
  .flow-mid { margin-inline-end: 28px; }
  .flow-in::after, .flow-mid::after {
    content: ""; position: absolute; inset-inline-start: 100%; inset-block-start: 50%; width: 28px; height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,.15), rgba(255,255,255,.6));
  }
  [dir="rtl"] .flow-in::after, [dir="rtl"] .flow-mid::after { background: linear-gradient(270deg, rgba(255,255,255,.15), rgba(255,255,255,.6)); }
}
.flow-out { display: grid; gap: 8px; }
.out { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--on-dark-line); font-size: 0.9rem; color: var(--on-dark-muted); }
.out b { display: block; font-weight: 400; color: var(--white); font-size: 0.98rem; }
.out-ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.out-ic svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.out-no .out-ic { background: rgba(229, 72, 77, 0.16); color: #FF8A8E; }
.out-yes .out-ic { background: rgba(43, 217, 159, 0.14); color: #2BD99F; }
.out-time .out-ic { background: rgba(0, 229, 255, 0.12); color: var(--real-1); }
.out-home .out-ic { background: rgba(124, 77, 255, 0.18); color: #B49BFF; }

/* Industries */
.industry-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .industry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .industry-grid { grid-template-columns: repeat(3, 1fr); } .ind-live { grid-column: span 2; } }
.ind { border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); padding: 24px; display: grid; gap: 10px; align-content: start; }
.ind h3 { font-size: 1.35rem; }
.ind p { color: var(--text-muted); }
.ind-live {
  border: 1px solid transparent; padding: 30px;
  background: linear-gradient(var(--canvas), var(--canvas)) padding-box, var(--grad-spectrum) border-box;
}
@media (min-width: 640px) { .ind-live { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .ind-live { grid-column: span 2; grid-row: span 1; } }
.ind-live h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.ind-live .text-link { justify-self: start; margin-block-start: 4px; }
.status {
  display: inline-flex; align-items: center; gap: 8px; justify-self: start; font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px dashed #A5A5B0; color: var(--text-muted);
}
.status-live { border: 0; background: var(--ink); color: var(--white); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: #2BD99F; box-shadow: 0 0 0 0 rgba(43, 217, 159, .6); }
@media (prefers-reduced-motion: no-preference) { .pulse { animation: pulse 2s infinite; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(43,217,159,.55); } 70% { box-shadow: 0 0 0 7px rgba(43,217,159,0); } 100% { box-shadow: 0 0 0 0 rgba(43,217,159,0); } }

/* Violation examples */
.flags-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-block-end: 20px; }
.flags-head .sub-h { margin: 0; }
.violations { display: grid; gap: 18px; }
@media (min-width: 900px) { .violations { grid-template-columns: repeat(3, 1fr); } }
.violation { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.v-scene { width: 100%; height: auto; display: block; background: var(--ink); }
.v-bg { fill: #121219; }
.v-lines * { fill: none; stroke: rgba(255, 255, 255, 0.82); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.v-lines .solid { fill: rgba(255, 255, 255, 0.06); }
.v-lines .faint { stroke: rgba(255, 255, 255, 0.12); }
.v-lines .faint-solid { fill: rgba(255, 255, 255, 0.05); stroke: rgba(255, 255, 255, 0.25); }
.v-lines .mask { fill: rgba(255, 77, 203, 0.25); stroke: #FF4DCB; }
.v-lines .phone { fill: rgba(0, 229, 255, 0.55); stroke: var(--real-1); }
.v-scene .detect text { font-size: 9px; }
.v-hud rect { fill: #121219; fill-opacity: .9; }
.v-hud text { font-family: var(--font-ui); font-size: 9px; fill: rgba(255, 255, 255, 0.55); }
.v-body { padding: 20px 22px 24px; display: grid; gap: 8px; align-content: start; }
.v-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 0.8rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.v-cat { padding: 2px 9px; border-radius: 999px; background: #FDEAF7; color: #A3207F; }
.v-timer { color: #A3207F; font-variant-numeric: tabular-nums; }
.violation h4 { font-weight: 400; font-size: 1.15rem; line-height: 1.35; }
.violation p { color: var(--text-muted); font-size: 0.94rem; }
.v-snap { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem !important; }
.v-snap::before { content: ""; width: 12px; height: 9px; border: 1.5px solid currentColor; border-radius: 2px; }
.v-action { padding-inline-start: 10px; border-inline-start: 2px solid var(--copy-1); margin-block-start: 4px; }
.v-action b { display: block; font-weight: 400; color: var(--ink); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; margin-block-end: 2px; }

/* Contact direct */
.contact-direct { display: grid; gap: 4px; padding-block-start: 18px; border-block-start: 1px solid var(--on-dark-line); }
.contact-direct-label { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-muted); margin-block-end: 4px; }
.contact-direct a { color: var(--white); text-decoration: none; font-size: 1.1rem; }
.contact-direct a:hover { color: var(--real-1); }
.form-note a { color: inherit; text-underline-offset: 2px; }
.contact-direct p { text-align: start; }

/* Footer additions */
.footer-social { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 8px; }
.footer-social a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18); color: #E2E2E8; text-decoration: none; font-size: 0.88rem;
}
.footer-social a:hover { border-color: var(--real-1); color: var(--real-1); }
.footer-contact a[dir="ltr"] { unicode-bidi: isolate; }

/* Legal pages */
.legal-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--on-dark); padding-block: calc(var(--header-h) + 56px) 56px; }
.legal-hero .container { display: grid; gap: 14px; }
.legal-meta { color: var(--on-dark-muted); font-size: 0.92rem; }
.legal-section { padding-block: 56px 96px; }
.legal-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .legal-grid { grid-template-columns: 260px minmax(0, 1fr); gap: 72px; align-items: start; } }
.legal-toc { font-size: 0.9rem; }
.legal-toc .footer-head { color: var(--text-muted); }
.legal-toc ol { display: grid; gap: 2px; border-inline-start: 1px solid var(--line); }
.legal-toc ol a { display: block; padding: 6px 14px; color: var(--text-muted); text-decoration: none; margin-inline-start: -1px; border-inline-start: 2px solid transparent; }
.legal-toc ol a:hover { color: var(--ink); border-color: var(--real-2); }
.legal-other { display: grid; gap: 6px; margin-block-start: 24px; padding-block-start: 18px; border-block-start: 1px solid var(--line); }
.legal-other a { color: var(--ink); text-underline-offset: 3px; }
@media (min-width: 1024px) { .legal-toc { position: sticky; inset-block-start: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; } }
@media (max-width: 1023.98px) { .legal-toc ol { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
.legal-body { max-width: 74ch; min-width: 0; display: grid; gap: 36px; }
.legal-intro { font-size: 1.12rem; color: var(--text-muted); }
.legal-body section { display: grid; gap: 12px; scroll-margin-top: calc(var(--header-h) + 16px); }
.legal-body h2 { font-size: 1.4rem; line-height: 1.3; }
.legal-body p, .legal-body li { color: #3E3E47; }
.legal-body ul { padding-inline-start: 1.2em; display: grid; gap: 8px; margin: 0; }
.legal-body li::marker { color: var(--real-2); }
.legal-body a { color: var(--real-2); text-underline-offset: 2px; }
.legal-body b { font-weight: 400; color: var(--ink); background: linear-gradient(transparent 65%, rgba(0, 229, 255, 0.22) 0); }
.legal-table-wrap { overflow-x: auto; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 560px; }
.legal-table th, .legal-table td { text-align: start; padding: 10px 12px; border-block-end: 1px solid var(--line); vertical-align: top; }
.legal-table th { font-weight: 400; color: var(--text-muted); font-size: 0.8rem; }
mark.ph { background: #FFF3C4; color: #6B5100; padding: 1px 4px; border-radius: 4px; }
.draft-note { padding: 14px 18px; border-radius: var(--radius); background: #FFF8DB; border: 1px solid #F1DB8A; color: #5E4A00; font-size: 0.92rem; }
.draft-note b { font-weight: 400; color: #3D3000; }

/* Arabic typography --------------------------------------------------------- */
:lang(ar) .display { font-family: var(--font-ar); font-weight: 500; line-height: 1.25; letter-spacing: 0; font-size: clamp(2.4rem, 1.4rem + 4.2vw, 4.9rem); }
:lang(ar) .h2, :lang(ar) h3, :lang(ar) h4, :lang(ar) .app-title, :lang(ar) .footer-line { font-family: var(--font-ar); font-weight: 500; letter-spacing: 0; line-height: 1.35; }
:lang(ar) .lede { line-height: 1.8; }
:lang(ar) .eyebrow, :lang(ar) .hero-scope-label, :lang(ar) .more-label, :lang(ar) .status, :lang(ar) .flow-k,
:lang(ar) .footer-head, :lang(ar) .road-heading, :lang(ar) .tag-illustrative, :lang(ar) .contact-direct-label,
:lang(ar) .v-action b, :lang(ar) .gap-action b, :lang(ar) .feature-badge { letter-spacing: 0; text-transform: none; }
:lang(ar) .eyebrow, :lang(ar) .hero-scope-label, :lang(ar) .more-label { font-size: 0.88rem; }
:lang(ar) [lang="en"] { font-family: var(--font-ui); }
:lang(ar) .layers text, :lang(ar) .v-scene text, :lang(ar) .about-mark text { font-family: var(--font-ar); }
[dir="rtl"] .mesh-hero {
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 25% 45%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse 70% 70% at 25% 45%, #000 0%, transparent 70%);
}
[dir="rtl"] .mesh-contact {
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 100% 100%, #000, transparent 70%);
          mask-image: radial-gradient(ellipse 60% 80% at 100% 100%, #000, transparent 70%);
}
[dir="rtl"] .matrix th[aria-sort]::after { content: " ↑"; }
.chat.is-typing .bubble-ai-2, .chat.is-typing [data-demo="chat-q2"] { display: none; }

/* ==========================================================================
   v3: CTAs, pricing, savings calculator, WhatsApp
   ========================================================================== */
.cta-note { font-size: 0.92rem; color: var(--on-dark-muted); margin-block-start: -6px; }

/* WhatsApp floating button */
.wa-float {
  position: fixed; z-index: 40;
  inset-block-end: calc(16px + env(safe-area-inset-bottom, 0px));
  inset-inline-end: calc(16px + env(safe-area-inset-right, 0px));
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 18px 10px 14px; padding-inline: 14px 18px;
  border-radius: 999px; background: #1FAF54; color: #FFFFFF; text-decoration: none; font-size: 0.95rem;
  box-shadow: 0 10px 30px -8px rgba(10, 10, 15, 0.45);
  transition: transform .2s ease, background-color .2s ease;
}
.wa-float:hover { background: #17964A; transform: translateY(-2px); }
.wa-float svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.wa-float .wa-handset { fill: currentColor; stroke: none; }
@media (max-width: 639.98px) { .wa-float span { display: none; } .wa-float { padding: 12px; } }
body.menu-open .wa-float { display: none; }

/* Pricing */
.offer-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; text-align: center;
  max-width: 900px; margin: 0 auto 28px; padding: 16px 22px; border-radius: var(--radius-lg);
  background: linear-gradient(var(--ink), var(--ink)) padding-box, var(--grad-spectrum) border-box; border: 1px solid transparent;
  color: var(--on-dark-muted);
}
.offer-banner b { font-weight: 400; color: var(--white); }
.offer-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: var(--grad-copy); color: var(--white);
}
.offer-badge .pulse { background: var(--white); }
.billing-toggle { display: flex; justify-content: center; gap: 4px; margin: 0 auto 28px; padding: 4px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); width: fit-content; }
.bill-btn { min-height: 42px; padding: 8px 18px; border-radius: 999px; border: 0; background: transparent; cursor: pointer; font-size: 0.94rem; color: var(--text-muted); display: inline-flex; align-items: center; gap: 8px; }
.bill-btn[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.bill-save { font-size: 0.72rem; padding: 2px 8px; border-radius: 999px; background: rgba(43, 217, 159, 0.18); color: var(--ok-text); }
.bill-btn[aria-pressed="true"] .bill-save { background: rgba(43, 217, 159, 0.25); color: #7FF0C6; }
.plans { display: grid; gap: 18px; max-width: 980px; margin-inline: auto; }
@media (min-width: 900px) { .plans { grid-template-columns: 1.45fr 1fr; align-items: start; } }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: grid; gap: 18px; }
@media (min-width: 640px) { .plan { padding: 34px; } }
.plan-main { border: 1px solid transparent; background: linear-gradient(var(--white), var(--white)) padding-box, var(--grad-spectrum) border-box; box-shadow: 0 30px 60px -36px rgba(41, 121, 255, 0.45); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan h3 { font-size: 1.6rem; }
.plan-tag { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: #FDEAF7; color: #A3207F; }
.plan-for { color: var(--text-muted); }
.price-block { display: grid; gap: 4px; padding-block: 6px 4px; }
.price-was { display: flex; align-items: center; gap: 10px; color: #8A8A95; font-size: 0.95rem; }
.save-pill { font-size: 0.78rem; padding: 3px 10px; border-radius: 999px; background: rgba(43, 217, 159, 0.16); color: var(--ok-text); }
.price { display: flex; align-items: baseline; gap: 8px; }
.price-num { font-size: clamp(3rem, 2.4rem + 2.4vw, 4.2rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price-cur { font-size: 1.1rem; color: var(--text-muted); }
.price-custom { font-size: 2rem; }
.price-unit { color: var(--text-muted); font-size: 0.92rem; }
.price-then { font-size: 0.88rem; color: var(--text-muted); }
.price-lines { display: grid; border-block-start: 1px solid var(--line); }
.price-lines > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 12px; border-block-end: 1px solid var(--line); }
.price-lines dt { font-size: 0.95rem; }
.price-lines dt small { display: block; color: #8A8A95; font-size: 0.78rem; }
.price-lines dd { text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-lines b { font-weight: 400; }
.strike-sm { color: #8A8A95; text-decoration: line-through; margin-inline-end: 6px; font-size: 0.9rem; }
.free { color: var(--ok-text); }
.plan-features { display: grid; gap: 10px; }
@media (min-width: 640px) { .plan-main .plan-features { grid-template-columns: 1fr 1fr; gap: 10px 20px; } }
.plan-features li { display: flex; gap: 10px; align-items: baseline; font-size: 0.95rem; }
.plan-features li::before { content: ""; width: 12px; height: 7px; flex: none; border-inline-start: 1.6px solid var(--real-2); border-block-end: 1.6px solid var(--real-2); transform: translateY(-3px) rotate(-45deg); }
[dir="rtl"] .plan-features li::before { transform: translateY(-3px) rotate(45deg); }
.plan-cta { display: grid; gap: 12px; justify-items: center; margin-block-start: 4px; }
.pricing-note { max-width: 820px; }
.pricing-note a { color: var(--ink); }

/* Savings calculator */
.calc { display: grid; gap: 20px; }
@media (min-width: 1024px) { .calc { grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: start; } }
.calc-inputs { display: grid; gap: 4px; background: var(--canvas); border-radius: var(--radius-lg); padding: 20px; }
@media (min-width: 640px) { .calc-inputs { padding: 28px; grid-template-columns: 1fr 1fr; gap: 6px 28px; } }
.calc-field { display: grid; grid-template-columns: 1fr 112px; gap: 6px 12px; align-items: center; padding-block: 12px; border-block-end: 1px solid var(--line); }
.calc-field label { font-size: 0.9rem; line-height: 1.35; }
.calc-field label small { color: #8A8A95; }
.calc-field input[type="number"] {
  width: 100%; min-height: 40px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--white);
  font-variant-numeric: tabular-nums; text-align: end; direction: ltr;
}
.calc-field input[type="number"]:focus { outline: none; border-color: var(--real-2); box-shadow: 0 0 0 3px rgba(41, 121, 255, 0.22); }
.calc-field input[type="range"] { grid-column: 1 / -1; width: 100%; accent-color: var(--real-2); height: 24px; margin: 0; }
.calc-reset { justify-self: start; margin-block-start: 12px; background: none; border: 0; padding: 8px 0; color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 0.88rem; }
@media (min-width: 640px) { .calc-reset { grid-column: 1 / -1; } }
.calc-result {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-lg); padding: 26px; display: grid; gap: 18px;
  background: var(--ink); color: var(--on-dark);
}
@media (min-width: 1024px) { .calc-result { position: sticky; inset-block-start: calc(var(--header-h) + 24px); padding: 32px; } }
.calc-k { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-muted); }
.calc-total { display: flex; align-items: baseline; gap: 10px; }
.calc-total [data-out="total"] { font-size: clamp(2.6rem, 2rem + 2.4vw, 3.6rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; background: linear-gradient(90deg, var(--real-1), #9DB8FF 60%, #E6A8FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.calc-total .price-cur { color: var(--on-dark-muted); }
.calc-bars { display: grid; gap: 10px; }
.calc-bars li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 0.88rem; color: #D9D9E0; }
.calc-bars .v { font-variant-numeric: tabular-nums; color: var(--white); }
.calc-bars .bar { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.calc-bars .bar span { display: block; height: 100%; border-radius: inherit; background: var(--grad-spectrum); transition: width .4s ease; }
.calc-cost { display: grid; gap: 6px; padding-block: 14px; border-block: 1px solid var(--on-dark-line); font-size: 0.88rem; }
.calc-cost > div { display: flex; justify-content: space-between; gap: 12px; }
.calc-cost dt { color: var(--on-dark-muted); }
.calc-cost dd { font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-roi { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.roi-num { font-size: 2.2rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.roi-unit { font-size: 1rem; color: var(--on-dark-muted); }
.calc-disclaimer { font-size: 0.8rem; color: var(--on-dark-muted); }
.calc-result .btn-primary { background: var(--white); color: var(--ink); }
.assumptions { margin-block-start: 20px; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px; }
.assumptions summary { cursor: pointer; padding-block: 14px; font-size: 0.98rem; }
.assumptions ul { display: grid; gap: 12px; padding-block: 4px 18px; }
.assumptions li { font-size: 0.9rem; color: var(--text-muted); }
.assumptions li b { display: block; font-weight: 400; color: var(--ink); }
.assumptions a { color: var(--real-2); }

/* Contact intent */
.intent { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.intent legend { font-size: 0.92rem; padding: 0; margin-block-end: 8px; }
.intent-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.intent-opt { position: relative; cursor: pointer; }
.intent-opt input { position: absolute; opacity: 0; inset-inline-start: 14px; inset-block-start: 14px; }
.intent-opt span { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong); transition: border-color .2s ease, background-color .2s ease; }
.intent-opt b { font-weight: 400; }
.intent-opt small { color: var(--text-muted); font-size: 0.8rem; }
.intent-opt input:checked + span { border-color: var(--ink); background: var(--canvas); box-shadow: inset 0 0 0 1px var(--ink); }
.intent-opt input:focus-visible + span { outline: 2px solid var(--real-2); outline-offset: 2px; }

/* Arabic tweaks for v3 */
:lang(ar) .offer-badge, :lang(ar) .plan-tag, :lang(ar) .calc-k { letter-spacing: 0; text-transform: none; }

/* Hero headline: two phrases, each kept on one line where space allows */
.hero .display { font-size: clamp(2.5rem, 1.3rem + 3.7vw, 4.25rem); }
@media (min-width: 1024px) { .hero-copy { max-width: 700px; } .hero .display .hl { display: inline-block; } }
:lang(ar) .hero .display { font-size: clamp(2.4rem, 1.4rem + 3.8vw, 4.4rem); }
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.2fr 0.9fr; }
  .hero .display { font-size: clamp(2.8rem, 1rem + 3.4vw, 3.75rem); }
  .hero .display .hl { white-space: nowrap; }
}
