/* ============================================================
   Lacasai Executive Assistant — site stylesheet
   One file, both directions: CSS logical properties throughout.
   Brand: cream #FAF3E0 (never white) · Astro Red #E63946 ·
   Sky Blue #0EA5E9 · Sun Yellow #FACC15 · Charcoal #1E1B1E.
   Type: Inter (Latin) + IBM Plex Sans Arabic (equal optical weight).
   ============================================================ */

/* ---------- Fonts (self-hosted, subsetted woff2) ---------- */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/inter-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 900; font-display: swap; src: url('../fonts/inter-900-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/plexarabic-400-arabic.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/plexarabic-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/plexarabic-500-arabic.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/plexarabic-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/plexarabic-700-arabic.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/plexarabic-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens ---------- */
:root {
  --cream: #FAF3E0;
  --cream-deep: #F1E7CC;
  --paper: #FFF9E6;
  --ink: #1E1B1E;
  --ink-soft: #3A343A;
  --red: #E63946;
  --red-deep: #C42D3A;
  --blue: #0EA5E9;
  --blue-deep: #0369A1;
  --yellow: #FACC15;
  --slate: #5F6672;
  --line: rgba(30, 27, 30, 0.14);
  --font-latin: 'Inter', 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-arabic: 'IBM Plex Sans Arabic', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 71.25rem;      /* 1140px */
  --measure: 44rem;
  --radius: 18px;
  --shadow-soft: 0 2px 6px rgba(30,27,30,.06), 0 18px 48px rgba(30,27,30,.10);
  --shadow-lift: 0 4px 10px rgba(30,27,30,.08), 0 30px 70px rgba(30,27,30,.16);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-latin);
  font-size: 1.0625rem;             /* 17px */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Arabic page: Plex Arabic leads, sized for true optical parity, no tracking. */
html[lang="ar"] body {
  font-family: var(--font-arabic);
  font-size: 1.125rem;              /* 18px — Arabic reads smaller at equal px */
  line-height: 1.85;
  letter-spacing: 0;
}
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] .btn, html[lang="ar"] .pill {
  letter-spacing: 0 !important;
}
/* Arabic runs inside the English page (and vice versa) */
.ar { font-family: var(--font-arabic); letter-spacing: 0; }
html[lang="en"] .ar { font-size: 1.08em; }
.lat { font-family: var(--font-latin); }

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--red); }
::selection { background: var(--yellow); color: var(--ink); }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; font-weight: 900; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { font-weight: 700; line-height: 1.35; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.measure { max-width: var(--measure); }

/* ---------- Type scale ---------- */
.display {
  font-size: clamp(2.55rem, 6.4vw, 4.6rem);
  letter-spacing: -0.022em;
  line-height: 1.04;
}
html[lang="ar"] .display { line-height: 1.28; letter-spacing: 0; font-size: clamp(2.45rem, 6.2vw, 4.35rem); }
.h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  letter-spacing: -0.015em;
}
.lede { font-size: clamp(1.125rem, 1.8vw, 1.3rem); color: var(--ink-soft); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red-deep);
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .95rem; }
.eyebrow::before { content: ""; inline-size: 26px; block-size: 3px; background: var(--red); border-radius: 2px; }
.muted { color: var(--slate); }
.small { font-size: .875rem; }

