/*
 * allysen.ai: the company site's one stylesheet (index.html and privacy.html, in English at the root, French in fr/,
 * Arabic in ar/).
 * Token values are those of the Allysen design system (customer-care app, layers/allysen-ui/public/allysen-ui/tokens.css):
 * dark by default, light when the system asks for it and no theme was chosen, or when Light was chosen (theme.js).
 * Logical properties throughout, so the Arabic pages (dir="rtl") mirror by themselves.
 * The type follows the Customer Care public site (site-eyebrow,
 * site-title with its gradient end, site-line). System fonts only: nothing is loaded from another company.
 */

/* ---------- Tokens ---------- */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  /* Arabic: the system's own Arabic faces (nothing loaded). system-ui first after Apple's names: Chrome reaches SF Arabic
     only through it (the face is hidden as ".SF Arabic", so the name alone fell to Geeza Pro). */
  --font-arabic: -apple-system, BlinkMacSystemFont, system-ui, "SF Arabic", "Geeza Pro", "Segoe UI", "Noto Sans Arabic", Tahoma, Arial, sans-serif;

  --text-large-title: 2.125rem;
  --text-title-1: 1.75rem;
  --text-title-2: 1.375rem;
  --text-title-3: 1.25rem;
  --text-body: 1.0625rem;
  --text-callout: 1rem;
  --text-subhead: 0.9375rem;
  --text-footnote: 0.8125rem;
  --text-ui-2xs: 0.68rem;
  --text-ui-xs: 0.75rem;
  --text-ui-sm: 0.82rem;
  --text-ui-md: 0.92rem;
  --text-ui-lg: 1.05rem;
  --leading-body: 1.47;

  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  --space-0-5: 0.125rem;
  --space-1: 0.25rem;
  --space-1-5: 0.375rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;

  --radius-xs: 0.375rem;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-pill: 999px;

  --control-xs: 1.5rem;
  --control-sm: 2rem;
  --control-lg: 2.75rem;
  --icon-sm: 1rem;
  --icon-md: 1.2rem;
  --duration-fast: 0.15s;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* The Customer Care site's bar: the design system's header height plus a step. */
  --header-h: 3.85rem;
  --site-max: 76rem;
  --site-pad: max(var(--space-4), env(safe-area-inset-left), env(safe-area-inset-right));

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.18);
  --on-fill: #fff;
  --shade: #000;

  /* Dark (the default, and the choice "Dark"): the design system's dark palette. */
  color-scheme: dark;
  --bg: #000000;
  --surface-1: #1C1C1E;
  --surface-2: #2C2C2E;
  --border: rgba(255, 255, 255, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.2);
  --text-primary: #F5F5F7;
  --text-secondary: #AEAEB2;
  --text-muted: #98989D;
  --accent: #2997FF;
  --accent-fill: #0071E3;
  --accent-soft: rgba(10, 132, 255, 0.16);
  --accent-ring: rgba(10, 132, 255, 0.5);
  --success: #30D158;
  --success-soft: rgba(48, 209, 88, 0.16);
  --ai: #A78BFA;
  --ai-soft: rgba(124, 58, 237, 0.2);
  --sun: #FFD60A;
  --chip-bg: rgba(118, 118, 128, 0.24);
  --header-bg: rgba(22, 22, 23, 0.8);
}

