/* LinkWave · LockMachine — estilos compartilhados
   Mundo: o chão de fábrica à noite. Piso de epóxi, painéis com pintura eletrostática fosca,
   luz só de fontes reais (lâmpadas, LEDs, torre de sinalização). Peças físicas (cartão,
   etiqueta, crachá) continuam em plástico claro. */

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  /* chão e painéis */
  --bg: #06070A;
  --bg-1: #0A0C11;
  --bg-2: #0D1016;
  --panel: #0F1219;
  --panel-2: #151923;
  --panel-3: #1C212D;
  --line: rgba(230, 234, 245, .08);
  --line-2: rgba(230, 234, 245, .14);
  --line-3: rgba(230, 234, 245, .26);

  /* texto */
  --text: #ECEEF4;
  --text-2: #A6ACC0;
  --text-3: #7D849C;
  --dark: #0B0C10;           /* texto sobre peças claras e luzes acesas */

  /* luzes (torre de sinalização + marca) */
  --cobalt: #2F45FF;
  --cobalt-lit: #8C9BFF;
  --red: #FF3D2E;
  --red-lit: #FF7A6F;
  --yellow: #FFD23F;
  --green: #22D07B;
  --green-lit: #63E6A6;

  /* nomes antigos ainda usados como tom em atributos style */
  --ink: #1C212D;
  --paper: #E9EBF2;
  --ground: #0A0C11;
  --steel: #8B91A6;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --gutter: clamp(18px, 4.5vw, 64px);
  --maxw: 1320px;
  --nav-h: 92px;
  --lift: 0px;

  /* blur kept at 32px or less: big blurs were the largest raster cost while scrolling */
  --shadow-1: 0 1px 0 rgba(255, 255, 255, .045) inset, 0 14px 26px -16px rgba(0, 0, 0, .95);
  --shadow-2: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 22px 32px -20px rgba(0, 0, 0, 1);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --f-sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Martian Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

