/* Landing do CFD. Mesmas cores e fonte do painel (web/src/index.css). Sem build: HTML, CSS e JS puros. */

:root {
  color-scheme: light;

  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #18181b;
  --ink-2: #3f3f46;
  --muted: #71717a;
  --line: #e8e6e1;
  --line-2: #d9d7d1;

  --brand-50: #ecfdf5;
  --brand-100: #d1fae5;
  --brand-200: #a7f3d0;
  --brand-300: #6ee7b7;
  --brand-400: #34d399;
  --brand-500: #10b981;
  --brand-600: #059669;
  --brand-700: #047857;
  --brand-800: #065f46;
  --brand-900: #064e3b;
  --brand-950: #022c22;

  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-500: #f59e0b;
  --amber-700: #b45309;
  --sky-100: #e0f2fe;
  --sky-700: #0369a1;

  /* Conversa no estilo do WhatsApp (as mesmas do painel) */
  --chat-wall: #efeae2;
  --chat-out: #d9fdd3;
  --chat-ink: #111b21;
  --chat-meta: #667781;
  --chat-tick: #53bdeb;

  --shadow-xs: 0 1px 2px rgb(24 24 27 / 0.05);
  --shadow-card: 0 1px 2px rgb(24 24 27 / 0.04), 0 10px 30px -14px rgb(24 24 27 / 0.16);
  --shadow-float: 0 28px 60px -22px rgb(24 24 27 / 0.42), 0 10px 22px -12px rgb(24 24 27 / 0.2);
  --shadow-bubble: 0 1px 0.5px rgb(11 20 26 / 0.13);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand-700);
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  background: rgb(167 243 208 / 0.7);
  color: var(--brand-950);
}

:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 3px;
  border-radius: 6px;
}

.ic {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

@media (max-width: 480px) {
  .container {
    padding-inline: 16px;
  }
}

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
}

.skip:focus {
  left: 16px;
}

/* ─── Botões ─────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s,
    transform 0.2s var(--ease),
    box-shadow 0.2s;
}

.btn .ic {
  font-size: 18px;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.btn-sm .ic {
  font-size: 16px;
}

.btn-primary {
  background: var(--brand-600);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.18),
    0 10px 22px -10px rgb(5 150 105 / 0.7);
}

.btn-primary:hover {
  background: var(--brand-700);
}

.btn-ghost {
  color: var(--ink);
  border-color: var(--line-2);
  background: rgb(255 255 255 / 0.6);
}

.btn-ghost:hover {
  background: #fff;
  border-color: #c4c2bb;
}

.btn-ghost .ic {
  transition: transform 0.2s var(--ease);
}

.btn-ghost:hover .ic {
  transform: translateX(3px);
}

.btn-outline {
  color: var(--ink);
  background: #fff;
  border-color: var(--line-2);
}

.btn-outline:hover {
  border-color: var(--brand-500);
  color: var(--brand-800);
}

.btn-light {
  background: #fff;
  color: var(--brand-900);
  box-shadow: 0 14px 30px -14px rgb(0 0 0 / 0.5);
}

.btn-light:hover {
  background: var(--brand-50);
}

/* ─── Marca ──────────────────────────────────────────── */

.logo {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.logo-mark {
  display: block;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.logo-wordmark {
  display: block;
  width: 152px;
  height: auto;
}

.logo.small {
  gap: 8px;
}

.logo.small .logo-mark {
  width: 28px;
  height: 28px;
}

.logo.small .logo-wordmark {
  width: 112px;
}

/* ─── Topo fixo ──────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(251 250 247 / 0.82);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.topbar.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px -16px rgb(24 24 27 / 0.3);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.nav {
  display: flex;
  gap: 4px;
}

.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.nav a:hover {
  background: rgb(24 24 27 / 0.05);
  color: var(--ink);
}

@media (max-width: 920px) {
  .nav {
    display: none;
  }
}

@media (max-width: 380px) {
  .topbar .btn-sm span {
    display: none;
  }

  .topbar .btn-sm {
    width: 40px;
    padding: 0;
  }
}

/* ─── Seções e títulos ───────────────────────────────── */

section {
  padding-block: clamp(72px, 10vw, 128px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-800);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 0 0 3px rgb(16 185 129 / 0.18);
}

.section-head {
  max-width: 740px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head.left {
  margin-left: 0;
  text-align: left;
}

.section-head h2 {
  margin: 18px 0 14px;
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.032em;
  font-weight: 680;
}

.section-head h2:first-child {
  margin-top: 0;
}

.section-head p:not(.eyebrow) {
  margin: 0;
  color: var(--ink-2);
  font-size: clamp(1.02rem, 1.3vw, 1.12rem);
}

/* Entrada suave ao rolar (só com JS; sem JS tudo aparece) */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

.js .reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ─── Topo da página ─────────────────────────────────── */

.hero {
  position: relative;
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: 32px;
  background:
    radial-gradient(60% 50% at 85% 10%, rgb(245 158 11 / 0.1), transparent 70%),
    radial-gradient(50% 45% at 5% 30%, rgb(16 185 129 / 0.1), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
  align-items: center;
  gap: 56px;
}

.hero h1 {
  margin: 22px 0 20px;
  font-size: clamp(2.15rem, 4vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: -0.038em;
  font-weight: 690;
}

.lead {
  margin: 0;
  max-width: 34em;
  color: var(--ink-2);
  font-size: clamp(1.04rem, 1.35vw, 1.15rem);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 500;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-points .ic {
  color: var(--brand-600);
  stroke-width: 2.6;
}

.js .hero-copy .reveal:nth-child(2) {
  transition-delay: 0.06s;
}

.js .hero-copy .reveal:nth-child(3) {
  transition-delay: 0.12s;
}

.js .hero-copy .reveal:nth-child(4) {
  transition-delay: 0.18s;
}

.js .hero-copy .reveal:nth-child(5) {
  transition-delay: 0.24s;
}

/* Foto, celular e avisos */
.hero-visual {
  position: relative;
  height: 620px;
}

.hero-photo {
  position: absolute;
  inset: 0 0 70px 84px;
  margin: 0;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow-card);
  background: #2a211b;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgb(0 0 0 / 0.28), transparent 45%);
  pointer-events: none;
}

.phone {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  width: 292px;
  height: 572px;
  padding: 9px;
  border-radius: 46px;
  background: #101012;
  box-shadow:
    var(--shadow-float),
    inset 0 0 0 1.5px rgb(255 255 255 / 0.08);
}

.phone::before {
  /* câmera */
  content: "";
  position: absolute;
  top: 17px;
  left: 50%;
  width: 84px;
  height: 22px;
  border-radius: 999px;
  background: #101012;
  transform: translateX(-50%);
  z-index: 3;
}

.phone-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 38px;
  background: var(--chat-wall);
}

.wa-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 44px 14px 10px;
  background: #f6f5f3;
  border-bottom: 1px solid rgb(0 0 0 / 0.06);
}

.wa-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #c2410c);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.wa-who {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.wa-who strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--chat-ink);
}

.wa-who small {
  font-size: 11.5px;
  color: var(--chat-meta);
}

.wa-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
  min-height: 0;
  padding: 10px 9px 8px;
  overflow: hidden;
  background-color: var(--chat-wall);
  background-image: radial-gradient(rgb(0 0 0 / 0.045) 1px, transparent 1.2px);
  background-size: 14px 14px;
  transition: opacity 0.5s;
}

.wa-body.fade {
  opacity: 0;
}

.wa-input {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px 14px;
  background: var(--chat-wall);
}

.wa-input > span:first-child {
  flex: 1;
  display: flex;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  color: #8a9499;
  font-size: 13px;
  box-shadow: var(--shadow-bubble);
}

.wa-mic {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-600);
  color: #fff;
  font-size: 17px;
}

