/* EdgeMind landing page. Dark mode only.
   Brand values live only in :root, because the identity is not final yet (CLAUDE.md section 11). */

/* Fonts are self hosted Google Fonts files, one CSS file per family in /assets/fonts/.
   Each page links only the families it uses, chosen in build.mjs. */

:root {
  /* the two brand colours and the accent */
  --ink: #0B0B0D;
  --cream: #F5EFE3;
  --accent: #C2410C;

  /* derived surfaces and text */
  --ink-alt: #0F0F12;
  --ink-raised: #141417;
  --ink-line: rgba(245, 239, 227, 0.10);
  --cream-muted: #B5AEA2;
  --accent-deep: #A3360A;
  --accent-on-ink: #E2641F;

  /* type */
  --font-latin: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --display-weight: 660;
  --display-stretch: 108%;
  --font-body: var(--font-latin);
  --font-arabic: "Cairo", "Geeza Pro", "SF Arabic", "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-hebrew: "Heebo", "SF Hebrew", "Arial Hebrew", "Segoe UI", Arial, sans-serif;
  --font-inter: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-devanagari: "Anek Devanagari", "Kohinoor Devanagari", "Noto Sans Devanagari", "Nirmala UI", sans-serif;
  --font-bengali: "Anek Bangla", "Kohinoor Bangla", "Noto Sans Bengali", "Nirmala UI", sans-serif;
  --font-thai: "Noto Sans Thai", "Thonburi", "Leelawadee UI", Tahoma, sans-serif;
  --font-japanese: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-chinese-traditional: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;

  /* layout and motion */
  --wrap: 1180px;
  --gutter: 16px;
  --radius-l: 28px;
  --radius-m: 20px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.2, 0.9, 0.25, 1.15);
  --nav-h: 76px;
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

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

html {
  color-scheme: dark;
  background: var(--ink);
  color: var(--cream);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

/* read by screen readers, hidden on screen */
.visually-hidden {
  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: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: var(--cream);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--accent-on-ink);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- type ---------- */

/* the logo: the mark plus EdgeMind in Figtree, identical on every language page and never mirrored */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  direction: ltr;
  unicode-bidi: isolate;
  font-family: "Figtree", var(--font-latin);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.015em;
  line-height: 1;
  color: var(--cream);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark__mark { width: 32px; height: 32px; flex: none; border-radius: 7px; }
.footer .wordmark { font-size: 1.15rem; }
.footer .wordmark__mark { width: 28px; height: 28px; border-radius: 6px; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-on-ink);
  margin-bottom: 18px;
}

