/* Integraal: black and white. A full-viewport hero over a live dot-matrix field,
   then plain sections on black. Jost (the logo's typeface) for display, Inter for text. */
@font-face {
  font-family: "Jost";
  src: url("/fonts/jost-latin-wght-normal-v2.woff2") format("woff2-variations");
  font-weight: 400 700; /* the files are trimmed to this range */
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght-normal-v2.woff2") format("woff2-variations");
  font-weight: 400 700; /* the files are trimmed to this range */
  font-display: swap;
}

:root {
  --bg: #000000;
  --text: #ffffff;
  --soft: #d0d0d0;
  --muted: #8e8e8e;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.4);
  --nav-text: #111111;
  --pill-dark: #1c1c1e;
  --pill-dark-hover: #2a2a2c;
  --pill-dark-text: #c8c8c8;
  --nav-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Hero: one viewport ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: max(clamp(16px, 2.4vh, 28px), env(safe-area-inset-top, 0px)) max(clamp(14px, 3vw, 32px), env(safe-area-inset-right, 0px)) clamp(16px, 3vh, 32px) max(clamp(14px, 3vw, 32px), env(safe-area-inset-left, 0px));
  overflow: hidden;
  isolation: isolate;
}
/* With the scroll-driven logo running, the hero holds still while its text fades,
   then the logo leaves for the story. Without it, the hero scrolls normally. */
/* Hero and story are one pinned scene: the hero fades, the logo dissolves, the story
   (title, the two A's, their labels) appears in the same place and the logo assembles. */
/* Pinned until shortly after the logo assembles (1.58 screens of scroll). Then the frame
   scrolls away while the logo glides to its corner and the next section rises to the top. */
.j-on .hero-track { height: calc(100vh + 158vh); height: calc(100svh + 158vh); }
.j-on .story { display: none; }
.story-layer {
  display: none; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  flex-direction: column; align-items: center; text-align: center;
  padding: max(15vh, 104px) max(var(--gutter), env(safe-area-inset-right, 0px)) 0 max(var(--gutter), env(safe-area-inset-left, 0px));
}
.j-on .story-layer { display: flex; }
/* The rings sit at the A's feet (the mark is centred at 62% of the screen, sized min(66vw, 52vh, 500px)). */
.story-bg {
  --feet: calc(62% + min(66vw, 52vh, 500px) * 0.3);
  position: absolute; inset: 0; z-index: -1; opacity: 0; overflow: hidden;
  background: radial-gradient(60% 45% at 50% var(--feet), rgba(255, 255, 255, 0.07), transparent 70%);
}
/* The floor is drawn at a fixed pixel size around its centre and scaled down on phones, glints included. */
.story-floor { position: absolute; left: 50%; top: var(--feet); width: 0; height: 0; scale: var(--rs, 1); }
.story-rings { position: absolute; left: -1200px; top: -260px; width: 2400px; height: 520px; overflow: visible; }
.story-rings ellipse { fill: none; stroke: #fff; stroke-width: 1; vector-effect: non-scaling-stroke; }
.ring-glint {
  position: absolute; left: 0; top: 0; width: 6px; height: 6px; margin: -3px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 10px 3px rgba(255, 255, 255, 0.55);
  offset-rotate: 0deg; animation: ringRun 14s linear infinite;
}
.ring-glint.g1 { offset-path: path("M 0 -94 A 470 94 0 1 1 0 94 A 470 94 0 1 1 0 -94"); }
.ring-glint.g2 { offset-path: path("M 0 132 A 660 132 0 1 1 0 -132 A 660 132 0 1 1 0 132"); animation-duration: 22s; animation-direction: reverse; opacity: 0.7; }
@keyframes ringRun { to { offset-distance: 100%; } }
@media (max-width: 720px) { .story-floor { --rs: 0.45; } .ring-glint { width: 9px; height: 9px; margin: -4.5px; } }
.j-on .hero { position: sticky; top: 0; }
.bg { position: absolute; inset: 0; z-index: 0; background: var(--bg); overflow: hidden; pointer-events: none; }
/* The logo's two A's as solid glass shapes at the sides of the hero (see heroAA in page.mjs). They rise in
   on load and drift a little with the pointer; the flare line's glint sweeps through the open centre. */
.bg-aa {
  position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  transform: translate(var(--px, 0px), var(--py, 0px)); transition: transform 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bg-aa-aa-tall { display: none; }
.aa-shapes, .aa-flair { opacity: 0; }
.aa-shapes { transform: translateY(40px); }
.bg.in .aa-shapes { opacity: 1; transform: none; transition: opacity 1.6s var(--ease) 0.2s, transform 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s; }
.bg.in .aa-flair { opacity: 1; transition: opacity 1.2s var(--ease) 1.2s; }
html:not(.js) .aa-shapes, html:not(.js) .aa-flair { opacity: 1; transform: none; }
.aa-glint { animation: aaGlint 6.5s cubic-bezier(0.55, 0, 0.3, 1) 2.4s infinite; }
@keyframes aaGlint { 0% { transform: translateX(0); opacity: 0; } 8% { opacity: 1; } 58% { transform: translateX(1900px); opacity: 1; } 59%, 100% { transform: translateX(1900px); opacity: 0; } }
.bg::after {
  /* keeps the centre calm behind the headline and fades into the next section */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 52% 36% at 50% 45%, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.25) 60%, rgba(0, 0, 0, 0) 85%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, 0.7) 88%, var(--bg));
}
.header, .hero-main, .stats, .menu, .overlay { position: relative; z-index: 1; }

/* Header */
.header {
  width: 100%;
  max-width: 760px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.4vw, 24px);
  flex-shrink: 0;
  animation: slideDown 0.7s var(--ease) both;
}
.logo {
  width: clamp(40px, 4.4vw, 46px);
  height: clamp(40px, 4.4vw, 46px);
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--nav-shadow);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}
.logo:hover { transform: scale(1.04); }
.logo img { width: 72%; height: 72%; object-fit: contain; }

.nav-pill {
  flex: 1;
  max-width: 470px;
  height: clamp(44px, 5.2vw, 48px);
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--nav-shadow);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 4px 10px;
}
.nav-pill a {
  position: relative;
  font-weight: 500;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: -0.01em;
  color: var(--nav-text);
  text-decoration: none;
  opacity: 0.55;
  padding: 8px 6px;
  white-space: nowrap;
  transition: opacity 0.25s;
}
.nav-pill a:hover { opacity: 0.85; }
.nav-pill a.active { opacity: 1; }
.nav-pill a.active::after,
.menu a.active::after {
  content: ""; position: absolute; left: 50%; bottom: 2px;
  width: 3px; height: 3px; margin-left: -1.5px; border-radius: 50%;
  background: #000; box-shadow: -5px 0 0 #000, 5px 0 0 #000;
}

