/* Synera home page. Layout, rhythm and motion follow the Synergi agent workspace site;
   colours, logo and lettering are Synera's own (see home/README.md). Logical properties
   throughout, so the Arabic page (dir="rtl") mirrors without a second stylesheet. */

/* The typefaces are served from this site (docs/website-regions.md D7): no request leaves for a font host.
   Montserrat (Latin, Latin-1 and Latin Extended-A, so French and Türkiye) and IBM Plex Sans Arabic (Arabic letters
   only; Latin text on the Arabic pages falls back to Montserrat). Both under the SIL Open Font License 1.1. */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/montserrat-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/montserrat-latin-600.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: optional; src: url("/assets/fonts/plex-arabic-400.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; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 600; font-display: optional; src: url("/assets/fonts/plex-arabic-600.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; }

/* Metric-matched fallbacks, so the swap to the web fonts does not shift the layout */
@font-face { font-family: "Montserrat Fallback"; src: local("Arial"); ascent-override: 85.79%; descent-override: 22.25%; line-gap-override: 0%; size-adjust: 112.83%; }
@font-face { font-family: "IBM Plex Sans Arabic Fallback"; src: local("Arial"); ascent-override: 107.25%; descent-override: 41.02%; line-gap-override: 0%; size-adjust: 101.17%; }

:root {
  --blue: #1d4f89;          /* Synera dark blue */
  --sky: #28abe5;           /* Synera light blue (decorative only: 2.6:1 on white) */
  --ink: #0f2340;           /* headings */
  --ink-soft: #52627a;      /* body copy, 6.1:1 on white */
  --hairline: #e3e9f1;
  --wash: #f5f8fc;
  --navy: #0a2142;          /* footer */
  --white: #fff;
  --radius: 14px;
  --shell: 1440px;
  --gutter: clamp(16px, 4vw, 48px);
  --font: "Montserrat", "Montserrat Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --shadow-shot: 0 2px 6px rgba(15, 35, 64, 0.06), 0 30px 70px -24px rgba(15, 35, 64, 0.32);
  color-scheme: light;
}

:root[lang="ar"] {
  --font: "IBM Plex Sans Arabic", "IBM Plex Sans Arabic Fallback", "Montserrat", ui-sans-serif, system-ui, "Segoe UI", Tahoma, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
bdi { unicode-bidi: isolate; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.site-footer :focus-visible { outline-color: var(--sky); }

.skip {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--blue); color: var(--white); padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-size: 14px; font-weight: 600;
}
.skip:focus { top: 16px; }

.shell { max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }

/* Page background: a faint grid and two soft brand-blue glows, as on the reference site */
.page-bg {
  position: absolute; inset: 0 0 auto; height: 1400px; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(29, 79, 137, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(29, 79, 137, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
}
.glow { position: absolute; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(90px); opacity: 0.55; }
.glow--sky { background: radial-gradient(circle, rgba(40, 171, 229, 0.35), transparent 70%); }
.glow--blue { background: radial-gradient(circle, rgba(29, 79, 137, 0.22), transparent 70%); }

/* Header */
.site-header { position: absolute; inset: 0 0 auto; z-index: 50; }
.site-header .shell { display: flex; align-items: center; justify-content: space-between; height: 96px; gap: 16px; }
.logo-card {
  display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 10px; text-decoration: none; flex: none;
  background: var(--white); box-shadow: 0 2px 12px rgba(15, 35, 64, 0.12); outline: 1px solid var(--hairline);
}
.logo-card img { width: 128px; height: auto; }
.logo-card .powered {
  display: inline-flex; align-items: center; gap: 6px;
  margin-inline-start: 12px; padding-inline-start: 12px; border-inline-start: 1px solid var(--hairline);
  font-size: 11px; line-height: 1.2; color: var(--ink-soft); white-space: nowrap; font-family: "Montserrat", var(--font);
}
.logo-card .powered > span, .foot-powered .powered > span { display: inline-flex; align-items: center; gap: 6px; }
.logo-card .powered img { width: 86px; height: auto; }
@media (max-width: 520px) {
  .logo-card { flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 14px; }
  .logo-card img { width: 112px; }
  .logo-card .powered { margin: 0; padding: 0; border: 0; font-size: 10px; }
  .logo-card .powered img { width: 60px; }
}
.nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 28px); }
.nav a { font-size: 14px; color: var(--ink-soft); text-decoration: none; transition: color 0.2s; }
.nav a:hover { color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); }
.nav .nav-link { white-space: nowrap; }
.nav .nav-link[aria-current="page"] { color: var(--blue); font-weight: 600; }
.menu-btn {
  display: none; align-items: center; gap: 8px; font: 600 14px/20px var(--font); color: var(--ink);
  background: var(--white); border: 1px solid var(--hairline); border-radius: 999px; padding: 9px 16px; cursor: pointer;
}
.menu-btn svg { width: 16px; height: 16px; }
@media (max-width: 1399px) {
  .menu-btn { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; inset-inline: var(--gutter); top: 88px; z-index: 60;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px; border-radius: var(--radius);
    background: var(--white); border: 1px solid var(--hairline); box-shadow: 0 24px 60px -24px rgba(15, 35, 64, 0.45);
  }
  .nav.open .nav-links { display: flex; }
  .nav .nav-link { padding: 14px 16px; border-radius: 10px; font-size: 15px; }
  .nav .nav-link:hover { background: var(--wash); }
}
.nav .lang { font-weight: 600; color: var(--blue); }
.nav .langs { display: inline-flex; gap: 14px; align-items: center; }
.nav .lang[lang="ar"] { font-family: "IBM Plex Sans Arabic", var(--font); font-size: 15px; }
.nav .nav-signin, .nav .nav-lang { display: none; }
/* Narrower screens: the header keeps the logo, the menu button and (above 640px) the two other languages; the sign-in
   button moves into the menu below 800px, and the languages below 640px, so the header never scrolls sideways. */
