/* Bastos Design v5: Apple-grade restraint. System SF Pro (Inter elsewhere), black and light bands, big rounded cards, scroll story */
@import url("./base.css");

:root {
  color-scheme: light;
  --color-paper: oklch(100% 0 0);
  --color-paper-2: oklch(97.2% 0.002 286);
  --color-paper-3: oklch(94% 0.003 286);
  --color-paper-hi: oklch(90% 0.004 286);
  --color-ink: oklch(22.5% 0.004 286);
  --color-ink-2: oklch(40% 0.005 286);
  --color-muted: oklch(50% 0.006 286);
  --color-rule: oklch(88% 0.003 286);
  --color-accent: oklch(54.3% 0.265 284);
  --color-accent-deep: oklch(34% 0.16 284);
  --color-accent-ink: oklch(99% 0 0);
  --color-accent-text: oklch(52% 0.25 284);
  --color-focus: oklch(52% 0.17 255);
  --color-ok: oklch(55% 0.15 155);
  --color-warn: oklch(62% 0.15 75);
  --color-off: oklch(58% 0.006 286);
  --color-alert: oklch(55% 0.19 30);
  --color-dot: oklch(70% 0.006 286);
  --color-light: oklch(97.2% 0.002 286);
  --color-white: oklch(100% 0 0);
  --color-light-ink: oklch(22.5% 0.004 286);
  --color-light-muted: oklch(50% 0.006 286);
  --color-light-rule: oklch(88% 0.003 286);
  --color-light-focus: oklch(52% 0.17 255);
  --color-light-error: oklch(52% 0.17 30);
  --color-glass: oklch(100% 0 0 / 0.7);
  --color-glass-edge: oklch(0% 0 0 / 0.08);
  --color-shadow: oklch(0% 0 0 / 0.18);
  --code-k: oklch(74% 0.14 300); --code-f: oklch(80% 0.12 220); --code-s: oklch(80% 0.13 140); --code-t: oklch(78% 0.15 48); --code-a: oklch(82% 0.1 90); --code-c: oklch(58% 0.006 286);

  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-cond: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;

  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --text-xs: 0.75rem; --text-sm: 0.875rem; --text-md: 1.0625rem; --text-lg: 1.3125rem; --text-xl: 1.5rem; --text-2xl: 1.75rem;
  --text-display-s: clamp(2.4rem, 3.6vw + 0.6rem, 4rem);
  --text-section: clamp(2.5rem, 4.2vw + 0.5rem, 5rem);
  --text-title: clamp(1.3rem, 0.6vw + 1rem, 1.75rem);
  --text-lead: clamp(1.125rem, 0.5vw + 0.95rem, 1.5rem);
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms; --dur-short: 240ms; --dur-long: 500ms;
  --container: 1200px; --gutter: 48px; --gap-columns: 24px;
  --section-gap: 160px;
  --z-sticky-nav: 300; --z-tooltip: 600;
  --radius-card: 28px; --radius-inner: 14px; --radius-input: 12px; --rule-hair: 1px;
  --nav-h: 52px;
}

