/* NEXORA — Central de Solicitações
   Mobile-first. Preto com luz violeta, roxo como cor de comando,
   títulos pesados em itálico, notebook em 3D (CSS puro). Fontes do sistema. */

:root {
  --bg: #0b0910;
  --bg-elev: #13101b;
  --card: #17131f;
  --card-2: #211a2e;
  --border: #2f2742;
  --border-strong: #4a3d68;
  --text: #f4f1fb;
  --muted: #b5adc7;
  --faint: #8a809e;
  --violet: #8b5cf6;
  --violet-strong: #b493ff;   /* roxo para texto sobre fundo escuro */
  --violet-deep: #6d28d9;
  --violet-btn: #7c3aed;      /* fundo de botão: branco por cima = 5,7:1 */
  --violet-btn-hover: #6d28d9;
  --focus: #d4c4ff;
  --danger: #ff8a7a;
  --danger-bg: #2b1418;
  --warn-bg: #221b10;
  --warn-border: #6a5320;
  --radius: 16px;
  --radius-sm: 10px;
  --hh: 7.25rem;              /* altura do cabeçalho (celular: duas linhas) */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}
@media (min-width: 760px) { :root { --hh: 4.75rem; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scrollbar-color: #3b2f55 var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  caret-color: var(--violet-strong);
  overflow-x: clip;
}

/* Luz de escritório à noite: dois focos violeta fixos atrás de tudo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60vmax 50vmax at 92% -8%, rgba(124, 58, 237, .30), transparent 62%),
    radial-gradient(50vmax 40vmax at -12% 108%, rgba(109, 40, 217, .22), transparent 60%),
    linear-gradient(180deg, #0d0a14 0%, var(--bg) 40%);
}

::selection { background: var(--violet-btn); color: #fff; }

main { flex: 1; outline: none; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.015em; text-wrap: balance; }
h2 { font-size: clamp(1.4rem, 4vw, 1.75rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; color: var(--muted); font-weight: 600; }
p { margin: 0 0 1em; }

a { color: var(--violet-strong); text-underline-offset: 3px; }
a:hover { color: #d0bcff; }

/* Foco sempre visível */
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.page-title:focus-visible, main:focus-visible { outline: none; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--violet-btn); color: #fff; padding: .6rem 1rem;
  border-radius: var(--radius-sm); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 700px; }
.section { padding-top: 3rem; padding-bottom: 3rem; }
.muted { color: var(--muted); }

/* ---------- Tipografia de exibição (itálico pesado, caixa alta) ---------- */
.display, .display-sm, .display-md, .page-title {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  line-height: .98;
}
.page-title { font-size: clamp(2rem, 6vw, 3.25rem); margin-bottom: .45em; }
.display { font-size: clamp(2.6rem, 5.6vw, 5rem); margin: 0 0 .35em; }
.display .line { display: block; }
.display-sm { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: .4em; }
.display-md { font-size: clamp(2rem, 4.6vw, 3.4rem); margin-bottom: .6em; }
.accent { color: var(--violet-strong); }