@media (max-width: 560px) {
  :root { --nav-h: 82px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  scrollbar-color: #2A3040 var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.115rem);
  font-weight: 420;
  line-height: 1.6;
  overflow-x: clip;
  caret-color: var(--yellow);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, figure { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: .24em; text-decoration-color: color-mix(in oklab, currentColor 45%, transparent); }
a:hover { text-decoration-color: currentColor; }
button, input { font: inherit; color: inherit; }
code { font-family: var(--f-mono); font-stretch: 87.5%; }

::selection { background: var(--yellow); color: var(--dark); }

::-webkit-scrollbar { width: 12px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #262B38; border-radius: 99px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #343A4B; }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

svg:has(> use), .ico {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico { width: 1.15em; height: 1.15em; flex: none; }

.skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: .8em 1.2em;
  background: var(--yellow);
  color: var(--dark);
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
  transition: top .2s var(--ease);
}
.skip:focus { top: 16px; }

.mono { font-family: var(--f-mono); font-stretch: 87.5%; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
}

#smooth-wrapper, main { overflow-x: clip; }

/* ---------- Type ---------- */
.h-xl, .h-lg {
  color: var(--text);
  font-weight: 800;
  font-stretch: 106%;
  letter-spacing: -.034em;
  line-height: 1.02;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.h-xl { font-size: clamp(2.6rem, 1.5rem + 4.6vw, 6rem); line-height: .96; }
.h-lg { font-size: clamp(2.1rem, 1.35rem + 2.6vw, 4rem); }

.h-md {
  font-weight: 800;
  font-stretch: 106%;
  font-size: clamp(1.2rem, 1.06rem + .6vw, 1.6rem);
  line-height: 1.14;
  letter-spacing: -.012em;
}

.lede {
  font-size: clamp(1.06rem, 1rem + .3vw, 1.3rem);
  line-height: 1.55;
  font-weight: 420;
  color: var(--text-2);
  max-width: 56ch;
}

.ln-mask { padding-block: .16em .1em; margin-block: -.16em -.1em; }
[data-split], [data-hero-title] { text-wrap: wrap; }

/* Highlight: a safety-yellow marker sweeps in behind the word (GSAP animates --hl) */
.hl {
  --hl: 1;
  --hl-bg: var(--yellow);
  position: relative;
  z-index: 0;
  display: inline-block;
  padding: .02em .16em .07em;
  color: var(--dark);
  line-height: .95;
}
.hl::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--hl-bg);
  border-radius: .14em;
  box-shadow: 0 .18em .5em -.2em color-mix(in oklab, var(--hl-bg) 60%, transparent);
  transform: rotate(-1.2deg) scaleX(var(--hl));
  transform-origin: left center;
}
.hl--paper { --hl-bg: var(--paper); }
.nowrap { white-space: nowrap; }

/* ---------- Sections: open floor, separated by light and hairlines ---------- */
.plate {
  position: relative;
  isolation: isolate;
  padding-block: clamp(88px, 11vw, 168px);
  border-top: 1px solid var(--line);
  overflow: clip;
}

.s-ink    { background: var(--bg); --fg-2: var(--text-2); }
.s-ground { background: var(--bg-1); --fg-2: var(--text-2); }
.s-paper  { background: var(--bg-2); --fg-2: var(--text-2); }
/* lit sections: a lamp above the frame spills its colour onto the floor */
.s-cobalt { background: radial-gradient(85% 55% at 12% -8%, rgba(47, 69, 255, .30), transparent 70%), var(--bg); --fg-2: #B5BCE0; }
.s-red    { background: radial-gradient(85% 55% at 88% -8%, rgba(255, 61, 46, .24), transparent 70%), var(--bg); --fg-2: #C9B3B1; }
.s-yellow { background: radial-gradient(85% 55% at 50% -10%, rgba(255, 196, 46, .17), transparent 70%), var(--bg-1); --fg-2: #C7C0AA; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: clamp(18px, 4vw, 64px);
  align-items: end;
}

/* Shared panel: matte powder-coat with a machined top edge */
.panel, .sim__setup, .sim__stage, .sim__out, .log, .api, .tables, .modules {
  background: linear-gradient(180deg, rgba(255, 255, 255, .028), rgba(255, 255, 255, 0) 38%), var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}

/* ---------- Buttons: backlit keys ---------- */
.btn {
  --btn-bg: rgba(255, 255, 255, .045);
  --btn-fg: var(--text);
  --btn-line: var(--line-2);
  --btn-glow: 0 14px 30px -18px rgba(0, 0, 0, .9);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 52px;
  padding: .8em 1.4em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--f-sans);
  font-weight: 700;
  font-stretch: 100%;
  font-size: clamp(.96rem, .92rem + .14vw, 1.04rem);
  line-height: 1;
  letter-spacing: -.005em;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--btn-line);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), var(--btn-glow);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .2s var(--ease), box-shadow .3s var(--ease), background-color .2s, border-color .2s, filter .2s;
}
.btn:hover { transform: translateY(-1px); background-color: rgba(255, 255, 255, .08); border-color: var(--line-3); }
.btn:active { transform: translateY(1px); transition-duration: .06s; }
.btn .ico { transition: transform .3s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn--red, .btn--yellow, .btn--ink {
  --btn-line: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .42), inset 0 -1px 0 rgba(0, 0, 0, .18), var(--btn-glow);
}
.btn--red { --btn-bg: linear-gradient(180deg, #FF5749, #EE2E1E); --btn-fg: #1C0503; --btn-glow: 0 16px 36px -14px rgba(255, 61, 46, .75); }
.btn--yellow { --btn-bg: linear-gradient(180deg, #FFDE63, #F4C01D); --btn-fg: #1E1604; --btn-glow: 0 16px 36px -14px rgba(255, 196, 46, .6); }
.btn--ink { --btn-bg: linear-gradient(180deg, #F6F7FA, #D9DCE6); --btn-fg: var(--dark); --btn-glow: 0 16px 36px -16px rgba(220, 225, 240, .35); }
.btn--red:hover, .btn--yellow:hover, .btn--ink:hover { filter: brightness(1.06); background: var(--btn-bg); }
.btn--sm { min-height: 42px; padding: .62em 1.05em; font-size: .9rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding-inline: 14px;
  pointer-events: none;
}
.nav__bar {
  position: relative;
  pointer-events: auto;
  width: min(100%, 1180px);
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.6vw, 20px);
  padding: 6px 6px 6px 12px;
  background: rgba(10, 12, 17, .66);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 16px 28px -16px rgba(0, 0, 0, 1);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-stretch: 108%;
  font-size: 1.18rem;
  letter-spacing: -.02em;
  border-radius: 999px;
}
.brand__name span { color: var(--cobalt-lit); }
.brand__mark { width: 38px; height: 38px; }

/* ---------- Brand mark: two halves locked by a wave ---------- */
.mark { --mk-a: var(--cobalt); --mk-b: var(--yellow); --mk-line: var(--text); flex: none; overflow: visible; }
.mark__a { fill: var(--mk-a); }
.mark__b { fill: var(--mk-b); }
.mark__s, .mark__ring { fill: none; stroke: var(--mk-line); stroke-width: 3.5; stroke-linecap: round; }
.mark__spin { transform-box: view-box; transform-origin: 32px 32px; transition: transform .9s var(--ease); }
.mark__a, .mark__b { transform-box: view-box; transform-origin: 32px 32px; }
.brand:hover .mark__spin, .brand:focus-visible .mark__spin { transform: rotate(180deg); }
.brand__product {
  padding: .34em .62em;
  background: var(--red);
  color: #1C0503;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 0 18px -4px rgba(255, 61, 46, .7);
}
.nav__links { position: relative; display: flex; gap: 2px; margin-inline: auto; }
.nav__links a {
  position: relative;
  z-index: 1;
  padding: .62em .95em;
  border-radius: 999px;
  color: var(--text-2);
  font-weight: 600;
  font-size: .94rem;
  text-decoration: none;
  transition: color .2s, background-color .2s;
}
.nav__links a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav__links a.is-active { color: var(--text); }
.nav__pip {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  visibility: hidden;
  opacity: 0;
  background: rgba(255, 255, 255, .08);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.nav__links a.is-active:hover { background: transparent; }
.nav__progress {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--yellow);
  box-shadow: 0 0 12px rgba(255, 210, 63, .8);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}
.nav__toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(255, 255, 255, .05);
  cursor: pointer;
}
.nav__toggle span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  margin-left: -9px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .35s var(--ease);
}
.nav__toggle span:first-child { transform: translateY(-4px); }
.nav__toggle span:last-child { transform: translateY(3px); }
.menu-open .nav__toggle span:first-child { transform: translateY(-1px) rotate(45deg); }
.menu-open .nav__toggle span:last-child { transform: translateY(-1px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .nav__toggle { display: inline-block; }
}
@media (max-width: 440px) {
  .nav__cta { display: none; }
  .nav__toggle { margin-left: auto; }
  .brand__name { font-size: 1rem; }
}
@media (max-width: 380px) {
  .page-lm .brand__name { display: none; }
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-h) + 40px) var(--gutter) 32px;
  background: radial-gradient(90% 60% at 10% 0%, rgba(47, 69, 255, .32), transparent 70%), var(--bg);
  color: var(--text);
  overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu--red { background: radial-gradient(90% 60% at 90% 0%, rgba(255, 61, 46, .28), transparent 70%), var(--bg); }
.menu__links { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.menu__links a {
  display: inline-block;
  font-weight: 800;
  font-stretch: 106%;
  font-size: clamp(1.8rem, 8.4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  text-decoration: none;
  transition: color .2s;
}
.menu__links a:hover { color: var(--yellow); }
.menu__foot { margin-top: auto; padding-top: 32px; color: var(--text-3); font-weight: 600; }

/* ---------- Opening: the mark is built, breathes, then opens into the page ---------- */
.loader { display: none; }
html.js.is-loading .loader, .loader.is-on { display: block; position: fixed; inset: 0; z-index: 120; }
.loader__veil {
  --hole: 0px;
  --hx: 50%;
  --hy: 50%;
  position: absolute;
  inset: 0;
  background: var(--bg);
  -webkit-mask-image: radial-gradient(circle at var(--hx) var(--hy), transparent var(--hole), #000 calc(var(--hole) + 1px));
  mask-image: radial-gradient(circle at var(--hx) var(--hy), transparent var(--hole), #000 calc(var(--hole) + 1px));
}
.loader__lockup {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 22px;
  pointer-events: none;
}
.loader__row { display: flex; align-items: center; }
.loader__mark { --mk-line: #fff; width: clamp(76px, 10vw, 116px); height: auto; will-change: transform; }
.loader__word {
  display: inline-flex;
  overflow: hidden;
  max-width: 5.6em;
  margin-left: .42em;
  padding-block: .1em;
  color: #fff;
  font-weight: 800;
  font-stretch: 108%;
  font-size: clamp(2.2rem, 5.2vw, 3.8rem);
  line-height: 1;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.loader__word span { display: inline-block; }
.loader__word .is-wave { color: var(--cobalt-lit); }
.loader__tag { color: var(--text-3); font-weight: 600; font-size: clamp(.8rem, .76rem + .2vw, .95rem); letter-spacing: .02em; text-align: center; }

/* Built in CSS so it starts on the first frame, before any script. Every step ends at
   the element's natural state (fill "backwards"), so GSAP can take over afterwards. */
@media (prefers-reduced-motion: no-preference) {
  html.is-loading:not(.is-continuing) .loader__mark { animation: lw-pop 1.1s var(--ease) backwards; }
  html.is-loading:not(.is-continuing) .loader__mark .mark__ring { stroke-dasharray: 1; animation: lw-draw .95s cubic-bezier(.65, 0, .35, 1) .05s backwards; }
  html.is-loading:not(.is-continuing) .loader__mark .mark__a { animation: lw-half-a 1.15s var(--ease) .3s backwards; }
  html.is-loading:not(.is-continuing) .loader__mark .mark__b { animation: lw-half-b 1.15s var(--ease) .3s backwards; }
  html.is-loading:not(.is-continuing) .loader__mark .mark__s { stroke-dasharray: 1; animation: lw-draw .55s cubic-bezier(.65, 0, .35, 1) .95s backwards; }
  html.is-loading:not(.is-continuing) .loader__mark .mark__spin { animation: lw-click .42s cubic-bezier(.3, 0, .2, 1) 1.3s; }
  html.is-loading:not(.is-continuing) .loader__word { animation: lw-open 1s var(--ease) 1.1s backwards; }
  html.is-loading:not(.is-continuing) .loader__word span { animation: lw-rise .7s var(--ease) backwards; animation-delay: calc(1.25s + var(--i) * 40ms); }
  html.is-loading:not(.is-continuing) .loader__tag { animation: lw-fade .6s ease 1.6s backwards; }
}
/* Once the build is over GSAP owns every transform */
html.is-built .loader, html.is-built .loader * { animation: none !important; }
@keyframes lw-pop { from { transform: scale(.5) rotate(-70deg); } }
@keyframes lw-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes lw-half-a { from { transform: rotate(-200deg) scale(.3); opacity: 0; } }
@keyframes lw-half-b { from { transform: rotate(160deg) scale(.3); opacity: 0; } }
@keyframes lw-click { 40% { transform: scale(1.08); } }
@keyframes lw-open { from { max-width: 0; margin-left: 0; } }
@keyframes lw-rise { from { transform: translateY(115%); } }
@keyframes lw-fade { from { opacity: 0; transform: translateY(8px); } }

/* The nav waits for the mark: only the socket shows until it lands */
html.js.is-loading:not(.boot-timeout) .nav .brand__mark { opacity: 0; }
html.js.is-loading:not(.boot-timeout) .nav__bar { clip-path: inset(0 calc(100% - 56px) 0 0 round 999px); }

/* Hidden until the entrance runs (only with JS) */
.js [data-hero-title], .js [data-hero-aside] { visibility: hidden; }

/* ---------- Hero: the lit scene owns the viewport ---------- */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100svh;
  padding-top: calc(var(--nav-h) + clamp(24px, 6vh, 72px));
  padding-bottom: clamp(32px, 7vh, 80px);
  border-top: 0;
  background: var(--bg);
}
.hero__scene { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__scene canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .9s cubic-bezier(.16, 1, .3, 1); }
.hero__scene.is-ready canvas { opacity: 1; }
/* legibility: the floor darkens where the copy sits */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 7, 10, .55) 0%, rgba(6, 7, 10, 0) 22%),
    linear-gradient(0deg, rgba(6, 7, 10, .94) 0%, rgba(6, 7, 10, .6) 30%, rgba(6, 7, 10, 0) 58%),
    linear-gradient(90deg, rgba(6, 7, 10, .62) 0%, rgba(6, 7, 10, 0) 52%);
}
/* without WebGL the mark still stands under a lamp */
.hero__fallback {
  position: absolute;
  right: 8%;
  top: 18%;
  width: clamp(180px, 26vw, 360px);
  height: auto;
  --mk-line: #0B0C10;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .8));
}
.hero__scene:not(.is-live) { background: radial-gradient(55% 60% at 75% 30%, rgba(47, 69, 255, .35), transparent 70%), var(--bg); }
.hero__scene.is-live .hero__fallback { display: none; }

.hero__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 64px);
  align-items: end;
}
.hero__title { color: var(--text); text-shadow: 0 2px 30px rgba(0, 0, 0, .45); }
.hero__title .hl { text-shadow: none; }
.hero__aside { display: grid; gap: 24px; padding-bottom: .4em; }
.hero__lede {
  max-width: 46ch;
  font-size: clamp(1.02rem, .97rem + .28vw, 1.2rem);
  line-height: 1.55;
  color: var(--text-2);
}
@media (max-width: 1020px) {
  .hero__top { grid-template-columns: 1fr; }
}
/* Wide screens: the copy stacks on the left and the right side belongs to the mark and its reflection */
@media (min-width: 1021px) and (min-aspect-ratio: 5/4) {
  .has-scene .hero--home .hero__top { grid-template-columns: minmax(0, min(47rem, 54%)); gap: 26px; }
  .has-scene .hero--home .hero__aside { padding-bottom: 0; }
  .has-scene .hero--home::after {
    background:
      linear-gradient(180deg, rgba(6, 7, 10, .5) 0%, rgba(6, 7, 10, 0) 18%),
      linear-gradient(0deg, rgba(6, 7, 10, .92) 0%, rgba(6, 7, 10, 0) 15%),
      linear-gradient(90deg, rgba(6, 7, 10, .8) 0%, rgba(6, 7, 10, .55) 30%, rgba(6, 7, 10, 0) 55%);
  }
}
@media (max-aspect-ratio: 5/6) {
  .hero__fallback { right: 50%; top: 14%; transform: translateX(50%); }
}

/* ---------- Link wave: a lit cable through the four layers ---------- */
.wave {
  position: relative;
  height: clamp(230px, 26vw, 320px);
  margin-block: clamp(36px, 5vw, 72px) clamp(20px, 3vw, 40px);
}
.wave__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wave__under { fill: none; stroke: var(--yellow); stroke-opacity: .14; stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; }
.wave__line { fill: none; stroke: var(--yellow); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.wave__pulse { fill: #fff; stroke: rgba(255, 220, 110, .45); stroke-width: 10; }
.wave__nodes { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.node {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  will-change: transform;
  --tone: var(--cobalt-lit);
}
.node:nth-child(2) { --tone: var(--yellow); }
.node:nth-child(3) { --tone: var(--green); }
.node:nth-child(4) { --tone: var(--red); }
.node__icon {
  position: relative;
  width: clamp(58px, 6vw, 86px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 50%), var(--panel-2);
  color: var(--tone);
  border: 1px solid var(--line-2);
  border-radius: clamp(16px, 1.6vw, 22px);
  box-shadow: var(--shadow-2), 0 0 28px -12px var(--tone);
}
.node__icon::after {
  content: "";
  position: absolute;
  top: 9px;
  right: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tone);
  box-shadow: 0 0 10px var(--tone);
}
.node__icon svg { width: 46%; height: auto; aspect-ratio: 1; }
.node__label {
  padding: .45em .8em;
  background: rgba(10, 12, 17, .85);
  color: var(--text-2);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-weight: 700;
  font-size: clamp(.72rem, .85vw, .86rem);
  line-height: 1;
  white-space: nowrap;
}
.node__label .short { display: none; }
@media (max-width: 680px) {
  .node__label .long { display: none; }
  .node__label .short { display: inline; }
}

/* ---------- Bands ---------- */
.marquee, .hazard-band {
  position: relative;
  z-index: 3;
  overflow: hidden;
  padding-block: clamp(18px, 2.2vw, 28px);
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 40px);
  width: max-content;
  padding-left: clamp(20px, 2.6vw, 40px);
  color: var(--text-3);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(1.2rem, 2.6vw, 2.2rem);
  line-height: 1;
  letter-spacing: -.02em;
  white-space: nowrap;
  will-change: transform;
}
.marquee__star { width: .7em; height: .7em; stroke-width: 3; flex: none; color: var(--yellow); }
/* real safety tape: black and yellow stripes on the edges, slogans in between */
.hazard-band { padding-block: clamp(26px, 3vw, 38px); }
.hazard-band::before, .hazard-band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 8px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, #0B0C10 14px 28px);
  opacity: .9;
}
.hazard-band::before { top: 0; }
.hazard-band::after { bottom: 0; }
.hazard-band .marquee__track { color: var(--yellow); }
.hazard-band .marquee__star { color: var(--text-3); }

/* ---------- About ---------- */
.about__statement {
  max-width: 30ch;
  color: var(--text);
  font-weight: 800;
  font-stretch: 106%;
  font-size: clamp(1.6rem, 1.05rem + 2.5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -.025em;
}
.about__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(90px, 12vw, 170px) minmax(0, 1fr);
  align-items: center;
  margin-top: clamp(56px, 7vw, 104px);
}
.about__link { width: 100%; height: auto; overflow: visible; }
.about__link-under { fill: none; stroke: var(--yellow); stroke-opacity: .16; stroke-width: 14; stroke-linecap: round; }
.about__link-line { fill: none; stroke: var(--yellow); stroke-width: 3.5; stroke-linecap: round; }
.about__note { margin-top: 32px; color: var(--text-2); max-width: 60ch; }

/* Nameplates: anodized aluminium, brushed, with a rivet */
.ltag {
  --tone: var(--cobalt);
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 72px clamp(22px, 3vw, 38px) clamp(26px, 3vw, 36px);
  color: #fff;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 3px),
    linear-gradient(165deg, color-mix(in oklab, var(--tone) 82%, white) 0%, var(--tone) 42%, color-mix(in oklab, var(--tone) 62%, black) 100%);
  border-radius: var(--r-lg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .45),
    inset 0 -2px 8px rgba(0, 0, 0, .28),
    0 30px 44px -26px color-mix(in oklab, var(--tone) 70%, transparent),
    0 30px 50px -30px rgba(0, 0, 0, .9);
  transform-origin: 50% 34px;
}
.ltag p { font-weight: 500; }
.ltag--cobalt { --tone: var(--cobalt); }
.ltag--red { --tone: var(--red); color: #1C0503; }
.ltag__name {
  font-weight: 800;
  font-stretch: 106%;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: .95;
  letter-spacing: -.03em;
}
.ltag__role {
  justify-self: start;
  padding: .38em .75em;
  background: rgba(0, 0, 0, .26);
  border-radius: 999px;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.grommet {
  position: absolute;
  top: 22px;
  left: 50%;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #F2F4F8 0 18%, #9AA0B2 46%, #3A3F4E 78%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .45), inset 0 -1px 2px rgba(0, 0, 0, .4);
}
.grommet--lg { top: 22px; width: 34px; height: 34px; margin-left: -17px; background: radial-gradient(circle, #0B0C10 0 34%, #C3C8D6 38%, #8B91A6 60%, #4A4F60 82%); }

@media (max-width: 760px) {
  .about__split { grid-template-columns: 1fr; gap: 0; }
  .about__link { width: 120px; justify-self: center; transform: rotate(90deg); margin-block: -8px; }
}

/* ---------- Services ---------- */
.services__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: clamp(18px, 4vw, 64px);
  align-items: end;
}
.rows { display: grid; gap: 12px; }
.row {
  --tone: var(--yellow);
  background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0) 40%), var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: background-color .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.row.is-open {
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in oklab, var(--tone) 17%, transparent), transparent 55%), var(--panel);
  border-color: color-mix(in oklab, var(--tone) 34%, transparent);
}
.row__h { margin: 0; }
.row__head {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 2vw, 24px);
  padding: clamp(16px, 1.8vw, 22px) clamp(16px, 2.2vw, 28px);
  background: none;
  border: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.row__head:focus-visible { outline-offset: -6px; border-radius: var(--r-lg); }
.row__icon {
  width: clamp(48px, 4.6vw, 58px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--panel-3);
  color: color-mix(in oklab, var(--tone) 85%, white);
  border: 1px solid var(--line-2);
  border-radius: 15px;
  transition: background-color .4s, box-shadow .4s, transform .6s var(--ease);
}
.row__icon svg { width: 50%; height: auto; aspect-ratio: 1; }
.row.is-open .row__icon { box-shadow: 0 0 30px -8px var(--tone); transform: rotate(-6deg); }
.row__title {
  font-weight: 800;
  font-stretch: 106%;
  font-size: clamp(1.15rem, .92rem + 1vw, 1.9rem);
  line-height: 1.05;
  letter-spacing: -.02em;
}
.row__plus {
  position: relative;
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  transition: transform .5s var(--ease), border-color .3s;
}
.row__plus::before, .row__plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  margin: -1px 0 0 -7px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .5s var(--ease);
}
.row__plus::after { transform: rotate(90deg); }
.row.is-open .row__plus { transform: rotate(180deg); border-color: color-mix(in oklab, var(--tone) 60%, transparent); }
.row.is-open .row__plus::after { transform: rotate(0deg); }
.row__body { overflow: hidden; }
.js .row:not(.is-open) .row__body { height: 0; }
.row__inner {
  display: grid;
  gap: 16px;
  padding: 0 clamp(16px, 2.2vw, 28px) clamp(22px, 2.4vw, 30px) calc(clamp(16px, 2.2vw, 28px) + clamp(48px, 4.6vw, 58px) + clamp(14px, 2vw, 24px));
}
.row__inner p { max-width: 64ch; color: var(--text-2); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: .42em .8em;
  background: rgba(255, 255, 255, .04);
  color: var(--text-2);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-stretch: 87.5%;
  font-size: .76rem;
  line-height: 1.2;
}
@media (max-width: 900px) {
  .services__head { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .row__inner { padding-left: clamp(16px, 2.2vw, 28px); }
  .row__plus { width: 36px; height: 36px; }
}

/* ---------- Spotlight (LockMachine teaser): lockout padlock and tag ---------- */
.spotlight__grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.spotlight__visual { position: relative; display: grid; justify-items: center; }
.spotlight__visual::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 30%;
  width: 120%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 61, 46, .26), transparent);
  pointer-events: none;
}
.padlock { position: relative; z-index: 3; width: clamp(120px, 12vw, 170px); height: auto; overflow: visible; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .7)); }
.padlock__shackle-under { fill: none; stroke: #3A3F4E; stroke-width: 30; stroke-linecap: round; }
.padlock__shackle { fill: none; stroke: #C9CEDA; stroke-width: 18; stroke-linecap: round; }
.padlock__body { fill: var(--red); stroke: #FF7A6F; stroke-width: 3; }
.padlock__key { fill: #1C0503; }

.bigtag {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
  width: clamp(250px, 27vw, 360px);
  margin-top: 18px;
  padding: 78px clamp(20px, 2.2vw, 28px) clamp(20px, 2.2vw, 26px);
  background: linear-gradient(180deg, #F7F8FB, #E3E6EE);
  color: var(--dark);
  text-align: center;
  border-radius: 26px 26px 34px 34px;
  box-shadow: inset 0 1px 0 #fff, 0 30px 32px -18px rgba(0, 0, 0, 1), 0 0 0 1px rgba(255, 255, 255, .5);
  transform-origin: 50% 0%;
}
.bigtag__ring {
  position: absolute;
  left: 50%;
  top: -46px;
  width: 34px;
  height: 92px;
  margin-left: -17px;
  border: 6px solid #B9BFCD;
  border-radius: 20px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, .5);
  z-index: 3;
}
.bigtag__band {
  padding: .6em;
  background: var(--red);
  color: #1C0503;
  border-radius: 12px;
  font-weight: 900;
  font-stretch: 118%;
  font-size: clamp(.78rem, .95vw, .95rem);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.bigtag__name {
  font-weight: 900;
  font-stretch: 112%;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  line-height: .86;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.bigtag__line { font-weight: 700; }
.bigtag__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 2px dashed rgba(11, 12, 16, .35);
  font-weight: 800;
  font-size: .74rem;
  text-transform: uppercase;
  text-align: left;
}
.bigtag__code {
  padding: .25em .5em;
  white-space: nowrap;
  background: var(--dark);
  color: var(--yellow);
  border-radius: 8px;
  font-family: var(--f-mono);
  font-size: .78rem;
}

.spotlight__copy .lede { margin-top: 22px; }
.mini-steps { list-style: none; margin: 30px 0 34px; padding: 0; display: grid; gap: 14px; }
.mini-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  color: var(--text);
  font-weight: 550;
}
.mini-steps__n {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: rgba(255, 210, 63, .1);
  color: var(--yellow);
  border: 1px solid rgba(255, 210, 63, .35);
  border-radius: 12px;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: .9rem;
}
@media (max-width: 900px) {
  .spotlight__grid { grid-template-columns: 1fr; }
}

/* ---------- Process ---------- */
.process { padding-block: clamp(72px, 8vw, 120px); }
.process__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(36px, 4vw, 56px);
}
.process__viewport { overflow: hidden; padding-block: 4px 24px; }
.process__track {
  list-style: none;
  margin: 0;
  padding: 0 max(var(--gutter), (100% - var(--maxw)) / 2);
  display: flex;
  gap: clamp(14px, 1.8vw, 24px);
  width: max-content;
}
.step {
  --tone: var(--yellow);
  width: clamp(280px, 29vw, 400px);
  min-height: clamp(290px, 27vw, 370px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(24px, 2.4vw, 32px);
  background: radial-gradient(130% 90% at 0% 0%, color-mix(in oklab, var(--tone) 15%, transparent), transparent 58%), var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.step__n {
  margin-bottom: auto;
  color: color-mix(in oklab, var(--tone) 80%, white);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(3.6rem, 7vw, 6rem);
  line-height: .8;
  letter-spacing: -.04em;
  text-shadow: 0 0 24px color-mix(in oklab, var(--tone) 45%, transparent);
}
.step p { color: var(--text-2); font-size: 1rem; line-height: 1.55; }
.process__meter {
  height: 4px;
  margin-top: 28px;
  overflow: hidden;
  background: var(--line-2);
  border-radius: 999px;
}
.process__meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--yellow));
  box-shadow: 0 0 14px rgba(255, 140, 60, .7);
  transform-origin: left center;
  transform: scaleX(0);
}
@media (max-width: 900px) {
  .process__head { grid-template-columns: 1fr; }
  .process__viewport { overflow: visible; }
  .process__track { flex-direction: column; width: auto; padding: 0 var(--gutter); }
  .step { width: auto; min-height: 0; }
  .step__n { margin-bottom: 8px; font-size: 3.4rem; }
  .process__meter { display: none; }
}

/* ---------- Team badges: plastic credentials on lanyards ---------- */
.team__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: clamp(18px, 4vw, 64px);
  align-items: end;
}
.badges {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 1.6vw, 24px);
  margin-top: clamp(8px, 2vw, 24px);
  padding: 0 var(--gutter) 32px;
}
.badge {
  --tone: var(--cobalt);
  position: relative;
  flex: 0 0 clamp(200px, 16.4vw, 236px);
  padding-top: clamp(96px, 9vw, 130px);
  transform-origin: 50% 0%;
}
.badge__strap {
  position: absolute;
  left: 50%;
  top: 0;
  width: 26px;
  height: calc(clamp(96px, 9vw, 130px) + 22px);
  margin-left: -13px;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .16) 0 2px, transparent 2px 5px),
    linear-gradient(90deg, rgba(0, 0, 0, .35), transparent 30% 70%, rgba(0, 0, 0, .35)),
    var(--tone);
  border-radius: 0 0 5px 5px;
}
.badge__card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 5 / 7.4;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 22px;
  transform-style: preserve-3d;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.badge__card:focus-visible { outline: 2px solid var(--yellow); outline-offset: 6px; }