body { font-family: var(--font-body); font-size: var(--text-md); line-height: 1.47; letter-spacing: -0.022em; background: var(--color-paper); color: var(--color-ink); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em; color: inherit; overflow-wrap: break-word; min-width: 0; }
h2 { font-size: var(--text-section); line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
h3 { letter-spacing: -0.02em; }
.lead { font-size: var(--text-lead); line-height: 1.38; color: var(--color-muted); font-weight: 500; letter-spacing: -0.02em; }
.mono { font-variant-numeric: tabular-nums; }
.code, .code * { font-family: var(--font-mono); letter-spacing: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.defs { position: absolute; }
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-tooltip); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }
section { position: relative; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.light { background: var(--color-light); color: var(--color-light-ink); }
.light .lead { color: var(--color-light-muted); }


/* dark stages inside the light page */
[data-theme="dark"] {
  color-scheme: dark;
  --color-paper: oklch(0% 0 0);
  --color-paper-2: oklch(17% 0.004 286);
  --color-paper-3: oklch(23% 0.004 286);
  --color-paper-hi: oklch(30% 0.005 286);
  --color-ink: oklch(97.2% 0.002 286);
  --color-ink-2: oklch(82% 0.004 286);
  --color-muted: oklch(63% 0.006 286);
  --color-rule: oklch(32% 0.005 286);
  --color-accent: oklch(71.3% 0.166 294);
  --color-accent-deep: oklch(34% 0.16 284);
  --color-accent-ink: oklch(14% 0.01 286);
  --color-focus: oklch(72% 0.16 250);
  --color-ok: oklch(76% 0.15 155);
  --color-warn: oklch(80% 0.15 85);
  --color-off: oklch(58% 0.006 286);
  --color-alert: oklch(70% 0.18 30);
  --color-dot: oklch(55% 0.006 286);
  --color-glass: oklch(12% 0.004 286 / 0.6);
  --color-glass-edge: oklch(100% 0 0 / 0.16);
  --color-shadow: oklch(0% 0 0 / 0.5);
  --color-accent-text: var(--color-accent);
  color: var(--color-ink);
}
.story { background: var(--color-paper); }
/* nav */
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); height: var(--nav-h); background: color-mix(in oklab, var(--color-paper) 72%, transparent); -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px); transition: transform var(--dur-short) var(--ease-out); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { display: flex; align-items: center; gap: var(--space-lg); height: 100%; }
.logo { display: inline-flex; align-items: center; gap: var(--space-xs); color: var(--color-ink); text-decoration: none; border-radius: 6px; }
.logo:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.logo__word { font-family: var(--font-display); font-weight: 700; color: var(--color-accent-text); font-size: 1.3125rem; letter-spacing: -0.03em; white-space: nowrap; }
.logo__word > span:last-child { font-weight: 400; color: var(--color-muted); margin-left: 0.25em; }
.nav__links { display: flex; gap: var(--space-lg); margin-left: auto; font-size: var(--text-xs); }
.nav__links a { color: var(--color-ink-2); text-decoration: none; padding-block: var(--space-xs); transition: color var(--dur-micro) var(--ease-out); }
.nav__links a:hover { color: var(--color-ink); }
.nav__links a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.lang { display: inline-flex; padding: var(--space-3xs); border-radius: 999px; background: var(--color-paper-3); }
.lang button { min-width: 36px; min-height: 28px; border: 0; border-radius: 999px; background: transparent; color: var(--color-muted); font: 600 var(--text-xs)/1 var(--font-body); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.lang button:hover { color: var(--color-ink); }
.lang button[aria-pressed="true"] { background: var(--color-paper-hi); color: var(--color-ink); }
.lang button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; }
.nav__cta { min-height: 32px; padding: 0 var(--space-md); font-size: var(--text-xs); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-lg); border: var(--rule-hair) solid transparent; border-radius: 999px; background: transparent; color: var(--color-ink); font: 500 var(--text-md)/1 var(--font-body); letter-spacing: -0.02em; white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn--line { border-color: var(--color-ink-2); }
.btn--line:hover { background: var(--color-ink); color: var(--color-paper); border-color: var(--color-ink); }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: color-mix(in oklab, var(--color-accent) 86%, var(--color-white)); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; transition: none; }
.btn:disabled, .btn[aria-busy="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
.nav .btn--line { border-color: transparent; background: var(--color-ink); color: var(--color-paper); }
.nav .btn--line:hover { background: var(--color-ink-2); }
.nav .nav__cta { min-height: 32px; padding: 0 var(--space-md); font-size: var(--text-sm); font-weight: 500; }
.nav__links { font-size: var(--text-sm); }
.logo__word { line-height: 1; }

/* hero */
.hero { isolation: isolate; display: flex; flex-direction: column; justify-content: center; min-height: calc(100svh - var(--nav-h)); padding-block: var(--space-xl) var(--space-2xl); overflow: clip; }
.aura { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; -webkit-mask-image: linear-gradient(to bottom, var(--color-ink) 70%, transparent); mask-image: linear-gradient(to bottom, var(--color-ink) 70%, transparent); }
.hud { display: flex; justify-content: flex-end; gap: var(--space-md); font-size: var(--text-xs); color: var(--color-muted); padding-bottom: var(--space-xs); border-bottom: var(--rule-hair) solid var(--color-rule); }
.hud__xy { color: var(--color-ink-2); font-variant-numeric: tabular-nums; }
.mark { margin: 0; }
.mark__stage { position: relative; cursor: crosshair; }
.mark__word { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(4.2rem, 22vw, 19rem); line-height: 1.12; letter-spacing: -0.055em; color: var(--color-ink); white-space: nowrap; }
.mark__word > span { display: inline-block; transition: color var(--dur-short) var(--ease-out); }
.js .mark__word > span { opacity: 0; transform: translateY(24%); filter: blur(10px); }
.js .mark.is-in .mark__word > span { opacity: 1; transform: none; filter: none; transition: opacity 0.8s var(--ease-out), transform 1s var(--ease-out), filter 1s var(--ease-out), color var(--dur-short) var(--ease-out); transition-delay: calc(var(--i) * 60ms), calc(var(--i) * 60ms), calc(var(--i) * 60ms), 0s; }
.mark__word > span:hover, .mark__word > span:focus-visible { color: var(--color-accent); -webkit-text-stroke: 0.01em var(--color-paper); paint-order: stroke fill; }
.mark__bb:hover::after, .mark__bb:focus-visible::after { outline: 0.005em solid var(--color-paper); }
.bb { position: relative; display: inline-block; line-height: 1; }
.has-sq .bb::after { --s: var(--bs); content: ""; position: absolute; left: calc(var(--bcx) - var(--s) / 2); top: calc(var(--bcy) - var(--s) / 2); width: var(--s); height: var(--s); background: var(--color-accent); transition: background-color var(--dur-short) var(--ease-out); }
.mark__bb:hover::after, .mark__bb:focus-visible::after { background: var(--color-ink); }
.mark__word > span:focus-visible { outline: 1px solid var(--color-focus); outline-offset: 2px; }
.mark__guides { position: absolute; inset: 0; pointer-events: none; }
.guide { position: absolute; left: 0; right: 0; height: var(--rule-hair); background: color-mix(in oklab, var(--color-accent) 70%, transparent); transform-origin: left center; }
.guide:nth-child(even) { background: color-mix(in oklab, var(--color-ink) 20%, transparent); }
.js .guide { transform: scaleX(0); }
.js .mark.is-drawn .guide { transform: scaleX(1); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.guide__label { position: absolute; right: 0; bottom: var(--space-3xs); font-size: var(--text-xs); color: var(--color-muted); font-variant-numeric: tabular-nums; padding: var(--space-3xs) 0 var(--space-3xs) var(--space-xs); }
.mark__box { position: absolute; top: 0; left: 0; border: var(--rule-hair) dashed var(--color-accent); background: color-mix(in oklab, var(--color-accent) 7%, transparent); pointer-events: none; opacity: 0; transition: opacity var(--dur-short) var(--ease-out); }
.mark__box.is-on { opacity: 1; }
.mark__box::after { content: attr(data-adv); position: absolute; left: 50%; bottom: calc(-1 * var(--space-lg)); transform: translateX(-50%); font-size: var(--text-xs); font-weight: 600; color: var(--color-accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cross { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity var(--dur-short) var(--ease-out); }
.cross.is-on { opacity: 1; }
.cross i { position: absolute; background: color-mix(in oklab, var(--color-ink) 24%, transparent); }
.cross i:first-child { left: 0; right: 0; top: 0; height: 1px; }
.cross i:last-child { top: 0; bottom: 0; left: 0; width: 1px; }
.mark__cap { display: flex; justify-content: flex-end; margin-top: var(--space-sm); padding-top: var(--space-xs); border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-xs); color: var(--color-muted); }
.hero__text { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-columns); align-items: end; margin-top: var(--space-xl); }
.hero h1 { font-size: var(--text-display-s); max-width: 13ch; line-height: 1.04; letter-spacing: -0.035em; }
.hero__side { display: grid; gap: var(--space-lg); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.js .hero__text { opacity: 0; transform: translateY(14px); }
.js .mark.is-in ~ .hero__text { opacity: 1; transform: none; transition: opacity 0.9s var(--ease-out) 0.5s, transform 0.9s var(--ease-out) 0.5s; }

/* story: abas com troca automática (sem rolagem presa) */
.story { padding-block: var(--space-3xl); }
.story__sticky { position: static; }
.story__inner { display: flex; flex-direction: column; align-items: center; gap: var(--space-lg); }
.story__head { display: grid; gap: var(--space-xs); text-align: center; justify-items: center; }
.story__head .lead { max-width: 34ch; }
.seg { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: var(--space-3xs); border-radius: 999px; background: var(--color-paper-3); }
.seg button, .seg label { position: relative; z-index: 1; display: grid; place-items: center; min-height: 36px; padding: 0 var(--space-md); border: 0; border-radius: 999px; background: transparent; color: var(--color-ink-2); font: 500 var(--text-sm)/1 var(--font-body); letter-spacing: -0.01em; white-space: nowrap; cursor: pointer; transition: color var(--dur-short) var(--ease-out); }
.seg button:hover, .seg label:hover { color: var(--color-ink); }
.seg button[aria-selected="true"] { color: var(--color-paper); }
.seg button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.seg--story { width: min(560px, 100%); }
.seg__thumb { position: absolute; z-index: 0; top: var(--space-3xs); bottom: var(--space-3xs); left: var(--space-3xs); width: calc((100% - var(--space-3xs) * 2) / 4); border-radius: 999px; background: var(--color-ink); transform: translateX(calc(var(--s, 0) * 100%)); transition: transform var(--dur-long) var(--ease-out); }
.rig { width: 100%; border-radius: var(--radius-card); background: var(--color-paper-2); overflow: hidden; }
.prompt { position: absolute; z-index: 2; left: 50%; top: 50%; width: min(560px, calc(100% - var(--space-xl) * 2)); display: grid; gap: var(--space-sm); padding: var(--space-xl); border-radius: var(--radius-inner); background: color-mix(in oklab, var(--color-paper-2) 88%, transparent); box-shadow: 0 0 0 1px var(--color-glass-edge), 0 40px 80px -30px var(--color-shadow); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); transform: translate(-50%, -50%); transition: opacity 0.6s var(--ease-out), transform 0.8s var(--ease-out); }
.rig:not([data-step="0"]) .prompt { opacity: 0; transform: translate(-50%, -42%) scale(0.96); pointer-events: none; }
.prompt__label { font-size: var(--text-sm); color: var(--color-muted); font-weight: 500; }
.prompt__text { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 1vw + 0.8rem, 1.75rem); line-height: 1.2; letter-spacing: -0.025em; color: var(--color-ink); min-height: 4lh; }
.prompt__full { display: none; }
html:not(.js) .prompt__full { display: block; }
.caret { display: inline-block; width: 3px; height: 1em; margin-left: var(--space-3xs); vertical-align: -0.14em; border-radius: 2px; background: var(--color-accent); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.prompt__log { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }
.prompt__log li { display: flex; gap: var(--space-sm); align-items: center; transition: color var(--dur-long) var(--ease-out); }
.prompt__log li::before { content: ""; width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--color-rule); transition: background-color var(--dur-long) var(--ease-out), box-shadow var(--dur-long) var(--ease-out); }
.prompt__log li.is-done { color: var(--color-ink); }
.prompt__log li.is-done::before { background: var(--color-accent); box-shadow: inset 0 0 0 5px var(--color-paper-2); }
.screen { position: relative; overflow: hidden; display: grid; align-content: center; min-height: 560px; padding: var(--space-2xl); background: color-mix(in oklab, var(--color-paper) 55%, var(--color-paper-2)); }
.screen .code { position: absolute; top: var(--space-lg); right: var(--space-lg); bottom: var(--space-lg); width: min(500px, 70%); margin: 0; padding: var(--space-lg); border-radius: var(--radius-inner); background: color-mix(in oklab, var(--color-paper-2) 90%, transparent); box-shadow: 0 0 0 1px var(--color-glass-edge), 0 40px 80px -30px var(--color-shadow); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); font-size: 0.8rem; line-height: 1.65; color: var(--color-ink-2); white-space: pre; overflow: hidden; transform: translateX(115%); transition: transform 0.9s var(--ease-out); }
.hl { display: grid; justify-items: center; gap: var(--space-md); width: 100%; }
.hl__cap { display: grid; text-align: center; font-family: var(--font-display); font-size: clamp(1.25rem, 1vw + 0.9rem, 1.75rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; color: var(--color-ink); }
.hl__cap span { grid-area: 1 / 1; opacity: 0; transform: translateY(8px); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
.story[data-step="0"] .hl__cap span:nth-child(1), .story[data-step="1"] .hl__cap span:nth-child(2), .story[data-step="2"] .hl__cap span:nth-child(3), .story[data-step="3"] .hl__cap span:nth-child(4), .story[data-step="4"] .hl__cap span:nth-child(5) { opacity: 1; transform: none; }
html:not(.js) .hl__cap span:first-child { opacity: 1; transform: none; }
.hl__ctl { display: flex; align-items: center; gap: var(--space-sm); }
.hl__dots { display: flex; align-items: center; gap: var(--space-sm); height: 56px; padding: 0 var(--space-lg); border-radius: 999px; background: var(--color-paper-3); }
.hl__dots button { position: relative; width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: color-mix(in oklab, var(--color-ink) 35%, transparent); overflow: hidden; cursor: pointer; transition: width 0.5s var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.hl__dots button::before { content: ""; position: absolute; inset: -12px -4px; }
.hl__dots button:hover { background: color-mix(in oklab, var(--color-ink) 60%, transparent); }
.hl__dots button[aria-selected="true"] { width: 48px; background: color-mix(in oklab, var(--color-ink) 30%, transparent); }
.hl__dots button i { position: absolute; inset: 0; border-radius: inherit; background: var(--color-ink); transform: scaleX(0); transform-origin: left; }
.hl__dots button[aria-selected="true"] i { transform: scaleX(1); }
.story.is-playing .hl__dots button[aria-selected="true"] i { animation: hl-fill var(--hl-dur, 4.6s) linear both; }
.story.is-paused .hl__dots button[aria-selected="true"] i { animation-play-state: paused; }
@keyframes hl-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hl__dots button:focus-visible, .hl__play:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.hl__play { display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; background: var(--color-paper-3); color: var(--color-ink); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.hl__play:hover { background: color-mix(in oklab, var(--color-paper-3) 80%, var(--color-ink)); }
.hl__play svg { width: 22px; height: 22px; fill: currentColor; }
.hl__play .i-play, .story.is-paused .hl__play .i-pause { display: none; }
.story.is-paused .hl__play .i-play { display: inline; }
.c-k { color: var(--code-k); } .c-f { color: var(--code-f); } .c-s { color: var(--code-s); } .c-t { color: var(--code-t); } .c-a { color: var(--code-a); } .c-c { color: var(--code-c); }
.dash * { transition: color 0.5s var(--ease-out), background-color 0.5s var(--ease-out), border-color 0.5s var(--ease-out), opacity 0.5s var(--ease-out); }
.js [data-step="0"] .dash { opacity: 0; transform: translateY(24px) scale(0.97); }
[data-step="1"] .dash, [data-step="1"] .dash :is(.kpi, .chart, .machines) { background: transparent; border: var(--rule-hair) dashed color-mix(in oklab, var(--color-ink) 28%, transparent); box-shadow: none; }
[data-step="1"] .dash :is(span, b, em) { color: transparent; background: color-mix(in oklab, var(--color-ink) 14%, transparent); border-radius: 4px; }
[data-step="1"] .dash :is(canvas, .st, .dash__live i) { opacity: 0; }
[data-step="1"] .dash .machines li { border-color: color-mix(in oklab, var(--color-ink) 12%, transparent); }
[data-step="4"] .dash { transform: scale(0.95) translateX(-5%); filter: brightness(0.55); }
[data-step="4"] .screen .code { transform: none; }
/* validação: comentários presos aos elementos + aprovação */
.kpi--alert, .chart { position: relative; }
.rv-ok, .rv-pin, .rv-note { opacity: 0; transform: translateY(6px) scale(0.96); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); pointer-events: none; }
[data-step="3"] :is(.rv-ok, .rv-pin, .rv-note) { opacity: 1; transform: none; }
[data-step="3"] .rv-pin--b, [data-step="3"] .rv-note--b { transition-delay: 0.35s; }
[data-step="3"] .rv-ok { transition-delay: 0.7s; }
.rv-ok { margin-left: auto; padding: 4px 10px; border-radius: 999px; background: color-mix(in oklab, var(--color-ok) 22%, transparent); color: var(--color-ok); font-size: var(--text-xs); font-weight: 600; white-space: nowrap; }
.rv-ok + .dash__tag { margin-left: var(--space-sm); }
.rv-pin { position: absolute; z-index: 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50% 50% 50% 4px; background: var(--color-accent); color: var(--color-white); font-size: 12px; font-weight: 700; box-shadow: 0 0 0 3px var(--color-paper); }
.rv-pin--a { top: -10px; left: -10px; }
.rv-pin--b { top: 28%; left: 62%; }
.rv-note { position: absolute; z-index: 3; display: grid; gap: 2px; width: 230px; padding: 10px 12px; border-radius: 12px; background: var(--color-white); color: var(--color-light-ink); font-size: var(--text-xs); font-weight: 400; line-height: 1.35; text-align: left; box-shadow: 0 20px 40px -12px rgb(0 0 0 / 0.6); }
.rv-note small { font-size: 11px; color: var(--color-light-muted); font-weight: 600; }
.rv-note--a { top: calc(100% + 8px); right: 0; }
.rv-note--b { top: calc(28% + 30px); left: calc(62% - 40px); }

/* services (light band, dark product stage) */
.services { padding-block: var(--section-gap); background: var(--color-light); color: var(--color-light-ink); }
.services__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: start; }
.services__list h2 { margin-bottom: var(--space-xl); }
.dash { display: grid; gap: var(--space-md); padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule); box-shadow: 0 40px 80px -40px var(--color-shadow); transition: opacity 0.6s var(--ease-out), transform 0.8s var(--ease-out), filter 0.6s var(--ease-out); }
.dash__top { display: flex; align-items: center; gap: var(--space-md); }
.dash__top b { font: 600 var(--text-lg)/1 var(--font-display); letter-spacing: -0.03em; }
.dash__live { display: inline-flex; align-items: center; gap: var(--space-xs); font-size: var(--text-xs); color: var(--color-ok); }
.dash__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--color-ok); animation: pulse 1.6s var(--ease-out) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--color-ok) 60%, transparent); } 100% { box-shadow: 0 0 0 8px transparent; } }
.dash__tag { margin-left: auto; font-size: var(--text-xs); color: var(--color-muted); }
.dash__kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-sm); }
.kpi { display: grid; gap: var(--space-2xs); align-content: start; padding: var(--space-md); border-radius: var(--radius-inner); background: var(--color-paper-3); border: var(--rule-hair) solid transparent; font-size: var(--text-xs); color: var(--color-ink-2); }
.kpi b { font-size: 1.45rem; font-weight: 500; color: var(--color-ink); }
.kpi em { font-style: normal; color: var(--color-ink-2); }
.kpi--alert { background: color-mix(in oklab, var(--color-alert) 16%, var(--color-paper-3)); border-color: color-mix(in oklab, var(--color-alert) 45%, transparent); }
.kpi--alert b { color: var(--color-alert); }
.spark { width: 100%; height: 28px; }
.dash__body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--space-sm); }
.chart { border-radius: var(--radius-inner); background: var(--color-paper-3); padding: var(--space-md); min-height: 200px; }
.chart { position: relative; height: 200px; min-height: 0; }
.chart canvas { position: absolute; inset: var(--space-md); width: calc(100% - var(--space-md) * 2); height: calc(100% - var(--space-md) * 2); display: block; }
.machines { list-style: none; margin: 0; padding: var(--space-xs) var(--space-md); border-radius: var(--radius-inner); background: var(--color-paper-3); display: grid; font-size: var(--text-sm); }
.machines li { display: flex; align-items: center; gap: var(--space-sm); padding-block: var(--space-xs); border-bottom: var(--rule-hair) solid var(--color-rule); }
.machines li:last-child { border-bottom: 0; }
.machines b { margin-left: auto; font-weight: 500; }
.st { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.st--ok { background: var(--color-ok); } .st--warn { background: var(--color-warn); } .st--off { background: var(--color-off); }
.code { margin: 0; padding: var(--space-lg); font-size: 0.8rem; line-height: 1.65; color: var(--color-ink-2); white-space: pre; overflow: hidden; tab-size: 2; }
.c-k { color: var(--code-k); } .c-f { color: var(--code-f); } .c-s { color: var(--code-s); } .c-t { color: var(--code-t); } .c-a { color: var(--code-a); } .c-c { color: var(--code-c); }

.svc { list-style: none; margin: 0; padding: 0; border-top: var(--rule-hair) solid var(--color-rule); }
.svc li { border-bottom: var(--rule-hair) solid var(--color-rule); }
.svc button { display: grid; grid-template-columns: 3rem minmax(0, 1fr); grid-template-rows: auto 0fr; column-gap: var(--space-xs); width: 100%; padding: var(--space-lg) 0; border: 0; background: transparent; color: var(--color-muted); text-align: left; cursor: pointer; transition: grid-template-rows var(--dur-long) var(--ease-out), color var(--dur-short) var(--ease-out); }
.svc button:hover { color: var(--color-ink-2); }
.svc button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.svc__n { font-size: var(--text-xs); padding-top: 0.6em; }
.svc__t { font: 500 clamp(1.5rem, 1.6vw + 0.8rem, 2.25rem)/1.1 var(--font-display); letter-spacing: -0.035em; }
.svc__d { grid-column: 2; overflow: hidden; min-height: 0; color: var(--color-ink-2); font-size: var(--text-md); max-width: 42ch; }
.svc button[aria-pressed="true"] { grid-template-rows: auto 1fr; color: var(--color-ink); }
.svc button[aria-pressed="true"] .svc__n { color: var(--color-accent-text); }
.svc button[aria-pressed="true"] .svc__d { padding-top: var(--space-xs); }
.preview { position: sticky; top: calc(var(--nav-h) + var(--space-xl)); min-height: 560px; border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); background-color: var(--color-paper-2); background-image: radial-gradient(circle at 1px 1px, color-mix(in oklab, var(--color-dot) 30%, transparent) 1px, transparent 1.4px), radial-gradient(60% 60% at 70% 20%, color-mix(in oklab, var(--color-accent) 14%, transparent), transparent); background-size: 22px 22px, 100% 100%; overflow: hidden; }
.pv { position: absolute; inset: 0; display: grid; place-items: center; padding: var(--space-xl); }
.js .pv { opacity: 0; visibility: hidden; transform: scale(0.97); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out), visibility 0s linear var(--dur-long); }
.js .pv.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.pv__meta { position: absolute; right: var(--space-lg); bottom: var(--space-md); font-size: var(--text-xs); color: var(--color-muted); }
/* pv: produto e UX, um fluxo de três telas com o cursor passando por elas */
.fx { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr); align-items: center; width: min(520px, 100%); container-type: inline-size; }
.fx__ph { position: relative; display: flex; flex-direction: column; gap: 8px; aspect-ratio: 9 / 16; padding: 16px 12px 14px; border-radius: 22px; background: var(--color-paper-3); box-shadow: 0 0 0 1px var(--color-glass-edge), 0 30px 60px -24px var(--color-shadow); font-size: 11px; color: var(--color-ink-2); }
.fx__ph::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; box-shadow: 0 0 0 2px var(--color-accent), 0 0 40px -6px var(--color-accent); opacity: 0; pointer-events: none; }
.fx__ph b { margin: 6px 0 4px; color: var(--color-ink); font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.fx__in { display: block; height: 26px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--color-rule); background: color-mix(in oklab, var(--color-ink) 5%, transparent); }
.fx__in--s { width: 70%; height: 8px; margin-inline: auto; border-radius: 4px; box-shadow: none; background: color-mix(in oklab, var(--color-ink) 14%, transparent); }
.fx__btn { display: grid; place-items: center; height: 30px; margin-top: auto; border-radius: 15px; background: var(--color-accent); color: var(--color-accent-ink); font-weight: 600; }
.fx__opt { position: relative; display: flex; align-items: center; height: 32px; padding: 0 10px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--color-rule); }
.fx__opt--pick::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px var(--color-accent); background: color-mix(in oklab, var(--color-accent) 14%, transparent); }
.fx__ph--3 { align-items: center; justify-content: center; text-align: center; }
.fx__ok { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: color-mix(in oklab, var(--color-ok) 22%, transparent); color: var(--color-ok); }
.fx__ok svg { width: 24px; height: 24px; }
.fx__ar { width: 100%; color: var(--color-muted); }
.fx__ar path { stroke-dasharray: 40; }
.fx__ptr { --w: calc((100cqw - 56px) / 3); --h: calc(var(--w) * 16 / 9); position: absolute; left: 0; top: 0; z-index: 2; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: color-mix(in oklab, var(--color-ink) 30%, transparent); box-shadow: 0 0 0 2px var(--color-ink); opacity: 0; pointer-events: none; }
.pv.is-on .fx__ptr { animation: fx-ptr 7s var(--ease-in-out) infinite; }
.pv.is-on .fx__ph--1::after { animation: fx-a1 7s linear infinite; }
.pv.is-on .fx__ph--2::after { animation: fx-a2 7s linear infinite; }
.pv.is-on .fx__ph--3::after { animation: fx-a3 7s linear infinite; }
.pv.is-on .fx__ph--1 .fx__btn { animation: fx-p1 7s linear infinite; }
.pv.is-on .fx__ph--2 .fx__btn { animation: fx-p2 7s linear infinite; }
.pv.is-on .fx__opt--pick::after { animation: fx-pick 7s linear infinite; }
.pv.is-on .fx__ok { animation: fx-ok 7s var(--ease-out) infinite; }
.pv.is-on .fx__ar:nth-of-type(1) path { animation: fx-d1 7s var(--ease-out) infinite; }
.pv.is-on .fx__ar:nth-of-type(2) path { animation: fx-d2 7s var(--ease-out) infinite; }
@keyframes fx-ptr {
  0% { opacity: 0; transform: translate(calc(var(--w) * 0.5), calc(var(--h) * 0.62)); }
  6% { opacity: 1; }
  13% { transform: translate(calc(var(--w) * 0.5), calc(var(--h) * 0.88)); }
  15% { transform: translate(calc(var(--w) * 0.5), calc(var(--h) * 0.88)) scale(0.75); }
  18% { transform: translate(calc(var(--w) * 0.5), calc(var(--h) * 0.88)); }
  32% { transform: translate(calc(var(--w) * 1.5 + 28px), calc(var(--h) * 0.44)); }
  34% { transform: translate(calc(var(--w) * 1.5 + 28px), calc(var(--h) * 0.44)) scale(0.75); }
  37% { transform: translate(calc(var(--w) * 1.5 + 28px), calc(var(--h) * 0.44)); }
  50% { transform: translate(calc(var(--w) * 1.5 + 28px), calc(var(--h) * 0.88)); }
  52% { transform: translate(calc(var(--w) * 1.5 + 28px), calc(var(--h) * 0.88)) scale(0.75); }
  55% { transform: translate(calc(var(--w) * 1.5 + 28px), calc(var(--h) * 0.88)); }
  72% { opacity: 1; transform: translate(calc(var(--w) * 2.5 + 56px), calc(var(--h) * 0.7)); }
  84%, 100% { opacity: 0; transform: translate(calc(var(--w) * 2.5 + 56px), calc(var(--h) * 0.7)); }
}
@keyframes fx-a1 { 0%, 15% { opacity: 1; } 19%, 100% { opacity: 0; } }
@keyframes fx-a2 { 0%, 17% { opacity: 0; } 21%, 53% { opacity: 1; } 57%, 100% { opacity: 0; } }
@keyframes fx-a3 { 0%, 55% { opacity: 0; } 59%, 94% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes fx-p1 { 0%, 14% { transform: none; } 15.5% { transform: scale(0.94); } 17%, 100% { transform: none; } }
@keyframes fx-p2 { 0%, 51% { transform: none; } 52.5% { transform: scale(0.94); } 54%, 100% { transform: none; } }
@keyframes fx-pick { 0%, 33% { opacity: 0; } 35%, 94% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes fx-ok { 0%, 57% { opacity: 0; transform: scale(0.4); } 62% { opacity: 1; transform: scale(1.08); } 65%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: scale(0.4); } }
@keyframes fx-d1 { 0%, 16% { stroke-dashoffset: 40; } 22%, 94% { stroke-dashoffset: 0; } 98%, 100% { stroke-dashoffset: 40; } }
@keyframes fx-d2 { 0%, 53% { stroke-dashoffset: 40; } 59%, 94% { stroke-dashoffset: 0; } 98%, 100% { stroke-dashoffset: 40; } }

/* pv: design system, um token muda e todos os componentes acompanham */
@property --dh { syntax: "<number>"; inherits: true; initial-value: 284; }
@property --dr { syntax: "<length>"; inherits: true; initial-value: 10px; }
@property --dp { syntax: "<length>"; inherits: true; initial-value: 14px; }
.dsx { --acc: oklch(64% 0.2 var(--dh)); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 14px; align-items: start; width: min(540px, 100%); }
.pv.is-on .dsx { animation: ds-cycle 9s var(--ease-in-out) infinite; }
@keyframes ds-cycle { 0%, 28% { --dh: 284; --dr: 10px; --dp: 14px; } 33%, 61% { --dh: 160; --dr: 22px; --dp: 18px; } 66%, 94% { --dh: 40; --dr: 3px; --dp: 10px; } 100% { --dh: 284; --dr: 10px; --dp: 14px; } }
.dsx__tk { display: grid; gap: 10px; padding: 16px; border-radius: 18px; background: var(--color-paper-3); box-shadow: 0 0 0 1px var(--color-glass-edge); }
.dsx__h { font-size: var(--text-xs); color: var(--color-muted); font-weight: 600; }
.dsx__row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--color-ink-2); }
.dsx__row code { display: grid; margin-left: auto; padding: 2px 8px; border-radius: 6px; background: color-mix(in oklab, var(--color-ink) 8%, transparent); color: var(--color-ink); font-size: 12px; }
.dsx__row s { grid-area: 1 / 1; text-decoration: none; text-align: right; }
.dsx__row s + s { opacity: 0; }
.pv.is-on .dsx__row s:nth-child(1) { animation: tk1 9s linear infinite; }
.pv.is-on .dsx__row s:nth-child(2) { animation: tk2 9s linear infinite; }
.pv.is-on .dsx__row s:nth-child(3) { animation: tk3 9s linear infinite; }
@keyframes tk1 { 0%, 30% { opacity: 1; } 32%, 96% { opacity: 0; } 99%, 100% { opacity: 1; } }
@keyframes tk2 { 0%, 30% { opacity: 0; } 32%, 63% { opacity: 1; } 65%, 100% { opacity: 0; } }
@keyframes tk3 { 0%, 63% { opacity: 0; } 65%, 96% { opacity: 1; } 99%, 100% { opacity: 0; } }
.dsx__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--acc); }
.dsx__cmp { display: grid; gap: 10px; padding: var(--dp); border-radius: calc(var(--dr) + 8px); background: var(--color-paper-3); box-shadow: 0 0 0 1px var(--color-glass-edge), 0 30px 60px -24px var(--color-shadow); font-size: 12px; }
.dsx__line { display: flex; align-items: center; gap: 8px; }
.dsx__btn { display: inline-grid; place-items: center; height: 34px; padding: 0 var(--dp); border-radius: var(--dr); background: var(--acc); color: var(--color-white); font-weight: 600; }
.dsx__btn--q { background: transparent; color: var(--acc); box-shadow: inset 0 0 0 1.5px var(--acc); }
.dsx__input { display: flex; align-items: center; height: 34px; padding: 0 12px; border-radius: var(--dr); box-shadow: inset 0 0 0 1.5px var(--acc); color: var(--color-ink-2); }
.dsx__chip { padding: 4px 10px; border-radius: 999px; background: color-mix(in oklab, var(--acc) 22%, transparent); color: var(--acc); font-weight: 600; }
.dsx__tg { position: relative; width: 38px; height: 22px; margin-left: auto; border-radius: 11px; background: var(--acc); }
.dsx__tg b { position: absolute; top: 3px; right: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--color-white); }
.dsx__card { display: grid; gap: 4px; padding: var(--dp); border-radius: var(--dr); background: color-mix(in oklab, var(--color-ink) 6%, transparent); }
.dsx__card b { color: var(--color-ink); font-size: 13px; }
.dsx__card span { color: var(--color-muted); }
.dsx__bar { display: block; height: 6px; margin-top: 6px; border-radius: 3px; background: color-mix(in oklab, var(--color-ink) 12%, transparent); overflow: hidden; }
.dsx__bar i { display: block; width: 64%; height: 100%; border-radius: inherit; background: var(--acc); }

