/*
  Helpdock website. Colours, families, radii, elevation and motion come from
  DESIGN.md's tokens. The display sizes, the two section spacings (96, 128) and
  the reveal duration are website-only additions, listed in DESIGN.md §11.
  Logical properties only, so the Arabic page is the English one mirrored.
*/

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-arabic-arabic-400-normal.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: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-arabic-arabic-500-normal.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: swap;
  src: url("fonts/ibm-plex-sans-arabic-arabic-600-normal.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 Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --bg-canvas: #f7f5f0;
  --bg-surface: #ffffff;
  --bg-muted: #efece5;
  --text-primary: #16181c;
  --text-secondary: #5c564c;
  --border-default: #e3dfd6;
  --border-strong: #cfc9bd;
  --border-focus: #0f766e;
  --accent: #0f766e;
  --accent-hover: #0c5f59;
  --accent-active: #0a4a45;
  --accent-text: #ffffff;
  --accent-tint: #ecf7f5;
  --link: #0f766e;
  --code-bg: #16181c;
  --code-text: #ecebe6;
  --code-dim: #a8a196;
  --code-key: #5fb8ac;
  --code-border: #403c35;
  --shadow-1: 0 1px 2px rgba(22, 24, 28, 0.06);
  --shadow-2: 0 4px 12px rgba(22, 24, 28, 0.1);
  --shadow-3: 0 12px 32px rgba(22, 24, 28, 0.16);
  --sans:
    "IBM Plex Sans", "IBM Plex Sans Arabic", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --fast: 120ms;
  --slow: 320ms;
  --reveal: 640ms;
  --header: 48px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-canvas: #15171b;
    --bg-surface: #1c1f24;
    --bg-muted: #23272e;
    --text-primary: #ecebe6;
    --text-secondary: #a8a196;
    --border-default: #2e333b;
    --border-strong: #3a404a;
    --border-focus: #5fb8ac;
    --accent: #5fb8ac;
    --accent-hover: #9dd6cd;
    --accent-active: #cdebe6;
    --accent-text: #16181c;
    --accent-tint: #123331;
    --link: #5fb8ac;
    --code-bg: #15171b;
    --code-border: #3a404a;
    --shadow-1: none;
    --shadow-2: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-3: 0 12px 32px rgba(0, 0, 0, 0.4);
  }
}

/* The dark band: neutral 900 in both appearances, with the dark-mode tokens on it. */
.band-dark {
  --bg-canvas: #16181c;
  --bg-surface: #1c1f24;
  --bg-muted: #23272e;
  --text-primary: #f7f5f0;
  --text-secondary: #a8a196;
  --border-default: #2e333b;
  --border-strong: #3a404a;
  --border-focus: #5fb8ac;
  --accent: #5fb8ac;
  --accent-hover: #9dd6cd;
  --accent-active: #cdebe6;
  --accent-text: #16181c;
  --accent-tint: #123331;
  --link: #5fb8ac;
  --code-bg: #1c1f24;
  --code-border: #3a404a;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:lang(ar) {
  --sans:
    "IBM Plex Sans Arabic", "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

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

img {
  block-size: auto;
}

a {
  color: var(--link);
  text-underline-offset: 2px;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
pre,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

code,
pre,
kbd {
  font-family: var(--mono);
}

/* Code, commands and figures read left to right inside Arabic text. */
code,
.ltr {
  direction: ltr;
  unicode-bidi: isolate;
}

pre {
  direction: ltr;
  text-align: start;
}

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

.icon {
  inline-size: 16px;
  block-size: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
}

.visually-hidden {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  inset-block-start: 8px;
  inset-inline-start: 8px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  padding-inline: 16px;
  border-radius: 999px;
  background: var(--bg-surface);
  color: var(--link);
  box-shadow: var(--shadow-2);
  font-weight: 500;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Containers: a wide one for imagery, a narrow one for reading. */

.container {
  inline-size: 100%;
  max-inline-size: 1200px;
  margin-inline: auto;
  padding-inline: 16px;
}

.narrow {
  max-inline-size: 1020px;
}

@media (min-width: 640px) {
  .container {
    padding-inline: 24px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-inline: 40px;
  }
}

/* Header: a thin translucent bar that sits over the content. */

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg-canvas) 80%, transparent);
  border-block-end: 1px solid color-mix(in srgb, var(--border-default) 70%, transparent);
  backdrop-filter: saturate(1.8) blur(20px);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  block-size: var(--header);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand svg {
  inline-size: 24px;
  block-size: 24px;
  flex: none;
}

.nav {
  display: none;
  margin-inline: auto;
}

.nav ul {
  display: flex;
  gap: 4px;
}

.nav a,
.menu-panel a,
.lang-link {
  display: inline-flex;
  align-items: center;
  min-block-size: 36px;
  padding-inline: 12px;
  border-radius: 999px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  line-height: 20px;
  transition: color var(--fast) ease-out;
}

.nav a:hover,
.lang-link:hover {
  color: var(--text-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: auto;
}

@media (min-width: 1024px) {
  .nav {
    display: block;
  }

  .header-actions {
    margin-inline-start: 0;
  }

  .menu {
    display: none;
  }
}

.menu {
  position: relative;
}

.menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 44px;
  block-size: 44px;
  border-radius: 999px;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu-panel {
  position: absolute;
  inset-block-start: calc(100% + 4px);
  inset-inline-end: 0;
  inline-size: 240px;
  padding: 8px;
  border: 1px solid var(--border-default);
  border-radius: 14px;
  background: var(--bg-surface);
  box-shadow: var(--shadow-3);
}

.menu-panel ul {
  display: grid;
  gap: 2px;
}

.menu-panel a {
  display: flex;
  min-block-size: 44px;
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 16px;
  line-height: 24px;
}

.menu-panel a:hover {
  background: var(--bg-muted);
}

/* Buttons and links that act like them */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-block-size: 48px;
  padding-inline: 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--fast) ease-out,
    border-color var(--fast) ease-out,
    color var(--fast) ease-out;
}