/* Mensagens que entram empurrando as anteriores para cima */
.msg {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}

.msg.show {
  grid-template-rows: 1fr;
}

.msg-in {
  display: flex;
  min-height: 0;
  overflow: hidden;
  padding: 0 2px 1px;
}

.msg.out .msg-in {
  justify-content: flex-end;
}

.msg .b {
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  transition:
    opacity 0.35s 0.08s,
    transform 0.45s 0.08s var(--ease);
}

.msg.show .b {
  opacity: 1;
  transform: none;
}

.b {
  position: relative;
  max-width: 84%;
  padding: 6px 9px 7px;
  border-radius: 10px;
  background: #fff;
  color: var(--chat-ink);
  font-size: 12.8px;
  line-height: 1.4;
  box-shadow: var(--shadow-bubble);
}

.b b,
.b strong {
  font-weight: 650;
}

.b-in {
  border-top-left-radius: 3px;
}

.b-out {
  background: var(--chat-out);
  border-top-right-radius: 3px;
}

.b .meta {
  float: right;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 5px 0 -4px 10px;
  font-size: 10.5px;
  line-height: 1;
  color: var(--chat-meta);
}

.b .ticks {
  width: 15px;
  height: 10px;
  fill: none;
  stroke: var(--chat-tick);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.b.swap {
  animation: swap-in 0.3s var(--ease);
}

@keyframes swap-in {
  from {
    opacity: 0.4;
  }
}

.b.typing {
  display: inline-flex;
  gap: 4px;
  padding: 11px 12px;
}

.b.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #93a0a6;
  animation: dot 1.2s ease-in-out infinite;
}

.b.typing i:nth-child(2) {
  animation-delay: 0.15s;
}

.b.typing i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes dot {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  30% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

/* Áudio */
.b-audio {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 210px;
  padding: 8px 10px 16px;
}

.b-audio .meta {
  position: absolute;
  right: 8px;
  bottom: 6px;
  margin: 0;
}

.audio-play {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #54656f;
  font-size: 22px;
}

.audio-time {
  position: absolute;
  left: 44px;
  bottom: 4px;
  font-size: 10.5px;
  color: var(--chat-meta);
}

.wave {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 26px;
}

.wave i {
  flex: 1;
  min-width: 2px;
  height: 30%;
  border-radius: 2px;
  background: #a8b8b2;
}

.wave i:nth-child(6n + 1) { height: 34%; }
.wave i:nth-child(6n + 2) { height: 72%; }
.wave i:nth-child(6n + 3) { height: 50%; }
.wave i:nth-child(6n + 4) { height: 92%; }
.wave i:nth-child(6n + 5) { height: 58%; }
.wave i:nth-child(6n) { height: 40%; }
.wave i:nth-child(7n) { height: 80%; }

.msg .b-audio .wave i {
  animation: bar-played 0.2s forwards;
  animation-delay: calc(var(--i, 0) * 55ms + 300ms);
}

@keyframes bar-played {
  to {
    background: var(--brand-600);
  }
}

/* Comprovante enviado como foto */
.b-img {
  padding: 3px 3px 18px;
}

.b-img .meta {
  position: absolute;
  right: 8px;
  bottom: 5px;
  margin: 0;
}

.mini-receipt {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 150px;
  padding: 12px 12px 14px;
  border-radius: 8px;
  background: linear-gradient(#fff, #f7f7f5);
  font-size: 10.5px;
  color: var(--muted);
}

.mini-receipt b {
  color: #32bcad;
  font-size: 10.5px;
}

.mini-receipt strong {
  color: var(--chat-ink);
  font-size: 17px;
  letter-spacing: -0.02em;
}

.mini-receipt i {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: #e7e7e4;
}

.mini-receipt i:nth-of-type(2) {
  width: 70%;
}

.mini-receipt i:nth-of-type(3) {
  width: 45%;
}

/* O que o agente acabou de fazer */
.hero-note {
  position: absolute;
  right: 24px;
  bottom: 124px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 270px;
  padding: 10px 16px 10px 10px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-float);
  font-size: 13.5px;
  font-weight: 560;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.3s,
    transform 0.4s var(--ease);
}

.hero-note.show {
  opacity: 1;
  transform: none;
}

.hero-note.show.swap {
  opacity: 0;
  transform: translateY(4px);
}

.hero-note-ic {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 17px;
}

.order-pop {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-float);
  opacity: 0;
  transform: translateY(-12px) scale(0.96);
  transition:
    opacity 0.35s,
    transform 0.5s var(--ease);
}