.lang-pill {
  height: clamp(44px, 5.2vw, 48px);
  min-width: clamp(44px, 5.2vw, 48px);
  padding: 0 16px;
  border-radius: 999px;
  background: var(--pill-dark);
  color: var(--pill-dark-text);
  box-shadow: var(--nav-shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.lang-pill:hover { background: var(--pill-dark-hover); color: #fff; transform: translateY(-1px); }

.burger { display: none; }

/* Hero content */
.hero-main {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: clamp(24px, 5vh, 56px);
}
.hero-logo {
  width: clamp(104px, 15vh, 150px);
  aspect-ratio: 1;
  margin: 0 0 clamp(4px, 1vh, 12px);
  display: grid;
  place-items: center;
}
/* Shown only when the scroll-driven logo isn't running (no JS, reduced motion). */
.hero-logo-static { width: 71%; height: auto; animation: logoIn 0.9s var(--ease) 0.05s both; }
.hero-logo-live { display: none; width: 100%; height: 100%; fill: #fff; overflow: visible; animation: logoIn 0.9s var(--ease) 0.05s both; }
.j-on .hero-logo-static { display: none; }
.j-on .hero-logo-live { display: block; }
.hero-copy { display: flex; flex-direction: column; align-items: center; width: 100%; }
.headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 4.7vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: #fff;
  text-wrap: balance;
}
.headline span {
  display: block;
  opacity: 0;
  transform: translateY(14px);
  animation: headlineFade 0.85s var(--ease) forwards;
}
.headline .l1 { animation-delay: 0.12s; }
.headline .l2 { animation-delay: 0.3s; color: #a9a9a9; }

.sub {
  max-width: min(600px, 94%);
  margin: clamp(16px, 2.6vh, 26px) auto 0;
  font-size: clamp(15.5px, calc(1.2vw + 4px), 19px);
  line-height: 1.55;
  color: var(--soft);
  opacity: 0.85;
}

.ctas {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin-top: clamp(22px, 3.4vh, 34px);
}
.cta, .cta-ghost {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(13.5px, 1.5vw, 15px);
  padding: clamp(12px, 1.6vh, 14px) clamp(22px, 3vw, 28px);
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.25s, color 0.25s;
}
.cta {
  background: #fff;
  color: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15), 0 0 22px rgba(255, 255, 255, 0.28), 0 0 44px rgba(255, 255, 255, 0.1);
}
.cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25), 0 0 30px rgba(255, 255, 255, 0.45), 0 0 70px rgba(255, 255, 255, 0.18);
}
.cta-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.cta-ghost:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }

/* Stats */
.stats {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 28px);
  flex-shrink: 0;
}
.stat { display: grid; gap: 4px; justify-items: center; text-align: center; }
.stat-value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.8vw, 34px);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.stat-label { color: var(--muted); font-size: clamp(11.5px, 1.2vw, 13px); line-height: 1.35; max-width: 22ch; }

/* ---------- Sections ---------- */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.section { padding-block: clamp(72px, 12vh, 140px); border-top: 1px solid var(--line); }
.eyebrow {
  margin: 0 0 14px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 4.6vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 18ch;
}
.lead { margin: 18px 0 0; max-width: 60ch; color: var(--soft); opacity: 0.85; font-size: clamp(16px, 1.4vw, 18px); }

/* What we do: three full-width features. Each pairs the value with scenes playing inside a glass glyph.
   main.js plays a feature's scenes only while it is on screen (.play). */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.feats { display: grid; gap: 16px; }
.feat {
  --mx: 50%; --my: 0%;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  min-height: 580px;
  border-radius: 24px;
  background: #0a0a0b;
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.4s;
}
.feat::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.06), transparent 60%);
  opacity: 0; transition: opacity 0.4s;
}
.feat:hover { border-color: rgba(255, 255, 255, 0.2); }
.feat:hover::before { opacity: 1; }
.feat.flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.feat.flip .f-copy { order: 2; }
.feat *, .feat *::before, .feat *::after { animation-play-state: paused; }
.feat.play *, .feat.play *::before, .feat.play *::after { animation-play-state: running; }

