/* Midas AI — landing de cadastro
   Tokens herdados de web/styles.css (tema escuro, acento dourado). Nunca hex direto fora do :root. */

:root {
  --n-0: #0e0e0e; --n-25: #121212; --n-50: #161616; --n-100: #1c1c1c; --n-150: #232323; --n-200: #2a2a2a;
  --n-300: #3a3a3a; --n-400: #5a5a5a; --n-500: #939393; --n-600: #9a9a9a; --n-700: #b8b8b8; --n-800: #d4d4d4;
  --n-900: #ececec; --n-1000: #f5f5f5;

  --accent: #d6b25c; --accent-hi: #f0cf7a; --accent-deep: #845e1a;
  --accent-soft: color-mix(in srgb, var(--accent) 16%, var(--n-0));
  --on-accent: #17130c;
  --success: #6cc48a; --success-soft: #17301f;
  --warn: #e0b24a; --warn-soft: #332a12;
  --danger: #f0867f; --danger-soft: #361a18;
  --info: #8ab4f8;

  --bg: var(--n-25); --surface: var(--n-100); --surface-2: var(--n-150);
  --border: var(--n-200); --border-strong: var(--n-300);
  --text: var(--n-900); --text-2: var(--n-600); --text-3: var(--n-500);

  --font-sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Cascadia Mono", "Consolas", ui-monospace, monospace;

  --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-xl: 18px; --r-pill: 9999px;
  --dur-fast: .15s; --dur-base: .3s;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --hairline: 1px;
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1180px;
}
@media (min-resolution: 2dppx) { :root { --hairline: .5px; } }

/* ───────── base ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.55 var(--font-sans);
  overflow-x: clip; /* clip, não hidden: evita scroll horizontal programático (focus/scrollIntoView) */
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
code, pre, kbd { font-family: var(--font-mono); }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-sm); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--accent); color: var(--on-accent); padding: 8px 12px; border-radius: var(--r-md); }
.skip:focus { left: 8px; }

.muted { color: var(--text-2); }
.h2 { font: 600 clamp(28px, 4.2vw, 46px)/1.1 var(--font-display); letter-spacing: -.02em; text-wrap: balance; }
.h3 { font: 600 20px/1.25 var(--font-display); letter-spacing: -.01em; }
.lead { color: var(--text-2); font-size: clamp(16px, 1.3vw, 18px); max-width: 60ch; text-wrap: pretty; }
.section-head { max-width: 760px; margin: 0 auto 40px; text-align: center; display: grid; gap: 14px; justify-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--accent);
}
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ───────── intro gate (gsap-vanilla: estado inicial antes do primeiro paint) ───────── */
.js [data-intro], .js [data-split], .js [data-reveal] { opacity: 0; }
.js.is-ready [data-reveal] { opacity: 1; } /* ScrollTrigger assume via gsap.from */

/* ───────── brand ───────── */
.midas-wordmark {
  --w: 96px;
  display: block; flex: none; width: var(--w); height: calc(var(--w) * 190 / 890);
  background: currentColor;
  -webkit-mask-image: url("assets/midas-logo-v1.png"); mask-image: url("assets/midas-logo-v1.png");
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: calc(var(--w) * 1536 / 890) auto; mask-size: calc(var(--w) * 1536 / 890) auto;
  -webkit-mask-position: calc(var(--w) * -340 / 890) calc(var(--w) * -805 / 890);
  mask-position: calc(var(--w) * -340 / 890) calc(var(--w) * -805 / 890);
}