.order-pop.show {
  opacity: 1;
  transform: none;
}

.order-pop-bell {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--amber-100);
  color: var(--amber-700);
  font-size: 19px;
}

.order-pop.show .order-pop-bell .ic {
  animation: ring 0.9s 0.2s ease-in-out 2;
}

@keyframes ring {
  0%,
  100% {
    transform: rotate(0);
  }
  20% {
    transform: rotate(16deg);
  }
  40% {
    transform: rotate(-14deg);
  }
  60% {
    transform: rotate(9deg);
  }
  80% {
    transform: rotate(-5deg);
  }
}

.order-pop-body {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.order-pop-title {
  font-size: 14.5px;
  font-weight: 650;
}

.order-pop-sub {
  font-size: 12.5px;
  color: var(--muted);
}

.segments {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 56px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.segments span {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-weight: 500;
}

@media (max-width: 1100px) {
  .hero-grid {
    gap: 40px;
  }

  .hero-photo {
    inset: 0 0 80px 64px;
  }

  .hero-note {
    max-width: 230px;
  }
}

@media (max-width: 959px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .hero-visual {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-photo {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 24px;
  }

  .hero-photo::after {
    background: linear-gradient(to top, rgb(0 0 0 / 0.3), transparent 50%);
  }

  .phone {
    position: relative;
    left: auto;
    bottom: auto;
    width: 280px;
    height: 548px;
    margin-top: -150px;
  }

  .hero-note {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 18px;
    max-width: 320px;
  }

  .order-pop {
    top: 14px;
    right: 14px;
  }
}

@media (max-width: 480px) {
  .hero-photo {
    aspect-ratio: 4 / 3;
  }

  .phone {
    margin-top: -110px;
  }

  .order-pop {
    top: 10px;
    right: 10px;
    left: 10px;
    padding: 10px 14px 10px 10px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }
}

/* ─── Cenas (fotos) ──────────────────────────────────── */

.scenes-band {
  padding-top: clamp(56px, 8vw, 104px);
}

.scene-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.scene-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 26px;
  background: #2a211b;
  box-shadow: var(--shadow-card);
}

.scene-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.scene-card:hover img {
  transform: scale(1.03);
}

.scene-card figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgb(255 255 255 / 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 15px;
  font-weight: 520;
  line-height: 1.45;
}

.scene-card .time {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand-800);
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.js .scene-card.reveal:nth-child(2) {
  transition-delay: 0.1s;
}

@media (max-width: 760px) {
  .scene-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ─── Como funciona (palco fixo + passos) ────────────── */

.how {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 72px;
}

.stage {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  position: sticky;
  top: max(88px, calc(50vh - 270px));
}

.stage-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 480 / 440;
  overflow: hidden;
  border-radius: 30px;
  background:
    radial-gradient(80% 60% at 80% 0%, rgb(16 185 129 / 0.1), transparent 70%),
    linear-gradient(180deg, #f5f7f4, #eef2ed);
  border: 1px solid var(--line);
}

.stage-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 480px;
  height: 440px;
  transform: scale(var(--s, 1));
  transform-origin: 0 0;
}

.scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s,
    visibility 0s 0.5s;
}

.scene.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s;
}

.stage-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.stage-dots li {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--line-2);
  transition:
    width 0.4s var(--ease),
    background-color 0.4s;
}

.stage-dots li.is-on {
  width: 26px;
  background: var(--brand-600);
}

.steps {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 70vh;
  padding: 24px 0;
  opacity: 0.3;
  transition: opacity 0.5s;
}

.step:first-child {
  min-height: 52vh;
  justify-content: flex-start;
  padding-top: 8vh;
}

.step:last-child {
  min-height: 62vh;
}

.step.is-current {
  opacity: 1;
}

.step-n {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--brand-200);
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 15px;
  font-weight: 700;
}

.step h3 {
  margin: 18px 0 10px;
  font-size: clamp(1.4rem, 2.3vw, 1.85rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 670;
}

.step p {
  margin: 0;
  max-width: 30em;
  color: var(--ink-2);
  font-size: 1.06rem;
}

@media (max-width: 959px) {
  .story {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .stage {
    align-self: stretch;
    top: 64px;
    z-index: 5;
    margin-inline: -24px;
    padding: 12px 24px 10px;
    background: linear-gradient(var(--surface) 88%, rgb(255 255 255 / 0));
  }

  .stage-frame {
    max-width: 380px;
    margin-inline: auto;
    border-radius: 24px;
  }

  .stage-dots {
    margin-top: 10px;
  }

  .step,
  .step:first-child,
  .step:last-child {
    min-height: 58vh;
    justify-content: flex-start;
    padding: 28px 0 0;
  }

  .step:last-child {
    min-height: 44vh;
  }

  .step {
    opacity: 0.22;
  }
}

@media (max-width: 480px) {
  .stage {
    margin-inline: -16px;
    padding-inline: 16px;
  }

  .stage-frame {
    max-width: 300px;
  }
}

/* Linha do tempo das cenas: cada [data-at] ganha .on no seu tempo */
.scene [data-at] {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.45s,
    transform 0.55s var(--ease);
}

.scene [data-at].on {
  opacity: 1;
  transform: none;
}

/* Cena 1: áudio */
.mini-wall {
  position: absolute;
  inset: 26px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 24px 22px;
  border-radius: 22px;
  background-color: var(--chat-wall);
  background-image: radial-gradient(rgb(0 0 0 / 0.045) 1px, transparent 1.2px);
  background-size: 14px 14px;
  box-shadow: var(--shadow-card);
}

.scene-audio .b-audio {
  align-self: flex-end;
  width: 290px;
  max-width: none;
  padding: 12px 14px 20px;
  font-size: 14px;
}

.scene-audio .b-audio .audio-time {
  left: 54px;
  bottom: 6px;
  font-size: 11.5px;
}

.scene-audio .wave {
  height: 32px;
}

.scene-audio .wave i {
  transition: background-color 0.2s;
}

.scene-audio .b-audio.on .wave i {
  animation: bar-played 0.2s forwards;
  animation-delay: calc(var(--i, 0) * 45ms + 250ms);
}

.wave-progress {
  display: none;
}

.flow-arrow {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--brand-600);
}

.flow-arrow svg {
  width: 22px;
  height: 44px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
}

.flow-arrow.on svg {
  transition: stroke-dashoffset 0.7s ease-out;
  stroke-dashoffset: 0;
}

.flow-arrow span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-700);
}

