/* ==========================================================================
   ProjectOnCotia — tokens, base, seções, demonstrações, responsividade
   ========================================================================== */

:root {
  --abyss: #050816;
  --navy: #0a1130;
  --navy-2: #111b45;
  --electric: #2f6bff;
  --ice: #eef3ff;
  --steel: #a4b1d6;
  --violet: #8b5cf6;
  --danger: #ff8a9d;
  --ok: #5fe0b0;
  --line: rgba(150, 175, 255, 0.17);
  --chrome: linear-gradient(105deg, #fff 8%, #a9c6ff 30%, #fff 44%, #5b8cff 62%, #c3a8ff 82%, #fff);
  --display: 'Archivo', 'Arial Black', sans-serif;
  --body: 'Manrope', system-ui, sans-serif;
  --pad: clamp(16px, 4vw, 40px);
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
  overflow-x: clip;
}
body {
  background: var(--abyss);
  color: var(--ice);
  font: 400 1rem/1.6 var(--body);
  overflow-x: clip;
}
img,
canvas,
svg {
  display: block;
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}
:focus-visible {
  outline: 3px solid #8fbaff;
  outline-offset: 3px;
}
section:focus,
section:focus-visible,
.demo:focus {
  outline: none;
}
h1,
h2,
h3,
h4 {
  font-family: var(--display);
  line-height: 1.08;
  text-wrap: balance;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 200;
  background: #fff;
  color: #000;
  padding: 10px 16px;
  border-radius: 8px;
}
.skip-link:focus {
  top: 12px;
}
.wrap {
  width: min(1240px, 100%);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.title {
  font-size: clamp(2rem, 4.8vw, 4.2rem);
  font-stretch: 118%;
  font-weight: 750;
  letter-spacing: -0.025em;
}
.title--sm {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}
.lead {
  color: var(--steel);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  max-width: 56ch;
  margin-top: 18px;
}
.muted {
  color: var(--steel);
  font-size: 0.88rem;
}

/* ---------- Botões ---------- */
.btn {
  --bx: 50%;
  --by: 50%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  background: transparent;
  transition:
    translate 0.25s,
    border-color 0.25s,
    box-shadow 0.25s,
    scale 0.12s;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    110px circle at var(--bx) var(--by),
    rgba(255, 255, 255, 0.34),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.25s;
}
.btn:hover:not(:disabled)::after {
  opacity: 1;
}
.btn:active:not(:disabled) {
  scale: 0.96;
}
.btn--primary {
  background: linear-gradient(110deg, #1857ee, #3a6cf5 55%, #7747e8);
  color: #fff;
  box-shadow:
    0 8px 28px -10px #2f6bff,
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn--ghost {
  border-color: rgba(170, 195, 255, 0.38);
  background: rgba(12, 20, 55, 0.5);
}
.btn--ghost:hover {
  border-color: #a9c6ff;
}
.btn--danger {
  border-color: rgba(255, 138, 157, 0.45);
  color: var(--danger);
}
.btn--sm {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.84rem;
}
.link-btn {
  background: none;
  border: 0;
  color: #9dc0ff;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 8px 0;
  min-height: 36px;
  font-size: 0.88rem;
}
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--navy-2);
  font-size: 1.2rem;
  line-height: 1;
}

/* ---------- Cabeçalho ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--pad);
  transition: background 0.3s;
}
.header.is-solid {
  background: rgba(5, 8, 22, 0.86);
  backdrop-filter: blur(14px);
}
.header__progress {
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--electric), var(--violet));
  transform-origin: left;
  transform: scaleX(0);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 750 1.05rem var(--display);
  font-stretch: 112%;
  text-decoration: none;
}
.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav a:not(.btn) {
  color: #d3ddfa;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 8px 0;
}
.nav a:not(.btn):hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-color: var(--electric);
}
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  position: relative;
}
.menu-btn span:not(.sr-only) {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background: #fff;
  top: 17px;
  transition: 0.25s;
}
.menu-btn span:nth-child(2) {
  top: 25px;
}
.menu-btn[aria-expanded='true'] span:nth-child(1) {
  top: 21px;
  rotate: 45deg;
}
.menu-btn[aria-expanded='true'] span:nth-child(2) {
  top: 21px;
  rotate: -45deg;
}

/* ---------- Abertura ---------- */
.intro {
  display: none;
}
.intro-on .intro {
  display: grid;
  place-items: center;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: radial-gradient(circle at 50% 50%, #0d1744, #02030a 62%);
  overflow: hidden;
}
.intro-on body {
  overflow: hidden;
}
.intro__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.intro__stage {
  perspective: 900px;
  position: relative;
}
.intro__logo {
  display: grid;
  justify-items: center;
  gap: 28px;
  transform-style: preserve-3d;
}
.intro__mark {
  width: clamp(100px, 18vw, 170px);
  overflow: visible;
  filter: drop-shadow(0 0 28px rgba(47, 107, 255, 0.75));
}
.intro__mark path {
  fill: none;
  stroke: url(#chrome);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
}
.intro__word {
  font: 800 clamp(1.7rem, 6vw, 4.6rem) var(--display);
  font-stretch: 122%;
  letter-spacing: -0.02em;
  white-space: nowrap;
  perspective: 500px;
}
.intro__word span {
  display: inline-block;
  opacity: 0;
  text-shadow: 0 0 30px rgba(130, 170, 255, 0.65);
}
.intro__skip {
  position: absolute;
  right: var(--pad);
  bottom: max(24px, env(safe-area-inset-bottom));
  min-height: 44px;
  padding: 8px 20px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(5, 8, 22, 0.7);
}

/* ---------- Hero ---------- */
.hero {
  height: 240svh;
  position: relative;
}
.hero__sticky {
  --mx: 0;
  --my: 0;
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  background: radial-gradient(70% 70% at 76% 46%, #17255f 0%, #080d28 42%, var(--abyss) 75%);
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* Reserva visual caso o WebGL não esteja disponível */
html:not(.webgl) .hero__sticky::before {
  content: '';
  position: absolute;
  width: min(52vw, 620px);
  aspect-ratio: 1;
  right: 5%;
  top: 18%;
  border-radius: 50%;
  border: 12px solid #25397f;
  box-shadow:
    0 0 80px #2f6bff66,
    inset 0 0 80px #8b5cf655;
}
.hero__light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    420px circle at calc(50% + var(--mx) * 50%) calc(50% + var(--my) * 50%),
    rgba(70, 120, 255, 0.17),
    transparent 70%
  );
  mix-blend-mode: screen;
}
.hero__content {
  position: absolute;
  left: max(var(--pad), calc((100% - 1360px) / 2));
  top: 50%;
  translate: 0 -50%;
  width: min(820px, 66%);
  z-index: 3;
  padding-top: 30px;
}
.hero__title {
  font-size: clamp(2.5rem, min(6.3vw, 11.4svh), 6.4rem);
  font-weight: 820;
  font-stretch: 120%;
  letter-spacing: -0.038em;
  line-height: 0.98;
  text-shadow: 0 6px 40px rgba(2, 4, 18, 0.8);
  perspective: 800px;
}
html:not(.motion) .hero__title {
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}
.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.04em 0.03em 0.13em;
  margin-bottom: -0.1em;
}
.word > span {
  display: inline-block;
  transform-origin: 50% 100%;
  background: linear-gradient(172deg, #fff 35%, #a9c6ff 68%, #cbb4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}
.hero__sub {
  margin-top: 26px;
  max-width: 52ch;
  color: #c4d0f2;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.is-gone {
  visibility: hidden;
}
.floaters {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  perspective: 1000px;
  --fly: 0;
}
.floater {
  --x: 0px;
  --y: 0px;
  --d: 30;
  position: absolute;
  pointer-events: auto;
  display: grid;
  gap: 7px;
  width: 218px;
  padding: 16px;
  text-align: left;
  border: 1px solid rgba(180, 205, 255, 0.28);
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(40, 62, 135, 0.78), rgba(9, 15, 42, 0.84));
  backdrop-filter: blur(10px);
  box-shadow:
    0 30px 60px -20px #000,
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  font-size: 0.82rem;
  translate: calc(var(--mx) * var(--d) * -1px + var(--x) * var(--fly))
    calc(var(--my) * var(--d) * -0.7px + var(--y) * var(--fly));
  transform: rotateY(calc(var(--mx) * 9deg - 12deg)) rotateX(calc(var(--my) * -7deg + 3deg));
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}
.floater:hover,
.floater:focus-visible {
  border-color: #9fc2ff;
  box-shadow:
    0 30px 70px -18px #2f6bff,
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.floater--panel {
  --d: 24;
  --x: 220px;
  --y: -180px;
  right: 4%;
  top: 13%;
}
.floater--agenda {
  --d: 46;
  --x: -140px;
  --y: 240px;
  right: 26%;
  bottom: 6%;
  width: 196px;
}
.floater--order {
  --d: 68;
  --x: 280px;
  --y: 160px;
  right: 3%;
  bottom: 17%;
  width: 184px;
}
.floater__bar {
  display: flex;
  gap: 5px;
}
.floater__bar i,
.window__bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #526bb5;
}
.floater__title {
  font: 700 0.95rem var(--display);
  font-stretch: 108%;
}
.floater__cta {
  color: #9dc0ff;
  font-size: 0.74rem;
}
.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 64px;
}
.mini-chart i {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 1px 1px;
  background: linear-gradient(#7fb0ff, #2f5be0);
}
.mini-slot {
  display: flex;
  justify-content: space-between;
  padding: 5px 9px;
  border-radius: 7px;
  background: rgba(120, 155, 255, 0.14);
}
.mini-slot--free {
  border: 1px dashed #5fa0ff;
  background: none;
}
.mini-line {
  border-bottom: 1px solid var(--line);
  padding-bottom: 5px;
}
.hero__portal-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 3;
  pointer-events: none;
  font: 850 clamp(3rem, 12vw, 11rem) var(--display);
  font-stretch: 125%;
  letter-spacing: -0.04em;
  opacity: 0;
  text-shadow: 0 0 60px #2f6bff;
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: var(--abyss);
  opacity: 0;
  pointer-events: none;
}
.hero__hint {
  position: absolute;
  left: max(var(--pad), calc((100% - 1360px) / 2));
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--steel);
  z-index: 3;
}
.hero__hint span {
  width: 40px;
  height: 1px;
  background: var(--electric);
  animation: hint 2s ease-in-out infinite;
  transform-origin: left;
}
@keyframes hint {
  50% {
    transform: scaleX(0.3);
  }
}

/* ---------- Antes e depois ---------- */
.order {
  padding-block: clamp(70px, 10vw, 130px);
  background: radial-gradient(60% 50% at 50% 55%, #0d1642, transparent);
}
.order__stage {
  height: clamp(400px, 62svh, 560px);
  margin-top: 36px;
  border-block: 1px solid var(--line);
}
.order__stage canvas {
  width: 100%;
  height: 100%;
  touch-action: pan-y;
  cursor: crosshair;
}
.order__controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}
.order__count {
  font: 750 1.15rem var(--display);
  font-stretch: 112%;
  font-variant-numeric: tabular-nums;
}

/* ---------- Vitrine ---------- */
.reel {
  position: relative;
}
.reel__viewport {
  position: relative;
  overflow: hidden;
}
.reel__light {
  --hue: #2f6bff;
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(55% 70% at 50% 45%, var(--hue), transparent 72%);
  opacity: 0.2;
  transition: background 0.6s;
}
.reel__track {
  position: relative;
  display: grid;
  gap: 28px;
  padding: 60px var(--pad);
  width: min(1240px, 100%);
  margin-inline: auto;
}
.scene {
  --hue: #26346e;
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(20px, 4vw, 60px);
  align-items: center;
  padding: clamp(22px, 4vw, 56px);
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(80% 110% at 15% 10%, color-mix(in srgb, var(--hue) 40%, transparent), transparent 65%),
    rgba(9, 15, 40, 0.75);
  transition: --hue 0.4s;
}
.scene--intro {
  display: block;
  background: none;
  border: 0;
  padding-inline: 0;
}
.scene h3 {
  font-size: clamp(1.7rem, 3.6vw, 3.2rem);
  font-stretch: 120%;
}
.scene__copy p {
  color: #c0ccee;
  margin-block: 14px 26px;
  max-width: 40ch;
}
.art {
  position: relative;
  height: clamp(230px, 38svh, 370px);
  perspective: 900px;
  transform-style: preserve-3d;
}
.art__plane {
  position: absolute;
  border-radius: 16px;
  border: 1px solid rgba(180, 205, 255, 0.3);
  background: linear-gradient(145deg, rgba(60, 88, 180, 0.7), rgba(10, 17, 48, 0.95));
  box-shadow:
    0 26px 44px -18px #000,
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.art b,
.art em {
  display: block;
  height: 11px;
  border-radius: 9px;
  background: #cfdcff;
  width: 54%;
}
.art em {
  background: #6985d6;
  width: 36%;
  height: 8px;
}
.art--crm .art__plane {
  left: 8%;
  width: 78%;
  height: 27%;
  display: grid;
  grid-template-columns: 56px 1fr;
  align-content: center;
  column-gap: 8px;
  row-gap: 12px;
  padding: 0 20px;
}
.art--crm .art__plane:nth-child(1) {
  top: 4%;
}
.art--crm .art__plane:nth-child(2) {
  top: 36%;
  left: 16%;
}
.art--crm .art__plane:nth-child(3) {
  top: 68%;
}
.av {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--chrome);
}
.art__browser {
  inset: 4% 16% 14% 2%;
  padding: 30px;
  display: grid;
  align-content: center;
  gap: 16px;
}
.art__browser::after {
  content: '';
  width: 120px;
  height: 34px;
  border-radius: 99px;
  background: var(--electric);
}
.art__browser b:nth-child(2) {
  width: 80%;
}
.art__phone {
  width: 30%;
  min-width: 105px;
  height: 76%;
  right: 4%;
  bottom: 0;
  padding: 18px;
  display: grid;
  align-content: end;
  gap: 12px;
  background: linear-gradient(170deg, #7143cf, #150f3d);
}
.art__grid {
  position: absolute;
  inset: 5% 6%;
  border-radius: 20px;
  border: 1px solid rgba(180, 205, 255, 0.35);
  background:
    radial-gradient(circle at 22% 39%, #fff 0 3%, transparent 3.4%),
    radial-gradient(circle at 64% 62%, #9b6bff 0 5%, transparent 5.4%),
    repeating-linear-gradient(90deg, transparent 0 calc(14.28% - 2px), rgba(150, 180, 255, 0.3) 0 14.28%),
    repeating-linear-gradient(transparent 0 calc(20% - 2px), rgba(150, 180, 255, 0.3) 0 20%),
    linear-gradient(140deg, #17317d, #090f2c);
  box-shadow: 0 30px 50px -20px #000;
}
.art--menu img {
  width: 54%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.art--menu img:nth-child(1) {
  left: 0;
  top: 6%;
}
.art--menu img:nth-child(2) {
  right: 0;
  top: 24%;
}
.art--menu img:nth-child(3) {
  left: 18%;
  bottom: 0;
}
.art--order .art__plane {
  left: 12%;
  width: 72%;
  height: 23%;
  display: grid;
  align-content: center;
  gap: 11px;
  padding: 0 24px;
}
.art--order .art__plane:nth-child(1) {
  top: 5%;
}
.art--order .art__plane:nth-child(2) {
  top: 34%;
}
.art--order .art__total {
  top: 68%;
  background: linear-gradient(110deg, #1857ee, #7747e8);
}
.art__bars {
  inset: 6% 20% 18% 2%;
  display: flex;
  align-items: flex-end;
  gap: 4%;
  padding: 24px;
}
.art__bars i {
  flex: 1;
  height: var(--h);
  border-radius: 7px 7px 2px 2px;
  background: linear-gradient(#a9c6ff, #2f5be0);
}
.art__donut {
  width: 36%;
  aspect-ratio: 1;
  right: 2%;
  bottom: 0;
  border-radius: 50% !important;
  background:
    radial-gradient(circle, #0b1234 0 42%, transparent 43%),
    conic-gradient(var(--electric) 0 58%, var(--violet) 0 82%, #a9c6ff 0);
}
.reel__bar {
  display: none;
}
.is-horizontal .reel__viewport {
  height: 100vh;
}
.is-horizontal .reel__track {
  display: flex;
  width: max-content;
  height: 100%;
  margin: 0;
  align-items: center;
  gap: 4vw;
  padding: 68px 8vw 20px;
}
.is-horizontal .scene {
  width: min(1080px, 78vw);
  height: min(580px, 76vh);
  flex: none;
}
.is-horizontal .scene--intro {
  width: min(560px, 44vw);
  height: auto;
}
.is-horizontal .reel__bar {
  display: block;
  position: absolute;
  left: 8vw;
  right: 8vw;
  bottom: 24px;
  height: 2px;
  background: var(--line);
}
.reel__bar span {
  display: block;
  height: 100%;
  background: var(--chrome);
  transform-origin: left;
  transform: scaleX(0);
}

/* ---------- Estúdio ---------- */
.studio {
  padding-block: clamp(70px, 10vw, 130px);
  overflow: clip;
}
.studio__head {
  margin-bottom: 30px;
}
.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 4px 16px;
  scrollbar-width: thin;
}
.tabs button {
  flex: none;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: none;
  color: var(--steel);
  font-weight: 700;
  font-size: 0.87rem;
}
.tabs button[aria-selected='true'] {
  background: var(--ice);
  color: #08102f;
  border-color: var(--ice);
}
.badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  margin-left: 5px;
  border-radius: 99px;
  background: var(--violet);
  color: #fff;
  font-size: 0.72rem;
}
.window {
  border: 1px solid rgba(160, 190, 255, 0.25);
  border-radius: 22px;
  background: #080e29;
  box-shadow: 0 50px 100px -40px #2f6bff55;
  overflow: clip;
}
.window__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: #0d1538;
}
.window__bar span {
  margin-left: auto;
  font-size: 0.76rem;
  color: var(--steel);
}
.demo {
  padding: clamp(14px, 3vw, 32px);
}
.demo__intro {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  justify-content: space-between;
  margin-bottom: 24px;
}
.demo__intro h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-stretch: 112%;
  margin-bottom: 6px;
}
.demo__intro p {
  color: var(--steel);
  max-width: 54ch;
}
.features {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 6px 18px;
  list-style: none;
  max-width: 420px;
  font-size: 0.84rem;
}
.features li::before {
  content: '✓ ';
  color: var(--ok);
}
.demo__body,
.ops,
.stack {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.demo__body > *,
.split > *,
.grid3 > * {
  min-width: 0;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: start;
}
.split--even {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.split--builder {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}
.split--menu {
  grid-template-columns: minmax(0, 1fr) 230px;
}
.grid3 {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 1fr;
  gap: 18px;
  align-items: start;
}
.card,
fieldset.card {
  background: #0d1539;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  min-width: 0;
}
.card h4 {
  font-size: 1.05rem;
  margin-bottom: 14px;
  font-stretch: 108%;
}
.card h5,
.card--detail h5 {
  margin: 18px 0 8px;
  font-size: 0.95rem;
}
.card--detail > p {
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
.toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  align-items: center;
}
.toolbar input {
  flex: 1;
  min-width: 0;
}
.toolbar--wrap {
  flex-wrap: wrap;
}
.toolbar--wrap input {
  flex-basis: 200px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.list {
  list-style: none;
  display: grid;
  gap: 8px;
}
.list--scroll {
  max-height: 360px;
  overflow-y: auto;
  padding: 4px;
}
.list__item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}
.list__item[aria-pressed='true'] {
  border-color: var(--electric);
  background: rgba(47, 107, 255, 0.16);
}
.list__item > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.list strong {
  display: block;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}
.list small {
  display: block;
  color: var(--steel);
  overflow-wrap: anywhere;
}
.list__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.list__row > span:first-child {
  flex: 1 1 170px;
  min-width: 0;
}
.avatar {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--electric), var(--violet));
  font-weight: 800;
}
.tag {
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid var(--line);
  font-size: 0.72rem;
  white-space: nowrap;
}
.tag--confirmado {
  color: var(--ok);
  border-color: currentColor;
}
.tag--cancelado {
  color: var(--danger);
  border-color: currentColor;
}
.tag--pendente {
  color: #ffd27a;
  border-color: currentColor;
}
.empty {
  color: var(--steel);
  font-size: 0.88rem;
  padding: 14px 0;
  list-style: none;
}
.timeline {
  list-style: none;
  border-left: 2px solid var(--electric);
  padding-left: 14px;
  margin-bottom: 14px;
  display: grid;
  gap: 8px;
}
.timeline time {
  display: block;
  font-size: 0.74rem;
  color: var(--steel);
}
.timeline span {
  overflow-wrap: anywhere;
}

/* Formulários */
.form {
  display: grid;
  gap: 12px;
  align-content: start;
}
.form label {
  display: grid;
  gap: 5px;
  font-size: 0.84rem;
  font-weight: 600;
  min-width: 0;
}
input:not([type='checkbox']),
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  background: #070c24;
  border: 1px solid rgba(160, 185, 255, 0.28);
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 400;
}
textarea {
  resize: vertical;
}
[aria-invalid='true'] {
  border-color: var(--danger) !important;
}
.form__error {
  color: var(--danger);
  font-size: 0.85rem;
}
.form__error:empty {
  display: none;
}
.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 12px;
  align-items: end;
}
.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-self: start;
}
.seg button {
  min-height: 40px;
  padding: 6px 15px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: none;
  font-size: 0.84rem;
}
.seg button[aria-pressed='true'] {
  background: var(--electric);
  border-color: var(--electric);
  color: #fff;
  font-weight: 700;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  position: relative;
  display: inline-block !important;
}
.chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.chip span {
  display: block;
  padding: 9px 15px;
  border-radius: 99px;
  border: 1px solid rgba(160, 185, 255, 0.28);
  font-weight: 600;
  font-size: 0.84rem;
}
.chip input:checked + span {
  background: var(--electric);
  border-color: var(--electric);
  color: #fff;
}
.chip input:checked + span::before {
  content: '✓ ';
}
.chip input:focus-visible + span {
  outline: 3px solid #8fbaff;
  outline-offset: 2px;
}

/* Landing builder */
.swatches {
  display: flex;
  gap: 12px;
}
.swatches button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid transparent;
}
.swatches button[aria-pressed='true'] {
  border-color: #fff;
  box-shadow: 0 0 0 3px var(--electric);
}
.device {
  width: min(360px, 100%);
  margin-inline: auto;
  padding: 10px;
  border-radius: 34px;
  background: linear-gradient(145deg, #7d8dbd, #1a2250 40%, #53628f);
  transition:
    width 0.4s,
    border-radius 0.4s;
}
.device--wide {
  width: 100%;
  border-radius: 16px;
}
.site {
  --site: #2563eb;
  height: 560px;
  overflow-y: auto;
  border-radius: 26px;
  background: #fff;
  color: #141a2b;
  container-type: inline-size;
}
.device--wide .site {
  border-radius: 8px;
}
.site__nav {
  padding: 18px 22px;
  overflow-wrap: anywhere;
}
.site__hero {
  padding: 38px 22px;
  background: var(--site);
  color: #fff;
  display: grid;
  gap: 14px;
  justify-items: start;
  overflow-wrap: anywhere;
}
.site__title {
  font: 800 clamp(1.5rem, 8cqi, 2.6rem)/1.08 var(--display);
}
.site__btn {
  min-height: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: 8px;
  background: var(--site);
  color: #fff;
  font-weight: 700;
}
.site__btn--invert {
  background: #fff;
  color: #111827;
}
.site__items {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  padding: 18px 22px;
}
.site__items li {
  padding: 18px 10px;
  border-radius: 10px;
  background: #eef1f8;
  border-top: 4px solid var(--site);
  font-weight: 700;
  font-size: 0.85rem;
}
.site__form {
  padding: 8px 22px 28px;
}
.site__form input {
  background: #fff !important;
  color: #111827;
  border-color: #aab2c8 !important;
}
.site__form .form__error {
  color: #b00020;
}
.site__form h6 {
  font-size: 1rem;
}

/* Agenda */
.cal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.cal__head h4 {
  margin: 0;
  text-align: center;
}
.cal__head h4::first-letter {
  text-transform: uppercase;
}
.cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  text-align: center;
}
.cal__wd {
  font-size: 0.72rem;
  color: var(--steel);
  padding: 4px 0;
}
.cal__day {
  aspect-ratio: 1;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(47, 107, 255, 0.13);
  font-size: 0.84rem;
}
.cal__day:disabled {
  background: none;
  border-color: transparent;
}
.cal__day[aria-pressed='true'],
.slot[aria-pressed='true'] {
  background: var(--electric);
  border-color: #fff;
}
.slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
}
.slot {
  min-height: 44px;
  border: 1px solid #4472d8;
  border-radius: 10px;
  background: none;
}
.slot:disabled {
  text-decoration: line-through;
  border-color: var(--line);
}
.ticket {
  font: 800 1.8rem var(--display);
  font-stretch: 120%;
  color: var(--ok);
  margin-bottom: 8px;
}

/* Cardápio e pedidos */
.products {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 195px), 1fr));
  gap: 14px;
}
.product {
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-radius: 16px;
  background: #0d1539;
  border: 1px solid var(--line);
}
.product img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 10px;
}
.product h4 {
  margin: 12px 4px 4px;
  font-size: 1rem;
  overflow-wrap: anywhere;
}
.product p {
  margin: 0 4px 12px;
  flex: 1;
}
.product__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-left: 4px;
}
.card--qr {
  text-align: center;
}
.qr {
  width: 100%;
  max-width: 190px;
  height: auto;
  margin: 0 auto 12px;
  border-radius: 10px;
  image-rendering: pixelated;
}
.card--qr p {
  overflow-wrap: anywhere;
}
.qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.qty output {
  min-width: 24px;
  text-align: center;
  font-weight: 800;
}
.summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  margin-top: 16px;
}
.summary dd {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.summary dt:last-of-type,
.summary dd:last-of-type {
  font: 800 1.3rem var(--display);
  padding-top: 8px;
}
.order-result:empty {
  display: none;
}
.order-result {
  padding: 14px;
  border: 1px solid var(--ok);
  border-radius: 12px;
  display: grid;
  gap: 10px;
}

/* Gestão */
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.kpi {
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(145deg, #172660, #0c1437);
  border: 1px solid var(--line);
}
.kpi span {
  display: block;
  font-size: 0.78rem;
  color: var(--steel);
}
.kpi strong {
  font: 780 clamp(1.15rem, 2vw, 1.6rem) var(--display);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.kpi__line {
  margin-block: 14px;
  font-weight: 700;
}
.bars {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}
.bars li {
  display: grid;
  grid-template-columns: minmax(48px, 120px) 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 0.82rem;
}
.bars b {
  height: 12px;
  background: rgba(140, 170, 255, 0.13);
  border-radius: 99px;
  overflow: hidden;
}
.bars i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--electric), var(--violet));
}
.table {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}
th,
td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
th {
  color: var(--steel);
  font-weight: 600;
}
fieldset {
  border: 0;
  min-width: 0;
}
fieldset legend {
  font-weight: 700;
  margin-bottom: 12px;
}
fieldset.card legend {
  float: left;
  width: 100%;
}
fieldset.card legend + * {
  clear: both;
}
.blueprint {
  list-style: none;
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  padding: 10px;
  border-radius: 14px;
  background: #070c24;
}
.blueprint li {
  padding: 10px 14px;
  border-radius: 8px;
  border-left: 3px solid var(--electric);
  background: rgba(47, 107, 255, 0.12);
}

