@charset "UTF-8";

/* Tokens. Light first; dark swaps the same names and is dark GREY, never black (Jon, 2026-11-16: "too dark,
   use dark grey"). Dark applies when the theme switch says so (data-theme="dark", set by src/theme.mjs)
   and, with no choice made, when the system asks for it. The two dark blocks hold the same declarations
   (scripts/check.mjs compares them). Contrast pairs are checked in scripts/check.mjs. */
:root {
  color-scheme: light;
  --page: #ffffff;
  --panel: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #5b5b63;
  --line: #d2d2d7;
  --chip: #ffffff;
  --blue: #0066cc;
  --link: #0066cc;
  --ring: #0066cc;
  --night: #1c1d21;
  --night-ink: #e9e7e2;
  --night-soft: #c9c8cf;
  --night-muted: #a9a8b0;
  --night-line: #36373d;
  --night-chip: #26272c;
  --night-link: #8fb3ff;
  --night-ring: #8fb3ff;
  --lavender: #b5c2f0;
  --header: rgba(255, 255, 255, .82);
  --menu: #ffffff;
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .06);
  --tight: -.035em;
  --tighter: -.045em;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Hebrew", "Noto Sans Arabic", sans-serif;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color: var(--ink);
  background: var(--page);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #1c1d21;
  --panel: #26272c;
  --ink: #e9e7e2;
  --muted: #a9a8b0;
  --line: #36373d;
  --chip: #2e2f35;
  --link: #8fb3ff;
  --ring: #8fb3ff;
  --header: rgba(28, 29, 33, .84);
  --menu: #2c2d33;
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #1c1d21;
    --panel: #26272c;
    --ink: #e9e7e2;
    --muted: #a9a8b0;
    --line: #36373d;
    --chip: #2e2f35;
    --link: #8fb3ff;
    --ring: #8fb3ff;
    --header: rgba(28, 29, 33, .84);
    --menu: #2c2d33;
    --shadow: 0 30px 70px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08);
  }
}
/* A device that asks for more contrast gets stronger secondary text and borders, in both themes. */
@media (prefers-contrast: more) {
  :root { --muted: #3a3a40; --line: #6e6e76; --night-muted: #d4d2da; --night-line: #8c8c94; }
  :root[data-theme="dark"] { --muted: #d4d2da; --line: #8c8c94; }
}
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --muted: #d4d2da; --line: #8c8c94; }
}
/* Connected Arabic script must never be letter-spaced. */
:lang(ar) { --tight: 0; --tighter: 0; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
body { margin: 0; background: var(--page); color: var(--ink); }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 6px; }
.hero, .tone-dark { --ring: var(--night-ring); }
main:focus { outline: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { color: #fff; background: #335bba; }
.icon { width: 24px; height: 24px; flex: 0 0 auto; }
.link-arrow, .chevron { display: inline-block; line-height: 1; }
[dir="rtl"] .link-arrow, [dir="rtl"] .chevron { transform: scaleX(-1); }
.section-inner { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; line-height: 1.5; margin-bottom: 18px; color: var(--muted); }
:lang(ar) .eyebrow, :lang(he) .eyebrow { letter-spacing: 0; }

/* Header */
.skip-link { position: absolute; top: -100px; inset-inline-start: 16px; z-index: 30; padding: 14px 20px; background: var(--menu); color: var(--ink); border-radius: 10px; }
.skip-link:focus { top: 8px; outline-offset: 2px; }
.site-header { position: sticky; top: 0; z-index: 20; background: var(--header); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.header-inner { width: min(1120px, calc(100% - 48px)); min-height: 52px; margin-inline: auto; display: flex; align-items: center; gap: 28px; }
.wordmark { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 650; letter-spacing: .19em; }
.brand-symbol { width: 24px; height: 28px; flex: 0 0 auto; }
.main-nav { display: flex; align-items: center; gap: 30px; margin-inline-start: auto; }
.main-nav a { min-height: 44px; display: inline-flex; align-items: center; font-size: 13px; color: var(--ink); opacity: .82; }
.main-nav a:hover { opacity: 1; color: var(--link); }
.language-menu { position: relative; margin-inline-start: 4px; }
.main-nav + .language-menu { padding-inline-start: 24px; border-inline-start: 1px solid var(--line); }
.language-menu summary { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-size: 13px; list-style: none; opacity: .82; }
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary:hover, .language-menu[open] summary { opacity: 1; }
.language-menu summary .icon { width: 18px; height: 18px; }
.language-menu ul { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); min-width: 190px; padding: 8px; background: var(--menu); border-radius: 14px; box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .35), 0 0 0 1px color-mix(in srgb, var(--line) 80%, transparent); }
.language-menu li a { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 9px; font-size: 15px; }
.language-menu li a:hover { background: var(--panel); }
.language-menu li a[aria-current="true"] { font-weight: 650; }
.language-menu li a[aria-current="true"]::after { content: "✓"; margin-inline-start: auto; color: var(--link); }

/* Theme switch: one 40 px icon button; the icon of the current state shows. Hidden until src/theme.mjs runs. */
.theme-toggle { width: 40px; height: 40px; flex: 0 0 auto; display: inline-grid; place-items: center; margin-inline-start: 2px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; opacity: .82; font: inherit; }
.theme-toggle:hover { opacity: 1; background: color-mix(in srgb, var(--ink) 9%, transparent); }
.theme-toggle:focus-visible { border-radius: 50%; }
.theme-toggle .theme-icon { display: none; width: 20px; height: 20px; }
.theme-toggle[data-state="system"] .theme-icon-system, .theme-toggle[data-state="light"] .theme-icon-light, .theme-toggle[data-state="dark"] .theme-icon-dark { display: block; }

/* Magazine entry: an outlined pill that fills when the magazine is the current section. */
.mag-link { min-height: 32px; display: inline-flex; align-items: center; margin-inline-start: 4px; padding: 0 15px; border: 1px solid var(--ink); border-radius: 999px; font-size: 13px; font-weight: 650; line-height: 1; transition: background-color .15s, color .15s; }
.mag-link:hover, .mag-link[aria-current="page"] { background: var(--ink); color: var(--page); }
@media (max-width: 420px) {
  .language-menu summary span { display: none; }
  .language-menu summary { min-width: 40px; justify-content: center; }
  .header-inner { gap: 6px; }
  .wordmark { gap: 8px; font-size: 15px; letter-spacing: .14em; }
  .mag-link { padding: 0 12px; margin-inline-start: auto; }
  .mag-link + .language-menu { margin-inline-start: 0; }
}

/* Hero */
.hero { background: var(--night); color: var(--night-ink); text-align: center; padding: clamp(84px, 12vw, 140px) 24px clamp(76px, 10vw, 120px); }
.hero-inner { max-width: 1060px; margin-inline: auto; }
.hero .eyebrow { color: var(--night-muted); }
.hero h1 { font-size: clamp(46px, 8.6vw, 116px); font-weight: 700; letter-spacing: var(--tighter); line-height: 1.02; margin-bottom: 30px; }
:lang(ar) .hero h1 { line-height: 1.2; }
.hero h1 span { display: block; }
.hero-accent { color: var(--lavender); }
.hero-intro { max-width: 700px; margin: 0 auto 52px; color: var(--night-soft); font-size: clamp(18px, 2vw, 23px); line-height: 1.5; letter-spacing: -.01em; }
:lang(ar) .hero-intro { letter-spacing: 0; line-height: 1.75; }
.hero-apps { display: flex; justify-content: center; gap: clamp(20px, 6vw, 64px); flex-wrap: wrap; }
.hero-apps a { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 88px; padding: 6px; font-size: 15px; font-weight: 500; color: var(--night-ink); transition: transform .2s ease; }
.hero-apps img { width: 64px; height: 64px; }
.hero-apps a:hover { transform: translateY(-3px); }

/* Product and research panels */
.tone-light { background: var(--panel); color: var(--ink); --sec-muted: var(--muted); --sec-line: var(--line); --sec-chip: var(--chip); --sec-link: var(--link); }
.tone-dark { background: var(--night); color: var(--night-ink); --sec-muted: var(--night-muted); --sec-line: var(--night-line); --sec-chip: var(--night-chip); --sec-link: var(--night-link); }
.product { padding-block: clamp(80px, 10vw, 128px) clamp(64px, 8vw, 104px); text-align: center; overflow: clip; }
.product-head { max-width: 760px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; }
.product-icon { width: 72px; height: 72px; margin-bottom: 18px; }
.product h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 600; letter-spacing: -.01em; margin-bottom: 10px; }
.product-headline { font-size: clamp(38px, 6.2vw, 76px); font-weight: 700; letter-spacing: var(--tighter); line-height: 1.04; margin-bottom: 22px; text-wrap: balance; }
:lang(ar) .product-headline { line-height: 1.25; }
.product-body { max-width: 620px; color: var(--sec-muted); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; letter-spacing: -.01em; margin-bottom: 30px; text-wrap: pretty; }
:lang(ar) .product-body { line-height: 1.75; letter-spacing: 0; }
.button-link { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 11px 24px; background: var(--blue); color: #fff; border-radius: 999px; font-size: 16px; line-height: 1.3; transition: background-color .18s; }
.button-link:hover { background: #0058b0; }
.link-arrow { font-size: 17px; }
.product-shot { margin-top: clamp(44px, 6vw, 72px); }
.product-shot img { width: 100%; height: auto; border-radius: clamp(10px, 1.4vw, 18px); box-shadow: var(--shadow); background: var(--sec-chip); }
.highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; max-width: 920px; margin: clamp(40px, 5vw, 60px) auto 0; }
.highlights li { display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 16px; font-weight: 500; line-height: 1.35; }
.highlights .icon { width: 28px; height: 28px; color: var(--sec-muted); }
.downloads { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 16px; margin-top: clamp(40px, 5vw, 56px); padding-top: 28px; border-top: 1px solid var(--sec-line); max-width: 920px; margin-inline: auto; }
.downloads h3 { font-size: 13px; font-weight: 600; color: var(--sec-muted); letter-spacing: .02em; }
.downloads ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.downloads a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--sec-chip); border: 1px solid var(--sec-line); font-size: 14px; font-weight: 500; transition: border-color .18s, color .18s; }
.downloads a:hover { border-color: var(--sec-link); color: var(--sec-link); }
.product-note { max-width: 560px; margin: 22px auto 0; font-size: 13px; line-height: 1.55; color: var(--sec-muted); }