.transcript {
  padding: 14px 16px 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.transcript-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.transcript p {
  min-height: 46px;
  margin: 6px 0 0;
  font-size: 16px;
  font-weight: 540;
  line-height: 1.42;
}

.transcript p .caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 1px;
  vertical-align: -0.15em;
  background: var(--brand-600);
  animation: caret 0.9s steps(1) infinite;
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.chip-ok {
  align-self: center;
  background: var(--brand-600);
  color: #fff;
  box-shadow: 0 8px 18px -8px rgb(5 150 105 / 0.7);
}

.chip-ok .ic {
  stroke-width: 3;
}

/* Cena 2: cardápio */
.menu-card {
  position: absolute;
  top: 34px;
  left: 24px;
  width: 214px;
  padding: 8px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.menu-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 10px;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 650;
}

.menu-card-head .ic {
  color: var(--brand-600);
}

.menu-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
}

.menu-row span:last-child {
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.menu-row.muted {
  color: var(--muted);
}

.scene .menu-row[data-at] {
  opacity: 1;
  transform: none;
  transition:
    background-color 0.35s,
    box-shadow 0.35s;
}

.scene .menu-row.is-hit.on {
  background: var(--brand-50);
  box-shadow: inset 0 0 0 1.5px var(--brand-400);
  font-weight: 600;
}

.connector {
  position: absolute;
  inset: 0;
  width: 480px;
  height: 440px;
  overflow: visible;
  pointer-events: none;
}

.scene .connector[data-at] {
  opacity: 1;
  transform: none;
}

.connector path {
  fill: none;
  stroke: var(--brand-500);
  stroke-width: 2;
  stroke-dasharray: 6 6;
  stroke-dashoffset: 0;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.8s ease-out;
}

.connector.on path {
  clip-path: inset(0 0 0 0);
}

.mini-chat {
  position: absolute;
  right: 22px;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 214px;
}

.mini-chat .b {
  max-width: 100%;
  font-size: 13px;
}

.mini-chat .b-out {
  align-self: flex-end;
}

.b-files {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px 4px 8px;
}

.b-files small {
  grid-column: 1 / -1;
  padding: 2px 4px 0;
  color: var(--chat-meta);
  font-size: 11.5px;
}

.file-thumb {
  display: flex;
  flex-direction: column;
  gap: 5px;
  height: 64px;
  padding: 10px 9px;
  border-radius: 7px;
  background: linear-gradient(160deg, #7c2d12, #c2410c);
}

.file-thumb.alt {
  background: linear-gradient(160deg, #14532d, #15803d);
}

.file-thumb span {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: rgb(255 255 255 / 0.75);
}

.file-thumb span:nth-child(1) {
  width: 60%;
  height: 8px;
  background: #fff;
}

.file-thumb span:nth-child(3) {
  width: 70%;
}

/* Cena 3: frete e carrinho */
.map-card {
  position: absolute;
  top: 26px;
  left: 26px;
  right: 26px;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.map {
  display: block;
  width: 100%;
  height: auto;
}

.map-bg {
  fill: #eef1ec;
}

.map-park {
  fill: #d7ecd9;
}

.map-streets path {
  fill: none;
  stroke: #fff;
  stroke-width: 9;
}

.map-streets path.minor {
  stroke-width: 4;
}

.route {
  fill: none;
  stroke: var(--brand-600);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
}

.scene .route[data-at] {
  opacity: 1;
  transform: none;
  transition: stroke-dashoffset 1.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.scene .route.on {
  stroke-dashoffset: 0;
}

.pin circle {
  stroke: #fff;
  stroke-width: 3;
}

.pin use {
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pin-store circle {
  fill: var(--brand-600);
}

.pin-home circle {
  fill: #27272a;
}

.scene .pin[data-at] {
  transform: scale(0.4);
  transform-box: fill-box;
  transform-origin: center;
}

.scene .pin[data-at].on {
  transform: none;
}

.km-tag {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-card);
  color: var(--brand-800);
  font-size: 12.5px;
  font-weight: 650;
}

.cart-card {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 24px;
  padding: 12px 16px 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-card);
  font-size: 13.5px;
}

.cart-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}

.cart-line,
.cart-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
  font-variant-numeric: tabular-nums;
}

.cart-line.is-fee {
  color: var(--brand-800);
  font-weight: 560;
}

.cart-total {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed var(--line-2);
  font-size: 15px;
  font-weight: 700;
}

/* Cena 4: pagamento */
.receipt {
  position: absolute;
  top: 40px;
  left: 30px;
  width: 196px;
  padding: 16px 16px 18px;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.receipt-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 650;
}

.pix-mark {
  color: #32bcad;
  font-size: 14px;
}

.receipt-value {
  margin: 12px 0 14px;
  font-size: 27px;
  font-weight: 720;
  letter-spacing: -0.03em;
}

.receipt dl {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.receipt dl div {
  display: flex;
  flex-direction: column;
}

.receipt dt {
  color: var(--muted);
  font-size: 11px;
}

.receipt dd {
  margin: 0;
  font-size: 13px;
  font-weight: 560;
}

.scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--brand-500);
  box-shadow: 0 0 22px 6px rgb(16 185 129 / 0.45);
}

.scene .scanline[data-at] {
  transform: none;
}

.scene .scanline.on {
  animation: scan 2.4s ease-in-out forwards;
}

@keyframes scan {
  0% {
    top: 0;
    opacity: 1;
  }
  45% {
    top: calc(100% - 3px);
  }
  90% {
    top: 0;
    opacity: 1;
  }
  100% {
    top: 0;
    opacity: 0;
  }
}

.checks {
  position: absolute;
  top: 48px;
  right: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 210px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 560;
  line-height: 1.3;
}

.check-row .ic {
  display: block;
  width: 20px;
  height: 20px;
  padding: 3px;
  border-radius: 50%;
  background: var(--brand-600);
  color: #fff;
  stroke-width: 3.2;
}

.checks .b {
  max-width: 100%;
  margin-top: 6px;
  font-size: 13.5px;
}

/* Cena 5: painel */
.mini-panel {
  position: absolute;
  top: 26px;
  left: 26px;
  right: 26px;
  padding: 14px;
  border-radius: 18px;
  background: #fafaf9;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.mini-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mp-title {
  font-size: 16px;
  font-weight: 680;
}

.mp-bell {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--amber-100);
  color: var(--amber-700);
  font-size: 17px;
}