/* ───────── buttons ───────── */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 40px; padding: 0 18px; border-radius: var(--r-md); border: var(--hairline) solid transparent;
  font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-base) var(--ease-out);
  will-change: transform;
}
.btn--sm { height: 34px; padding: 0 14px; font-size: 14px; }
.btn--lg { height: 50px; padding: 0 24px; font-size: 16px; border-radius: 10px; }
.btn--full { width: 100%; }
.btn--primary {
  background: linear-gradient(180deg, var(--accent-hi), var(--accent));
  color: var(--on-accent);
  box-shadow: 0 1px 0 color-mix(in srgb, #fff 20%, transparent) inset, 0 8px 24px -10px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn--primary:hover { box-shadow: 0 1px 0 color-mix(in srgb, #fff 25%, transparent) inset, 0 14px 36px -10px color-mix(in srgb, var(--accent) 85%, transparent); }
.btn--ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn--ghost:hover { background: color-mix(in srgb, var(--text) 7%, transparent); }
.btn--danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn__arrow { transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn [data-ripple] { position: absolute; border-radius: 50%; pointer-events: none; background: currentColor; opacity: .25; transform: translate(-50%, -50%) scale(0); z-index: -1; }
.btn__spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--on-accent) 30%, transparent); border-top-color: var(--on-accent); animation: spin .8s linear infinite; }
.btn.is-busy .btn__label { opacity: .6; }
.btn.is-busy .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ───────── header ───────── */
.top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 12px var(--gutter);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: var(--hairline) solid transparent;
  transition: border-color var(--dur-base);
}
.top.is-scrolled { border-bottom-color: var(--border); }
.top__brand { color: var(--text); text-decoration: none; }
.top__nav { display: flex; gap: 22px; margin-left: auto; }
.top__nav a { font-size: 14px; color: var(--text-2); text-decoration: none; position: relative; padding: 4px 0; }
.top__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform var(--dur-base) var(--ease-out); }
.top__nav a:hover { color: var(--text); }
.top__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 720px) { .top__nav { display: none; } .top .btn { margin-left: auto; } }

/* ───────── hero ───────── */
main { overflow-x: clip; } /* corta o sangramento decorativo (glow, mão, marquee) na borda da viewport; no body viraria viewport rolável */
.hero {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 64px);
  min-height: calc(100svh - 60px); max-width: var(--max); margin: 0 auto; padding: clamp(40px, 7vh, 96px) var(--gutter);
}
.hero__motes { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero__glow {
  position: absolute; z-index: -2; right: -10%; top: 10%; width: 60vw; max-width: 760px; aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  filter: blur(20px);
}
.hero__copy { display: grid; gap: 22px; align-content: center; }
.hero__title {
  font: 600 clamp(38px, 5.6vw, 68px)/1.02 var(--font-display); letter-spacing: -.03em; text-wrap: balance;
}
.hero__title .word, .hero__title .line { will-change: transform; }
.hero__sub { color: var(--text-2); font-size: clamp(16px, 1.35vw, 19px); max-width: 56ch; text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__trust { font-size: 14px; color: var(--text-3); }

.hero__art { position: relative; margin: 0; min-height: 420px; }
.hand { position: absolute; top: -14%; right: -16%; width: 82%; z-index: 2; pointer-events: none; filter: drop-shadow(0 30px 60px color-mix(in srgb, var(--accent) 35%, transparent)); }
.hand__img { width: 100%; height: auto; clip-path: inset(0 0 21.09375% 0); } /* corta o wordmark do PNG */
.session-card {
  position: relative; z-index: 1; margin-top: 38%; width: 90%;
  background: var(--surface); border: var(--hairline) solid var(--border); border-radius: var(--r-xl);
  box-shadow: 0 30px 80px -30px rgb(0 0 0 / .7), 0 0 0 1px color-mix(in srgb, var(--accent) 10%, transparent);
  transform-style: preserve-3d; overflow: hidden;
  background-image: radial-gradient(420px circle at var(--pointer-x, 50%) var(--pointer-y, 0%), color-mix(in srgb, var(--accent) 12%, transparent), transparent 55%);
}
.session-card__bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: var(--hairline) solid var(--border); background: var(--surface-2); font-size: 13px; }
.session-card__title { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-card__body { padding: 14px; display: grid; gap: 12px; }

.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--r-pill); font-size: 12px; font-weight: 500; background: var(--accent-soft); color: var(--accent); }
.status { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 12px; color: var(--text-2); white-space: nowrap; }
.status__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.status--run .status__dot { background: var(--info); animation: blink 1s ease-in-out infinite; }
.status--wait .status__dot { background: var(--warn); }
.status--ok .status__dot { background: var(--success); }
@keyframes blink { 50% { opacity: .3; } }

