/* SPDX-License-Identifier: AGPL-3.0-only
   Copyright (C) 2026 Aspersh Upadhyay and the Latch contributors */
/* Latch website. Near-black, hairline rules, ember (the app's brand colour) used sparingly,
   terminal green for "ok". Geist for prose, Geist Mono for anything machine-ish. The only script is the mascot (pet.js). */
:root {
  --bg: #09090b; --bg-2: #0d0d10; --panel: #111114; --line: #1d1d22; --line-2: #2b2b32;
  --text: #ededef; --muted: #8b8b94; --dim: #5d5d66;
  --ember: #ff6a3d; --ember-ink: #c2532d; --green: #4ade80; --red: #ff5a5a;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  /* One width for the navbar, every section, and the footer. */
  --w: min(1160px, calc(100% - 32px));
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); overflow-x: clip;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: "ss01", "cv11"; }
::selection { background: var(--ember); color: #0a0a0a; }
img, svg { display: inline-block; vertical-align: middle; }
a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; transition: text-decoration-color 0.15s, color 0.15s; }
a:hover { text-decoration-color: var(--ember); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
code { font-family: var(--mono); font-size: 0.86em; color: var(--green); }
strong { color: var(--text); font-weight: 600; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 16px; }

/* Faint engineering grid behind the top of the page, plus rails at the content edges. */
.bg-grid { position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
  mask-image: linear-gradient(180deg, #000 0, transparent 900px);
  -webkit-mask-image: linear-gradient(180deg, #000 0, transparent 900px); }
main { width: var(--w); margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }

/* Labels: small mono, uppercase, the "machine voice" of the page. */
.label { margin: 0; font: 500 0.72rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.label span { color: var(--ember); margin-right: 8px; }
.label.dim { color: var(--dim); text-transform: none; letter-spacing: 0.02em; font-size: 0.8rem; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line);
  background: rgba(9, 9, 11, 0.78); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
.nav-in { width: var(--w); margin: 0 auto; height: 60px; display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 600 1rem var(--mono); letter-spacing: -0.02em; margin-right: auto; }
.logo em { font: 500 0.62rem/1 var(--mono); font-style: normal; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ember); border: 1px solid rgba(255, 106, 61, 0.4); padding: 3px 5px; }
.nav nav { display: flex; gap: 2px; }
.nav nav a { color: var(--muted); text-decoration: none; font: 0.8rem var(--mono); padding: 6px 10px; transition: color 0.15s; }
.nav nav a i { font-style: normal; color: var(--dim); margin-right: 6px; transition: color 0.15s; }
.nav nav a:hover { color: var(--text); }
.nav nav a:hover i { color: var(--ember); }

/* Buttons: square-shouldered, no pills. */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  font: 500 0.92rem var(--sans); text-decoration: none; border: 1px solid transparent; border-radius: 2px; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.btn-primary { background: var(--ember); color: #0a0a0a; }
.btn-primary:hover { background: #ff8257; }
.btn-ghost { color: var(--text); border-color: var(--line-2); background: transparent; }
.btn-ghost:hover { border-color: var(--muted); background: rgba(255, 255, 255, 0.03); }
.btn-sm { min-height: 34px; padding: 0 12px; font: 500 0.78rem var(--mono); gap: 8px; }
/* The download button: one clear action, what you get underneath. */
.get { display: inline-flex; align-items: center; gap: 14px; padding: 12px 24px 12px 18px; border-radius: 14px; text-decoration: none; color: #140803;
  background: linear-gradient(180deg, #ff8a5f, var(--ember)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 30px -10px rgba(255, 106, 61, 0.7);
  transition: transform 0.15s, box-shadow 0.15s; }
.get:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 16px 36px -10px rgba(255, 106, 61, 0.85); }
.get span { display: grid; line-height: 1.2; text-align: left; }
.get b { font: 600 1.02rem var(--sans); letter-spacing: -0.01em; }
.get small { font: 500 0.74rem var(--sans); opacity: 0.72; }
.src { display: inline-flex; align-items: center; gap: 10px; padding: 0 20px; min-height: 58px; border-radius: 14px; border: 1px solid var(--line-2);
  color: var(--text); text-decoration: none; font-weight: 500; transition: border-color 0.15s, background 0.15s; }
.src:hover { border-color: var(--muted); background: rgba(255, 255, 255, 0.03); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; border-bottom: 1px solid var(--line); }
.hero-copy { padding: 88px 48px 72px; border-right: 1px solid var(--line); }
.status { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 32px; font: 0.78rem var(--mono); color: var(--muted); text-transform: lowercase; }
.status b { color: var(--dim); font-weight: 400; }
.dot { width: 7px; height: 7px; background: var(--green); box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15); }
h1 { font-size: clamp(2.4rem, 4.4vw, 3.7rem); line-height: 1.02; letter-spacing: -0.04em; margin: 0 0 28px; }
.accent { color: var(--ember); }
.caret { display: inline-block; width: 0.08em; height: 0.82em; margin-left: 0.08em; background: var(--ember); vertical-align: -0.04em; }
.lead { font-size: 1.1rem; line-height: 1.65; color: var(--muted); max-width: 52ch; margin: 0 0 36px; }
.lead em { color: var(--text); font-style: normal; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; gap: 0; padding: 56px 32px; min-height: 560px;
  background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.07) 1px, transparent 0) 0 0 / 16px 16px; }
.tick { position: absolute; width: 14px; height: 14px; border-color: var(--ember); border-style: solid; }
.tick.tl { left: 14px; top: 14px; border-width: 1px 0 0 1px; }
.tick.br { right: 14px; bottom: 14px; border-width: 0 1px 1px 0; }

.console { position: absolute; left: 24px; top: 50%; transform: translateY(-62%); z-index: 2; width: 280px; background: var(--bg-2); border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px -30px #000; font: 0.76rem/1.55 var(--mono); }
.bar { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--line); color: var(--muted); font: 0.7rem var(--mono); text-transform: lowercase; }
.bar .live { margin-left: auto; color: var(--green); }
.dots { display: flex; gap: 5px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.msg { margin: 0; padding: 12px 12px 6px; color: var(--text); }
.msg b { color: var(--ember); font-weight: 500; margin-right: 4px; }
.calls { list-style: none; margin: 0; padding: 4px 12px 12px; display: grid; gap: 3px; color: var(--muted); }
.calls li { display: flex; gap: 8px; white-space: nowrap; }
.calls code { color: var(--text); font-size: 1em; }
.ts { color: var(--dim); }
.ok { color: var(--green); margin-left: auto; }
.calls li:last-child { color: var(--text); white-space: normal; }
.calls li:last-child code { color: var(--green); }

.phone { position: relative; width: 252px; height: 510px; margin-left: 250px; border-radius: 36px; padding: 8px; background: #141418;
  border: 1px solid var(--line-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 40px 80px -30px #000; }
.phone-screen { position: relative; height: 100%; border-radius: 29px; overflow: hidden; background: #0c0c0f; border: 1px solid var(--line); }
.ph-status { display: flex; justify-content: space-between; padding: 14px 22px 0; font: 0.62rem var(--mono); color: var(--muted); }
.ph-app { padding: 32px 18px; display: grid; gap: 10px; }
.ph-row { height: 8px; background: #1c1c22; }
.w70 { width: 70%; } .w45 { width: 45%; } .w60 { width: 60%; } .w35 { width: 35%; }
.ph-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.ph-tiles i { height: 72px; border-radius: 8px; background: #141419; border: 1px solid var(--line); }
.ph-tiles i:first-child { background: rgba(255, 106, 61, 0.14); border-color: rgba(255, 106, 61, 0.55); }
/* The pointer stays in the left half and its tag sits under it, so the tag always fits inside the screen. */
.cursor { --tx: 30px; --ty: 236px; transform-origin: 3px 2px; position: absolute; left: 44px; top: 140px; z-index: 2; }
.cursor span { position: absolute; left: 14px; top: 22px; white-space: nowrap; font: 600 0.74rem/1.2 var(--mono); color: #0a0a0a; background: var(--ember); padding: 4px 8px; border-radius: 3px; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.8); }
.card { position: absolute; left: 8px; right: 8px; bottom: 54px; padding: 8px 12px 12px; border-radius: 20px;
  background: linear-gradient(180deg, #1d1d24, #141419); border: 1px solid #2e2e37;
  box-shadow: 0 -18px 40px -16px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.07); }
.card-grip { display: block; width: 28px; height: 3px; margin: 0 auto 10px; border-radius: 3px; background: #3b3b46; }
.card-head { display: flex; align-items: center; gap: 10px; }
.app-ic { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: #08130c;
  background: linear-gradient(145deg, #5ff08f, #1fb556); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 12px -4px rgba(74, 222, 128, 0.6); }
.card-t { margin: 0; font-weight: 600; font-size: 0.8rem; line-height: 1.2; letter-spacing: -0.015em; }
.card-src { margin: 2px 0 0; font: 0.54rem var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: 0.1em; }
.card-s { margin: 9px 0 11px; font-size: 0.66rem; color: var(--muted); line-height: 1.4; }
.card-b { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.card-b span { display: flex; align-items: center; justify-content: center; gap: 5px; height: 30px; font-size: 0.64rem; font-weight: 600; white-space: nowrap;
  border-radius: 10px; background: #24242c; color: #d6d6dc; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.card-b .on { grid-column: 1 / -1; height: 32px; background: linear-gradient(180deg, #5ef08e, #3fd477); color: #06120a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 6px 18px -8px rgba(74, 222, 128, 0.8); }
.stop { position: absolute; right: 0; bottom: 20px; padding: 6px 12px; background: var(--red); color: #fff; font: 600 0.66rem var(--mono); text-transform: uppercase; letter-spacing: 0.06em; }

/* At-a-glance spec strip */
.spec { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; border-bottom: 1px solid var(--line); }
.spec div { padding: 20px 24px; border-right: 1px solid var(--line); }
.spec div:last-child { border-right: 0; }
.spec dt { font: 500 0.68rem var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--dim); margin-bottom: 6px; }
.spec dd { margin: 0; font: 500 1.05rem var(--mono); letter-spacing: -0.02em; }

/* Works with */
.works { padding: 40px 0 36px; border-bottom: 1px solid var(--line); text-align: center; }
.logos { list-style: none; margin: 24px 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logos li { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 6px; color: var(--c); border-right: 1px solid var(--line);
  font: 500 0.74rem var(--mono); white-space: nowrap; transition: color 0.2s, background 0.2s; }
.logos li:last-child { border-right: 0; }
.logos svg { width: 26px; height: 26px; transition: transform 0.2s; }
.logos li span { color: var(--muted); transition: color 0.2s; }
.logos li:hover { background: rgba(255, 255, 255, 0.02); }
.logos li:hover svg { transform: translateY(-2px); }
.logos li:hover span { color: var(--text); }

/* Sections */
.section { padding: 96px 48px; border-bottom: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: baseline; margin-bottom: 48px; }
.sec-head .label { padding-top: 0.9em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -0.035em; margin: 0; max-width: 18ch; }
h3 { margin: 0 0 10px; font-size: 1.08rem; letter-spacing: -0.02em; }
.section p { color: var(--muted); }

/* How it works: one request played through the three parts, on a loop */
.run { display: grid; grid-template-columns: 1fr 56px 1fr 56px 1fr; align-items: start; }
.pane { margin: 0; min-width: 0; }
.pane > :not(.pane-bar):not(figcaption) { height: 196px; border: 1px solid var(--line-2); border-top: 0; border-radius: 0 0 14px 14px; background: var(--bg-2); padding: 16px; position: relative; overflow: hidden; }
.pane-bar { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 14px 14px 0 0; background: var(--panel); font: 0.7rem var(--mono); color: var(--muted); }
.pane figcaption { margin-top: 16px; font: 600 1.05rem var(--display); letter-spacing: -0.01em; }
.pane figcaption b { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; background: var(--ember); color: #0a0a0a; font: 600 0.72rem var(--mono); vertical-align: 2px; }
.pane figcaption small { display: block; margin-top: 4px; font: 0.74rem var(--mono); color: var(--dim); letter-spacing: 0; }
.chat { display: grid; align-content: start; gap: 10px; }
.chat p { margin: 0; max-width: 85%; padding: 8px 12px; border-radius: 14px; font-size: 0.86rem; color: var(--text) !important; }
.chat .me { justify-self: end; background: var(--ember); color: #140803 !important; border-bottom-right-radius: 4px; }
.chat .ai { justify-self: start; background: #1d1d24; border-bottom-left-radius: 4px; grid-row: 2; grid-column: 1; }
.chat .think { opacity: 0; color: var(--muted) !important; }
.steps2 { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font: 0.8rem var(--mono); color: var(--text); }
.steps2 span { color: var(--ember); margin-right: 8px; }
.steps2 .ok, .steps2 .ok span { color: var(--green); }
.mini-h { margin: 0 0 12px; font: 600 0.95rem var(--display); color: var(--text) !important; }
.mini-row { display: flex; align-items: center; margin: 0 0 8px; padding: 9px 10px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); font-size: 0.84rem; color: var(--text) !important; }
.t { margin-left: auto; flex: none; width: 30px; height: 17px; border-radius: 9px; background: var(--line-2); position: relative; }
.t::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #d6d6dc; }
.t.on, .t.dnd { background: var(--green); }
.t.on::after, .t.dnd::after { transform: translateX(13px); }
.ptr { position: absolute; right: 26px; top: 108px; }
.wire2 { position: relative; height: 2px; margin-top: 126px; background: repeating-linear-gradient(90deg, var(--line-2) 0 5px, transparent 5px 10px); }
.wire2 i { position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 10px var(--ember); opacity: 0; }

/* What you get: tiles that each show their idea in a small moving picture. */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tile { padding: 24px; background: var(--bg); }
.tile h3 { margin: 18px 0 4px; }
.tile p { margin: 0; font-size: 0.95rem; }
.viz { height: 132px; display: grid; place-items: center; border: 1px solid var(--line); background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 0) 0 0 / 14px 14px, var(--bg-2); overflow: hidden; }
.viz.sm { height: 96px; width: 96px; border-radius: 20px; margin-bottom: 18px; color: var(--ember); }
.apps { display: grid; gap: 8px; width: min(220px, 90%); }
.apps span { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; padding: 6px 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.ic { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font: 700 0.65rem var(--sans); color: #0a0a0a; background: var(--c); }
.sw { margin-left: auto; width: 30px; height: 17px; border-radius: 9px; background: var(--line-2); position: relative; transition: background 0.2s; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #d6d6dc; transition: transform 0.2s; }
.sw.on { background: var(--green); }
.sw.on::after { transform: translateX(13px); }
.bigstop { padding: 12px 22px; background: var(--red); color: #fff; font: 600 0.9rem var(--mono); text-transform: uppercase; letter-spacing: 0.06em; position: relative; }
.bigstop::after { content: ""; position: absolute; inset: -6px; border: 2px solid var(--red); opacity: 0; }
.ask { width: min(220px, 90%); padding: 12px; border-radius: 14px; background: #1b1b21; border: 1px solid #2e2e37; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ask p { grid-column: 1 / -1; margin: 0 0 6px; color: var(--text) !important; font-size: 0.82rem; font-weight: 600; }
.ask span { text-align: center; padding: 6px 0; border-radius: 8px; font-size: 0.72rem; font-weight: 600; background: #26262e; color: #d6d6dc; }
.ask .yes { background: var(--green); color: #06120a; }
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; width: min(230px, 92%); }
.log li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; font-size: 0.78rem; }
.log li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log b { font: 600 0.62rem var(--mono); padding: 2px 6px; border: 1px solid; border-radius: 4px; }
.log .ai { color: var(--ember); }
.log .you { color: var(--green); }
.lane { position: relative; width: min(220px, 90%); display: flex; justify-content: space-between; align-items: center; color: var(--muted); }
.lane::before { content: ""; position: absolute; left: 36px; right: 36px; top: 50%; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 5px, transparent 5px 10px); }
.lane .file { position: absolute; left: 36px; top: 50%; margin-top: -16px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: var(--ember); color: #0a0a0a; }
.replay { display: flex; align-items: center; gap: 12px; color: var(--ember); font: 500 0.85rem var(--mono); }
.replay span { color: var(--text); padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--panel); }

/* Safety: what the AI can do with your OK, and what it never can, with the latch between them */
.rules { display: grid; grid-template-columns: 1fr 72px 1fr; align-items: stretch; margin-bottom: 28px; }
.rule { padding: 28px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--bg-2); }
.rule-h { margin: 0 0 18px; font: 600 0.78rem var(--mono); text-transform: uppercase; letter-spacing: 0.1em; }
.rule ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.rule li { display: flex; align-items: center; gap: 12px; font-size: 1.02rem; font-weight: 500; }
.rule i { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; }
.can .rule-h { color: var(--green); }
.can i { color: var(--green); background: rgba(74, 222, 128, 0.12); }
.never { border-color: rgba(255, 90, 90, 0.35); background: linear-gradient(180deg, rgba(255, 90, 90, 0.06), transparent 60%), var(--bg-2); }
.never .rule-h { color: var(--red); }
.never i { color: var(--red); background: rgba(255, 90, 90, 0.12); }
.gate { display: grid; place-items: center; color: var(--ember); position: relative; }
.gate::before { content: ""; position: absolute; top: 12%; bottom: 12%; left: 50%; width: 1px; background: linear-gradient(transparent, var(--ember), transparent); }
.gate svg { position: relative; padding: 10px; width: 54px; height: 54px; border-radius: 16px; background: var(--bg); border: 1px solid rgba(255, 106, 61, 0.5); }
.note { margin: 0; font-size: 1rem; }
.textlink { display: inline-flex; gap: 8px; font: 500 0.86rem var(--mono); color: var(--ember); text-decoration: none; }
.textlink span { transition: transform 0.15s; }
.textlink:hover span { transform: translateX(3px); }

/* Setup: each card plays its step in turn: install, deploy, connect */
.build { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.build li { padding: 18px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--bg-2); }
.build h3 { display: flex; align-items: center; gap: 10px; margin: 18px 0 6px; }
.build p { margin: 0; font-size: 0.95rem; }
.build .n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ember); color: #0a0a0a; font: 600 0.75rem var(--mono); }
.stage { height: 112px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 0) 0 0 / 14px 14px, var(--bg); }
.inst, .deploy, .conn { width: 86%; display: grid; gap: 8px; padding: 12px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line-2); font-size: 0.82rem; }
.inst b, .deploy b { font: 600 0.82rem var(--mono); }
.prog { height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.prog i { display: block; height: 100%; width: 100%; background: var(--ember); }
.inst em, .conn em { font: 600 0.72rem var(--mono); color: var(--green); }
.deploy .st { display: flex; align-items: center; gap: 8px; font: 0.74rem var(--mono); }
.deploy .st i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.deploy em { font-style: normal; }
.lbl { display: grid; }
.lbl em { grid-area: 1 / 1; }
.deploy .busy { opacity: 0; color: #f2b14c; }
.deploy .ready { color: var(--green); }
.url { display: block; overflow: hidden; white-space: nowrap; width: 26ch; max-width: 100%; font: 0.74rem var(--mono); color: var(--text); padding: 6px 8px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); box-sizing: content-box; }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 880px; margin-left: 224px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; font-weight: 500; font-size: 1.02rem; letter-spacing: -0.01em; display: flex; justify-content: space-between; gap: 24px; transition: color 0.15s; }
.faq summary:hover { color: var(--ember); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 1.1rem var(--mono); color: var(--dim); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--ember); }
.faq details p { margin: 0 0 22px; max-width: 70ch; }

/* Final call to action: the Latch mark snaps shut */
.final { padding: 112px 24px 120px; text-align: center; position: relative; overflow: hidden;
  background: radial-gradient(ellipse 60% 50% at 50% 30%, rgba(255, 106, 61, 0.12), transparent 70%); }
.snap { position: relative; width: 120px; margin: 0 auto 36px; }
.snap svg { display: block; filter: drop-shadow(0 18px 40px rgba(255, 106, 61, 0.35)); }
.snap .tile-bg { fill: #c2532d; }
.snap .hook { stroke: #fff8ee; }
.snap .pin { fill: #fff8ee; }
.click { position: absolute; right: -54px; top: 4px; font: 600 0.72rem var(--mono); color: var(--ember); text-transform: uppercase; letter-spacing: 0.12em; opacity: 0; }
.final h2 { margin: 0 auto 24px; font-size: clamp(2.4rem, 6vw, 4.4rem); max-width: 16ch; }
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 36px; padding: 0; }
.chips li { padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; font: 500 0.78rem var(--mono); color: var(--muted); }
.final .cta { justify-content: center; }
.final .label { margin-bottom: 24px; color: var(--dim); text-transform: none; letter-spacing: 0.02em; }
.foot { border-top: 1px solid var(--line); }
.foot-in { width: var(--w); margin: 0 auto; padding: 24px 0 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font: 0.74rem var(--mono); color: var(--dim); }
.foot p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }

@media (prefers-reduced-motion: no-preference) {
  .dot { animation: blink 2.4s steps(1) infinite; }
  .caret { animation: blink 1.1s steps(1) infinite; }
  .cursor { animation: glide 6s ease-in-out infinite; }
  .card { animation: pop 6s ease-in-out infinite; }
  .card-b .on { animation: press 6s ease-in-out infinite; }
  .gate svg { animation: glow 4s ease-in-out infinite; }
  /* How it works: an 8-second run-through */
  .chat .me { animation: s3 8s ease-out infinite; }
  .chat .think { animation: think 8s ease-out infinite; }
  .chat .think span { animation: blink 0.8s steps(1) infinite; }
  .chat .done { animation: s62 8s ease-out infinite; }
  .steps2 li:nth-child(1) { animation: s20 8s ease-out infinite; }
  .steps2 li:nth-child(2) { animation: s32 8s ease-out infinite; }
  .steps2 li:nth-child(3) { animation: s44 8s ease-out infinite; }
  .steps2 li:nth-child(4) { animation: s56 8s ease-out infinite; }
  .run > .wire2:nth-child(2) i { animation: w1 8s linear infinite; }
  .run > .wire2:nth-child(4) i { animation: w2 8s linear infinite; }
  .ptr { animation: ptr 8s ease-in-out infinite; }
  .t.dnd { animation: tog 8s steps(1) infinite; }
  .t.dnd::after { animation: knob2 8s steps(1) infinite; }
  @keyframes think { 0%, 9% { opacity: 0; } 11%, 59% { opacity: 1; } 61%, 100% { opacity: 0; } }
  @keyframes w1 { 0%, 10% { left: 0; opacity: 0; } 12% { opacity: 1; } 20% { left: calc(100% - 10px); opacity: 1; } 22% { opacity: 0; } 58% { left: calc(100% - 10px); opacity: 0; background: var(--green); box-shadow: 0 0 10px var(--green); } 60% { opacity: 1; background: var(--green); box-shadow: 0 0 10px var(--green); } 66% { left: 0; opacity: 1; background: var(--green); box-shadow: 0 0 10px var(--green); } 68%, 100% { left: 0; opacity: 0; } }
  @keyframes w2 { 0%, 22% { left: 0; opacity: 0; } 24% { opacity: 1; } 30% { left: calc(100% - 10px); opacity: 1; } 32% { opacity: 0; } 50% { left: calc(100% - 10px); opacity: 0; background: var(--green); box-shadow: 0 0 10px var(--green); } 52% { opacity: 1; background: var(--green); box-shadow: 0 0 10px var(--green); } 57% { left: 0; opacity: 1; background: var(--green); box-shadow: 0 0 10px var(--green); } 59%, 100% { left: 0; opacity: 0; } }
  @keyframes ptr { 0%, 28% { transform: translate(-90px, 60px); opacity: 0; } 31% { opacity: 1; } 38% { transform: none; } 40% { transform: scale(0.8); } 42%, 90% { transform: none; opacity: 1; } 95%, 100% { opacity: 0; } }
  @keyframes tog { 0% { background: var(--line-2); } 41% { background: var(--green); } 96% { background: var(--line-2); } }
  @keyframes knob2 { 0% { transform: none; } 41% { transform: translateX(13px); } 96% { transform: none; } }
  /* Setup: a 9-second loop, one card after another */
  .b2 { animation: dim2 9s steps(1) infinite; }
  .b3 { animation: dim3 9s steps(1) infinite; }
  .prog i { animation: barfill 9s ease-in-out infinite; }
  .inst em { animation: s27 9s ease-out infinite; }
  .deploy .busy { animation: busy 9s steps(1) infinite; }
  .deploy .ready { animation: ready 9s steps(1) infinite; }
  .deploy .st i { animation: lamp 9s steps(1) infinite; }
  .url { animation: typeurl 9s steps(26) infinite; }
  .conn em { animation: s88 9s ease-out infinite; }
  @keyframes dim2 { 0% { opacity: 0.4; } 33% { opacity: 1; } 97% { opacity: 0.4; } }
  @keyframes dim3 { 0% { opacity: 0.4; } 66% { opacity: 1; } 97% { opacity: 0.4; } }
  @keyframes barfill { 0%, 3% { width: 0; } 24%, 95% { width: 100%; } 100% { width: 0; } }
  @keyframes busy { 0% { opacity: 0; } 35% { opacity: 1; } 56% { opacity: 0; } }
  @keyframes ready { 0% { opacity: 0; } 56% { opacity: 1; } 97% { opacity: 0; } }
  @keyframes lamp { 0% { background: var(--line-2); } 35% { background: #f2b14c; } 56% { background: var(--green); } 97% { background: var(--line-2); } }
  @keyframes typeurl { 0%, 68% { width: 0; } 84%, 96% { width: 26ch; } 100% { width: 0; } }
  @keyframes s3 { 0%, 2% { opacity: 0; transform: translateY(5px); } 4%, 91% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
  @keyframes s20 { 0%, 19% { opacity: 0; transform: translateY(5px); } 21%, 91% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
  @keyframes s32 { 0%, 31% { opacity: 0; transform: translateY(5px); } 33%, 91% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
  @keyframes s44 { 0%, 43% { opacity: 0; transform: translateY(5px); } 45%, 91% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
  @keyframes s56 { 0%, 55% { opacity: 0; transform: translateY(5px); } 57%, 91% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
  @keyframes s62 { 0%, 61% { opacity: 0; transform: translateY(5px); } 63%, 91% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
  @keyframes s27 { 0%, 26% { opacity: 0; transform: translateY(5px); } 28%, 91% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
  @keyframes s88 { 0%, 87% { opacity: 0; transform: translateY(5px); } 89%, 91% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }

  .snap .hook { stroke-dasharray: 20; animation: hookdraw 4s cubic-bezier(0.6, 0, 0.3, 1) infinite; }
  .snap .pin { transform-origin: 16.1px 16.6px; animation: pindrop 4s cubic-bezier(0.3, 1.5, 0.5, 1) infinite; }
  .snap svg { animation: thunk 4s ease-out infinite; }
  .click { animation: clickfx 4s ease-out infinite; }
  @keyframes hookdraw { 0% { stroke-dashoffset: 20; } 30%, 88% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 20; } }
  @keyframes pindrop { 0%, 30% { transform: translateY(-14px) scale(0); } 42%, 88% { transform: none; } 100% { transform: translateY(-14px) scale(0); } }
  @keyframes thunk { 0%, 40% { transform: none; } 44% { transform: scale(0.94); } 50%, 100% { transform: none; } }
  @keyframes clickfx { 0%, 40% { opacity: 0; transform: translateY(4px); } 46%, 70% { opacity: 1; transform: none; } 80%, 100% { opacity: 0; } }
  .sw.flip { animation: flip 4s ease-in-out infinite; }
  .sw.flip::after { animation: knob 4s ease-in-out infinite; }
  .bigstop::after { animation: ring 2s ease-out infinite; }
  .ask .yes { animation: press 4s ease-in-out infinite; }
  .log li { animation: rowin 6s ease-out infinite both; }
  .log li:nth-child(2) { animation-delay: 0.6s; }
  .log li:nth-child(3) { animation-delay: 1.2s; }
  .lane .file { animation: carry 3.2s ease-in-out infinite; }
  .replay svg { animation: spin 3s linear infinite; }
  @keyframes glow { 0%, 100% { box-shadow: none; } 45% { box-shadow: 0 0 0 6px rgba(255, 106, 61, 0.12); } }
  @keyframes flip { 0%, 35% { background: var(--line-2); } 45%, 85% { background: var(--green); } 95%, 100% { background: var(--line-2); } }
  @keyframes knob { 0%, 35% { transform: none; } 45%, 85% { transform: translateX(13px); } 95%, 100% { transform: none; } }
  @keyframes ring { 0% { opacity: 0.8; transform: scale(0.9); } 100% { opacity: 0; transform: scale(1.25); } }
  @keyframes rowin { 0% { opacity: 0; transform: translateY(6px); } 10%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
  @keyframes carry { 0% { left: 36px; } 45%, 55% { left: calc(100% - 68px); } 100% { left: 36px; } }
  @keyframes spin { to { transform: rotate(360deg); } }
  .calls li { animation: line 6s steps(1) infinite both; }
  .calls li:nth-child(2) { animation-name: line2; }
  .calls li:nth-child(3) { animation-name: line3; }
  .calls li:nth-child(4) { animation-name: line4; }
  .calls li:nth-child(5) { animation-name: line5; }
  @keyframes blink { 50% { opacity: 0; } }
  /* The pointer browses, then lands on Always and presses it as the sheet is answered. */
  @keyframes glide { 0%, 100% { transform: translate(0, 0); } 22% { transform: translate(50px, 20px); } 44%, 58% { transform: translate(var(--tx), var(--ty)); } 51% { transform: translate(var(--tx), var(--ty)) scale(0.82); } 80% { transform: translate(var(--tx), var(--ty)); } }
  @keyframes press { 0%, 49% { transform: none; filter: none; } 51% { transform: scale(0.95); filter: brightness(1.15); } 54%, 100% { transform: none; filter: none; } }
  @keyframes pop { 0%, 24% { opacity: 0; transform: translateY(24px); } 34%, 62% { opacity: 1; transform: none; } 70%, 100% { opacity: 0; transform: translateY(24px); } }
  @keyframes line { 0% { opacity: 0; } 5%, 100% { opacity: 1; } }
  @keyframes line2 { 0% { opacity: 0; } 18%, 100% { opacity: 1; } }
  @keyframes line3 { 0% { opacity: 0; } 32%, 100% { opacity: 1; } }
  @keyframes line4 { 0% { opacity: 0; } 46%, 100% { opacity: 1; } }
  @keyframes line5 { 0% { opacity: 0; } 60%, 100% { opacity: 1; } }
}

@media (max-width: 1020px) {
  .run { grid-template-columns: 1fr 24px 1fr 24px 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { border-right: 0; border-bottom: 1px solid var(--line); padding: 72px 32px 56px; }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .logos li:nth-child(3n) { border-right: 0; }
  .logos li:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .sec-head { grid-template-columns: 1fr; gap: 16px; }
  .sec-head .label { padding-top: 0; }
  .faq { margin-left: 0; }
  .section { padding: 80px 32px; }
  .spec { grid-template-columns: repeat(3, 1fr); }
  .spec div:nth-child(3) { border-right: 0; }
  .spec div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .run { grid-template-columns: 1fr; gap: 28px; }
  .wire2 { display: none; }
  .build { grid-template-columns: 1fr; }
  .nav nav { display: none; }
}
@media (max-width: 760px) {
  .rules { grid-template-columns: 1fr; gap: 0; }
  .gate { height: 64px; }
  .gate::before { top: 0; bottom: 0; }
  .click { display: none; }
  .tiles { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  main { border-left: 0; border-right: 0; }
  .hero-copy { padding: 56px 0 44px; }
  .hero-visual { flex-direction: column; gap: 20px; padding: 32px 0; min-height: 0; background: none; }
  .tick { display: none; }
  .console { position: static; transform: none; width: 100%; max-width: 360px; }
  .phone { margin-left: 0; }
  .spec { grid-template-columns: 1fr 1fr; }
  .spec div { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line); padding: 16px; }
  .spec div:nth-child(2n) { border-right: 0 !important; }
  .spec div:last-child { grid-column: 1 / -1; border-bottom: 0; border-right: 0 !important; }
  .logos li { font-size: 0.66rem; padding: 18px 2px; }
  .section { padding: 64px 0; }
  .final { padding: 88px 0; }
  .btn, .get, .src { width: 100%; justify-content: center; }
  .nav .btn { width: auto; }
}

/* ---------- Mochi, the mascot (site/pet.js builds it) ---------- */
.pet { --gx: 0; --gy: 0; --dir: 1; position: fixed; left: 0; bottom: 10px; z-index: 30; width: 96px; pointer-events: none; transition: opacity 0.3s; }
.pet-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; perspective: 400px; -webkit-tap-highlight-color: transparent; }
.pet-btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 24px; }
.pet-svg { display: block; width: 100%; height: auto; overflow: visible; }
.pet-svg * { transform-box: view-box; }
.pet :is(.p-rig, .p-inner) { transform-origin: 60px 124px; }
.pet .p-shadow { transform-origin: 60px 126px; }
.pet .p-tail { transform-origin: 88px 112px; }
.pet .p-ear-l { transform-origin: 42px 64px; } .pet .p-ear-r { transform-origin: 78px 64px; }
.pet .p-arm-l { transform-origin: 25px 90px; transition: transform 0.25s; }
.pet .p-arm-r { transform-origin: 95px 90px; transition: transform 0.25s; }
.pet .p-foot-l { transform-origin: 46px 121px; } .pet .p-foot-r { transform-origin: 74px 121px; }
.pet .p-look { transform: translate(calc(var(--gx) * 1px), calc(var(--gy) * 1px)); transition: transform 0.16s ease-out; }
.pet .p-face { transform: translate(calc(var(--gx) * 0.35px), calc(var(--gy) * 0.3px)); transition: transform 0.2s ease-out; }
/* Upper eyelids rest just over the iris, like real eyes; they drop to blink and sleep. */
.pet .p-lid { transform: translateY(2px); transition: transform 0.18s ease-out; }
.pet .p-brow { transition: transform 0.25s ease-out; }
.pet .p-brow-l { transform-origin: 44px 64px; } .pet .p-brow-r { transform-origin: 76px 64px; }
.pet .p-pupil { transform-box: fill-box; transform-origin: center; transition: transform 0.3s; }
.pet .m { opacity: 0; transition: opacity 0.1s; }
.pet .m-smile { opacity: 1; }
.pet .p-sign { opacity: 0; transform-origin: 104px 78px; transform: scale(0.2) translateY(20px); transition: transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1), opacity 0.2s; }
.pet .p-zzz, .pet .p-ripple { opacity: 0; }
.pet .p-ripple { transform-origin: 116px 92px; }
.pet .p-cheek { transition: opacity 0.3s; opacity: 0.7; }

/* Expressions */
.pet:is(.is-happy, .is-happy-near, .is-love, .is-dance, .is-wave, .is-hop, .is-spin, .is-wag) .m-smile { opacity: 0; }
.pet:is(.is-happy, .is-happy-near, .is-love, .is-dance, .is-wave, .is-hop, .is-spin, .is-wag) .m-open { opacity: 1; }
.pet:is(.is-wow, .is-yawn, .is-dizzy) :is(.m-smile, .m-open) { opacity: 0; }
.pet:is(.is-wow, .is-yawn, .is-dizzy) .m-o { opacity: 1; }
.pet.is-sleep :is(.m-smile, .m-open, .m-o) { opacity: 0; }
.pet.is-sleep .m-flat { opacity: 1; }
.pet:is(.is-happy-near, .is-love) .p-pupil { transform: scale(1.15); }
.pet.is-wow .p-pupil { transform: scale(0.8); }
.pet.is-love .p-cheek { opacity: 1; }
.pet:is(.is-happy, .is-happy-near, .is-love, .is-dance) .p-lid { transform: translateY(4px); }
.pet:is(.is-happy, .is-happy-near, .is-love, .is-dance) .p-brow { transform: translateY(-1.5px); }
.pet:is(.is-wow, .is-stop) .p-lid { transform: translateY(-2px); }
.pet.is-wow .p-brow { transform: translateY(-4px); }
.pet.is-look .p-brow-l { transform: translateY(-2.5px) rotate(-6deg); }
.pet.is-dizzy .p-brow-l { transform: rotate(10deg); } .pet.is-dizzy .p-brow-r { transform: rotate(-10deg); }
.pet.is-yawn .p-lid { transform: translateY(10px); transition-duration: 0.5s; }
.pet.is-yawn .p-brow-l { transform: rotate(-8deg); } .pet.is-yawn .p-brow-r { transform: rotate(8deg); }
.pet.is-blink .p-lid { transform: translateY(19px); transition-duration: 0.06s; }
.pet.is-sleep .p-lid { transform: translateY(19px); transition-duration: 0.6s; }
.pet.is-sleep .p-brow { transform: translateY(1.5px); }

/* Speech bubble */
.pet-say { position: absolute; bottom: calc(100% + 4px); left: 4px; width: max-content; max-width: min(240px, calc(100vw - 24px)); padding: 8px 11px;
  font: 500 0.74rem/1.45 var(--mono); color: var(--text); background: #121216; border: 1px solid var(--line-2); border-radius: 10px 10px 10px 2px;
  box-shadow: 0 12px 30px -12px #000; opacity: 0; transform: translateY(6px) scale(0.96); transform-origin: bottom left; transition: opacity 0.18s, transform 0.18s; }
.pet-say[data-side="right"] { left: auto; right: 4px; border-radius: 10px 10px 2px 10px; transform-origin: bottom right; }
.pet-say.on { opacity: 1; transform: none; }
.pet-say.typing .typed::after { content: ""; display: inline-block; width: 0.55em; height: 1em; margin-left: 2px; vertical-align: -0.15em; background: var(--text); }
.pet-x { position: absolute; top: 2px; right: -4px; width: 22px; height: 22px; padding: 0; border: 1px solid var(--line-2); border-radius: 50%;
  background: #121216; color: var(--muted); font: 14px/1 var(--sans); cursor: pointer; pointer-events: auto; opacity: 0; transition: opacity 0.15s; }
.pet:hover .pet-x, .pet:focus-within .pet-x { opacity: 1; }
.pet-x:hover { color: var(--text); border-color: var(--muted); }
.pet-say .rest { visibility: hidden; }
.pet-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.pet-home { position: fixed; right: 12px; bottom: 12px; z-index: 30; display: none; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 2px;
  background: #121216; color: var(--muted); font: 0.7rem var(--mono); cursor: pointer; }
.pet-home.on { display: block; }
.pet-home:hover { color: var(--text); border-color: var(--muted); }
.pet.is-away { opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0s 0.3s; }
.pet-heart { position: absolute; left: 50%; top: 18%; width: 11px; height: 11px; margin-left: -5px; pointer-events: none; opacity: 0;
  background: #ff9db3; transform: rotate(45deg); border-radius: 2px; }
.pet-heart::before, .pet-heart::after { content: ""; position: absolute; width: 11px; height: 11px; border-radius: 50%; background: inherit; }
.pet-heart::before { left: -5.5px; } .pet-heart::after { top: -5.5px; }

@media (prefers-reduced-motion: no-preference) {
  .pet .p-inner { animation: p-breathe 3.2s ease-in-out infinite; }
  .pet .p-tail { animation: p-tail 3.8s ease-in-out infinite; }
  .pet.is-enter .pet-btn { animation: p-enter 0.85s cubic-bezier(0.3, 1.4, 0.5, 1); }
  .pet.is-hop .p-rig { animation: p-hop 0.9s ease-in-out; }
  .pet.is-hop .p-shadow { animation: p-shadow 0.9s ease-in-out; }
  .pet.is-hop :is(.p-ear-l, .p-ear-r) { animation: p-flop 0.9s ease-in-out; }
  .pet.is-squish .p-rig { animation: p-squish 0.38s ease-out; }
  .pet.is-wave .p-arm-r { animation: p-wave 1.7s ease-in-out; }
  .pet.is-walk .p-rig { animation: p-bob 0.34s ease-in-out infinite alternate; }
  .pet.is-walk .p-foot-l { animation: p-step 0.34s ease-in-out infinite alternate; }
  .pet.is-walk .p-foot-r { animation: p-step 0.34s ease-in-out infinite alternate-reverse; }
  .pet.is-walk .p-arm-l { animation: p-swing 0.34s ease-in-out infinite alternate; }
  .pet.is-walk .p-arm-r { animation: p-swing 0.34s ease-in-out infinite alternate-reverse; }
  .pet:is(.is-walk, .is-wag, .is-love) .p-tail { animation: p-wag 0.32s ease-in-out infinite alternate; }
  .pet.is-wag .p-ear-l { animation: p-twitch-l 0.5s ease-in-out 3; }
  .pet.is-wag .p-ear-r { animation: p-twitch-r 0.5s ease-in-out 3 0.12s; }
  .pet.is-wag .p-rig { animation: p-sway 0.75s ease-in-out 2; }
  .pet.is-spin .pet-svg { animation: p-spin 0.95s cubic-bezier(0.5, 0, 0.3, 1); }
  .pet.is-dance .p-rig { animation: p-dance 0.5s ease-in-out 4; }
  .pet.is-dance .p-arm-l { animation: p-cheer-l 0.5s ease-in-out 4; }
  .pet.is-dance .p-arm-r { animation: p-cheer-r 0.5s ease-in-out 4 0.25s; }
  .pet.is-stop .p-arm-r { transform: rotate(-155deg); }
  .pet.is-stop .p-sign { opacity: 1; transform: none; }
  .pet.is-stop .p-rig { animation: p-proud 2.6s ease-in-out; }
  .pet.is-tap .p-arm-r { animation: p-point 1.4s ease-in-out; }
  .pet.is-tap .p-ripple { animation: p-ripple 0.7s ease-out 2 0.25s; }
  .pet.is-yawn .p-rig { animation: p-stretch 1.7s ease-in-out; }
  .pet.is-wow .p-rig { animation: p-wow 0.7s ease-out; }
  .pet.is-wow :is(.p-ear-l, .p-ear-r) { animation: p-flop 0.7s ease-out; }
  .pet.is-sleep .p-inner { animation: p-snore 3.6s ease-in-out infinite; }
  .pet.is-sleep .p-tail { animation: none; }
  .pet.is-sleep .p-rig { transform: translateY(2px); }
  .pet.is-sleep .p-zzz { animation: p-zzz 2.4s ease-in-out infinite; }
  .pet.is-dizzy .p-look { animation: p-dizzy 0.45s linear 4; }
  .pet.is-dizzy .p-rig { animation: p-wobble 1.8s ease-in-out; }
  .pet-heart { animation: p-heart 1.2s ease-out forwards; }
  .pet-say.typing .typed::after { animation: blink 0.9s steps(1) infinite; }

  @keyframes p-breathe { 0%, 100% { transform: none; } 50% { transform: scale(1.02, 0.98); } }
  @keyframes p-snore { 0%, 100% { transform: scale(1.03, 0.95); } 50% { transform: scale(1.07, 0.92); } }
  @keyframes p-tail { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-8deg); } }
  @keyframes p-wag { from { transform: rotate(10deg); } to { transform: rotate(-16deg); } }
  @keyframes p-enter { 0% { transform: translateY(140%) scale(0.6, 1.3); } 60% { transform: translateY(-8%) scale(1.1, 0.9); } 80% { transform: scale(0.96, 1.04); } 100% { transform: none; } }
  @keyframes p-hop { 0% { transform: none; } 16% { transform: scale(1.16, 0.82); } 40% { transform: translateY(-36px) scale(0.9, 1.12); }
    58% { transform: translateY(-40px) scale(1, 1); } 82% { transform: scale(1.16, 0.84); } 92% { transform: scale(0.97, 1.03); } 100% { transform: none; } }
  @keyframes p-shadow { 0%, 100% { transform: none; opacity: 0.6; } 50% { transform: scale(0.55); opacity: 0.2; } }
  @keyframes p-flop { 0%, 100% { transform: none; } 40% { transform: scaleY(1.12); } 80% { transform: scaleY(0.88); } }
  @keyframes p-twitch-l { 0%, 100% { transform: none; } 40% { transform: rotate(-14deg); } }
  @keyframes p-twitch-r { 0%, 100% { transform: none; } 40% { transform: rotate(14deg); } }
  @keyframes p-sway { 0%, 100% { transform: none; } 25% { transform: rotate(-5deg); } 75% { transform: rotate(5deg); } }
  @keyframes p-squish { 0% { transform: none; } 35% { transform: scale(1.18, 0.8); } 70% { transform: scale(0.94, 1.08); } 100% { transform: none; } }
  @keyframes p-wave { 0%, 100% { transform: none; } 15% { transform: rotate(-150deg); } 30% { transform: rotate(-115deg); } 45% { transform: rotate(-155deg); }
    60% { transform: rotate(-115deg); } 75% { transform: rotate(-150deg); } }
  @keyframes p-bob { from { transform: rotate(calc(var(--dir) * 3deg)); } to { transform: translateY(-4px) rotate(calc(var(--dir) * 5deg)) scale(0.98, 1.02); } }
  @keyframes p-step { from { transform: translateY(0); } to { transform: translateY(-4px) rotate(calc(var(--dir) * -12deg)); } }
  @keyframes p-swing { from { transform: rotate(18deg); } to { transform: rotate(-18deg); } }
  @keyframes p-spin { 0% { transform: none; } 20% { transform: scale(1.08, 0.9); } 100% { transform: rotateY(360deg); } }
  @keyframes p-dance { 0%, 100% { transform: rotate(-9deg) translateY(0); } 50% { transform: rotate(9deg) translateY(-7px) scale(0.97, 1.04); } }
  @keyframes p-cheer-l { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(130deg); } }
  @keyframes p-cheer-r { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-130deg); } }
  @keyframes p-proud { 0%, 100% { transform: none; } 15% { transform: translateY(-6px) scale(0.97, 1.04); } 30%, 85% { transform: scale(1.02, 0.98); } }
  @keyframes p-point { 0%, 100% { transform: none; } 20%, 80% { transform: rotate(-70deg); } 35%, 62% { transform: rotate(-78deg) translateX(3px); } }
  @keyframes p-ripple { 0% { opacity: 0.9; transform: scale(0.3); } 100% { opacity: 0; transform: scale(2.6); } }
  @keyframes p-stretch { 0%, 100% { transform: none; } 35%, 65% { transform: scale(0.92, 1.12); } 80% { transform: scale(1.06, 0.95); } }
  @keyframes p-wow { 0% { transform: none; } 30% { transform: translateY(-14px) scale(0.9, 1.12); } 65% { transform: scale(1.1, 0.9); } 100% { transform: none; } }
  @keyframes p-zzz { 0% { opacity: 0; transform: translate(0, 6px); } 30%, 70% { opacity: 1; } 100% { opacity: 0; transform: translate(6px, -8px); } }
  @keyframes p-dizzy { 0% { transform: translate(3px, 0); } 25% { transform: translate(0, 3px); } 50% { transform: translate(-3px, 0); } 75% { transform: translate(0, -3px); } 100% { transform: translate(3px, 0); } }
  @keyframes p-wobble { 0%, 100% { transform: none; } 20% { transform: rotate(-10deg); } 40% { transform: rotate(8deg); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(4deg); } }
  @keyframes p-heart { 0% { opacity: 0; transform: translate(0, 0) rotate(45deg) scale(0.4); } 20% { opacity: 1; }
    100% { opacity: 0; transform: translate(var(--dx), -70px) rotate(45deg) scale(1); } }
}
@media (max-width: 640px) {
  .pet { width: 72px; bottom: 6px; }
  .pet-say { font-size: 0.7rem; }
}
@media print { .pet, .pet-home { display: none !important; } }

/* Benchmark and security pages: plain comparison tables, scrolling sideways on small screens. */
.page-lede { max-width: 62ch; margin: 0; font-size: 1.1rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg-2); }
.table-wrap:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
.data { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.95rem; }
.data caption { text-align: left; padding: 14px 16px; font: 500 0.72rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.data th, .data td { padding: 12px 16px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.data thead th { font: 500 0.78rem var(--mono); color: var(--muted); background: var(--panel); }
.data tbody th { font-weight: 600; color: var(--text); width: 22%; }
.data td { color: var(--muted); }
.data td.yes { color: var(--green); }
.data td.open { color: var(--dim); }
.stack { display: grid; gap: 28px; }
.sources { font-size: 0.88rem; color: var(--dim); }
@media (max-width: 760px) {
  .data th, .data td { padding: 10px 12px; }
}