.scene .mp-bell[data-at] {
  opacity: 1;
  transform: none;
}

.scene .mp-bell.on .ic {
  animation: ring 0.9s ease-in-out 2;
}

.mp-tabs {
  display: flex;
  gap: 4px;
  margin: 10px 0 10px;
}

.mp-tabs span,
.app-tabs span {
  padding: 4px 9px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.mp-tabs .on-tab,
.app-tabs .on-tab {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-xs);
}

.mp-order {
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}

.scene .mp-order[data-at] {
  transform: translateY(-14px) scale(0.98);
}

.scene .mp-order[data-at].on {
  transform: none;
  animation: new-glow 2.4s ease-out;
}

@keyframes new-glow {
  0% {
    box-shadow: 0 0 0 0 rgb(245 158 11 / 0);
    background: var(--amber-50);
  }
  20% {
    box-shadow: 0 0 0 4px rgb(245 158 11 / 0.18);
  }
  100% {
    box-shadow: 0 0 0 0 rgb(245 158 11 / 0);
    background: #fff;
  }
}

.mp-order.ghost {
  opacity: 0.55;
}

.mp-order-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
}

.mp-order-items {
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 12.5px;
}

.mp-order-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.mp-order-meta strong {
  color: var(--ink);
  font-weight: 650;
}

.pills {
  position: relative;
  display: grid;
  justify-items: end;
}

.pills .pill {
  grid-area: 1 / 1;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 650;
  white-space: nowrap;
}

.pill-new {
  background: var(--amber-100);
  color: var(--amber-700);
}

.pill-prep {
  background: var(--sky-100);
  color: var(--sky-700);
}

.pill-out {
  background: var(--brand-100);
  color: var(--brand-800);
}

.pill-done {
  background: #f4f4f5;
  color: #52525b;
}

.scene .pill[data-at] {
  transform: scale(0.85);
}

.scene .pill[data-at].on {
  transform: none;
}

.notify-stack {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 26px;
  height: 92px;
  padding: 12px 14px;
  border-radius: 18px;
  background-color: var(--chat-wall);
  background-image: radial-gradient(rgb(0 0 0 / 0.045) 1px, transparent 1.2px);
  background-size: 14px 14px;
}

.notify-stack::before {
  content: "WhatsApp da Ana";
  position: absolute;
  top: -9px;
  right: 14px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
}

.notify {
  position: absolute;
  top: 14px;
  left: 14px;
  max-width: calc(100% - 28px) !important;
  font-size: 13.5px;
}