.research { padding-block: clamp(84px, 10vw, 128px); }
.research h2 { font-size: clamp(36px, 5.4vw, 64px); font-weight: 700; letter-spacing: var(--tighter); line-height: 1.06; max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); text-wrap: balance; }
:lang(ar) .research h2 { line-height: 1.3; }
.research .eyebrow { color: var(--sec-muted); }
.areas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
.areas li { border-top: 1px solid var(--sec-line); padding-top: 24px; }
.areas .icon { width: 28px; height: 28px; color: var(--lavender); margin-bottom: 18px; }
.areas h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 8px; }
.areas p { font-size: 15px; line-height: 1.55; color: var(--sec-muted); }
.articles { margin-top: clamp(56px, 7vw, 88px); }
.articles h3 { font-size: 13px; font-weight: 600; color: var(--sec-muted); margin-bottom: 8px; }
.articles ul { border-top: 1px solid var(--sec-line); }
.articles li { border-bottom: 1px solid var(--sec-line); }
.articles li a { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding-block: 14px; font-size: clamp(17px, 1.8vw, 22px); font-weight: 500; letter-spacing: -.01em; line-height: 1.35; }
.articles li a:hover span { color: var(--sec-link); }
.articles .link-arrow { color: var(--sec-muted); }
.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 16px; color: var(--sec-link); font-size: 16px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Footer */
.site-footer { background: var(--panel); color: var(--muted); padding: 48px 0 28px; font-size: 13px; }
.footer-inner { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.footer-brand { display: flex; align-items: center; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.footer-brand .wordmark { color: var(--ink); font-size: 15px; }
.footer-columns { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 28px; padding-block: 28px; }
.footer-columns h2 { font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.footer-columns a { display: inline-flex; align-items: center; min-height: 36px; }
.footer-columns a:hover { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.locale-list { display: grid; grid-template-columns: repeat(3, minmax(0, max-content)); gap: 0 28px; }
.locale-list a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.footer-legal { padding-top: 20px; border-top: 1px solid var(--line); }

/* Information, 404 */
.info-page { width: min(1040px, calc(100% - 48px)); margin: 0 auto; padding: 88px 0 110px; }
[dir="rtl"] .info-page .eyebrow { text-align: right; }
.info-page h1 { font-size: clamp(42px, 6vw, 64px); font-weight: 700; letter-spacing: var(--tighter); line-height: 1.06; margin-bottom: 16px; }
.info-intro { color: var(--muted); font-size: 21px; line-height: 1.5; margin-bottom: 28px; }
.info-tabs ul { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.info-tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; color: var(--muted); }
.info-tabs a:hover { color: var(--ink); border-color: var(--muted); }
.info-tabs a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--page); font-weight: 600; }
.info-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.info-cards section { display: flex; flex-direction: column; align-items: flex-start; background: var(--panel); border-radius: 22px; padding: 26px; }
.info-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--chip); color: var(--link); margin-bottom: 18px; }
.info-page h2 { font-size: 20px; font-weight: 600; letter-spacing: var(--tight); margin-bottom: 8px; }
.info-cards section p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.info-links { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; margin-top: auto; padding-top: 18px; }
.mail-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 9px 20px; background: var(--blue); color: #fff; border-radius: 999px; font-size: 15px; transition: background-color .18s; }
.mail-link:hover { background: #0058b0; }
.mail-link .icon { width: 18px; height: 18px; }
.doc-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--link); font-size: 15px; }
.doc-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.info-updated { margin-top: 28px; color: var(--muted); font-size: 14px; }
.not-found { width: min(760px, calc(100% - 48px)); margin: 0 auto; padding: 120px 0; text-align: center; }
.not-found h1 { font-size: clamp(42px, 7vw, 72px); font-weight: 700; letter-spacing: var(--tighter); margin-bottom: 14px; }
.not-found p:not(.eyebrow) { color: var(--muted); font-size: 19px; margin-bottom: 30px; }