.h2 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-stretch: var(--display-stretch);
  font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 18ch;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.lead {
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.55;
  color: var(--cream-muted);
  max-width: 46ch;
  margin-top: 20px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--primary {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: var(--cream);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 10px 26px -12px rgba(226, 100, 31, 0.75);
}
.btn--primary:hover {
  background: linear-gradient(180deg, var(--accent) 0%, #932E08 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 14px 32px -12px rgba(226, 100, 31, 0.95);
}
.btn--ghost {
  border: 1px solid rgba(245, 239, 227, 0.14);
  background: rgba(245, 239, 227, 0.04);
  color: var(--cream);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover { border-color: rgba(245, 239, 227, 0.32); background: rgba(245, 239, 227, 0.07); }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 0.92rem; }

/* ---------- nav: a floating glass bar ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: 12px;
}
.nav__row {
  height: calc(var(--nav-h) - 16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-inline: 22px 8px;
  border-radius: 999px;
  background: rgba(20, 20, 23, 0.5);
  border: 1px solid rgba(245, 239, 227, 0.08);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  backdrop-filter: saturate(140%) blur(18px);
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.7);
  transition: background-color 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}
.nav.is-scrolled .nav__row {
  background: rgba(16, 16, 19, 0.84);
  border-color: rgba(245, 239, 227, 0.12);
  box-shadow: 0 18px 44px -18px rgba(0, 0, 0, 0.9);
}
.nav__end { display: flex; align-items: center; gap: 8px; }
/* phones keep the name and the language button; the same button sits right below in the hero */
@media (max-width: 479px) {
  .nav .btn--small { display: none; }
  .nav__row { padding-inline: 18px 6px; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  margin-top: calc(var(--nav-h) * -1);
  padding: calc(var(--nav-h) + 40px) 0 80px;
}
@media (min-width: 1200px) {
  /* the top space shrinks on short laptop screens (down to 32px), so the whole iPhone shows at 1280 x 800 */
  .hero { padding-top: calc(var(--nav-h) + clamp(32px, 100vh - 766px, 64px)); padding-bottom: 112px; }
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(245, 239, 227, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(245, 239, 227, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 0%, transparent 75%);
  pointer-events: none;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 520px;
  background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(245, 239, 227, 0.07), transparent 70%);
  pointer-events: none;
}
.hero__glow {
  position: absolute;
  width: 1000px;
  height: 1000px;
  inset-inline-end: -300px;
  top: -140px;
  background:
    radial-gradient(closest-side at 58% 42%, rgba(226, 100, 31, 0.38), transparent 72%),
    radial-gradient(closest-side at 34% 68%, rgba(245, 166, 35, 0.14), transparent 70%),
    radial-gradient(closest-side at 76% 74%, rgba(160, 40, 10, 0.3), transparent 70%);
  filter: blur(28px);
  animation: aurora 22s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes aurora {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-48px, 36px, 0) scale(1.08); }
}

.hero__row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
@media (min-width: 1200px) {
  .hero__row { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; }
}

/* the launch date: a small glass pill above the headline */
.launch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 7px 15px 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--cream);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-stretch: var(--display-stretch);
  font-size: clamp(2.5rem, 1.2rem + 4.6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  overflow-wrap: break-word;
}
.hero__title .line { display: block; text-wrap: balance; }
.hero__accent {
  color: var(--accent-on-ink);
  background: linear-gradient(100deg, #F3A06A 0%, var(--accent-on-ink) 42%, #D4511A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__lead {
  margin-top: 28px;
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.22rem);
  line-height: 1.6;
  color: var(--cream-muted);
  max-width: 50ch;
}


/* the waitlist form: one glass row for the email and the button, the consent line under it */
.waitlist { margin-top: 36px; max-width: 540px; }
.waitlist__row {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: box-shadow 200ms ease;
}
.waitlist__row:focus-within { box-shadow: inset 0 0 0 1px rgba(226, 100, 31, 0.75), 0 0 0 4px rgba(226, 100, 31, 0.16); }
.waitlist__input {
  flex: 1;
  min-width: 0;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: var(--cream);
  font: inherit;
  font-size: 1rem;
}
[dir="rtl"] .waitlist__input { text-align: right; }
.waitlist__input::placeholder { color: rgba(245, 239, 227, 0.42); }
.waitlist__input:focus { outline: none; }
.waitlist__button { flex: none; }
.waitlist__button:disabled { opacity: 0.7; cursor: progress; }
.waitlist__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--cream-muted);
  cursor: pointer;
}
.waitlist__consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent-on-ink); }
.waitlist__consent a { color: var(--cream); text-decoration: underline; text-decoration-color: rgba(245, 239, 227, 0.35); text-underline-offset: 3px; }
.waitlist__trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; pointer-events: none; }
.waitlist__bot:not(:empty) { margin-top: 12px; }
.waitlist__status { min-height: 1.5em; margin-top: 10px; font-size: 0.92rem; color: var(--cream-muted); }
.waitlist__status[data-kind="error"] { color: #F3A06A; }
.waitlist__status[data-kind="ok"] { color: var(--cream); font-size: 1rem; font-weight: 600; }
.waitlist.is-done .waitlist__row,
.waitlist.is-done .waitlist__consent { display: none; }
@media (max-width: 479px) {
  .waitlist__row { flex-direction: column; border-radius: 24px; }
  .waitlist__input { min-height: 48px; }
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-size: 0.92rem;
  color: var(--cream-muted);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-on-ink);
  box-shadow: 0 0 0 4px rgba(226, 100, 31, 0.18);
  flex: none;
}

/* ---------- demo stage: data cards, wires, iPhone, travelling messages ---------- */