.notify.rating {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stars {
  display: flex;
  gap: 4px;
}

.stars .ic {
  width: 22px;
  height: 22px;
  color: #d4d4d8;
  fill: transparent;
  stroke-width: 1.6;
}

.scene .stars .ic[data-at] {
  opacity: 1;
  transform: none;
  transition:
    color 0.25s,
    fill 0.25s,
    transform 0.3s var(--ease);
}

.scene .stars .ic[data-at].on {
  color: var(--amber-500);
  fill: var(--amber-500);
  transform: scale(1.12);
}

/* ─── Recursos ───────────────────────────────────────── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature {
  padding: 18px 18px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}

.feature h3 {
  margin: 0 4px 8px;
  font-size: 17.5px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.feature p {
  margin: 0 4px;
  color: var(--ink-2);
  font-size: 14.8px;
  line-height: 1.55;
}

.feature-art {
  position: relative;
  display: grid;
  place-items: center;
  height: 156px;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 16px;
  background:
    radial-gradient(70% 70% at 50% 0%, rgb(16 185 129 / 0.08), transparent 70%),
    #f4f5f1;
}

.feature:not(.playing) .feature-art *,
.feature:not(.playing) .feature-art *::before,
.feature:not(.playing) .feature-art *::after {
  animation-play-state: paused !important;
}

/* Áudio virando texto */
.art-audio {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.fa-bubble {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 200px;
  padding: 8px 12px;
  border-radius: 12px 3px 12px 12px;
  background: var(--chat-out);
  box-shadow: var(--shadow-bubble);
}

.audio-play.sm {
  width: 20px;
  height: 20px;
  font-size: 18px;
}

.wave.loop i {
  background: var(--brand-600);
  animation: wave 1.1s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -90ms);
  transform-origin: center;
}

@keyframes wave {
  0%,
  100% {
    transform: scaleY(0.45);
  }
  50% {
    transform: scaleY(1);
  }
}

.fa-lines {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 200px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.fa-lines span {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: #d4d4d8;
  animation: type-line 3.2s ease-in-out infinite;
  transform-origin: left;
}

.fa-lines span:nth-child(2) {
  width: 65%;
  animation-delay: 0.35s;
}

@keyframes type-line {
  0%,
  10% {
    transform: scaleX(0);
  }
  45%,
  85% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(1);
    opacity: 0;
  }
}

/* Rota */
.art-route svg {
  width: 250px;
  height: auto;
}

.r-grid {
  fill: none;
  stroke: #fff;
  stroke-width: 7;
}

.r-route {
  fill: none;
  stroke: var(--brand-600);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 290;
  stroke-dashoffset: 290;
  animation: route 3.6s ease-in-out infinite;
}

@keyframes route {
  0% {
    stroke-dashoffset: 290;
  }
  55%,
  85% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

.r-dot {
  fill: #fff;
  stroke-width: 3.5;
}

.r-dot.a {
  stroke: var(--brand-600);
}

.r-dot.b {
  stroke: #27272a;
}

.fa-tag {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-xs);
  color: var(--brand-800);
  font-size: 12.5px;
  font-weight: 650;
  animation: tag 3.6s ease-in-out infinite;
}

@keyframes tag {
  0%,
  50% {
    opacity: 0;
    transform: translateY(4px);
  }
  60%,
  90% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
  }
}

/* Comprovante */
.fa-receipt {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 132px;
  padding: 14px;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.fa-receipt .l {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: #e4e4e7;
}

.fa-receipt .w60 {
  width: 60%;
}

.fa-receipt .w80 {
  width: 80%;
}

.fa-receipt .w40 {
  width: 40%;
}

.fa-receipt .v {
  font-size: 17px;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.fa-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-500);
  box-shadow: 0 0 16px 4px rgb(16 185 129 / 0.4);
  animation: fa-scan 3s ease-in-out infinite;
}

@keyframes fa-scan {
  0% {
    top: 0;
    opacity: 1;
  }
  40% {
    top: calc(100% - 3px);
    opacity: 1;
  }
  50%,
  100% {
    top: calc(100% - 3px);
    opacity: 0;
  }
}

.fa-ok {
  position: absolute;
  top: 26px;
  left: calc(50% + 50px);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-600);
  color: #fff;
  font-size: 18px;
  box-shadow: 0 8px 16px -6px rgb(5 150 105 / 0.7);
  animation: pop-ok 3s ease-in-out infinite;
}

.fa-ok .ic {
  stroke-width: 3;
}

@keyframes pop-ok {
  0%,
  42% {
    transform: scale(0);
  }
  52% {
    transform: scale(1.15);
  }
  60%,
  92% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}

/* Passar para um atendente */
.art-handoff {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.fa-avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 24px;
  box-shadow: var(--shadow-card);
}

.fa-avatar.bot {
  background: #fff;
  color: var(--brand-700);
  animation: dim-bot 4s ease-in-out infinite;
}

.fa-avatar.human {
  background: var(--amber-100);
  color: var(--amber-700);
  animation: light-human 4s ease-in-out infinite;
}

.fa-swap {
  position: relative;
  width: 74px;
  height: 2px;
  margin: 0 6px;
  background: repeating-linear-gradient(90deg, #c7c7c2 0 6px, transparent 6px 11px);
}

.fa-swap::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber-500);
  animation: travel 4s ease-in-out infinite;
}

.fa-alert {
  position: absolute;
  top: 14px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-card);
  color: var(--amber-700);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  transform: translateX(-50%);
  animation: alert 4s ease-in-out infinite;
}

@keyframes dim-bot {
  0%,
  30% {
    opacity: 1;
  }
  45%,
  90% {
    opacity: 0.4;
  }
  100% {
    opacity: 1;
  }
}

@keyframes light-human {
  0%,
  35% {
    opacity: 0.45;
    transform: scale(0.94);
  }
  50%,
  90% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0.45;
    transform: scale(0.94);
  }
}

@keyframes travel {
  0%,
  15% {
    left: 0;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  45% {
    left: calc(100% - 10px);
    opacity: 1;
  }
  50%,
  100% {
    left: calc(100% - 10px);
    opacity: 0;
  }
}

@keyframes alert {
  0%,
  45% {
    opacity: 0;
    transform: translate(-50%, -6px);
  }
  55%,
  90% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
}

/* Horário e pausa */
.art-hours {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.fa-clock {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-card);
}

.fa-clock span {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 3px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--ink);
  transform-origin: bottom center;
}

.fa-clock .h {
  height: 15px;
  animation: spin 48s linear infinite;
}

.fa-clock .m {
  height: 22px;
  background: var(--brand-600);
  animation: spin 4s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.fa-status {
  display: grid;
  justify-items: center;
}

.fa-status > span {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 650;
  white-space: nowrap;
}

.fa-open {
  background: var(--brand-100);
  color: var(--brand-800);
  animation: show-a 8s ease-in-out infinite;
}

.fa-open i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-600);
  box-shadow: 0 0 0 3px rgb(5 150 105 / 0.2);
}

.fa-paused {
  background: var(--amber-100);
  color: var(--amber-700);
  animation: show-b 8s ease-in-out infinite;
}

@keyframes show-a {
  0%,
  45% {
    opacity: 1;
    transform: none;
  }
  50%,
  95% {
    opacity: 0;
    transform: translateY(4px);
  }
  100% {
    opacity: 1;
  }
}