@media (max-width: 800px) { .nav > .btn { display: none; } .nav { gap: 12px; } .nav .langs { gap: 10px; } .nav .nav-signin { display: block; color: var(--blue); font-weight: 600; } }
@media (max-width: 640px) { .nav .langs { display: none; } .nav .nav-lang { display: block; font-weight: 600; color: var(--blue); } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; text-decoration: none;
  font-size: 14px; font-weight: 600; line-height: 20px; padding: 14px 24px; transition: all 0.25s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform 0.25s ease; }
.btn:hover svg { transform: translateX(3px); }
[dir="rtl"] .btn svg { transform: scaleX(-1); }
[dir="rtl"] .btn:hover svg { transform: scaleX(-1) translateX(3px); }
.btn--primary { background: var(--blue); color: var(--white); box-shadow: 0 8px 30px rgba(29, 79, 137, 0.32); }
.btn--primary:hover { background: #17427a; box-shadow: 0 10px 34px rgba(29, 79, 137, 0.42); }
.btn--outline { border: 1px solid rgba(29, 79, 137, 0.45); color: var(--ink); padding: 10px 20px; background: rgba(255, 255, 255, 0.7); }
.btn--outline:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn--ghost { color: var(--blue); padding-inline: 4px; }
.btn--ghost:hover { color: var(--ink); }

/* Type */
.eyebrow {
  display: flex; align-items: center; gap: 14px; margin: 0 0 24px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue);
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--sky); flex: none; }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { content: ""; width: 32px; height: 1px; background: var(--sky); flex: none; }
:root[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 14px; }

.h-display, .h-section, .h-cta { margin: 0; font-weight: 600; color: var(--ink); text-wrap: balance; }
.h-display { font-size: clamp(40px, 4.9vw, 72px); line-height: 1.02; letter-spacing: -0.045em; }
.h-section { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.1; letter-spacing: -0.035em; }
.h-cta { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -0.04em; }
:root[lang="ar"] .h-display, :root[lang="ar"] .h-section, :root[lang="ar"] .h-cta { letter-spacing: 0; line-height: 1.3; font-weight: 600; }
:root[lang="ar"] .h-display { font-size: clamp(38px, 4.6vw, 66px); line-height: 1.25; }

.lead { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.75; color: var(--ink-soft); margin: 28px 0 0; max-width: 34em; }
.body { font-size: 16px; line-height: 1.8; color: var(--ink-soft); margin: 24px 0 0; max-width: 32em; }
:root[lang="ar"] .lead, :root[lang="ar"] .body { line-height: 1.95; }