/* Smaller screens */
@media (max-width: 860px) {
  .main-nav { display: none; }
  .language-menu { margin-inline-start: auto; }
  .main-nav + .language-menu { padding-inline-start: 0; border-inline-start: 0; }
  .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-columns { grid-template-columns: 1fr 1fr; }
  .footer-columns nav:last-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .section-inner, .header-inner, .footer-inner { width: calc(100% - 32px); }
  .hero { padding-inline: 16px; }
  .hero-intro { margin-bottom: 44px; }
  .hero-apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .hero-apps a { min-width: 0; padding: 18px 6px 14px; font-size: 14px; background: var(--night-chip); border: 1px solid var(--night-line); border-radius: 22px; }
  .hero-apps img { width: 52px; height: 52px; }
  .product-head { align-items: center; }
  .highlights { grid-template-columns: 1fr; max-width: 340px; gap: 16px; }
  .highlights li { flex-direction: row; gap: 14px; text-align: start; }
  .highlights .icon { width: 24px; height: 24px; }
  .downloads { flex-direction: column; }
  .areas { grid-template-columns: 1fr; gap: 28px; }
  .locale-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-page, .not-found { width: calc(100% - 32px); }
  .info-cards { grid-template-columns: 1fr; }
  .info-cards section { padding: 22px; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 40px; }
  .product-headline { font-size: 34px; }
  .info-page h1 { font-size: 36px; }
  .research h2 { font-size: 32px; }
}
/* More contrast: nothing is dimmed, links are underlined, outlines are heavier. */
@media (prefers-contrast: more) {
  .main-nav a, .language-menu summary, .theme-toggle { opacity: 1; }
  .text-link, .doc-link, .footer-columns a, .articles li a span { text-decoration: underline; text-underline-offset: 3px; }
  .downloads a, .info-tabs a, .mag-link { border-width: 2px; }
  a:focus-visible, summary:focus-visible, button:focus-visible { outline-width: 4px; }
}
/* Windows high-contrast and forced colours: system colours, real borders on buttons and the focus ring. */
@media (forced-colors: active) {
  a:focus-visible, summary:focus-visible, button:focus-visible { outline-color: Highlight; }
  .button-link, .mail-link, .theme-toggle, .downloads a, .info-tabs a { border: 1px solid ButtonText; }
  .site-header { border-bottom: 1px solid CanvasText; }
  .theme-toggle { color: ButtonText; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .hero-apps a:hover { transform: none; }
}