@keyframes show-b {
  0%,
  45% {
    opacity: 0;
    transform: translateY(-4px);
  }
  50%,
  95% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
  }
}

/* Nota */
.art-stars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.fa-stars {
  display: flex;
  gap: 6px;
}

.fa-stars .ic {
  width: 30px;
  height: 30px;
  color: #d4d4d8;
  fill: #fff;
  stroke-width: 1.5;
  animation: star 4s ease-in-out infinite;
}

.fa-stars .ic:nth-child(2) {
  animation-delay: 0.15s;
}

.fa-stars .ic:nth-child(3) {
  animation-delay: 0.3s;
}

.fa-stars .ic:nth-child(4) {
  animation-delay: 0.45s;
}

.fa-stars .ic:nth-child(5) {
  animation-delay: 0.6s;
}

@keyframes star {
  0%,
  10% {
    color: #d4d4d8;
    fill: #fff;
    transform: scale(1);
  }
  18% {
    transform: scale(1.2);
  }
  24%,
  85% {
    color: var(--amber-500);
    fill: var(--amber-500);
    transform: scale(1);
  }
  100% {
    color: #d4d4d8;
    fill: #fff;
  }
}

.fa-quote {
  padding: 5px 12px;
  border-radius: 12px 12px 12px 3px;
  background: #fff;
  box-shadow: var(--shadow-bubble);
  font-size: 13px;
  font-weight: 520;
  animation: quote 4s ease-in-out infinite;
}

@keyframes quote {
  0%,
  35% {
    opacity: 0;
    transform: translateY(4px);
  }
  45%,
  85% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
  }
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 32px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 14px;
}

.feature-list li > .ic {
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand-700);
}

.feature-list strong {
  display: block;
  font-size: 15.5px;
  font-weight: 650;
}

.feature-list span {
  display: block;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.5;
}

.js .feature-grid .reveal:nth-child(3n + 2),
.js .feature-list .reveal:nth-child(3n + 2) {
  transition-delay: 0.08s;
}

.js .feature-grid .reveal:nth-child(3n),
.js .feature-list .reveal:nth-child(3n) {
  transition-delay: 0.16s;
}

@media (max-width: 1000px) {
  .feature-grid,
  .feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .feature-grid,
  .feature-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ─── Painel ─────────────────────────────────────────── */

.panel-sec {
  background:
    radial-gradient(60% 50% at 50% 0%, rgb(16 185 129 / 0.22), transparent 70%),
    var(--brand-950);
  color: #fff;
}

.section-head.on-dark h2 {
  color: #fff;
}

.section-head.on-dark p {
  color: rgb(255 255 255 / 0.74);
}

.on-dark .eyebrow {
  background: rgb(16 185 129 / 0.14);
  border-color: rgb(52 211 153 / 0.28);
  color: var(--brand-200);
}

.browser {
  max-width: 1060px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 18px;
  background: #fafaf9;
  border: 1px solid rgb(255 255 255 / 0.1);
  box-shadow:
    0 50px 100px -40px rgb(0 0 0 / 0.7),
    0 0 0 6px rgb(255 255 255 / 0.04);
  color: var(--ink);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 42px;
  padding: 0 14px;
  background: #efefec;
  border-bottom: 1px solid var(--line);
}

.dots {
  display: flex;
  gap: 7px;
}

.dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d9d8d3;
}

.url {
  flex: 0 1 380px;
  margin: 0 auto;
  padding: 4px 14px;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr) 236px;
  min-height: 420px;
}

.app-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 10px;
  background: #fff;
  border-right: 1px solid var(--line);
}

.app-side .logo {
  margin: 0 8px 16px;
}

.side-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
}

.side-item .ic {
  color: #8a8a93;
  font-size: 16px;
}

.side-item.on {
  background: var(--brand-50);
  color: var(--brand-800);
  font-weight: 600;
}

.side-item.on .ic {
  color: var(--brand-700);
}

.side-item b {
  margin-left: auto;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--brand-600);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.side-item b.bump {
  animation: bump 0.6s var(--ease);
}

@keyframes bump {
  40% {
    transform: scale(1.35);
  }
}

.app-main {
  min-width: 0;
  padding: 18px 20px;
}

.app-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-head h4 {
  margin: 0;
  font-size: 19px;
  font-weight: 680;
  letter-spacing: -0.02em;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--brand-700);
  font-size: 12px;
  font-weight: 650;
}

.live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-500);
  animation: live 2s ease-out infinite;
}

@keyframes live {
  0% {
    box-shadow: 0 0 0 0 rgb(16 185 129 / 0.5);
  }
  100% {
    box-shadow: 0 0 0 8px rgb(16 185 129 / 0);
  }
}

.app-tabs {
  display: flex;
  gap: 4px;
  margin: 12px 0 14px;
}

.orders {
  display: flex;
  flex-direction: column;
  height: 312px;
  overflow: hidden;
}

.row {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}

.row.show {
  grid-template-rows: 1fr;
}

.row-in {
  min-height: 0;
  overflow: hidden;
}

.order-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto 128px;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  padding: 11px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.4s,
    transform 0.5s var(--ease);
}

.row.show .order-row {
  opacity: 1;
  transform: none;
}

.order-row.is-new {
  animation: new-glow 2.6s ease-out;
}