.btn-sm {
  min-block-size: 32px;
  padding-inline: 12px;
  font-size: 14px;
  line-height: 20px;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-primary:active {
  background: var(--accent-active);
}

.btn-secondary {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-muted);
}

/* "Watch the video ›": a text link with a chevron, the quieter second action. */
.more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-block-size: 44px;
  color: var(--link);
  font-weight: 500;
  text-decoration: none;
}

.more:hover {
  text-decoration: underline;
}

.more svg {
  inline-size: 16px;
  block-size: 16px;
  transition: transform var(--fast) ease-out;
}

.more:hover svg {
  transform: translateX(2px);
}

[dir="rtl"] .more svg {
  transform: scaleX(-1);
}

[dir="rtl"] .more:hover svg {
  transform: scaleX(-1) translateX(2px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
}

.actions.start {
  justify-content: flex-start;
}

/* Type. The website's display sizes are listed in DESIGN.md §11. */

.eyebrow {
  color: var(--accent);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.hero-title {
  font-size: clamp(48px, 6.4vw + 8px, 104px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.headline {
  font-size: clamp(36px, 3.4vw + 16px, 64px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.tile-title {
  font-size: clamp(28px, 1.2vw + 20px, 40px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.statement {
  color: var(--text-secondary);
  font-size: clamp(28px, 1.8vw + 18px, 48px);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: pretty;
}

.statement strong {
  color: var(--text-primary);
  font-weight: 600;
}

:lang(ar) .hero-title,
:lang(ar) .headline,
:lang(ar) .tile-title,
:lang(ar) .statement {
  letter-spacing: 0;
  line-height: 1.32;
}

.lead {
  color: var(--text-secondary);
  font-size: clamp(18px, 0.5vw + 16px, 24px);
  line-height: 1.45;
  text-wrap: pretty;
}

.h3 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.h4 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

:lang(ar) .h3 {
  letter-spacing: 0;
}

.muted {
  color: var(--text-secondary);
}

.caption {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}

.small {
  font-size: 14px;
  line-height: 20px;
}

.center {
  text-align: center;
}

/* Sections: each makes one point, on alternating grounds. */

.section {
  padding-block: 96px;
}

@media (min-width: 1024px) {
  .section {
    padding-block: 128px;
  }
}

.on-surface {
  background: var(--bg-surface);
}

.band-dark {
  background: var(--bg-canvas);
  color: var(--text-primary);
}

@media (prefers-color-scheme: dark) {
  .band-dark {
    border-block: 1px solid var(--border-default);
  }
}

.section-head {
  display: grid;
  justify-items: center;
  gap: 16px;
  max-inline-size: 880px;
  margin-inline: auto;
  margin-block-end: 64px;
  text-align: center;
}

.section-head .lead {
  max-inline-size: 720px;
}

.section-head.start {
  justify-items: start;
  margin-inline: 0;
  text-align: start;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .split {
    grid-template-columns: 5fr 7fr;
    gap: 64px;
  }

  .split.reverse > :first-child {
    order: 2;
  }

  .split.top {
    align-items: start;
  }

  .split.even {
    grid-template-columns: 1fr 1fr;
  }
}

.stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-content: start;
}

.stack-lg {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-content: start;
}

/* Hero */

.hero {
  padding-block: 64px 96px;
  text-align: center;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero {
    padding-block: 96px 128px;
  }
}

.hero-copy {
  display: grid;
  justify-items: center;
  gap: 24px;
  max-inline-size: 1020px;
  margin-inline: auto;
}

.hero .lead {
  max-inline-size: 680px;
}

.news {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-block-size: 44px;
  color: var(--link);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  text-decoration: none;
}

.news:hover {
  text-decoration: underline;
}

.news-tag {
  margin-inline-end: 4px;
  color: var(--text-secondary);
  font-weight: 400;
}

[dir="rtl"] .news-chev {
  transform: scaleX(-1);
}

.fineprint-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 12px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 20px;
}

@media (max-width: 639px) {
  .fineprint-row {
    gap: 4px 16px;
  }

  .fineprint-row [aria-hidden="true"] {
    display: none;
  }
}

/* The product shot: a soft teal glow behind a framed screen. */

.showcase {
  position: relative;
  margin-block-start: 64px;
}

.showcase::before {
  content: "";
  position: absolute;
  inset: 8% -8% -8%;
  z-index: -1;
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--accent) 22%, transparent),
    transparent
  );
  pointer-events: none;
}

.frame {
  border: 1px solid var(--border-default);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow-3);
  overflow: hidden;
}

.frame img {
  inline-size: 100%;
}

.showcase .caption {
  margin-block-start: 16px;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
}

.seg {
  display: flex;
  inline-size: max-content;
  max-inline-size: 100%;
  margin: 0 auto 24px;
  padding: 4px;
  border: 0;
  border-radius: 999px;
  background: var(--bg-muted);
}

.seg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.seg label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-block-size: 36px;
  padding-inline: 16px;
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color var(--fast) ease-out,
    color var(--fast) ease-out;
}

.seg input:checked + label {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-1);
}

