/* Landing page do BAgend: paleta da marca (grafite + dourado) em tema escuro. */

/* Fontes variáveis, subconjunto latino (cobre o português). Licença OFL em fonts/. */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('fonts/bricolage-grotesque-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

:root {
  --bg: #0b1013;
  --bg-2: #10171b;
  --panel: #141d22;
  --panel-2: #1a252b;
  --line: rgb(255 255 255 / 8%);
  --line-2: rgb(255 255 255 / 14%);
  --text: #eef0ec;
  --muted: #95a3a9;
  --primary: #263238;
  --gold: #c9a46a;
  --gold-2: #b08d57;
  --gold-3: #e8cf9f;
  --gold-glow: rgb(201 164 106 / 35%);
  --green: #5cb87a;
  --red: #e0675f;
  --sand: #f4efe6;
  --radius: 20px;
  --wrap: 1180px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  interpolate-size: allow-keywords;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Grão sutil por cima de tudo, para tirar o aspecto "chapado" do escuro. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

svg {
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 200;
  background: var(--sand);
  color: var(--bg);
  padding: 8px 12px;
  border-radius: 8px;
}

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

.progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: 60;
  background: linear-gradient(90deg, var(--gold-2), var(--gold-3));
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
}

/* ---------- Botões ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-gold {
  background: linear-gradient(180deg, var(--gold-3) -40%, var(--gold) 60%);
  color: #17120a;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 15%) inset,
    0 10px 30px -10px var(--gold-glow);
}

.btn-gold:hover {
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 25%) inset,
    0 16px 40px -10px rgb(201 164 106 / 55%);
}

.btn-glass {
  background: rgb(255 255 255 / 5%);
  border: 1px solid var(--line-2);
  color: var(--text);
  backdrop-filter: blur(8px);
}

.btn-glass:hover {
  background: rgb(255 255 255 / 9%);
  border-color: rgb(255 255 255 / 25%);
}

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

.btn-lg {
  min-height: 58px;
  padding: 0 32px;
  font-size: 17px;
}

/* Brilho que atravessa o botão ao passar o mouse. */
.btn-shine::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / 55%) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}

.btn-shine:hover::after {
  transform: translateX(120%);
}

/* ---------- Navegação ---------- */

.nav-shell {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0 16px;
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    background-color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    max-width 0.45s var(--ease);
}