/* pv: sites, a mesma página em três larguras */
.six { display: grid; justify-items: center; gap: 12px; width: 100%; }
.six__frame { width: 100%; max-width: 520px; height: 330px; padding: 12px; border-radius: 20px; background: var(--color-paper-3); box-shadow: 0 0 0 1px var(--color-glass-edge), 0 30px 60px -24px var(--color-shadow); overflow: hidden; container-type: inline-size; view-transition-name: six-frame; }
.six[data-w="768"] .six__frame { max-width: 340px; }
.six[data-w="390"] .six__frame { max-width: 180px; }
.six__site { display: grid; gap: 12px; }
.six__nav { display: flex; align-items: center; gap: 8px; height: 18px; }
.six__nav b { width: 44px; height: 9px; margin-right: auto; border-radius: 3px; background: var(--color-accent); }
.six__nav i { width: 26px; height: 6px; border-radius: 3px; background: color-mix(in oklab, var(--color-ink) 22%, transparent); }
.six__nav em { display: none; width: 16px; height: 10px; border-block: 2px solid color-mix(in oklab, var(--color-ink) 50%, transparent); }
.six__hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 12px; align-items: center; }
.six__txt { display: grid; gap: 7px; }
.six__txt i { display: block; height: 12px; border-radius: 4px; background: var(--color-ink); opacity: 0.85; }
.six__txt i:nth-child(2) { width: 70%; }
.six__txt .six__s { height: 6px; width: 85%; opacity: 0.3; margin-top: 4px; }
.six__cta { width: 70px; height: 20px; margin-top: 6px; border-radius: 10px; background: var(--color-accent); }
.six__img { aspect-ratio: 4 / 3; border-radius: 12px; background: radial-gradient(90% 90% at 75% 20%, color-mix(in oklab, var(--color-accent) 70%, transparent), transparent 70%), color-mix(in oklab, var(--color-ink) 10%, transparent); }
.six__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.six__cards i { height: 64px; border-radius: 10px; background: color-mix(in oklab, var(--color-ink) 7%, transparent); box-shadow: inset 0 0 0 1px var(--color-rule); }
@container (max-width: 320px) { .six__hero { grid-template-columns: minmax(0, 1fr); } .six__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .six__nav i:nth-of-type(3) { display: none; } }
@container (max-width: 170px) { .six__nav i { display: none; } .six__nav em { display: block; } .six__cards { grid-template-columns: minmax(0, 1fr); } .six__cards i { height: 44px; } .six__cta { width: 100%; } }
.six__w { display: grid; font-size: var(--text-xs); color: var(--color-muted); font-variant-numeric: tabular-nums; }
.six__w s { grid-area: 1 / 1; text-decoration: none; opacity: 0; transition: opacity var(--dur-long) var(--ease-out); }
.six[data-w="1440"] .six__w s:nth-child(1), .six[data-w="768"] .six__w s:nth-child(2), .six[data-w="390"] .six__w s:nth-child(3) { opacity: 1; }
::view-transition-group(six-frame) { animation-duration: 0.7s; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition { pointer-events: none; }

/* pv: ferramentas com IA, a planilha de sexta se preenchendo */
.aix { display: grid; gap: 12px; width: min(460px, 100%); padding: 18px; border-radius: 20px; background: var(--color-paper-3); box-shadow: 0 0 0 1px var(--color-glass-edge), 0 30px 60px -24px var(--color-shadow); }
.aix__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.aix__top b { font-size: 15px; font-weight: 600; color: var(--color-ink); }
.aix__btn { padding: 7px 12px; border-radius: 999px; background: var(--color-accent); color: var(--color-accent-ink); font-size: 12px; font-weight: 600; white-space: nowrap; }
.pv.is-on .aix__btn { animation: ai-press 8s linear infinite; }
@keyframes ai-press { 0%, 7% { transform: none; } 9% { transform: scale(0.93); } 11%, 100% { transform: none; } }
.aix__tbl { display: grid; }
.aix__r { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 64px 76px; align-items: center; gap: 8px; padding: 10px 10px; border-top: 1px solid var(--color-rule); font-size: 13px; color: var(--color-ink-2); }
.aix__r::before { content: ""; position: absolute; inset: 2px -4px; border-radius: 8px; background: color-mix(in oklab, var(--color-accent) 18%, transparent); opacity: 0; }
.aix__v { text-align: right; color: var(--color-ink); }
.aix__st { display: grid; justify-items: end; }
.aix__st s { grid-area: 1 / 1; padding: 3px 9px; border-radius: 999px; text-decoration: none; font-size: 11px; font-weight: 600; }
.aix__st s:first-child { opacity: 0; color: var(--color-muted); box-shadow: inset 0 0 0 1px var(--color-rule); }
.aix__st s:last-child { background: color-mix(in oklab, var(--color-ok) 20%, transparent); color: var(--color-ok); }
.aix__bar { display: block; height: 4px; border-radius: 2px; background: color-mix(in oklab, var(--color-ink) 12%, transparent); overflow: hidden; }
.aix__bar i { display: block; height: 100%; border-radius: inherit; background: var(--color-accent); transform-origin: left; }
.pv.is-on .aix__bar i { animation: ai-bar 8s var(--ease-out) infinite; }
@keyframes ai-v0 { 0%, 14% { clip-path: inset(0 100% 0 0); } 19%, 92% { clip-path: inset(0 0 0 0); } 97%, 100% { clip-path: inset(0 100% 0 0); } }
@keyframes ai-p0 { 0%, 18% { opacity: 1; } 20%, 93% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes ai-o0 { 0%, 18% { opacity: 0; transform: scale(0.8); } 21%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes ai-f0 { 0%, 14% { opacity: 0; } 16% { opacity: 1; } 23%, 100% { opacity: 0; } }
.pv.is-on .aix__r:nth-child(1) .aix__v { animation: ai-v0 8s linear infinite; } .pv.is-on .aix__r:nth-child(1) .aix__st s:first-child { animation: ai-p0 8s linear infinite; } .pv.is-on .aix__r:nth-child(1) .aix__st s:last-child { animation: ai-o0 8s var(--ease-out) infinite; } .pv.is-on .aix__r:nth-child(1)::before { animation: ai-f0 8s linear infinite; }
@keyframes ai-v1 { 0%, 26% { clip-path: inset(0 100% 0 0); } 31%, 92% { clip-path: inset(0 0 0 0); } 97%, 100% { clip-path: inset(0 100% 0 0); } }
@keyframes ai-p1 { 0%, 30% { opacity: 1; } 32%, 93% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes ai-o1 { 0%, 30% { opacity: 0; transform: scale(0.8); } 33%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes ai-f1 { 0%, 26% { opacity: 0; } 28% { opacity: 1; } 35%, 100% { opacity: 0; } }
.pv.is-on .aix__r:nth-child(2) .aix__v { animation: ai-v1 8s linear infinite; } .pv.is-on .aix__r:nth-child(2) .aix__st s:first-child { animation: ai-p1 8s linear infinite; } .pv.is-on .aix__r:nth-child(2) .aix__st s:last-child { animation: ai-o1 8s var(--ease-out) infinite; } .pv.is-on .aix__r:nth-child(2)::before { animation: ai-f1 8s linear infinite; }
@keyframes ai-v2 { 0%, 38% { clip-path: inset(0 100% 0 0); } 43%, 92% { clip-path: inset(0 0 0 0); } 97%, 100% { clip-path: inset(0 100% 0 0); } }
@keyframes ai-p2 { 0%, 42% { opacity: 1; } 44%, 93% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes ai-o2 { 0%, 42% { opacity: 0; transform: scale(0.8); } 45%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes ai-f2 { 0%, 38% { opacity: 0; } 40% { opacity: 1; } 47%, 100% { opacity: 0; } }
.pv.is-on .aix__r:nth-child(3) .aix__v { animation: ai-v2 8s linear infinite; } .pv.is-on .aix__r:nth-child(3) .aix__st s:first-child { animation: ai-p2 8s linear infinite; } .pv.is-on .aix__r:nth-child(3) .aix__st s:last-child { animation: ai-o2 8s var(--ease-out) infinite; } .pv.is-on .aix__r:nth-child(3)::before { animation: ai-f2 8s linear infinite; }
@keyframes ai-v3 { 0%, 50% { clip-path: inset(0 100% 0 0); } 55%, 92% { clip-path: inset(0 0 0 0); } 97%, 100% { clip-path: inset(0 100% 0 0); } }
@keyframes ai-p3 { 0%, 54% { opacity: 1; } 56%, 93% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes ai-o3 { 0%, 54% { opacity: 0; transform: scale(0.8); } 57%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes ai-f3 { 0%, 50% { opacity: 0; } 52% { opacity: 1; } 59%, 100% { opacity: 0; } }
.pv.is-on .aix__r:nth-child(4) .aix__v { animation: ai-v3 8s linear infinite; } .pv.is-on .aix__r:nth-child(4) .aix__st s:first-child { animation: ai-p3 8s linear infinite; } .pv.is-on .aix__r:nth-child(4) .aix__st s:last-child { animation: ai-o3 8s var(--ease-out) infinite; } .pv.is-on .aix__r:nth-child(4)::before { animation: ai-f3 8s linear infinite; }
@keyframes ai-v4 { 0%, 62% { clip-path: inset(0 100% 0 0); } 67%, 92% { clip-path: inset(0 0 0 0); } 97%, 100% { clip-path: inset(0 100% 0 0); } }
@keyframes ai-p4 { 0%, 66% { opacity: 1; } 68%, 93% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes ai-o4 { 0%, 66% { opacity: 0; transform: scale(0.8); } 69%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes ai-f4 { 0%, 62% { opacity: 0; } 64% { opacity: 1; } 71%, 100% { opacity: 0; } }
.pv.is-on .aix__r:nth-child(5) .aix__v { animation: ai-v4 8s linear infinite; } .pv.is-on .aix__r:nth-child(5) .aix__st s:first-child { animation: ai-p4 8s linear infinite; } .pv.is-on .aix__r:nth-child(5) .aix__st s:last-child { animation: ai-o4 8s var(--ease-out) infinite; } .pv.is-on .aix__r:nth-child(5)::before { animation: ai-f4 8s linear infinite; }
@keyframes ai-bar { 0%, 14% { transform: scaleX(0); } 19% { transform: scaleX(0.20); } 31% { transform: scaleX(0.40); } 43% { transform: scaleX(0.60); } 55% { transform: scaleX(0.80); } 67% { transform: scaleX(1.00); } 92% { transform: scaleX(1); } 97%, 100% { transform: scaleX(0); } }

/* lista de serviços: avança sozinha, barra de progresso no item ativo */
.svc li { position: relative; }
.svc li:has(button[aria-pressed="true"])::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--color-accent); transform-origin: left; transform: scaleX(0); }
.services.is-auto .svc li:has(button[aria-pressed="true"])::after { animation: svc-bar var(--svc-dur, 8s) linear both; }
.services.is-held .svc li:has(button[aria-pressed="true"])::after { animation-play-state: paused; }
@keyframes svc-bar { to { transform: scaleX(1); } }

/* pv: brand lab */
.lab { display: grid; gap: var(--space-sm); width: min(560px, 100%); }
.lab label { font-size: var(--text-sm); font-weight: 500; color: var(--color-ink-2); }
.lab input { min-height: 52px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-input); background: var(--color-paper); color: var(--color-ink); font: 500 var(--text-lg) var(--font-display); letter-spacing: -0.02em; outline: 2px solid transparent; outline-offset: -3px; }
.lab input:hover { border-color: var(--color-ink-2); }
.lab input:focus-visible { outline-color: var(--color-focus); }
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-sm); margin-top: var(--space-sm); }
.spec { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 4; margin: 0; padding: var(--space-md); border-radius: var(--radius-inner); text-align: center; line-height: 1; overflow-wrap: anywhere; min-width: 0; overflow: hidden; }
.spec--serif { background: var(--color-light); color: var(--color-light-ink); font-family: var(--font-serif); font-size: clamp(1.6rem, 2.2vw, 2.4rem); }
.spec--wide { background: var(--color-accent); color: var(--color-accent-ink); font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 1.5vw, 1.6rem); letter-spacing: -0.05em; }
.spec--cond { background: var(--color-paper); color: var(--color-ink); font-family: var(--font-cond); font-weight: 600; font-size: clamp(2rem, 3vw, 3.2rem); box-shadow: inset 0 0 0 1px var(--color-rule); }


.gauge { position: relative; display: grid; justify-items: center; width: 260px; padding: var(--space-lg) var(--space-lg) var(--space-md); }
.gauge svg { width: 100%; overflow: visible; }
.gauge path { fill: none; stroke-width: 10; stroke-linecap: round; }
.gauge__bg { stroke: color-mix(in oklab, var(--color-ink) 12%, transparent); }
.gauge__fg { stroke: var(--color-accent); stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.6s var(--ease-out); }
.card.is-in .gauge__fg { stroke-dashoffset: 22; }
.gauge b { margin-top: -2.4rem; font-size: 2.2rem; font-weight: 500; }
.gauge span { font-size: var(--text-xs); color: var(--color-muted); }
.pix { display: flex; align-items: center; gap: var(--space-lg); padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-light); color: var(--color-light-ink); box-shadow: 0 30px 60px -30px var(--color-shadow); }
.qr { display: grid; grid-template-columns: repeat(21, 5px); grid-auto-rows: 5px; }
.qr i { background: var(--color-light-ink); }
.qr i.o { background: transparent; }
.pix__info { display: grid; gap: var(--space-2xs); font-size: var(--text-sm); }
.pix__info b { font-size: 1.5rem; font-weight: 500; }
.pix__ok { justify-self: start; padding: var(--space-2xs) var(--space-xs); border-radius: 4px; background: color-mix(in oklab, var(--color-ok) 30%, var(--color-light)); font-style: normal; font-size: var(--text-xs); }
.js .pix__ok { opacity: 0; transform: scale(0.8); transition: opacity var(--dur-long) var(--ease-out) 1.2s, transform var(--dur-long) var(--ease-out) 1.2s; }
.card.is-in .pix__ok { opacity: 1; transform: none; }
.cal { display: grid; gap: var(--space-xs); width: min(300px, 100%); padding: var(--space-md); }
.cal__h { display: flex; justify-content: space-between; font-size: var(--text-xs); color: var(--color-muted); padding-bottom: var(--space-xs); }
.cal__slot { display: flex; gap: var(--space-sm); padding: var(--space-sm); border-radius: var(--radius-inner); background: color-mix(in oklab, var(--color-ink) 6%, transparent); font-size: var(--text-sm); }
.cal__slot b { font-weight: 500; font-variant-numeric: tabular-nums; }
.cal__slot--on { background: var(--color-accent); color: var(--color-accent-ink); }
.a11y { display: flex; align-items: center; gap: var(--space-xl); }
.a11y__aa { font-family: var(--font-serif); font-size: 7rem; line-height: 1; color: var(--color-ink); }
.a11y div { display: grid; gap: var(--space-xs); }
.a11y b { font-size: 1.6rem; font-weight: 500; }
.a11y__pass { justify-self: start; padding: var(--space-2xs) var(--space-xs); border-radius: 4px; background: color-mix(in oklab, var(--color-ok) 22%, transparent); color: var(--color-ok); font-size: var(--text-xs); }
.viz--game { padding: 0; }
#grav { position: absolute; inset: 0; width: 100%; height: 100%; }
.grav__btn { position: absolute; right: var(--space-md); bottom: var(--space-md); min-height: 40px; padding: 0 var(--space-md); border-radius: 20px; border: var(--rule-hair) solid var(--color-glass-edge); background: var(--color-glass); color: var(--color-ink); font: 500 var(--text-sm)/1 var(--font-body); cursor: pointer; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background-color var(--dur-short) var(--ease-out); }
.grav__btn:hover { background: var(--color-paper-3); }
.grav__btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

.order { display: grid; gap: var(--space-xs); width: min(340px, 100%); padding: var(--space-lg); }
.order__row { display: flex; justify-content: space-between; padding-block: var(--space-xs); border-bottom: var(--rule-hair) solid var(--color-glass-edge); font-size: var(--text-sm); }
.order__btn { margin-top: var(--space-sm); display: grid; place-items: center; min-height: 40px; border-radius: 20px; background: var(--color-accent); color: var(--color-accent-ink); font-size: var(--text-sm); font-weight: 500; }

/* contact */
.contact { padding-block: var(--section-gap); background: var(--color-light); color: var(--color-light-ink); }
.contact h2 { color: var(--color-light-ink); }
.contact .lead { color: color-mix(in oklab, var(--color-light-ink) 78%, var(--color-light)); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: start; }
.contact__head { display: grid; gap: var(--space-md); }
.form { display: grid; gap: var(--space-lg); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.fld { display: grid; gap: var(--space-xs); }
.fld label, .chips legend { font-size: var(--text-sm); font-weight: 500; color: color-mix(in oklab, var(--color-light-ink) 82%, var(--color-light)); }
.fld input, .fld textarea { min-height: 52px; padding: var(--space-sm) var(--space-md); border: var(--rule-hair) solid color-mix(in oklab, var(--color-light-ink) 62%, var(--color-light)); border-radius: var(--radius-input); background: var(--color-light); color: var(--color-light-ink); font-size: var(--text-md); outline: 2px solid transparent; outline-offset: -3px; }
.fld textarea { resize: vertical; line-height: 1.5; }
.fld input:hover, .fld textarea:hover { border-color: var(--color-light-ink); }
.fld input:focus-visible, .fld textarea:focus-visible { outline-color: var(--color-light-focus); }
.fld [aria-invalid] { border-color: var(--color-light-error); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin: 0; padding: 0; border: 0; }
.chips legend { margin-bottom: var(--space-xs); padding: 0; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border: var(--rule-hair) solid color-mix(in oklab, var(--color-light-ink) 62%, var(--color-light)); border-radius: 22px; font-size: var(--text-sm); font-weight: 500; transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
.chips label:hover span { border-color: var(--color-light-ink); }
.chips input:checked + span { background: var(--color-light-ink); color: var(--color-light); border-color: var(--color-light-ink); }
.chips input:focus-visible + span { outline: 2px solid var(--color-light-focus); outline-offset: 2px; }
.form__foot { display: flex; align-items: center; gap: var(--space-lg); flex-wrap: wrap; }
.contact .btn--primary::before { background: var(--color-light-ink); }
.contact .btn--primary:hover { color: var(--color-light); border-color: var(--color-light-ink); }
.contact .btn:focus-visible { outline-color: var(--color-light-ink); }
.form__help { min-height: 1lh; font-size: var(--text-sm); color: color-mix(in oklab, var(--color-light-ink) 82%, var(--color-light)); max-width: 46ch; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* services overrides for the light band */
.svc { border-top-color: var(--color-light-rule); }
.svc li { border-bottom-color: var(--color-light-rule); }
.svc button { color: var(--color-light-muted); }
.svc button:hover { color: var(--color-light-ink); }
.svc button[aria-pressed="true"] { color: var(--color-light-ink); }
.svc__d { color: var(--color-light-muted); }
.svc__t { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; }
.svc button:focus-visible { outline-color: var(--color-light-focus); }
.preview { background-color: var(--color-paper); background-image: radial-gradient(70% 60% at 70% 15%, color-mix(in oklab, var(--color-accent) 16%, transparent), transparent); background-size: auto; border: 0; border-radius: var(--radius-card); color: var(--color-ink); }

/* worlds: Apple-style card rail */
.worlds { padding-block: var(--section-gap); background: var(--color-white); color: var(--color-light-ink); overflow: clip; }
.worlds__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--gap-columns); align-items: end; margin-bottom: var(--space-xl); }
.rail { --edge: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); display: grid; grid-auto-flow: column; grid-auto-columns: clamp(280px, 26%, 340px); gap: var(--space-md); padding-inline: var(--edge); padding-block: var(--space-md) var(--space-xl); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail:focus-visible { outline: 2px solid var(--color-light-focus); outline-offset: -2px; }
.card { position: relative; isolation: isolate; display: flex; flex-direction: column; height: 460px; border-radius: var(--radius-card); overflow: hidden; scroll-snap-align: start; background: var(--color-paper); color: var(--color-ink); box-shadow: 0 2px 12px color-mix(in oklab, var(--color-light-ink) 8%, transparent); transition: transform var(--dur-long) var(--ease-out), box-shadow var(--dur-long) var(--ease-out); }
.card:hover { transform: scale(1.015); box-shadow: 0 8px 30px color-mix(in oklab, var(--color-light-ink) 16%, transparent); }
.card__text { position: relative; z-index: 2; display: grid; gap: var(--space-2xs); padding: var(--space-lg) var(--space-lg) 0; }
.card__text h3 { font-size: var(--text-xl); }
.card__text p { font-size: var(--text-sm); color: var(--color-ink-2); max-width: 30ch; }
.card__viz { position: relative; z-index: 2; flex: 1; display: grid; place-items: center; padding: var(--space-lg); }
.card__img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(0.8); mix-blend-mode: luminosity; opacity: 0.6; }
.card--photo { background: linear-gradient(160deg, var(--color-paper) 30%, var(--color-accent-deep)); }
.card--photo::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(to bottom, var(--color-paper) 0%, color-mix(in oklab, var(--color-paper) 30%, transparent) 40%, transparent 70%); }
.card--light { background: var(--color-light); color: var(--color-light-ink); box-shadow: none; }
.card--light .card__text p { color: var(--color-light-muted); }
.card--dark { background: var(--color-paper-2); }
.card--game canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
.grav__btn { position: absolute; z-index: 3; left: 50%; bottom: var(--space-lg); translate: -50% 0; min-height: 40px; padding: 0 var(--space-md); border-radius: 999px; border: 0; background: var(--color-glass); color: var(--color-ink); font: 500 var(--text-sm)/1 var(--font-body); white-space: nowrap; cursor: pointer; box-shadow: inset 0 0 0 1px var(--color-glass-edge); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: background-color var(--dur-short) var(--ease-out); }
.grav__btn:hover { background: var(--color-paper-3); }
.grav__btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.glass { border-radius: var(--radius-inner); background: var(--color-glass); box-shadow: inset 0 0 0 1px var(--color-glass-edge), 0 30px 60px -30px var(--color-shadow); -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5); }
.rail__nav { display: flex; justify-content: flex-end; gap: var(--space-sm); }
.round { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--color-light); color: var(--color-light-ink); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), opacity var(--dur-short) var(--ease-out); }
.round svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.round:hover { background: var(--color-light-rule); }
.round:disabled { background: var(--color-white); color: var(--color-light-rule); box-shadow: inset 0 0 0 1px var(--color-light-rule); cursor: default; }
.round:focus-visible { outline: 2px solid var(--color-light-focus); outline-offset: 2px; }
.gauge { width: 220px; }
.card .pix { padding: var(--space-md); gap: var(--space-md); border-radius: var(--radius-inner); background: var(--color-white); box-shadow: 0 20px 40px -20px color-mix(in oklab, var(--color-light-ink) 30%, transparent); }
.card .qr { grid-template-columns: repeat(21, 4px); grid-auto-rows: 4px; }
.card .a11y__aa { font-size: 6rem; }
.card .a11y { gap: var(--space-lg); }
.card.is-in .gauge__fg { stroke-dashoffset: 22; }
.card.is-in .pix__ok { opacity: 1; transform: none; }
.card .order { width: 100%; }

