/* LangHUD download site. Plain CSS, system fonts only, no external resources.
   Layout uses logical properties only (inline = reading direction), so Hebrew and other
   right-to-left languages mirror without extra rules. */

:root {
  --bg: #f6f7fb;
  --bg-elevated: #ffffff;
  --bg-soft: #eef1f8;
  --text: #0b1324;
  --text-muted: #4a5568;
  --border: rgba(15, 23, 42, 0.1);
  --border-strong: rgba(15, 23, 42, 0.16);
  --accent: #1d4ed8;
  --accent-2: #0369a1;
  --accent-soft: rgba(29, 78, 216, 0.08);
  --mark: #1d4ed8;
  --mark-2: #075985;
  --accent-text: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 24px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, 0.05), 0 18px 40px rgba(15, 23, 42, 0.12);
  --glow-1: rgba(59, 130, 246, 0.22);
  --glow-2: rgba(6, 182, 212, 0.16);
  --radius: 18px;
  --radius-sm: 12px;
  --hud-bg: rgba(15, 23, 42, 0.88);
  --hud-text: #ffffff;
  --header-bg: rgba(246, 247, 251, 0.8);

  /* Type scale: one step is about 1.2x the previous. */
  --step--1: 14px;
  --step-0: 17px;
  --step-1: 19px;
  --step-2: 23px;
  --step-3: clamp(28px, 4vw, 40px);
  --step-4: clamp(34px, 6vw, 62px);

  /* Spacing */
  --space-section: 96px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070b16;
    --bg-elevated: #121a2b;
    --bg-soft: #0c1322;
    --text: #e6ebf3;
    --text-muted: #9aa8bd;
    --border: rgba(148, 163, 184, 0.2);
    --border-strong: rgba(148, 163, 184, 0.32);
    --accent: #93c5fd;
    --accent-2: #67e8f9;
    --accent-soft: rgba(147, 197, 253, 0.1);
    --mark: #1d4ed8;
    --mark-2: #0369a1;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 22px 48px rgba(0, 0, 0, 0.5);
    --glow-1: rgba(59, 130, 246, 0.24);
    --glow-2: rgba(34, 211, 238, 0.12);
    --hud-bg: rgba(30, 41, 59, 0.94);
    --header-bg: rgba(7, 11, 22, 0.74);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

/* Line breaking: no word left alone on the last line. Headings and short labels are balanced,
   running text avoids a one-word last line. */

p,
li,
figcaption,
.placeholder-banner {
  text-wrap: pretty;
}

h1,
h2,
h3,
.eyebrow,
.button,
.hero-meta,
.hero-privacy {
  text-wrap: balance;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--bg-soft);
  padding: 0.1em 0.35em;
  border-radius: 6px;
}

::selection {
  background: rgba(59, 130, 246, 0.28);
}

.container {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 24px;
}

.narrow {
  max-width: 780px;
}

/* Header */

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 10;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-block-end: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 62px;
}

.header-end {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

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

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  box-shadow: var(--shadow-sm);
}

.site-nav {
  display: flex;
  gap: 4px;
  font-size: 15px;
}

.site-nav a {
  padding: 6px 10px;
  white-space: nowrap;
  border-radius: 8px;
  color: var(--text-muted);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--accent-soft);
  text-decoration: none;
}

/* Language menu: one plain link per language, named in its own language. The current one is marked. */

.lang-menu {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: none;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elevated);
}

.lang-menu a {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.lang-menu a:hover {
  color: var(--text);
  text-decoration: none;
}

.lang-menu a[aria-current] {
  color: var(--text);
  background: var(--bg-soft);
  box-shadow: inset 0 0 0 1px var(--border);
}

/* Right-to-left scripts (Hebrew, Arabic) are not letter-spaced or upper-cased. */

html[dir="rtl"] .hero h1,
html[dir="rtl"] .section h2,
html[dir="rtl"] .page h1,
html[dir="rtl"] .brand {
  letter-spacing: 0;
}

html[dir="rtl"] .eyebrow {
  letter-spacing: 0;
  text-transform: none;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
  text-align: center;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s ease, border-color 0.18s ease;
}

.button:hover {
  text-decoration: none;
}

.button-primary {
  color: var(--accent-text);
  background: linear-gradient(135deg, var(--mark), var(--mark-2));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 6px 20px rgba(29, 78, 216, 0.3);
}

.button-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 10px 28px rgba(37, 99, 235, 0.4);
}

