/* Devboot One landing preview. Mobile first: the base rules are the phone; min-width widens.
   Motion: transform and opacity only, driven by CSS scroll timelines where supported and by
   IntersectionObserver class toggles elsewhere. No scroll handler, no blur or backdrop filters. */

@font-face { font-family: "Schibsted Grotesk"; src: url("schibsted-grotesk-latin.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

/* ---------- Tokens: dark is the product's identity; light follows the system or the site key ---------- */
:root {
  --bg: #050607;
  --s1: #121416;
  --s2: #1f2125;
  --line: rgba(255, 255, 255, 0.12);
  --t: #f5f5f7;
  --t2: #a1a1a6;
  --t3: #6e6e73;
  --acc: #8af7c8;          /* mint: fills and glow */
  --acc-t: #8af7c8;        /* mint as text */
  --on-acc: #050607;
  --glow: rgba(138, 247, 200, 0.2);
  --pend: #f2c14e;
  --warn: #ffb347;
  --bad: #ff6b6b;
  --bub-u: #8af7c8;
  --bub-u-t: #050607;
  --wm-light: none;
  --wm-dark: block;
  --f: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --g: max(16px, env(safe-area-inset-left, 0px));
  --gr: max(16px, env(safe-area-inset-right, 0px));
  --safe-b: env(safe-area-inset-bottom, 0px);
  --dock: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f5f5f7; --s1: #ffffff; --s2: #e9e9ee; --line: rgba(0, 0, 0, 0.14);
    --t: #1d1d1f; --t2: #55555c; --t3: #6e6e73;
    --acc: #0a7d55; --acc-t: #0a7d55; --on-acc: #ffffff; --glow: rgba(10, 125, 85, 0.12);
    --pend: #7a5200; --warn: #b45309; --bad: #c62828; --bub-u: #0a7d55; --bub-u-t: #ffffff;
    --wm-light: block; --wm-dark: none; color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f5f5f7; --s1: #ffffff; --s2: #e9e9ee; --line: rgba(0, 0, 0, 0.14);
  --t: #1d1d1f; --t2: #55555c; --t3: #6e6e73;
  --acc: #0a7d55; --acc-t: #0a7d55; --on-acc: #ffffff; --glow: rgba(10, 125, 85, 0.12);
  --pend: #7a5200; --warn: #b45309; --bad: #c62828; --bub-u: #0a7d55; --bub-u-t: #ffffff;
  --wm-light: block; --wm-dark: none; color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--t);
  font: 400 1rem/1.5 var(--f); -webkit-font-smoothing: antialiased;
  overflow-x: clip; padding-bottom: calc(var(--dock) + var(--safe-b) + 24px);
}
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--acc-t); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--g); top: -80px; z-index: 100; padding: 12px 16px; background: var(--acc); color: var(--on-acc); font-weight: 700; border-radius: 8px; }
.skip:focus { top: 8px; }

/* ---------- Preview banner and header ---------- */
.proto {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 16px;
  padding: 8px var(--gr) 8px var(--g); background: var(--s1); border-bottom: 1px solid var(--line);
  font-size: 0.8125rem; line-height: 1.35; color: var(--t2);
}
.proto b { color: var(--t); }
.proto-a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--acc-t); }

.bar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px;
  min-height: 56px; padding: 0 var(--gr) 0 var(--g); background: var(--bg); border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; margin-right: auto; }