/* tokens: configurator */
.tokens { padding-block: var(--section-gap); background: var(--color-paper-2); }
.tokens__head { display: grid; gap: var(--space-sm); justify-items: center; text-align: center; margin-bottom: var(--space-2xl); }
.tokens__head .lead { max-width: 36ch; }
.config { display: grid; grid-template-columns: minmax(0, 1fr); border-radius: var(--radius-card); background: var(--color-paper); overflow: hidden; }
.config__stage { display: grid; place-items: center; padding: var(--space-2xl) var(--space-2xl) var(--space-xl); background: radial-gradient(70% 80% at 50% 30%, oklch(85% 0.08 var(--tk-h, 284) / 0.55), transparent 70%), var(--color-paper-3); transition: background var(--dur-long) var(--ease-out); }
.config__panel { display: flex; flex-wrap: wrap; align-items: end; justify-content: center; gap: var(--space-lg) var(--space-xl); padding: var(--space-lg) var(--space-xl); }
.config__panel .seg--opt { width: auto; }
.tk-code { flex-basis: 100%; text-align: center; }
.tk-code .code { text-align: left; max-width: 560px; margin-inline: auto; }
.opt { display: grid; gap: var(--space-xs); margin: 0; padding: 0; border: 0; min-width: 0; }
.opt legend { padding: 0; margin-bottom: var(--space-xs); font-size: var(--text-sm); font-weight: 600; color: var(--color-ink); }
.seg--opt { display: grid; width: 100%; }
.seg--opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg--opt input:checked + label { background: var(--color-ink); color: var(--color-paper); }
.seg--opt input:focus-visible + label { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.seg--opt label { transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.swatches { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.swatches input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatches label { width: 32px; height: 32px; border-radius: 50%; background: oklch(64% 0.17 var(--h)); cursor: pointer; box-shadow: 0 0 0 2px var(--color-paper), 0 0 0 3px transparent; transition: box-shadow var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.swatches label:hover { transform: scale(1.08); }
.swatches input:checked + label { box-shadow: 0 0 0 3px var(--color-paper), 0 0 0 5px var(--color-ink); }
.swatches input:focus-visible + label { outline: 2px solid var(--color-focus); outline-offset: 6px; }
.tk-code summary { cursor: pointer; font-size: var(--text-sm); font-weight: 500; color: var(--color-accent-text); list-style: none; padding-block: var(--space-xs); }
.tk-code summary::-webkit-details-marker { display: none; }
.tk-code summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: 4px; }
.tk-code .code { margin: var(--space-xs) 0 0; padding: var(--space-md); border-radius: var(--radius-inner); background: var(--color-paper); font-size: 0.78rem; line-height: 1.6; color: var(--color-ink-2); white-space: pre; overflow-x: auto; }
/* sample landing page section, driven by --tk-* */
.lp { --tk-h: 284; --tk-r: 12px; --tk-d: 18px; --tk-w: 600; --bg: var(--color-white); --fg: var(--color-light-ink); --sub: var(--color-light-muted); --surf: var(--color-light); --line: var(--color-light-rule);
  --brand: oklch(56% 0.17 var(--tk-h)); --brand-soft: oklch(94% 0.05 var(--tk-h)); --brand-text: oklch(42% 0.14 var(--tk-h));
  position: relative; display: grid; gap: calc(var(--tk-d) * 2.2); width: 100%; padding: calc(var(--tk-d) * 1.1) calc(var(--tk-d) * 2.2) calc(var(--tk-d) * 2.4); border-radius: calc(var(--tk-r) + 12px); background: var(--bg); color: var(--fg); box-shadow: 0 40px 80px -30px var(--color-shadow); text-align: left; transition: background-color var(--dur-long) var(--ease-out), color var(--dur-long) var(--ease-out), gap var(--dur-long) var(--ease-out), padding var(--dur-long) var(--ease-out), border-radius var(--dur-long) var(--ease-out); }
.lp[data-theme="dark"] { --bg: oklch(17% 0.01 var(--tk-h)); --fg: var(--color-ink); --sub: var(--color-muted); --surf: oklch(24% 0.015 var(--tk-h)); --line: var(--color-rule); --brand: oklch(70% 0.15 var(--tk-h)); --brand-soft: oklch(32% 0.07 var(--tk-h)); --brand-text: oklch(86% 0.09 var(--tk-h)); }
.lp * { transition: background-color var(--dur-long) var(--ease-out), color var(--dur-long) var(--ease-out), border-radius var(--dur-long) var(--ease-out), padding var(--dur-long) var(--ease-out), gap var(--dur-long) var(--ease-out); }
.lp__nav { display: flex; align-items: center; gap: var(--space-lg); padding-bottom: calc(var(--tk-d) * 0.9); border-bottom: 1px solid var(--line); font-size: var(--text-sm); }
.lp__logo { display: flex; align-items: center; gap: var(--space-xs); font-family: var(--font-display); font-size: 1.15rem; font-weight: var(--tk-w); letter-spacing: -0.02em; }
.lp__logo i { width: 18px; height: 18px; border-radius: calc(var(--tk-r) * 0.5); background: var(--brand); }
.lp__links { display: flex; gap: var(--space-lg); margin-left: auto; color: var(--sub); }
.lp__hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: calc(var(--tk-d) * 2); align-items: center; }
.lp__copy { display: grid; gap: calc(var(--tk-d) * 0.9); justify-items: start; }
.lp__chip { padding: var(--space-2xs) var(--space-sm); border-radius: 999px; background: var(--brand-soft); color: var(--brand-text); font-size: var(--text-xs); font-weight: 600; }
.lp__h { font-family: var(--font-display); font-size: clamp(1.9rem, 3.2vw, 3.1rem); font-weight: var(--tk-w); line-height: 1.04; letter-spacing: -0.035em; max-width: 14ch; transition: font-weight var(--dur-long) var(--ease-out); }
.lp__p { max-width: 40ch; color: var(--sub); font-size: var(--text-md); }
.lp__actions { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.lp__btn { display: inline-grid; place-items: center; min-height: 44px; padding: 0 calc(var(--tk-d) * 1.1); border-radius: var(--tk-r); background: var(--brand); color: var(--color-white); font-size: var(--text-sm); font-weight: 600; white-space: nowrap; }
.lp__btn--q { background: var(--surf); color: var(--brand-text); }
.lp__btn--sm { min-height: 34px; padding: 0 var(--space-md); }
.lp__plan { display: grid; gap: calc(var(--tk-d) * 0.7); padding: var(--tk-d); border-radius: calc(var(--tk-r) * 1.4); background: var(--surf); }
.lp__bag { display: grid; align-content: end; gap: var(--space-3xs); aspect-ratio: 5 / 4; padding: var(--tk-d); border-radius: var(--tk-r); background: radial-gradient(120% 90% at 80% 10%, color-mix(in oklab, var(--brand) 55%, transparent), transparent 60%), oklch(26% 0.03 var(--tk-h)); color: var(--color-white); }
.lp__bag span { font-size: var(--text-xs); opacity: 0.7; }
.lp__bag b { font-family: var(--font-display); font-size: 1.35rem; font-weight: var(--tk-w); letter-spacing: -0.02em; line-height: 1.1; }
.lp__bag em { font-style: normal; font-size: var(--text-sm); opacity: 0.8; }
.lp__row { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--text-sm); }
.lp__row b { font-family: var(--font-display); font-size: 1.25rem; font-weight: var(--tk-w); }
.lp__opts { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: calc(var(--tk-r) * 0.8); background: var(--bg); font-size: var(--text-sm); font-weight: 500; text-align: center; }
.lp__opts span { padding: 6px; border-radius: calc(var(--tk-r) * 0.65); color: var(--sub); }
.lp__opts .is-on { background: var(--brand); color: var(--color-white); }
.lp__feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(var(--tk-d) * 0.8); }
.lp__f { display: grid; gap: var(--space-3xs); align-content: start; padding: var(--tk-d); border-radius: var(--tk-r); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--text-sm); }
.lp__f i { display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: var(--space-xs); border-radius: calc(var(--tk-r) * 0.6); background: var(--brand-soft); color: var(--brand-text); font-style: normal; font-weight: 600; font-size: var(--text-xs); }
.lp__f b { font-weight: var(--tk-w); }
.lp__f span { color: var(--sub); }
.lp__tag { position: absolute; right: calc(var(--tk-d) * 2.2); bottom: var(--space-sm); font-size: var(--text-xs); color: var(--sub); }