.o-num {
  color: var(--muted);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.o-who {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.o-who strong {
  font-weight: 620;
}

.o-who small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.o-total {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.order-row .pill {
  justify-self: end;
  transition:
    background-color 0.4s,
    color 0.4s;
}

.order-row .pill.flip {
  animation: flip 0.5s var(--ease);
}

@keyframes flip {
  0% {
    transform: scale(0.8);
    opacity: 0.4;
  }
}

.app-kpis {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 16px;
  background: #fcfcfb;
  border-left: 1px solid var(--line);
}

.kpi {
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
}

.kpi span {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
}

.kpi strong {
  display: block;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  transition: color 0.4s;
}

.kpi strong.bump {
  color: var(--brand-700);
}

.peak-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 58px;
  margin-top: 10px;
}

.peak-bars i {
  flex: 1;
  height: var(--h);
  border-radius: 3px 3px 1px 1px;
  background: var(--brand-200);
}

.peak-bars i:nth-child(5) {
  background: var(--brand-500);
}

.peak-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.5px;
}

.panel-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: 1060px;
  margin: 48px auto 0;
  padding: 0;
  list-style: none;
}

.panel-points li {
  display: flex;
  gap: 14px;
  color: rgb(255 255 255 / 0.74);
  font-size: 15px;
  line-height: 1.5;
}

.panel-points .ic {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 12px;
  background: rgb(16 185 129 / 0.14);
  color: var(--brand-300);
}

.panel-points strong {
  display: block;
  color: #fff;
  font-weight: 650;
}

@media (max-width: 1000px) {
  .app {
    grid-template-columns: minmax(0, 1fr) 210px;
  }

  .app-side {
    display: none;
  }
}

@media (max-width: 760px) {
  .app {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-kpis {
    display: none;
  }

  .app-main {
    padding: 14px;
  }

  .order-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 10px;
  }

  .o-num {
    display: none;
  }

  .o-total {
    grid-row: 2;
    grid-column: 1;
    font-size: 12.5px;
  }

  .order-row .pill {
    grid-row: 1 / span 2;
    grid-column: 2;
  }

  .orders {
    height: 340px;
  }

  .panel-points {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .url {
    font-size: 11px;
  }
}

/* ─── Controle ───────────────────────────────────────── */

.control-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.control-item {
  padding: 26px 24px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.control-ic {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 22px;
}

.control-item h3 {
  margin: 18px 0 8px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.control-item p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}

.js .control-grid .reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.js .control-grid .reveal:nth-child(3) {
  transition-delay: 0.16s;
}

@media (max-width: 860px) {
  .control-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ─── Planos ─────────────────────────────────────────── */

.plans {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px 26px;
  border-radius: 26px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.plan h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 680;
  letter-spacing: -0.015em;
}

.plan-for {
  min-height: 3.2em;
  margin: 6px 0 20px;
  color: var(--muted);
  font-size: 14.5px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 0;
}

.price .cur {
  color: var(--ink-2);
  font-size: 19px;
  font-weight: 600;
}

.price .val {
  font-size: 52px;
  font-weight: 720;
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.price .per {
  color: var(--muted);
  font-size: 15px;
}

.plan ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 26px 0 30px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.plan li {
  display: flex;
  gap: 10px;
  font-size: 15px;
  line-height: 1.45;
}

.plan li .ic {
  margin-top: 3px;
  color: var(--brand-600);
  stroke-width: 2.6;
}

.plan .btn {
  width: 100%;
  margin-top: auto;
}

.plan-featured {
  background: #fff;
  border: 1.5px solid var(--brand-500);
  box-shadow: 0 34px 70px -34px rgb(5 150 105 / 0.5);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 26px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-600);
  color: #fff;
  font-size: 12px;
  font-weight: 650;
}

.js .plan-grid .reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.js .plan-grid .reveal:nth-child(3) {
  transition-delay: 0.16s;
}

@media (min-width: 961px) {
  .plan-featured {
    margin-block: -10px;
    padding-block: 40px 36px;
  }
}

@media (max-width: 960px) {
  .plan-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 480px;
    gap: 28px;
  }

  .plan-for {
    min-height: 0;
  }
}

/* ─── Dúvidas ────────────────────────────────────────── */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 56px;
  align-items: start;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list details:first-child {
  border-top: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 2px;
  cursor: pointer;
  list-style: none;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary .ic {
  color: var(--muted);
  font-size: 20px;
  transition: transform 0.3s var(--ease);
}

.faq-list details[open] summary .ic {
  transform: rotate(180deg);
}

.faq-list details p {
  margin: -4px 0 22px;
  padding-right: 36px;
  color: var(--ink-2);
  font-size: 15.5px;
}

.faq-list details[open] p {
  animation: faq-in 0.4s var(--ease);
}

@keyframes faq-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

@media (max-width: 860px) {
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .faq-grid .section-head {
    margin-bottom: 0;
  }
}

/* ─── Chamada final ──────────────────────────────────── */

.final {
  padding-top: 0;
}

.final-card {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 7vw, 84px) clamp(24px, 5vw, 64px);
  border-radius: 34px;
  background:
    radial-gradient(50% 80% at 100% 0%, rgb(52 211 153 / 0.35), transparent 70%),
    linear-gradient(135deg, var(--brand-900), var(--brand-700));
  color: #fff;
  text-align: center;
}

.final-card h2 {
  max-width: 16em;
  margin: 0 auto 14px;
  color: #fff;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.032em;
  font-weight: 690;
}

.final-card p {
  max-width: 34em;
  margin: 0 auto 30px;
  color: rgb(255 255 255 / 0.8);
  font-size: 1.08rem;
}

/* ─── Rodapé ─────────────────────────────────────────── */

.footer {
  padding: 32px 0 44px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}

.footer-tag {
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
}

.footer-links a {
  color: var(--ink-2);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--brand-700);
}

/* ─── Menos movimento ────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }

  /* Os recursos ficam parados no momento que explica cada um */
  .feature-art *,
  .feature-art *::before,
  .feature-art *::after {
    animation: none !important;
  }

  .r-route {
    stroke-dashoffset: 0;
  }

  .fa-scan,
  .fa-status .fa-paused,
  .fa-swap::after {
    display: none;
  }

  .fa-avatar.bot {
    opacity: 0.4;
  }

  .fa-stars .ic {
    color: var(--amber-500);
    fill: var(--amber-500);
  }
}