.msg { font-size: 14px; line-height: 1.5; }
.msg--user { margin-left: auto; max-width: 85%; background: var(--accent-soft); color: var(--text); padding: 10px 12px; border-radius: var(--r-lg); }
.msg--agent { color: var(--text); max-width: 60ch; }
.activity { display: grid; gap: 4px; }
.activity__row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); padding: 4px 6px; border-radius: var(--r-sm); }
.activity__row code { font-size: 12px; color: var(--text); background: var(--surface-2); padding: 1px 6px; border-radius: 4px; }
.activity__ic { width: 16px; text-align: center; color: var(--success); font-weight: 600; }
.activity__row.is-run .activity__ic { color: var(--info); }
.activity__t { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--text-3); font-size: 12px; }
.spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--info) 30%, transparent); border-top-color: var(--info); animation: spin .8s linear infinite; display: inline-block; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__art { min-height: 0; margin-top: 8px; }
  .hand { top: -18%; right: -12%; width: 78%; }
  .session-card { margin-top: 44%; width: 100%; }
}

/* ───────── proof ───────── */
.proof {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 64px;
}
.proof__item { display: grid; gap: 4px; padding: 20px 24px; border-left: var(--hairline) solid var(--border); }
.proof__item:first-child { border-left: 0; padding-left: 0; }
.proof__n { font: 600 clamp(34px, 4vw, 52px)/1 var(--font-display); letter-spacing: -.03em; color: var(--accent); font-variant-numeric: tabular-nums; }
.proof__l { font-size: 14px; color: var(--text-2); }
@media (max-width: 720px) {
  .proof { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .proof__item:nth-child(3) { border-left: 0; padding-left: 0; }
}

/* ───────── sections ───────── */
.demo, .engines, .steps, .control, .signup { max-width: var(--max); margin: 0 auto; padding: 72px var(--gutter); }

/* ───────── demo window ───────── */
.window {
  display: grid; grid-template-columns: 220px 1fr; min-height: 520px;
  background: var(--surface); border: var(--hairline) solid var(--border); border-radius: var(--r-xl); overflow: hidden;
  box-shadow: 0 40px 100px -40px rgb(0 0 0 / .8);
}
.window__side { background: #1b1c1c; border-right: var(--hairline) solid var(--border); padding: 14px 12px; font-size: 13px; color: var(--text-2); display: grid; align-content: start; gap: 10px; }
.window__side-brand { padding: 2px 6px 6px; color: var(--text); --w: 72px; }
.window__side-brand .midas-wordmark { --w: 72px; }
.window__new { height: 32px; border-radius: var(--r-md); border: var(--hairline) solid var(--border-strong); background: transparent; color: var(--text); text-align: left; padding: 0 10px; font-size: 13px; }
.window__nav li { padding: 6px 8px; border-radius: var(--r-md); display: flex; align-items: center; gap: 8px; }
.badge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill); background: var(--warn-soft); color: var(--warn); font-size: 11px; font-weight: 600; display: inline-grid; place-items: center; transition: transform var(--dur-base) var(--ease-out); }
.badge.bump { transform: scale(1.35); }
.window__group { font-size: 11px; letter-spacing: .06em; color: var(--text-3); padding: 10px 8px 0; }
.window__threads li { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 10px; }
.window__threads li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.window__threads li em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--text-3); }
.window__threads li.is-active { background: var(--accent-soft); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.window__main { display: grid; grid-template-rows: auto 1fr auto; min-width: 0; }
.window__top { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: var(--hairline) solid var(--border); font-size: 14px; font-weight: 500; }
.thread { padding: 20px 22px; display: grid; gap: 14px; align-content: start; overflow: hidden; }
.thread > * { will-change: transform, opacity; }
.composer { padding: 12px 18px 16px; border-top: var(--hairline) solid var(--border); display: grid; gap: 10px; }
.composer__box { min-height: 44px; padding: 10px 12px; border-radius: var(--r-lg); border: var(--hairline) solid var(--border-strong); background: var(--n-50); font-size: 14px; display: flex; align-items: center; }
.composer__text:empty::before { content: "Peça uma tarefa…"; color: var(--text-3); }
.caret { width: 2px; height: 18px; background: var(--accent); margin-left: 2px; animation: blink .9s steps(2) infinite; }
.composer__rail, .rail-demo { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--text-2); }
.rail__item { height: 24px; padding: 0 9px; border-radius: var(--r-pill); border: var(--hairline) solid var(--border); display: inline-flex; align-items: center; }
.rail__item--ok { color: var(--success); border-color: color-mix(in srgb, var(--success) 35%, transparent); }
.rail__item--swap { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }

.approval {
  border: var(--hairline) solid color-mix(in srgb, var(--warn) 55%, transparent); background: var(--surface-2);
  border-radius: var(--r-lg); padding: 14px 16px; display: grid; gap: 10px; max-width: 640px;
  background-image: radial-gradient(360px circle at var(--pointer-x, 50%) var(--pointer-y, 0%), color-mix(in srgb, var(--warn) 10%, transparent), transparent 60%);
}
.approval__kicker { font-size: 12px; font-weight: 600; color: var(--warn); letter-spacing: .02em; }
.approval__title { font-weight: 600; font-size: 15px; }
.approval__cmd { margin: 0; font-size: 12.5px; color: var(--text-2); background: var(--n-50); padding: 8px 10px; border-radius: var(--r-md); overflow-x: auto; white-space: pre; }
.approval__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.approval__hint { font-size: 12px; color: var(--text-3); }
kbd { font-size: 11px; padding: 1px 5px; border: var(--hairline) solid var(--border-strong); border-radius: 4px; background: var(--n-50); }
.approval.is-decided { opacity: .55; }

@media (max-width: 820px) {
  .window { grid-template-columns: 1fr; min-height: 0; }
  .window__side { display: none; }
}

/* ───────── engines ───────── */
.engines__switch {
  position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  margin: 0 auto 28px; padding: 4px; border-radius: var(--r-pill); background: var(--surface); border: var(--hairline) solid var(--border);
  justify-self: center; left: 50%; transform: translateX(-50%);
}
.engines__thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: var(--r-pill); background: var(--accent); transition: transform var(--dur-base) var(--ease-out); }
.engines__switch[data-active="1"] .engines__thumb { transform: translateX(100%); }
.engines__tab { position: relative; z-index: 1; height: 38px; padding: 0 28px; border: 0; background: transparent; border-radius: var(--r-pill); color: var(--text-2); font-weight: 500; cursor: pointer; transition: color var(--dur-fast); overflow: hidden; }
.engines__tab.is-active { color: var(--on-accent); }
.engines__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card {
  background: var(--surface); border: var(--hairline) solid var(--border); border-radius: var(--r-xl); padding: 24px;
  transform-style: preserve-3d; position: relative;
  background-image: radial-gradient(520px circle at var(--pointer-x, 50%) var(--pointer-y, -20%), color-mix(in srgb, var(--accent) 10%, transparent), transparent 55%);
  transition: border-color var(--dur-base);
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.engine { display: grid; gap: 18px; align-content: start; }
.engine.is-active { border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent), 0 24px 60px -30px color-mix(in srgb, var(--accent) 50%, transparent); }
.engine__head { display: flex; align-items: center; gap: 14px; }
.engine__mark { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font: 600 18px/1 var(--font-mono); background: var(--accent-soft); color: var(--accent); flex: none; }
.engine__mark--codex { font-size: 15px; }
.ticks { display: grid; gap: 10px; color: var(--text-2); font-size: 15px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 2px solid var(--success); border-bottom: 2px solid var(--success); transform: rotate(-45deg); }
.ticks--gold li::before { border-color: var(--accent); }
.engine--rail { grid-column: 1 / -1; gap: 12px; }
.engine--rail .rail-demo { margin-top: 6px; }
@media (max-width: 760px) { .engines__grid { grid-template-columns: 1fr; } }