/* process */
.process { padding-block: var(--section-gap); border-top: var(--rule-hair) solid var(--color-rule); }
.process h2 { margin-bottom: var(--space-2xl); max-width: 14ch; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-columns); }
.steps li { position: relative; display: grid; gap: var(--space-xs); align-content: start; padding: var(--space-lg); border-radius: var(--radius-inner); background: var(--color-paper-2); }
.steps__n { font-family: var(--font-display); font-size: 3rem; font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: var(--color-accent-text); font-variant-numeric: tabular-nums; margin-bottom: var(--space-sm); }
.steps h3 { font-size: var(--text-xl); }
.steps p { font-size: var(--text-sm); color: var(--color-ink-2); }

/* contact tweaks */
.contact { background: var(--color-light); }
.contact .btn--primary:hover { background: color-mix(in oklab, var(--color-accent) 86%, var(--color-light-ink)); }
.fld input, .fld textarea { border-radius: var(--radius-input); border-color: var(--color-light-muted); background: var(--color-white); }
.fld input:hover, .fld textarea:hover { border-color: var(--color-light-ink); }
.services .lead, .worlds .lead, .contact .lead { color: var(--color-light-muted); }
.chips span { border-color: var(--color-light-rule); background: var(--color-white); }

/* footer */
.foot { position: relative; padding-top: var(--space-lg); overflow: clip; border-top: var(--rule-hair) solid var(--color-rule); }
.foot__row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-lg); flex-wrap: wrap;  font-size: var(--text-xs); color: var(--color-muted); }
.foot__links { display: flex; gap: var(--space-lg); flex-wrap: wrap; }
.foot__links a { white-space: nowrap; color: var(--color-ink-2); text-decoration: none; padding-block: var(--space-xs); }
.foot__links a:hover { color: var(--color-ink); text-decoration: underline; }
.foot__links a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.giant { display: flex; align-items: flex-end; justify-content: center; gap: 2vw; margin-top: var(--space-2xl); height: 19vw; color: var(--color-paper-3); user-select: none; }
.giant > span { font-family: var(--font-display); font-weight: 700; font-size: 24vw; line-height: 0.74; letter-spacing: -0.06em; white-space: nowrap; color: var(--color-paper-3); transform: translateY(20%); }