.button-primary:active {
  transform: translateY(0);
}

.button-secondary {
  color: var(--text);
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

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

.button[aria-disabled="true"],
.button:disabled {
  color: var(--text-muted);
  background: var(--bg-soft);
  border-color: var(--border-strong);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: 92px 80px;
  text-align: center;
}

/* Two soft glows behind the hero. They are symmetric about the centre, so they need no mirroring. */
.hero::before {
  content: "";
  position: absolute;
  inset: -45% -20% auto;
  height: 620px;
  background:
    radial-gradient(closest-side at 38% 50%, var(--glow-1), transparent),
    radial-gradient(closest-side at 62% 45%, var(--glow-2), transparent);
  pointer-events: none;
}

/* A faint dotted grid that fades out towards the edges. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--border-strong) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 35%, #000, transparent);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 35%, #000, transparent);
  opacity: 0.55;
  pointer-events: none;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-icon {
  width: 104px;
  height: 104px;
  margin: 0 auto 28px;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.hero h1 {
  margin: 0 auto;
  max-width: 15em;
  font-family: var(--font-display);
  font-size: var(--step-4);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 760;
}

.gradient-text {
  display: inline-block;
  padding-block-end: 0.06em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  margin: 24px auto 0;
  max-width: 36em;
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.55;
  color: var(--text-muted);
}

.hero-privacy {
  display: block;
  width: fit-content;
  margin: 18px auto 0;
  max-width: min(100%, 48em);
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.hero-meta {
  margin: 18px auto 0;
  font-size: var(--step--1);
  color: var(--text-muted);
}

/* A text field with the reminder card above it, the way the HUD sits near the caret.
   The two faces cross-fade. Reduced motion shows both, still. */

.hud-stage {
  position: relative;
  width: min(100%, 300px);
  margin: 36px auto 6px;
}

.hud-field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding-inline: 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.hud-caret {
  width: 2px;
  height: 20px;
  flex: none;
  border-radius: 1px;
  background: var(--mark);
  animation: caret-blink 1.1s steps(1) infinite;
}

@media (prefers-color-scheme: dark) {
  .hud-caret {
    background: var(--accent);
  }
}

.hud-ghost {
  width: 72px;
  height: 8px;
  border-radius: 999px;
  background: var(--bg-soft);
  box-shadow: inset 0 0 0 1px var(--border);
}

.hud-ghost-short {
  width: 40px;
}

.hud-demo {
  position: relative;
  z-index: 1;
  display: grid;
  justify-content: start;
  width: max-content;
  max-width: 100%;
  margin: 0 0 -16px;
  margin-inline-start: 18px;
}

.hud-face {
  grid-area: 1 / 1;
  animation: hud-swap 4.8s var(--ease-out) infinite;
}

.hud-face[data-cycle="he"] {
  animation-delay: -2.4s;
}

@keyframes hud-swap {
  0%, 40% { opacity: 1; transform: translateY(0) scale(1); }
  50%, 90% { opacity: 0; transform: translateY(8px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes caret-blink {
  0%, 45% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.hud {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--hud-bg);
  color: var(--hud-text);
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 17px;
  font-weight: 600;
}

.hud .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 30px;
  padding: 0 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 15px;
  letter-spacing: 0.04em;
}

/* Sections */

.section {
  padding-block: var(--space-section);
}

.section-alt {
  background: var(--bg-soft);
  border-block: 1px solid var(--border);
}

.section h2 {
  margin: 0 0 14px;
  max-width: 22em;
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.12;
  letter-spacing: -0.022em;
  font-weight: 720;
}

.section .section-lead {
  margin: 0 0 44px;
  max-width: 40em;
  color: var(--text-muted);
  font-size: 18px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

html[dir="rtl"] .eyebrow {
  font-size: 14px;
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.card h3 {
  margin: 0 0 8px;
  font-size: var(--step-1);
  line-height: 1.3;
}

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

/* Short card texts are balanced: "pretty" alone can still leave one word after a mixed
   Hebrew and English line break. */
.feature-more .card p,
.steps .card p,
.note li {
  text-wrap: balance;
}

.card p + p {
  margin-top: 10px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  border-radius: 11px;
  color: var(--accent-text);
  background: linear-gradient(135deg, var(--mark), var(--mark-2));
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.28);
  font-weight: 700;
}

/* Notes (download steps) */

.note {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-inline-start: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.note h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.note ol {
  margin: 0;
  padding-inline-start: 20px;
  color: var(--text-muted);
}

.note li + li {
  margin-top: 6px;
}

.note li::marker {
  color: var(--accent);
  font-weight: 700;
}

.note p {
  margin: 12px 0 0;
  padding-block-start: 12px;
  border-block-start: 1px dashed var(--border-strong);
  color: var(--text-muted);
  font-size: 15px;
}

/* Lists with check marks */

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checks li {
  position: relative;
  padding-inline-start: 30px;
  color: var(--text-muted);
}

.checks li + li {
  margin-top: 10px;
}

.checks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.35em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mark), var(--mark-2));
}

/* The tick is drawn as a rotated corner; it reads the same way in both directions. */
.checks li::after {
  content: "";
  position: absolute;
  inset-inline-start: 6px;
  inset-block-start: calc(0.35em + 4px);
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checks strong {
  color: var(--text);
}

/* Features */

/* Where content follows a heading directly (no lead paragraph), give it the same breathing room. */
.section h2 + .feature-pair,
.section h2 + .faq-list,
.section h2 + .pricing-card {
  margin-block-start: 32px;
}

.feature-pair {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 20px;
}

.feature-highlight {
  padding: 34px;
  overflow: hidden;
}

/* Accent strip along the top edge of the two main feature cards. */
.feature-highlight::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(135deg, var(--mark), var(--mark-2));
}

.feature-highlight h3 {
  font-size: var(--step-2);
  margin-bottom: 12px;
}

.feature-example {
  margin-top: 20px !important;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text) !important;
  font-family: var(--mono);
  font-size: 15px;
}

.steps {
  list-style: none;
  margin: 0 0 44px;
  padding: 0;
}

/* FAQ */

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  padding-inline: 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease;
}