.nav-shell.scrolled .nav {
  max-width: 860px;
  background: rgb(16 23 27 / 72%);
  border-color: var(--line-2);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 20px 40px -20px rgb(0 0 0 / 70%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand svg {
  width: 32px;
  height: 32px;
}

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

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition:
    color 0.2s,
    background-color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: rgb(255 255 255 / 6%);
}

/* ---------- Animações de entrada ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease),
    filter 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}

.js [data-reveal].in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 150px 0 40px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.glow-a {
  width: 720px;
  height: 520px;
  left: 50%;
  top: -260px;
  margin-left: -360px;
  background: radial-gradient(closest-side, rgb(201 164 106 / 38%), transparent);
  animation: drift 14s ease-in-out infinite alternate;
}

.glow-b {
  width: 620px;
  height: 620px;
  right: -220px;
  top: 360px;
  background: radial-gradient(closest-side, rgb(55 71 79 / 70%), transparent);
  animation: drift 18s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  to {
    transform: translate3d(60px, 40px, 0) scale(1.1);
  }
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 20%, #000 20%, transparent 75%);
}

.hero-copy {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgb(255 255 255 / 4%);
  font-size: 14px;
  color: var(--gold-3);
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: border-color 0.25s;
}

.badge:hover {
  border-color: var(--gold);
}

.badge-arrow {
  transition: transform 0.25s var(--ease);
}

.badge:hover .badge-arrow {
  transform: translateX(3px);
}

.pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--gold);
  animation: ping 1.8s var(--ease) infinite;
}

@keyframes ping {
  to {
    transform: scale(3);
    opacity: 0;
  }
}

.hero h1 {
  margin-top: 28px;
  max-width: 15ch;
  font-size: clamp(42px, 7.4vw, 92px);
  font-weight: 800;
  line-height: 0.98;
}

.line-break {
  display: block;
}

.hero h1 .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.45em) rotate(2deg);
  filter: blur(10px);
  animation: word 0.9s var(--ease) forwards;
  animation-delay: calc(var(--i) * 65ms + 120ms);
}

@keyframes word {
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.hero h1 .gold {
  background: linear-gradient(
    100deg,
    var(--gold-2) 0%,
    var(--gold-3) 45%,
    var(--gold) 60%,
    var(--gold-2) 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.08em;
  animation:
    word 0.9s var(--ease) forwards calc(var(--i) * 65ms + 120ms),
    shimmer 6s linear infinite 1.6s;
}

@keyframes shimmer {
  from {
    background-position: 100% 0;
  }

  to {
    background-position: -120% 0;
  }
}

.lead {
  margin-top: 26px;
  max-width: 36em;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}

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

.hero-points svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
}

/* ---------- Demonstração (agenda + celular) ---------- */

.stage {
  --rx: 22deg;
  position: relative;
  margin: 72px auto 0;
  max-width: 1040px;
  padding-bottom: 40px;
  perspective: 1600px;
}

.screen {
  position: relative;
  border-radius: 18px;
  background: linear-gradient(180deg, #1b262c, #121a1e);
  border: 1px solid var(--line-2);
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 40%),
    0 50px 100px -30px rgb(0 0 0 / 80%),
    0 0 120px -40px var(--gold-glow);
  overflow: hidden;
  transform: rotateX(var(--rx)) scale(calc(1 - var(--rx) / 200deg));
  transform-origin: 50% 0;
  transition: transform 0.1s linear;
  opacity: 0;
  animation: rise 1.2s var(--ease) 0.5s forwards;
}

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 60px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

.screen-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

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

.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgb(255 255 255 / 12%);
}

.screen-title {
  flex: 1;
}

.screen-user {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: #17120a;
  font-weight: 700;
}

.screen-body {
  display: grid;
  grid-template-columns: 150px 1fr;
}

.side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 10px;
  border-right: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.side span {
  padding: 8px 12px;
  border-radius: 10px;
}

.side .on {
  background: rgb(201 164 106 / 14%);
  color: var(--gold-3);
  font-weight: 600;
}

.cal {
  padding: 14px 16px 18px;
  min-width: 0;
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.cal-head b {
  font-family: var(--font-display);
  font-size: 18px;
  margin-right: 8px;
}

.cal-head span {
  font-size: 13px;
  color: var(--muted);
}

.legend {
  display: flex;
  gap: 14px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

.legend i {
  width: 8px;
  height: 8px;
  border-radius: 3px;
}

.lg-a {
  background: #7d97a3;
}

.lg-c {
  background: var(--green);
}

.lg-o {
  background: var(--gold);
}

.cal-grid {
  position: relative;
  display: grid;
  grid-template-columns: 46px repeat(3, 1fr);
  grid-template-rows: 30px repeat(8, 46px);
  column-gap: 8px;
  font-size: 12px;
  background-image: linear-gradient(var(--line) 1px, transparent 1px);
  background-size: 100% 46px;
  background-position: 0 30px;
}

.c1 {
  grid-column: 2;
}

.c2 {
  grid-column: 3;
}

.c3 {
  grid-column: 4;
}

.pro {
  grid-row: 1;
  align-self: center;
  text-align: center;
  font-weight: 600;
  color: var(--muted);
}

.time {
  grid-column: 1;
  font-size: 11px;
  color: var(--muted);
  transform: translateY(-8px);
}

.now {
  position: absolute;
  left: 46px;
  right: 0;
  top: calc(30px + var(--at) * 46px);
  height: 2px;
  background: var(--red);
  z-index: 2;
}

.now i {
  position: absolute;
  left: -5px;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgb(224 103 95 / 60%);
  animation: beat 2s infinite;
}

@keyframes beat {
  70% {
    box-shadow: 0 0 0 10px rgb(224 103 95 / 0%);
  }
}

.appt {
  margin: 3px 0;
  padding: 6px 10px;
  border-radius: 10px;
  border-left: 3px solid;
  line-height: 1.3;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.92);
  animation: pop 0.6s var(--ease) forwards;
  animation-delay: var(--d, 1s);
}

@keyframes pop {
  to {
    opacity: 1;
    transform: none;
  }
}

.appt b {
  display: block;
  font-size: 12px;
}

.appt small {
  font-size: 11px;
  color: var(--muted);
}

.appt.a {
  background: rgb(125 151 163 / 16%);
  border-color: #7d97a3;
}

.appt.b {
  background: rgb(201 164 106 / 12%);
  border-color: var(--gold-2);
}

.appt.c {
  background: rgb(92 184 122 / 14%);
  border-color: var(--green);
}

.appt.block {
  background: repeating-linear-gradient(
    -45deg,
    rgb(255 255 255 / 4%) 0 6px,
    rgb(255 255 255 / 7%) 6px 12px
  );
  border-color: rgb(255 255 255 / 18%);
  color: var(--muted);
}

.appt.o {
  background: linear-gradient(135deg, rgb(201 164 106 / 32%), rgb(201 164 106 / 14%));
  border-color: var(--gold-3);
  box-shadow: 0 0 30px -6px var(--gold-glow);
}

.appt.o em {
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 1px 6px;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--gold);
  color: #17120a;
  vertical-align: 1px;
}