/* Light: when the system asks for it and no theme was chosen ("System"), or when "Light" was chosen (theme.js sets
   <html data-theme>). The same values twice, kept identical. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #F2F2F7;
    --surface-1: #FFFFFF;
    --surface-2: #F5F5F7;
    --border: rgba(0, 0, 0, 0.1);
    --border-subtle: rgba(0, 0, 0, 0.06);
    --border-strong: rgba(0, 0, 0, 0.18);
    --text-primary: #1D1D1F;
    --text-secondary: #636366;
    --text-muted: #6C6C71;
    --accent: #0066CC;
    --accent-fill: #0066CC;
    --accent-soft: rgba(0, 113, 227, 0.1);
    --accent-ring: rgba(0, 113, 227, 0.4);
    --success: #1E7A34;
    --success-soft: rgba(52, 199, 89, 0.14);
    --ai: #7C3AED;
    --ai-soft: rgba(124, 58, 237, 0.1);
    --sun: #FF9F0A;
    --chip-bg: rgba(118, 118, 128, 0.12);
    --header-bg: rgba(255, 255, 255, 0.8);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F2F2F7;
  --surface-1: #FFFFFF;
  --surface-2: #F5F5F7;
  --border: rgba(0, 0, 0, 0.1);
  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-strong: rgba(0, 0, 0, 0.18);
  --text-primary: #1D1D1F;
  --text-secondary: #636366;
  --text-muted: #6C6C71;
  --accent: #0066CC;
  --accent-fill: #0066CC;
  --accent-soft: rgba(0, 113, 227, 0.1);
  --accent-ring: rgba(0, 113, 227, 0.4);
  --success: #1E7A34;
  --success-soft: rgba(52, 199, 89, 0.14);
  --ai: #7C3AED;
  --ai-soft: rgba(124, 58, 237, 0.1);
  --sun: #FF9F0A;
  --chip-bg: rgba(118, 118, 128, 0.12);
  --header-bg: rgba(255, 255, 255, 0.8);
}

:root {
  --fg: var(--text-primary);
  --muted: var(--text-secondary);
  --faint: var(--text-muted);
  --line: var(--border);
  --line-strong: var(--border-strong);
  --surface: var(--surface-1);
  --surface-elevated: var(--surface-2);
  --hover-fill: color-mix(in srgb, var(--fg) 5%, transparent);
}

/* Arabic: its own faces, and taller lines for its letters. */
:root:lang(ar) {
  --font-sans: var(--font-arabic);
  --font-display: var(--font-arabic);
  --leading-body: 1.6;
}

/* ---------- Base ---------- */

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

html {
  scroll-padding-top: var(--header-h);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Screen by screen: the scroll settles at the top of a screen near it. */
html:has(.screen) {
  scroll-snap-type: y proximity;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  letter-spacing: -0.016em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  inset-block-start: var(--space-2);
  inset-inline-start: var(--space-2);
  z-index: 30;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--accent-fill);
  color: var(--on-fill);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Header (the Customer Care site's SiteHeader) ---------- */

/* The brand on one side, the links in the middle, then the language and appearance button and "Contact us". Under
   900 px the links go into a menu (the button with three lines, a panel under the bar); the brand, the preferences and
   "Contact us" always stay in the bar. Logical properties: in Arabic the whole bar mirrors. */
.header {
  position: sticky;
  inset-block-start: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

.header__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  height: var(--header-h);
  max-width: var(--site-max);
  margin-inline: auto;
  padding-inline: var(--site-pad);
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: var(--space-2);
  border-radius: var(--radius-sm);
  color: var(--fg);
  font-family: var(--font-display);
  font-size: var(--text-title-3);
  font-weight: var(--weight-bold);
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
}

.brand .mark {
  width: 1.75rem;
  height: 1.75rem;
}

.nav {
  display: none;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: block;
  padding: var(--space-1-5) var(--space-2);
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: var(--text-ui-md);
  font-weight: var(--weight-medium);
  text-decoration: none;
  white-space: nowrap;
  transition:
    color var(--duration-fast) ease,
    background var(--duration-fast) ease;
}

.nav a:hover {
  background: var(--hover-fill);
  color: var(--fg);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-inline-start: auto;
}

/* The phone's menu button (UiIconButton sm square). */
.menu-btn {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: var(--control-sm);
  height: var(--control-sm);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-size: var(--icon-sm);
  cursor: pointer;
  transition:
    background var(--duration-fast) ease,
    color var(--duration-fast) ease;
}

.menu-btn:hover,
.menu-btn[aria-expanded="true"] {
  background: var(--accent-soft);
  color: var(--accent);
}

.menu-btn .i-close,
.menu-btn[aria-expanded="true"] .i-open {
  display: none;
}

.menu-btn[aria-expanded="true"] .i-close {
  display: block;
}

.menu {
  max-height: calc(100dvh - var(--header-h) - var(--space-2));
  overflow-y: auto;
  padding: var(--space-2) var(--site-pad) var(--space-6);
  border-top: 1px solid var(--border-subtle);
}

.menu ul {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-1);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--fg);
  font-size: var(--text-callout);
  font-weight: var(--weight-medium);
  text-decoration: none;
}