/* ---------- Buttons & pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: #D32F3C; color: #fff !important;
  font-family: inherit; font-weight: 700; font-size: 1.02rem;
  padding: .85em 1.7em; border: 0; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 2px 0 rgba(30,27,30,.12), 0 10px 26px rgba(230,57,70,.28);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn:hover { background: var(--red-deep); transform: translateY(-2px); box-shadow: 0 4px 0 rgba(30,27,30,.10), 0 16px 34px rgba(230,57,70,.34); }
.btn:active { transform: translateY(0); }
.btn.ghost {
  background: transparent; color: var(--ink) !important;
  box-shadow: inset 0 0 0 2px var(--ink);
}
.btn.ghost:hover { background: var(--ink); color: var(--cream) !important; }

.pill {
  display: inline-flex; align-items: center; gap: .45em;
  font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  padding: .3em .85em; border-radius: 999px; white-space: nowrap;
}
html[lang="ar"] .pill { font-size: .9rem; }
.pill.live { background: var(--ink); color: var(--cream); }
.pill.live::before { content: ""; inline-size: 7px; block-size: 7px; border-radius: 50%; background: var(--yellow); }
.pill.soon { background: transparent; color: var(--slate); box-shadow: inset 0 0 0 1.5px var(--slate); }
.pill.red-outline { background: transparent; color: var(--red-deep); box-shadow: inset 0 0 0 1.5px var(--red); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; inset-block-start: 0; z-index: 60;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-block-end: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.nav.scrolled { border-block-end-color: var(--line); box-shadow: 0 8px 30px rgba(30,27,30,.06); }
.nav-inner { display: flex; align-items: center; gap: 1.5rem; padding-block: .8rem; }
.lockup { display: flex; align-items: baseline; gap: .6rem; text-decoration: none; color: var(--ink); }
/* One outlined SVG owns the complete wordmark geometry, including the red i-dot. */
.lockup .wordmark {
  inline-size: 5rem; block-size: auto; flex: 0 0 auto;
  color: inherit; overflow: visible; transition: color .15s ease;
}
.lockup:is(:hover, :focus-visible) .wordmark { color: var(--red); }
.lockup .plabel {
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--slate); border-inline-start: 1.5px solid var(--line); padding-inline-start: .6rem;
}
html[lang="ar"] .lockup .plabel { font-size: .85rem; letter-spacing: 0; }
.nav-links { display: flex; gap: 1.4rem; margin-inline-start: auto; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--red); }
.nav-cta { display: flex; align-items: center; gap: .9rem; margin-inline-start: auto; }
.nav-links + .nav-cta { margin-inline-start: 0; }
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center;
  inline-size: 36px; block-size: 36px; border-radius: 50%;
  font-family: var(--font-latin); font-weight: 700; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .03em;
  text-decoration: none; color: var(--ink); flex: 0 0 auto;
  box-shadow: inset 0 0 0 1.5px var(--ink);
  transition: background .15s ease, color .15s ease;
}
.lang-switch:hover { background: var(--ink); color: var(--cream); }
html[lang="ar"] .lang-switch { letter-spacing: .03em; }
.nav .btn { padding: .55em 1.2em; font-size: .92rem; }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .lockup .plabel { display: none; }
}
@media (max-width: 420px) {
  .nav .btn { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; padding-block: clamp(3rem, 7vw, 6rem) clamp(3.5rem, 8vw, 7rem); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero-copy .display { margin-block-end: .35em; }
.hero-alt {
  font-family: var(--font-arabic); font-weight: 700; color: var(--ink);
  font-size: clamp(1.5rem, 3.2vw, 2.3rem); line-height: 1.5; margin: 0 0 .9em;
}
html[lang="ar"] .hero-alt { font-family: var(--font-latin); font-weight: 900; letter-spacing: -0.015em; line-height: 1.2; }
.hero-rule { inline-size: 96px; block-size: 4px; background: var(--red); border: 0; border-radius: 2px; margin: 0 0 1.4rem; }
.hero .lede { margin-block-end: 1.5rem; }
.hero-pills { display: flex; flex-wrap: wrap; gap: .6rem; margin-block-end: 1.7rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem; }
.reason { font-size: .9rem; color: var(--slate); margin-block-start: .9rem; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-phone-wrap { order: 2; margin-inline: auto; }
}

/* halo behind the phone */
.hero-phone-wrap { position: relative; display: grid; place-items: center; }
.hero-phone-wrap::before {
  content: ""; position: absolute; inset: 6% -4%;
  background:
    radial-gradient(58% 52% at 62% 34%, rgba(14,165,233,.16), transparent 70%),
    radial-gradient(52% 46% at 34% 72%, rgba(230,57,70,.13), transparent 72%),
    radial-gradient(40% 36% at 70% 78%, rgba(250,204,21,.18), transparent 70%);
  filter: blur(6px);
  z-index: 0;
}

/* ---------- Phone frame + chat ---------- */
.phone {
  position: relative; z-index: 1;
  inline-size: min(340px, 88vw);
  background: var(--ink);
  border-radius: 44px;
  padding: 12px;
  box-shadow: var(--shadow-lift);
}
.phone::after { /* speaker notch pill */
  content: ""; position: absolute; inset-block-start: 22px; inset-inline-start: 50%;
  transform: translateX(-50%);
  inline-size: 92px; block-size: 8px; border-radius: 8px;
  background: rgba(250,243,224,.16);
}
[dir="rtl"] .phone::after { transform: translateX(50%); }
.phone-screen {
  background: #FDF8EA;
  border-radius: 34px;
  overflow: hidden;
  display: flex; flex-direction: column;
  min-block-size: 560px;
}
.chat-head {
  display: flex; align-items: center; gap: .7rem;
  padding: 1.5rem 1.05rem .7rem;
  background: var(--paper);
  border-block-end: 1px solid var(--line);
}
.chat-avatar {
  inline-size: 38px; block-size: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--red); color: #fff; font-weight: 900; font-size: 1.05rem;
  flex: 0 0 auto;
}
.chat-id { line-height: 1.25; }
.chat-name { font-weight: 700; font-size: .95rem; }
.chat-status { font-size: .74rem; color: var(--blue-deep); font-weight: 600; }
.chat-body { padding: 1rem .9rem 1.2rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.bubble {
  max-inline-size: 86%;
  padding: .6rem .85rem;
  border-radius: 16px;
  font-size: .875rem; line-height: 1.5;
  box-shadow: 0 1px 2px rgba(30,27,30,.08);
}
html[lang="ar"] .bubble { font-size: .95rem; }
.bubble.in  { background: #FFFFFF; border-start-start-radius: 6px; align-self: flex-start; }
.bubble.out { background: #E7F6E4; border-start-end-radius: 6px; align-self: flex-end; }
.bubble .t { display: block; font-size: .66rem; color: var(--slate); margin-block-start: .3rem; text-align: end; }
.bubble .tick { color: #34A853; }
/* voice note */
.voice { display: flex; align-items: center; gap: .55rem; min-inline-size: 190px; }
.voice .play {
  inline-size: 30px; block-size: 30px; border-radius: 50%; flex: 0 0 auto;
  background: var(--blue); position: relative;
}
.voice .play::after {
  content: ""; position: absolute; inset-block-start: 50%; inset-inline-start: 50%;
  transform: translate(-50%, -50%);
  border-block: 6px solid transparent; border-inline-start: 9px solid #fff;
}
[dir="rtl"] .voice .play::after { transform: translate(50%, -50%) scaleX(-1); }
.wave { display: flex; align-items: center; gap: 2.5px; block-size: 26px; }
.wave i { inline-size: 3px; border-radius: 2px; background: var(--blue-deep); opacity: .75; }
/* draft/action card inside chat */
.chat-card {
  background: #fff; border-radius: 14px;
  border-inline-start: 4px solid var(--red);
  padding: .7rem .8rem; max-inline-size: 92%;
  box-shadow: 0 1px 2px rgba(30,27,30,.08);
  font-size: .84rem; line-height: 1.5;
  align-self: flex-start;
}
html[lang="ar"] .chat-card { font-size: .93rem; }
.chat-card.blue { border-inline-start-color: var(--blue); }
.chat-card.yellow { border-inline-start-color: var(--yellow); }
.chat-card .k {
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--red-deep); display: block; margin-block-end: .25rem;
}
html[lang="ar"] .chat-card .k { letter-spacing: 0; font-size: .78rem; }
.chat-card.blue .k { color: var(--blue-deep); }
.chat-card .body { color: var(--ink-soft); }
.chat-actions { display: flex; gap: .5rem; margin-block-start: .6rem; }
.chat-btn {
  font-size: .76rem; font-weight: 700; padding: .35em .95em; border-radius: 999px;
  background: var(--red); color: #fff;
}
.chat-btn.secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.chat-note { align-self: center; font-size: .7rem; color: var(--slate); background: var(--cream-deep); border-radius: 999px; padding: .25em .9em; }

/* ---------- Screen card (lightweight chat excerpt, no bezel) ---------- */
.screen-card {
  inline-size: min(420px, 100%);
  background: #FDF8EA;
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
  padding: 1.15rem 1rem 1.3rem;
  display: flex; flex-direction: column; gap: .55rem;
  position: relative; z-index: 1;
}
.screen-card .bubble, .screen-card .chat-card { box-shadow: 0 1px 3px rgba(30,27,30,.1); }
.media-halo { position: relative; display: grid; place-items: center; }
.media-halo::before {
  content: ""; position: absolute; inset: 4% -2%;
  background: radial-gradient(55% 50% at 50% 50%, rgba(14,165,233,.12), transparent 72%);
  filter: blur(4px); z-index: 0;
}
.media-halo.warm::before { background: radial-gradient(55% 50% at 50% 50%, rgba(250,204,21,.16), transparent 72%); }
.media-halo.red::before { background: radial-gradient(55% 50% at 50% 50%, rgba(230,57,70,.10), transparent 72%); }
/* doc chip inside chat */
.doc-chip {
  display: inline-flex; align-items: center; gap: .55rem;
  background: #fff; border-radius: 12px; padding: .55rem .8rem;
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: .8rem; font-weight: 700;
}
.doc-chip::before {
  content: "PDF"; font-size: .6rem; font-weight: 900; letter-spacing: .04em;
  background: var(--red); color: #fff; border-radius: 6px; padding: .3em .5em;
}
.doc-chip.xls::before { content: "XLSX"; background: #1D6F42; }

/* ---------- Trust strip ---------- */
.trust { border-block: 1px solid var(--line); background: var(--cream-deep); }
.trust-inner {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: .4rem 2.2rem; padding-block: 1.05rem;
  font-size: .88rem; font-weight: 600; color: var(--ink-soft);
}
html[lang="ar"] .trust-inner { font-size: .98rem; }
.trust-inner span { display: inline-flex; align-items: center; gap: .55em; }
.trust-inner span::before { content: "·"; color: var(--red); font-weight: 900; font-size: 1.35em; line-height: 0; }
.trust-inner span:first-child::before { content: none; }

/* ---------- Sections (the repeated unit) ---------- */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-head { max-width: var(--measure); margin-block-end: clamp(2rem, 4vw, 3.2rem); }
.section-head .lede { text-wrap: balance; }
.section-rule { inline-size: 64px; block-size: 3px; background: var(--red); border: 0; border-radius: 2px; margin: 0 0 1.1rem; }
.cap-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem); align-items: center;
}
.cap-grid .media { display: grid; place-items: center; }
.cap-grid.flip .media { order: -1; }
@media (max-width: 900px) {
  .cap-grid, .cap-grid.flip { grid-template-columns: 1fr; }
  .cap-grid .media, .cap-grid.flip .media { order: 2; }
}
.cap-copy .pill { margin-block-end: 1rem; }
.cap-copy h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.015em; }
.cap-copy .sub { font-weight: 700; color: var(--red-deep); font-size: 1.05rem; margin-block-end: .6rem; }
.cap-copy p { color: var(--ink-soft); max-width: 36rem; }

/* zebra: alternate section tint */
.section.tint { background: var(--cream-deep); }

/* ---------- What-it-does index ---------- */
.index-chips { display: flex; flex-wrap: wrap; gap: .7rem; }
.index-chips a {
  text-decoration: none; color: var(--ink); font-weight: 700; font-size: .95rem;
  background: var(--paper); border-radius: 999px; padding: .55em 1.2em;
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: box-shadow .15s ease, transform .15s ease;
}
.index-chips a:hover { box-shadow: inset 0 0 0 2px var(--red); transform: translateY(-2px); color: var(--red-deep); }

/* ---------- Before / After ---------- */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 3vw, 2rem); }
@media (max-width: 820px) { .ba-grid { grid-template-columns: 1fr; } }
.ba-card {
  border-radius: var(--radius); padding: 1.6rem 1.7rem;
  background: var(--paper); box-shadow: var(--shadow-soft);
  border-block-start: 5px solid var(--slate);
}
.ba-card.after { border-block-start-color: var(--red); }
.ba-tag {
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--slate); display: block; margin-block-end: .6rem;
}
html[lang="ar"] .ba-tag { letter-spacing: 0; font-size: .84rem; }
.ba-card.after .ba-tag { color: var(--red-deep); }
.ba-time { font-weight: 900; font-size: 1.6rem; font-variant-numeric: tabular-nums; margin-block-end: .4rem; }
.ba-card p { margin: 0; color: var(--ink-soft); }
.ba-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-block-start: 1rem; }
.ba-chips span {
  font-size: .76rem; font-weight: 700; border-radius: 999px; padding: .28em .8em;
  background: var(--cream); box-shadow: inset 0 0 0 1.2px var(--line); color: var(--ink-soft);
}
.ba-card.after .ba-chips span { box-shadow: inset 0 0 0 1.2px rgba(230,57,70,.4); color: var(--red-deep); background: #fff; }

/* ---------- Artifact (morning brief paper) ---------- */
.artifact-stage { display: grid; place-items: center; padding-block-start: 1rem; }
.artifact {
  inline-size: min(560px, 100%);
  background: var(--paper);
  border-radius: 10px;
  box-shadow: var(--shadow-lift);
  padding: clamp(1.4rem, 4vw, 2.4rem);
  rotate: -1.2deg;
  transition: rotate .25s ease, transform .25s ease;
}
.artifact:hover { rotate: 0deg; transform: translateY(-4px); }
[dir="rtl"] .artifact { rotate: 1.2deg; }
[dir="rtl"] .artifact:hover { rotate: 0deg; }
.artifact-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.artifact-head .brand { font-weight: 900; font-size: .95rem; }
.artifact-head .brand .dot { color: var(--red); }
.artifact-head .date { font-size: .72rem; color: var(--slate); }
.artifact h3 { font-size: 1.45rem; margin-block: .8rem 0; letter-spacing: -0.01em; }
.artifact h3 .ar-line { display: block; font-family: var(--font-arabic); font-weight: 700; font-size: 1.06em; margin-block-start: .1em; }
.artifact-rule { block-size: 3.5px; background: var(--red); border: 0; border-radius: 2px; margin-block: .9rem 1.1rem; }
.exec {
  background: var(--cream); border-inline-start: 4px solid var(--red);
  border-radius: 8px; padding: .9rem 1.1rem; margin-block-end: 1rem;
}
.exec .k { font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red-deep); display: block; margin-block-end: .4rem; }
html[lang="ar"] .exec .k { letter-spacing: 0; font-size: .78rem; }
.exec ul { margin: 0; padding: 0; list-style: none; font-size: .85rem; line-height: 1.75; }
html[lang="ar"] .exec ul { font-size: .95rem; }
.exec li::before { content: "·"; color: var(--red); font-weight: 900; margin-inline-end: .5em; }
.sched { font-size: .85rem; margin: 0 0 1rem; padding: 0; list-style: none; }
html[lang="ar"] .sched { font-size: .95rem; }
.sched li { display: flex; gap: .8em; padding-block: .32em; border-block-end: 1px dashed var(--line); }
.sched .tm { color: var(--blue-deep); font-weight: 700; font-variant-numeric: tabular-nums; min-inline-size: 3.2em; }
.note {
  background: #FFFDF2; border-inline-start: 4px solid var(--yellow);
  border-radius: 8px; padding: .8rem 1rem; font-size: .85rem; color: var(--ink-soft);
}
html[lang="ar"] .note { font-size: .95rem; }
.note .k { font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8A6D08; display: block; margin-block-end: .3rem; }
html[lang="ar"] .note .k { letter-spacing: 0; font-size: .78rem; }