/* O agendamento online só aparece quando a demonstração o confirma. */
.appt.incoming {
  animation: none;
  opacity: 0;
  transform: translateY(-8px) scale(0.9);
  transition:
    opacity 0.5s var(--ease),
    transform 0.6s var(--ease);
}

.appt.incoming.show {
  opacity: 1;
  transform: none;
}

.phone {
  position: absolute;
  right: -24px;
  bottom: -10px;
  width: 230px;
  padding: 9px;
  border-radius: 36px;
  background: linear-gradient(160deg, #2a363c, #0d1215);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -20px rgb(0 0 0 / 85%);
  opacity: 0;
  animation:
    phone-in 1s var(--ease) 1.1s forwards,
    float 6s ease-in-out 2.1s infinite;
}

@keyframes phone-in {
  from {
    opacity: 0;
    transform: translate(40px, 40px) rotate(6deg);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float {
  0%,
  100% {
    transform: none;
  }

  50% {
    transform: translateY(-10px);
  }
}

.phone-screen {
  position: relative;
  padding: 18px 14px 16px;
  border-radius: 28px;
  background: var(--sand);
  color: #1d1d1d;
  font-size: 12px;
  overflow: hidden;
}

.ph-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.ph-head b {
  display: block;
  font-size: 13px;
}

.ph-head small {
  color: #6b6b6b;
  font-size: 11px;
}

.ph-logo {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: conic-gradient(from 200deg, var(--primary), var(--gold-2), var(--primary));
}

.ph-label {
  display: block;
  margin: 12px 0 6px;
  color: #6b6b6b;
  font-size: 11px;
}

.ph-chip {
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e3ddd2;
  font-weight: 600;
}

.ph-pros {
  display: flex;
  gap: 5px;
}

.ph-pros span,
.ph-slots span {
  flex: 1;
  padding: 6px 0;
  text-align: center;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e3ddd2;
  transition:
    background-color 0.3s,
    color 0.3s,
    transform 0.3s var(--ease);
}

.ph-pros .on {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.ph-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.ph-slots .on {
  background: var(--gold);
  border-color: var(--gold);
  color: #17120a;
  font-weight: 700;
  transform: scale(1.06);
}

.ph-btn {
  margin-top: 12px;
  padding: 10px 0;
  border-radius: 999px;
  text-align: center;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
  transition:
    transform 0.2s var(--ease),
    background-color 0.3s;
}

.ph-btn.press {
  transform: scale(0.95);
  background: #1b2428;
}

.ph-done {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--sand);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.ph-done b {
  font-family: var(--font-display);
  font-size: 18px;
}

.ph-done small {
  color: #6b6b6b;
}

.ph-check {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  transform: scale(0.4);
  transition: transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.ph-check svg {
  width: 30px;
  height: 30px;
}

.phone-screen.done .ph-done {
  opacity: 1;
}

.phone-screen.done .ph-check {
  transform: none;
}

.toast {
  position: absolute;
  left: 50%;
  top: -22px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 10px;
  border-radius: 16px;
  background: rgb(26 37 43 / 85%);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px -14px rgb(0 0 0 / 70%);
  font-size: 13px;
  opacity: 0;
  transform: translate(-50%, -12px) scale(0.96);
  transition:
    opacity 0.45s var(--ease),
    transform 0.45s var(--ease);
  z-index: 3;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast b {
  display: block;
}

.toast small {
  color: var(--muted);
}

.toast-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--gold);
  color: #17120a;
}

.toast-icon svg {
  width: 18px;
  height: 18px;
}

/* ---------- Faixa ---------- */

.marquee {
  margin-top: 40px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll-x 40s linear infinite;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: rgb(238 240 236 / 55%);
  white-space: nowrap;
}

.marquee-track span::after {
  content: '✦';
  margin: 0 28px;
  font-size: 14px;
  color: var(--gold);
}

@keyframes scroll-x {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Seções ---------- */

.section {
  position: relative;
  padding: 130px 0 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: currentColor;
}

.section-head h2 {
  font-size: clamp(32px, 4.6vw, 58px);
  font-weight: 750;
}

.section-head p {
  margin-top: 18px;
  font-size: 18px;
  color: var(--muted);
}

/* ---------- Antes e depois ---------- */

.compare {
  display: grid;
  gap: 14px;
}

.cmp-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  overflow: hidden;
}

.cmp-row > div {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
}

.before {
  color: var(--muted);
}

.after {
  position: relative;
  border-left: 1px solid var(--line);
  background: linear-gradient(90deg, rgb(201 164 106 / 0%), rgb(201 164 106 / 7%));
  font-weight: 500;
}

.mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.mark svg {
  width: 18px;
  height: 18px;
}

.mark.x {
  background: rgb(224 103 95 / 12%);
  color: var(--red);
}

.mark.ok {
  background: var(--gold);
  color: #17120a;
  transform: scale(0.4);
  opacity: 0;
  transition:
    transform 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) 0.5s,
    opacity 0.3s 0.5s;
}

/* Risco desenhado sobre o "antes" quando a linha entra na tela. */
.before s {
  text-decoration: none;
  background: linear-gradient(var(--red), var(--red)) no-repeat 0 55% / 0% 1.5px;
  transition: background-size 0.8s var(--ease) 0.25s;
}

.cmp-row.in .before s,
html:not(.js) .before s {
  background-size: 100% 1.5px;
}

.cmp-row.in .mark.ok,
html:not(.js) .mark.ok {
  transform: none;
  opacity: 1;
}

/* ---------- Recursos (bento) ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.span-2 {
  grid-column: span 2;
}

.span-3 {
  grid-column: span 3;
}

.span-4 {
  grid-column: span 4;
}

.card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 30px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}

/* Luz que segue o mouse dentro do card. */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(
    420px circle at var(--mx) var(--my),
    rgb(201 164 106 / 12%),
    transparent 45%
  );
  transition: opacity 0.4s;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    300px circle at var(--mx) var(--my),
    rgb(201 164 106 / 60%),
    transparent 50%
  );
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.card:hover::before,
.card:hover::after {
  opacity: 1;
}

.card h3 {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
}

.viz {
  margin-top: auto;
  font-size: 13px;
}

/* Link */

.span-4 {
  flex-direction: row;
  align-items: center;
}

.span-4 .card-text {
  flex: 1;
}

.viz-link {
  flex: none;
  width: 280px;
  margin-top: 0;
}

.url {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgb(0 0 0 / 30%);
  border: 1px solid var(--line);
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 12px;
  color: var(--gold-3);
  white-space: nowrap;
  overflow: hidden;
}

.lock {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 2px;
  background: var(--green);
}

.typed {
  display: inline-block;
  overflow: hidden;
  border-right: 2px solid var(--gold);
  width: 0;
  animation: caret 0.9s steps(1) infinite;
}

.card.in .typed {
  animation:
    type 2.2s steps(26) 0.4s forwards,
    caret 0.9s steps(1) infinite;
}

html:not(.js) .typed {
  width: 26ch;
}

@keyframes type {
  to {
    width: 26ch;
  }
}

@keyframes caret {
  50% {
    border-color: transparent;
  }
}

.mini-page {
  --p: var(--primary);
  --a: var(--gold);
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  background: var(--sand);
  color: #1d1d1d;
  animation: palette 9s infinite;
}

/* A página da barbearia troca de paleta para mostrar a personalização. */
@keyframes palette {
  0%,
  30% {
    --p: #263238;
    --a: #c9a46a;
  }

  35%,
  63% {
    --p: #3b1f2b;
    --a: #d98c5f;
  }

  68%,
  96% {
    --p: #13324a;
    --a: #4fb3bf;
  }
}

@property --p {
  syntax: '<color>';
  initial-value: #263238;
  inherits: true;
}

@property --a {
  syntax: '<color>';
  initial-value: #c9a46a;
  inherits: true;
}

.mini-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  margin: -6px -6px 10px;
  border-radius: 10px;
  background: var(--p);
  color: #fff;
  font-size: 12px;
}

.mini-head i {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--a);
}