.seg input:focus-visible + label {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

.shot-ar {
  display: none;
}

.showcase:has(#shot-ar:checked) .shot-en {
  display: none;
}

.showcase:has(#shot-ar:checked) .shot-ar {
  display: block;
}

/* Channels */

.channels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 24px;
  margin-block-start: 64px;
}

@media (min-width: 768px) {
  .channels {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.channels li {
  display: grid;
  gap: 4px;
  align-content: start;
}

.channels strong {
  font-weight: 600;
}

.channels span {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 20px;
}

.disc {
  display: inline-grid;
  place-items: center;
  inline-size: 48px;
  block-size: 48px;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent);
}

.disc .icon {
  inline-size: 24px;
  block-size: 24px;
}

.channels .disc {
  margin-block-end: 12px;
}

.note-line {
  margin-block-start: 48px;
  padding-block-start: 24px;
  border-block-start: 1px solid var(--border-default);
  color: var(--text-secondary);
}

/* Release film */

.film {
  display: grid;
  justify-items: center;
  gap: 24px;
  text-align: center;
}

.film .lead {
  max-inline-size: 760px;
}

.poster {
  position: relative;
  display: block;
  inline-size: 100%;
  max-inline-size: 1020px;
  margin-block-start: 24px;
  border-radius: 14px;
  overflow: hidden;
  color: #ffffff;
  text-decoration: none;
}

.poster-img {
  inline-size: 100%;
  transition: transform var(--slow) var(--ease);
}

.poster:hover .poster-img {
  transform: scale(1.02);
}

/* The poster carries its own title, so the control sits in its empty lower band. */
.poster-play {
  position: absolute;
  inset-block-end: 8%;
  inset-inline-start: 50%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-block-size: 48px;
  padding-inline: 8px 20px;
  border-radius: 999px;
  background: #0f766e;
  box-shadow: var(--shadow-3);
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  white-space: nowrap;
  transform: translateX(-50%);
  transition: background-color var(--fast) ease-out;
}

[dir="rtl"] .poster-play {
  transform: translateX(50%);
}

.poster:hover .poster-play {
  background: #0c5f59;
}

.poster-play .play {
  display: grid;
  place-items: center;
  inline-size: 32px;
  block-size: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.play-icon {
  inline-size: 16px;
  block-size: 16px;
  margin-inline-start: 2px;
}

@media (max-width: 639px) {
  .poster-play {
    position: static;
    inline-size: 100%;
    justify-content: center;
    border-radius: 0;
    box-shadow: none;
    transform: none;
  }

  [dir="rtl"] .poster-play {
    transform: none;
  }
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 32px;
}

.update {
  max-inline-size: 760px;
  margin-block-start: 24px;
  padding-block-start: 24px;
  border-block-start: 1px solid var(--border-default);
  color: var(--text-secondary);
}

.update strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Feature tiles */

.tiles {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .tiles {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
  }

  .tiles > .t-full {
    grid-column: span 6;
  }

  .tiles > .t-half {
    grid-column: span 3;
  }

  .tiles > .t-third {
    grid-column: span 6;
  }
}

@media (min-width: 1024px) {
  .tiles > .t-third {
    grid-column: span 2;
  }
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 24px;
  border-radius: 14px;
  background: var(--bg-surface);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .tile {
    padding: 48px;
  }

  .tile.t-third {
    padding: 40px;
  }
}

.on-surface .tile {
  background: var(--bg-canvas);
}

.tile p {
  color: var(--text-secondary);
}

.tile .eyebrow {
  margin-block-end: -4px;
}

.tile-media {
  display: flex;
  justify-content: center;
  margin-block: 24px -32px;
  margin-inline: -24px;
  padding-inline: 24px;
}

@media (min-width: 1024px) {
  .tile-media {
    margin-block: 32px -48px;
    margin-inline: -48px;
    padding-inline: 48px;
  }
}

.tile-media img {
  border: 1px solid var(--border-default);
  border-block-end: 0;
  border-start-start-radius: 10px;
  border-start-end-radius: 10px;
  box-shadow: var(--shadow-3);
}

.tile-media.portrait img {
  inline-size: min(100%, 320px);
  max-block-size: 440px;
  object-fit: cover;
  object-position: top;
}

.tile.t-full {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1024px) {
  .tile.t-full {
    grid-template-columns: 5fr 7fr;
    gap: 48px;
    align-items: center;
    padding-block-end: 0;
  }

  .tile.t-full .tile-copy {
    padding-block-end: 48px;
  }

  .tile.t-full .tile-media {
    align-self: end;
    margin: 0;
    padding: 0;
  }
}

.tile .caption {
  margin-block-start: auto;
}

.tile-copy {
  display: grid;
  gap: 12px;
  align-content: start;
}

.tile .tile-icon {
  color: var(--accent);
  inline-size: 32px;
  block-size: 32px;
  margin-block-end: 8px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-block-size: 28px;
  padding-inline: 12px;
  border-radius: 999px;
  background: var(--bg-muted);
  color: var(--text-primary);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}

.on-surface .tile .chip {
  background: var(--bg-surface);
}

/* AI */

.points {
  display: grid;
  gap: 40px 32px;
}

@media (min-width: 640px) {
  .points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .points {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.points li {
  display: grid;
  gap: 8px;
  align-content: start;
}

.points .icon {
  inline-size: 24px;
  block-size: 24px;
  margin-block-end: 8px;
  color: var(--accent);
}

.points p {
  color: var(--text-secondary);
}

.figures {
  margin-block-start: 96px;
  padding-block-start: 64px;
  border-block-start: 1px solid var(--border-default);
  text-align: center;
}

.figures-title {
  max-inline-size: 760px;
  margin-inline: auto;
  margin-block-end: 48px;
}

.figure-row {
  display: grid;
  gap: 40px;
}

@media (min-width: 768px) {
  .figure-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.figure-row div {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.figure {
  font-size: clamp(56px, 4vw + 32px, 96px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.figure-label {
  max-inline-size: 260px;
  color: var(--text-secondary);
}

.checks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-block-start: 48px;
}

.checks li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 20px;
}

.checks .icon {
  color: var(--accent);
}

.fineprint {
  max-inline-size: 720px;
  margin-inline: auto;
  margin-block-start: 24px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 20px;
}

.fineprint code {
  color: var(--text-primary);
  font-size: 13px;
}

/* Bilingual */

.stage {
  display: flex;
  justify-content: center;
  padding: 48px 24px 0;
  border-radius: 14px;
  background: linear-gradient(to bottom, var(--accent-tint), var(--bg-surface));
  overflow: hidden;
}

.stage-img {
  inline-size: min(100%, 340px);
  max-block-size: 520px;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--border-default);
  border-block-end: 0;
  border-start-start-radius: 10px;
  border-start-end-radius: 10px;
  box-shadow: var(--shadow-3);
}

.facts {
  display: grid;
  gap: 24px;
}

@media (min-width: 640px) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.facts li {
  display: grid;
  gap: 4px;
  align-content: start;
}

.facts p,
.facts span {
  color: var(--text-secondary);
}

.facts strong {
  font-weight: 600;
}

/* Lists with ticks */

.ticks {
  display: grid;
  gap: 12px;
}

.ticks li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 12px;
  color: var(--text-secondary);
}

.ticks .icon {
  margin-block-start: 4px;
  color: var(--accent);
}

.ticks strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Code panels */

.code {
  border: 1px solid var(--code-border);
  border-radius: 14px;
  background: var(--code-bg);
  color: var(--code-text);
  overflow: hidden;
}

.code-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-block-size: 44px;
  padding-inline: 16px 8px;
  border-block-end: 1px solid rgba(236, 235, 230, 0.12);
  color: var(--code-dim);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
}

.code-head .label {
  flex: 1;
  min-inline-size: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.code pre {
  padding: 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 20px;
  tab-size: 2;
}

@media (min-width: 1024px) {
  .code pre {
    padding: 24px;
  }
}

.code .c {
  color: var(--code-dim);
}

.code .k {
  color: var(--code-key);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-block-size: 32px;
  padding-inline: 12px;
  border: 1px solid rgba(236, 235, 230, 0.2);
  border-radius: 999px;
  background: transparent;
  color: var(--code-text);
  font: 500 12px / 16px var(--sans);
  cursor: pointer;
}

.copy-btn[hidden] {
  display: none;
}

.copy-btn:hover {
  background: rgba(236, 235, 230, 0.08);
}

.copy-btn:focus-visible {
  outline-color: var(--code-key);
}

.code-note {
  padding: 12px 16px;
  border-block: 1px solid rgba(236, 235, 230, 0.12);
  color: var(--code-dim);
  font-size: 14px;
  line-height: 20px;
}

.code-note code {
  color: var(--code-text);
  font-size: 13px;
}

.env-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-start: 8px;
}

.env-keys code {
  padding-inline: 4px;
  border-radius: 4px;
  background: rgba(236, 235, 230, 0.08);
}

/* Migration steps */

.steps-row {
  display: grid;
  gap: 32px;
  counter-reset: step;
}

@media (min-width: 640px) {
  .steps-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .steps-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.steps-row li {
  display: grid;
  gap: 8px;
  align-content: start;
  padding-block-start: 24px;
  border-block-start: 2px solid var(--accent);
}

.steps-row li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
}

.steps-row p {
  color: var(--text-secondary);
}

.notes {
  display: grid;
  gap: 16px;
  margin-block-start: 64px;
}

@media (min-width: 768px) {
  .notes {
    grid-template-columns: 1fr 1fr;
  }
}

.note {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  padding: 24px;
  border-radius: 14px;
  background: var(--bg-surface);
  color: var(--text-secondary);
}

.note .icon {
  margin-block-start: 4px;
  color: var(--accent);
}

/* Security */

.grid-3 {
  display: grid;
  gap: 40px 32px;
}

@media (min-width: 640px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px 64px;
  }
}

.grid-3 article {
  display: grid;
  gap: 8px;
  align-content: start;
}

.grid-3 .icon {
  inline-size: 24px;
  block-size: 24px;
  margin-block-end: 8px;
  color: var(--accent);
}

.grid-3 p {
  color: var(--text-secondary);
}

.spec {
  display: grid;
  margin-block-start: 64px;
  border: 1px solid var(--border-default);
  border-radius: 14px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .spec {
    grid-template-columns: 3fr 2fr 2fr 2fr;
  }
}

.spec div {
  display: grid;
  gap: 4px;
  padding: 20px 24px;
  border-block-end: 1px solid var(--border-default);
}

.spec div:last-child {
  border-block-end: 0;
}

@media (min-width: 768px) {
  .spec div {
    border-block-end: 0;
    border-inline-end: 1px solid var(--border-default);
  }

  .spec div:last-child {
    border-inline-end: 0;
  }
}

.spec dt {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}

.spec dd {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.after {
  margin-block-start: 24px;
}

/* Roadmap */

.road {
  display: grid;
  gap: 48px 32px;
}

@media (min-width: 900px) {
  .road {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.road article {
  display: grid;
  gap: 24px;
  align-content: start;
}

.version {
  padding-block-end: 16px;
  border-block-end: 1px solid var(--border-default);
  font-size: clamp(36px, 3.4vw + 16px, 64px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.035em;
}

/* FAQ: native disclosure, so it works without script. */

.qa {
  max-inline-size: 840px;
  margin-inline: auto;
  border-block-start: 1px solid var(--border-default);
}

.qa details {
  border-block-end: 1px solid var(--border-default);
}

.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-block-size: 64px;
  padding-block: 16px;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary .icon {
  inline-size: 20px;
  block-size: 20px;
  color: var(--accent);
  transition: transform var(--slow) var(--ease);
}

.qa details[open] summary .icon {
  transform: rotate(45deg);
}

.qa details p {
  max-inline-size: 720px;
  padding-block-end: 24px;
  color: var(--text-secondary);
}

.qa-more {
  margin-block-start: 32px;
}

/* Closing call to action */

.cta {
  display: grid;
  justify-items: center;
  gap: 24px;
  text-align: center;
}

.cta .lead {
  max-inline-size: 640px;
}

.cta-mark {
  inline-size: 64px;
  block-size: 64px;
}

/* Footer */

.site-footer {
  padding-block: 48px 32px;
  border-block-start: 1px solid var(--border-default);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 16px;
}

.footer-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-grid h2 {
  margin-block-end: 8px;
  color: var(--text-primary);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}

.footer-grid ul {
  display: grid;
}

.footer-grid a {
  display: inline-flex;
  min-block-size: 32px;
  align-items: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  line-height: 20px;
}

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

.footer-grid .brand {
  color: var(--text-primary);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.footer-grid .brand:hover {
  text-decoration: none;
}

.footer-about {
  max-inline-size: 320px;
  font-size: 14px;
  line-height: 20px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-block-start: 40px;
  padding-block-start: 20px;
  border-block-start: 1px solid var(--border-default);
  font-size: 14px;
  line-height: 20px;
}

.footer-bottom a {
  color: var(--text-primary);
}

/* 404 */

.not-found {
  display: grid;
  justify-items: center;
  gap: 24px;
  min-block-size: 100vh;
  align-content: center;
  padding-block: 64px;
  text-align: center;
}

/* Motion: content rises into place once, as it scrolls into view. site.js only
   hides what starts below the fold, so nothing flashes and nothing is hidden
   without script. */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    transition:
      opacity var(--reveal) var(--ease),
      transform var(--reveal) var(--ease);
  }

  .reveal.is-pending {
    opacity: 0;
    transform: translateY(24px);
  }

  .hero-copy > *,
  .showcase {
    animation: rise var(--reveal) var(--ease) both;
  }

  .hero-copy > :nth-child(2) {
    animation-delay: 60ms;
  }

  .hero-copy > :nth-child(3) {
    animation-delay: 120ms;
  }

  .hero-copy > :nth-child(n + 4) {
    animation-delay: 180ms;
  }

  .showcase {
    animation-delay: 240ms;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

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

  :root {
    --fast: 0ms;
    --slow: 0ms;
    --reveal: 0ms;
  }
}

@media (forced-colors: active) {
  .seg input:checked + label {
    outline: 2px solid CanvasText;
  }

  .disc,
  .steps-row li {
    forced-color-adjust: none;
  }
}

:lang(ar) .code-head .label:not(.ltr) {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 20px;
}