.menu a .icon {
  color: var(--faint);
}

@media (min-width: 900px) {
  /* The brand on one side, the links in the middle of the page, the actions on the other side. */
  .header__bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }

  .nav {
    display: flex;
  }

  .brand {
    justify-self: start;
  }

  .header__actions {
    justify-self: end;
  }

  .menu-btn,
  .menu {
    display: none;
  }
}

/* ---------- Language and appearance (the design system's UiPreferencesMenu) ---------- */

.prefs {
  position: relative;
}

/* The button: a small ghost button drawn by a hairline, the globe and the language's code, then the appearance's icon
   (System a screen, Light a sun in the sun's yellow, Dark a moon in the accent) and a small chevron. */
.prefs__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: var(--control-sm);
  margin: 0;
  padding-block: 0;
  padding-inline: var(--space-3) var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: var(--text-ui-sm);
  font-weight: var(--weight-semibold);
  line-height: 1;
  cursor: pointer;
  transition:
    background var(--duration-fast) ease,
    color var(--duration-fast) ease;
}

.prefs__btn:hover,
.prefs__btn[aria-expanded="true"] {
  background: var(--hover-fill);
  color: var(--fg);
}

.prefs__where {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1-5);
  letter-spacing: 0.02em;
}

.prefs__globe {
  font-size: var(--icon-sm);
}

.prefs__sep {
  width: 1px;
  height: var(--space-3);
  background: var(--line);
}

.prefs__theme {
  font-size: var(--text-ui-sm);
}

.prefs__chev {
  font-size: var(--text-ui-2xs);
  opacity: 0.7;
}

/* The button shows the current choice's icon: set by theme.js before the first paint (no attribute: System). */
.prefs__btn .is-light,
.prefs__btn .is-dark,
:root[data-theme="light"] .prefs__btn .is-system,
:root[data-theme="dark"] .prefs__btn .is-system {
  display: none;
}

:root[data-theme="light"] .prefs__btn .is-light,
:root[data-theme="dark"] .prefs__btn .is-dark {
  display: block;
}

.is-light {
  color: var(--sun);
}

.is-dark {
  color: var(--accent);
}

/* The panel: under the button, its end edge on the button's (in Arabic, on its left). */
.prefs__panel {
  position: absolute;
  inset-block-start: calc(100% + 6px);
  inset-inline-end: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  width: 248px;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  box-shadow:
    0 10px 30px color-mix(in srgb, var(--shade) 25%, transparent),
    inset 0 0 0 1px var(--line);
  color: var(--fg);
  font-size: var(--text-ui-xs);
}

.prefs__panel[hidden] {
  display: none;
}

.prefs__title {
  margin: 0;
  padding: var(--space-1) var(--space-2) var(--space-0-5);
  color: var(--muted);
  font-size: var(--text-ui-2xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* The languages (UiLanguagePicker): the flag, the language in its own name, its name in the page's language in grey,
   a check on the current one. Each is a link to the same page in that language. */
.langs {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.langs a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--control-sm);
  padding: var(--space-1-5) var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--fg);
  font-size: var(--text-ui-sm);
  text-decoration: none;
  transition: background var(--duration-fast) ease;
}

.langs a:hover {
  background: var(--hover-fill);
}

.langs a[aria-current="true"] .langs__native {
  font-weight: var(--weight-semibold);
}