.faq-list details[open] {
  border-color: var(--border-strong);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding-block: 14px;
}

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

.faq-list summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  font-size: 20px;
  line-height: 1;
  color: var(--accent);
}

.faq-list details[open] summary::after {
  content: "\2212";
}

.faq-list summary h3 {
  margin: 0;
  font-size: 17.5px;
  line-height: 1.35;
}

.faq-list details p {
  margin: 0 0 18px;
  color: var(--text-muted);
}

/* Pricing */

.pricing-card {
  padding: 36px;
  overflow: hidden;
}

.pricing-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(135deg, var(--mark), var(--mark-2));
}

.pricing-card .section-lead {
  margin-bottom: 14px;
}

.pricing-card .button-row {
  margin: 26px 0 0;
}

.section .price-lead {
  color: var(--text);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
}

/* Download setup steps */

.setup {
  margin-top: 40px;
}

/* Hidden by clipping, not by pushing it off-screen: off-screen to the inline start is scrollable
   overflow in right-to-left pages. */
.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  inset-block-start: 12px;
  z-index: 20;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--text);
  box-shadow: var(--shadow);
}

/* Plain text pages (changelog, policies) */

.page {
  padding-block: 72px 88px;
}

.page h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -0.022em;
  line-height: 1.1;
}

.page .page-lead {
  margin: 0 0 40px;
  color: var(--text-muted);
  font-size: 18px;
}

.page h2 {
  margin: 44px 0 10px;
  font-size: var(--step-2);
  line-height: 1.25;
}

.page h3 {
  margin: 24px 0 6px;
  font-size: 18px;
}

.page p,
.page li {
  color: var(--text-muted);
}

.page li + li {
  margin-top: 4px;
}

.placeholder-banner {
  margin: 0 0 32px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--accent);
  background: var(--accent-soft);
  color: var(--text);
  font-size: 15px;
}

.release {
  padding: 26px 0;
  border-block-start: 1px solid var(--border);
}

.release:first-of-type {
  border-block-start: none;
}

.release h2 {
  margin: 0;
}

.release-date {
  margin: 2px 0 0;
  font-size: 14px;
}

.release ul {
  margin: 6px 0 0;
  padding-inline-start: 22px;
}

.release li + li {
  margin-top: 4px;
}

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

/* Mac App Store placeholder: shown next to Download until the listing exists. */

.button-store {
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px dashed var(--border-strong);
  cursor: default;
}

.button-store small,
.button-soon small {
  font-weight: 500;
  font-size: 13px;
}