.wm { width: 108px; height: auto; }
.wm--on-light { display: var(--wm-light); }
.wm--on-dark { display: var(--wm-dark); }
.brand-one { font-weight: 800; font-size: 1.0625rem; letter-spacing: -0.03em; color: var(--acc-t); }
.bar-nav { display: none; gap: 24px; font-size: 0.9375rem; }
.bar-nav a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; text-decoration: none; color: var(--t2); }
.bar-nav a:hover { color: var(--t); }
.theme {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 980px; background: transparent; font-size: 0.875rem; font-weight: 600;
}
.theme:hover { background: var(--s2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  border-radius: 980px; border: 1px solid transparent; font-size: 1rem; font-weight: 700; text-decoration: none;
  transition: transform 0.12s var(--ease), background-color 0.12s;
}
.btn:active { transform: scale(0.97); }
.btn-p { background: var(--acc); color: var(--on-acc); }
.btn-s { background: transparent; color: var(--t); border-color: var(--line); }
.btn-s:hover { background: var(--s2); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 0.9375rem; }
.ul {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none;
  color: var(--t); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.ul:hover { color: var(--acc-t); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow-x: clip; padding: 40px var(--gr) 56px var(--g); max-width: 1120px; margin: 0 auto; }
/* Two mint glows drifting behind the hero. Centred with left/width (not transform) so transform stays free to animate. */
.hero::before {
  content: ""; position: absolute; z-index: -1; left: calc(50% - min(450px, 80vw)); top: -40px; width: min(900px, 160vw); height: 520px;
  background: radial-gradient(closest-side, var(--glow), transparent 75%); pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; z-index: -1; right: 0; top: 180px; width: min(640px, 110vw); height: min(640px, 110vw);
  background: radial-gradient(closest-side, var(--glow), transparent 72%); pointer-events: none;
}
.lockup { line-height: 1; }
.lk-a { display: block; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.03em; color: var(--t2); }
.lk-b { display: block; padding: 0 0.04em 0.1em 0; font-size: clamp(6.5rem, 34vw, 18rem); line-height: 0.82; font-weight: 800; letter-spacing: -0.06em; color: var(--t); }
/* Each mask clips its line; the letters travel inside it. The gradient lives on the letters because
   background-clip:text does not follow children that are transformed. */
.lk-m { display: block; overflow: hidden; padding: 0.04em 0.06em 0.1em 0; margin: -0.04em 0 -0.1em; }
.lk-i { display: inline-block; }
.lk-b .ch {
  display: inline-block; padding-bottom: 0.1em; margin-bottom: -0.1em;
  background: linear-gradient(180deg, var(--t) 35%, var(--t3) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero h1 { margin-top: 20px; font-size: clamp(2rem, 8.4vw, 4.25rem); line-height: 1.04; font-weight: 800; letter-spacing: -0.04em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--acc-t); }
.lead { margin-top: 20px; max-width: 40rem; font-size: 1.125rem; line-height: 1.5; color: var(--t2); }
.cta { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.inv { margin-top: 8px; }
/* Word masks (also used by the section headings): the word rises out of its own box */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.08em 0.14em 0; margin: 0 0.02em -0.14em 0; }
.w > span { display: inline-block; }
/* Eyebrow typed one character at a time */
.ty { display: inline; }
.ty .tw { display: inline-block; white-space: nowrap; }
.ty .tw > span { display: inline-block; position: relative; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Demo: three acts, each with its own frame of the same scene ---------- */
.demo, .pilot { max-width: 1120px; margin: 0 auto; padding: 56px var(--gr) 56px var(--g); }
.demo h2, .pilot h2 { font-size: clamp(1.875rem, 7vw, 3.5rem); line-height: 1.05; font-weight: 800; letter-spacing: -0.04em; text-wrap: balance; }
.acts { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 56px; }
.act { display: grid; gap: 20px; }
.n { font-size: 0.9375rem; font-weight: 700; color: var(--acc-t); letter-spacing: 0.08em; }
.act h3 { margin-top: 4px; font-size: clamp(2.75rem, 13vw, 5.5rem); line-height: 0.95; font-weight: 800; letter-spacing: -0.055em; overflow: hidden; padding: 0 0.08em 0.12em 0; margin-right: -0.08em; margin-bottom: -0.12em; }
.act h3 > span { display: block; }
.act-t p:last-child { margin-top: 12px; max-width: 30rem; font-size: 1.125rem; color: var(--t2); }

.scene {
  display: flex; flex-direction: column; gap: 14px; padding: 16px; width: 100%; min-width: 0; aspect-ratio: 5 / 4;
  background: var(--s1); border: 1px solid var(--line); border-radius: 20px;
}
/* the frames are windows, like the dashboard under the hero: wider than tall, with the three lights */
.scene::before, .lights i { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.scene::before { margin-bottom: 2px; box-shadow: 16px 0 0 #febc2e, 32px 0 0 #28c840; }
.bub { max-width: 88%; padding: 12px 16px; font-size: 1rem; line-height: 1.4; }
.bub-u { align-self: flex-end; background: var(--bub-u); color: var(--bub-u-t); border-radius: 18px 18px 6px 18px; font-weight: 500; }
.dots { display: flex; gap: 6px; align-self: flex-start; padding: 14px 16px; background: var(--s2); border-radius: 18px 18px 18px 6px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--t3); }
.tbl { width: 100%; border-collapse: collapse; font-size: 0.875rem; background: var(--s2); border-radius: 14px; overflow: hidden; }
.tbl th { padding: 10px 8px; text-align: left; font-size: 0.8125rem; font-weight: 700; color: var(--t2); border-bottom: 1px solid var(--line); }
.tbl td { padding: 12px 8px; border-bottom: 1px solid var(--line); }
.tbl tr:last-child td { border-bottom: 0; }
.r { text-align: right !important; white-space: nowrap; }
.tbl tfoot th, .tbl tfoot td { padding: 12px 8px; border-top: 1px solid var(--line); font-weight: 700; text-align: left; }
.tbl tfoot td.r { text-align: right; }
.confirm { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--s2); border-radius: 16px; border: 1px solid var(--line); }
.confirm .k { font-size: 0.8125rem; font-weight: 700; color: var(--acc-t); letter-spacing: 0.04em; text-transform: uppercase; }
.confirm .act-do { font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
.kv { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: 0.9375rem; }
.kv dt { color: var(--t2); } .kv dd { margin: 0; font-weight: 600; }
.row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.done { margin-top: 4px; padding: 12px 14px; border-radius: 12px; background: var(--s1); border: 1px solid var(--acc-t); font-weight: 600; }

/* ---------- Pilot ---------- */
.pilot { border-top: 1px solid var(--line); }
.pilot > p:not(.alt) { margin-top: 16px; max-width: 34rem; font-size: 1.125rem; color: var(--t2); }
.pilot .cta { margin-top: 28px; }
.alt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; margin-top: 12px; }

.foot { max-width: 1120px; margin: 0 auto; padding: 24px var(--gr) 24px var(--g); border-top: 1px solid var(--line); }

/* ---------- Chat dock (fixed, opaque: no backdrop filter, so scrolling stays on the compositor) ---------- */
.dock {
  position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 8px;
  width: 100%; max-width: 640px; margin: 0 auto; padding: 0 max(12px, env(safe-area-inset-right, 0px)) calc(10px + var(--safe-b)) max(12px, env(safe-area-inset-left, 0px));
  pointer-events: none;
}
.dock > * { pointer-events: auto; }
.ask {
  display: flex; align-items: center; gap: 8px; margin: 0; padding: 6px 6px 6px 18px;
  background: var(--s1); border: 1px solid var(--line); border-radius: 980px; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
.ask input { flex: 1 1 0; width: 0; min-width: 0; min-height: 44px; border: 0; outline: 0; background: transparent; color: var(--t); font: inherit; font-size: 1rem; text-overflow: ellipsis; }
.ask input::placeholder { color: var(--t2); opacity: 1; }
.ask:focus-within { border-color: var(--acc-t); outline: 2px solid var(--acc-t); outline-offset: 2px; }
.send { flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--acc); color: var(--on-acc); }
.chat {
  display: flex; flex-direction: column; max-height: min(68svh, 520px);
  background: var(--s1); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45); overflow: hidden;
  animation: pop 0.16s var(--ease) both;
}
.chat[hidden] { display: none; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.chat-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line); }
.chat-h div { display: flex; flex-direction: column; line-height: 1.25; }
.chat-h b { font-size: 0.9375rem; }
.chat-h span { font-size: 0.8125rem; color: var(--t2); font-weight: 600; }
.chat-min { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--s2); }
.log { flex: 1; min-height: 120px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: var(--s2); font-size: 0.9375rem; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; animation: pop 0.16s var(--ease) both; }
.msg-u { align-self: flex-end; background: var(--bub-u); color: var(--bub-u-t); border-radius: 18px 18px 6px 18px; }
.msg a { color: inherit; font-weight: 700; }
.card { align-self: stretch; padding: 14px; border: 1px solid var(--acc-t); border-radius: 16px; background: var(--bg); animation: pop 0.16s var(--ease) both; }
.card h4 { margin: 0 0 8px; font-size: 0.8125rem; font-weight: 700; color: var(--acc-t); letter-spacing: 0.04em; text-transform: uppercase; }
.card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 0.875rem; }
.card dt { color: var(--t2); } .card dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.card .row .btn { min-height: 44px; padding: 0 16px; font-size: 0.875rem; }
.card[data-closed] .btn { opacity: 0.45; pointer-events: none; }
.chips { display: flex; gap: 8px; padding: 0 16px 12px; overflow-x: auto; }
.chips[hidden] { display: none; }
.chips button { flex: none; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 980px; background: transparent; font-size: 0.875rem; }
.chips button:hover { background: var(--s2); }