.mini-rows {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.mini-rows span {
  height: 22px;
  border-radius: 7px;
  background: #fff;
  border: 1px solid #e3ddd2;
}

.mini-rows span:nth-child(2) {
  background: var(--a);
  border-color: var(--a);
}

.mini-btn {
  margin-top: 10px;
  padding: 7px 0;
  border-radius: 999px;
  background: var(--p);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 12px;
}

/* Conflito */

.lane {
  position: relative;
  height: 128px;
  padding-left: 46px;
  border-top: 1px dashed var(--line-2);
  border-bottom: 1px dashed var(--line-2);
}

.lane-time {
  position: absolute;
  left: 0;
  top: 8px;
  font-size: 11px;
  color: var(--muted);
}

.slot-taken,
.slot-try {
  position: absolute;
  left: 46px;
  right: 0;
  top: 30px;
  padding: 8px 12px;
  border-radius: 12px;
  border-left: 3px solid;
}

.slot-taken {
  background: rgb(125 151 163 / 18%);
  border-color: #7d97a3;
}

.slot-try {
  background: rgb(224 103 95 / 16%);
  border-color: var(--red);
  border-style: dashed;
  border-left-style: solid;
  animation: try 4.2s var(--ease) infinite;
}

.slot-taken b,
.slot-try b {
  display: block;
}

.slot-taken small,
.slot-try small {
  color: var(--muted);
}

@keyframes try {
  0% {
    opacity: 0;
    transform: translateY(-70px);
  }

  22% {
    opacity: 1;
    transform: translateY(-6px);
  }

  28% {
    transform: translate(-6px, 6px);
  }

  32% {
    transform: translate(6px, 6px);
  }

  36% {
    transform: translate(-4px, 6px);
  }

  40%,
  62% {
    opacity: 1;
    transform: translate(0, 6px);
  }

  80%,
  100% {
    opacity: 0;
    transform: translate(0, 60px);
  }
}

.slot-msg {
  position: absolute;
  left: 46px;
  bottom: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgb(224 103 95 / 16%);
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  animation: msg 4.2s infinite;
}

@keyframes msg {
  0%,
  26% {
    opacity: 0;
  }

  32%,
  70% {
    opacity: 1;
  }

  82%,
  100% {
    opacity: 0;
  }
}

/* Comanda */

.tab-line,
.tab-total {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
}

.tab-line {
  border-bottom: 1px dashed var(--line);
}

.tab-line.muted {
  color: var(--green);
}

.tab-total {
  padding-top: 10px;
  font-size: 15px;
}

.tab-total b {
  font-family: var(--font-display);
  font-size: 20px;
}

.split {
  display: flex;
  gap: 4px;
  margin-top: 10px;
  height: 30px;
}

.split span {
  display: grid;
  place-items: center;
  width: 0;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  transition: width 1.1s var(--ease) 0.4s;
}

.split-pix {
  background: var(--gold);
  color: #17120a;
}

.split .split-card {
  background: #7d97a3;
  color: #0b1013;
  transition-delay: 0.7s;
}

.card.in .split span,
html:not(.js) .split span {
  width: var(--w);
}

/* Caixa */

.bars {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 128px;
}

.bar {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}

.bar span {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.bar i {
  width: 100%;
  height: 0;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, var(--gold-3), var(--gold-2));
  transition: height 1.2s var(--ease) 0.3s;
}

.bar:nth-child(2) i {
  background: linear-gradient(180deg, #a8bec8, #6c8692);
}

.bar:nth-child(3) i {
  background: linear-gradient(180deg, #8fd3a5, #3f9a5d);
}

.card.in .bar i,
html:not(.js) .bar i {
  height: calc(84px * var(--h));
}

.bar em {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
}

.diff {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgb(92 184 122 / 10%);
  color: var(--muted);
}

.diff b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
}

.diff svg {
  width: 16px;
  height: 16px;
}

/* Fidelidade */

.viz-loyalty {
  position: relative;
  display: grid;
  justify-items: center;
}

.ring {
  width: 140px;
  height: 140px;
  transform: rotate(-90deg);
}

.ring circle {
  fill: none;
  stroke-width: 10;
}

.ring-bg {
  stroke: rgb(255 255 255 / 8%);
}

.ring-fg {
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 1.6s var(--ease) 0.3s;
  filter: drop-shadow(0 0 8px var(--gold-glow));
}

.card.in .ring-fg,
html:not(.js) .ring-fg {
  stroke-dashoffset: 20;
}

.ring-label {
  position: absolute;
  top: 0;
  height: 140px;
  display: grid;
  place-content: center;
  text-align: center;
}

.ring-label b {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
}

.ring-label small {
  color: var(--muted);
  font-size: 11px;
}

.viz-loyalty .ring-note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--gold-3);
}