/* Checkout is not wired yet. The control still points at #buy-soon so the real link can replace it. */
.button-soon {
  border-style: dashed;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

/* Demo video. The poster image stands in until media/demo.mp4 exists. */

.demo {
  position: relative;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  background: var(--bg-elevated);
  aspect-ratio: 16 / 9;
}

.demo video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Centred along the bottom edge with logical insets, so it needs no mirroring. */
.demo-caption {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 18px;
  width: fit-content;
  max-width: calc(100% - 32px);
  margin-inline: auto;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  color: #fff;
  font-size: 14px;
  text-align: center;
}

.demo.has-video .demo-caption {
  display: none;
}

/* Reveal on scroll (only when site.js runs and motion is allowed). Cards inside a section follow
   one after another. */

.js-reveal .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js-reveal .reveal .grid > *,
.js-reveal .reveal .feature-pair > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), box-shadow 0.2s ease, border-color 0.2s ease;
}

.js-reveal .reveal.is-visible .grid > *,
.js-reveal .reveal.is-visible .feature-pair > * {
  opacity: 1;
  transform: none;
}

.js-reveal .reveal.is-visible .grid > :nth-child(2),
.js-reveal .reveal.is-visible .feature-pair > :nth-child(2) {
  transition-delay: 0.08s, 0.08s, 0s, 0s;
}

.js-reveal .reveal.is-visible .grid > :nth-child(3) {
  transition-delay: 0.16s, 0.16s, 0s, 0s;
}

/* Footer */

.site-footer {
  padding-block: 40px 56px;
  border-block-start: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

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

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: var(--text);
}

/* Small screens */

@media (max-width: 900px) {
  .site-nav .optional {
    display: none;
  }
}

@media (max-width: 760px) {
  :root {
    --space-section: 64px;
  }

  /* The poster's window fills almost the whole frame at this size, so the caption moves below
     the picture instead of over it. */
  .demo {
    aspect-ratio: auto;
  }

  .demo video {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .demo-caption {
    position: static;
    margin-block: 10px;
    background: none;
    color: var(--text-muted);
  }

  /* Language links are full-size touch targets on phones. */
  .lang-menu {
    padding: 0;
  }

  .lang-menu a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-inline: 12px;
  }

  body {
    font-size: 16px;
  }

  .site-header .container {
    height: auto;
    min-height: 56px;
    padding-block: 10px;
  }

  .header-end {
    gap: 12px;
  }

  .site-nav {
    gap: 2px;
    font-size: 14px;
  }

  .hero {
    padding-block: 64px 56px;
  }

  .feature-pair {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    padding: 28px;
  }
}

@media (max-width: 520px) {
  :root {
    --space-section: 52px;
  }

  .container {
    padding-inline: 20px;
  }

  .site-header .container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand . languages" "nav nav nav";
    align-items: center;
    column-gap: 12px;
    row-gap: 4px;
  }

  .brand {
    grid-area: brand;
  }

  .header-end {
    display: contents;
  }

  .lang-menu {
    grid-area: languages;
    justify-self: end;
  }

  .site-nav {
    grid-area: nav;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-inline-start: -10px;
  }

  .hero-actions,
  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button,
  .button-row .button {
    width: 100%;
  }

  .hero {
    padding-block: 44px 40px;
  }

  .hero-icon {
    width: 88px;
    height: 88px;
    margin-bottom: 22px;
  }

  .card,
  .feature-highlight,
  .pricing-card {
    padding: 22px;
  }

  .faq-list details {
    padding-inline: 16px;
  }

  .demo {
    border-radius: 16px;
  }
}

/* Reduced motion: nothing moves. Every animated or transitioned selector above is listed here. */

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

  .button,
  .card,
  .site-nav a,
  .faq-list details,
  .js-reveal .reveal,
  .js-reveal .reveal .grid > *,
  .js-reveal .reveal .feature-pair > *,
  .hud-face,
  .hud-caret {
    transition: none;
    animation: none;
  }

  .button-primary:hover {
    transform: none;
  }

  .js-reveal .reveal,
  .js-reveal .reveal .grid > *,
  .js-reveal .reveal .feature-pair > * {
    opacity: 1;
    transform: none;
  }

  .hud-demo {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    width: auto;
    margin: 0 0 14px;
  }

  .hud-face {
    opacity: 1;
    transform: none;
  }

  .hud-stage {
    width: min(100%, 420px);
  }
}