/* ---------- Processo ---------- */
.process {
  padding-block: clamp(70px, 10vw, 130px);
  background: linear-gradient(180deg, transparent, #0c1337 50%, transparent);
}
.steps {
  --draw: 1;
  position: relative;
  list-style: none;
  counter-reset: step;
  max-width: 780px;
  margin-top: 56px;
}
.steps::before,
.steps::after {
  content: '';
  position: absolute;
  left: 23px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}
.steps::before {
  background: rgba(150, 175, 255, 0.17);
}
.steps::after {
  background: linear-gradient(var(--electric), var(--violet));
  transform-origin: top;
  transform: scaleY(var(--draw));
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 48px 84px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  z-index: 1;
  left: 0;
  top: -6px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #526bb5;
  background: var(--abyss);
  font: 800 1.1rem var(--display);
  transition: 0.4s;
}
.steps li.is-lit::before {
  background: var(--electric);
  border-color: #cfe0ff;
  box-shadow: 0 0 34px #2f6bff;
}
.steps h3 {
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  font-stretch: 115%;
}
.steps p {
  color: var(--steel);
  margin-top: 8px;
  max-width: 54ch;
}
.steps .steps__out {
  color: var(--ice);
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---------- Conversão ---------- */
.quote {
  padding-block: clamp(60px, 9vw, 120px);
}
.quote__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}
.quote__grid--contact {
  margin-top: 90px;
}
.panel {
  padding: clamp(18px, 3vw, 32px);
  border-radius: 24px;
  border: 1px solid transparent;
  background:
    linear-gradient(#0b1232, #0b1232) padding-box,
    linear-gradient(145deg, #a9c6ff88, #2f6bff22 40%, #8b5cf699) border-box;
}
.quote__summary {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.quote__summary p {
  color: var(--steel);
  margin-top: 8px;
}
.footer {
  overflow: hidden;
  border-top: 1px solid var(--line);
  padding-top: 40px;
  padding-bottom: max(90px, env(safe-area-inset-bottom));
}
.footer__giant {
  font: 850 10.4vw/1.15 var(--display);
  font-stretch: 125%;
  letter-spacing: -0.045em;
  white-space: nowrap;
  text-align: center;
  background: linear-gradient(#c8d9ff, #2f6bff44 80%, transparent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--steel);
  font-size: 0.86rem;
}
.footer nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

.wa-float {
  position: fixed;
  z-index: 40;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 18px 0 14px;
  border: 0;
  border-radius: 99px;
  background: #128c4a;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 30px -8px #000;
}
.wa-float svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.dialog {
  margin: auto;
  width: min(560px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  overflow: auto;
  padding: 26px;
  border-radius: 22px;
  border: 1px solid #526bb5;
  background: #0b1232;
  color: var(--ice);
}
.dialog::backdrop {
  background: rgba(2, 4, 14, 0.8);
  backdrop-filter: blur(6px);
}
.dialog__note {
  margin-block: 10px 14px;
  color: var(--steel);
  font-size: 0.88rem;
}
.dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: 82px;
  translate: -50% 12px;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--ice);
  color: #08102f;
  font-weight: 700;
  font-size: 0.88rem;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}
.toast.is-on {
  opacity: 1;
  translate: -50% 0;
}
.notice {
  padding: 20px;
}

/* ---------- Responsividade ---------- */
@media (max-width: 1180px) {
  .grid3 {
    grid-template-columns: 1fr 1fr;
  }
  .grid3 > :last-child {
    grid-column: 1 / -1;
  }
  .floater--agenda {
    display: none;
  }
}
@media (max-width: 980px) {
  .menu-btn {
    display: block;
  }
  .nav {
    position: absolute;
    inset: 68px 0 auto;
    display: grid;
    gap: 4px;
    padding: 14px var(--pad) 24px;
    background: #070c22;
    border-bottom: 1px solid var(--line);
    visibility: hidden;
    opacity: 0;
    translate: 0 -8px;
    transition: 0.25s;
    max-height: calc(100svh - 68px);
    overflow-y: auto;
  }
  .nav.is-open {
    visibility: visible;
    opacity: 1;
    translate: 0 0;
  }
  .nav a:not(.btn) {
    padding: 12px 0;
  }
  .split,
  .split--even,
  .split--builder,
  .split--menu,
  .quote__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero {
    height: 190svh;
  }
  .hero__sticky {
    min-height: 560px;
  }
  .hero__content {
    top: 84px;
    translate: none;
    width: auto;
    right: var(--pad);
    padding: 0;
  }
  .hero__title {
    font-size: clamp(2.3rem, min(8.4vw, 7svh), 5rem);
  }
  .hero__sub {
    margin-top: 18px;
  }
  .hero__actions {
    margin-top: 22px;
    gap: 10px;
  }
  .floaters {
    inset: auto var(--pad) 84px;
    display: flex;
    gap: 8px;
  }
  .floater,
  .floater--agenda {
    --y: 120px;
    --x: 0px;
    position: static;
    display: grid;
    flex: 1;
    width: auto;
    min-width: 0;
    padding: 11px;
    align-content: space-between;
    transform: none;
  }
  .floater > :not(.floater__title):not(.floater__cta) {
    display: none;
  }
  .floater__title {
    font-size: 0.8rem;
  }
  .floater__cta {
    font-size: 0.68rem;
  }
  .hero__hint {
    display: none;
  }
}
@media (max-width: 700px) {
  .scene {
    grid-template-columns: minmax(0, 1fr);
  }
  .art {
    height: 220px;
  }
  .grid3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .window {
    border-radius: 16px;
    margin-inline: -6px;
  }
  .brand span {
    font-size: 0.98rem;
  }
}
@media (max-width: 480px) {
  .hero__actions .btn {
    flex: 1 1 100%;
  }
  .intro__word {
    font-size: 7vw;
  }
  .bars li {
    grid-template-columns: 70px 1fr auto;
    gap: 6px;
  }
  .wa-float {
    width: 52px;
    padding: 0;
    justify-content: center;
  }
  .wa-float span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}
@media (max-height: 700px) and (max-width: 980px) {
  .floaters {
    display: none;
  }
}
@media (max-height: 620px) and (min-width: 600px) {
  .hero__sub {
    margin-top: 12px;
  }
  .hero__actions {
    margin-top: 16px;
  }
  .hero__title {
    font-size: clamp(2rem, 9svh, 4rem);
  }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero {
    height: auto;
  }
  .hero__sticky {
    position: relative;
  }
  .hero__portal-text,
  .hero__veil,
  .hero__hint {
    display: none;
  }
}