/* The language's code, not a country's flag (English or Arabic is not one country): as in the Customer Care app. */
.langs__code {
  display: inline-grid;
  flex: none;
  place-items: center;
  min-width: 1.75rem;
  height: 1.25rem;
  padding-inline: var(--space-1);
  border-radius: var(--radius-xs);
  background: var(--surface-2);
  color: var(--muted);
  font-size: var(--text-ui-2xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.04em;
  line-height: 1;
}

.langs a[aria-current="true"] .langs__code {
  background: var(--accent-soft);
  color: var(--accent);
}

.langs__local {
  margin-inline-start: auto;
  color: var(--muted);
  font-size: var(--text-ui-xs);
}

.langs__check {
  flex: none;
  color: var(--accent);
  font-size: var(--icon-sm);
  visibility: hidden;
}

.langs__local + .langs__check {
  margin-inline-start: 0;
}

.langs__native + .langs__check {
  margin-inline-start: auto;
}

.langs a[aria-current="true"] .langs__check {
  visibility: visible;
}

/* Appearance: its name, then three icons in a segmented pill, the chosen one raised. */
.prefs__appearance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-1);
  padding-block: var(--space-2) var(--space-0-5);
  padding-inline: 0 var(--space-1);
  border-top: 1px solid var(--line);
}

.themes {
  display: inline-flex;
  gap: var(--space-0-5);
  padding: var(--space-0-5);
  border-radius: var(--radius-pill);
  background: var(--chip-bg);
}

.themes button {
  display: grid;
  place-items: center;
  width: var(--control-sm);
  height: var(--control-xs);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: none;
  color: var(--muted);
  font-size: var(--text-ui-sm);
  cursor: pointer;
}

.themes button[aria-checked="true"] {
  background: var(--surface-1);
  box-shadow: 0 0 0 1px var(--line);
}

.langs a:focus-visible,
.themes button:focus-visible {
  outline: 2px solid var(--accent-ring);
  outline-offset: -2px;
}

/* Icons drawn as filled shapes (the f7 set's, as in the Customer Care app). */
.icon--fill {
  fill: currentColor;
  stroke: none;
}

/* A phone: the panel hangs from the bar's end, inside the page's gutter. */
@media (max-width: 560px) {
  .prefs {
    position: static;
  }

  .prefs__panel {
    inset-inline-end: var(--site-pad);
    max-width: calc(100vw - 2 * var(--site-pad));
  }

  .header__bar {
    gap: var(--space-2);
  }

  .header__actions {
    gap: var(--space-1-5);
  }

  .prefs__btn {
    gap: var(--space-1-5);
    padding-inline: var(--space-2) var(--space-1-5);
  }

  .brand {
    font-size: var(--text-ui-lg);
  }

  .brand .mark {
    width: 1.5rem;
    height: 1.5rem;
  }
}