/* Papéis e histórico */

.viz-roles,
.viz-history {
  display: grid;
  gap: 8px;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.viz-roles li,
.viz-history li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgb(255 255 255 / 3%);
  border: 1px solid var(--line);
  opacity: 0;
  transform: translateX(-14px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
  transition-delay: calc(var(--i) * 0.1s + 0.3s);
}

.card.in .viz-roles li,
.card.in .viz-history li,
html:not(.js) .viz-roles li,
html:not(.js) .viz-history li {
  opacity: 1;
  transform: none;
}

.viz-roles small {
  margin-left: auto;
  color: var(--muted);
  text-align: right;
}

.avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  color: var(--gold-3);
  font-weight: 700;
  font-size: 12px;
}

.viz-history time {
  width: 48px;
  flex: none;
  color: var(--gold);
  font-weight: 600;
}

.viz-history span {
  flex: 1;
  color: var(--muted);
}

.gold-text {
  color: var(--gold-3);
}

.soon {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding: 20px 26px;
  border: 1px dashed rgb(201 164 106 / 45%);
  border-radius: var(--radius);
  color: var(--muted);
}

.soon strong {
  color: var(--text);
  font-weight: 600;
}

.pill {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgb(201 164 106 / 14%);
  color: var(--gold-3);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Como funciona ---------- */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Linha que liga os passos e se preenche ao entrar na tela. */
.steps::before,
.steps::after {
  content: '';
  position: absolute;
  top: 28px;
  left: 28px;
  right: 28px;
  height: 1px;
  background: var(--line-2);
}

.steps::after {
  background: linear-gradient(90deg, var(--gold-2), var(--gold-3));
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform 1.6s var(--ease) 0.3s;
}

.steps.in::after,
html:not(.js) .steps::after {
  transform: scaleX(1);
}

.steps li {
  position: relative;
}

.step-n {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 26px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-3);
  box-shadow: 0 0 0 8px var(--bg);
}

