/* ==========================================================================
   AGENCY90 — styles.css  (v1.4)
   Brand system: Sky Blue + restrained Gold + Cream + Charcoal.
   Shared by index.html, privacy-policy.html and terms.html.
   Logical properties throughout, so AR (RTL) and EN (LTR) share one stylesheet.
   Direction-dependent motion reads --flow (+1 LTR, −1 RTL).
   ========================================================================== */

:root{
  /* Brand colors */
  --a90-sky: #78C7E8;
  --a90-sky-light: #EAF6FB;
  --a90-sky-hover: #5FB3DE;
  --a90-sky-pressed: #4AA0CC;
  --a90-sky-ink: #287397;      /* text-safe blue for small text */
  --a90-gold: #C8A45D;         /* punctuation only */
  --a90-cream: #F7F5F0;
  --a90-charcoal: #20252A;
  --a90-charcoal-muted: #454C53;
  --a90-gray: #647079;
  --a90-white: #FFFFFF;
  --a90-border: #E4E0D6;

  --shadow-sm: 0 2px 8px rgba(32, 37, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(32, 37, 42, 0.08);
  --shadow-lg: 0 16px 48px rgba(32, 37, 42, 0.12);
  --shadow-sky: 0 8px 24px rgba(120, 199, 232, 0.30);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;

  --font-ar-head: 'IBM Plex Sans Arabic', 'Poppins', sans-serif;
  --font-ar-body: 'Noto Sans Arabic', 'Inter', sans-serif;
  --font-latin-head: 'Poppins', 'IBM Plex Sans Arabic', sans-serif;
  --font-latin-body: 'Inter', 'Noto Sans Arabic', sans-serif;

  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --flow: 1;
  --gutter: 20px;
}
:root[dir="rtl"]{ --flow: -1; }
@media (min-width: 900px){ :root{ --gutter: 64px; } }

/* ---------- Reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body{
  margin: 0; background: var(--a90-cream); color: var(--a90-charcoal);
  font-family: var(--font-ar-body); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul, ol{ margin: 0; padding: 0; list-style: none; }
button{ font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3{ font-family: var(--font-ar-head); font-weight: 700; margin: 0 0 var(--space-3); color: var(--a90-charcoal); }
p{ margin: 0 0 var(--space-3); color: var(--a90-charcoal-muted); }
main:focus{ outline: none; }

/* English: Latin faces, Latin tracking. Arabic is never letter-spaced (it breaks joining). */
html[lang="en"] body{ font-family: var(--font-latin-body); }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3{ font-family: var(--font-latin-head); font-weight: 600; letter-spacing: -.015em; }

.sprite{ position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only{
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link{
  position: absolute; inset-inline-start: var(--space-3); top: 0; transform: translateY(-150%);
  background: var(--a90-charcoal); color: var(--a90-white);
  padding: 10px 16px; z-index: 1000; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.skip-link:focus{ transform: translateY(0); }

:focus-visible{ outline: 2px solid var(--a90-sky-ink); outline-offset: 3px; border-radius: 4px; }

.container{ max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }

.section{ padding: 72px 0; }
@media (min-width: 900px){ .section{ padding: 120px 0; } }
.section-tint{ background: var(--a90-sky-light); }

.eyebrow{
  font-family: var(--font-latin-head); font-weight: 600; font-size: 14px; letter-spacing: 0;
  color: var(--a90-sky-ink); margin: 0 0 var(--space-2);
}
html[lang="en"] .eyebrow, .eyebrow[lang="en"]{ letter-spacing: .06em; text-transform: uppercase; font-size: 13px; }
.section-title{ font-size: clamp(30px, 8vw, 40px); line-height: 1.3; }
html[lang="en"] .section-title{ line-height: 1.15; }
.brand-word{ font-family: var(--font-latin-head); font-weight: 700; font-size: 21px; letter-spacing: .03em; color: var(--a90-charcoal); }
.brand-accent{ color: var(--a90-sky); }

/* Highlighter underline used sparingly (hero title, principle rule) */
.hx-hl{
  background: linear-gradient(transparent 64%, rgba(120,199,232,.45) 64%, rgba(120,199,232,.45) 92%, transparent 92%);
  padding-inline: .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 12px 26px; border-radius: var(--radius-pill); font-weight: 600; font-size: 15px; line-height: 1.3;
  transition: transform 180ms var(--ease-soft), box-shadow 180ms var(--ease-soft), background 180ms var(--ease-soft);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; text-align: center;
}
.btn-primary{ background: var(--a90-sky); color: var(--a90-charcoal); }
.btn-primary:hover{ background: var(--a90-sky-hover); box-shadow: var(--shadow-sky); transform: translateY(-2px); }
.btn-primary:active{ background: var(--a90-sky-pressed); transform: translateY(0); }
.btn-lg{ min-height: 54px; padding: 14px 32px; font-size: 16px; }
.btn-sm{ min-height: 44px; padding: 8px 20px; font-size: 14.5px; }
.btn-ghost{
  background: none; padding: 12px 6px; color: var(--a90-sky-ink); font-weight: 600;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px;
  transition: text-decoration-color 180ms var(--ease-soft), color 180ms var(--ease-soft);
}
.btn-ghost:hover{ text-decoration-color: currentColor; color: var(--a90-charcoal); }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top: 0; z-index: 100; background: rgba(247,245,240,.92);
  -webkit-backdrop-filter: saturate(180%) blur(10px); backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--a90-border);
}
.navbar{ display: flex; align-items: center; gap: 24px; max-width: 1200px; margin: 0 auto; padding: 8px var(--gutter); min-height: 62px; }
.brand{ display: inline-flex; align-items: center; min-height: 44px; }
.nav-links{ display: none; gap: 28px; font-weight: 500; font-size: 15px; }
.nav-links a{ position: relative; padding: 10px 2px; }
.nav-links a::after{
  content: ""; position: absolute; inset-inline-start: 0; bottom: 4px; height: 2px; width: 0;
  background: var(--a90-sky); transition: width 200ms var(--ease-soft);
}
.nav-links a:hover::after{ width: 100%; }
.nav-end{ display: flex; align-items: center; gap: 12px; margin-inline-start: auto; }
.nav-cta{ display: none; }
@media (min-width: 720px){ .nav-cta{ display: inline-flex; } }
@media (min-width: 900px){ .nav-links{ display: flex; } }

/* Language switch: two real buttons + a sliding thumb (direction-aware) */
.lang-sw{
  position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; isolation: isolate;
  padding: 3px; border-radius: var(--radius-pill); background: var(--a90-white); border: 1px solid var(--a90-border);
  --i: 0;
}
.lang-sw button{
  position: relative; z-index: 1; min-width: 54px; min-height: 44px; padding: 0 12px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 700; line-height: 1; color: var(--a90-gray); letter-spacing: 0;
  transition: color 200ms var(--ease-soft); -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.lang-sw button[aria-pressed="true"]{ color: var(--a90-charcoal); }
.lang-sw button:focus-visible{ outline-offset: -2px; }
.lang-thumb{
  position: absolute; z-index: 0; inset-block: 3px; inset-inline-start: 3px; width: calc((100% - 6px) / 2);
  border-radius: var(--radius-pill); background: var(--a90-sky-light); border: 1px solid rgba(120,199,232,.75);
  transform: translateX(calc(var(--i) * 100% * var(--flow))); transition: transform 320ms var(--ease-soft);
}
.lang-sw.is-instant .lang-thumb, .lang-sw.is-instant button{ transition: none; }

/* ---------- Hero shell (demo styles live in hero.css) ---------- */
.hero{ padding: 20px 0 40px; overflow: hidden; }
@media (min-width: 900px){ .hero{ padding: 48px 0 72px; } }
.hero-title{ line-height: 1.3; margin-bottom: 12px; }
.hero-lead{ margin-bottom: 0; }

/* ---------- Principle: Problem → Behavior → Evidence → Metric → Intervention ---------- */
.principle{ padding-top: 48px; }
@media (min-width: 900px){ .principle{ padding-top: 88px; } }
.pr-grid{ display: grid; gap: 36px; }
@media (min-width: 900px){ .pr-grid{ grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 96px; align-items: start; } .pr-head{ position: static; } }
.pr-sub{ font-size: 18px; line-height: 1.8; max-width: 440px; margin: 0; }

.pr-chain{ position: relative; counter-reset: pr; }
.pr-step{
  position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 18px; row-gap: 2px;
  padding-bottom: 28px;
}
.pr-step::before{                                   /* node: hollow = hypothesis */
  content: ""; grid-row: 1 / span 2; width: 14px; height: 14px; margin-top: 7px; justify-self: center; border-radius: 50%;
  border: 2px solid var(--a90-sky-ink); background: var(--a90-cream); z-index: 1;
  transition: background 400ms var(--ease-soft), border-color 400ms var(--ease-soft);
}
.pr-step::after{                                    /* dashed connector = still a hypothesis */
  content: ""; position: absolute; inset-inline-start: 13px; top: 24px; bottom: 0; width: 0;
  border-inline-start: 2px dashed rgba(40,115,151,.42);
}
.pr-step:last-child{ padding-bottom: 0; }
.pr-step:last-child::after{ display: none; }
.pr-step--last::before{ background: var(--a90-sky); border-color: var(--a90-sky); box-shadow: 0 0 0 5px rgba(120,199,232,.28); } /* solid = intervention */
.pr-k{ grid-column: 2; font-size: 14px; font-weight: 700; color: var(--a90-sky-ink); line-height: 1.6; }
.pr-t{ grid-column: 2; font-family: var(--font-ar-head); font-weight: 600; font-size: clamp(19px, 5vw, 22px); line-height: 1.55; color: var(--a90-charcoal); text-wrap: balance; }
html[lang="en"] .pr-t{ font-family: var(--font-latin-head); font-weight: 500; font-size: clamp(18px, 4.8vw, 21px); line-height: 1.45; }

.pr-foot{ margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--a90-border); }
@media (min-width: 900px){ .pr-foot{ margin-top: 88px; padding-top: 56px; } }
.pr-rule{ font-family: var(--font-ar-head); font-weight: 700; font-size: clamp(25px, 6.6vw, 42px); line-height: 1.45; color: var(--a90-charcoal); max-width: 22em; margin-bottom: 20px; text-wrap: balance; }
html[lang="en"] .pr-rule{ font-family: var(--font-latin-head); font-weight: 600; line-height: 1.25; letter-spacing: -.02em; }
.pr-method{ font-size: 17px; margin-bottom: 6px; }
.pr-method strong{ color: var(--a90-charcoal); font-weight: 700; }
.pr-loop{ margin: 0; font-size: 14.5px; color: var(--a90-gray); }

/* ---------- Proof: one interactive prototype ---------- */
.pf-grid{ display: grid; gap: 36px; }
@media (min-width: 960px){ .pf-grid{ grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 88px; align-items: center; } }
.pf-tag{
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 4px 14px; min-height: 30px; border-radius: var(--radius-pill);
  background: var(--a90-white); border: 1px dashed rgba(40,115,151,.55); color: var(--a90-sky-ink); font-size: 13.5px; font-weight: 700; line-height: 1.4;
}
.pf-dl{ margin: 24px 0 0; display: grid; gap: 18px; max-width: 520px; }
.pf-dl div{ display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: baseline; }
html[lang="en"] .pf-dl div{ grid-template-columns: 92px minmax(0, 1fr); }
.pf-dl dt{ font-size: 14px; font-weight: 700; color: var(--a90-sky-ink); }
.pf-dl dd{ margin: 0; font-size: 16px; line-height: 1.75; color: var(--a90-charcoal); }
@media (max-width: 639px){ .pf-dl div, html[lang="en"] .pf-dl div{ grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.pf-demo{ width: 100%; max-width: 480px; margin-inline: auto; }

/* Gift-order prototype (a slice of a fictional checkout; nothing is stored or sent) */
.gp{
  position: relative; background: #FBFAF7; border: 1px solid var(--a90-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; color: var(--a90-charcoal);
}
.gp-top{ display: flex; align-items: center; justify-content: space-between; height: 46px; padding-inline: 16px; background: var(--a90-white); border-bottom: 1px solid var(--a90-border); }
.gp-step{ font-size: 13.5px; font-weight: 600; color: var(--a90-gray); }
.gp-body{ padding: 16px 16px 4px; display: flex; flex-direction: column; gap: 14px; }
.gp-order{ display: flex; align-items: center; gap: 12px; padding-inline: 2px; }
.gp-thumb{ flex: none; width: 40px; height: 44px; border-radius: 8px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(32,37,42,.06); }
.gp-thumb svg{ width: 100%; height: 100%; }
.gp-order-t{ flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.gp-order-t b{ font-size: 14.5px; }
.gp-order-t small{ font-size: 13px; color: var(--a90-charcoal-muted); }
.gp-price{ font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }

.gp-ic{ width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.gp-switch{
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 8px 14px; text-align: start;
  background: var(--a90-white); border: 1px solid var(--a90-border); border-radius: 14px;
  transition: border-color 220ms var(--ease-soft), box-shadow 220ms var(--ease-soft); -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.gp-switch > .gp-ic{ color: var(--a90-sky-ink); }
.gp-sw-t{ flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.gp-sw-t b{ font-size: 15px; }
.gp-sw-t small{ font-size: 13px; color: var(--a90-charcoal-muted); }
.gp-track{ flex: none; position: relative; width: 48px; height: 28px; border-radius: 14px; background: #D9D5C9; transition: background 240ms var(--ease-soft); }
.gp-track i{ position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--a90-white); box-shadow: 0 1px 3px rgba(32,37,42,.3); transition: transform 280ms var(--ease-soft); }
.gp-switch[aria-checked="true"]{ border-color: var(--a90-sky-ink); box-shadow: inset 0 0 0 1px var(--a90-sky-ink); }
.gp-switch[aria-checked="true"] .gp-track{ background: var(--a90-sky-ink); }
.gp-switch[aria-checked="true"] .gp-track i{ transform: translateX(calc(20px * var(--flow))); }
.gp-switch:active{ transform: scale(.99); }
.gp-switch--sm{ min-height: 52px; margin-top: 12px; }
.gp-switch--sm .gp-sw-t b{ font-size: 14.5px; font-weight: 600; }

.gp-panel{ display: grid; grid-template-rows: 0fr; transition: grid-template-rows 440ms var(--ease-soft); }
.gp-panel[data-open="true"]{ grid-template-rows: 1fr; }
.gp-panel-in{ min-height: 0; overflow: hidden; padding: 0 3px; visibility: hidden; transition: visibility 0s linear 440ms; }
.gp-panel[data-open="true"] .gp-panel-in{ visibility: visible; transition-delay: 0s; padding-bottom: 8px; }
.gp-f{ display: flex; align-items: baseline; justify-content: space-between; margin: 2px 0 6px; font-size: 14px; font-weight: 600; color: var(--a90-charcoal-muted); }
.gp-f small{ font-size: 12.5px; font-weight: 500; color: var(--a90-gray); }
.gp-f:not(:first-child){ margin-top: 12px; }
.gp-input{
  display: block; width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--a90-border); border-radius: 12px;
  background: var(--a90-white); color: var(--a90-charcoal); font: inherit; font-size: 16px; line-height: 1.5;
  transition: border-color 180ms var(--ease-soft), box-shadow 180ms var(--ease-soft);
}
.gp-input::placeholder{ color: var(--a90-gray); }
.gp-input:focus{ outline: none; border-color: var(--a90-sky-ink); box-shadow: 0 0 0 3px rgba(120,199,232,.4); }
.gp-ta{ resize: none; min-height: 72px; }

.gp-card{
  position: relative; margin-top: 14px; padding: 14px 16px 12px; background: var(--a90-white); border: 1px solid var(--a90-border);
  border-radius: 14px; border-top: 3px solid var(--a90-gold);
}
.gp-card-k{ display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--a90-gray); }
.gp-card-k .gp-ic{ width: 17px; height: 17px; color: var(--a90-gold); }
.gp-card-to{ margin: 0 0 4px; font-size: 15px; color: var(--a90-charcoal-muted); }
.gp-card-to b{ color: var(--a90-charcoal); font-family: var(--font-ar-head); font-size: 17px; }
html[lang="en"] .gp-card-to b{ font-family: var(--font-latin-head); font-weight: 600; }
.gp-card-msg{ margin: 0 0 12px; font-size: 15.5px; line-height: 1.7; color: var(--a90-charcoal); overflow-wrap: anywhere; min-height: 26px; }
.gp-card [data-ph="1"]{ color: var(--a90-gray); font-weight: 400; }
.gp-card-slip{ display: flex; justify-content: space-between; gap: 12px; margin: 0; padding-top: 10px; border-top: 1px dashed var(--a90-border); font-size: 13.5px; color: var(--a90-charcoal-muted); }
.gp-slip-p{ font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; transition: color 240ms; }
.gp-slip-p.is-hidden{ color: var(--a90-sky-ink); }
.gp-slip-p.flip{ animation: gpFlip 380ms var(--ease-soft); }
@keyframes gpFlip{ from{ opacity: 0; transform: translateY(5px); } to{ opacity: 1; transform: none; } }

.gp-bar{ display: flex; align-items: center; gap: 14px; margin-top: 10px; padding: 10px 16px; min-height: 68px; background: var(--a90-white); border-top: 1px solid var(--a90-border); }
.gp-toast{
  position: absolute; inset-inline: 16px; bottom: 82px; margin: 0 auto; width: fit-content; max-width: calc(100% - 32px);
  padding: 9px 16px; border-radius: var(--radius-pill); background: var(--a90-charcoal); color: var(--a90-white); font-size: 13.5px; font-weight: 600; text-align: center;
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity 240ms var(--ease-soft), transform 240ms var(--ease-soft);
}
.gp-toast.on{ opacity: 1; transform: none; }
.gp-note{ margin: 12px 4px 0; font-size: 13px; line-height: 1.6; color: var(--a90-gray); text-align: center; }


/* ---------- Trust / Freelance Work Document ---------- */
.trust-strip{ background: var(--a90-cream); padding: 28px 0 42px; }
.trust-card{
  max-width: 860px; margin: 0 auto; display: flex; align-items: flex-start; gap: 16px;
  padding: 20px 22px; border: 1px solid rgba(40,115,151,.18); border-radius: 18px;
  background: rgba(234,246,251,.58); box-shadow: 0 8px 24px rgba(32,37,42,.045);
}
.trust-mark{
  width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center;
  border-radius: 50%; background: var(--a90-sky); color: var(--a90-charcoal); font-weight: 800;
  box-shadow: 0 0 0 6px rgba(120,199,232,.14); margin-top: 2px;
}
.trust-mark span{ transform: translateY(-1px); }
.trust-copy{ min-width: 0; }
.trust-kicker{ margin: 0 0 4px; color: var(--a90-charcoal); font-weight: 700; font-family: var(--font-ar-head); font-size: 16px; }
html[lang="en"] .trust-kicker{ font-family: var(--font-latin-head); }
.trust-text{ margin: 0; color: var(--a90-charcoal-muted); font-size: 14.5px; line-height: 1.7; }
.trust-note{ margin: 6px 0 0; color: var(--a90-gray); font-size: 12.5px; line-height: 1.65; }
.trust-doc{ margin: 3px 0 7px; color: var(--a90-charcoal); font-size: 13.5px; line-height: 1.6; }
.trust-doc strong{ font-family: var(--font-latin-head); font-weight: 700; letter-spacing: .02em; }
.trust-actions{ margin-top: 13px; }
.trust-verify{
  display: inline-flex; align-items: center; justify-content: center; min-height: 42px;
  padding: 9px 15px; border-radius: var(--radius-pill); background: var(--a90-sky);
  color: var(--a90-charcoal); text-decoration: none; font-size: 13.5px; font-weight: 700;
  border: 1px solid rgba(40,115,151,.16); transition: transform 180ms var(--ease-soft), background 180ms var(--ease-soft);
}
.trust-verify:hover{ transform: translateY(-1px); background: #8ed1ec; }
.trust-verify:focus-visible{ outline: 3px solid rgba(120,199,232,.38); outline-offset: 3px; }
.cta + .trust-strip{ background: var(--a90-charcoal); padding-top: 0; }
.cta + .trust-strip .trust-card{ background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); box-shadow: none; }
.cta + .trust-strip .trust-kicker{ color: var(--a90-white); }
.cta + .trust-strip .trust-text{ color: rgba(255,255,255,.76); }
.cta + .trust-strip .trust-note{ color: rgba(255,255,255,.52); }
.cta + .trust-strip .trust-doc{ color: rgba(255,255,255,.82); }
@media (max-width: 560px){ .trust-card{ padding: 18px; gap: 14px; } .trust-mark{ width: 38px; height: 38px; flex-basis: 38px; } }

/* ---------- Final CTA ---------- */
.cta{ background: var(--a90-charcoal); color: var(--a90-white); padding: 72px 0 64px; }
@media (min-width: 900px){ .cta{ padding: 112px 0 96px; } }
.cta-inner{ text-align: center; max-width: 720px; }
.cta h2{ color: var(--a90-white); font-size: clamp(30px, 8vw, 46px); line-height: 1.35; margin-bottom: 14px; text-wrap: balance; }
html[lang="en"] .cta h2{ line-height: 1.15; }
.cta-sub{ color: rgba(255,255,255,.78); font-size: 17px; line-height: 1.85; max-width: 30em; margin: 0 auto 28px; }
.cta-mail{ max-width: 100%; }
.cta-ic{ width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.cta-alt{ display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; margin-top: 20px; }
.cta-addr{ font-family: var(--font-latin-head); font-size: 15px; color: rgba(255,255,255,.88); overflow-wrap: anywhere; }
.btn-copy{
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; border-radius: var(--radius-pill);
  border: 1.5px solid rgba(255,255,255,.4); color: var(--a90-white); font-size: 14.5px; font-weight: 600;
  transition: background 180ms var(--ease-soft), border-color 180ms var(--ease-soft); -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn-copy:hover{ background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); }
.btn-copy.is-done{ background: rgba(120,199,232,.16); border-color: var(--a90-sky); color: var(--a90-sky); }
.cta :focus-visible{ outline-color: var(--a90-sky); }
.cta-fine{ display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; margin: 26px 0 0; color: rgba(255,255,255,.72); font-size: 14.5px; }
.cta-fine > span:first-child{ color: rgba(255,255,255,.72); }
.cta-soon{                                            /* visibly unavailable, not broken */
  display: inline-flex; align-items: center; min-height: 32px; padding: 2px 14px; border-radius: var(--radius-pill);
  border: 1px dashed rgba(255,255,255,.38); color: rgba(255,255,255,.7); font-size: 13.5px; font-weight: 500; cursor: default; user-select: none;
}

/* ---------- Footer ---------- */
.site-footer{ background: var(--a90-charcoal); color: var(--a90-white); }
.footer-row{ display: flex; flex-direction: column; gap: 20px; padding-top: 32px; padding-bottom: 28px; border-top: 1px solid rgba(255,255,255,.12); }
@media (min-width: 700px){ .footer-row{ flex-direction: row; align-items: center; justify-content: space-between; } }
.site-footer .brand-word{ color: var(--a90-white); }
.footer-brand p{ color: rgba(255,255,255,.66); margin: 2px 0 0; font-size: 14px; }
.footer-links{ display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a{ display: inline-flex; align-items: center; min-height: 44px; color: rgba(255,255,255,.85); font-size: 14.5px; }
.footer-links a:hover{ color: var(--a90-sky); }
.site-footer :focus-visible{ outline-color: var(--a90-sky); }
.footer-bottom{ padding-bottom: 28px; }
.footer-bottom p{ color: rgba(255,255,255,.55); font-size: 13px; margin: 0; }

/* ---------- Legal pages (privacy / terms) ---------- */
.legal{ max-width: 760px; }
.legal h1{ font-size: clamp(30px, 8vw, 40px); margin-bottom: 8px; }
.legal h2{ font-size: 20px; margin: 32px 0 8px; }
.legal p{ font-size: 16px; line-height: 1.85; }
.legal .meta{ color: var(--a90-gray); font-size: 14px; }
.legal .note{ background: var(--a90-sky-light); border: 1px solid rgba(120,199,232,.7); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); font-size: 14.5px; }
.legal a:not(.btn){ color: var(--a90-sky-ink); text-decoration: underline; text-underline-offset: 3px; }
html[lang="ar"] .l-en, html[lang="en"] .l-ar{ display: none !important; }
.back-link{ display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; font-size: 15px; color: var(--a90-sky-ink); }

/* ---------- Scroll reveal (only when JS is running; content is visible without it) ---------- */
.js .reveal{ opacity: 0; transform: translateY(14px); transition: opacity 560ms var(--ease-soft), transform 560ms var(--ease-soft); transition-delay: calc(var(--k, 0) * 80ms); }
.js .reveal.is-visible{ opacity: 1; transform: none; }
.js .pr-step.reveal{ transform: translateX(calc(var(--flow) * 10px)); }
.js .pr-step.reveal.is-visible{ transform: none; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .js .reveal, .js .pr-step.reveal{ opacity: 1; transform: none; transition: none; }
  *, *::before, *::after{ animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}


/* ========================================================================
   AGENCY90 v1.5.1 — Staged Signature pulse
   ======================================================================== */
.nav-links a[aria-current="page"]{color:var(--a90-sky-ink);font-weight:700}
.nav-links a[aria-current="page"]::after{transform:scaleX(1)}
.page-hero{padding:clamp(64px,9vw,120px) 0 28px;background:var(--a90-cream)}
.page-hero-inner{max-width:920px}
.page-title{font-size:clamp(44px,7vw,84px);line-height:1.04;letter-spacing:-.035em;margin:8px 0 16px}
.page-lead{font-size:clamp(17px,2.1vw,22px);color:var(--a90-charcoal-muted);max-width:780px;margin:0;line-height:1.8}

.home-signature{padding-top:34px;padding-bottom:72px}
.hs-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(240px,.75fr);gap:54px;align-items:end}
.hs-sub{color:var(--a90-charcoal-muted);max-width:700px;margin:12px 0 24px}
.hs-links{display:grid;gap:10px}
.hs-link{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 18px;border:1px solid var(--a90-border);border-radius:999px;background:rgba(255,255,255,.58);font-weight:700;transition:.18s var(--ease-soft)}
.hs-link:hover{border-color:var(--a90-sky);transform:translateY(-2px);background:var(--a90-white)}
.hs-link b{color:var(--a90-sky-ink);font-size:18px}
html[dir="rtl"] .hs-link b{transform:scaleX(-1)}

.value-signature{margin:22px 0 0;max-width:860px}
.sig-caption{margin:0 0 12px;color:var(--a90-gray);font-size:12px;line-height:1.6}
.sig-rail{position:relative;padding:0 4px 30px}
.sig-nodes{position:relative;z-index:2;display:grid;grid-template-columns:repeat(var(--sig-count,5),1fr);align-items:start}
.sig-node{text-align:center;min-width:0;color:var(--a90-charcoal-muted);font-size:12px;font-weight:700}
.sig-dot{display:block;width:12px;height:12px;border-radius:50%;margin:0 auto 10px;background:var(--a90-cream);border:2px solid var(--a90-sky-ink);box-shadow:0 0 0 4px var(--a90-cream)}
.sig-segments{position:absolute;top:5px;inset-inline:calc(10% + 6px);display:grid;grid-auto-flow:column;grid-auto-columns:1fr;z-index:1}
.sig-seg{height:2px;display:block}
.sig-seg--dash{background:repeating-linear-gradient(90deg,var(--a90-sky-ink) 0 8px,transparent 8px 15px);opacity:.58}
.sig-seg--solid{background:var(--a90-sky-ink);opacity:.62}
.sig-node--key .sig-dot{animation:sigStepDot 4.8s var(--ease-soft) infinite;animation-delay:calc(var(--sig-step,0) * 1.6s)}
.sig-node--key>span:last-child{animation:sigStepLabel 4.8s var(--ease-soft) infinite;animation-delay:calc(var(--sig-step,0) * 1.6s)}
@keyframes sigStepDot{
  0%,24%{background:var(--a90-sky);border-color:var(--a90-sky-ink);box-shadow:0 0 0 7px rgba(120,199,232,.17);transform:scale(1.08)}
  30%,100%{background:var(--a90-cream);border-color:var(--a90-sky-ink);box-shadow:0 0 0 4px var(--a90-cream);transform:scale(1)}
}
@keyframes sigStepLabel{
  0%,24%{color:var(--a90-sky-ink);opacity:1}
  30%,100%{color:var(--a90-charcoal-muted);opacity:.78}
}
.value-signature--compact{max-width:700px}
.value-signature--compact .sig-node{font-size:11px}
.value-signature--compact .sig-rail{padding-bottom:22px}
/* node-count tuning from markup */
.value-signature .sig-nodes:has(.sig-node:nth-child(4):last-child){grid-template-columns:repeat(4,1fr)}
.value-signature .sig-nodes:has(.sig-node:nth-child(3):last-child){grid-template-columns:repeat(3,1fr)}
.value-signature .sig-nodes:has(.sig-node:nth-child(4):last-child)~*{}

.sig-state-legend{display:flex;gap:12px;flex-wrap:wrap;max-width:1100px;margin:12px auto 0;padding:0 24px 54px}
.sig-state{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--a90-border);border-radius:999px;padding:8px 11px;background:rgba(255,255,255,.55);font-size:11px;color:var(--a90-charcoal-muted)}
.sig-state i{display:block;width:34px;height:2px}
.sig-state--hyp i{background:repeating-linear-gradient(90deg,var(--a90-sky-ink) 0 7px,transparent 7px 12px)}
.sig-state--obs i{background:var(--a90-sky-ink)}
.sig-state--future{opacity:.58}.sig-state--future i{background:var(--a90-border)}

.sig-page-strip{padding-top:20px;padding-bottom:10px}
.sig-page-strip .value-signature{margin-top:0}
.sig-page-strip--contact{padding-bottom:0}
.page-next{padding:10px 0 78px}
.page-next-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;border-top:1px solid var(--a90-border);padding-top:28px}
.page-next p{margin:0;color:var(--a90-charcoal-muted);max-width:720px}

@media(max-width:800px){
  .hs-grid{grid-template-columns:1fr;gap:28px}
  .page-hero{padding-top:48px}
  .page-next-inner{align-items:flex-start;flex-direction:column}
}
@media(max-width:560px){
  .page-title{font-size:42px}
  .sig-rail{padding-inline:0;padding-bottom:12px}
  .sig-nodes{grid-template-columns:1fr!important;gap:0;padding-inline-start:34px}
  .sig-node{position:relative;display:flex;align-items:center;gap:12px;text-align:start;min-height:54px}
  .sig-dot{margin:0;flex:0 0 auto}
  .sig-segments{top:7px;bottom:48px;inset-inline-start:5px;inset-inline-end:auto;width:2px;display:flex;flex-direction:column}
  html[dir="ltr"] .sig-segments{left:5px;right:auto}
  html[dir="rtl"] .sig-segments{right:5px;left:auto}
  .sig-seg{width:2px;height:auto;flex:1}
  .sig-seg--dash{background:repeating-linear-gradient(180deg,var(--a90-sky-ink) 0 8px,transparent 8px 15px)}
  .sig-state-legend{padding-inline:16px}
  .hs-links{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){.sig-node--key .sig-dot,.sig-node--key>span:last-child{animation:none}.sig-node--key .sig-dot{background:var(--a90-sky);box-shadow:0 0 0 5px rgba(120,199,232,.14)}.sig-node--key>span:last-child{color:var(--a90-sky-ink);opacity:1}}

/* ===== Agency90 contact mini-buttons upgrade ===== */
#copyMail,
.cta-soon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0.72rem 1.15rem;
  border-radius: 999px;
  background: #7fd3ff;
  color: #13202b !important;
  border: 1px solid #7fd3ff;
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
  box-shadow: 0 6px 18px rgba(127, 211, 255, 0.18);
}

#copyMail:hover,
.cta-soon:hover{
  transform: translateY(-2px) scale(1.05);
  background: #94ddff;
  border-color: #94ddff;
  box-shadow: 0 12px 28px rgba(127, 211, 255, 0.28);
  color: #0e1a24 !important;
}

#copyMail:focus-visible,
.cta-soon:focus-visible{
  outline: 2px solid #b8ebff;
  outline-offset: 3px;
}

#copyMail:active,
.cta-soon:active{
  transform: scale(0.98);
}

.cta-alt{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-fine{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===== Agency90 5-step signature animation fix ===== */

/* Give every node its own animation position */
.sig-nodes:has(.sig-node:nth-child(5):last-child) .sig-node:nth-child(1){
  --a90-step: 0;
}
.sig-nodes:has(.sig-node:nth-child(5):last-child) .sig-node:nth-child(2){
  --a90-step: 1;
}
.sig-nodes:has(.sig-node:nth-child(5):last-child) .sig-node:nth-child(3){
  --a90-step: 2;
}
.sig-nodes:has(.sig-node:nth-child(5):last-child) .sig-node:nth-child(4){
  --a90-step: 3;
}
.sig-nodes:has(.sig-node:nth-child(5):last-child) .sig-node:nth-child(5){
  --a90-step: 4;
}

/* Animate all 5 dots */
.sig-nodes:has(.sig-node:nth-child(5):last-child) .sig-node .sig-dot{
  animation: a90SigStepDot5 8s var(--ease-soft) infinite;
  animation-delay: calc(var(--a90-step) * 1.6s);
}

/* Animate all 5 labels */
.sig-nodes:has(.sig-node:nth-child(5):last-child) .sig-node > span:last-child{
  animation: a90SigStepLabel5 8s var(--ease-soft) infinite;
  animation-delay: calc(var(--a90-step) * 1.6s);
}

@keyframes a90SigStepDot5{
  0%,14%{
    background:var(--a90-sky);
    border-color:var(--a90-sky-ink);
    box-shadow:0 0 0 7px rgba(120,199,232,.17);
    transform:scale(1.08);
  }
  18%,100%{
    background:var(--a90-cream);
    border-color:var(--a90-sky-ink);
    box-shadow:0 0 0 4px var(--a90-cream);
    transform:scale(1);
  }
}

@keyframes a90SigStepLabel5{
  0%,14%{
    color:var(--a90-sky-ink);
    opacity:1;
  }
  18%,100%{
    color:var(--a90-charcoal-muted);
    opacity:.78;
  }
}

/* Respect accessibility preference */
@media (prefers-reduced-motion: reduce){
  .sig-nodes:has(.sig-node:nth-child(5):last-child) .sig-node .sig-dot,
  .sig-nodes:has(.sig-node:nth-child(5):last-child) .sig-node > span:last-child{
    animation:none;
  }
}