.hero__demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  min-width: 0;
}

.stage {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  perspective: 1600px;
}
.sources {
  position: relative;
  z-index: 2;
  order: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
@media (min-width: 1200px) {
  .stage { flex-direction: row; justify-content: flex-end; gap: 32px; }
  .sources { order: 0; flex-direction: column; gap: 36px; }
}

/* the data cards: small panes of the same frosted glass as the iPhone */
.node {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 168px;
  padding: 12px 13px;
  border-radius: 18px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.045) 40%, rgba(255, 255, 255, 0.025) 70%, rgba(255, 255, 255, 0.07) 100%),
    rgba(16, 16, 19, 0.36);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 16px 32px -18px rgba(0, 0, 0, 0.8),
    0 18px 44px -28px rgba(226, 100, 31, 0.38);
  transition: box-shadow 320ms ease, transform 320ms var(--ease-out);
}
/* the warm tint (before) and the orange edge with its glow (after) fade in and out */
.node::before,
.node::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
}
.node::before {
  z-index: -1;
  background: linear-gradient(165deg, rgba(243, 160, 106, 0.2) 0%, rgba(226, 100, 31, 0.09) 48%, rgba(226, 100, 31, 0.03) 100%);
}
.node::after {
  box-shadow:
    inset 0 0 0 1px rgba(243, 160, 106, 0.42),
    0 0 24px -4px rgba(226, 100, 31, 0.5);
}
.node__icon {
  position: relative;
  isolation: isolate;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 22%, rgba(243, 160, 106, 0.3), rgba(226, 100, 31, 0.1) 72%);
  box-shadow:
    inset 0 0 0 1px rgba(243, 160, 106, 0.24),
    inset 0 1px 0 rgba(255, 220, 196, 0.22),
    0 6px 14px -8px rgba(226, 100, 31, 0.7);
  color: #F3A06A;
  transition: color 320ms ease;
}
/* the solid orange fill of the done state */
.node__icon::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(160deg, var(--accent-on-ink) 0%, var(--accent) 55%, var(--accent-deep) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 228, 208, 0.4);
  opacity: 0;
  transition: opacity 320ms ease;
}
.node__icon svg { width: 16px; height: 16px; }
.node__text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.node__text strong { font-size: 0.8rem; font-weight: 650; }
.node__text span { font-size: 0.68rem; color: var(--cream-muted); }

/* reading: warmer glass, a thin orange edge and a soft glow that breathes */
.node.is-active {
  transform: scale(1.05);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 232, 214, 0.26),
    0 16px 34px -16px rgba(0, 0, 0, 0.75),
    0 20px 46px -18px rgba(226, 100, 31, 0.6);
}
.node.is-active::before { opacity: 1; }
.node.is-active::after { opacity: 1; animation: node-glow 1.8s ease-in-out 320ms infinite alternate; }
.node.is-active .node__icon { color: #FFC59A; }
/* answered: the icon fills with orange, the text stays cream on dark glass */
.node.is-done::before { opacity: 0.6; }
.node.is-done .node__icon { color: var(--cream); }
.node.is-done .node__icon::before { opacity: 1; }

@media (max-width: 559px) {
  .node { width: auto; gap: 8px; padding-block: 9px; padding-inline: 9px 11px; border-radius: 15px; }
  .node__icon { width: 26px; height: 26px; border-radius: 8px; }
  .node__text span { display: none; }
}

.wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 900ms ease;
}
.stage.is-wired .wires { opacity: 1; }
/* at rest a line of fine dots; while a card is read, short dashes flow along it */
.wire {
  fill: none;
  stroke: rgba(245, 239, 227, 0.22);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-dasharray: 0.01 5;
  transition: stroke 300ms ease;
}
.wire.is-active {
  stroke: rgba(240, 138, 78, 0.9);
  stroke-dasharray: 6 8;
  animation: wire-flow 800ms linear infinite;
}
.wire.is-active.is-out { animation-direction: reverse; }
.wire-sampler { fill: none; stroke: none; }