.badge__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 44px 16px 14px;
  background: linear-gradient(180deg, #FAFBFD, #E4E7EF);
  color: var(--dark);
  text-align: center;
  border-radius: 22px;
  box-shadow: inset 0 1px 0 #fff, 0 26px 30px -18px rgba(0, 0, 0, 1);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.badge__back {
  transform: rotateY(180deg);
  background: radial-gradient(120% 90% at 50% 0%, color-mix(in oklab, var(--tone) 30%, transparent), transparent 70%), var(--panel-2);
  color: var(--text);
  justify-content: flex-start;
  box-shadow: inset 0 0 0 1px var(--line-2), 0 26px 30px -18px rgba(0, 0, 0, 1);
}
.badge__slot {
  position: absolute;
  top: 14px;
  left: 50%;
  width: 54px;
  height: 12px;
  margin-left: -27px;
  background: #11131A;
  border-radius: 999px;
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, .6);
}
.badge__org { font-weight: 800; font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.badge__avatar {
  width: 46%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-block: 2px 4px;
  background: var(--tone);
  color: var(--tone-fg, var(--dark));
  border-radius: 50%;
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  box-shadow: inset 0 -6px 12px rgba(0, 0, 0, .18);
}
.badge__name { font-weight: 800; font-stretch: 104%; font-size: clamp(1rem, 1.08vw, 1.1rem); line-height: 1.14; }
.badge__role {
  padding: .38em .75em;
  background: var(--dark);
  color: #fff;
  border-radius: 999px;
  font-weight: 650;
  font-size: .76rem;
  line-height: 1.2;
}
.badge__list { margin-top: 10px; font-weight: 600; font-size: 1rem; line-height: 1.4; }
.badge__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed currentColor;
  font-family: var(--f-mono);
  font-size: .7rem;
  opacity: .8;
}
@media (max-width: 1180px) {
  .badges {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .badges::-webkit-scrollbar { display: none; }
  .badge { scroll-snap-align: start; flex-basis: clamp(210px, 58vw, 240px); }
}

.advisors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: clamp(28px, 4vw, 52px);
  padding: 18px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.advisors__h {
  color: var(--text-3);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.advisors__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 26px; color: var(--text); font-weight: 600; }

/* ---------- Tech board: a perforated tool wall with printed labels ---------- */
.stack__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: clamp(18px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(30px, 4vw, 52px);
}
.board {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  min-height: 320px;
  background:
    radial-gradient(circle, rgba(0, 0, 0, .7) 2.6px, rgba(255, 255, 255, .05) 3.2px, transparent 3.8px) 0 0 / 30px 30px,
    linear-gradient(180deg, #171B25, #0F121A);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), inset 0 22px 30px -22px rgba(0, 0, 0, .9);
}
.js .board { display: block; padding: 0; }
.sticker {
  padding: .72em 1.1em;
  background: linear-gradient(180deg, color-mix(in oklab, var(--bg) 88%, white), var(--bg));
  color: var(--fg, var(--dark));
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 14px 22px -12px rgba(0, 0, 0, .95);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  line-height: 1;
  letter-spacing: -.01em;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}
.js .sticker { position: absolute; left: 0; top: 0; }
.sticker--round { border-radius: 999px; padding: .85em 1.3em; }
.sticker--tall { padding: 1.2em 1em; font-size: clamp(1.4rem, 2.3vw, 2.1rem); }
.sticker--chip { border-radius: 8px; outline: 1.5px dashed rgba(11, 12, 16, .55); outline-offset: -8px; padding: 1em 1.3em; }
.can-drag .sticker { cursor: grab; touch-action: none; }
.can-drag .sticker:active { cursor: grabbing; }

/* ---------- Footer ---------- */
.footer {
  padding-bottom: clamp(20px, 2.4vw, 30px);
  background: radial-gradient(70% 50% at 50% 115%, rgba(47, 69, 255, .22), transparent 70%), var(--bg);
}
.page-lm .footer { background: radial-gradient(70% 50% at 50% 115%, rgba(255, 61, 46, .2), transparent 70%), var(--bg); }
.footer .wrap { container-type: inline-size; }
.footer__cta {
  display: grid;
  gap: 28px;
  justify-items: start;
  padding-bottom: clamp(48px, 6vw, 84px);
  border-bottom: 1px solid var(--line);
}
.footer__cols {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .8fr);
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(36px, 5vw, 56px);
  color: var(--text-2);
}
.footer__h {
  margin-bottom: 14px;
  color: var(--text-3);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__list a { text-decoration: none; transition: color .2s; }
.footer__list a:hover { color: var(--text); text-decoration: underline; }
.footer__word {
  overflow: hidden;
  padding-top: .1em;
  color: var(--cobalt);
  font-weight: 800;
  font-stretch: 106%;
  font-size: 19.8cqi;
  line-height: .82;
  letter-spacing: -.035em;
  text-align: center;
  white-space: nowrap;
  user-select: none;
}
.footer__word--red { color: var(--red); font-size: 14.3cqi; }
.footer__word .ch { display: inline-block; }
.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 20px;
  margin-top: clamp(18px, 2.4vw, 28px);
  color: var(--text-3);
  font-size: .9rem;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer__legal a { color: var(--text-2); text-decoration: none; }
.footer__legal a:hover { color: var(--text); text-decoration: underline; }
.totop {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .6em 1em;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-weight: 650;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.totop:hover { background: var(--yellow); color: var(--dark); border-color: var(--yellow); }
@media (max-width: 760px) {
  .footer__cols { grid-template-columns: 1fr; }
}

/* =========================================================
   LockMachine page
   ========================================================= */
.hero--lm .hero__title { font-size: clamp(2.3rem, 1.4rem + 3.8vw, 5.2rem); }
.hero--lm .hero__lede { color: var(--text-2); }
.hero--lm::after {
  background:
    linear-gradient(180deg, rgba(6, 7, 10, .55) 0%, rgba(6, 7, 10, 0) 22%),
    linear-gradient(0deg, rgba(6, 7, 10, .9) 0%, rgba(6, 7, 10, .2) 40%, rgba(6, 7, 10, 0) 60%),
    linear-gradient(90deg, rgba(6, 7, 10, .9) 0%, rgba(6, 7, 10, .55) 36%, rgba(6, 7, 10, 0) 62%);
}
.hero-lm {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.hero-lm__copy { display: grid; gap: 24px; align-content: center; }
.has-scene .hero-lm { grid-template-columns: minmax(0, 1fr); align-items: end; }
.has-scene .hero-lm__copy { max-width: 640px; }
.has-scene .hero-lm__device { display: none; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  max-width: 100%;
  padding: .6em 1em;
  background: rgba(10, 12, 17, .8);
  color: var(--text-2);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  font-weight: 550;
  font-size: .88rem;
  line-height: 1.4;
}
.status-pill__dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 10px var(--yellow);
  animation: blink 1.6s steps(2, jump-none) infinite;
}
@keyframes blink { 50% { background: #5E4D12; box-shadow: none; } }

/* live verdict line, synced with the 3D cycle */
.scene-verdict {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  min-height: 44px;
}
.scene-verdict__lamp {
  width: 12px;
  height: 12px;
  flex: none;
  border-radius: 50%;
  background: #2A2F3C;
  transition: background-color .3s, box-shadow .3s;
}
.scene-verdict[data-state="read"] .scene-verdict__lamp { background: var(--yellow); box-shadow: 0 0 14px var(--yellow); }
.scene-verdict[data-state="ok"] .scene-verdict__lamp { background: var(--green); box-shadow: 0 0 14px var(--green); }
.scene-verdict[data-state="no"] .scene-verdict__lamp { background: var(--red); box-shadow: 0 0 14px var(--red); }
.scene-verdict__text { flex: 1 1 200px; font-family: var(--f-mono); font-stretch: 87.5%; font-size: .82rem; color: var(--text-2); }
/* Narrow screens: the machine gets a band of its own and the copy starts on the floor below it */
@media (max-width: 720px) {
  .hero--lm { justify-content: flex-start; padding-top: calc(var(--nav-h) + 34svh); }
  .hero--lm .hero__scene { bottom: auto; height: 72svh; }
  .hero--lm::after {
    background: linear-gradient(180deg, rgba(6, 7, 10, .5) 0, rgba(6, 7, 10, 0) 12svh, rgba(6, 7, 10, 0) 36svh, rgba(6, 7, 10, .86) 54svh, var(--bg) 72svh);
  }
}
.scene-verdict__text strong { color: var(--text); font-weight: 700; }
.scene-verdict__next {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .5em .9em;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-weight: 650;
  font-size: .86rem;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.scene-verdict__next:hover { background: rgba(255, 255, 255, .06); border-color: var(--line-3); }
.scene-verdict[hidden] { display: none; }

.hero-lm__device {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 22px;
  min-height: clamp(440px, 52vh, 560px);
}
@media (max-width: 900px) {
  .hero-lm { grid-template-columns: 1fr; }
  .hero-lm__device { min-height: 470px; margin-top: 8px; }
}

/* RFID reader device (fallback hero + simulator) */
.reader {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(100%, 320px);
  padding: 16px;
  background: linear-gradient(180deg, #1D2230, #12151E);
  color: var(--text);
  border: 1px solid var(--line-2);
  border-radius: 30px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 26px 32px -20px rgba(0, 0, 0, 1);
}
.reader__top { display: flex; justify-content: space-between; align-items: center; padding-inline: 4px; }
.reader__brand { font-weight: 800; font-stretch: 112%; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.reader__leds { display: flex; gap: 8px; }
.led {
  width: 12px;
  height: 12px;
  background: #2A2F3C;
  border-radius: 50%;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6);
  transition: background-color .15s, box-shadow .15s;
}
.led--y.is-on { background: var(--yellow); box-shadow: 0 0 14px var(--yellow); }
.led--g.is-on { background: var(--green); box-shadow: 0 0 14px var(--green); }
.led--r.is-on { background: var(--red); box-shadow: 0 0 14px var(--red); }
.reader__screen {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 84px;
  padding: 12px 16px;
  background: #05060A;
  color: #fff;
  border-radius: 14px;
  font-family: var(--f-mono);
  font-stretch: 87.5%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), inset 0 8px 20px rgba(0, 0, 0, .7);
}
.reader__msg {
  font-weight: 700;
  font-size: clamp(.82rem, 1vw, .95rem);
  text-transform: uppercase;
  letter-spacing: .02em;
  transition: color .2s;
}
.reader__sub { font-size: .72rem; color: var(--text-3); overflow-wrap: anywhere; }
.reader[data-result="ok"] .reader__msg { color: var(--green-lit); }
.reader[data-result="no"] .reader__msg { color: var(--red-lit); }
.reader[data-result="err"] .reader__msg { color: var(--yellow); }
.reader__pad {
  position: relative;
  display: grid;
  place-items: center;
  height: 150px;
  background: rgba(255, 255, 255, .02);
  border: 1.5px dashed var(--line-3);
  border-radius: 20px;
  transition: background-color .2s, border-color .2s;
}
.reader__pad.is-hot { background: rgba(255, 210, 63, .1); border-style: solid; border-color: var(--yellow); }
.reader__waves { width: 58px; height: 58px; stroke-width: 1.6; color: var(--text-3); }
.reader__ripple {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 90px;
  height: 90px;
  margin: -45px 0 0 -45px;
  border: 3px solid var(--cobalt-lit);
  border-radius: 50%;
  opacity: 0;
}
.reader__foot {
  display: flex;
  justify-content: space-between;
  padding-inline: 4px;
  font-family: var(--f-mono);
  font-size: .64rem;
  color: var(--text-3);
}

.relay {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: .5em .7em .5em .9em;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-weight: 650;
  font-size: .84rem;
}
.relay__dot { width: 10px; height: 10px; background: #2A2F3C; border-radius: 50%; transition: background-color .2s, box-shadow .2s; }
.relay__state {
  padding: .25em .55em;
  background: rgba(255, 255, 255, .06);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: .7rem;
  transition: background-color .2s, color .2s;
}
.relay.is-on .relay__dot { background: var(--green); box-shadow: 0 0 10px var(--green); }
.relay.is-on .relay__state { background: var(--green); color: var(--dark); }

/* RFID ID card: white PVC with a coloured band */
.idcard {
  --w: clamp(220px, 21vw, 270px);
  width: var(--w);
  aspect-ratio: 85.6 / 54;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background: linear-gradient(160deg, #FFFFFF, #E2E5ED);
  color: var(--dark);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 #fff, 0 22px 30px -16px rgba(0, 0, 0, 1);
  user-select: none;
  -webkit-user-select: none;
}
.idcard__band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  background: var(--tone);
  color: var(--tone-fg, var(--dark));
  font-weight: 900;
  font-stretch: 118%;
  font-size: .62rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.idcard__band .ico { width: 16px; height: 16px; }
.idcard__body { display: flex; align-items: center; gap: 12px; padding: 10px 12px; min-width: 0; }
.idcard__avatar {
  flex: none;
  width: 30%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--tone);
  color: var(--tone-fg, var(--dark));
  border-radius: 12px;
  font-weight: 800;
  font-stretch: 112%;
  font-size: 1.15rem;
}
.idcard__info { display: grid; gap: 2px; min-width: 0; }
.idcard__name { font-weight: 800; font-stretch: 104%; font-size: 1rem; line-height: 1.1; }
.idcard__meta { font-weight: 650; font-size: .76rem; }
.idcard__uid { font-family: var(--f-mono); font-stretch: 87.5%; font-size: .62rem; color: #4A5065; }
.idcard--float { position: absolute; left: 0; top: 0; z-index: 4; will-change: transform; }

/* ---------- Problem ---------- */
.problem__head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(18px, 4vw, 64px);
  align-items: end;
}
.record {
  position: relative;
  margin-top: clamp(40px, 5vw, 68px);
  padding: clamp(14px, 2vw, 24px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.record__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.record__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  font-size: clamp(.92rem, .86rem + .3vw, 1.08rem);
}
.record__title .ico { color: var(--red-lit); }
.record__id {
  padding: .32em .6em;
  background: rgba(255, 255, 255, .06);
  color: var(--text-2);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  font-family: var(--f-mono);
  font-stretch: 87.5%;
  font-size: .72rem;
}
.record__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.frag {
  --tone: var(--yellow);
  position: relative;
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 108px;
  padding: 16px 18px;
  background: radial-gradient(120% 110% at 0% 0%, color-mix(in oklab, var(--tone) 14%, transparent), transparent 60%), var(--panel-2);
  color: var(--text);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
}
.frag::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tone);
  box-shadow: 0 0 10px var(--tone);
}
.frag__field { padding-right: 18px; color: var(--text-3); font-weight: 700; font-size: .74rem; line-height: 1.2; letter-spacing: .06em; text-transform: uppercase; }
.frag__swap { display: grid; overflow: hidden; padding-block: .1em; }
.frag__src, .frag__val { grid-area: 1 / 1; font-weight: 600; }
.frag__src { display: none; color: var(--text-3); text-decoration: line-through 1.5px; text-decoration-color: currentColor; }
.js .frag__src { display: block; }
.frag__val.mono { font-size: .85rem; }
.problem__after { margin-top: 30px; max-width: 60ch; color: var(--text); font-weight: 650; font-size: clamp(1.05rem, 1rem + .35vw, 1.28rem); }
@media (max-width: 860px) {
  .problem__head { grid-template-columns: 1fr; }
  .record__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .record__grid { grid-template-columns: 1fr; }
  .frag { min-height: 0; }
}

/* ---------- How it works ---------- */
.how__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: clamp(18px, 4vw, 64px);
  align-items: end;
}
.how__wrap { position: relative; margin-top: clamp(44px, 6vw, 84px); }
.how__cable { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 0; pointer-events: none; }
.how__cable-under { fill: none; stroke: var(--red); stroke-opacity: .16; stroke-width: 14; stroke-linecap: round; }
.how__cable-line { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; }
.how__steps {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 48px);
}
.how__step { display: grid; gap: 12px; align-content: start; }
.how__badge {
  --tone: var(--yellow);
  position: relative;
  width: clamp(92px, 8.6vw, 118px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 50%), var(--panel-2);
  color: color-mix(in oklab, var(--tone) 85%, white);
  border: 1px solid var(--line-2);
  border-radius: 28px;
  box-shadow: var(--shadow-2), 0 0 30px -12px var(--tone);
}
.how__badge svg { width: 44%; height: auto; aspect-ratio: 1; }
.how__n {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--text);
  color: var(--dark);
  border-radius: 50%;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: .82rem;
}
.how__step p { max-width: 38ch; color: var(--text-2); }
@media (max-width: 860px) {
  .how__head { grid-template-columns: 1fr; }
  .how__steps { grid-template-columns: 1fr; gap: 40px; }
  .how__step { grid-template-columns: auto minmax(0, 1fr); column-gap: 20px; }
  .how__badge { grid-row: span 2; width: 82px; border-radius: 24px; }
}

/* ---------- Simulator ---------- */
.sim__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  gap: clamp(18px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(34px, 4vw, 58px);
}
.sim__grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(14px, 1.6vw, 22px);
  align-items: stretch;
}
.panel, .sim__setup, .sim__stage, .sim__out, .log { padding: clamp(16px, 1.8vw, 24px); }
.sim__setup { display: grid; align-content: start; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field + .field { margin-top: 22px; }
.field__legend {
  margin-bottom: 10px;
  padding: 0;
  color: var(--text-2);
  font-weight: 700;
  font-size: .9rem;
}
.opts { display: grid; gap: 8px; }
.opts--machines { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt__body {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 9px 12px;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  transition: border-color .2s, background-color .2s, box-shadow .25s;
}
.opt:hover .opt__body { border-color: var(--line-3); }
.opt input:checked + .opt__body { background: rgba(255, 210, 63, .08); border-color: var(--yellow); box-shadow: 0 0 0 1px var(--yellow) inset, 0 0 28px -14px var(--yellow); }
.opt input:focus-visible + .opt__body { outline: 2px solid var(--yellow); outline-offset: 3px; }
.opt input:disabled { cursor: not-allowed; }
.opt input:disabled + .opt__body { opacity: .5; }
.opt__avatar {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--tone);
  color: var(--tone-fg, var(--dark));
  border-radius: 11px;
  font-weight: 800;
  font-stretch: 112%;
  font-size: .8rem;
}
.opt__avatar svg { width: 21px; height: 21px; }
.opt__text { display: grid; min-width: 0; line-height: 1.25; }
.opt__text strong { font-weight: 750; font-size: .95rem; }
.opt__text small { font-size: .78rem; color: var(--text-3); }
.opt--machine .opt__body { flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px; }
.opt--machine .opt__text strong { font-size: .88rem; }
.opt__code {
  padding: .2em .45em;
  background: rgba(255, 255, 255, .07);
  color: var(--text);
  border: 1px solid var(--line-2);
  border-radius: 7px;
  font-family: var(--f-mono);
  font-stretch: 87.5%;
  font-weight: 700;
  font-size: .76rem;
}

.switch { position: relative; display: flex; align-items: center; gap: 12px; margin-top: 22px; font-weight: 650; cursor: pointer; }
.switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch__track {
  position: relative;
  flex: none;
  width: 58px;
  height: 32px;
  background: rgba(255, 61, 46, .28);
  border: 1px solid rgba(255, 61, 46, .6);
  border-radius: 999px;
  transition: background-color .25s, border-color .25s, box-shadow .25s;
}
.switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: #F2F3F7;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .5);
  transition: transform .4s var(--ease);
}
.switch input:checked + .switch__track { background: rgba(34, 208, 123, .3); border-color: var(--green); box-shadow: 0 0 22px -8px var(--green); }
.switch input:checked + .switch__track .switch__thumb { transform: translateX(26px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--yellow); outline-offset: 3px; }

.sim__stage { display: grid; justify-items: center; align-content: start; gap: 18px; }
.sim__dock {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: clamp(158px, 13vw, 184px);
  background: repeating-linear-gradient(-45deg, transparent 0 12px, rgba(255, 255, 255, .025) 12px 24px);
  border: 1.5px dashed var(--line-2);
  border-radius: var(--r-md);
}
.idcard--sim { --w: clamp(212px, 18vw, 244px); position: relative; z-index: 5; cursor: grab; touch-action: none; }
.idcard--sim:active { cursor: grabbing; }
.idcard__grip { position: absolute; right: 6px; bottom: 6px; width: 22px; height: 22px; color: #6A7086; }
.idcard__grip svg { width: 100%; height: 100%; stroke-width: 3.6; }
.reader--sim { width: min(100%, 300px); }
.sim__tap { width: min(100%, 300px); }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  transition: background-color .25s, opacity .25s;
}
.check__dot {
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: var(--panel-3);
  color: var(--dark);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  transition: background-color .2s, box-shadow .2s;
}
.check__dot svg { width: 15px; height: 15px; stroke-width: 3.2; }
.check__text { display: grid; min-width: 0; line-height: 1.3; }
.check__text strong { font-weight: 700; font-size: .93rem; }
.check__text small { font-size: .78rem; color: var(--text-3); overflow-wrap: anywhere; }
.check[data-state="run"] .check__dot { background: var(--yellow); box-shadow: 0 0 14px -2px var(--yellow); }
.check[data-state="ok"] .check__dot { background: var(--green); box-shadow: 0 0 14px -2px var(--green); }
.check[data-state="fail"] { background: rgba(255, 61, 46, .1); }
.check[data-state="fail"] .check__dot { background: var(--red); box-shadow: 0 0 14px -2px var(--red); }
.check[data-state="skip"] { opacity: .4; }

.verdict {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-top: 12px;
  padding: 16px;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
}
.verdict__stamp {
  padding: .14em .42em;
  color: var(--text-3);
  border: 3px solid currentColor;
  border-radius: 10px;
  font-weight: 900;
  font-stretch: 118%;
  font-size: clamp(1.4rem, 2.2vw, 2.1rem);
  line-height: 1;
  text-transform: uppercase;
  transform: rotate(-3deg);
}
.verdict[data-result="ok"] .verdict__stamp { color: var(--green-lit); background: rgba(34, 208, 123, .1); box-shadow: 0 0 30px -12px var(--green); }
.verdict[data-result="no"] .verdict__stamp { color: var(--red-lit); background: rgba(255, 61, 46, .1); box-shadow: 0 0 30px -12px var(--red); }
.verdict[data-result="err"] .verdict__stamp { color: var(--dark); background: var(--yellow); border-color: var(--yellow); }
.verdict__reason { color: var(--text-2); font-size: .94rem; }
.verdict__reason code {
  padding: .12em .4em;
  background: rgba(255, 255, 255, .07);
  border-radius: 6px;
  color: var(--text);
  font-size: .8em;
}

.json {
  margin-top: 12px;
  overflow: hidden;
  background: #05060A;
  color: #DCDFEA;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.json__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #0E1118;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-mono);
  font-stretch: 87.5%;
  font-size: .68rem;
  color: var(--text-2);
}
.json__http {
  padding: .2em .55em;
  background: var(--panel-3);
  color: var(--text);
  border-radius: 6px;
  font-weight: 700;
}
.json__http[data-code^="2"] { background: var(--green); color: var(--dark); }
.json__http[data-code^="5"] { background: var(--red); color: var(--dark); }
.json__body {
  min-height: 132px;
  margin: 0;
  padding: 12px 14px;
  font-family: var(--f-mono);
  font-stretch: 87.5%;
  font-size: clamp(.64rem, .74vw, .74rem);
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}
.json__body .k { color: #A7B5FF; }
.json__body .s { color: var(--yellow); }
.json__body .b { color: #7CF0B4; }
.json__body .n { color: #FF9C92; }

.log { margin-top: clamp(16px, 2vw, 24px); }
.log__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.log__stats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.log__stats li {
  padding: .4em .8em;
  background: rgba(255, 255, 255, .05);
  color: var(--text-2);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-weight: 600;
  font-size: .84rem;
}
.log__stats .is-ok { background: rgba(34, 208, 123, .12); border-color: rgba(34, 208, 123, .45); color: var(--green-lit); }
.log__stats .is-no { background: rgba(255, 61, 46, .12); border-color: rgba(255, 61, 46, .45); color: var(--red-lit); }
.log__stats strong { display: inline-block; color: var(--text); font-weight: 800; font-variant-numeric: tabular-nums; }
.log__scroll {
  overflow-x: auto;
  background: #0B0D13;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.log__table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: .88rem; }
.log__table th {
  padding: 11px 12px;
  background: #0E1118;
  color: var(--text-3);
  text-align: left;
  font-weight: 700;
  font-size: .7rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.log__table td {
  padding: 11px 12px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.log__table td.mono { font-size: .72rem; color: var(--text-2); }
.log__table tr.is-new td { animation: flash 1.4s var(--ease); }
@keyframes flash { from { background: rgba(255, 210, 63, .18); } to { background: transparent; } }
.log__empty td { padding: 22px; color: var(--text-3); text-align: center; }
.res {
  display: inline-block;
  padding: .32em .62em;
  border-radius: 999px;
  color: var(--dark);
  font-weight: 800;
  font-size: .68rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.res--ok { background: var(--green); }
.res--no { background: var(--red); }
.res--err { background: var(--yellow); }
.log__local { display: block; font-family: var(--f-sans); font-size: .72rem; color: var(--text-3); }

.sim__note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 82ch;
  margin-top: 22px;
  color: var(--text-2);
  font-size: .92rem;
}
.sim__note .ico { margin-top: .15em; color: var(--yellow); }

@media (max-width: 1140px) {
  .sim__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sim__out { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 18px; align-items: start; }
  .sim__out .checks { grid-row: span 2; }
  .sim__out .verdict { margin-top: 0; }
}
@media (max-width: 760px) {
  .sim__head { grid-template-columns: 1fr; }
  .sim__grid { grid-template-columns: 1fr; }
  .sim__out { display: block; }
  .sim__out .verdict { margin-top: 12px; }
}
@media (max-width: 420px), (min-width: 761px) and (max-width: 1140px) {
  .opts--machines { grid-template-columns: 1fr; }
  .opt--machine .opt__body { flex-direction: row; align-items: center; }
}

/* ---------- Notice: safety tape on both edges ---------- */
.notice { padding-block: clamp(64px, 7vw, 100px); }
.notice::before, .notice::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 10px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, #0B0C10 14px 28px);
  opacity: .9;
}
.notice::before { top: 0; }
.notice::after { bottom: 0; }
.notice__grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(18px, 3vw, 40px); align-items: start; }
.notice__icon {
  width: clamp(64px, 7.4vw, 96px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: rgba(255, 210, 63, .1);
  color: var(--yellow);
  border: 1px solid rgba(255, 210, 63, .35);
  border-radius: 24px;
}
.notice__icon svg { width: 54%; height: auto; aspect-ratio: 1; stroke-width: 1.8; }
.notice__h { margin-bottom: 14px; color: var(--text); font-weight: 800; font-stretch: 106%; font-size: clamp(1.35rem, 1.05rem + 1.3vw, 2.2rem); letter-spacing: -.02em; }
.notice p { max-width: 78ch; color: var(--text-2); }
@media (max-width: 560px) {
  .notice__grid { grid-template-columns: 1fr; }
}

/* ---------- Architecture ---------- */
.arch__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  gap: clamp(18px, 4vw, 64px);
  align-items: end;
}
.arch__diagram {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas: "browser api db" ". device .";
  gap: clamp(36px, 5vw, 76px) clamp(28px, 6vw, 110px);
  margin-top: clamp(44px, 5vw, 76px);
  padding-bottom: 78px;
}
.arch__node[data-node="browser"] { grid-area: browser; }
.arch__node[data-node="api"] { grid-area: api; }
.arch__node[data-node="db"] { grid-area: db; }
.arch__node[data-node="device"] { grid-area: device; }
.arch__wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.arch__wire-under { fill: none; stroke: var(--yellow); stroke-opacity: .14; stroke-width: 12; stroke-linecap: round; }
.arch__wire { fill: none; stroke: var(--yellow); stroke-width: 2.5; stroke-linecap: round; }
.arch__node {
  --tone: var(--cobalt);
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: clamp(16px, 1.8vw, 22px);
  background: radial-gradient(120% 100% at 0% 0%, color-mix(in oklab, var(--tone) 16%, transparent), transparent 60%), var(--panel);
  color: var(--text);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
}
.arch__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--panel-3);
  color: color-mix(in oklab, var(--tone) 80%, white);
  border: 1px solid var(--line-2);
  border-radius: 13px;
}
.arch__icon svg { width: 24px; height: 24px; }
.arch__name { font-weight: 800; font-stretch: 106%; font-size: clamp(1rem, 1.35vw, 1.28rem); line-height: 1.05; }
.arch__node p { color: var(--text-2); font-size: .9rem; line-height: 1.45; }
.arch__packet {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(255, 220, 110, .3), 0 0 22px rgba(255, 220, 110, .9);
  opacity: 0;
}
.arch__caption {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2;
  max-width: 100%;
  padding: .55em 1em;
  transform: translateX(-50%);
  background: rgba(10, 12, 17, .9);
  color: var(--yellow);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-stretch: 87.5%;
  font-size: clamp(.66rem, .9vw, .8rem);
  white-space: nowrap;
}
@media (max-width: 860px) {
  .arch__head { grid-template-columns: 1fr; }
  .arch__diagram {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "browser device" "api api" "db db";
    gap: 44px 16px;
  }
  .arch__node[data-node="api"], .arch__node[data-node="db"] { width: min(100%, 360px); justify-self: center; }
  .arch__caption { white-space: normal; text-align: center; width: max-content; }
}
@media (max-width: 480px) {
  .arch__node p { font-size: .82rem; }
  .arch__icon { width: 40px; height: 40px; }
  .arch__name { font-size: .92rem; font-stretch: 100%; }
}

.arch__cols {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 32px);
  margin-top: clamp(44px, 5vw, 76px);
}
.api, .tables { padding: clamp(18px, 2.2vw, 28px); }
.api__h { margin-bottom: 14px; }
.api__list, .tables__list { list-style: none; margin: 0; padding: 0; }
.api__list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "m c" "m w";
  gap: 3px 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.api__list li:first-child { border-top: 0; }
.api__list li.is-key { margin-inline: -12px; padding-inline: 12px; background: rgba(255, 210, 63, .07); border: 1px solid rgba(255, 210, 63, .3); border-radius: 14px; }
.api__list li.is-key + li { border-top-color: transparent; }
.method {
  grid-area: m;
  align-self: start;
  min-width: 78px;
  padding: .4em .5em;
  background: var(--red);
  color: var(--dark);
  border-radius: 8px;
  text-align: center;
  font-family: var(--f-mono);
  font-stretch: 87.5%;
  font-weight: 700;
  font-size: .64rem;
}
.method--get { background: var(--green); }
.method--both { background: var(--panel-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.api__list code { grid-area: c; color: var(--text); font-weight: 600; font-size: .8rem; overflow-wrap: anywhere; }
.api__what { grid-area: w; font-size: .9rem; color: var(--text-2); }
.api__who {
  grid-column: 2;
  justify-self: start;
  color: var(--text-3);
  font-weight: 700;
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.tables__list li { display: grid; gap: 2px; padding: 11px 0; border-top: 1px solid var(--line); }
.tables__list li:first-child { border-top: 0; }
.tables__list code { color: var(--text); font-weight: 600; font-size: .82rem; }
.tables__list span { font-size: .9rem; color: var(--text-2); }
@media (max-width: 900px) {
  .arch__cols { grid-template-columns: 1fr; }
}

/* ---------- Hardware ---------- */
.hw__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  gap: clamp(18px, 4vw, 64px);
  align-items: end;
}
.bom { list-style: none; margin: clamp(36px, 4vw, 60px) 0 0; padding: 0; display: grid; gap: 10px; }
.part {
  --tone: var(--yellow);
  display: grid;
  grid-template-columns: auto minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: clamp(12px, 2vw, 28px);
  align-items: center;
  padding: 12px clamp(14px, 2vw, 22px) 12px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.part__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: var(--panel-3);
  color: color-mix(in oklab, var(--tone) 82%, white);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: 0 0 30px -14px var(--tone);
}
.part__icon svg { width: 28px; height: 28px; }
.part__name { color: var(--text); font-weight: 800; font-stretch: 106%; font-size: clamp(1rem, .95rem + .3vw, 1.14rem); line-height: 1.12; }
.part__does { color: var(--text); font-weight: 550; }
.part__note { font-size: .92rem; color: var(--text-2); }
@media (max-width: 860px) {
  .hw__head { grid-template-columns: 1fr; }
  .part { grid-template-columns: auto minmax(0, 1fr); align-items: start; row-gap: 4px; }
  .part__icon { grid-row: span 3; width: 48px; height: 48px; }
}

/* ---------- Failures ---------- */
.fails__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  gap: clamp(18px, 4vw, 64px);
  align-items: end;
}
.fails__list {
  list-style: none;
  margin: clamp(36px, 4vw, 60px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.fail {
  position: relative;
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 22px 22px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
}
.fail__what { padding-right: 7.5rem; color: var(--text); font-weight: 800; font-stretch: 106%; font-size: clamp(1rem, .95rem + .3vw, 1.16rem); line-height: 1.14; }
.fail__how { color: var(--text); font-weight: 550; }
.fail__log { font-size: .9rem; color: var(--text-2); }
.stamp {
  position: absolute;
  top: 16px;
  right: 16px;
  max-width: 7.4rem;
  padding: .32em .55em;
  color: var(--red-lit);
  background: rgba(255, 61, 46, .08);
  border: 2px solid currentColor;
  border-radius: 8px;
  font-weight: 900;
  font-stretch: 112%;
  font-size: .76rem;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-7deg);
}
@media (max-width: 860px) {
  .fails__head { grid-template-columns: 1fr; }
  .fails__list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .fail__what { padding-right: 0; }
  .stamp { position: static; order: -1; justify-self: start; max-width: none; margin-bottom: 6px; transform: rotate(-4deg); }
}

/* ---------- Compare ---------- */
.compare__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  gap: clamp(18px, 4vw, 64px);
  align-items: end;
}
.compare__scroll {
  margin-top: clamp(30px, 4vw, 52px);
  overflow-x: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.compare__table { width: 100%; min-width: 820px; border-collapse: collapse; }
.compare__table th, .compare__table td {
  padding: 15px 16px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: .93rem;
  line-height: 1.45;
}
.compare__table thead th {
  border-top: 0;
  background: #0E1118;
  color: var(--text-3);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.compare__table tbody th { color: var(--text); font-weight: 700; }
.compare__table td.is-us { background: rgba(255, 61, 46, .08); color: var(--text); font-weight: 550; }
.compare__table thead th.is-us { background: rgba(255, 61, 46, .2); color: var(--red-lit); }
.compare__note { margin-top: 26px; max-width: 80ch; color: var(--text-2); }
.compare__table thead small {
  display: block;
  margin-top: 4px;
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-3);
}

.rivals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
  margin-top: clamp(30px, 4vw, 52px);
}
.rival {
  --tone: var(--cobalt);
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: hidden;
  padding: clamp(18px, 2vw, 24px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.rival__top {
  display: grid;
  gap: 8px;
  margin: calc(-1 * clamp(18px, 2vw, 24px)) calc(-1 * clamp(18px, 2vw, 24px)) 0;
  padding: clamp(18px, 2vw, 22px) clamp(18px, 2vw, 24px);
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in oklab, var(--tone) 22%, transparent), transparent 70%), var(--panel-2);
  color: var(--text);
  border-bottom: 1px solid var(--line);
}
.rival__name { font-weight: 800; font-stretch: 106%; font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); line-height: 1.08; }
.rival__from {
  justify-self: start;
  padding: .28em .62em;
  background: rgba(255, 255, 255, .06);
  color: var(--text-2);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-weight: 600;
  font-size: .74rem;
}
.rival__who { color: var(--text); font-weight: 550; }
.rival__facts { margin: 0; display: grid; gap: 12px; }
.rival__facts dt { color: var(--text-3); font-weight: 700; font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; }
.rival__facts dd { margin: 3px 0 0; color: var(--text-2); font-size: .93rem; line-height: 1.5; }
@media (max-width: 960px) {
  .rivals { grid-template-columns: 1fr; }
}

/* ---------- Get the app ---------- */
.getapp__grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}
.getapp__copy { display: grid; gap: 22px; align-content: center; }
.getapp__roles { display: grid; gap: 16px; }
.role { display: grid; gap: 8px; padding-left: 2px; }
.role p { color: var(--text-2); max-width: 52ch; }
.role__chip {
  justify-self: start;
  display: inline-block;
  padding: .32em .72em;
  border-radius: 999px;
  font-weight: 750;
  font-size: .78rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.role__chip--ink { background: var(--paper); color: var(--dark); }
.role__chip--red { background: var(--red); color: #1C0503; }
.getapp__note { max-width: 56ch; color: var(--text-3); font-size: .92rem; }
.btn.is-off { opacity: .5; pointer-events: none; }

/* phones show the app as it looks now: light and minimal */
.phones { position: relative; min-height: clamp(440px, 46vw, 560px); }
.phones::before {
  content: "";
  position: absolute;
  inset: 10% 5% 0;
  background: radial-gradient(closest-side, rgba(255, 61, 46, .2), transparent);
  pointer-events: none;
}
.phone {
  position: absolute;
  width: clamp(200px, 19vw, 250px);
  aspect-ratio: 9 / 18.5;
  padding: 9px;
  background: linear-gradient(160deg, #3A3F4D, #15181F 40%, #0C0E13);
  border-radius: 40px;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), 0 34px 32px -18px rgba(0, 0, 0, 1);
}
.phone::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 50%;
  width: 54px;
  height: 14px;
  margin-left: -27px;
  border-radius: 999px;
  background: #000;
  z-index: 2;
}
.phone--back { left: 4%; top: 0; transform: rotate(-8deg); }
.phone--front { right: 6%; top: 12%; transform: rotate(6deg); }
.phone__screen {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  height: 100%;
  padding: 38px 11px 12px;
  overflow: hidden;
  background: #F4F5F8;
  color: #12141C;
  border-radius: 32px;
  font-size: 10px;
  line-height: 1.25;
}
.ph-top { display: flex; align-items: center; gap: 6px; margin: -38px -11px 0; padding: 34px 12px 8px; background: #fff; color: #12141C; border-bottom: 1px solid #E8EAF0; font-weight: 800; font-size: 11px; }
.ph-mark { width: 16px; height: 16px; border-radius: 5px; background: var(--red); box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4.5px var(--red); }
.ph-title { font-weight: 800; font-stretch: 104%; font-size: 17px; line-height: 1.05; letter-spacing: -.02em; }
.ph-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.ph-kpis--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ph-kpi { display: grid; gap: 2px; min-width: 0; padding: 6px 5px; background: #fff; border-radius: 9px; box-shadow: 0 1px 2px rgba(16, 18, 27, .06), 0 4px 10px -6px rgba(16, 18, 27, .18); color: #6B7086; font-weight: 600; font-size: 7px; }
.ph-kpi b { color: #12141C; font-weight: 800; font-size: 15px; line-height: 1; }
.ph-kpi--ok b { color: #0E9F5B; }
.ph-kpi--no b { color: var(--red); }
.ph-chart { display: flex; align-items: flex-end; gap: 4px; height: 64px; padding: 7px; background: #fff; border-radius: 10px; box-shadow: 0 1px 2px rgba(16, 18, 27, .06), 0 4px 10px -6px rgba(16, 18, 27, .18); }
.ph-chart i { flex: 1; height: var(--h); background: #2CCB7E; border-radius: 3px; transform-origin: bottom; }
.ph-chart i:nth-child(3n) { background: var(--red); }
.ph-row { display: flex; align-items: center; gap: 6px; padding: 7px 8px; background: #fff; border-radius: 9px; box-shadow: 0 1px 2px rgba(16, 18, 27, .06); font-weight: 650; }
.ph-row em { margin-left: auto; padding: 1px 6px; background: #E3F8EE; color: #0E8A50; border-radius: 999px; font-style: normal; font-size: 7.5px; font-weight: 750; }
.ph-row em.is-no { background: #FFE9E7; color: #D3261A; }
.ph-dot { width: 7px; height: 7px; border-radius: 50%; }
.ph-dot--ok { background: #2CCB7E; }
.ph-dot--no { background: var(--red); }
.ph-badge { overflow: hidden; background: #fff; border-radius: 12px; box-shadow: 0 1px 2px rgba(16, 18, 27, .06), 0 6px 14px -8px rgba(16, 18, 27, .25); }
.ph-badge__band { display: block; padding: 4px 8px; background: var(--red); color: #fff; font-weight: 800; font-size: 7.5px; letter-spacing: .06em; text-transform: uppercase; }
.ph-badge__body { display: flex; align-items: center; gap: 8px; padding: 8px; }
.ph-badge__body b { display: block; font-weight: 800; font-size: 11px; }
.ph-badge__body small { color: #6B7086; font-size: 8.5px; }
.ph-avatar { display: grid; place-items: center; width: 30px; height: 30px; background: #E3F8EE; color: #0E8A50; border-radius: 9px; font-weight: 800; font-size: 10px; }
.ph-tabs { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: space-around; padding: 8px; background: #fff; border-radius: 16px; box-shadow: 0 6px 16px -8px rgba(16, 18, 27, .35); }
.ph-tabs i { width: 16px; height: 16px; border-radius: 5px; background: #E3E5EC; }
.ph-tabs i.is-on { background: var(--red); }
@media (max-width: 900px) {
  .getapp__grid { grid-template-columns: 1fr; }
  .phones { min-height: 440px; max-width: 460px; width: 100%; justify-self: center; }
  .phone { width: 196px; }
}
@media (max-width: 420px) {
  .phones { min-height: 400px; }
  .phone { width: 172px; }
  .phone--back { left: 0; }
  .phone--front { right: 0; }
}
@media (max-width: 860px) {
  .compare__head { grid-template-columns: 1fr; }
}

/* ---------- Status ---------- */
.status__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 64px);
  align-items: end;
}
.status__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(24px, 4vw, 64px);
  margin-top: clamp(36px, 4vw, 60px);
  align-items: start;
}
.modules { padding: clamp(18px, 2.2vw, 28px); }
.modules__h { margin-bottom: 12px; }
.road .modules__h { color: var(--text); margin-bottom: 24px; }
.modules__list { list-style: none; margin: 0; padding: 0; }
.modules__list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name tag" "next next";
  gap: 4px 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.modules__list li:first-child { border-top: 0; }
.modules__name { grid-area: name; color: var(--text); font-weight: 700; }
.modules__next { grid-area: next; font-size: .88rem; color: var(--text-2); }
.tag {
  grid-area: tag;
  align-self: start;
  padding: .34em .66em;
  border-radius: 999px;
  color: var(--dark);
  font-weight: 750;
  font-size: .68rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag--done { background: var(--green); }
.tag--demo { background: var(--yellow); }
.tag--plan { background: transparent; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-3); }

.road__list { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.road__list::before, .road__fill {
  content: "";
  position: absolute;
  left: 22px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 3px;
  background: var(--line-2);
}
.road__fill { background: var(--yellow); box-shadow: 0 0 12px rgba(255, 210, 63, .7); transform-origin: top center; transform: scaleY(0); }
.road__stop { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; }
.road__n {
  position: relative;
  z-index: 1;
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  background: var(--panel-2);
  color: var(--yellow);
  border: 1px solid rgba(255, 210, 63, .4);
  border-radius: 14px;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: .95rem;
  transition: background-color .3s, color .3s, box-shadow .3s, transform .5s var(--ease);
}
.road__stop.is-reached .road__n { background: var(--yellow); color: var(--dark); box-shadow: 0 0 24px -6px var(--yellow); transform: rotate(-6deg); }
.road__name { color: var(--text); font-weight: 800; font-stretch: 106%; font-size: 1.06rem; }
.road__stop p { color: var(--text-2); font-size: .95rem; }
.road__stop .road__who { margin-top: 4px; color: var(--yellow); font-weight: 650; font-size: .84rem; }
@media (max-width: 900px) {
  .status__head, .status__grid { grid-template-columns: 1fr; }
}

/* ---------- Business canvas ---------- */
.canvas__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  gap: clamp(18px, 4vw, 64px);
  align-items: end;
}
.bmc {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  grid-template-areas:
    "p p a a v v r r s s"
    "p p k k v v c c s s"
    "co co co co co rv rv rv rv rv";
  gap: 10px;
  margin-top: clamp(36px, 4vw, 60px);
}
.bmc__partners { grid-area: p; }
.bmc__activities { grid-area: a; }
.bmc__resources { grid-area: k; }
.bmc__value { grid-area: v; }
.bmc__relations { grid-area: r; }
.bmc__channels { grid-area: c; }
.bmc__segments { grid-area: s; }
.bmc__costs { grid-area: co; }
.bmc__revenue { grid-area: rv; }
.bmc__cell {
  --tone: var(--panel-3);
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 18px;
  background: radial-gradient(130% 100% at 0% 0%, color-mix(in oklab, var(--tone) 14%, transparent), transparent 60%), var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.bmc__cell h3 { color: var(--text-3); font-weight: 700; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; }
.bmc__cell p { color: var(--text-2); font-size: .92rem; line-height: 1.5; }
.bmc__value { border-color: rgba(255, 61, 46, .4); background: radial-gradient(120% 90% at 50% 0%, rgba(255, 61, 46, .2), transparent 70%), var(--panel); }
.bmc__value h3 { color: var(--red-lit); font-size: .8rem; }
.bmc__value p { color: var(--text); font-size: 1.06rem; font-weight: 650; }
@media (max-width: 1000px) {
  .canvas__head { grid-template-columns: 1fr; }
  .bmc {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "v v" "p s" "a k" "r c" "co rv";
  }
}
@media (max-width: 560px) {
  .bmc { grid-template-columns: 1fr; grid-template-areas: "v" "s" "p" "a" "k" "r" "c" "co" "rv"; }
}

/* ---------- Legal pages (privacidade, termos) ---------- */
.doc { padding-top: calc(var(--nav-h) + clamp(40px, 8vh, 96px)); }
.doc__head { display: grid; gap: 18px; max-width: 760px; }
.doc__meta { color: var(--text-3); font-family: var(--f-mono); font-stretch: 87.5%; font-size: .8rem; }
.doc__body {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  margin-top: clamp(40px, 6vw, 80px);
  align-items: start;
}
.doc__toc { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 6px; font-size: .9rem; }
.doc__toc a { color: var(--text-2); text-decoration: none; padding: .25em 0; }
.doc__toc a:hover { color: var(--text); }
.doc__text { max-width: 72ch; color: var(--text-2); }
.doc__text h2 { margin: 2.4em 0 .6em; color: var(--text); font-weight: 800; font-stretch: 106%; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.8rem); letter-spacing: -.02em; line-height: 1.15; scroll-margin-top: calc(var(--nav-h) + 24px); }
.doc__text h2:first-child { margin-top: 0; }
.doc__text h3 { margin: 1.6em 0 .4em; color: var(--text); font-weight: 750; font-size: 1.08rem; }
.doc__text p, .doc__text li { line-height: 1.7; }
.doc__text p + p { margin-top: .9em; }
.doc__text ul { margin: .8em 0; padding-left: 1.2em; display: grid; gap: .4em; }
.doc__text li::marker { color: var(--yellow); }
.doc__text strong { color: var(--text); font-weight: 650; }
.doc__text a { color: var(--yellow); }
.doc__table { width: 100%; margin: 1em 0; border-collapse: collapse; font-size: .92rem; }
.doc__table th, .doc__table td { padding: 10px 12px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc__table th { color: var(--text); font-weight: 650; }
.doc__callout {
  margin: 1.4em 0;
  padding: 16px 18px;
  background: rgba(255, 210, 63, .06);
  color: var(--text);
  border: 1px solid rgba(255, 210, 63, .3);
  border-radius: var(--r-md);
}
.todo { background: rgba(255, 210, 63, .18); color: var(--yellow); padding: 0 .3em; border-radius: 4px; font-weight: 650; }
.page-doc .footer { padding-block: 28px; }
.page-doc .footer__base { margin-top: 0; }
.nav__links a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--line-2); }
@media (max-width: 860px) {
  .doc__body { grid-template-columns: 1fr; }
  .doc__toc { position: static; grid-auto-flow: row; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
}

/* ---------- Shared two-column heads collapse ---------- */
@media (max-width: 900px) {
  .team__head, .stack__head { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .status-pill__dot { animation: none; }
}

/* Elements moved by scroll-linked tweens get their own GPU layer: they slide instead of being
   repainted every frame (with their text and box shadows). */
.hero--home .hero__top, [data-process-track], .step, .frag, [data-phone-back], [data-phone-front], .wave__svg,
.bigtag, [data-padlock], .ltag, .node__icon, .badge { will-change: transform; }

/* honesty note under the 3D verdict line (only while the scene is live) */
.scene-note { display: none; margin: -12px 0 0; color: var(--text-3); font-size: .8rem; line-height: 1.45; }
.has-scene .scene-note { display: block; }