.f-copy {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(28px, 4vw, 56px);
}
.f-label {
  display: flex; align-items: center; gap: 10px; margin: 0;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.f-live { position: relative; isolation: isolate; width: 7px; height: 7px; border-radius: 50%; background: #fff; flex-shrink: 0; }
.f-live::after { animation-duration: 2.4s; }
.feat h3 {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 3.9vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 12ch;
}
.f-text { margin: 18px 0 0; max-width: 36ch; font-size: clamp(15px, 1.2vw, 17px); color: var(--soft); opacity: 0.8; }
.f-uses { list-style: none; margin: clamp(26px, 4vh, 40px) 0 0; padding: 0; display: grid; gap: 4px; max-width: 390px; }
.f-uses li { position: relative; display: grid; gap: 2px; padding: 12px 0 14px; color: var(--muted); transition: color 0.5s var(--ease); }
.f-uses b { font-family: var(--font-display); font-weight: 500; font-size: 21px; letter-spacing: -0.01em; }
.f-uses span { font-size: 14px; }
.f-use { all: unset; box-sizing: border-box; display: grid; gap: 2px; width: 100%; cursor: pointer; }
.f-use:focus-visible { outline: 1px solid #fff; outline-offset: 6px; border-radius: 4px; }
.f-uses li:not(.on) .f-use:hover { color: var(--soft); }
.f-stage { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.f-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); overflow: hidden; }
.f-bar::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.f-uses li.on { color: #fff; }
.f-uses li.on span { color: var(--soft); }
.f-uses li.on .f-bar::after { animation: progress var(--dur, 8s) linear forwards; }
.f-uses li.done .f-bar::after { transform: scaleX(1); opacity: 0; transition: opacity 0.6s; }

.f-stage { position: relative; min-height: 460px; }
.f-stage::before {
  content: ""; position: absolute; left: 50%; top: 48%; width: 70%; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.07), transparent);
  pointer-events: none;
}

/* Glass glyph: the outline draws in, the glass fills, then a light runs along the outer edge. */
.f-glyph { overflow: visible; pointer-events: none; }
.f-fill, .f-solid { opacity: 0; }
.f-faint { stroke-opacity: 0.35; }
.f-solid { fill: rgba(255, 255, 255, 0.32); }
.f-edge, .f-run { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.f-edge { stroke-width: var(--sw); stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.f-run {
  stroke: #fff; stroke-width: var(--rw); stroke-dasharray: 0.06 0.94; stroke-dashoffset: 1; opacity: 0;
  filter: drop-shadow(0 0 var(--glow) rgba(255, 255, 255, 0.9));
  animation: fRun 7s linear infinite 3s;
}
/* Animations, not transitions: the no-JS rules below would otherwise replay as a transition when .js lands. */
.feat.in .f-edge { animation: fDraw 2.6s cubic-bezier(0.6, 0, 0.2, 1) 0.2s forwards; }
.feat.in .f-fill, .feat.in .f-solid { animation: fGlass 1.4s var(--ease) 1.2s forwards; }
.feat.in .f-run { opacity: 1; transition: opacity 1s 2.8s; }
html:not(.js) .f-edge { stroke-dashoffset: 0; }
html:not(.js) .f-fill, html:not(.js) .f-solid { opacity: 1; }
html:not(.js) .scene:not([data-scene="0"]) { display: none; }
html:not(.js) [data-scene="0"] [data-step] { display: flex; opacity: 1; transform: none; }
@keyframes fDraw { to { stroke-dashoffset: 0; } }
@keyframes fGlass { to { opacity: 1; } }
@keyframes fRun { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* Scenes: stacked, one shown at a time; steps fade in on their turn. */
.scene { transition: opacity 0.5s var(--ease); }
.scene.gone { opacity: 0; }
.st {
  opacity: 0; transform: translateY(14px) scale(0.97); filter: blur(4px);
  transition: opacity 0.35s var(--ease), transform 0.6s cubic-bezier(0.2, 1.2, 0.3, 1), filter 0.4s var(--ease);
}
.st.on { opacity: 1; transform: none; filter: none; }
/* The element that just landed flashes a soft edge, so the eye follows each beat. */
.st.cur.on > :first-child, .wa-chat .msg.cur.on { animation: land 0.9s ease-out; }
@keyframes land {
  from { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.75), 0 0 28px rgba(255, 255, 255, 0.35); }
  to { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0), 0 0 28px rgba(255, 255, 255, 0); }
}

/* Callout: one label at a time in a gutter beside the device, tied to the element that just happened
   by a leader line that draws itself (main.js aims it every frame). Above the device on narrow screens. */
.f-cap { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.co-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.co-line path { fill: none; stroke: rgba(255, 255, 255, 0.75); stroke-width: 1; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.co-line path.co-halo { stroke: rgba(0, 0, 0, 0.55); stroke-width: 4; stroke-linecap: round; }
.co-line circle { fill: #fff; opacity: 0; transform-box: fill-box; transform-origin: center; filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.9)); }
.f-cap.drawn .co-line path { stroke-dashoffset: 0; transition: stroke-dashoffset 0.45s cubic-bezier(0.3, 0, 0.2, 1); }
.f-cap.drawn .co-line circle { opacity: 1; animation: coDot 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) 0.35s both; }
@keyframes coDot { from { transform: scale(0); } to { transform: scale(1); } }
.co-label {
  position: absolute; left: 0; top: 0; min-height: 1.1em;
  font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.05; letter-spacing: -0.025em;
}
.co-label.side { font-size: clamp(24px, 2.1vw, 32px); text-align: right; }
.cap-line { display: block; position: absolute; inset: 0 0 auto 0; }
.cap-line span {
  display: inline-block; opacity: 0; transform: translateY(0.45em); filter: blur(6px);
  transition: opacity 0.3s var(--ease), transform 0.45s var(--ease), filter 0.35s var(--ease);
  transition-delay: calc(0.12s + var(--k) * 60ms);
}
.cap-line.in span { opacity: 1; transform: none; filter: none; }
.cap-line.out span { opacity: 0; transform: translateY(-0.35em); filter: blur(5px); transition-duration: 0.25s; transition-delay: 0s; }
/* The newest line sets the label's height so the leader line meets its middle. */
.cap-line:not(.out):last-child { position: relative; }

/* WhatsApp: a see-through take on WhatsApp's dark chat, floating over a green-tinted glyph. */
.g-wa { position: absolute; left: 60%; top: 50%; width: min(620px, 112%); translate: -46% -48%; }
.g-wa { filter: blur(2.5px); }
.g-wa .f-run { stroke: #c9ffdc; filter: drop-shadow(0 0 0.25px rgba(37, 211, 102, 0.95)); }
.wa-chat {
  position: absolute; left: 64%; top: 51%; width: min(350px, 64%); height: 460px; translate: -50% -50%;
  display: flex; flex-direction: column; overflow: hidden; border-radius: 22px;
  background: rgba(11, 20, 26, 0.28); border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px) saturate(1.15); -webkit-backdrop-filter: blur(10px) saturate(1.15);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  color: #e9edef;
}
.wa-head { display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: rgba(32, 44, 51, 0.55); }
.chat-av { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex-shrink: 0; }
.chat-av img { width: 70%; height: 70%; }
.wa-head b { display: block; font-size: 14px; font-weight: 600; line-height: 1.2; }
.wa-head small { display: block; font-size: 11.5px; color: #8696a0; }
.wa-head small.typing { color: #25d366; }
.wa-icons { margin-left: auto; display: flex; gap: 18px; }
.wa-icons svg { width: 19px; height: 19px; fill: none; stroke: #aebac1; stroke-width: 1.7; stroke-linejoin: round; }
.wa-body {
  position: relative; flex: 1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1.3px); background-size: 16px 16px;
}
.wa-convo { position: absolute; inset: 10px 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.wa-chat .msg {
  max-width: 82%; padding: 6px 8px 6px 9px; border-radius: 8px; gap: 8px; align-items: flex-end;
  font-size: 13.5px; line-height: 1.35; color: #e9edef; position: relative;
}
.wa-chat .msg.in { background: rgba(32, 44, 51, 0.94); border: 0; border-top-left-radius: 0; }
.wa-chat .msg.out { background: rgba(0, 92, 75, 0.96); color: #e9edef; border-top-right-radius: 0; }
.wa-chat .msg.in::before, .wa-chat .msg.out::before { content: ""; position: absolute; top: 0; width: 0; height: 0; border-top: 9px solid; }
.wa-chat .msg.in::before { left: -7px; border-left: 8px solid transparent; border-top-color: rgba(32, 44, 51, 0.94); }
.wa-chat .msg.out::before { right: -7px; border-right: 8px solid transparent; border-top-color: rgba(0, 92, 75, 0.96); }
.wa-meta { display: inline-flex; align-items: center; gap: 3px; margin-bottom: -2px; font-size: 10.5px; color: rgba(233, 237, 239, 0.6); white-space: nowrap; flex-shrink: 0; }
.wa-ticks { width: 16px; height: 11px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 11' fill='none' stroke='%2353bdeb' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 6l3 3 6-7.5M6.5 8.6l.9.9 6-7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.wa-chat .msg.pix { flex-direction: column; align-items: stretch; gap: 3px; padding: 4px 4px 5px; }
.wa-chat .msg.pix .wa-meta { align-self: flex-end; padding-right: 5px; }
.wa-card { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 6px; background: rgba(0, 0, 0, 0.22); }
.wa-chat .pix b { color: #e9edef; font-size: 13px; }
.wa-chat .pix u { color: #53bdeb; font-size: 12px; }
.wa-chat .pay-card { background: #fff; }
.wa-chat .pay-card::before { background: #000; }
.wa-chat .pay-card i { background: #8a8a8a; }
/* Voice note, laid out like WhatsApp's: play, waveform with a seek dot, the sender's avatar with a mic badge,
   then duration and time on a footer row. The played half of the waveform fills as it "plays". */
.wa-chat .msg.audio {
  display: none; grid-template-columns: 26px 1fr 40px; grid-template-rows: 30px auto; column-gap: 10px; row-gap: 0;
  align-items: center; width: 248px; max-width: 86%; padding: 8px 10px 5px 8px;
}
.wa-chat .msg.audio.shown { display: grid; }
.va-play { position: relative; width: 26px; height: 26px; }
.va-play::after { content: ""; position: absolute; left: 7px; top: 5px; border-left: 14px solid #aebac1; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.va-track { position: relative; height: 26px; }
.va-wave { position: absolute; inset: 0; display: flex; align-items: center; gap: 2px; }
.va-wave i { flex: 1; height: calc(var(--h) * 100%); min-height: 3px; border-radius: 2px; background: #61717a; }
.va-played { clip-path: inset(0 100% 0 0); }
.va-played i { background: #e9edef; }
.va-dot { position: absolute; left: 0; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: #53bdeb; }
.audio.on .va-played { animation: vaPlay 1.6s linear 0.25s forwards; }
.audio.on .va-dot { animation: vaDot 1.6s linear 0.25s forwards; }
@keyframes vaPlay { to { clip-path: inset(0 0 0 0); } }
@keyframes vaDot { to { left: 100%; } }
.va-av {
  grid-row: 1 / 3; grid-column: 3; position: relative; width: 40px; height: 40px; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, #cfd8dc 0 7px, transparent 7.5px),
    radial-gradient(ellipse 13px 10px at 50% 92%, #cfd8dc 0 100%, transparent 101%),
    #6a7b84;
}
.va-mic { position: absolute; left: -4px; bottom: -2px; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: #25d366; box-shadow: 0 0 0 2px rgba(32, 44, 51, 0.94); }
.va-mic svg { width: 10px; height: 10px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; }
.va-len { grid-column: 2; grid-row: 2; font-size: 10.5px; color: #8696a0; line-height: 1.6; }
.wa-chat .msg.audio .wa-meta { grid-column: 2; grid-row: 2; justify-self: end; margin: 0; }
.wa-chat .typing-dots i { background: #8696a0; }
.wa-chat .chip-ok { margin-top: 6px; border: 0; background: rgba(24, 34, 41, 0.92); color: #e9edef; font-weight: 600; }
.wa-chat .chip-ok .check { background: #25d366; }
.wa-input { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: rgba(32, 44, 51, 0.5); }
.wa-field { flex: 1; padding: 9px 14px; border-radius: 99em; background: rgba(42, 57, 66, 0.85); color: #8696a0; font-size: 13px; }
.wa-mic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #00a884; flex-shrink: 0; }
.wa-mic svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.chip-ok { background: rgba(10, 10, 11, 0.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); white-space: nowrap; }
.pay-card { position: relative; width: 46px; height: 32px; border-radius: 6px; background: #000; flex-shrink: 0; }
.pay-card::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 5px; background: #555; }
.pay-card i { position: absolute; left: 6px; bottom: 6px; width: 12px; height: 8px; border-radius: 2px; background: #d9d9d9; }

/* Devices: the screen sits in the glyph's inner outline. Sizes inside are in em off a cqw base,
   so the whole screen scales with the device. */
.device {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; container-type: inline-size;
  transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(var(--zs, 1));
  transition: transform 1.1s cubic-bezier(0.45, 0, 0.15, 1);
}
.feat-apps .d-phone { left: 66%; }
.device .f-glyph { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
.screen {
  position: absolute; overflow: hidden;
  background: rgba(18, 18, 20, 0.6);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.screen > .scene { position: absolute; inset: 0; padding: inherit; display: flex; flex-direction: column; gap: 0.75em; }
.screen .chip-ok { position: absolute; left: 50%; bottom: 1.3em; translate: -50% 0; margin: 0; font-size: 0.92em; }
.d-phone { width: 280px; aspect-ratio: 1 / 2; }
.feat-apps { min-height: 700px; }
.feat-apps .d-phone { width: 325px; }
.d-phone .screen { left: 3.5%; top: 1.75%; width: 93%; height: 96.5%; border-radius: 17cqw; padding: 17cqw 7cqw 7cqw; font-size: 4.8cqw; }
.island { position: absolute; z-index: 3; left: 50%; top: 4.2cqw; width: 25cqw; height: 7.4cqw; translate: -50% 0; border-radius: 99em; background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
/* The board sits against the stage's right edge, as wide as the callout gutter on its left allows. */
.d-web { --w: min(500px, calc(100% - 160px)); width: var(--w); left: calc(100% - var(--w) / 2 - 10px); aspect-ratio: 400 / 320; }
.feat-ops { grid-template-columns: minmax(0, 0.68fr) minmax(0, 1.32fr); }
.d-web .screen { left: 0.25%; top: 10.625%; width: 99.5%; height: 88.75%; border-radius: 0 0 4.3cqw 4.3cqw; padding: 4cqw 4.5cqw; font-size: 2.3cqw; }

.money { white-space: nowrap; }
.bn { display: inline-block; filter: blur(0.2em); opacity: 0.9; user-select: none; }
.dot { position: relative; isolation: isolate; width: 7px; height: 7px; border-radius: 50%; background: #fff; flex-shrink: 0; }
.dot::after { animation-duration: 1.6s; }

/* Apps, owner's side. All sizes in em off the phone screen's cqw base. */
/* The client's app icon: dark glass with a white geometric mark (assets/app-icon.svg). */
.a-icon { position: relative; display: block; width: 100%; aspect-ratio: 1; border-radius: 22.5%; background: url(/assets/app-icon.svg) center / cover; flex-shrink: 0; box-shadow: 0 0.15em 0.6em rgba(0, 0, 0, 0.45); }
.d-phone .chip-ok { bottom: 1.2em; }

/* Cria: the home screen as a dashed sketch that draws itself, then the designed screen lands on the same
   layout (both are .mk-l), then each module card switches on. Lança shrinks it into the store icon. */
.ap-make { z-index: 0; transform-origin: 22% 15%; transition: transform 0.7s var(--ease), opacity 0.5s var(--ease), filter 0.5s var(--ease); }
.screen:has(.ap-launch .on) .ap-make { transform: scale(0.3); opacity: 0; filter: blur(2px); }
.mk-l { position: absolute; inset: 17cqw 7cqw 7cqw; display: flex; flex-direction: column; gap: 0.7em; }
.st.mk-l { transform: none; filter: none; }
.mk-nav { display: flex; align-items: center; gap: 0.55em; height: 2.2em; flex: none; }
.mk-nav .a-icon { width: 1.9em; }
.mk-nav b { font-family: var(--font-display); font-weight: 500; font-size: 0.95em; }
.mk-menu { margin-left: auto; display: grid; gap: 0.3em; width: 1.1em; }
.mk-menu i { height: 1.5px; border-radius: 1px; background: rgba(255, 255, 255, 0.7); }
.mk-hero { position: relative; height: 8.5em; flex: none; border-radius: 0.9em; overflow: hidden; }
.mk-h { height: 2em; flex: none; display: flex; align-items: center; }
.mk-h span { font-family: var(--font-display); font-weight: 500; font-size: 1.75em; letter-spacing: -0.03em; white-space: nowrap; }
.mk-h svg { width: 70%; height: 1em; overflow: visible; }
.mk-lede { height: 2.4em; flex: none; display: flex; flex-direction: column; justify-content: center; gap: 0.75em; }
.mk-lede span { font-size: 0.8em; line-height: 1.45; color: var(--muted); }
.mk-cta { width: 6.4em; height: 2.1em; flex: none; display: grid; place-items: center; border-radius: 99em; }
.mk-cta span { font-size: 0.82em; font-weight: 700; }
.mk-cards { display: grid; gap: 0.5em; }
.mk-card { position: relative; height: 3.1em; display: flex; align-items: center; gap: 0.8em; padding: 0 0.8em; border-radius: 0.8em; }
.mk-ic { width: 1.8em; height: 1.8em; flex: none; display: grid; place-items: center; border-radius: 50%; transition: background 0.4s, color 0.4s; }
.mk-ic svg { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.mk-ln { display: block; width: 100%; height: 0; border-top: 1.5px solid rgba(255, 255, 255, 0.5); }
.mk-ln-w { width: 4.2em; }
.mk-ln-s { width: 62%; }

/* Sketch: dashed outlines on the same boxes, drawn left to right one after another. */
.mk-sk .a-icon, .mk-sk .mk-hero, .mk-sk .mk-cta, .mk-sk .mk-card, .mk-sk .mk-ic { background: none; border: 1px dashed rgba(255, 255, 255, 0.5); }
.mk-sk .a-icon::before, .mk-sk .a-icon::after { display: none; }
.mk-sk .mk-menu i { background: rgba(255, 255, 255, 0.45); }
.mk-sk svg { position: relative; display: block; }
.mk-sk .mk-hero svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mk-sk svg path { fill: none; stroke: rgba(255, 255, 255, 0.6); stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.mk-sk .mk-hero path { stroke: rgba(255, 255, 255, 0.28); stroke-dasharray: 4 4; }
.st.mk-sk.on > *, .st.mk-sk.cur.on > :first-child { animation: mkDraw 0.6s var(--ease) both; }
.st.mk-sk.on > :nth-child(2) { animation-delay: 0.1s; } .st.mk-sk.on > :nth-child(3) { animation-delay: 0.2s; }
.st.mk-sk.on > :nth-child(4) { animation-delay: 0.28s; } .st.mk-sk.on > :nth-child(5) { animation-delay: 0.36s; }
.st.mk-sk.on > :nth-child(6) { animation-delay: 0.44s; }
@keyframes mkDraw { from { clip-path: inset(-3px 100% -3px -3px); } to { clip-path: inset(-3px -3px -3px -3px); } }
.ap-make:has(.mk-go.on) .st.mk-sk { opacity: 0; filter: blur(6px); transition: opacity 0.5s var(--ease), filter 0.5s var(--ease); }
.mk-go { position: absolute; left: 7cqw; right: 7cqw; top: calc(17cqw + 2.9em); height: 8.5em; pointer-events: none; }

/* Design: the finished screen resolves out of blur onto the sketch, piece by piece. */
.mk-dz > * { opacity: 0; filter: blur(8px); transform: scale(1.04); transition: opacity 0.5s var(--ease), filter 0.6s var(--ease), transform 0.7s var(--ease); }
.mk-dz > :nth-child(2) { transition-delay: 0.08s; } .mk-dz > :nth-child(3) { transition-delay: 0.16s; }
.mk-dz > :nth-child(4) { transition-delay: 0.22s; } .mk-dz > :nth-child(5) { transition-delay: 0.28s; }
.mk-dz > :nth-child(6) { transition-delay: 0.36s; }
.ap-make:has(.mk-go.on) .mk-dz > * { opacity: 1; filter: none; transform: none; }
.mk-dz .mk-hero { background: radial-gradient(70% 80% at 50% 30%, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.015) 70%); border: 1px solid var(--line); }
.mk-orb { position: absolute; left: 50%; top: 45%; width: 4.4em; height: 4.4em; margin: -2.2em; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fff 0, #cfcfcf 9%, #6a6a6a 36%, #1d1d1d 66%, #080808 100%);
  box-shadow: 0 0 2.4em rgba(255, 255, 255, 0.14), inset -0.4em -0.5em 1em rgba(0, 0, 0, 0.6); }
.mk-floor { position: absolute; left: 0; right: 0; top: 68%; bottom: 0; background: linear-gradient(rgba(255, 255, 255, 0.06), transparent); border-top: 1px solid rgba(255, 255, 255, 0.1); }
.mk-floor::after { content: ""; position: absolute; left: 50%; top: -0.2em; width: 5em; height: 0.9em; margin-left: -2.5em; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.85), transparent); }
.mk-dz .mk-cta { background: #fff; color: #000; }
.mk-dz .mk-card { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.mk-dz .mk-ic { background: rgba(255, 255, 255, 0.1); color: #fff; }
.mk-lines { flex: 1; display: grid; gap: 0.45em; transition: opacity 0.3s; }
.mk-lines b { height: 0.42em; border-radius: 0.3em; background: rgba(255, 255, 255, 0.2); }
.mk-lines b + b { width: 62%; }
.mk-mod { position: absolute; left: 3.4em; right: 0.8em; top: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; }
.mk-mod b { font-size: 0.92em; font-weight: 600; }
.mk-mod .check { width: 1.35em; height: 1.35em; }
.mk-mod .check::after { left: 0.45em; top: 0.25em; width: 0.32em; height: 0.6em; }
.mk-card:has(.mk-mod.on) .mk-lines { opacity: 0; }
.mk-card:has(.mk-mod.on) .mk-ic { background: #fff; color: #000; }
/* The whole card flashes as its module lands, not just the label. */
.st.mk-mod.cur.on > :first-child { animation: none; }
.mk-card:has(.mk-mod.cur.on) { animation: land 0.9s ease-out; }

/* Lança: the app's store page, then each store going live */
.sp-head { display: grid; grid-template-columns: 5.2em 1fr; gap: 0.9em; align-items: center; }
.sp-head .a-icon { width: 5.2em; border-radius: 23%; }
.sp-name b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.3em; line-height: 1.15; }
.sp-name small { display: block; font-size: 0.8em; color: var(--muted); }
.sp-get { display: inline-block; margin-top: 0.5em; padding: 0.3em 1.25em; border-radius: 99em; background: #fff; color: #000; font-size: 0.85em; font-weight: 700; }
.sp-meta { display: flex; flex-wrap: wrap; gap: 0.4em; margin-bottom: 0.7em; }
.sp-meta span { padding: 0.25em 0.65em; border-radius: 99em; border: 1px solid var(--line-strong); font-size: 0.68em; color: var(--soft); white-space: nowrap; }
.sp-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5em; }
.sp-shot {
  display: flex; flex-direction: column; gap: 0.32em; aspect-ratio: 9 / 16; padding: 0.45em; overflow: hidden;
  border-radius: 0.8em; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
}
.sp-shot i { display: block; height: 46%; border-radius: 0.5em; background: radial-gradient(circle at 70% 30%, #fff 0, #bdbdbd 8%, #3a3a3e 36%, #141416 72%); }
.sp-shot-1 i { background: radial-gradient(circle at 30% 65%, #fff 0, #bdbdbd 7%, #3a3a3e 34%, #141416 70%); }
.sp-shot-2 i { background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.22) 0 0.3em, transparent 0.3em 0.75em) 0 100% / 100% 70% no-repeat, #161618; }
.sp-shot b { display: block; height: 0.35em; border-radius: 1em; background: rgba(255, 255, 255, 0.2); }
.sp-shot b + b { width: 60%; background: rgba(255, 255, 255, 0.1); }
.sp-store {
  display: flex; align-items: center; gap: 0.6em; padding: 0.7em 0.9em; border-radius: 0.9em;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
}
.sp-store span { font-size: 0.92em; font-weight: 600; }
.sp-logo { width: 1.45em; height: 1.45em; flex: none; object-fit: contain; }
.sp-store em { margin-left: auto; font-style: normal; font-size: 0.78em; color: var(--soft); }
.sp-store .check { width: 1.35em; height: 1.35em; }
.sp-store .check::after { left: 0.45em; top: 0.25em; width: 0.32em; height: 0.6em; }

/* Vende: subscription banners drop in over the store page, newest on top; the page sinks back behind them */
.h-clock { text-align: center; margin-top: 0.4em; }
.h-clock b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 3.6em; line-height: 1; letter-spacing: -0.02em; }
.h-clock small { display: block; margin-top: 0.3em; font-size: 0.8em; color: var(--soft); }
.pushes { display: flex; flex-direction: column-reverse; justify-content: flex-end; margin-top: 0.2em; }
.ap-launch { z-index: 1; transition: filter 0.6s var(--ease), transform 0.6s var(--ease); }
.ap-sell { z-index: 2; }
.screen:has(.ap-sell .on) .ap-launch { filter: brightness(0.4) blur(1.5px); transform: scale(0.97); }
.push-in {
  display: flex; align-items: center; gap: 0.7em; max-height: 0; overflow: hidden; padding: 0 0.8em; border-radius: 1.25em;
  background: rgba(44, 44, 48, 0.78); border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.st.push-in { transform: translateY(-1.2em) scale(0.96); }
.st.push-in.on {
  max-height: 6em; margin-bottom: 0.55em; padding: 0.75em 0.8em; transform: none;
  transition: opacity 0.35s var(--ease), transform 0.6s cubic-bezier(0.2, 1.2, 0.3, 1), max-height 0.5s var(--ease), padding 0.5s var(--ease), margin 0.5s var(--ease);
}
.push-in .a-icon { width: 2.5em; }
.push-in b { display: block; font-size: 0.88em; }
.push-in > span:not(.a-icon) { flex: 1; min-width: 0; }
.push-in small { display: block; font-size: 0.74em; color: var(--soft); line-height: 1.3; }
.push-in em { align-self: flex-start; flex-shrink: 0; font-style: normal; font-size: 0.68em; color: var(--muted); }

/* Ops: one live board. Regions are scenes that stay on screen; main.js resets them when the loop restarts. */
.board {
  display: grid; height: 100%;
  grid-template-columns: 1.4fr 1fr; grid-template-rows: auto 1fr auto;
  grid-template-areas: "head head" "feed src" "status status";
  gap: 1em 1.3em;
}
.board .scene { display: flex; flex-direction: column; gap: 0.55em; min-height: 0; }
.b-head { grid-area: head; display: flex; align-items: flex-end; gap: 0.9em; }
.b-head small { display: block; font-size: 0.8em; color: var(--muted); }
.b-head b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 2.7em; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.b-plus { margin-bottom: 0.35em; padding: 0.2em 0.65em; border-radius: 99em; background: #fff; color: #000; font-size: 0.85em; font-weight: 700; opacity: 0; }
.b-plus.pop { animation: plusPop 1.3s var(--ease); }
@keyframes plusPop { 0% { opacity: 0; transform: translateY(0.6em); } 15%, 70% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-0.4em); } }
.b-feed { grid-area: feed; flex-direction: column-reverse !important; justify-content: flex-end; gap: 0 !important; overflow: hidden; }
.pay-in { max-height: 0; overflow: hidden; }
.pay-in.on { max-height: 5em; margin-bottom: 0.55em; transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), max-height 0.5s var(--ease), margin 0.5s var(--ease); }
.st.pay-in { transform: translateX(2em); }
.st.pay-in.on { transform: none; }
.pay-row {
  display: flex; align-items: center; gap: 0.75em; padding: 0.65em 0.8em; border-radius: 0.95em;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
}
.pay-row b { display: block; font-size: 0.92em; white-space: nowrap; }
.pay-row small { display: block; font-size: 0.75em; color: var(--muted); white-space: nowrap; }
.pay-row em { align-self: flex-start; margin-left: auto; font-style: normal; font-size: 0.7em; color: var(--muted); }
.via { padding: 0.05em 0.4em; border-radius: 0.4em; transition: background 0.4s, color 0.4s; }
.board:has(.on > .ch-0) .via-0, .board:has(.on > .ch-1) .via-1, .board:has(.on > .ch-2) .via-2 { background: #fff; color: #000; }
.b-logo { width: 2.2em; height: 2.2em; flex: none; padding: 0.4em; border-radius: 0.65em; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line); object-fit: contain; }
.b-src { grid-area: src; gap: 0.45em !important; padding-left: 1.4em; border-left: 1px solid var(--line); }
.b-cap { display: block; font-size: 0.72em; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ch { display: grid; grid-template-columns: 1.9em 1fr auto; grid-template-rows: auto auto; column-gap: 0.65em; row-gap: 0.35em; align-items: center; font-size: 0.86em; }
.ch .b-logo { grid-row: span 2; width: 1.9em; height: 1.9em; padding: 0.3em; border-radius: 0.55em; }
.ch span:not(.ch-bar):not(.bn) { font-weight: 600; }
.ch b { font-weight: 600; font-variant-numeric: tabular-nums; }
.ch-bar { grid-column: 2 / 4; height: 0.42em; border-radius: 1em; background: #26262a; overflow: hidden; }
.ch-bar i { display: block; width: var(--w); height: 100%; border-radius: 1em; background: #fff; transform: scaleX(0); transform-origin: left; }
.ch-1 .ch-bar i { background: #a5a5aa; } .ch-2 .ch-bar i { background: #6b6b70; }
.st.on .ch-bar i { transform: scaleX(1); transition: transform 0.9s var(--ease) 0.1s; }
.ch-best { display: inline-flex; align-items: center; gap: 0.5em; margin-top: 0.25em; padding: 0.45em 0.8em; border-radius: 99em; background: #fff; color: #000; font-size: 0.78em; font-weight: 700; }
.ch-best i { width: 0.55em; height: 0.55em; border: solid #000; border-width: 0.16em 0.16em 0 0; transform: translateY(0.08em) rotate(-45deg); }
.b-status { grid-area: status; flex-direction: row !important; align-items: center; gap: 1.4em !important; padding-top: 0.85em; border-top: 1px solid var(--line); }
.b-status > .st:first-child { flex: 1.2; }
.b-backup { display: flex; align-items: center; gap: 0.55em; white-space: nowrap; }
.b-backup b { display: block; font-size: 0.86em; }
.b-backup small { display: block; font-size: 0.72em; color: var(--muted); }
.b-backup .check { width: 1.4em; height: 1.4em; }
.b-backup .check::after { left: 0.47em; top: 0.27em; width: 0.32em; height: 0.6em; }
.b-live .b-bars { margin-top: 0.45em; }
.b-deploy b { display: block; font-size: 0.86em; }
.b-deploy small { display: block; font-size: 0.72em; color: var(--muted); }
.b-prog { display: block; height: 0.28em; margin-top: 0.45em; border-radius: 1em; background: #26262a; position: relative; overflow: hidden; }
.b-prog::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.st.on .b-prog::after { transform: scaleX(1); transition: transform 1.2s var(--ease) 0.1s; }
.b-up { display: flex; align-items: center; gap: 0.55em; white-space: nowrap; }
.b-up b { font-size: 0.86em; }
.b-bars { display: flex; align-items: flex-end; gap: 2px; height: 1.4em; width: 8em; }
.b-bars i { flex: 1; height: 100%; border-radius: 1px; background: #fff; opacity: 0.85; transform: scaleY(0.15); transform-origin: bottom; }
.st.on .b-bars i { transform: scaleY(1); transition: transform 0.5s var(--ease) calc(var(--i) * 0.025s); }
.b-status .b-cap { margin-top: 0.35em; font-size: 0.62em; }
.g-ops-tall { display: none; }

.check {
  width: 16px; height: 16px; border-radius: 50%; background: #fff; position: relative; flex-shrink: 0;
}
.check::after {
  content: ""; position: absolute; left: 5px; top: 3.2px; width: 4px; height: 7px;
  border: solid #000; border-width: 0 1.8px 1.8px 0; transform: rotate(45deg);
}

.msg {
  max-width: 80%;
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  transform-origin: bottom left;
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
  display: none;
}
.msg.in { align-self: flex-start; background: #232326; color: #eee; border-bottom-left-radius: 5px; }
.msg.out { align-self: flex-end; background: #fff; color: #000; border-bottom-right-radius: 5px; transform-origin: bottom right; }
.msg.shown, .chip-ok.shown { display: flex; }
.msg.on, .chip-ok.on { opacity: 1; transform: none; }
.msg.typing-dots { display: flex; gap: 4px; padding: 12px 14px; }
.typing-dots i { width: 6px; height: 6px; border-radius: 50%; background: #999; animation: blink 1s infinite; animation-play-state: running !important; }
.typing-dots i:nth-child(2) { animation-delay: 0.15s; }
.typing-dots i:nth-child(3) { animation-delay: 0.3s; }
.pix { align-items: center; gap: 12px; }
.pix-qr { width: 46px; height: 46px; background: #fff; padding: 3px; border: 1px solid #ddd; border-radius: 6px; }
.pix-qr svg { width: 100%; height: 100%; display: block; fill: #000; }
.pix b { display: block; font-size: 13.5px; }
.pix u { font-size: 12px; color: #555; text-decoration: none; }
.chip-ok {
  align-self: center; display: none; align-items: center; gap: 8px;
  margin-top: 4px; padding: 7px 14px 7px 8px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: #fff; font-size: 12.5px; font-weight: 600;
  opacity: 0; transform: scale(0.9); transition: opacity 0.4s, transform 0.5s var(--ease);
}

@keyframes blink { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
@keyframes progress { to { transform: scaleX(1); } }
/* Pulse ring behind a live dot: a copy of the dot that grows to 8px past its edge (23/7) and fades,
   animated with transform and opacity so it stays on the compositor. */
.f-live::after, .dot::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: rgba(255, 255, 255, 0.55);
  animation-name: ping; animation-iteration-count: infinite; /* durations on .f-live and .dot */
}
@keyframes ping { 0% { transform: scale(1); opacity: 1; } 80%, 100% { transform: scale(3.286); opacity: 0; } }
/* Looping decorations hold still while their section is off screen (main.js sets .far). */
.far .f-run, .far .f-live::after, .far .dot::after, .far .aa-glint, .far.marquee .marquee-row, .story-bg.far .ring-glint { animation-play-state: paused; }

@media (max-width: 860px) {
  .feat, .feat.flip { grid-template-columns: 1fr; min-height: 0; }
  .feat.flip .f-copy { order: 0; }
  .f-copy { padding: 28px 24px 8px; }
  .feat h3 { font-size: clamp(30px, 8.6vw, 44px); margin-top: 14px; max-width: 14ch; }
  .f-text { margin-top: 12px; }
  .f-uses { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; margin-top: 22px; max-width: none; }
  .f-uses li { padding: 8px 0 10px; }
  .f-uses b { font-size: 17px; }
  .f-uses span { display: none; }
  .f-stage { min-height: 540px; }
  .feat-apps .f-stage { min-height: 560px; }
  .wa-chat { left: calc(50% + 12px); width: min(350px, calc(100% - 56px)); height: 440px; top: calc(50% + 26px); }
  .g-wa { left: 50%; }
  .device { top: calc(50% + 26px); }
  .feat-apps .d-phone { left: 50%; }

  .g-wa { width: min(500px, 125%); }
  .feat-apps { min-height: 0; }
  .feat-apps .d-phone { width: 230px; }
  .d-web { left: calc(50% + 12px); width: calc(100% - 56px); aspect-ratio: 400 / 580; }
  .feat-ops { grid-template-columns: 1fr; }
  .g-ops { display: none; }
  .g-ops-tall { display: block; }
  .d-web .screen { top: 5.86%; height: 93.97%; border-radius: 0 0 4.3cqw 4.3cqw; font-size: 3.4cqw; padding: 4cqw; }
  .board { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto; grid-template-areas: "head" "feed" "src" "status"; gap: 0.75em; }
  .b-feed { height: 12.8em; flex: none; }
  .b-src { padding: 0.8em 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .b-status { flex-wrap: wrap; row-gap: 0.8em !important; }
  .b-status > .st:first-child { flex-basis: 100%; }
  .feat-ops .f-stage { min-height: 640px; }
  .b-live .b-bars, .b-live .b-cap { display: none; }
}



.contact-wrap { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact h2 { max-width: 20ch; }
.contact .lead { margin-inline: auto; }
.email { margin: clamp(28px, 4vh, 40px) 0 0; }
.email a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 5vw, 60px);
  letter-spacing: -0.03em;
  text-decoration: none;
  overflow-wrap: anywhere;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.4s var(--ease);
}
.email a:hover { background-size: 100% 1px; }

.footer { border-top: 1px solid var(--line); padding-block: 48px max(48px, env(safe-area-inset-bottom, 0px)); }
.footer-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; color: var(--muted); font-size: 14px; }
.footer-wrap p { margin: 0; }
.footer-logo { width: 64px; height: auto; }
.footer-meta { margin-left: auto !important; }
.footer-meta a { text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.footer-meta a:hover { color: #fff; }

/* ---------- The mark's journey: one fixed element driven by scroll (main.js) ---------- */
.journey {
  --dock: 0;
  position: fixed; left: 0; top: 0; z-index: 6;
  width: 100px; height: 100px; padding: 0; border: 0; background: none; color: inherit;
  transform-origin: 0 0; opacity: 0; pointer-events: none; cursor: pointer;
  will-change: transform, opacity;
  -webkit-tap-highlight-color: transparent;
  animation: jIn 0.9s var(--ease) 0.05s backwards;
}
body.menu-open .journey { opacity: 0 !important; pointer-events: none; }
.journey.docked { pointer-events: auto; }
.journey svg { width: 100%; height: 100%; overflow: visible; display: block; }
.j-disc { fill: #111113; stroke: rgba(255, 255, 255, 0.18); stroke-width: 1.5; opacity: var(--dock); }
.j-ring {
  fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; opacity: var(--dock);
  transform: rotate(-90deg); transform-origin: 75px 75px;
}
.j-piece, .j-band, .j-foot, .j-cone, .j-rim-out, .j-final path { fill: #fff; }
.j-halo { opacity: 0; }
/* The diagonal's own knockout: 2 units of background around it cut whatever lies under it. */
.j-cut { fill: none; stroke: var(--bg); stroke-width: 0; stroke-linejoin: miter; stroke-miterlimit: 4; }
.j-mouth { fill: var(--bg); }
.j-final { opacity: 0; }
.j-lab-a { opacity: var(--labA, 0); }
.j-lab-c { opacity: var(--labC, 0); }
.j-label {
  font-family: var(--font-display); font-size: 8.5px; font-weight: 500; letter-spacing: 0.02em;
  fill: #fff; text-anchor: middle;
}
.journey.docked:hover .j-disc { stroke: rgba(255, 255, 255, 0.5); }
.journey:focus-visible { outline: none; }
.journey:focus-visible .j-disc { stroke: #fff; stroke-width: 3; }

.story { position: relative; height: 260vh; }
.story-pin {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; align-items: center;
  padding: 11vh max(var(--gutter), env(safe-area-inset-right, 0px)) 0 max(var(--gutter), env(safe-area-inset-left, 0px));
  text-align: center; overflow: hidden;
}
.story-line {
  margin: 0; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(26px, 4.2vw, 54px); line-height: 1.1; letter-spacing: -0.03em;
  text-wrap: balance; opacity: 0; transform: translateY(10px);
}
.story-line.s2 { color: #a9a9a9; }
.story-static { display: none; }

.contact-mark { width: clamp(120px, 15vw, 170px); aspect-ratio: 1; margin-bottom: 18px; }


/* Industries marquee */
.marquee {
  margin-top: clamp(32px, 5vh, 48px); display: grid; gap: 12px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-row { display: flex; width: max-content; list-style: none; margin: 0; padding: 0; animation: marq calc(var(--n) * 5s) linear infinite; }
.marquee-row.rev { animation-direction: reverse; }
.marquee:hover .marquee-row { animation-play-state: paused; }
.marquee-row li {
  margin-right: 12px; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line-strong);
  color: var(--soft); font-size: clamp(15px, 1.4vw, 18px); white-space: nowrap;
  transition: background 0.25s, color 0.25s;
}
.marquee-row li:hover { background: #fff; color: #000; }
@keyframes marq { to { transform: translateX(-50%); } }

}

@media (prefers-reduced-motion: reduce) {
  .journey { display: none; }
  .story { height: auto; }
  .story-pin { position: static; height: auto; padding-block: 80px; gap: 24px; }
  .story-line { opacity: 1; transform: none; }
  .story-static { display: block; width: min(240px, 60vw); margin-top: 24px; }
  .marquee-row { flex-wrap: wrap; width: auto; }
  .marquee-row li[aria-hidden] { display: none; }
  .f-edge { stroke-dashoffset: 0; }
  .f-fill, .f-solid { opacity: 1; }
  .f-run { display: none; }
}

/* ---------- Motion ---------- */
.anim {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  filter: blur(6px);
  animation: reveal 0.85s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
.ctas.anim { animation-name: revealPulse; }
.reveal { transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal:not(.in) { opacity: 0; transform: translateY(18px); }

@keyframes jIn { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: none; } }
@keyframes logoIn { from { opacity: 0; transform: translateY(12px) scale(0.94); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }
@keyframes headlineFade { to { opacity: 1; transform: none; } }
@keyframes reveal { to { opacity: 1; transform: none; filter: none; } }
@keyframes revealPulse {
  0% { opacity: 0; transform: translateY(22px) scale(0.98); filter: blur(6px); }
  70% { opacity: 1; transform: translateY(0) scale(1.015); filter: none; }
  100% { opacity: 1; transform: none; filter: none; }
}
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes menuIn { from { opacity: 0; transform: translateY(-10px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes linkIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .bg-aa-aa-wide { display: none; }
  .bg-aa-aa-tall { display: block; }
  .header { justify-content: space-between; }
  .nav-pill, .lang-pill { display: none; }
  .logo { width: 48px; height: 48px; }
  .burger {
    display: grid; place-content: center; gap: 5px;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--pill-dark); border: 0; cursor: pointer;
    box-shadow: var(--nav-shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    transition: background 0.25s;
    position: relative; z-index: 3;
  }
  .burger span { display: block; width: 18px; height: 1.5px; background: #fff; border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s, background 0.25s; }
  body.menu-open .header { z-index: 4; }
  .burger[aria-expanded="true"] { background: #fff; }
  .burger[aria-expanded="true"] span { background: #000; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .overlay {
    position: fixed; inset: 0; z-index: 2;
    background: rgba(0, 0, 0, 0.62);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    animation: overlayIn 0.28s ease both;
  }
  .menu {
    position: fixed; z-index: 3;
    top: calc(max(clamp(16px, 2.4vh, 28px), env(safe-area-inset-top, 0px)) + 60px);
    left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px));
    background: #fff; color: #000;
    border-radius: 28px;
    padding: 22px 18px 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    animation: menuIn 0.38s var(--ease) both;
  }
  .menu[hidden], .overlay[hidden] { display: none; }
  .menu a {
    position: relative;
    font-weight: 500; font-size: 18px; letter-spacing: -0.01em;
    text-decoration: none; color: #111;
    padding: 12px 10px 16px;
    animation: linkIn 0.4s var(--ease) both;
    animation-delay: calc(0.06s + var(--i) * 0.04s);
  }
  .menu a.active::after { bottom: 8px; }
  .menu .menu-lang {
    margin-top: 10px; width: 100%; text-align: center;
    background: var(--pill-dark); color: #fff; border-radius: 999px; padding: 14px;
    font-size: 15px;
  }

  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .headline { letter-spacing: -0.04em; line-height: 1.06; }
  .footer-meta { margin-left: 0 !important; }
}

@media (max-height: 700px) and (min-width: 721px) {
  .hero-main { padding-block: 16px; }
  .sub { margin-top: 12px; }
  .ctas { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .anim, .headline span, .js .reveal:not(.in) { opacity: 1 !important; transform: none !important; filter: none !important; }
}