.packets { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.packet {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  will-change: transform, opacity;
}
.packet--query {
  width: 30px;
  height: 18px;
  border-radius: 9px 9px 3px 9px;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(226, 100, 31, 0.22), 0 0 22px 2px rgba(226, 100, 31, 0.75);
}
.packet--query::before,
.packet--query::after {
  content: "";
  position: absolute;
  left: 7px;
  height: 2px;
  border-radius: 1px;
  background: rgba(245, 239, 227, 0.9);
}
.packet--query::before { right: 7px; top: 6px; }
.packet--query::after { right: 12px; top: 10px; opacity: 0.65; }
.packet--data {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cream);
  color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 239, 227, 0.16), 0 0 24px 2px rgba(245, 239, 227, 0.5);
}
.packet--data svg { width: 13px; height: 13px; }
.packet--trail {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-on-ink);
  box-shadow: 0 0 10px rgba(226, 100, 31, 0.8);
}
.packet--trail.is-data { background: var(--cream); box-shadow: 0 0 10px rgba(245, 239, 227, 0.7); }

/* the iPhone, drawn in CSS so it can move. No bezel: the screen is the whole device.
   It is wider than Apple's iPhone 18 Pro Max body (78.0 x 163.4 mm) on purpose,
   at the height that body ratio gave, so more of each message fits on a line. */
.iphone {
  --phone-w: 306px;
  --phone-r: calc(var(--phone-w) * 0.165);
  position: relative;
  z-index: 1;
  flex: none;
  width: var(--phone-w);
  height: calc(var(--phone-w) * 1.985);
  border-radius: var(--phone-r);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.035) 38%, rgba(255, 255, 255, 0.02) 70%, rgba(255, 255, 255, 0.07) 100%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  backdrop-filter: blur(26px) saturate(150%);
  box-shadow:
    0 40px 80px -32px rgba(0, 0, 0, 0.75),
    0 30px 90px -40px rgba(226, 100, 31, 0.5);
}
@media (max-width: 559px) { .iphone { --phone-w: 287px; } }
@media (max-width: 359px) { .iphone { --phone-w: 270px; } }
.iphone__btn {
  display: none;
  position: absolute;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #2F2F35, #4A4A52);
}
.iphone__btn--action { left: -3px; top: 112px; height: 28px; }
.iphone__btn--up { left: -3px; top: 160px; height: 50px; }
.iphone__btn--down { left: -3px; top: 222px; height: 50px; }
.iphone__btn--power { right: -3px; top: 184px; height: 80px; background: linear-gradient(270deg, #2F2F35, #4A4A52); }

.iphone__screen {
  position: relative;
  height: 100%;
  border-radius: var(--phone-r);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  background: rgba(8, 8, 10, 0.42);
}
/* the status bar at the size of a real one: the clock is as large as the message text */
.iphone__status {
  position: relative;
  flex: none;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 3px;
  padding-inline: 32px 21px;
  color: var(--cream);
}
.iphone__time { font-size: 12.5px; font-weight: 650; letter-spacing: -0.01em; }
.iphone__island {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 92px;
  height: 27px;
  margin-left: -46px;
  border-radius: 999px;
  background: #000;
  display: none;
}
.iphone__icons { display: flex; align-items: center; gap: 4px; }
.iphone__icons svg { width: auto; height: 9.5px; fill: currentColor; }
.iphone__home {
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 96px;
  height: 4px;
  margin-left: -48px;
  border-radius: 2px;
  background: rgba(245, 239, 227, 0.55);
}
.iphone__wake {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(8, 8, 10, 0.6);
  opacity: 0;
  pointer-events: none;
}
.iphone__glare {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 30%, transparent 52%);
  /* the glass rim, drawn over the screen's edge */
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.chat__head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 9px;
  padding-block: 2px 10px;
  padding-inline: 13px 16px;
  border-bottom: 1px solid var(--ink-line);
}
.chat__back { width: 9px; height: 16px; flex: none; color: var(--cream); }
.chat__avatar {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--accent-on-ink), var(--accent-deep));
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 0.66rem;
}
.chat__who { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.chat__who strong { font-size: 0.82rem; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat__badge {
  align-self: flex-start;
  margin-top: 2px;
  padding: 1px 6px;
  border: 1px solid rgba(226, 100, 31, 0.45);
  border-radius: 999px;
  font-size: 0.56rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-on-ink);
}
.chat__thread {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 12px 11px 9px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 36px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 36px);
}
/* nothing in the thread may shrink: older messages slide off the top instead */
.chat__thread > * { flex-shrink: 0; }
.chat__input {
  flex: none;
  height: 34px;
  margin: 3px 11px 22px;
  padding-inline: 14px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.76rem;
  color: rgba(245, 239, 227, 0.55);
}
.chat__send {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--cream);
}
.chat__send svg { width: 12px; height: 12px; }