.tagline { margin: 22px 0 0; text-align: center; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); }
:root[lang="ar"] .tagline { letter-spacing: 0; font-size: 13px; }

/* Hero */
.hero { position: relative; padding-top: 120px; padding-bottom: 72px; overflow-x: hidden; overflow-x: clip; }
.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1080px) {
  .hero-grid { grid-template-columns: 0.92fr 1.08fr; gap: 56px; }
}
.hero .glow--sky { width: 760px; height: 760px; inset-inline-end: -160px; top: 80px; }
.hero .glow--blue { width: 520px; height: 520px; inset-inline-start: -200px; top: 420px; }

.signin { display: grid; gap: 14px; margin-top: 40px; max-width: 600px; }
@media (min-width: 620px) { .signin { grid-template-columns: 1fr 1fr; } }
.signin-card {
  position: relative; padding: 22px 22px 20px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--hairline); box-shadow: 0 14px 40px -22px rgba(15, 35, 64, 0.35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.signin-card:hover { border-color: rgba(40, 171, 229, 0.6); box-shadow: 0 20px 50px -22px rgba(29, 79, 137, 0.45); transform: translateY(-2px); }
.signin-card h2 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.signin-card h2 img { width: 24px; height: 24px; }
.signin-card p { margin: 6px 0 16px; font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
.signin-card .links { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.signin-card .btn--primary { padding: 11px 18px; box-shadow: 0 6px 20px rgba(29, 79, 137, 0.28); }
.signin-card .btn--ghost { padding: 11px 2px; }

/* Screenshot frames */
.shot {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--white);
  border: 1px solid rgba(15, 35, 64, 0.1); box-shadow: var(--shadow-shot);
}
.shot img { width: 100%; height: auto; }
.shot--paper { border-radius: 6px; max-width: 560px; margin-inline: auto; }
.shot--paper img { aspect-ratio: 1654 / 1700; object-fit: cover; object-position: top; }
.shot-caption { margin-top: 14px; font-size: 13px; color: var(--ink-soft); text-align: center; }

.phones { display: flex; justify-content: center; align-items: flex-start; gap: clamp(16px, 3vw, 36px); }
.phone {
  margin: 0; width: min(42%, 270px); border-radius: 38px; padding: 8px; background: #0b1b33;
  box-shadow: 0 30px 70px -26px rgba(15, 35, 64, 0.55);
}
.phone img { border-radius: 30px; width: 100%; aspect-ratio: 1170 / 2532; object-fit: cover; }
.phone + .phone { margin-top: 56px; }

/* Sections */
.section { position: relative; padding-block: clamp(80px, 11vw, 150px); overflow-x: hidden; overflow-x: clip; }
.section--wash { background: linear-gradient(180deg, var(--white), var(--wash) 18%, var(--wash) 82%, var(--white)); }
.intro { text-align: center; max-width: 900px; margin-inline: auto; }
.intro .lead { margin-inline: auto; max-width: 40em; }

.feature { display: grid; gap: 40px; align-items: center; padding-block: clamp(56px, 8vw, 110px); }
@media (min-width: 980px) {
  .feature { grid-template-columns: 0.85fr 1.15fr; gap: clamp(48px, 6vw, 96px); }
  .feature--flip .feature-copy { order: 2; }
  .feature--flip { grid-template-columns: 1.15fr 0.85fr; }
}
.feature-copy { max-width: 560px; }
.feature .glow { width: 600px; height: 600px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.chips li { font-size: 13px; padding: 7px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--hairline); color: var(--ink); }

.pack-card {
  position: relative; border-radius: var(--radius); background: var(--white); border: 1px solid var(--hairline);
  box-shadow: var(--shadow-shot); padding: clamp(24px, 3vw, 40px); max-width: 620px; margin-inline: auto; width: 100%;
}
.pack-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 16px 0; border-bottom: 1px solid var(--hairline); align-items: baseline; }
.pack-row:last-child { border-bottom: 0; }
.pack-row b { font-weight: 600; font-size: 15px; }
.pack-row span { font-size: 13px; color: var(--ink-soft); }
.pack-row em { font-style: normal; font-size: 12px; font-weight: 600; color: #11683f; background: #e7f6ee; padding: 3px 10px; border-radius: 999px; }
.pack-row em.next { color: var(--blue); background: #e8f1fb; }
.pack-row em.people { color: #7a4b00; background: #fdf1dc; }
.chips--small { gap: 8px; }
.chips--small li { font-size: 12px; padding: 5px 11px; }

/* Procurement */
.proc-hero { margin-top: clamp(48px, 7vw, 88px); }
.cards { display: grid; gap: 28px; margin-top: clamp(48px, 6vw, 72px); }
@media (min-width: 760px) { .cards { grid-template-columns: 1fr 1fr; } .card--wide { grid-column: 1 / -1; } }
.card {
  border-radius: calc(var(--radius) + 4px); background: var(--white); border: 1px solid var(--hairline);
  padding: 14px 14px 26px; box-shadow: 0 18px 50px -32px rgba(15, 35, 64, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 26px 60px -30px rgba(15, 35, 64, 0.45); }
.card .shot { box-shadow: none; border-radius: 10px; }
/* A card with no picture (Synera CRM's API card): icon, heading and text, centred in its cell */
.card--text { display: flex; flex-direction: column; justify-content: center; padding: 28px 22px; }
.card--text .why-icon { margin-inline-start: 12px; }
.card h3 { margin: 22px 12px 0; font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.card p { margin: 8px 12px 0; font-size: 15px; line-height: 1.7; color: var(--ink-soft); }
:root[lang="ar"] .card h3 { letter-spacing: 0; }

/* Why Synera */
.why { display: grid; gap: 20px; margin-top: clamp(48px, 6vw, 72px); }
@media (min-width: 700px) { .why { grid-template-columns: 1fr 1fr; } .why-card:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .why { grid-template-columns: repeat(6, 1fr); } .why-card { grid-column: span 2; } .why-card:nth-child(n+4) { grid-column: span 3; } .why-card:last-child:nth-child(odd) { grid-column: span 3; }
  .why-card:first-child:nth-last-child(6), .why-card:first-child:nth-last-child(6) ~ .why-card { grid-column: span 2; } }
.why-card {
  border-radius: var(--radius); background: rgba(255, 255, 255, 0.9); border: 1px solid var(--hairline);
  padding: 28px 26px 30px; box-shadow: 0 18px 50px -36px rgba(15, 35, 64, 0.4);
}
.why-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #e8f1fb; color: var(--blue); }
.why-icon svg { width: 22px; height: 22px; }
.why-card h3 { margin: 22px 0 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; }
.why-card p { margin: 10px 0 0; font-size: 15px; line-height: 1.7; color: var(--ink-soft); }
:root[lang="ar"] .why-card h3 { letter-spacing: 0; }

/* Closing call to action */
.cta { text-align: center; position: relative; }
.cta .glow--sky { width: 820px; height: 520px; inset-inline-start: 50%; top: 50%; transform: translate(-50%, -50%); opacity: 0.45; }
[dir="rtl"] .cta .glow--sky { transform: translate(50%, -50%); }
.cta .lead { margin-inline: auto; max-width: 36em; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px 18px; justify-content: center; align-items: center; margin-top: 40px; }
.cta-mail { margin-top: 18px; font-size: 14px; color: var(--ink-soft); }
.cta-mail a { color: var(--blue); font-weight: 600; }

/* Footer */
.site-footer { position: relative; overflow: hidden; background: var(--navy); color: #c9d5e6; }
.site-footer .shell { position: relative; z-index: 1; }
.foot-grid { display: grid; gap: 40px; padding-block: 64px 48px; }
@media (min-width: 700px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; } }
.foot-synera { width: 150px; }
.foot-powered { margin: 14px 0 0; font-size: 13px; color: var(--white); font-family: "Montserrat", var(--font); }
.foot-powered .powered { display: inline-flex; align-items: center; gap: 8px; }
.foot-powered img { width: 96px; height: auto; }
.foot-powered a { color: inherit; text-decoration: none; }
.foot-visit { margin: 14px 0 0; font-size: 14px; color: #a9b8cd; }
.foot-visit a { color: var(--white); font-weight: 600; text-decoration: none; }
.foot-visit a:hover, .foot-base p a:hover { text-decoration: underline; }
.foot-base p a { color: var(--white); }
.foot-mail { margin: 10px 0 0; font-size: 14px; }
.foot-mail a { color: var(--white); text-decoration: none; font-weight: 600; }
.foot-mail a:hover { text-decoration: underline; }
.foot-about { margin: 22px 0 0; font-size: 14px; line-height: 1.85; color: #a9b8cd; max-width: 26em; }
.foot-col h2 { margin: 0 0 16px; font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--white); }
:root[lang="ar"] .foot-col h2 { letter-spacing: 0; font-size: 14px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.foot-col a { font-size: 14px; color: #a9b8cd; text-decoration: none; transition: color 0.2s; }
.foot-col a:hover { color: var(--white); }
.foot-base {
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-block: 24px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 12px; color: #8b9cb4;
}
.foot-base a { color: #a9b8cd; text-decoration: none; }
.foot-base a:hover { color: var(--white); }
.foot-mark { position: absolute; inset-inline-end: -140px; bottom: -160px; width: 560px; opacity: 0.07; pointer-events: none; }

/* Motion: the reference site's tune-in, rise and curtain, plus a reveal on scroll.
   Content is visible without JavaScript; .js is set by assets/js/site.js. */
@keyframes tune-in {
  0% { opacity: 0; filter: blur(8px); transform: translateX(-8px); }
  55% { opacity: 1; filter: blur(1px); }
  100% { opacity: 1; filter: blur(0); transform: none; }
}
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes curtain-in { from { opacity: 0; transform: translateX(90px); } to { opacity: 1; transform: none; } }
@keyframes curtain-in-rtl { from { opacity: 0; transform: translateX(-90px); } to { opacity: 1; transform: none; } }
.hero-tune { animation: tune-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.hero-rise { animation: rise-in 0.8s ease-out 0.35s both; }
.hero-rise-2 { animation: rise-in 0.8s ease-out 0.55s both; }
.hero-curtain { animation: curtain-in 1.05s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both; }
[dir="rtl"] .hero-curtain { animation-name: curtain-in-rtl; }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-tune, .hero-rise, .hero-rise-2, .hero-curtain { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .signin-card, .card, .btn, .btn svg { transition: none; }
}

.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;
}

@media (min-width: 980px) {
  .card--wide { display: grid; grid-template-columns: 1.5fr 1fr; gap: 8px 40px; align-items: center; padding: 14px; }
  .card--wide .shot { grid-row: span 2; }
  .card--wide h3 { margin-top: 0; align-self: end; }
  .card--wide p { align-self: start; margin-bottom: 0; }
}

/* AI-native section */
.section--ai { background: linear-gradient(180deg, var(--white), #f2f8fd 20%, #f2f8fd 80%, var(--white)); }
.principles {
  display: grid; gap: 16px; margin-top: clamp(40px, 5vw, 64px); padding: clamp(20px, 3vw, 32px);
  border-radius: calc(var(--radius) + 4px); background: var(--white); border: 1px solid var(--hairline);
  box-shadow: 0 18px 50px -36px rgba(15, 35, 64, 0.4);
}
@media (min-width: 900px) { .principles { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.principle { display: flex; gap: 16px; align-items: flex-start; }
.principle .why-icon { flex: none; }
.principle h3 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.4; }
.principle p { margin: 6px 0 0; font-size: 14px; line-height: 1.7; color: var(--ink-soft); }
.ai-grid { display: grid; gap: 20px; margin-top: 28px; }
@media (min-width: 700px) { .ai-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1180px) { .ai-grid { grid-template-columns: repeat(4, 1fr); } }
.ai-card {
  position: relative; border-radius: var(--radius); background: rgba(255, 255, 255, 0.92); border: 1px solid var(--hairline);
  padding: 24px 24px 26px; box-shadow: 0 18px 50px -36px rgba(15, 35, 64, 0.4); transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ai-card::before { content: ""; position: absolute; inset-inline: 24px; top: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--blue), var(--sky)); }
[dir="rtl"] .ai-card::before { background: linear-gradient(270deg, var(--blue), var(--sky)); }
.ai-card:hover { transform: translateY(-3px); box-shadow: 0 26px 60px -32px rgba(15, 35, 64, 0.45); }
.ai-tag { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); }
.ai-card h3 { margin: 12px 0 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; }
.ai-card p:last-child { margin: 10px 0 0; font-size: 14.5px; line-height: 1.7; color: var(--ink-soft); }
:root[lang="ar"] .ai-tag { letter-spacing: 0; text-transform: none; font-size: 13px; }
:root[lang="ar"] .ai-card h3, :root[lang="ar"] .principle h3 { letter-spacing: 0; }
@media (prefers-reduced-motion: reduce) { .ai-card { transition: none; } }

/* Hover lift must beat the revealed state (.js .reveal.in sets transform: none) */
.js .reveal.in.card:hover, .js .reveal.in.ai-card:hover { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .js .reveal.in.card:hover, .js .reveal.in.ai-card:hover { transform: none; } }

/* Inner pages: a shorter hero */
.page-hero { position: relative; padding-top: 150px; padding-bottom: clamp(40px, 6vw, 72px); overflow-x: hidden; overflow-x: clip; }
.page-hero .glow--sky { width: 700px; height: 700px; inset-inline-end: -200px; top: 20px; }
.page-hero .lead { max-width: 42em; }
.page-hero .cta-actions { justify-content: flex-start; margin-top: 32px; }
.crumbs { margin: 0 0 20px; font-size: 13px; color: var(--ink-soft); }
.crumbs a { color: var(--blue); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Product teasers on the home page */
.products { display: grid; gap: 28px; margin-top: clamp(48px, 6vw, 72px); }
@media (min-width: 980px) { .products { grid-template-columns: 1fr 1fr; } }
/* Three products: three columns on a wide screen; between 980 and 1179 px the third card spans both columns,
   with its picture beside the text */
@media (min-width: 980px) and (max-width: 1179px) {
  .products--3 .product:nth-child(3) { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; column-gap: 32px; align-content: start; }
  .products--3 .product:nth-child(3) .shot { grid-row: 1 / span 5; align-self: start; }
}
@media (min-width: 1180px) { .products--3 { grid-template-columns: repeat(3, 1fr); } }
.product {
  display: flex; flex-direction: column; border-radius: calc(var(--radius) + 6px); background: var(--white);
  border: 1px solid var(--hairline); padding: 16px 16px 30px; box-shadow: 0 18px 50px -32px rgba(15, 35, 64, 0.35);
}
.product .shot { box-shadow: none; border-radius: 10px; }
.product h3 { margin: 26px 14px 0; display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.product h3 img { width: 28px; height: 28px; }
.product > p { margin: 10px 14px 0; font-size: 15.5px; line-height: 1.75; color: var(--ink-soft); }
.product ul { margin: 18px 14px 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.product li { position: relative; padding-inline-start: 26px; font-size: 15px; line-height: 1.6; color: var(--ink); }
.product li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.5em; width: 14px; height: 8px; border-inline-start: 2px solid var(--sky); border-bottom: 2px solid var(--sky); transform: rotate(-45deg); }
[dir="rtl"] .product li::before { transform: rotate(45deg); }
.product .links { margin: auto 14px 0; padding-top: 26px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
:root[lang="ar"] .product h3 { letter-spacing: 0; }

/* Long-form text: privacy, terms, security detail */
.prose { max-width: 820px; }
.prose h2 { margin: 56px 0 0; font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; scroll-margin-top: 24px; }
.prose h3 { margin: 32px 0 0; font-size: 18px; font-weight: 600; line-height: 1.4; }
.prose p, .prose li { font-size: 16px; line-height: 1.8; color: var(--ink-soft); }
.prose p { margin: 16px 0 0; }
.prose ul, .prose ol { margin: 16px 0 0; padding-inline-start: 24px; }
.prose li + li { margin-top: 8px; }
.prose a { color: var(--blue); font-weight: 600; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0 0; font-size: 14.5px; }
.prose th, .prose td { text-align: start; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--hairline); line-height: 1.6; color: var(--ink-soft); }
.prose th { color: var(--ink); font-weight: 600; background: var(--wash); }
.table-wrap { overflow-x: auto; }
:root[lang="ar"] .prose h2 { letter-spacing: 0; }
:root[lang="ar"] .prose p, :root[lang="ar"] .prose li { line-height: 1.95; }
.doc-meta { margin: 20px 0 0; font-size: 14px; color: var(--ink-soft); }
.notice {
  margin: 28px 0 0; padding: 16px 20px; border-radius: 12px; background: #fdf6e7; border: 1px solid #f1dcae;
  font-size: 14.5px; line-height: 1.7; color: #5d4300;
}
.toc { margin: 32px 0 0; padding: 20px 24px; border-radius: var(--radius); background: var(--wash); border: 1px solid var(--hairline); }
.toc h2 { margin: 0; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); }
:root[lang="ar"] .toc h2 { letter-spacing: 0; font-size: 15px; }
.toc ol { margin: 12px 0 0; padding-inline-start: 20px; columns: 2 260px; column-gap: 32px; }
.toc li { font-size: 14.5px; line-height: 1.6; margin-bottom: 6px; break-inside: avoid; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--blue); text-decoration: underline; }

/* Questions and answers */
.faq { max-width: 900px; margin: clamp(40px, 5vw, 64px) auto 0; display: grid; gap: 12px; }
.faq details { border-radius: var(--radius); background: var(--white); border: 1px solid var(--hairline); padding: 0 22px; box-shadow: 0 12px 36px -30px rgba(15, 35, 64, 0.4); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 32px 20px 0; position: relative; font-size: 16.5px; font-weight: 600; line-height: 1.45; }
[dir="rtl"] .faq summary { padding: 20px 0 20px 32px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 0; top: 16px; font-size: 22px; font-weight: 400; color: var(--blue); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 20px; font-size: 15.5px; line-height: 1.8; color: var(--ink-soft); }

/* Deployment models on the security page */
.models { display: grid; gap: 20px; margin-top: clamp(40px, 5vw, 64px); }
@media (min-width: 900px) { .models { grid-template-columns: repeat(3, 1fr); } }
.model { border-radius: var(--radius); background: var(--white); border: 1px solid var(--hairline); padding: 28px 26px; box-shadow: 0 18px 50px -36px rgba(15, 35, 64, 0.4); }
.model h3 { margin: 18px 0 0; font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.model .ai-tag { margin-top: 0; }
.model p { margin: 10px 0 0; font-size: 15px; line-height: 1.7; color: var(--ink-soft); }
.model ul { margin: 14px 0 0; padding-inline-start: 18px; font-size: 14.5px; line-height: 1.7; color: var(--ink-soft); }
:root[lang="ar"] .model h3 { letter-spacing: 0; }

/* Pricing */
.soon {
  max-width: 760px; margin: 0 auto; text-align: center; border-radius: calc(var(--radius) + 6px); background: var(--white);
  border: 1px solid var(--hairline); padding: clamp(32px, 5vw, 56px); box-shadow: var(--shadow-shot);
}
.soon .badge { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); background: #e8f1fb; padding: 6px 14px; border-radius: 999px; }
:root[lang="ar"] .soon .badge { letter-spacing: 0; font-size: 14px; }
.soon h2 { margin: 22px 0 0; }
.soon .lead { margin-inline: auto; }

/* Contact form */
.contact-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 980px) { .contact-grid { grid-template-columns: 1.3fr 0.7fr; gap: 64px; } }
.form { border-radius: calc(var(--radius) + 6px); background: var(--white); border: 1px solid var(--hairline); padding: clamp(22px, 3.5vw, 40px); box-shadow: var(--shadow-shot); }
.form-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; margin-top: 18px; }
.form-row .field { margin-top: 0; }
.form-row + .field, .form-row + .form-row, .field + .form-row { margin-top: 18px; }
.field label, .field legend { font-size: 14px; font-weight: 600; color: var(--ink); padding: 0; }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: 15px/1.5 var(--font); color: var(--ink); background: var(--white); border: 1px solid #c9d4e3; border-radius: 10px;
  padding: 11px 14px; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(29, 79, 137, 0.25); border-color: var(--blue); }
fieldset.field { border: 0; margin-inline: 0; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; font-size: 14.5px; border: 1px solid var(--hairline); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.choices input { width: auto; accent-color: var(--blue); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
.consent input { margin-top: 4px; accent-color: var(--blue); flex: none; width: 16px; height: 16px; }
.consent a { color: var(--blue); font-weight: 600; }
.hp { position: absolute !important; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form [type="submit"] { display: none; }
.has-js .form [type="submit"] { display: inline-flex; }
.form .btn { margin-top: 24px; border: 0; cursor: pointer; font-family: var(--font); }
.form .btn[disabled] { opacity: 0.6; cursor: wait; }
.form-status { margin: 18px 0 0; font-size: 15px; line-height: 1.6; }
.form-status:empty { display: none; }
.form-status.ok { color: #11683f; background: #e7f6ee; padding: 14px 16px; border-radius: 10px; }
.form-status.err { color: #8a1f1f; background: #fdecec; padding: 14px 16px; border-radius: 10px; }
.form-status a { color: inherit; font-weight: 600; }
.side-card { border-radius: var(--radius); background: var(--wash); border: 1px solid var(--hairline); padding: 26px; }
.side-card + .side-card { margin-top: 16px; }
.side-card h2 { margin: 0; font-size: 18px; font-weight: 600; }
.side-card p { margin: 10px 0 0; font-size: 15px; line-height: 1.7; color: var(--ink-soft); }
.side-card a { color: var(--blue); font-weight: 600; }

/* Coming-soon product strip on the home page */
.product-soon {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin-top: 28px;
  border-radius: calc(var(--radius) + 6px); background: var(--white); border: 1px dashed rgba(29, 79, 137, 0.35);
  padding: 26px 30px;
}
.product-soon .badge { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); background: #e8f1fb; padding: 5px 12px; border-radius: 999px; }
:root[lang="ar"] .product-soon .badge { letter-spacing: 0; font-size: 13px; }
.product-soon h3 { margin: 12px 0 0; display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.product-soon h3 img { width: 26px; height: 26px; }
.product-soon p { margin: 8px 0 0; font-size: 15px; line-height: 1.7; color: var(--ink-soft); max-width: 40em; }
:root[lang="ar"] .product-soon h3 { letter-spacing: 0; }

/* Card grids with a fixed column count (the default .why layout suits five cards) */
@media (min-width: 1100px) {
  .why--2 .why-card, .why--3 .why-card, .why--4 .why-card { grid-column: auto !important; }
  .why--2 { grid-template-columns: repeat(2, 1fr); }
  .why--3 { grid-template-columns: repeat(3, 1fr); }
  .why--4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 700px) { .why--4 .why-card:last-child:nth-child(odd) { grid-column: auto; } }

/* Country editions (docs/website-regions.md): the edition switch and the edition's company line in the footer */
.foot-edition { margin-top: 28px; font-size: 13px; color: rgba(255, 255, 255, 0.78); }
.foot-edition a { color: #fff; }
.foot-edition a[aria-current] { font-weight: 600; text-decoration: none; }
.foot-company { margin: 8px 0 0; font-size: 12px; line-height: 1.6; color: rgba(255, 255, 255, 0.66); max-width: 60em; }

/* Price tables, rendered from tools/prices.json */
.prices { margin-top: clamp(40px, 5vw, 64px); }
.price-cur, .price-source { font-size: 13px; color: var(--ink-soft); }
.price-source { opacity: 0.6; }
.price-section { margin-top: 32px; }
.price-section h3 { font-size: 20px; font-weight: 600; margin: 0 0 16px; color: var(--ink); }
.price-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .price-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } }
.price-card { border-radius: var(--radius); background: var(--white); border: 1px solid var(--hairline); padding: 20px 22px; }
.price-card h4 { margin: 0 0 10px; font-size: 17px; font-weight: 600; color: var(--ink); }
.price-card ul { list-style: none; margin: 0; padding: 0; }
.price-card li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14px; color: var(--ink-soft); border-top: 1px solid var(--hairline); }
.price-card li b { color: var(--ink); white-space: nowrap; }
.price-note { margin: 10px 0 0; font-size: 13px; color: var(--ink-soft); }
.price-bands { margin: 14px 0 0; padding-inline-start: 18px; font-size: 14px; color: var(--ink-soft); }
.prices--other { margin-top: 40px; }
.prices--other summary { cursor: pointer; font-weight: 600; color: var(--blue); }