/* ───────── skills marquee ───────── */
.skills { padding: 24px 0 56px; overflow: hidden; }
.skills__label { text-align: center; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 20px; }
.marquee { display: flex; gap: 12px; width: max-content; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); animation: marquee 38s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.marquee__track { display: flex; gap: 12px; flex: none; }
.marquee__track li { height: 40px; padding: 0 16px; border-radius: var(--r-pill); border: var(--hairline) solid var(--border); background: var(--surface); display: inline-flex; align-items: center; font-size: 14px; color: var(--text-2); white-space: nowrap; transition: color var(--dur-fast), border-color var(--dur-fast); }
.marquee__track li:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }

/* ───────── steps ───────── */
.steps__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { display: grid; gap: 10px; align-content: start; }
.step__n { font: 600 13px/1 var(--font-mono); color: var(--accent); letter-spacing: .08em; }
@media (max-width: 760px) { .steps__list { grid-template-columns: 1fr; } }

/* ───────── control ───────── */
.control__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; align-items: start; }
.approval--live { max-width: none; transform-style: preserve-3d; }
.policies { display: grid; gap: 10px; }
.policy { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r-lg); border: var(--hairline) solid var(--border); background: var(--surface); font-size: 14px; color: var(--text-2); transition: border-color var(--dur-base), background var(--dur-base); }
.policy strong { color: var(--text); font-weight: 600; }
.policy.is-on { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: var(--accent-soft); }
.policy.is-on strong::after { content: " · ativo"; color: var(--accent); font-weight: 500; font-size: 12px; }
@media (max-width: 820px) { .control__grid { grid-template-columns: 1fr; } }

/* ───────── signup ───────── */
.signup { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr minmax(320px, 460px); gap: clamp(24px, 5vw, 72px); align-items: center; padding-bottom: 96px; }
.signup__confetti { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; pointer-events: none; }
.signup__copy { display: grid; gap: 18px; }
.form { display: grid; padding: 28px; }
.form__state { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
.field input {
  height: 44px; padding: 0 12px; border-radius: var(--r-md); border: var(--hairline) solid var(--border-strong); background: var(--n-50); color: var(--text);
  font: inherit; width: 100%; transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field input::placeholder { color: var(--text-3); }
.field input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.field.is-error input { border-color: var(--danger); }
.field__err { font-size: 12.5px; color: var(--danger); min-height: 1em; }
.field__pw { position: relative; }
.field__pw input { padding-right: 44px; }
.field__eye { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border: 0; background: transparent; border-radius: var(--r-sm); color: var(--text-2); cursor: pointer; display: grid; place-items: center; }
.field__eye:hover { color: var(--text); background: color-mix(in srgb, var(--text) 7%, transparent); }
.field__eye[aria-pressed="true"] { color: var(--accent); }
.strength { height: 3px; border-radius: 2px; background: var(--border); overflow: hidden; }
.strength__bar { display: block; height: 100%; width: 0; background: var(--danger); transition: width var(--dur-base) var(--ease-out), background var(--dur-base); }
.strength__bar[data-level="2"] { background: var(--warn); }
.strength__bar[data-level="3"] { background: var(--success); }
.form__foot { font-size: 14px; color: var(--text-2); text-align: center; }
.form__foot a { color: var(--accent); }
.form__done { text-align: center; justify-items: center; gap: 12px; padding: 16px 0; }
.done__ring { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 6px; }
.done__check { stroke-dasharray: 30; stroke-dashoffset: 30; }
.form__done:not([hidden]) .done__check { animation: draw .6s var(--ease-out) .25s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (max-width: 820px) { .signup { grid-template-columns: 1fr; } }

/* ───────── footer ───────── */
.foot { max-width: var(--max); margin: 0 auto; padding: 32px var(--gutter) 48px; border-top: var(--hairline) solid var(--border); display: grid; gap: 14px; font-size: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot nav a { color: var(--text-2); text-decoration: none; }
.foot nav a:hover { color: var(--accent); }

/* ───────── reduced motion: estado final, sem ambiente ───────── */
@media (prefers-reduced-motion: reduce) {
  .js [data-intro], .js [data-split], .js [data-reveal] { opacity: 1; }
  .eyebrow__dot, .marquee, .caret, .status--run .status__dot, .spin, .btn__spinner { animation: none; }
  .hero__motes, .signup__confetti { display: none; }
  .engines__thumb, .btn, .card, .badge, .top__nav a::after { transition: none; }
}