/* The narrowest phones: the brand is its mark (its name stays for screen readers). */
@media (max-width: 374px) {
  .brand__name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* ---------- The mark (three ribbons, drawn from one SVG sprite) ---------- */

.mark {
  fill: currentColor;
}

/* A principle's ribbon lit in the text's own colour (white in the dark theme), the others a watermark, as the Customer
   Care manifesto draws them (the owner, 2026-11-13: white, not the gradient). One SVG per ribbon, stacked, so each can
   orbit in on its own (below, 3. Three principles). */
.told__arm.is-dim {
  opacity: 0.12;
}

.grad-a {
  stop-color: var(--accent);
}

.grad-b {
  stop-color: var(--ai);
}

/* ---------- Type shared by every screen ---------- */

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: var(--text-ui-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.title {
  margin: var(--space-2) 0 0;
  font-family: var(--font-display);
  font-size: clamp(var(--text-large-title), 3.2vw, calc(var(--text-large-title) * 1.45));
  font-weight: var(--weight-bold);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.title--big {
  font-size: clamp(var(--text-large-title), 4vw, calc(var(--text-large-title) * 1.75));
}

.grad {
  background: linear-gradient(100deg, var(--accent) 10%, var(--ai) 75%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.line {
  max-width: 34rem;
  margin: var(--space-5) 0 0;
  color: var(--muted);
  font-size: clamp(var(--text-body), 1.45vw, var(--text-title-3));
  line-height: 1.55;
}

/* ---------- Buttons ---------- */

.btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--control-lg);
  padding: 0 var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: var(--text-ui-md);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  transition:
    background-color var(--duration-fast) ease,
    border-color var(--duration-fast) ease,
    color var(--duration-fast) ease;
}

.btn--primary {
  background: var(--accent-fill);
  color: var(--on-fill);
}

.btn--primary:hover {
  background: color-mix(in srgb, var(--accent-fill) 88%, var(--shade));
}

.btn--secondary {
  border-color: var(--line-strong);
  color: var(--fg);
}

.btn--secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn .icon {
  font-size: 1.05em;
}

/* The design system's small button (UiButton sm): 32 px, as high as the preferences beside it. */
.btn--sm {
  min-height: 0;
  height: var(--control-sm);
  padding: 0 var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-ui-sm);
  white-space: nowrap;
}

/* ---------- Screens ---------- */

.screen {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - var(--header-h));
  scroll-snap-align: start;
}

.screen + .screen {
  border-top: 1px solid var(--line);
}

.screen__in {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: var(--site-max);
  margin-inline: auto;
  padding: var(--space-10) var(--site-pad);
}

@media (min-width: 640px) {
  :root {
    --site-pad: max(var(--space-8), env(safe-area-inset-left), env(safe-area-inset-right));
  }

  .screen__in {
    padding-block: clamp(var(--space-10), 8vh, 5rem);
  }
}

/* A part arriving as it comes into view (site.js adds .rv-on; never with reduced motion). */
.rv-on .rv {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s var(--ease),
    transform 0.6s var(--ease);
}

.rv-on .rv[data-seen] {
  opacity: 1;
  transform: none;
}

/* ---------- 1. Opening: the brand motion ---------- */

.open {
  background:
    radial-gradient(50% 45% at 50% 45%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%),
    var(--bg);
}

.open .screen__in {
  align-items: center;
  padding-bottom: 7rem;
  text-align: center;
}

/* Transparent: the iframe is given the embed's own colour scheme (light, its default: it declares none), so the
   browser paints no backdrop behind it whatever the page's theme. "normal" is not enough here: it falls back to the
   page's <meta name="color-scheme">, dark in the dark theme, and the frame then got a white backdrop. */
.open__motion {
  display: block;
  width: min(100%, 72rem);
  max-height: 64vh;
  aspect-ratio: 16 / 9;
  border: 0;
  background: transparent;
  color-scheme: light;
}

.open__line {
  max-width: 30rem;
  margin: var(--space-2) auto 0;
  color: var(--muted);
  font-size: clamp(var(--text-body), 1.45vw, var(--text-title-3));
  text-wrap: balance;
}

/* Without scripts, the name and motto in words. */
.open__still {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.open__still .mark {
  width: 6rem;
  height: 6rem;
}

.open__still b {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.open__still span {
  color: var(--muted);
  font-size: var(--text-title-3);
}

/* "Read on": its words over two chevrons falling in turn, at the screen's foot. */
.cue {
  position: absolute;
  inset-block-end: max(var(--space-5), 3.5vh);
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1-5);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-lg);
  color: var(--muted);
  text-decoration: none;
  transform: translateX(-50%);
}

.cue__label {
  color: var(--accent);
  font-size: var(--text-ui-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cue__chevrons {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.1rem;
}

.cue__chevrons .icon {
  opacity: 0.35;
  stroke-width: 2.2;
}

.cue__chevrons .icon + .icon {
  margin-top: -0.45em;
}

.cue:hover .cue__chevrons .icon {
  color: var(--accent);
}

/* With scripts and motion: the line and the cue wait until the motion has told the name (site.js: .is-told). */
.open__after {
  transition:
    opacity 0.8s ease,
    translate 0.8s var(--ease);
}

@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .open:not(.is-told) .open__after {
    visibility: hidden;
    opacity: 0;
    translate: 0 12px;
  }

  .open.is-told .cue__chevrons .icon {
    animation: cue 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  }

  .open.is-told .cue__chevrons .icon + .icon {
    animation-delay: 0.22s;
  }
}

@keyframes cue {
  0%,
  100% {
    opacity: 0.25;
    transform: translateY(-2px);
  }

  45% {
    opacity: 1;
    transform: translateY(3px);
  }
}

/* ---------- 2. Why we exist ---------- */

.why {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: var(--space-10) clamp(2.5rem, 5vw, 5rem);
}

.why__quote {
  max-width: 34rem;
  margin: var(--space-8) 0 0;
  padding-inline-start: var(--space-5);
  border-inline-start: 3px solid var(--ai);
  font-family: var(--font-display);
  font-size: clamp(var(--text-title-3), 2vw, var(--text-title-1));
  font-weight: var(--weight-semibold);
  line-height: 1.3;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.why__quote p {
  margin: 0;
}

/* The picture, on no background, its arms fading out at its edges. */
.why__img {
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

/* ---------- 3. Principles: one ribbon of the mark each ---------- */

.chapter {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: var(--space-10) clamp(3rem, 7vw, 7rem);
}

.chapter--flip .chapter__mark {
  order: 2;
}

.chapter__mark {
  position: relative;
  justify-self: center;
  width: min(100%, 22rem, 46vh);
  color: var(--fg);
}

/* The halo behind the mark is neutral, like its ribbons (the owner, 2026-11-13: no colour left from the gradient). */
.chapter__mark::before,
.end__mark::before {
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--fg) 7%, transparent), color-mix(in srgb, var(--fg) 3%, transparent) 60%, transparent);
  content: "";
}

.chapter__mark,
.end__mark {
  aspect-ratio: 1003 / 998;
}

.chapter__mark .mark,
.end__mark .mark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* The mark told ribbon by ribbon, as the Customer Care manifesto (SiteManifestoMark): when its screen comes in, each
   ribbon waits outside, turned and blurred, then orbits in around the mark's centre, one after another; the halo
   follows, and breathes behind the whole mark at the end. Told each time the mark is fully in view, so the visitor sees
   it happen (site.js adds .is-told, and takes it off once the mark has left; the owner, 2026-11-13). Still with
   reduced motion (no .rv-on). */
.rv-on .chapter__mark.rv,
.rv-on .end__mark.rv {
  opacity: 1;
  transform: none;
}

.rv-on .chapter__mark::before,
.rv-on .end__mark::before {
  opacity: 0;
  transition: opacity 1.6s ease 1s;
}

.rv-on .chapter__mark.is-told::before,
.rv-on .end__mark.is-told::before {
  opacity: 1;
}

.rv-on .end__mark.is-told::before {
  animation: breathe 4s ease-in-out 2.6s infinite;
}

@keyframes breathe {
  50% {
    opacity: 0.6;
    transform: scale(1.06);
  }
}

.rv-on .told__arm {
  filter: blur(8px);
  opacity: 0;
  transform: rotate(-150deg) scale(1.35);
  transform-origin: 50% 50%;
  transition:
    transform 1.6s cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 1.2s ease,
    filter 1.2s ease;
  transition-delay: 0.25s;
}

.rv-on .told__arm:nth-child(2) {
  transition-delay: 0.47s;
}

.rv-on .told__arm:nth-child(3) {
  transition-delay: 0.69s;
}

.rv-on .is-told > .told__arm {
  filter: none;
  opacity: 1;
  transform: none;
}

.rv-on .is-told > .told__arm.is-dim {
  opacity: 0.12;
}

.chapter__story {
  max-width: 34rem;
  margin: var(--space-5) 0 0;
  font-size: clamp(var(--text-body), 1.45vw, var(--text-title-3));
  line-height: 1.55;
}

/* What it means today, in Customer Care: a quiet line set apart. */
.proof {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  max-width: 34rem;
  margin: var(--space-6) 0 0;
  padding: var(--space-3) var(--space-4);
  border-inline-start: 2px solid var(--ai);
  border-start-end-radius: var(--radius-md);
  border-end-end-radius: var(--radius-md);
  background: var(--ai-soft);
  color: var(--muted);
  font-size: var(--text-ui-md);
}

.proof .icon {
  margin-top: 0.25em;
  color: var(--ai);
}

/* ---------- 4. Values ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: var(--space-4);
  margin: var(--space-10) 0 0;
  padding: 0;
  list-style: none;
}

.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-6) var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: var(--space-2);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-soft), var(--ai-soft));
  color: var(--accent);
  font-size: 1.4rem;
}

.card h3 {
  margin: 0;
  font-size: var(--text-title-3);
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-ui-md);
}

/* ---------- 5. Applications ---------- */

.apps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, max(18rem, calc((100% - 2 * var(--space-4)) / 3))), 1fr));
  gap: var(--space-4);
  margin: var(--space-10) 0 0;
  padding: 0;
  list-style: none;
}