/* reveal */
.js [data-reveal] { opacity: 0; transform: translateY(30px); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }

@media (max-width: 64rem), (max-height: 680px) {
  .story { height: auto; padding-block: var(--space-3xl); }
  .story__sticky { position: static; height: auto; }
  .story__inner { height: auto; }
  .rig { flex: none; }
}
@media (max-width: 64rem) {
  .rig { grid-template-columns: minmax(0, 1fr); }
  .screen { border-left: 0; border-top: var(--rule-hair) solid var(--color-rule); }
  .prompt__text { min-height: 0; }
  .prompt__log { margin-top: 0; }
  .services__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
  .preview { position: relative; top: 0; min-height: 460px; }
  .config { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 60rem) {
  :root { --gutter: 24px; }
  .nav__links { display: none; }
  .lang { margin-left: auto; }
  .guide__label { display: none; }
  .hero__text, .worlds__head, .contact__grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-lg); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash__body { grid-template-columns: minmax(0, 1fr); }
  .screen .code { width: auto; left: var(--space-md); right: var(--space-md); }
}
@media (max-width: 40rem) {
  :root { --section-gap: 104px; }
  .nav__inner { gap: var(--space-sm); }
  .logo__word > span:last-child, .nav__cta { display: none; }
  .seg button { padding: 0 var(--space-sm); font-size: var(--text-xs); }
  .prompt, .screen, .config__panel { padding: var(--space-lg); }
  .config__stage { padding: var(--space-xl) var(--space-md); }
  .form__row, .steps { grid-template-columns: minmax(0, 1fr); }
  .specs { grid-template-columns: minmax(0, 1fr); }
  .spec { aspect-ratio: auto; min-height: 96px; }
  .rail { grid-auto-columns: 82%; }
  .pix { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .js .mark__word > span, .js .hero__text, .js [data-reveal] { opacity: 1; transform: none; filter: none; }
  .js .guide { transform: none; }
  .caret, .dash__live i { animation: none; }
  .pv.is-on * { animation: none !important; }
  .card:hover { transform: none; }
}
html:not(.js) .pv:not(.is-on) { display: none; }
@media (prefers-reduced-motion: reduce) { .story { height: auto; padding-block: var(--space-3xl); } .story__sticky { position: static; height: auto; } .story__inner { height: auto; } .rig { flex: none; } }
/* tokens: tudo numa tela (cabeçalho + página de exemplo + controles) */
.tokens { padding-block: var(--space-xl); min-height: 100svh; display: grid; align-content: center; scroll-margin-top: 52px; }
.tokens__head .lead { max-width: 60ch; }
.tokens__head { gap: var(--space-2xs); margin-bottom: var(--space-md); }
.tokens__head h2 { font-size: clamp(2rem, min(3vw + 1rem, 6vh), 3.5rem); }
.config__stage { padding: var(--space-md) var(--space-2xl); }
.lp { gap: calc(var(--tk-d) * 1.3); padding: calc(var(--tk-d) * 0.8) calc(var(--tk-d) * 1.8) calc(var(--tk-d) * 1.4); }
.lp__nav { padding-bottom: calc(var(--tk-d) * 0.7); }
.lp__hero { gap: calc(var(--tk-d) * 1.6); }
.lp__copy { gap: calc(var(--tk-d) * 0.7); }
.lp__h { font-size: clamp(1.6rem, min(2.6vw, 4.4vh), 2.6rem); }
.lp__bag { aspect-ratio: 21 / 9; }
.lp__plan { gap: calc(var(--tk-d) * 0.55); padding: calc(var(--tk-d) * 0.8); }
.lp__f { grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-sm); padding: calc(var(--tk-d) * 0.7) var(--tk-d); }
.lp__f i { grid-row: span 2; margin: 0; }
.lp__tag { bottom: var(--space-2xs); }
.config__panel { position: relative; flex-wrap: nowrap; justify-content: space-between; gap: var(--space-md); padding: var(--space-sm) var(--space-xl); }
.config__panel .opt legend { margin-bottom: var(--space-2xs); font-size: var(--text-xs); }
.config__panel .opt { flex: none; }
.config__panel .seg--opt { grid-auto-columns: auto; }
.config__panel .seg--opt label { min-height: 32px; padding: 0 10px; font-size: var(--text-xs); }
.config__panel .swatches { flex-wrap: nowrap; gap: var(--space-xs); min-height: 38px; align-items: center; }
.config__panel .swatches label { width: 26px; height: 26px; }
.tk-code { flex-basis: auto; align-self: end; text-align: right; }
.tk-code summary { white-space: nowrap; font-size: var(--text-xs); }
.tk-code .code { position: absolute; right: var(--space-xl); bottom: calc(100% + var(--space-sm)); z-index: 3; width: min(420px, calc(100% - var(--space-xl) * 2)); margin: 0; box-shadow: 0 0 0 1px var(--color-rule), 0 40px 80px -30px var(--color-shadow); }
@media (max-width: 66rem) {
  .config__panel { flex-wrap: wrap; justify-content: center; }
  .tk-code { flex-basis: 100%; text-align: center; }
}
@media (max-width: 60rem) {
  .tokens { min-height: 0; }
  .config__stage { padding: var(--space-lg) var(--space-md); }
}
/* cada seção cabe numa tela (desktop): altura de uma tela, conteúdo centrado, espaçamento pela altura */
@media (min-width: 60rem) and (min-height: 600px) {
  .story, .services, .worlds, .process, .contact { min-height: 100svh; padding-block: clamp(40px, 7vh, 96px); display: grid; align-content: center; }
  .story .screen { min-height: clamp(320px, 48vh, 560px); padding: clamp(12px, 2vh, 32px) clamp(24px, 4vh, 64px); }
  .story__inner { gap: clamp(12px, 2vh, 24px); }
  .card { height: clamp(340px, 50vh, 460px); }
  .hl { grid-template-columns: minmax(0, 1fr) auto; align-items: center; justify-items: start; gap: var(--space-lg); }
  .hl__cap { text-align: left; }
  .hl__dots { height: 44px; padding: 0 var(--space-md); }
  .hl__play { width: 44px; height: 44px; }
  .hl__play svg { width: 18px; height: 18px; }
}
@media (max-width: 60rem) {
  .lp__hero { grid-template-columns: minmax(0, 1fr); }
  .lp__links { display: none; }
  .lp__nav .lp__btn { margin-left: auto; }
  .screen { border-top: 0; min-height: 0; padding: var(--space-sm) var(--space-md); }
  .rv-note { width: 190px; }
  .rig[data-step="0"] .screen { min-height: 420px; }
}
@media (max-width: 40rem) {
  .lp { padding-inline: var(--tk-d); }
  .lp__feats { grid-template-columns: minmax(0, 1fr); }
  .lp__tag { position: static; justify-self: end; }
  .config__panel { justify-content: start; }
}