/* Pincelada sob o título: traço SVG que se desenha */
.accent, .ink { position: relative; display: inline-block; }
.brush {
  position: absolute; left: -2%; bottom: -.24em; width: 104%; height: .34em;
  overflow: visible; pointer-events: none;
}
.brush path {
  fill: none; stroke: var(--violet); stroke-width: 7px; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 0;
}
.brush .brush-thin { stroke-width: 3px; opacity: .7; }
.js .brush path { stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease) .35s; }
.js .brush .brush-thin { transition-delay: .6s; }
.js .brush.in-view path { stroke-dashoffset: 0; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 9, 16, .86);
  border-bottom: 1px solid rgba(74, 61, 104, .5);
}
@supports (backdrop-filter: blur(10px)) {
  .site-header { background: rgba(11, 9, 16, .7); backdrop-filter: blur(10px) saturate(1.2); }
}
.header-inner {
  max-width: 1180px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "brand lang" "nav nav";
  align-items: center;
  gap: .35rem 1rem;
  padding-top: .65rem;
  padding-bottom: .4rem;
}
.brand { grid-area: brand; display: inline-flex; align-items: center; gap: .65rem; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand-mark { width: 2.5rem; height: 2.4rem; flex: none; color: var(--text); overflow: visible; }
.brand-dot { fill: #9378f5; }
.brand:hover .brand-dot { fill: var(--violet-strong); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: "Arial Black", "Helvetica Neue", Arial, var(--font); font-weight: 900; font-size: 1.45rem; letter-spacing: .01em; }
.brand-sub { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #8f9bb0; margin-top: .35rem; }
.brand-sub .sub-long { display: none; }
@media (min-width: 1100px) { .brand-sub .sub-short { display: none; } .brand-sub .sub-long { display: inline; } }

.main-nav { grid-area: nav; display: flex; gap: .2rem; overflow-x: auto; margin: 0 -.5rem; scrollbar-width: none; }
.main-nav a {
  color: var(--muted); text-decoration: none; padding: .45rem .8rem; border-radius: 999px;
  white-space: nowrap; font-size: .95rem; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center;
  transition: color .15s, background-color .15s;
}
.main-nav a:hover { color: var(--text); background: var(--card-2); }
.main-nav a[aria-current="page"] { color: #fff; background: var(--violet-btn); }

.lang-switch { grid-area: lang; display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.lang-switch button {
  font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer;
  background: transparent; color: var(--muted); border: 0; border-radius: 999px;
  min-width: 44px; min-height: 36px; padding: 0 .6rem;
}
.lang-switch button[aria-pressed="true"] { background: var(--card-2); color: var(--violet-strong); }
.lang-switch button:hover { color: var(--text); }

@media (min-width: 760px) {
  .header-inner { grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav lang"; padding-top: .7rem; padding-bottom: .7rem; }
  .main-nav { justify-content: flex-end; margin: 0; }
}

/* ---------- Rodapé ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 2rem; }
.footer-inner { display: flex; flex-direction: column; gap: .5rem; padding-top: 1.5rem; padding-bottom: 1.5rem; font-size: .9rem; color: var(--muted); }
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--muted); }
.footer-inner a:hover, .footer-inner a[aria-current="page"] { color: var(--violet-strong); }
@media (min-width: 760px) { .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; } }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 50px; padding: .75rem 1.4rem; border-radius: 999px;
  font: inherit; font-weight: 800; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s, transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.btn-primary { background: var(--violet-btn); color: #fff; box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .75); }
.btn-primary:hover { background: var(--violet-btn-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 14px 26px -12px rgba(0, 0, 0, .8); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary { background: rgba(23, 19, 31, .6); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--violet-strong); color: var(--violet-strong); }
.btn-wa { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-wa:hover { border-color: #3ddc84; color: #3ddc84; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); }
.btn-danger { background: transparent; color: var(--danger); border-color: #5c2a2a; }
.btn-danger:hover { background: var(--danger-bg); color: var(--danger); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.actions.center { justify-content: center; }

/* ---------- Cartões (telas de tarefa) ---------- */
.card {
  background: linear-gradient(180deg, rgba(33, 26, 46, .55), rgba(23, 19, 31, .9));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

/* =================== INÍCIO: palco com notebook 3D =================== */

.stage {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.stage-visual {
  position: sticky;
  top: var(--hh);
  z-index: 2;
  height: clamp(210px, 36vh, 330px);
  display: flex; align-items: center; justify-content: center;
  margin: 0 -1.25rem;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(11, 9, 16, .96) 72%, rgba(11, 9, 16, 0) 100%);
  pointer-events: none;
}

.panel {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  min-height: 72vh;
  padding: 2.5rem 0;
}
.panel-hero { min-height: auto; padding-top: 1.25rem; padding-bottom: 3.5rem; }
.panel-hero .lead { max-width: 54ch; }
.hero-sub {
  font-family: var(--display); font-style: italic; font-weight: 700;
  font-size: clamp(1.3rem, 3vw, 1.75rem); color: var(--text); margin: .4em 0 .7em;
}
.lead { color: var(--muted); font-size: 1.1rem; max-width: 60ch; }

.scroll-cue { display: none; }

.panel-help { transition: opacity .5s var(--ease); }
.js .panel-help { opacity: .45; }
.js .panel-help.is-active { opacity: 1; }
.icon-box {
  display: inline-grid; place-items: center; width: 3.4rem; height: 3.4rem; margin-bottom: 1.25rem;
  border: 1.5px solid var(--violet); border-radius: 14px; background: rgba(124, 58, 237, .12);
}
.icon-box svg { width: 1.7rem; height: 1.7rem; fill: none; stroke: var(--violet-strong); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.help-items { font-weight: 700; color: var(--violet-strong); margin: 0; }

@media (min-width: 900px) {
  .stage {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    column-gap: 3rem;
  }
  .stage-visual {
    grid-column: 2; grid-row: 1;
    height: calc(100vh - var(--hh));
    margin: 0;
    background: none;
    align-self: start;
  }
  .stage-copy { grid-column: 1; grid-row: 1; }
  .panel { min-height: 88vh; }
  .panel-hero { min-height: calc(100vh - var(--hh)); padding: 3rem 0 4rem; }
  .scroll-cue {
    display: flex; align-items: center; gap: .75rem; margin: 2.5rem 0 0;
    color: var(--faint); font-size: .85rem; font-weight: 600; letter-spacing: .02em;
  }
  .scroll-cue span { width: 2.5rem; height: 2px; background: var(--border-strong); position: relative; overflow: hidden; }
  .scroll-cue span::after {
    content: ""; position: absolute; inset: 0; background: var(--violet-strong);
    transform: translateX(-100%); animation: cue 2.4s var(--ease) 1s 3;
  }
}
@keyframes cue { 60%, 100% { transform: translateX(100%); } }

/* ---------- O notebook (CSS 3D) ---------- */
.device {
  --lw: min(58vw, 290px);
  --rx: -16deg;
  --ry: 20deg;
  --lift: 0px;
  position: relative;
  width: var(--lw);
  perspective: 1700px;
  perspective-origin: 50% 30%;
  margin-top: calc(var(--lw) * -.22);
}
@media (min-width: 900px) {
  .device { --lw: min(31vw, 480px); margin-top: calc(var(--lw) * -.28); margin-left: auto; margin-right: 6%; }
}

.laptop {
  position: relative;
  width: 100%;
  height: calc(var(--lw) * .62);
  transform-style: preserve-3d;
  transform: translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .9s var(--ease);
}

.lid {
  position: absolute; inset: 0;
  transform-origin: 50% 100%;
  transform-style: preserve-3d;
  transform: rotateX(10deg);
  transition: transform 1.3s var(--ease);
}
.laptop.is-closed .lid { transform: rotateX(-88deg); }

.lid-front, .lid-back {
  position: absolute; inset: 0;
  border-radius: calc(var(--lw) * .028) calc(var(--lw) * .028) 4px 4px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.lid-front {
  background: #08060c;
  border: 1px solid #3b3150;
  padding: 2.6% 2.6% 4.4%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.lid-front::after { /* reflexo do vidro */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, 0) 38%);
}
.lid-back {
  transform: rotateY(180deg);
  background: linear-gradient(160deg, #3a3150, #1d1729 70%);
  border: 1px solid #4a3d68;
  display: grid; place-items: center;
}
.lid-back svg { width: 16%; color: #d9d2ec; opacity: .8; }

.base {
  position: absolute;
  left: -5%; width: 110%;
  top: 100%;
  height: calc(var(--lw) * .66);
  transform-origin: 50% 0;
  transform: rotateX(90deg);
  background: linear-gradient(180deg, #2c2540 0%, #221c31 100%);
  border-radius: 3px 3px calc(var(--lw) * .03) calc(var(--lw) * .03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  padding: 6% 8% 0;
}
.keys {
  height: 46%;
  border-radius: 6px;
  background-color: #120e1a;
  background-image:
    linear-gradient(90deg, #262035 0 86%, transparent 86%),
    linear-gradient(0deg, #262035 0 80%, transparent 80%);
  background-size: calc(100% / 14) calc(100% / 5), calc(100% / 14) calc(100% / 5);
  background-blend-mode: darken;
}
.pad {
  width: 38%; height: 32%; margin: 6% auto 0;
  border-radius: 6px; background: #2a2339; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.base-front {
  position: absolute; left: -5%; width: 110%;
  top: 100%; height: calc(var(--lw) * .022);
  transform: translateZ(calc(var(--lw) * .66));
  background: linear-gradient(180deg, #3d3354, #17121f);
  border-radius: 0 0 8px 8px;
}

.device-shadow {
  position: absolute; left: 0; right: 0;
  top: calc(var(--lw) * .78);
  height: calc(var(--lw) * .34);
  background:
    radial-gradient(closest-side, rgba(0, 0, 0, .65), transparent),
    radial-gradient(closest-side, rgba(124, 58, 237, .35), transparent 120%);
  filter: blur(14px);
  transform: scaleX(1.25);
  z-index: -1;
}

/* ---------- Telas do notebook ---------- */
.lcd {
  position: relative; height: 100%; overflow: hidden;
  border-radius: 4px;
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(124, 58, 237, .35), transparent 60%),
    linear-gradient(160deg, #1a1228, #0e0a16);
  font-size: calc(var(--lw) * .03);
  color: var(--text);
  line-height: 1.2;
}
.screen {
  position: absolute; inset: 0; padding: 7% 7% 9%;
  display: flex; flex-direction: column; gap: .7em;
  opacity: 0; transform: translateY(5%) scale(.97); filter: blur(4px);
  transition: opacity .45s ease, transform .7s var(--ease), filter .5s ease;
}
.laptop[data-screen="0"] .screen[data-screen="0"],
.laptop[data-screen="1"] .screen[data-screen="1"],
.laptop[data-screen="2"] .screen[data-screen="2"],
.laptop[data-screen="3"] .screen[data-screen="3"] { opacity: 1; transform: none; filter: none; }
.laptop.is-closed .screen { opacity: 0; }

.scr-title {
  margin: 0; font-family: var(--display); font-weight: 900; font-style: italic;
  text-transform: uppercase; font-size: 1.35em; letter-spacing: -0.01em;
}
.scr-label {
  position: absolute; right: 4%; bottom: 3%; margin: 0;
  font-size: .62em; color: var(--faint); letter-spacing: .04em;
}

/* Tela 0: ideia subindo */
.scr-chart { flex: 1; width: 100%; overflow: visible; }
.scr-bar {
  fill: #7c3aed;
  transform-box: fill-box; transform-origin: 50% 100%;
  transform: scaleY(.08);
  transition: transform .9s var(--ease);
  transition-delay: calc(var(--i) * 70ms + .5s);
}
.scr-bar:nth-child(odd) { fill: #6d28d9; }
.scr-bar:nth-child(6) { fill: #a78bfa; }
.scr-arrow, .scr-arrow-head { fill: none; stroke: #e9ddff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.scr-arrow { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease) .9s; }
.scr-arrow-head { opacity: 0; transition: opacity .3s ease 1.9s; }
.laptop:not(.is-closed)[data-screen="0"] .scr-bar { transform: scaleY(1); }
.laptop:not(.is-closed)[data-screen="0"] .scr-arrow { stroke-dashoffset: 0; }
.laptop:not(.is-closed)[data-screen="0"] .scr-arrow-head { opacity: 1; }

/* Tela 1: cardápio */
.scr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6em; flex: 1; }
.scr-item {
  display: flex; flex-direction: column; gap: .35em; padding: .5em;
  border-radius: .5em; background: rgba(255, 255, 255, .05); border: 1px solid rgba(180, 147, 255, .15);
}
.scr-thumb { flex: 1; border-radius: .35em; background: linear-gradient(135deg, #7c3aed, #3b1d78); }
.scr-item:nth-child(2) .scr-thumb { background: linear-gradient(135deg, #a78bfa, #5b2bb5); }
.scr-item:nth-child(3) .scr-thumb { background: linear-gradient(135deg, #5b2bb5, #261246); }
.scr-item:nth-child(4) .scr-thumb { background: linear-gradient(135deg, #c4b5fd, #7c3aed); }
.scr-line { display: block; height: .45em; border-radius: 1em; background: rgba(255, 255, 255, .22); }
.scr-line.short { width: 55%; background: rgba(180, 147, 255, .5); }
.scr-btn {
  align-self: flex-start; padding: .45em 1em; border-radius: 1em;
  background: #7c3aed; color: #fff; font-weight: 800; font-size: .8em;
}

/* Tela 2: planilha */
.scr-table { display: flex; flex-direction: column; flex: 1; border-radius: .45em; overflow: hidden; border: 1px solid rgba(180, 147, 255, .2); }
.scr-row { display: grid; grid-template-columns: 1.1fr 1fr .9fr; gap: .8em; align-items: center; padding: .55em .8em; border-top: 1px solid rgba(180, 147, 255, .12); }
.scr-row:first-child { border-top: 0; }
.scr-head { background: rgba(124, 58, 237, .25); font-weight: 800; font-size: .78em; text-transform: uppercase; letter-spacing: .04em; }
.scr-chip { justify-self: start; padding: .2em .65em; border-radius: 1em; font-size: .72em; font-weight: 800; }
.chip-paid { background: rgba(139, 224, 176, .18); color: #9ff0c4; }
.chip-prep { background: rgba(245, 201, 107, .18); color: #ffd98a; }
.chip-done { background: rgba(180, 147, 255, .2); color: #d4c4ff; }

/* Tela 3: automação */
.scr-flow { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: .4em; }
.scr-node {
  flex: 1; text-align: center; padding: .8em .5em; border-radius: .6em;
  background: rgba(255, 255, 255, .06); border: 1.5px solid rgba(180, 147, 255, .45);
  font-weight: 800; font-size: .82em;
}
.scr-node.is-wa { border-color: #3ddc84; background: rgba(61, 220, 132, .1); }
.scr-link { position: relative; width: 12%; height: 2px; background: rgba(180, 147, 255, .35); flex: none; }
.scr-link i {
  position: absolute; top: 50%; left: 0; width: .55em; height: .55em; margin-top: -.275em;
  border-radius: 50%; background: #e9ddff;
  animation: flow 1.6s linear 4; animation-play-state: paused;
}
.scr-link + .scr-node + .scr-link i { animation-delay: .8s; }
.laptop[data-screen="3"] .scr-link i { animation-play-state: running; }
@keyframes flow { from { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: 100%; opacity: 0; } }

/* ---------- O celular (CSS 3D, na frente do notebook) ---------- */
.phone {
  position: absolute;
  z-index: 3;
  right: -12%;
  top: calc(var(--lw) * .2);
  width: calc(var(--lw) * .27);
  height: calc(var(--lw) * .56);
  transform-style: preserve-3d;
  transform:
    translateY(calc(var(--lift) * 1.6))
    rotateX(calc(var(--rx) * .55))
    rotateY(calc(var(--ry) * -.45 - 10deg))
    rotateZ(3deg);
  transition: transform .9s var(--ease), translate 1s var(--ease) .55s, opacity .6s ease .55s;
}
.laptop.is-closed ~ .phone { translate: 0 22%; opacity: 0; }
@media (min-width: 900px) { .phone { right: -19%; } }

.phone::before { /* espessura do aparelho, vista quando ele gira */
  content: "";
  position: absolute; inset: 0;
  border-radius: calc(var(--lw) * .045);
  background: linear-gradient(160deg, #4a3d68, #1d1729);
  transform: translateZ(calc(var(--lw) * -.014));
}
.phone-body {
  position: relative;
  height: 100%;
  border-radius: calc(var(--lw) * .045);
  background: #07050b;
  border: 1.5px solid #4a3d68;
  padding: calc(var(--lw) * .012);
  box-shadow: 0 calc(var(--lw) * .06) calc(var(--lw) * .08) calc(var(--lw) * -.03) rgba(0, 0, 0, .85);
}
.phone-notch {
  position: absolute; z-index: 2; top: calc(var(--lw) * .02); left: 50%;
  width: 26%; height: calc(var(--lw) * .014); border-radius: 1em;
  background: #07050b; transform: translateX(-50%);
}
.phone-screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: calc(var(--lw) * .034);
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(124, 58, 237, .35), transparent 60%),
    linear-gradient(170deg, #1a1228, #0e0a16);
  font-size: calc(var(--lw) * .0175);
  line-height: 1.25;
  color: var(--text);
}
.phone-screen::after { /* reflexo do vidro */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0) 40%);
}
.pscreen {
  position: absolute; inset: 0;
  padding: 26% 9% 10%;
  display: flex; flex-direction: column; gap: .7em;
  opacity: 0; transform: translateY(6%); filter: blur(3px);
  transition: opacity .45s ease, transform .7s var(--ease), filter .5s ease;
}
.phone[data-screen="0"] .pscreen[data-screen="0"],
.phone[data-screen="1"] .pscreen[data-screen="1"],
.phone[data-screen="2"] .pscreen[data-screen="2"],
.phone[data-screen="3"] .pscreen[data-screen="3"] { opacity: 1; transform: none; filter: none; }

.ps-title { margin: 0 0 .2em; font-family: var(--display); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 1.35em; }
.ps-btn {
  margin-top: auto; align-self: stretch; text-align: center;
  padding: .55em .4em; border-radius: 1em; background: #7c3aed; color: #fff; font-weight: 800; font-size: .85em;
}

/* Conversa */
.ps-chat { padding-top: 40%; }
.ps-top {
  position: absolute; top: 9%; left: 0; right: 0; margin: 0; padding: .6em 9%;
  display: flex; align-items: center; gap: .5em; font-weight: 800;
  border-bottom: 1px solid rgba(180, 147, 255, .15);
}
.ps-avatar { width: 1.6em; height: 1.6em; border-radius: 50%; background: linear-gradient(135deg, #a78bfa, #6d28d9); }
.bubble {
  margin: 0; max-width: 84%; padding: .55em .75em; border-radius: .9em;
  font-size: .92em;
}
.bubble.in { align-self: flex-start; background: rgba(255, 255, 255, .09); border-bottom-left-radius: .25em; }
.bubble.out { align-self: flex-end; background: #6d28d9; border-bottom-right-radius: .25em; }
.bubble.short { padding-inline: 1em; }
.phone[data-screen="0"] .bubble { animation: pop .5s var(--ease) both; }
.phone[data-screen="0"] .bubble:nth-of-type(2) { animation-delay: .7s; }
.phone[data-screen="0"] .bubble:nth-of-type(3) { animation-delay: 1.4s; }
.phone[data-screen="0"] .bubble:nth-of-type(4) { animation-delay: 2.1s; }
.laptop.is-closed ~ .phone .bubble { animation: none; }
@keyframes pop { from { opacity: 0; transform: translateY(.6em) scale(.96); } to { opacity: 1; transform: none; } }

/* Cardápio */
.ps-row {
  display: flex; align-items: center; gap: .6em; padding: .45em;
  border-radius: .6em; background: rgba(255, 255, 255, .05); border: 1px solid rgba(180, 147, 255, .15);
}
.ps-thumb { width: 2.6em; height: 2.6em; flex: none; border-radius: .45em; background: linear-gradient(135deg, #7c3aed, #3b1d78); }
.ps-row:nth-child(3) .ps-thumb { background: linear-gradient(135deg, #a78bfa, #5b2bb5); }
.ps-row:nth-child(4) .ps-thumb { background: linear-gradient(135deg, #c4b5fd, #7c3aed); }
.ps-lines { flex: 1; display: grid; gap: .35em; }
.ps-add {
  width: 1.6em; height: 1.6em; display: grid; place-items: center; flex: none;
  border-radius: 50%; background: #7c3aed; color: #fff; font-weight: 800;
}

/* Formulário */
.ps-label { font-size: .8em; color: var(--muted); font-weight: 700; margin-bottom: -.35em; }
.ps-field { height: 2em; border-radius: .45em; background: rgba(255, 255, 255, .06); border: 1px solid rgba(180, 147, 255, .25); }
.ps-field.half { width: 45%; }

/* Avisos */
.ps-notify { padding-top: 30%; }
.ps-time { margin: 0 0 .4em; text-align: center; font-family: var(--display); font-weight: 300; font-size: 2.6em; letter-spacing: -.02em; }
.ps-card { padding: .7em .8em; border-radius: .8em; background: rgba(255, 255, 255, .1); }
.ps-card.dim { opacity: .55; }
.ps-card-app { margin: 0 0 .3em; display: flex; align-items: center; gap: .4em; font-size: .78em; color: var(--muted); font-weight: 700; }
.ps-wa { width: 1em; height: 1em; border-radius: .3em; background: #3ddc84; }
.ps-card-title { margin: 0; font-weight: 800; }
.ps-card-text { margin: .25em 0 0; color: var(--muted); font-size: .9em; }
.phone[data-screen="3"] .ps-card:first-of-type { animation: drop .6s var(--ease) .3s both; }
@keyframes drop { from { opacity: 0; transform: translateY(-1.2em); } to { opacity: 1; transform: none; } }

/* ---------- Como funciona ---------- */
.how { padding-top: 5rem; }
.steps {
  --draw: 1;
  position: relative;
  list-style: none; margin: 0; padding: 0 0 0 3.75rem;
  display: grid; gap: 2.5rem;
}
.js .steps { --draw: 0; }
.steps::before, .steps::after { /* trilho e linha desenhada */
  content: ""; position: absolute; left: 1.35rem; top: .5rem; bottom: .5rem; width: 2px;
  background: var(--border);
}
.steps::after {
  background: var(--violet);
  transform-origin: 50% 0;
  transform: scaleY(var(--draw));
  transition: transform .25s linear;
}
.step { position: relative; }
.step h3 { font-size: 1.3rem; margin-bottom: .35em; }
.step p { color: var(--muted); margin: 0; max-width: 42ch; }
.step-dot {
  position: absolute; left: -3.75rem; top: -.35rem; z-index: 1;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-style: italic; font-weight: 900; font-size: 1.1rem;
  background: var(--bg); color: var(--violet-strong);
  border: 2px solid var(--violet);
  transition: background-color .4s var(--ease), color .4s var(--ease), transform .5s var(--ease);
}
.step.is-lit .step-dot, html:not(.js) .step-dot { background: var(--violet-btn); color: #fff; transform: scale(1.08); }

@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; padding: 4rem 0 0; }
  .steps::before, .steps::after { left: 1.4rem; right: 1.4rem; top: 1.35rem; bottom: auto; width: auto; height: 2px; }
  .steps::after { transform-origin: 0 50%; transform: scaleX(var(--draw)); }
  .step-dot { left: 0; top: -4rem; }
}
.audience { margin-top: 2.5rem; max-width: 62ch; }

/* ---------- Chamada final ---------- */
.cta-wrap { padding-top: 2rem; padding-bottom: 4rem; }
.cta-bar {
  display: grid; gap: 1.25rem; align-items: center;
  padding: 1.75rem 1.5rem;
  border: 1.5px solid var(--violet);
  border-radius: 28px;
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(124, 58, 237, .22), transparent 60%),
    var(--card);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.cta-icon {
  display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%;
  border: 1.5px solid var(--violet);
}
.cta-icon svg { width: 2.2rem; height: 2.2rem; fill: none; stroke: var(--violet-strong); stroke-width: 1.6; stroke-linejoin: round; }
.cta-text { min-width: 0; }
.cta-q { margin: 0 0 .2em; font-weight: 700; font-size: 1.15rem; }
.cta-a {
  margin: 0 0 .55em;
  font-family: var(--display); font-weight: 900; font-style: italic;
  font-size: clamp(2rem, 5vw, 3rem); color: var(--violet-strong); line-height: 1.05;
}
.cta-note { margin: 0; color: var(--muted); font-style: italic; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 900px) {
  .cta-bar { grid-template-columns: auto 1fr auto; padding: 2rem 2.5rem; column-gap: 2rem; }
}

.trust {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: grid; gap: 1rem;
}
.trust li { display: flex; align-items: center; gap: .85rem; font-weight: 700; }
.trust svg { width: 2rem; height: 2rem; flex: none; fill: none; stroke: var(--violet-strong); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 760px) {
  .trust { grid-template-columns: repeat(3, auto); justify-content: center; gap: 0; }
  .trust li { padding: 0 2.25rem; }
  .trust li + li { border-left: 1px solid var(--border-strong); }
}

/* =================== TELAS DE TAREFA =================== */

/* ---------- Formulários ---------- */
.form-card { display: grid; gap: 1.6rem; padding: 1.25rem; }
@media (min-width: 560px) { .form-card { padding: 2rem; } }

.field { display: grid; gap: .35rem; min-width: 0; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.field > label, .field legend { font-weight: 700; font-size: 1rem; padding: 0; }
.req { color: var(--violet-strong); }
.hint { margin: 0; color: var(--muted); font-size: .9rem; }

input[type="text"], input[type="tel"], input[type="search"], textarea, select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg-elev); border: 2px solid var(--border); border-radius: var(--radius-sm);
  padding: .7rem .85rem; min-height: 50px;
  transition: border-color .15s;
}
textarea { resize: vertical; min-height: 7rem; }
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem;
}
input:hover, textarea:hover, select:hover { border-color: var(--border-strong); }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--violet); }
::placeholder { color: var(--faint); opacity: 1; }

.choices { display: grid; gap: .55rem; margin-top: .25rem; }
@media (min-width: 560px) { .choices { grid-template-columns: 1fr 1fr; } }
.choices-compact { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.choice {
  display: flex; align-items: center; gap: .7rem; cursor: pointer;
  background: var(--bg-elev); border: 2px solid var(--border); border-radius: var(--radius-sm);
  padding: .7rem .85rem; min-height: 52px; font-weight: 500;
  transition: border-color .15s, background-color .15s;
}
.choice:hover { border-color: var(--border-strong); }
.choice:has(input:checked) { border-color: var(--violet); background: rgba(124, 58, 237, .14); }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice input:focus-visible { outline: none; }

input[type="radio"], input[type="checkbox"] { accent-color: var(--violet); width: 1.25rem; height: 1.25rem; flex: none; margin: 0; }

.check { display: flex; gap: .75rem; align-items: flex-start; cursor: pointer; font-weight: 500; }
.check input { margin-top: .2rem; }
.check:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 6px; }
.check input:focus-visible { outline: none; }

.field-error { margin: .15rem 0 0; color: var(--danger); font-weight: 600; font-size: .95rem; display: flex; gap: .4rem; align-items: flex-start; }
.field-error[hidden] { display: none; }
.field-error::before {
  content: ""; flex: none; width: 1.05em; height: 1.05em; margin-top: .2em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1 5h2v7h-2zm0 9h2v2h-2z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1 5h2v7h-2zm0 9h2v2h-2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.has-error input[type="text"], .has-error input[type="tel"], .has-error textarea { border-color: var(--danger); }
.has-error .choice { border-color: #5c2a2a; }

.error-summary {
  background: var(--danger-bg); border: 2px solid var(--danger); border-radius: var(--radius);
  padding: 1rem 1.25rem; margin-bottom: 1.25rem;
}
.error-summary ul { margin: .25rem 0 0; padding-left: 1.2rem; }
.error-summary a { color: #ffd2cc; }

.notice {
  font-size: .9rem; color: var(--muted); background: rgba(124, 58, 237, .08);
  border: 1px solid rgba(139, 92, 246, .3);
  padding: .65rem .9rem; border-radius: var(--radius-sm); margin: 1rem 0 0;
}
.form-card .notice { margin: 0; }

.warning {
  background: var(--warn-bg); border: 1px solid var(--warn-border); border-radius: var(--radius);
  padding: 1rem 1.25rem; margin-bottom: 1.5rem;
}
.warning p:last-child { margin-bottom: 0; }

/* ---------- Sucesso ---------- */
.success-card { text-align: center; padding: 2.25rem 1.25rem; }
.check-icon {
  display: inline-grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%;
  background: var(--violet-btn); margin-bottom: 1.25rem;
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .75);
}
.check-icon svg { width: 2rem; height: 2rem; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.code-display {
  font-family: var(--mono); font-size: clamp(2rem, 9vw, 2.75rem); font-weight: 700; letter-spacing: .06em;
  color: var(--violet-strong); background: var(--bg-elev); border: 2px dashed var(--border-strong);
  border-radius: var(--radius); padding: .75rem 1.1rem; margin: .5rem auto 1rem; display: inline-block;
  user-select: all;
}
.success-card .muted { margin-top: 1.25rem; }
.success-card .notice { text-align: left; }

/* ---------- Consulta ---------- */
.inline-input { display: flex; flex-direction: column; gap: .6rem; }
@media (min-width: 480px) { .inline-input { flex-direction: row; } .inline-input input { flex: 1; } }
#in-code { font-family: var(--mono); text-transform: uppercase; letter-spacing: .05em; }
#track-result { margin-top: 1.25rem; }
.result-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
.code-small { font-family: var(--mono); font-size: 1.4rem; font-weight: 700; margin: 0; }
.status-info { font-size: 1.05rem; }

.progress { list-style: none; margin: 1rem 0 1.25rem; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; }
.progress li { font-size: .78rem; color: var(--muted); padding-top: .6rem; border-top: 4px solid var(--border); line-height: 1.3; }
.progress li.is-done { border-top-color: var(--violet); color: var(--text); }
.progress li[aria-current="step"] { font-weight: 700; color: var(--violet-strong); }

.empty-state { text-align: center; color: var(--muted); }
.empty-state .btn { margin-top: .25rem; }

/* ---------- Status ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 700;
  padding: .3rem .75rem; border-radius: 999px; border: 1px solid var(--border); white-space: nowrap;
}
.badge::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.badge-new { color: var(--violet-strong); border-color: rgba(180, 147, 255, .45); }
.badge-talking { color: #7cc8ff; border-color: rgba(124, 200, 255, .4); }
.badge-proposal { color: #f5c96b; border-color: rgba(245, 201, 107, .4); }
.badge-done { color: #8be0b0; border-color: rgba(139, 224, 176, .4); }
.badge-archived { color: var(--muted); }

/* ---------- Metadados ---------- */
.meta { margin: 0; display: grid; gap: .6rem 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .meta { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .admin .meta { grid-template-columns: repeat(3, 1fr); } }
.meta dt { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.meta dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- Painel ---------- */
.stats { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { display: flex; flex-direction: column; padding: 1rem 1.15rem; }
.stat-num { font-family: var(--display); font-style: italic; font-size: 2.1rem; font-weight: 900; line-height: 1.1; color: var(--violet-strong); font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-size: .9rem; font-weight: 600; }

.toolbar { display: grid; gap: 1rem; margin-bottom: .75rem; }
@media (min-width: 640px) { .toolbar { grid-template-columns: 2fr 1fr; } }

.admin-list { display: grid; gap: 1rem; margin-bottom: 2rem; }
.req-card { display: grid; gap: 1.1rem; }
.req-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.req-code { font-family: var(--mono); margin: 0; font-size: 1.2rem; }
.req-name { margin: 0; color: var(--muted); }
.desc p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; background: var(--bg-elev); padding: .85rem 1rem; border-radius: var(--radius-sm); }
.req-form { display: grid; gap: 1rem; border-top: 1px solid var(--border); padding-top: 1.1rem; }
.req-form .actions { margin-top: 0; }

.data-tools h2 { font-size: 1.15rem; }
.data-tools .actions { margin-top: .5rem; }

/* ---------- Anti-robô, privacidade, rodapé ---------- */
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-privacy { margin: 0; font-size: .92rem; color: var(--muted); }
.form-error { padding: .75rem .9rem; border-radius: var(--radius-sm); background: var(--danger-bg); border: 1px solid #5c2a2a; }
.loading { padding: .5rem 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.privacy h2 { font-size: 1.2rem; margin-top: 2rem; }
.privacy p { color: var(--muted); max-width: 65ch; }
.privacy-version { font-size: .85rem; margin-top: 2rem; }

/* ---------- Aviso flutuante ---------- */
.toast {
  position: fixed; left: 50%; bottom: 1.25rem; transform: translate(-50%, 1rem);
  max-width: calc(100% - 2rem); width: max-content;
  background: var(--card-2); color: var(--text); border: 1px solid var(--violet);
  border-radius: var(--radius-sm); padding: .75rem 1rem; font-weight: 600;
  box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .8);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .3s var(--ease); z-index: 50;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
  .laptop, .lid { transition: none !important; }
  .laptop { transform: rotateX(-14deg) rotateY(16deg); }
  .laptop.is-closed .lid { transform: rotateX(10deg); }
  .screen { transform: none !important; filter: none !important; transition: opacity .3s ease; }
  .laptop.is-closed .screen[data-screen="0"] { opacity: 1; }
  .phone { transform: rotateY(-14deg) rotateZ(3deg); }
  .laptop.is-closed ~ .phone { translate: none; opacity: 1; }
  .pscreen { transform: none !important; filter: none !important; transition: opacity .3s ease; }
  .scr-bar { transform: none !important; transition: none !important; }
  .scr-arrow { stroke-dashoffset: 0 !important; transition: none !important; }
  .scr-arrow-head { opacity: 1 !important; transition: none !important; }
  .js .brush path { stroke-dashoffset: 0; transition: none; }
  .btn:hover { transform: none; }
}

@media print {
  .site-header, .site-footer, .toast, .actions, .req-form, .stage-visual { display: none; }
  body { background: #fff; color: #000; }
  body::before { display: none; }
  .card { border-color: #ccc; background: #fff; }
}