.app {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

/* An application available now: a soft light of the brand from its top. */
.app--live {
  border-color: color-mix(in srgb, var(--ai) 35%, var(--line));
  background:
    radial-gradient(80% 70% at 50% 0%, color-mix(in srgb, var(--ai) 9%, transparent), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow-md);
}

/* An application available now: a small card (up to three a row), its photograph on top so the visitor sees
   themselves in it, then its brand, its words and its way in (the owner, 2026-11-13). */
.app--live {
  padding: var(--space-3) var(--space-3) var(--space-5);
}

.app__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3) 0;
}

.app__shot {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  aspect-ratio: 16 / 9;
}

.app__shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The application's brand, as its own site shows it: the mark, the name, "for Customer Care" under it. */
.app__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--fg);
}

.app__brand .mark {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
}

/* The badge beside the brand wraps under it rather than squeeze it. */
.app--live .app__head {
  flex-wrap: wrap;
}

.app__brand-words {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  line-height: 1;
}

.app__brand-words b {
  font-family: var(--font-display);
  font-size: var(--text-title-3);
  font-weight: var(--weight-bold);
  letter-spacing: -0.03em;
}

.app__brand-words small {
  color: var(--muted);
  font-size: var(--text-ui-xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.app--live .app__lead {
  margin-top: var(--space-1);
}

/* What comes next: dashed, quiet. */
.app--next {
  border: 1.5px dashed var(--line-strong);
  background: transparent;
  box-shadow: none;
}

.app__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.app__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-soft), var(--ai-soft));
  color: var(--fg);
}