.msg {
  max-width: 80%;
  padding: 7px 11px;
  border-radius: 16px;
  font-size: 0.78rem;
  line-height: 1.4;
  /* each bubble finds its own reading direction, while its tail follows the page */
  unicode-bidi: plaintext;
  text-align: start;
}
.msg--them {
  align-self: flex-end;
  background: var(--accent);
  color: var(--cream);
  border-end-end-radius: 5px;
  transform-origin: 100% 100%;
  animation: bubble-in 560ms var(--ease-spring) backwards;
}
.msg--agent {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--cream);
  border-end-start-radius: 5px;
  transform-origin: 0 100%;
  animation: bubble-in 560ms var(--ease-spring) backwards;
}
.msg:lang(ar) { font-size: 0.84rem; }

.tool {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 1px 4px;
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--cream-muted);
  animation: tool-in 460ms var(--ease-out) backwards;
}
.tool svg { width: 12px; height: 12px; flex: none; color: var(--accent-on-ink); }

.typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 16px;
  border-end-start-radius: 5px;
  background: #22222A;
  transform-origin: 0 100%;
  animation: bubble-in 360ms var(--ease-spring) backwards;
}
.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cream-muted);
  animation: typing 1.1s infinite ease-in-out;
}
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }

/* a product card sent in the chat, with its checkout button */
.msg--card {
  width: 74%;
  max-width: 196px;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  border-end-start-radius: 5px;
}
.pcard__media {
  display: grid;
  place-items: center;
  height: 104px;
  background:
    radial-gradient(circle at 30% 25%, rgba(226, 100, 31, 0.34), transparent 62%),
    linear-gradient(140deg, #2D2D35, #17171C);
  color: rgba(245, 239, 227, 0.88);
}
.pcard__media svg { width: 46px; height: 46px; }
/* the photo is black on black, so it is lifted a little for the small card */
.pcard__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; filter: brightness(1.45) contrast(1.05); }
.pcard__body { display: flex; flex-direction: column; gap: 2px; padding: 9px 11px 11px; }
.pcard__body strong { font-size: 0.78rem; font-weight: 650; line-height: 1.3; }
.pcard__meta { font-size: 0.68rem; color: var(--cream-muted); }
.pcard__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px; }
.pcard__price { font-size: 0.84rem; font-weight: 700; }
.pcard__cta {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--cream);
  font-size: 0.66rem;
  font-weight: 650;
  white-space: nowrap;
}

.demo-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.demo-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  background: rgba(20, 20, 23, 0.6);
}
.demo-tab {
  min-height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--cream-muted);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.demo-tab:lang(ar) { font-size: 0.9rem; }
.demo-tab:hover { color: var(--cream); }
.demo-tab[aria-pressed="true"] {
  background: rgba(226, 100, 31, 0.18);
  color: var(--cream);
  box-shadow: inset 0 0 0 1px var(--accent-on-ink);
}
.demo-pause {
  width: 46px;
  height: 46px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink-line);
  border-radius: 50%;
  background: rgba(20, 20, 23, 0.6);
  color: var(--cream-muted);
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease;
}
.demo-pause svg { width: 14px; height: 14px; fill: currentColor; }

.demo-pause:hover { color: var(--cream); border-color: rgba(245, 239, 227, 0.3); }

.stage.is-paused .typing span,
.stage.is-paused .wire.is-active,
.stage.is-paused .node.is-active::after { animation-play-state: paused; }