.steps h3 {
  font-size: 23px;
}

.steps p {
  margin-top: 10px;
  color: var(--muted);
}

/* ---------- Perguntas ---------- */

.faq-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

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

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

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  font-weight: 600;
  font-size: 18px;
  transition: color 0.2s;
}

.faq summary:hover {
  color: var(--gold-3);
}

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

.faq summary::after {
  content: '+';
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  color: var(--gold);
  font-size: 20px;
  font-weight: 400;
  transition: transform 0.35s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

/* Abertura suave (navegadores com ::details-content; nos demais abre direto). */
.faq details::details-content {
  height: 0;
  overflow: clip;
  transition:
    height 0.45s var(--ease),
    content-visibility 0.45s allow-discrete;
}

.faq details[open]::details-content {
  height: auto;
}

.faq-body p {
  padding-bottom: 22px;
  color: var(--muted);
}

/* ---------- Contato ---------- */

.cta {
  position: relative;
  padding: 90px 32px;
  border-radius: 32px;
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% 0%, rgb(201 164 106 / 20%), transparent 70%),
    linear-gradient(180deg, var(--panel), var(--bg-2));
  overflow: hidden;
  isolation: isolate;
}

/* Borda com brilho dourado girando. */
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--angle),
    transparent 0deg,
    var(--gold) 60deg,
    transparent 120deg,
    transparent 360deg
  );
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
  animation: spin 6s linear infinite;
}