.app__icon .mark {
  width: 1.9rem;
  height: 1.9rem;
}

.app--next .app__icon {
  border: 1.5px dashed var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--faint);
  font-size: 1.3rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1-5);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--muted);
  font-size: var(--text-ui-xs);
  font-weight: var(--weight-semibold);
  white-space: nowrap;
}

.badge--now {
  background: var(--success-soft);
  color: var(--success);
}

.badge--now::before {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.app h3 {
  margin: var(--space-2) 0 0;
  font-family: var(--font-display);
  font-size: var(--text-title-2);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.app--next h3 {
  color: var(--muted);
}

.app p {
  margin: 0;
  color: var(--muted);
}

.app .app__lead {
  color: var(--fg);
  font-weight: var(--weight-semibold);
}

.app .btns {
  margin-top: auto;
  padding-top: var(--space-3);
}

/* ---------- 6. Join us ---------- */

.end {
  background:
    radial-gradient(60% 60% at 50% 100%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
    radial-gradient(50% 50% at 50% 0%, color-mix(in srgb, var(--ai) 8%, transparent), transparent 70%),
    var(--bg);
}

.end .screen__in {
  align-items: center;
  text-align: center;
}

.end__mark {
  position: relative;
  width: min(8rem, 16vh);
  margin-bottom: var(--space-6);
  color: var(--fg);
}

.end .title {
  font-size: clamp(calc(var(--text-large-title) * 1.2), 5vw, calc(var(--text-large-title) * 2.1));
}

.end .line {
  margin-inline: auto;
}

.end .btns {
  justify-content: center;
  margin-top: var(--space-8);
}

/* ---------- Footer ---------- */

/* A snap point of its own: without it, the screen-by-screen scroll pulled the page back to the last screen's top and the
   footer could not be reached. */
.footer {
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: var(--text-footnote);
  scroll-snap-align: end;
}

.footer__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-6);
  max-width: var(--site-max);
  margin-inline: auto;
  padding: var(--space-5) var(--site-pad) max(var(--space-5), env(safe-area-inset-bottom));
}

.footer p {
  margin: 0;
}

.footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--fg);
  text-decoration: underline;
}