/* entrance: the iPhone flies in, the screen wakes, the cards arrive, the wires appear */
.js .stage:not(.is-live) .iphone,
.js .stage:not(.is-live) .node { opacity: 0; }
.js .stage.is-live .iphone { animation: phone-in 1300ms cubic-bezier(0.2, 0.85, 0.25, 1) backwards; }
.js .stage.is-live .iphone__wake { animation: screen-wake 700ms ease-out 700ms backwards; }
.js .stage.is-live .iphone__island { animation: island-pulse 900ms cubic-bezier(0.3, 1.3, 0.4, 1) 950ms backwards; }
.js .stage.is-live .node {
  animation: node-in 760ms var(--ease-out) backwards;
  animation-delay: calc(950ms + var(--i, 0) * 120ms);
}

@keyframes phone-in {
  0% { opacity: 0; transform: translateY(90px) rotateX(28deg) rotateY(-18deg) rotateZ(4deg) scale(0.86); }
  55% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes screen-wake { from { opacity: 1; } to { opacity: 0; } }
@keyframes island-pulse {
  0% { width: 92px; margin-left: -46px; }
  45% { width: 128px; margin-left: -64px; }
  100% { width: 92px; margin-left: -46px; }
}
@keyframes node-in { from { opacity: 0; transform: translateY(18px) scale(0.92); } }
@keyframes node-glow { to { opacity: 0.5; } }
/* one dash plus one gap (6 + 8), so the loop is seamless */
@keyframes wire-flow { to { stroke-dashoffset: -14; } }
@keyframes bubble-in {
  from { opacity: 0; transform: translateY(14px) scale(0.6); }
  60% { opacity: 1; }
  to { opacity: 1; transform: none; }
}
@keyframes tool-in { from { opacity: 0; transform: translateX(-8px); } }
@keyframes typing {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* ---------- sections ---------- */

.section { padding: 96px 0; }
@media (min-width: 1024px) { .section { padding: 136px 0; } }

/* how it works: three glass cards joined by the agent's route */
.how { position: relative; overflow: hidden; }
.how::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 55% at 50% 0%, rgba(226, 100, 31, 0.1), transparent 70%);
  pointer-events: none;
}
.how .wrap { position: relative; }
.how .eyebrow, .how .h2 { text-align: center; margin-inline: auto; }
.steps {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 16px;
  margin-top: 60px;
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .steps::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 55px;
    inset-inline: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(226, 100, 31, 0.7), transparent);
  }
  .steps::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 52px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #F3A06A;
    box-shadow: 0 0 14px 4px rgba(226, 100, 31, 0.7);
    animation: route 5.5s var(--ease-out) infinite;
  }
}
@keyframes route {
  0% { inset-inline-start: 12%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { inset-inline-start: 88%; opacity: 0; }
}
.step {
  position: relative;
  background: linear-gradient(180deg, rgba(245, 239, 227, 0.05), rgba(245, 239, 227, 0.015));
  border: 1px solid rgba(245, 239, 227, 0.09);
  border-radius: var(--radius-l);
  padding: 28px 26px 32px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: border-color 200ms ease, transform 200ms var(--ease-out);
}
.step:hover { border-color: rgba(226, 100, 31, 0.38); transform: translateY(-3px); }
.step__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.step__icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #F3A06A;
  background: radial-gradient(circle at 30% 25%, rgba(226, 100, 31, 0.3), rgba(226, 100, 31, 0.08));
  box-shadow: inset 0 0 0 1px rgba(226, 100, 31, 0.3), 0 10px 24px -14px rgba(226, 100, 31, 0.8);
}
.step__icon svg { width: 24px; height: 24px; }
.step__num {
  padding: 5px 10px;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  font-family: var(--font-latin);
  font-weight: 650;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--cream-muted);
}
.step p { margin-top: 10px; color: var(--cream-muted); }