/* ---------- Privacy band (charcoal chapter) ---------- */
.band {
  background: var(--ink); color: var(--cream);
  padding-block: clamp(4rem, 9vw, 7.5rem);
}
.band .section-rule { background: var(--yellow); }
.band .eyebrow { color: var(--yellow); }
.band .eyebrow::before { background: var(--yellow); }
.band a { color: var(--blue); }
.promises {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem; margin-block: 2.2rem;
}
.promise {
  background: rgba(250,243,224,.05);
  border: 1px solid rgba(250,243,224,.14);
  border-radius: var(--radius); padding: 1.4rem 1.5rem;
}
.promise h3 { font-size: 1.05rem; margin-block-end: .4rem; color: var(--cream); font-weight: 900; }
html[lang="ar"] .promise h3 { font-weight: 700; }
.promise p { margin: 0; font-size: .92rem; color: rgba(250,243,224,.78); }
.band .fine { font-size: .82rem; color: rgba(250,243,224,.6); max-width: 52rem; }
.band .fine a { color: rgba(250,243,224,.85); }
.ai-line {
  display: inline-block; margin-block-start: 1.4rem;
  font-weight: 700; color: var(--ink); background: var(--yellow);
  border-radius: 999px; padding: .5em 1.2em; font-size: .92rem;
  text-wrap: balance;
}
@media (max-width: 480px) { .ai-line { border-radius: 22px; } }