/* cada seção cabe numa tela (celular): mesma regra do desktop, com o conteúdo compactado */
@media (max-width: 40rem) {
  .story, .services, .worlds, .tokens, .process, .contact { min-height: calc(100svh - var(--nav-h)); padding-block: 32px; display: grid; align-content: center; scroll-margin-top: var(--nav-h); }
  h2 { font-size: clamp(1.9rem, 8.5vw, 2.4rem); }

  /* veja como funciona: palco de altura fixa, painel compacto que cabe na largura */
  .story__inner { gap: 16px; }
  .story__head .lead { font-size: var(--text-md); }
  .rig .screen, .rig[data-step="0"] .screen { height: auto; min-height: 0; padding: 10px; align-content: start; }
  .dash { min-width: 0; padding: 14px; gap: 10px; }
  .dash__top { flex-wrap: wrap; gap: 4px 10px; }
  .dash__top b { font-size: 1.1rem; }
  .dash__kpis { gap: 8px; }
  .kpi { padding: 10px; gap: 2px; }
  .kpi b { font-size: 1.15rem; }
  .kpi em { font-size: 11px; line-height: 1.3; }
  .kpi .spark { display: none; }
  .dash__body { gap: 8px; }
  .chart { height: 130px; }
  .machines { display: none; }
  .rv-note { width: 172px; padding: 8px 10px; font-size: 11px; }
  .rv-note--b { left: auto; right: 6px; top: calc(28% + 26px); }
  .screen .code { top: 10px; bottom: 10px; left: 10px; right: 10px; padding: 14px; font-size: 10.5px; line-height: 1.55; }
  .prompt { padding: var(--space-md); }
  .prompt__text { font-size: 1.2rem; }
  .hl { gap: 12px; }
  .hl__cap { font-size: 1.1rem; }
  .hl__dots { height: 44px; padding: 0 var(--space-md); }
  .hl__play { width: 44px; height: 44px; }
  .hl__play svg { width: 18px; height: 18px; }

  /* o que fazemos: lista curta, prévia baixa */
  .services__grid { gap: 16px; }
  .services__list h2 { margin-bottom: 12px; }
  .svc button { grid-template-columns: 2rem minmax(0, 1fr); padding: 11px 0; }
  .svc__n { padding-top: 0.35em; }
  .svc__t { font-size: 1.2rem; }
  .svc__d { font-size: var(--text-sm); }
  .preview { height: clamp(260px, 36svh, 320px); min-height: 0; }
  .pv { padding: 14px; }
  .fx__ph { padding: 12px 9px 10px; gap: 6px; border-radius: 16px; font-size: 9px; }
  .fx__ph b { font-size: 11px; margin: 2px 0; }
  .fx__in { height: 18px; }
  .fx__btn { height: 22px; }
  .fx__opt { height: 22px; padding: 0 6px; }
  .fx__ok { width: 32px; height: 32px; }
  .fx__ok svg { width: 16px; height: 16px; }
  .dsx { gap: 8px; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); }
  .dsx__tk { padding: 10px; gap: 8px; border-radius: 14px; }
  .dsx__row { font-size: 10px; gap: 4px; }
  .dsx__row code { font-size: 10px; padding: 2px 5px; }
  .dsx__dot { display: none; }
  .dsx__cmp { gap: 7px; font-size: 10px; padding: calc(var(--dp) * 0.6); }
  .dsx__btn, .dsx__input { height: 26px; padding: 0 9px; }
  .dsx__line { gap: 5px; }
  .dsx__card { padding: 8px; }
  .dsx__card b { font-size: 11px; }
  .lab { gap: 8px; }
  .lab input { min-height: 44px; }
  .specs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .spec { aspect-ratio: 1; min-height: 0; padding: 8px; }
  .spec--serif { font-size: 1.25rem; } .spec--wide { font-size: 0.95rem; } .spec--cond { font-size: 1.6rem; }
  .six__frame { height: clamp(190px, 26svh, 240px); padding: 10px; }
  .six[data-w="768"] .six__frame { max-width: 230px; }
  .six[data-w="390"] .six__frame { max-width: 130px; }
  .aix { padding: 12px; gap: 8px; }
  .aix__top b { font-size: 13px; }
  .aix__btn { padding: 5px 10px; font-size: 11px; }
  .aix__r { padding: 6px 8px; font-size: 12px; grid-template-columns: minmax(0, 1fr) 48px 64px; }

  /* onde já trabalhamos */
  .worlds__head { margin-bottom: 16px; row-gap: 8px; }
  .worlds__head .lead { font-size: var(--text-md); }
  .card { height: clamp(340px, 50svh, 420px); }
  .rail__nav { margin-top: 0; }

  /* tokens: prévia só com o essencial, controles numa faixa que rola de lado */
  .tokens__head { margin-bottom: 12px; }
  .tokens__head .lead { font-size: var(--text-sm); }
  .config__stage { padding: 14px 12px 10px; }
  .lp { gap: 14px; padding: 14px 16px 16px; }
  .lp__p, .lp__btn--q, .lp__bag, .lp__feats { display: none; }
  .lp__h { font-size: 1.6rem; }
  .lp__copy { gap: 10px; }
  .lp__hero { gap: 14px; }
  .lp__tag { position: static; justify-self: end; margin-top: -6px; }
  .config__panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 12px 14px 14px; }
  .config__panel .opt { display: block; }
  .config__panel .opt legend { float: left; width: 64px; margin: 0; line-height: 30px; font-size: var(--text-xs); }
  .config__panel .swatches { display: flex; justify-content: space-between; margin-left: 64px; min-height: 30px; }
  .config__panel .swatches label { width: 26px; height: 26px; }
  .config__panel .seg--opt { display: grid; width: auto; margin-left: 64px; grid-auto-columns: minmax(0, 1fr); }
  .config__panel .seg--opt label { min-height: 30px; padding: 0; font-size: 12px; }

  /* como trabalhamos: número ao lado do texto */
  .process h2 { margin-bottom: 20px; }
  .steps { gap: 10px; }
  .steps li { grid-template-columns: 3rem minmax(0, 1fr); column-gap: 12px; row-gap: 2px; padding: 16px; }
  .steps__n { grid-row: span 2; font-size: 2rem; }
  .steps h3 { font-size: var(--text-lg); }

  /* contato */
  .contact__grid { row-gap: 16px; }
  .contact__head { gap: 6px; }
  .form { gap: 14px; }
  .form textarea { min-height: 88px; height: 88px; }
}
@media (max-width: 40rem) and (max-height: 720px) {
  .story, .services, .worlds, .tokens, .process, .contact { padding-block: 16px; }
  .story__inner { gap: 10px; }
  .chart { height: 104px; }
  .dash { gap: 8px; padding: 12px; }
  .lp__chip, .lp__opts { display: none; }
  .lp__h { font-size: 1.4rem; }
  .svc button { padding: 8px 0; }
  .services__list h2 { margin-bottom: 6px; }
  .preview { height: 240px; }
  .tokens__head .lead { display: none; }
  .form { gap: 10px; }
  .form textarea { min-height: 60px; height: 60px; }
  .contact__head .lead { font-size: var(--text-sm); }
}