/* final call: one glowing panel */
.final { padding: 24px 0 104px; }
@media (min-width: 1024px) { .final { padding: 24px 0 136px; } }
.final__panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 36px;
  border: 1px solid rgba(245, 239, 227, 0.09);
  background: linear-gradient(180deg, #131216, #0D0C0F);
  padding: 96px 24px;
  text-align: center;
}
@media (min-width: 1024px) { .final__panel { padding: 132px 48px; } }
.final__glow {
  position: absolute;
  z-index: -1;
  left: -10%;
  right: -10%;
  bottom: -60%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(226, 100, 31, 0.55), rgba(194, 65, 12, 0.18) 55%, transparent 85%);
  filter: blur(18px);
  pointer-events: none;
}
.final .hero__grid {
  z-index: -1;
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 100%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 80% at 50% 100%, #000 0%, transparent 75%);
}
.final__row { position: relative; display: grid; justify-items: center; gap: 32px; }
.final__title {
  max-width: 16ch;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-stretch: var(--display-stretch);
  font-size: clamp(2.2rem, 1.3rem + 4.2vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.final__ctas { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 24px; }
.final__mail { color: var(--cream-muted); text-decoration: underline; text-underline-offset: 4px; }
.final__mail:hover { color: var(--cream); }

/* footer */
.footer { border-top: 1px solid var(--ink-line); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.footer__line { margin-top: 8px; font-size: 0.95rem; color: var(--cream-muted); }
.footer__meta { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 0.92rem; color: var(--cream-muted); }
.footer__meta a { text-decoration: none; }
.footer__meta a:hover { color: var(--cream); }

/* ---------- privacy page: one calm reading column ---------- */

.legal { padding: calc(var(--nav-h) + 64px) 0 112px; }
.legal__wrap { max-width: calc(760px + 2 * var(--gutter)); }
.legal__title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-stretch: var(--display-stretch);
  font-size: clamp(2.25rem, 1.7rem + 2.2vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.legal__updated { margin-top: 14px; font-size: 0.92rem; color: var(--cream-muted); }
.legal__intro { margin-top: 28px; font-size: 1.12rem; line-height: 1.6; }
.legal__section { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--ink-line); }
.legal__h {
  font-family: var(--font-display);
  font-weight: 650;
  font-stretch: var(--display-stretch);
  font-size: 1.3rem;
  letter-spacing: -0.015em;
}
.legal__list { display: grid; gap: 10px; margin-top: 16px; }
.legal__list li { position: relative; padding-inline-start: 22px; line-height: 1.65; color: var(--cream-muted); }
.legal__list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 3px;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-on-ink);
}
.legal a { color: var(--cream); text-decoration: underline; text-decoration-color: rgba(245, 239, 227, 0.35); text-underline-offset: 3px; }
.legal a:hover { text-decoration-color: var(--accent-on-ink); }

/* ---------- reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- languages: menu, suggestion bar, right to left, other scripts ---------- */

.nav__end { display: flex; align-items: center; gap: 10px; }

.lang { position: relative; }
.lang__button {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  color: var(--cream-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: color 160ms ease, border-color 160ms ease;
}
.lang__button::-webkit-details-marker { display: none; }
.lang__button:hover,
.lang[open] .lang__button { color: var(--cream); border-color: rgba(245, 239, 227, 0.3); }
.lang__globe { width: 16px; height: 16px; flex: none; }
.lang__list {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  width: 240px;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--ink-line);
  border-radius: 20px;
  background: rgba(20, 20, 23, 0.97);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
}
.lang__list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--cream-muted);
  font-size: 0.95rem;
  text-decoration: none;
  text-align: start;
}
.lang__list a:hover { background: rgba(245, 239, 227, 0.06); color: var(--cream); }
.lang__list a[aria-current="true"] {
  background: rgba(226, 100, 31, 0.16);
  color: var(--cream);
  box-shadow: inset 0 0 0 1px var(--accent-on-ink);
}
/* a long list (13 languages or more) spreads over columns */
.lang__list:has(> li:nth-child(13)) { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(420px, calc(100vw - 32px)); }
@media (min-width: 640px) {
  .lang__list:has(> li:nth-child(13)) { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 560px; }
}
@media (max-width: 559px) {
  .lang__current { display: none; }
  .lang__button { padding: 0 11px; }
}