/* ---------- WhatsApp toast (prototype: shows the composed link, never opens it) ---------- */
.toast {
  position: fixed; z-index: 60; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--dock) + var(--safe-b) + 12px); width: min(560px, calc(100% - 24px)); padding: 14px 16px;
  background: var(--t); color: var(--bg); border-radius: 16px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4); font-size: 0.875rem;
}
.toast[hidden] { display: none; }
.toast-h { font-weight: 700; margin-bottom: 6px; }
.toast-link { display: block; font: 500 0.75rem/1.45 ui-monospace, "SFMono-Regular", Menlo, monospace; word-break: break-all; }
.toast-n { margin-top: 6px; font-weight: 700; }
.toast-x { margin-top: 2px; min-height: 44px; padding: 0; border: 0; background: none; font-weight: 700; text-decoration: underline; }
.toast :focus-visible { outline-color: var(--bg); }


/* ---------- Banner is one discreet line; hero eyebrow ---------- */
.eyebrow { margin-bottom: 8px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--acc-t); }
.mail { font-size: 0.9375rem; color: var(--t2); }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; }
.foot p { width: 100%; font-size: 0.875rem; color: var(--t2); }

/* ---------- Canvas sections: shared ---------- */
.sec { padding: 64px 0; }
.band { background: var(--s1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--gr) 0 var(--g); }
.sec-h { margin-bottom: 32px; }
.eyebrow-s { margin-bottom: 10px; font-size: 1.0625rem; font-weight: 700; color: var(--acc-t); }
.sec h2 { font-size: clamp(2rem, 7.4vw, 4.25rem); line-height: 1.03; font-weight: 800; letter-spacing: -0.045em; text-wrap: balance; }
.sec-h p:last-child { margin-top: 16px; max-width: 40rem; font-size: 1.0625rem; color: var(--t2); }
.segs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.segs button { min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 980px; background: transparent; font-size: 0.9375rem; font-weight: 600; color: var(--t2); transition: background-color 0.12s; }
.segs button[aria-pressed="true"] { background: var(--t); color: var(--bg); border-color: var(--t); }
.panel { padding: 18px; background: var(--bg); border: 1px solid var(--line); border-radius: 24px; }
.band .panel { background: var(--bg); }
.p-top { display: flex; flex-direction: column; gap: 6px; }
.p-top h3 { font-size: 1.5rem; line-height: 1.15; font-weight: 800; letter-spacing: -0.03em; }
.p-insight { color: var(--acc-t); font-weight: 600; font-size: 1.0625rem; }
.mets { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 8px; margin-top: 18px; }
.met { padding: 12px; background: var(--s2); border-radius: 16px; }
.met small { display: block; font-size: 0.8125rem; color: var(--t2); }
.met b { display: block; margin-top: 2px; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em; }
.rows { margin-top: 12px; }
.rw { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.rw .a { grid-column: 1; grid-row: 1; font-weight: 600; }
.rw .b { grid-column: 1; grid-row: 2; color: var(--t2); font-size: 0.9375rem; }
.rw .c { grid-column: 2; grid-row: 1; font-weight: 700; text-align: right; white-space: nowrap; }
.rw .meter { grid-column: 1 / -1; grid-row: 2; height: 8px; border-radius: 99px; background: var(--s2); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 99px; background: var(--c, var(--acc)); transform-origin: left; transform: scaleX(var(--p, 1)); }
.pill { display: inline-flex; align-items: center; min-height: 44px; margin-top: 18px; padding: 0 20px; border-radius: 980px; background: var(--t); color: var(--bg); font-weight: 700; font-size: 0.9375rem; }
.pill-o { margin: 0; min-height: 40px; padding: 0 16px; background: transparent; color: var(--t); border: 1px solid var(--line); font-weight: 500; font-size: 0.875rem; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.askline { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--s2); border-radius: 16px; }
.askline svg { flex: none; color: var(--acc-t); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tags span { padding: 5px 12px; border-radius: 980px; background: var(--s2); font-size: 0.8125rem; color: var(--t2); }
.chart { display: flex; align-items: flex-end; gap: 8px; height: 200px; margin-top: 18px; padding: 0 2px; }
.chart > div { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; }
.chart i { display: block; width: 100%; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, var(--acc), color-mix(in srgb, var(--acc) 45%, var(--bg))); transform-origin: bottom; }
.chart span { font-size: 0.6875rem; color: var(--t2); }
.askbub { display: inline-block; margin-top: 12px; padding: 12px 16px; background: var(--bub-u); color: var(--bub-u-t); border-radius: 18px 18px 18px 6px; font-weight: 500; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(var(--p, 1)); } }
@keyframes growy { from { transform: scaleY(0); } to { transform: none; } }

.bub-b { align-self: flex-start; background: var(--s2); border-radius: 18px 18px 18px 6px; }
.bub-ok { align-self: flex-start; background: color-mix(in srgb, var(--acc) 22%, var(--bg)); border-radius: 18px 18px 18px 6px; max-width: 92%; }
.scene .bub-b { max-width: 92%; }
.agent { display: grid; gap: 20px; }
.agent-chat { display: flex; flex-direction: column; gap: 12px; padding: 18px; background: var(--bg); border: 1px solid var(--line); border-radius: 24px; }
.agent-act { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.steps li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.steps li.cur { border-color: var(--acc-t); }
.steps .d { flex: none; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--s2); font-size: 0.875rem; font-weight: 700; color: var(--t2); }
.steps .ok .d, .steps .cur .d { background: var(--acc); color: var(--on-acc); }
.steps .l { font-weight: 600; }
.steps .s { margin-left: auto; font-size: 0.8125rem; color: var(--t2); text-align: right; }
.trust { display: grid; gap: 14px; margin-top: 28px; }
.trust article { padding: 24px; background: var(--bg); border: 1px solid var(--line); border-radius: 22px; }
.trust svg { color: var(--acc-t); }
.trust h3 { margin: 16px 0 8px; font-size: 1.25rem; letter-spacing: -0.02em; }
.trust p { color: var(--t2); line-height: 1.5; }
.wa { display: grid; gap: 28px; align-items: center; }
.phone { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 30px; background: var(--s2); border: 1px solid var(--line); }
.wb { align-self: flex-start; max-width: 88%; padding: 11px 15px; border-radius: 18px 18px 18px 6px; background: var(--bg); line-height: 1.4; }
.wb-u { align-self: flex-end; background: var(--bub-u); color: var(--bub-u-t); border-radius: 18px 18px 6px 18px; }
@media (min-width: 720px) {
  .sec { padding: 96px 0; }
  .sec-h { text-align: center; } .sec-h p:last-child { margin-left: auto; margin-right: auto; }
  .segs { justify-content: center; }
  .panel { padding: 32px; }
  .met { padding: 14px 16px; } .met b { font-size: 1.5rem; }
  .rw { grid-template-columns: 1fr auto auto; column-gap: 24px; }
  .rw .b { grid-column: 2; grid-row: 1; } .rw .c, .rw .c.pc { grid-column: 3; grid-row: 1; }
  .rw .meter { grid-column: 2; grid-row: 1; width: 220px; }
  .trust { grid-template-columns: repeat(3, 1fr); }
  .agent { grid-template-columns: 1.1fr 1fr; align-items: stretch; }
}
@media (min-width: 1024px) { .wa { grid-template-columns: 1fr 1fr; } .wa .sec-h { text-align: left; margin: 0; } .wa .sec-h p:last-child { margin-left: 0; } }