/* ---------- Language wedge ---------- */
.wedge-demo {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem;
  max-width: 56rem;
}
@media (max-width: 820px) { .wedge-demo { grid-template-columns: 1fr; } }
.wedge-card {
  background: var(--paper); border-radius: var(--radius); padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow-soft); font-size: .95rem;
}
.wedge-card .who { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); display: block; margin-block-end: .5rem; }
html[lang="ar"] .wedge-card .who { letter-spacing: 0; font-size: .8rem; }
.wedge-card .q { font-weight: 600; margin-block-end: .6rem; }
.wedge-card .a { color: var(--ink-soft); border-inline-start: 3px solid var(--blue); padding-inline-start: .8rem; }

/* ---------- Pricing ---------- */
.price-card {
  max-width: 34rem; margin-inline: auto;
  background: var(--paper); border-radius: 24px;
  box-shadow: var(--shadow-lift);
  padding: clamp(1.8rem, 5vw, 2.8rem);
  text-align: center;
  border-block-start: 6px solid var(--red);
}
.price-figure { display: flex; align-items: baseline; justify-content: center; gap: .3rem; margin-block: .8rem .3rem; }
.price-figure .cur { font-weight: 700; font-size: 1.4rem; color: var(--ink-soft); }
.price-figure .amt { font-weight: 900; font-size: clamp(3.4rem, 8vw, 4.6rem); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.price-figure .per { font-weight: 600; color: var(--slate); }
.founder-tag { display: inline-block; background: var(--yellow); color: var(--ink); font-weight: 700; font-size: .8rem; border-radius: 999px; padding: .35em 1em; letter-spacing: .04em; }
html[lang="ar"] .founder-tag { letter-spacing: 0; font-size: .9rem; }
.includes { list-style: none; margin: 1.4rem 0; padding: 0; font-size: .95rem; text-align: start; display: grid; gap: .45rem; }
.includes li { display: flex; gap: .6em; align-items: baseline; }
.includes li::before { content: "·"; color: var(--red); font-weight: 900; font-size: 1.4em; line-height: 1; }
.scarcity { font-size: .88rem; color: var(--slate); margin-block: 1rem .4rem; }
.anchor-line { font-size: .92rem; color: var(--slate); margin-block-end: 1.4rem; }

/* ---------- FAQ ---------- */
.faq { max-width: var(--measure); }
.faq details {
  border-block-end: 1px solid var(--line);
  padding-block: .4rem;
}
.faq summary {
  cursor: pointer; font-weight: 700; font-size: 1.05rem;
  padding-block: .8rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 900; font-size: 1.3rem; color: var(--red); transition: rotate .18s ease; flex: 0 0 auto; }
.faq details[open] summary::after { rotate: 45deg; }
.faq .faq-a { padding-block-end: 1.1rem; color: var(--ink-soft); max-width: 40rem; }

/* ---------- Closing CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, #D32F3C 0%, var(--red-deep) 100%);
  color: #fff; text-align: center;
  padding-block: clamp(4rem, 9vw, 6.5rem);
}
.cta-band h2 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -0.02em; }
.cta-band p { color: #fff; }
.cta-band .btn { background: var(--cream); color: var(--ink) !important; box-shadow: 0 2px 0 rgba(0,0,0,.15), 0 14px 34px rgba(0,0,0,.25); }
.cta-band .btn:hover { background: #fff; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--ink); color: rgba(250,243,224,.75);
  padding-block: 2.8rem 2.2rem; font-size: .875rem;
}
footer.site .lockup { color: var(--cream); margin-block-end: 1rem; }
footer.site .lockup .plabel { color: rgba(250,243,224,.55); border-inline-start-color: rgba(250,243,224,.25); }
footer.site a { color: rgba(250,243,224,.85); }
footer.site a:hover { color: var(--yellow); }
.foot-grid { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; align-items: flex-start; }
.foot-grid > div:first-child { max-inline-size: 40rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.foot-links a { padding-block: .25em; }
.foot-fine { margin-block-start: 1.6rem; padding-block-start: 1.4rem; border-block-start: 1px solid rgba(250,243,224,.15); font-size: .78rem; color: rgba(250,243,224,.55); }

/* ---------- Legal pages ---------- */
.legal { max-width: 50rem; margin-inline: auto; padding-block: clamp(2.5rem, 6vw, 4rem); }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: -0.02em; }
.legal .meta { color: var(--slate); font-size: .9rem; margin-block-end: 2rem; }
.legal h2 { font-size: 1.35rem; margin-block-start: 2.2rem; padding-block-end: .4rem; border-block-end: 2px solid var(--red); display: inline-block; }
.legal h3 { font-size: 1.05rem; margin-block-start: 1.4rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal .limited {
  background: var(--paper); border-inline-start: 4px solid var(--red);
  border-radius: 10px; padding: 1.1rem 1.3rem; margin-block: 1.2rem;
}
.legal .back { display: inline-block; margin-block-end: 1.6rem; color: var(--slate); text-decoration: none; font-weight: 600; }
.legal .back:hover { color: var(--red); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; translate: 0 26px; transition: opacity .7s cubic-bezier(.2,.65,.3,1), translate .7s cubic-bezier(.2,.65,.3,1); }
.reveal.in-view { opacity: 1; translate: 0 0; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; translate: none; transition: none; }
}