.suggest {
  position: relative;
  z-index: 55;
  border-bottom: 1px solid var(--ink-line);
  background: linear-gradient(90deg, rgba(194, 65, 12, 0.22), rgba(20, 20, 23, 0.92));
}
.suggest[hidden] { display: none; }
.suggest__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  min-height: 48px;
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 0.92rem;
}
.suggest__text { color: var(--cream); }
.suggest__switch {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--cream);
  font-weight: 650;
  text-decoration: none;
}
.suggest__switch:hover { background: var(--accent-deep); }
.suggest__stay {
  padding: 6px 4px;
  border: 0;
  background: transparent;
  color: var(--cream-muted);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* right to left pages mirror the decoration and the chat */
[dir="rtl"] .hero__grid {
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 30% 30%, #000 0%, transparent 75%);
}
[dir="rtl"] .final .hero__grid {
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 100%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 80% at 50% 100%, #000 0%, transparent 75%);
}
[dir="rtl"] .chat__back { transform: scaleX(-1); }
[dir="rtl"] .msg--them { transform-origin: 0 100%; }
[dir="rtl"] .msg--agent,
[dir="rtl"] .typing { transform-origin: 100% 100%; }

/* each language Archivo does not cover sets the whole page in its own font */
:root:lang(ar) { --font-display: var(--font-arabic); --font-body: var(--font-arabic); }
:root:lang(he) { --font-display: var(--font-hebrew); --font-body: var(--font-hebrew); }
:root:lang(bg), :root:lang(el), :root:lang(mn),
:root:lang(sr), :root:lang(uk) { --font-display: var(--font-inter); --font-body: var(--font-inter); }
:root:lang(hi) { --font-display: var(--font-devanagari); --font-body: var(--font-devanagari); }
:root:lang(bn) { --font-display: var(--font-bengali); --font-body: var(--font-bengali); }
:root:lang(th) { --font-display: var(--font-thai); --font-body: var(--font-thai); }
:root:lang(ja) { --font-display: var(--font-japanese); --font-body: var(--font-japanese); }
:root:lang(zh-Hant) { --font-display: var(--font-chinese-traditional); --font-body: var(--font-chinese-traditional); }
:root:lang(vi) { --font-display: var(--font-latin); }

/* text marked with its own language, such as a demo in another language or the language menu, uses that language's font */
.lang__list a,
[lang]:lang(en) { font-family: var(--font-latin); }
[lang]:lang(ar) { font-family: var(--font-arabic); }
[lang]:lang(he) { font-family: var(--font-hebrew); }
[lang]:lang(bg), [lang]:lang(el), [lang]:lang(mn),
[lang]:lang(sr), [lang]:lang(uk) { font-family: var(--font-inter); }
[lang]:lang(hi) { font-family: var(--font-devanagari); }
[lang]:lang(bn) { font-family: var(--font-bengali); }
[lang]:lang(th) { font-family: var(--font-thai); }
[lang]:lang(ja) { font-family: var(--font-japanese); }
[lang]:lang(zh-Hant) { font-family: var(--font-chinese-traditional); }

/* headlines in another script use a strong weight of the page's own font, without tight tracking */
.display-local .hero__title,
.display-local .h2,
.display-local .final__title,
.display-local .legal__title,
.display-local .legal__h { font-weight: 700; letter-spacing: 0; line-height: var(--headline-leading, 1.25); }
/* Japanese breaks lines at natural phrase boundaries where the browser supports it, never inside a word */
:lang(ja) { line-break: strict; word-break: auto-phrase; }
/* marks above and below the letters need taller lines */
:root:lang(hi), :root:lang(bn), :root:lang(th) { --headline-leading: 1.4; }
.script-nonlatin .eyebrow { letter-spacing: 0.02em; }

/* ---------- reduced motion: everything shows finished, nothing travels ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .stage .iphone,
  .js .stage .node,
  .js .stage .iphone__wake,
  .js .stage .iphone__island { opacity: 1; animation: none; }
  .js .stage .iphone__wake { opacity: 0; }
  .wires { transition: none; }
  .msg, .tool, .typing, .typing span, .wire.is-active, .node.is-active::after { animation: none; }
  .node, .step, .btn { transition: none; }
  .hero__glow, .steps::after { animation: none; }
  .steps::after { display: none; }
  .demo-pause { display: none; }
}