/* The same page in the other languages (also in the header's panel; here without a script). */
.footer__langs a[aria-current="true"] {
  color: var(--fg);
  font-weight: var(--weight-semibold);
}

/* ---------- The privacy page ---------- */

.doc {
  max-width: 44rem;
  margin: 0 auto;
  padding: var(--space-10) var(--site-pad) 4rem;
}

.doc h1 {
  margin: var(--space-2) 0 var(--space-2);
  font-family: var(--font-display);
  font-size: clamp(var(--text-large-title), 4vw, calc(var(--text-large-title) * 1.3));
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.doc .updated {
  margin: 0 0 var(--space-6);
  color: var(--faint);
  font-size: var(--text-subhead);
}

.doc .intro {
  margin: 0 0 var(--space-8);
  font-size: var(--text-title-3);
  line-height: 1.5;
}

.doc h2 {
  margin: var(--space-8) 0 var(--space-2);
  font-size: var(--text-title-3);
  letter-spacing: -0.01em;
}

.doc p {
  margin: 0 0 var(--space-3);
  color: var(--muted);
}

.doc .eyebrow {
  color: var(--accent);
}

/* ---------- Narrow screens ---------- */

@media (max-width: 980px) {
  .why,
  .chapter {
    grid-template-columns: minmax(0, 1fr);
  }

  .chapter--flip .chapter__mark {
    order: 0;
  }

  .chapter__mark {
    width: min(50vw, 12rem);
    justify-self: start;
  }

  .why__img {
    max-width: 36rem;
  }
}

@media (max-width: 560px) {
  .open .screen__in {
    padding-bottom: 8rem;
  }

  /* The motion from edge to edge: the name as large as a phone allows. */
  .open__motion {
    width: calc(100% + 2 * var(--site-pad));
    max-width: none;
    margin-inline: calc(-1 * var(--site-pad));
  }

  .chapter__mark {
    width: min(36vw, 9rem);
  }

  .why__quote {
    margin-top: var(--space-6);
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2);
    margin-top: var(--space-6);
  }

  .card {
    padding: var(--space-4) var(--space-3);
  }

  .card__icon {
    width: 2rem;
    height: 2rem;
    font-size: 1.15rem;
  }

  .card h3 {
    font-size: var(--text-body);
  }

  .card p {
    font-size: var(--text-ui-sm);
    line-height: 1.4;
  }

  .apps {
    margin-top: var(--space-6);
  }

  .app {
    padding: var(--space-5);
  }

  .app .btns .btn {
    width: 100%;
  }

  .end .btns .btn {
    width: 100%;
  }
}

/* ---------- Arabic, right to left ---------- */

/* Letter-spacing breaks the joining of Arabic letters: none on Arabic text, and no capitals to set. Latin words marked
   lang="en" (the brand, the motto) keep their own. */
:lang(ar) {
  letter-spacing: 0 !important;
}

:lang(ar) .eyebrow,
:lang(ar) .cue__label,
:lang(ar) .prefs__title {
  text-transform: none;
}

:lang(ar) .eyebrow {
  font-size: var(--text-ui-sm);
}

:lang(ar) .title,
:lang(ar) .doc h1 {
  line-height: 1.35;
}

:lang(ar) .why__quote {
  line-height: 1.6;
}

/* The gradient starts where the reading starts. */
[dir="rtl"] .grad {
  background-image: linear-gradient(260deg, var(--accent) 10%, var(--ai) 75%);
}

/* What points the way (an arrow, the menu's chevrons) points the other way. */
[dir="rtl"] .icon--fwd {
  transform: scaleX(-1);
}

/* ---------- Reduced motion: nothing moves ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