/* ---------- Utilities ---------- */
.center { text-align: center; }
.center .section-rule, .center .eyebrow { margin-inline: auto; }
.center .eyebrow::before { display: none; }
.mt-2 { margin-block-start: 2rem; }
.skip-link {
  position: absolute; inset-inline-start: 1rem; inset-block-start: -10rem;
  background: var(--ink); color: var(--cream); padding: .7em 1.2em; border-radius: 8px;
  z-index: 100; transition: inset-block-start .2s ease;
}
.skip-link:focus { inset-block-start: 1rem; }

/* ---------- Invite modal ---------- */
.invite-modal {
  border: 0; padding: 0; margin: auto;
  inline-size: min(31rem, 92vw);
  background: var(--paper); color: var(--ink);
  border-radius: 22px; box-shadow: var(--shadow-lift);
  overflow: visible;                 /* lets the close button sit just outside the corner (desktop) */
}
.invite-modal::backdrop { background: rgba(30,27,30,.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
/* Keep the dialog hidden even where the UA has no <dialog> support (old Safari) */
.invite-modal:not([open]) { display: none; }
.invite-inner { position: relative; padding: clamp(1.6rem, 4vw, 2.4rem); }
.invite-close {                      /* desktop: a dark circle that floats just outside the top corner */
  position: absolute; inset-block-start: -15px; inset-inline-end: -15px;
  inline-size: 40px; block-size: 40px; border-radius: 50%;
  border: 3px solid var(--paper);
  background: var(--ink); color: var(--paper);
  font-size: 1.35rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; z-index: 3;
  box-shadow: var(--shadow-soft);
  transition: background .15s ease, transform .15s ease;
}
.invite-close:hover { background: var(--red); color: #fff; transform: scale(1.06); }
.invite-modal h2 { font-size: clamp(1.45rem, 4vw, 1.85rem); margin-block: 0 .35rem; }
.invite-sub { color: var(--ink-soft); font-size: .98rem; margin-block-end: 1.35rem; }
html[lang="ar"] .invite-sub { font-size: 1.02rem; }
.invite-form { display: grid; gap: .95rem; }
.invite-field { display: grid; gap: .35rem; }
.invite-field label { font-weight: 700; font-size: .9rem; }
html[lang="ar"] .invite-field label { font-size: 1rem; }
.invite-field .opt { color: var(--slate); font-weight: 500; }
.invite-field input {
  font: inherit; color: var(--ink); inline-size: 100%;
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  padding: .72em .9em;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.invite-field input::placeholder { color: var(--slate); opacity: .7; }
.invite-field input:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(14,165,233,.25); }
.invite-field input:user-invalid { border-color: var(--red); }
.invite-consent {
  display: flex; gap: .55rem; align-items: flex-start;
  font-size: .86rem; color: var(--slate); cursor: pointer;
}
.invite-consent input {
  margin-block-start: .18em; inline-size: 1.05em; block-size: 1.05em;
  accent-color: var(--blue); flex: none; cursor: pointer;
}
.invite-consent a { color: inherit; text-decoration: underline; }
html[lang="ar"] .invite-consent { font-size: .92rem; }
.invite-form .btn { margin-block-start: .3rem; inline-size: 100%; }
.invite-form .btn[disabled] { opacity: .6; cursor: default; transform: none; }
.invite-alt { font-size: .86rem; color: var(--slate); text-align: center; margin: .1rem 0 0; }
html[lang="ar"] .invite-alt { font-size: .92rem; }
/* result panels */
.invite-panel[hidden] { display: none; }
.invite-result { text-align: center; padding-block: .6rem .2rem; }
.invite-result .icon {
  inline-size: 54px; block-size: 54px; border-radius: 50%; margin: 0 auto .9rem;
  display: grid; place-items: center; font-size: 1.7rem; font-weight: 900; color: #fff;
}
.invite-result.ok .icon { background: #1D9E5E; }
.invite-result.err .icon { background: var(--red); }
.invite-result p { color: var(--ink-soft); }
.invite-result .btn.ghost { inline-size: auto; margin-block-start: .4rem; }
/* Phone: close button sits safely inside the corner (never clipped); modal may scroll if short */
@media (max-width: 540px) {
  .invite-modal { max-block-size: 92dvh; overflow: auto; }
  .invite-close {
    inset-block-start: .6rem; inset-inline-end: .6rem;
    inline-size: 38px; block-size: 38px;
    border-color: transparent; box-shadow: none;
    background: var(--cream-deep); color: var(--ink);
  }
  .invite-panel[data-panel="form"] h2 { padding-inline-end: 2.6rem; }
}