@keyframes spin {
  to {
    --angle: 360deg;
  }
}

.cta h2 {
  font-size: clamp(36px, 5.6vw, 72px);
  font-weight: 800;
}

.cta p {
  max-width: 32em;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 18px;
}

.cta .btn {
  margin-top: 38px;
}

/* ---------- Rodapé ---------- */

.site-footer {
  margin-top: 130px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.site-footer .brand {
  font-size: 17px;
  color: var(--text);
}

.site-footer .brand svg {
  width: 26px;
  height: 26px;
}

/* ---------- Responsivo ---------- */

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

  .span-2,
  .span-3 {
    grid-column: span 1;
  }

  .span-4 {
    grid-column: span 2;
  }

  .faq-wrap {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .phone {
    right: -8px;
    width: 200px;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 120px;
  }

  .stage {
    --rx: 0deg;
    margin-top: 48px;
    padding-bottom: 0;
  }

  .screen-body {
    grid-template-columns: 1fr;
  }

  .side,
  .legend,
  .c3 {
    display: none;
  }

  .cal-grid {
    grid-template-columns: 40px repeat(2, 1fr);
  }

  /* No celular o aparelho fica abaixo da agenda, sem cobrir o horário marcado. */
  .phone {
    position: relative;
    right: auto;
    bottom: auto;
    width: 240px;
    margin: -24px auto 0;
  }

  .toast {
    top: -18px;
    left: 16px;
    right: 16px;
    transform: translateY(12px) scale(0.96);
    z-index: 4;
  }

  .toast.show {
    transform: none;
  }

  .section {
    padding-top: 96px;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .span-2,
  .span-3,
  .span-4 {
    grid-column: auto;
  }

  .span-4 {
    flex-direction: column;
    align-items: stretch;
  }

  .viz-link {
    width: auto;
  }

  .card {
    padding: 24px;
  }

  .cmp-row {
    grid-template-columns: 1fr;
  }

  .cmp-row > div {
    padding: 20px;
  }

  .after {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .steps::before,
  .steps::after {
    top: 28px;
    bottom: 28px;
    left: 28px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .steps::after {
    transform-origin: 50% 0;
    transform: scaleY(0);
  }

  .steps.in::after,
  html:not(.js) .steps::after {
    transform: scaleY(1);
  }

  .steps li {
    padding-left: 80px;
  }

  .step-n {
    position: absolute;
    left: 0;
    top: -4px;
  }

  .viz-roles small {
    display: none;
  }

  .cta {
    padding: 64px 22px;
  }
}

/* ---------- Movimento reduzido ---------- */

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

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

  .marquee-track {
    animation: none;
  }

  .stage {
    --rx: 0deg;
  }
}

/* O topo entra sozinho, sem depender da rolagem. */
.js .hero-copy [data-reveal] {
  transition: none;
  animation: intro 0.9s var(--ease) forwards;
  animation-delay: var(--d, 0.1s);
}

@keyframes intro {
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