/* ---------- Structure added for the motion pass (no visual change at rest) ---------- */
.track, .stage { position: static; }
.sent, .bub-keep { display: none; }
.slot { display: grid; }
.slot > * { grid-area: 1 / 1; }
.slot .dots, .slot .bub-b, .slot .wb { justify-self: start; align-self: start; }
.slot .dots { opacity: 0; }
.phone .dots { background: var(--bg); }
/* layout containment: building a panel (or counting its figures) never re-lays-out the rest of the page */
.panel, .agent, .phone { contain: layout; }
.panel { position: relative; overflow: clip; }
.ghost { position: absolute; inset: 0; padding: inherit; pointer-events: none; }
.steps .d { position: relative; overflow: hidden; }
.steps .d .nn, .steps .d svg { position: relative; z-index: 1; }
.steps .d svg { position: absolute; inset: 0; margin: auto; opacity: 0; }
.steps .ok .d .nn { opacity: 0; }
.steps .ok .d svg { opacity: 1; }
.steps .d::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--acc); transform: scale(0); }
.steps .ok .d::before, .steps .cur .d::before { transform: none; }
.steps li { position: relative; }

/* ---------- Scroll reveals: compositor only ---------- */
@keyframes rv { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes tilt { from { opacity: 0.4; transform: perspective(1000px) rotateX(14deg) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes ico { from { opacity: 0; transform: scale(0.4) rotate(-16deg); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
  .rv { animation: rv linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  .scene { animation: tilt linear both; animation-timeline: view(); animation-range: entry 5% entry 75%; transform-origin: 50% 0; }
  /* the three trust cards arrive one after another, and each icon pops as its card lands */
  .trust article:nth-child(2) { animation-range: entry 8% entry 63%; }
  .trust article:nth-child(3) { animation-range: entry 16% entry 71%; }
  .trust svg { animation: ico linear both; animation-timeline: view(); animation-range: entry 30% entry 95%; }
}
@supports not (animation-timeline: view()) {
  html.js .rv, html.js .scene { opacity: 0; transform: translateY(24px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
  html.js .rv.in, html.js .scene.in { opacity: 1; transform: none; }
  html.js .trust article:nth-child(2) { transition-delay: 0.1s; } html.js .trust article:nth-child(3) { transition-delay: 0.2s; }
}

/* ======================================================================
   Motion. Same family as the home page: word masks, scroll-driven drift, one-shot reveals.
   Everything animated is transform or opacity. Scroll-linked motion is a CSS scroll/view timeline
   (compositor); one-shot reveals are time-based and toggled once by an IntersectionObserver;
   loops are plain CSS keyframes. No scroll handler anywhere. With reduced motion none of this applies.
   ====================================================================== */
@media (prefers-reduced-motion: no-preference) {
  :root { --out: cubic-bezier(0.16, 1, 0.3, 1); --spring: cubic-bezier(0.34, 1.45, 0.64, 1); }

  @keyframes m-up { from { transform: translateY(112%); } to { transform: none; } }
  @keyframes type { from { opacity: 0; } to { opacity: 1; } }
  @keyframes cur { 0%, 99% { opacity: 1; } 100% { opacity: 0; } }
  @keyframes cur-end { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
  @keyframes hero-show { to { opacity: 1; transform: none; } }
  @keyframes em-hue { from { color: var(--t); } }
  @keyframes glow-a { from { transform: translate3d(-6vw, 0, 0) scale(1); } to { transform: translate3d(7vw, 28px, 0) scale(1.2); } }
  @keyframes glow-b { from { transform: translate3d(0, 0, 0) scale(1.1); } to { transform: translate3d(-14vw, -36px, 0) scale(0.82); } }
  @keyframes sheen { 0%, 62% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
  @keyframes enter { from { opacity: 0; transform: translate3d(calc(var(--dir, 0) * 30px), 16px, 0); } to { opacity: 1; transform: none; } }
  @keyframes enter-l { from { opacity: 0; transform: translate3d(-22px, 8px, 0) scale(0.94); } to { opacity: 1; transform: none; } }
  @keyframes enter-r { from { opacity: 0; transform: translate3d(22px, 8px, 0) scale(0.94); } to { opacity: 1; transform: none; } }
  @keyframes ghost-out { to { opacity: 0; transform: translate3d(calc(var(--dir, 0) * -30px), 0, 0); } }
  @keyframes pop { from { opacity: 0; transform: scale(0.82); } to { opacity: 1; transform: none; } }
  @keyframes dot { 0%, 60%, 100% { transform: none; opacity: 0.45; } 30% { transform: translateY(-5px); opacity: 1; } }
  @keyframes dots-life { 0% { opacity: 0; } 12%, 86% { opacity: 1; } 100% { opacity: 0; } }
  @keyframes ring { from { opacity: 0.7; transform: scale(1); } to { opacity: 0; transform: scale(1.18, 1.5); } }
  @keyframes ck { from { opacity: 0; transform: scale(0.2); } to { opacity: 1; transform: none; } }
  @keyframes caret { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

  /* ---- Hero: everything waits for html.ready (fonts settled), then plays. The failsafe animation
     reveals it anyway if the script never marks the page ready. ---- */
  html.js:not(.ready) .hero :is(.lk-i, .lk-b .ch, h1 .w > span) { transform: translateY(112%); }
  html.js:not(.ready) .hero .ty .tw > span { opacity: 0; }
  html.js:not(.ready) .hero :is(.lead, .cta, .inv) { opacity: 0; transform: translateY(22px); }
  html.js:not(.ready) .hero :is(.lk-i, .lk-b .ch, h1 .w > span, .ty .tw > span, .lead, .cta, .inv) { animation: hero-show 0.01s 2.5s forwards; }

  html.ready .hero .lk-a .lk-i { animation: m-up 0.85s var(--out) both; }
  html.ready .hero .lk-b .ch { animation: m-up 1.05s var(--out) both; animation-delay: calc(0.1s + var(--i) * 85ms); }
  html.ready .hero .ty .tw > span { animation: type 0.01s steps(1) both; animation-delay: calc(0.85s + var(--i) * 42ms); }
  .ty .tw > span::after { content: ""; position: absolute; right: -0.12em; top: 0.05em; bottom: 0.05em; width: 2px; background: var(--acc-t); opacity: 0; }
  html.ready .hero .ty .tw > span::after { animation: cur 0.042s steps(1) forwards; animation-delay: calc(0.85s + var(--i) * 42ms); }
  html.ready .hero .ty .tw:last-child > span:last-child::after { animation: cur-end 0.9s steps(1) 3 forwards; animation-delay: calc(0.85s + var(--i) * 42ms); }
  html.ready .hero h1 .w > span { animation: m-up 0.85s var(--out) both; animation-delay: calc(0.55s + var(--i) * 70ms); }
  html.ready .hero h1 em .w > span { animation: m-up 0.85s var(--out) both, em-hue 0.8s ease both; animation-delay: calc(0.55s + var(--i) * 70ms), 1.55s; }
  html.ready .hero .lead { animation: rise 0.8s var(--out) 1.05s both; }
  html.ready .hero .cta { animation: rise 0.8s var(--out) 1.2s both; }
  html.ready .hero .inv { animation: rise 0.8s var(--out) 1.3s both; }

  .hero::before { animation: glow-a 17s ease-in-out infinite alternate; }
  .hero::after { animation: glow-b 23s ease-in-out infinite alternate; }

  /* a quiet sheen across the primary buttons, every few seconds */
  .btn-p { position: relative; }
  .hero .btn-p, .pilot .btn-p { overflow: hidden; }
  .hero .btn-p::after, .pilot .btn-p::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(100deg, transparent 32%, rgba(255, 255, 255, 0.5) 50%, transparent 68%);
    animation: sheen 5s ease-in-out 2.4s infinite;
  }

  /* ---- Section headings: word masks. The lede and eyebrow follow. ---- */
  html.js [data-split]:not(.in) .w > span { transform: translateY(112%); }
  html.js [data-split].in .w > span { animation: m-up 0.8s var(--out) both; animation-delay: calc(var(--i) * 55ms); }
  html.js .rise:not(.in) { opacity: 0; transform: translateY(20px); }
  html.js .rise.in { animation: rise 0.7s var(--out) both; animation-delay: calc(var(--d, 0) * 90ms + 180ms); }
  html.js .pilot .rise.in { animation-delay: calc(var(--d, 0) * 90ms + 420ms); }
  .segs button { transition: background-color 0.18s, color 0.18s, border-color 0.18s, transform 0.12s var(--ease); }
  .segs button:active { transform: scale(0.95); }

  /* ---- Typing dots (demo act 1, agent and WhatsApp slots) ---- */
  .dots i { animation: dot 1.1s ease-in-out infinite; }
  .dots i:nth-child(2) { animation-delay: 0.15s; } .dots i:nth-child(3) { animation-delay: 0.3s; }

  /* ---- Panels: they build themselves on reveal and on every tab change ---- */
  html.js .panel:not(.in) > * { opacity: 0; }
  .ghost { animation: ghost-out 0.32s var(--ease) both; }
  .ghost, .ghost * { pointer-events: none; }
  .ghost * { animation: none !important; }
  .panel.in .p-top, .panel.in .askline, .panel.in .p-kind { animation: enter 0.6s var(--out) both; animation-delay: calc(var(--t0, 0s) + 0.02s); }
  .panel.in .tags span { animation: pop 0.5s var(--spring) both; animation-delay: calc(var(--t0, 0s) + 0.2s + var(--i, 0) * 80ms); }
  .panel.in .met { animation: enter 0.6s var(--out) both; animation-delay: calc(var(--t0, 0s) + 0.12s + var(--i, 0) * 80ms); }
  .panel.in .rw { animation: enter 0.6s var(--out) both; animation-delay: calc(var(--t0, 0s) + 0.3s + var(--i, 0) * 90ms); }
  .panel.in .meter i { animation: grow 1s var(--out) both; animation-delay: calc(var(--t0, 0s) + 0.45s + var(--i, 0) * 90ms); }
  .panel.in .pill, .panel.in .pills > span { animation: enter 0.6s var(--out) both; animation-delay: calc(var(--t0, 0s) + 0.55s + var(--i, 0) * 80ms); }
  .panel.in .askbub { animation: enter-l 0.6s var(--spring) both; animation-delay: calc(var(--t0, 0s) + 0.12s); }
  .panel.in .chart i { animation: growy 0.9s var(--spring) both; animation-delay: calc(var(--t0, 0s) + 1.05s + var(--i, 0) * 65ms); }
  /* generative panel: the request is typed word by word, then the screen assembles under it */
  .panel.in .askline .aw { animation: type 0.01s steps(1) both; animation-delay: calc(0.25s + var(--i, 0) * 48ms); }
  [data-panel="gen"] { --t0: 0.9s; }
  [data-panel="gen"].in .pills > span { animation-delay: calc(var(--t0, 0s) + 1.55s + var(--i, 0) * 80ms); }
  [data-panel="gen"].in .p-top { animation-delay: calc(var(--t0, 0s) - 0.25s); }
  [data-panel="gen"].in .tags span { animation-delay: calc(var(--t0, 0s) + 0.0s + var(--i, 0) * 80ms); }
  [data-panel="gen"].in .met { animation-delay: calc(var(--t0, 0s) + 0.25s + var(--i, 0) * 90ms); }

  /* ---- Agent: the conversation arrives, the five steps tick through ---- */
  html.js .agent:not(.in) :is(.agent-chat > *, .steps li) { opacity: 0; }
  .agent.in .agent-chat > .bub-u { animation: enter-r 0.6s var(--spring) 0.15s both; }
  .agent.in .slot .dots { animation: dots-life 1.2s linear 0.9s both; }
  .agent.in .slot .bub-b { animation: enter-l 0.6s var(--spring) 2.1s both; }
  .agent.in .agent-act[data-agent="ask"] { animation: enter 0.6s var(--out) 2.5s both; }
  .agent.in .steps li { animation: enter 0.6s var(--out) both; animation-delay: calc(var(--i, 0) * 90ms + 0.1s); }
  .agent.settled .agent-act[data-agent="ask"] { animation-delay: 0s; }
  .agent-act:not([hidden]) .bub-ok { animation: enter-l 0.55s var(--spring) both; }
  .steps .d::before { transition: transform 0.45s var(--spring); }
  .steps .d .nn { transition: opacity 0.2s; }
  .steps .ok .d svg { animation: ck 0.5s var(--spring) both; }
  .steps li { transition: border-color 0.3s; }
  .steps .cur::after {
    content: ""; position: absolute; inset: -1px; border: 2px solid var(--acc-t); border-radius: 16px; pointer-events: none;
    animation: ring 1.9s ease-out infinite;
  }
  .steps .s { transition: opacity 0.25s; }

  /* ---- WhatsApp: bubbles arrive one by one, the answers after typing dots ---- */
  html.js .phone:not(.in) :is(.wb-u, .slot) { opacity: 0; }
  .phone.in .wb-u { animation: enter-r 0.6s var(--spring) 0.2s both; }
  .phone.in .slot:nth-of-type(1) .dots { animation: dots-life 1s linear 0.9s both; }
  .phone.in .slot:nth-of-type(1) .wb { animation: enter-l 0.6s var(--spring) 1.9s both; }
  .phone.in .slot:nth-of-type(2) .dots { animation: dots-life 1s linear 3.2s both; }
  .phone.in .slot:nth-of-type(2) .wb { animation: enter-l 0.6s var(--spring) 4.2s both; }

  /* ---- Pilot ---- */
  .pilot { position: relative; isolation: isolate; overflow-x: clip; }
  .pilot::before {
    content: ""; position: absolute; z-index: -1; left: calc(50% - min(450px, 80vw)); top: -60px; width: min(900px, 160vw); height: 460px;
    background: radial-gradient(closest-side, var(--glow), transparent 72%); pointer-events: none;
  }

  /* ---- Demo, non-pinned layout (no timeline support, or a short screen): each act builds when it arrives ---- */
  html.js .act:not(.in) :is(.tbl tbody tr, .tbl tfoot, .scene .bub-b, .confirm) { opacity: 0; }
  .act.in .tbl tbody tr { animation: enter 0.6s var(--out) both; animation-delay: calc(var(--k, 0) * 110ms + 0.3s); --dir: -0.6; }
  .act.in .tbl tfoot { animation: enter 0.6s var(--out) 0.75s both; --dir: -0.6; }
  .act.in .scene .bub-b { animation: enter-l 0.6s var(--spring) 1.0s both; }
  .act.in .confirm { animation: enter 0.7s var(--out) 0.25s both; --dir: 0; }
  .tbl tbody tr:nth-child(2) { --k: 1; } .tbl tbody tr:nth-child(3) { --k: 2; }
  .confirm .btn-p { position: relative; }
  .confirm .btn-p::after { content: ""; position: absolute; inset: -2px; border: 2px solid var(--acc); border-radius: 980px; pointer-events: none; animation: ring 1.8s ease-out infinite; }
}

/* ======================================================================
   Pinned stage: "Da pergunta à decisão", structured like the design canvas's own: a tall track, a sticky
   stage under the 56px bar, a short centred progress line on top, and three centred layers that replace each
   other in place (word, line of text, then the landscape window with the scene). The page's own scroll drives
   it. Only where scroll timelines exist (html.pin, set before first paint), motion is welcome and the
   screen is tall enough to hold it.
   ====================================================================== */
@media (prefers-reduced-motion: no-preference) and (min-height: 640px) {
  @keyframes a-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes a-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-18px); } }
  @keyframes h-in { from { transform: translateY(112%); } to { transform: none; } }
  @keyframes h-out { from { transform: none; } to { transform: translateY(-112%); } }
  @keyframes s-in { from { opacity: 0; } to { opacity: 1; } }
  @keyframes r-in { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
  @keyframes b-in { from { opacity: 0; transform: translate3d(-24px, 14px, 0) scale(0.92); } to { opacity: 1; transform: none; } }
  @keyframes c-in { from { opacity: 0; transform: translateY(34px) scale(0.93); } to { opacity: 1; transform: none; } }
  @keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

  html.pin .track {
    --stage-h: calc(100svh - 56px - var(--dock) - var(--safe-b) - 12px);
    position: relative; margin-top: 12px; height: calc(var(--stage-h) + 190vh);
    view-timeline: --stage block; view-timeline-inset: 56px calc(var(--dock) + var(--safe-b) + 12px);
  }
  html.pin .stage { position: sticky; top: 56px; height: var(--stage-h); padding-top: 32px; box-sizing: border-box; }
  html.pin .stage::before, html.pin .stage::after { content: ""; position: absolute; left: 0; right: 0; top: 8px; width: min(420px, 80%); margin: 0 auto; height: 3px; border-radius: 3px; }
  html.pin .stage::before { background: var(--line); }
  html.pin .stage::after { background: var(--acc); transform-origin: left; transform: scaleX(0); animation: fill linear both; animation-timeline: --stage; animation-range: contain 0% contain 100%; }
  html.pin .sent { display: block; position: absolute; left: 0; top: calc(190vh * 0.56); width: 1px; height: 1px; pointer-events: none; }

  /* The three acts share one pair of rows (text, scene) through subgrid, so the tallest paragraph sets the
     text row for all of them and every scene frame sits at exactly the same place. */
  html.pin .acts { margin: 0; height: 100%; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: start; row-gap: 14px; }
  html.pin .act { grid-area: 1 / 1 / 3 / 2; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: subgrid; gap: 14px 0; align-items: start; min-height: 0; pointer-events: none; text-align: center; }
  html.pin .act h3 { font-size: clamp(2.75rem, min(13vw, 13svh), 7rem); margin-left: -0.08em; }
  html.pin .act-t p:last-child { margin: 6px auto 0; max-width: 36rem; font-size: 0.9375rem; line-height: 1.38; }
  /* the three frames share one row, so all three are as tall as the tallest scene (never clipped); the ratio is the floor */
  html.pin .scene { align-self: stretch; justify-self: center; width: min(100%, 52rem); padding: 12px; gap: 8px; animation: none; text-align: left; }
  html.pin .scene .bub { max-width: 96%; padding: 8px 14px; font-size: 0.875rem; }
  html.pin .bub-keep { display: block; }
  html.pin .tbl { font-size: 0.8125rem; }
  html.pin .tbl th, html.pin .tbl td, html.pin .tbl tfoot th, html.pin .tbl tfoot td { padding-top: 4px; padding-bottom: 4px; }
  html.pin .confirm { padding: 12px; gap: 6px; }
  html.pin .confirm .act-do { font-size: 1rem; }
  html.pin .kv { grid-template-columns: none; grid-template-rows: auto auto; grid-auto-flow: column; justify-content: space-between; gap: 0 12px; font-size: 0.8125rem; }
  html.pin .row { margin-top: 2px; }
  html.pin .t3 .act:nth-child(3) .scene { pointer-events: auto; }

  /* where each act is in the pin: out / in windows, as a share of the pinned distance */
  html.pin .act:nth-child(1) { --o0: 16%; --o1: 30%; }
  html.pin .act:nth-child(2) { --i0: 24%; --i1: 38%; --o0: 54%; --o1: 68%; }
  html.pin .act:nth-child(3) { --i0: 62%; --i1: 76%; }

  /* the number and the paragraph fade and shift; the big word slides through its mask */
  html.pin .act:nth-child(1) :is(.n, .act-t p:last-child) { animation: a-out linear forwards; animation-timeline: --stage; animation-range: contain var(--o0) contain calc(var(--o1) - 4%); }
  html.pin .act:nth-child(1) h3 > span { animation: h-out linear forwards; animation-timeline: --stage; animation-range: contain calc(var(--o0) + 2%) contain var(--o1); }
  html.pin .act:nth-child(2) :is(.n, .act-t p:last-child) { animation: a-in linear both, a-out linear forwards; animation-timeline: --stage, --stage; animation-range: contain calc(var(--i0) + 3%) contain var(--i1), contain var(--o0) contain calc(var(--o1) - 4%); }
  html.pin .act:nth-child(2) h3 > span { animation: h-in linear both, h-out linear forwards; animation-timeline: --stage, --stage; animation-range: contain var(--i0) contain calc(var(--i1) - 3%), contain calc(var(--o0) + 2%) contain var(--o1); }
  html.pin .act:nth-child(3) :is(.n, .act-t p:last-child) { animation: a-in linear both; animation-timeline: --stage; animation-range: contain calc(var(--i0) + 3%) contain var(--i1); }
  html.pin .act:nth-child(3) h3 > span { animation: h-in linear both; animation-timeline: --stage; animation-range: contain var(--i0) contain calc(var(--i1) - 3%); }

  /* scenes stack in place: each later frame fades in over the one below, so the shared frame and the
     question line never move; only what is different between the acts changes */
  html.pin .act:nth-child(n+2) .scene { animation: s-in linear both; animation-timeline: --stage; animation-range: contain calc(var(--i0) - 4%) contain calc(var(--i1) - 4%); }
  html.pin .act:nth-child(2) .tbl tbody tr { animation: r-in linear both; animation-timeline: --stage; opacity: 1; }
  html.pin .act:nth-child(2) .tbl tbody tr:nth-child(1) { animation-range: contain 30% contain 40%; }
  html.pin .act:nth-child(2) .tbl tbody tr:nth-child(2) { animation-range: contain 33% contain 43%; }
  html.pin .act:nth-child(2) .tbl tbody tr:nth-child(3) { animation-range: contain 36% contain 46%; }
  html.pin .act:nth-child(2) .tbl tfoot { animation: r-in linear both; animation-timeline: --stage; animation-range: contain 40% contain 49%; }
  html.pin .act:nth-child(2) .scene .bub-b { animation: b-in linear both; animation-timeline: --stage; animation-range: contain 45% contain 52%; }
  html.pin .act:nth-child(3) .confirm { animation: c-in linear both; animation-timeline: --stage; animation-range: contain 64% contain 76%; }
  html.pin .act:nth-child(3) .confirm .row { animation: a-in linear both; animation-timeline: --stage; animation-range: contain 72% contain 80%; }
  html.pin .act:nth-child(1) .dots { animation: a-out linear forwards; animation-timeline: --stage; animation-range: contain 14% contain 22%; }
  html.pin .act .tbl tbody tr, html.pin .act .tbl tfoot, html.pin .act .scene .bub-b, html.pin .act .confirm { opacity: 1; }
}

@media (min-width: 720px) and (prefers-reduced-motion: no-preference) and (min-height: 640px) {
  html.pin .scene { aspect-ratio: 2 / 1; padding: 16px; gap: 10px; }
  html.pin .scene .bub { font-size: 0.9375rem; }
  html.pin .tbl { font-size: 0.875rem; }
  html.pin .tbl th, html.pin .tbl td, html.pin .tbl tfoot th, html.pin .tbl tfoot td { padding-top: 6px; padding-bottom: 6px; }
  html.pin .act-t p:last-child { font-size: 1.0625rem; }
  html.pin .kv { font-size: 0.9375rem; }
}
/* less height to share: no ratio at all (the frame is as tall as its content, never clipped) */
@media (max-height: 799px) and (prefers-reduced-motion: no-preference) and (min-height: 640px) { html.pin .scene { aspect-ratio: auto; } }
@media (max-height: 759px), (max-width: 359px) {
  @media (prefers-reduced-motion: no-preference) and (min-height: 640px) {
    html.pin .scene { padding: 10px; gap: 6px; }
    html.pin .scene::before { display: none; }
    html.pin .scene .bub { padding: 6px 12px; }
    html.pin .tbl { font-size: 0.78125rem; }
    html.pin .tbl th, html.pin .tbl td, html.pin .tbl tfoot th, html.pin .tbl tfoot td { padding-top: 3px; padding-bottom: 3px; }
  }
}

/* ======================================================================
   Pieces of the design canvas that the first pass left out: the dashboard window that straightens with the
   scroll, the running band, and the sentence that lights up word by word. Transform and opacity only.
   ====================================================================== */
.winwrap { padding: 8px var(--gr) 56px var(--g); }
.win {
  max-width: 1100px; margin: 0 auto; padding: 12px; border-radius: 22px;
  background: linear-gradient(180deg, var(--s1), var(--bg)); border: 1px solid var(--line); box-shadow: 0 40px 120px var(--glow);
}
.win-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-bottom: 12px; }
.lights { display: flex; gap: 6px; }
.lights i:nth-child(2) { background: #febc2e; } .lights i:nth-child(3) { background: #28c840; }
.win-cap { font-size: 0.75rem; line-height: 1.3; color: var(--t2); }
/* three tiles stay in one row on every width: the window is wider than it is tall */
.win-t { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tile { min-width: 0; padding: 9px 8px; border-radius: 14px; background: var(--s2); }
.tile small { display: block; font-size: 0.6875rem; line-height: 1.25; color: var(--t2); }
.tile b { display: block; margin-top: 3px; font-size: clamp(0.8125rem, 4.4vw, 2.25rem); line-height: 1.15; font-weight: 800; letter-spacing: -0.04em; white-space: nowrap; }
.tile-g { background: color-mix(in srgb, var(--acc) 14%, var(--bg)); border: 1px solid color-mix(in srgb, var(--acc) 32%, transparent); }
.tile-g small, .tile-g b { color: var(--acc-t); }
.win-b { display: grid; gap: 6px; margin-top: 6px; }
.win-c, .win-a { min-width: 0; padding: 12px; border-radius: 14px; background: var(--s2); }
.cap { margin-bottom: 10px; font-size: 0.75rem; color: var(--t2); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 96px; }
.bars i { flex: 1; height: var(--h); border-radius: 6px; background: color-mix(in srgb, var(--t) 18%, var(--s2)); }
.bars i.hi { background: var(--acc); }
.win-a { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.who { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; font-weight: 700; }
.spark { flex: none; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--acc); color: var(--on-acc); }
.say { font-size: 0.9375rem; line-height: 1.45; }
.pill-w { min-height: 40px; margin-top: 0; padding: 0 16px; font-size: 0.875rem; }
@media (min-width: 720px) {
  .winwrap { padding-bottom: 96px; }
  .win { padding: 28px; border-radius: 30px; }
  .win-h { margin-bottom: 22px; } .win-cap { font-size: 0.8125rem; }
  .win-t { gap: 16px; } .tile { padding: 22px; border-radius: 20px; }
  .tile small { font-size: 0.8125rem; } .tile b { margin-top: 6px; }
  .win-b { grid-template-columns: 2fr 1fr; gap: 16px; margin-top: 16px; }
  .win-c, .win-a { padding: 22px; border-radius: 20px; } .win-a { gap: 14px; justify-content: center; }
  .cap { margin-bottom: 14px; font-size: 0.8125rem; } .bars { height: 130px; gap: 12px; }
  .bars i { border-radius: 8px; }
}

/* the running band: two copies of the line, the track slides by half its own width, then starts over */
.faixa { overflow: hidden; white-space: nowrap; padding: 18px 0; border-block: 1px solid var(--line); }
.mq { display: inline-flex; gap: 36px; padding-right: 36px; font-size: clamp(1.375rem, 5.2vw, 1.75rem); font-weight: 800; letter-spacing: -0.03em; color: var(--t3); }
.mq i { font-style: normal; color: var(--acc-t); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* the sentence: the words are always there; where scroll timelines exist, an overlay copy of each word fades in on
   the paragraph's own timeline, one word after the next (opacity only, never an animated colour) */
.manifesto { padding: 88px var(--gr) 88px var(--g); }
.lit { max-width: 1000px; margin: 0 auto; font-size: clamp(2rem, 5.2vw, 4rem); line-height: 1.12; letter-spacing: -0.045em; font-weight: 700; text-wrap: balance; }
.lit em { font-style: normal; color: var(--acc-t); }
.lw { position: relative; display: inline-block; }
.lf { display: none; }
@media (min-width: 720px) { .manifesto { padding-block: 150px; } }
@keyframes lw-on { to { opacity: 1; } }
@keyframes win-tilt {
  from { opacity: 0.5; transform: perspective(1400px) rotateX(28deg) scale(0.88); }
  to { opacity: 1; transform: perspective(1400px) rotateX(0deg) scale(1); }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .win { animation: win-tilt linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
    .lit { view-timeline: --lit block; }
    .lit .lt { color: color-mix(in srgb, var(--t) 17%, var(--bg)); }
    .lit .lf {
      display: block; position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none;
      animation: lw-on linear both; animation-timeline: --lit;
      animation-range: cover calc(14% + var(--i) * 3%) cover calc(22% + var(--i) * 3%);
    }
  }
}
@supports not (animation-timeline: view()) {
  html.js .win { opacity: 0; transform: perspective(1400px) rotateX(18deg) scale(0.92); transition: opacity 0.5s var(--ease), transform 0.8s var(--ease); }
  html.js .win.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) { .mq { animation: marquee 32s linear infinite; } }

/* ======================================================================
   Hero leaves with the scroll: the two lines of the lockup drift apart (CSS scroll timeline, compositor)
   ====================================================================== */
@supports (animation-timeline: view()) {
  @keyframes lk-l { to { transform: translateX(-15vw); } }
  @keyframes lk-r { to { transform: translateX(10vw); } }
  @media (prefers-reduced-motion: no-preference) {
    html.js.ready .hero .lk-a { animation: lk-l linear both; animation-timeline: scroll(root); animation-range: 0 85vh; }
    html.js.ready .hero .lk-b { animation: lk-r linear both; animation-timeline: scroll(root); animation-range: 0 85vh; }
    .pilot::before { animation: glow-in linear both; animation-timeline: view(); animation-range: entry 0% cover 55%; }
    @keyframes glow-in { from { opacity: 0; transform: scale(0.3); } to { opacity: 1; transform: none; } }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html.js .rv, html.js .scene, html.js .win { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 359px) { .scene { padding: 12px; } .tbl { font-size: 0.8125rem; } .tbl th, .tbl td, .tbl tfoot th, .tbl tfoot td { padding-left: 6px; padding-right: 6px; } }
@media (min-width: 400px) { .tbl th, .tbl td, .tbl tfoot th, .tbl tfoot td { padding-left: 12px; padding-right: 12px; } }

/* ---------- Wider screens ---------- */
/* phone frames stay wide: the same compact content the pinned stage uses, so the frame is not taller than it is wide */
@media (max-width: 719px) {
  .scene { padding: 12px; gap: 8px; }
  .scene .bub { padding: 8px 14px; font-size: 0.875rem; }
  .tbl { font-size: 0.8125rem; }
  .tbl th, .tbl td, .tbl tfoot th, .tbl tfoot td { padding-top: 4px; padding-bottom: 4px; }
  .confirm { padding: 12px; gap: 6px; }
  .confirm .act-do { font-size: 1rem; }
  .kv { grid-template-columns: none; grid-template-rows: auto auto; grid-auto-flow: column; justify-content: space-between; gap: 0 12px; font-size: 0.8125rem; }
  .row { margin-top: 2px; }
}
@media (min-width: 720px) and (max-width: 1023px) { .scene { aspect-ratio: 16 / 9; width: min(100%, 46rem); margin-inline: auto; } }
@media (min-width: 720px) {
  .hero { text-align: center; padding-top: 72px; padding-bottom: 80px; }
  .lead { margin-left: auto; margin-right: auto; }
  .cta { flex-direction: row; justify-content: center; }
  .bar-nav { display: flex; }
  .bar { gap: 32px; }
  .brand { margin-right: 0; }
  .bar-nav { margin-right: auto; }
  .demo, .pilot { padding-top: 88px; padding-bottom: 88px; }
  .pilot { text-align: center; }
  .pilot > p:not(.alt) { margin-left: auto; margin-right: auto; }
  .alt { justify-content: center; }
  .lk-a { font-size: 2rem; }
}
@media (min-width: 1024px) {
  .acts { gap: 96px; }
  .act { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 56px; align-items: center; }
  .scene { padding: 20px; aspect-ratio: 16 / 10; }
  .tbl th, .tbl td, .tbl tfoot th, .tbl tfoot td { padding-top: 8px; padding-bottom: 8px; }
}
@media (max-height: 480px) and (orientation: landscape) {
  .chat { max-height: 56svh; }
}
