/* ===== Tokens (marca/design-guide.md) ===== */
:root {
  --deep-violet: #1c1626;
  --deep-violet-2: #241c33;
  --paper: #f1efe8;
  --ink: #0a0a0a;
  --magician: #8b2ff5;
  --magician-2: #b06bff;
  --magician-soft: #eee4fc;
  --border: rgba(241, 239, 232, 0.10);
  --border-hover: rgba(139, 47, 245, 0.45);
  --font-title: "Sora", sans-serif;
  --font-body: "Manrope", sans-serif;
  --font-mono: "Space Mono", monospace;
  --max: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--deep-violet);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  background: rgba(28, 22, 38, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.nav-logo { width: 24px; height: 24px; object-fit: contain; }
.nav-logo--paper { filter: brightness(0) invert(1); }

.nav-links {
  display: flex;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(241, 239, 232, 0.65);
}
.nav-links a:hover { color: var(--paper); }

.btn-nav { font-size: 0.82rem; padding: 10px 18px; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  flex: none;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle:hover { border-color: var(--border-hover); }

@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    padding: 10px clamp(20px, 5vw, 64px) 18px;
    background: #150f1e;
    border-bottom: 1px solid var(--border);
  }
  .nav-links a {
    padding: 12px 4px;
    border-radius: 8px;
  }
  .nav-links.is-open { display: flex; }
  .nav-toggle { display: inline-flex; order: 2; }
  .btn-nav { order: 3; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--magician), var(--magician-2));
  color: var(--paper);
  box-shadow: 0 0 0 rgba(139, 47, 245, 0);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 47, 245, 0.45);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--paper);
}
.btn-ghost:hover { border-color: var(--border-hover); background: rgba(139, 47, 245, 0.08); }
.btn-lg { padding: 15px 28px; font-size: 1rem; }

.hero-cta, .diag-callout { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.cta-reassure {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(241, 239, 232, 0.62);
  margin: 14px 0 0;
}
.cta-reassure a {
  color: var(--magician-2);
  text-underline-offset: 3px;
}
.cta-reassure a:hover { text-decoration: underline; }
.diag-callout-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.diag-callout-cta .cta-reassure { margin: 0; }

/* ===== Layout helpers ===== */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px clamp(20px, 5vw, 24px) 0;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--magician-2);
  margin: 0 0 10px;
}
.section-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.section-lead {
  color: rgba(241, 239, 232, 0.68);
  max-width: 560px;
  margin: 0 0 48px;
  font-size: 1.02rem;
}

/* ===== Hero ===== */
/* Full-width so decorative backgrounds (nebula/glow/dot-field) can span the
   whole viewport on wide screens; the actual content stays in a centered
   max-width column via .hero-inner. */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 14vw, 160px) clamp(20px, 5vw, 24px) 110px;
}

.dot-field-container {
  position: absolute;
  inset: -15% -8%;
  z-index: 0;
  mask-image: radial-gradient(ellipse 85% 80% at 30% 28%, black 0%, transparent 92%);
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at 30% 28%, black 0%, transparent 92%);
}
.dot-field-canvas,
.dot-field-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.dot-field-glow-circle {
  opacity: 0;
  will-change: opacity;
}

/* Ambient glows: sized to the hero's own box (inset: 0) and positioned with
   percentages, so they always cover the full hero proportionally — no fixed
   pixel guessing that breaks on different viewport widths. */
.hero-glow {
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 45% 45% at 6% 108%, rgba(139, 47, 245, 0.4) 0%, rgba(139, 47, 245, 0.1) 45%, transparent 100%);
  filter: blur(50px);
  animation: drift 14s ease-in-out infinite;
}
.hero-glow--cta {
  background: radial-gradient(ellipse 45% 45% at 50% 128%, rgba(139, 47, 245, 0.4) 0%, rgba(139, 47, 245, 0.1) 45%, transparent 100%);
}

/* Nebula: layered, vivid glow biased to the right — echoes the reactbits.dev
   hero's flowing gradient without competing with the left-aligned headline's
   contrast. inset extends past the hero's own box so the blurred falloff
   never gets clipped by a hard container edge. */
.hero-nebula {
  position: absolute;
  inset: -25% -15%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 40% 45% at 88% 12%, rgba(176, 107, 255, 0.5) 0%, rgba(176, 107, 255, 0.18) 45%, transparent 100%),
    radial-gradient(ellipse 35% 40% at 96% 26%, rgba(139, 47, 245, 0.4) 0%, rgba(139, 47, 245, 0.1) 45%, transparent 100%);
  filter: blur(60px);
  animation: nebula-drift 22s ease-in-out infinite;
}
.hero-nebula--2 {
  background:
    radial-gradient(ellipse 32% 32% at 10% 10%, rgba(176, 107, 255, 0.16) 0%, rgba(139, 47, 245, 0.05) 45%, transparent 100%);
  filter: blur(60px);
  animation: nebula-drift-2 18s ease-in-out infinite;
}

@media (max-width: 720px) {
  .hero-nebula,
  .hero-nebula--2,
  .hero-glow {
    opacity: 0.6;
  }
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
}
@keyframes nebula-drift {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(-30px, 40px) scale(1.06) rotate(4deg); }
}
@keyframes nebula-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(25px, -25px) scale(1.1); }
}

.badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-hover);
  background: rgba(139, 47, 245, 0.10);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: rgba(241, 239, 232, 0.8);
  margin-bottom: 28px;
  animation: pulse-glow 3s ease-in-out infinite;
}
.badge-tag {
  background: var(--magician);
  color: var(--paper);
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 700;
}
.badge-sep { opacity: 0.4; }
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(139, 47, 245, 0); }
  50% { box-shadow: 0 0 18px rgba(139, 47, 245, 0.35); }
}

.hero-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 26px;
  max-width: 820px;
}
.accent {
  color: var(--magician-2);
  font-style: italic;
}

.hero-sub {
  position: relative;
  z-index: 1;
  max-width: 620px;
  font-size: 1.08rem;
  color: rgba(241, 239, 232, 0.72);
  margin: 0 0 38px;
}

/* ===== Bento (dor) ===== */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
@media (max-width: 860px) { .bento { grid-template-columns: 1fr; } }

.card {
  background: var(--deep-violet-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-hover); }
.card-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--magician-soft);
  color: var(--magician);
  margin-bottom: 18px;
}
.card-icon svg { width: 20px; height: 20px; }

/* Engrenagens do bloco "O Problema" — cada uma gira sozinha, na própria velocidade e sentido, sem nunca virar um motor */
.gear-icon {
  transform-box: fill-box;
  transform-origin: center;
}
.gear-a { animation: spin-cw 9s linear infinite; }
.gear-b { animation: spin-ccw 4.5s linear infinite; }
.gear-c { animation: spin-stutter 6s steps(10) infinite; }

@keyframes spin-cw {
  to { transform: rotate(360deg); }
}
@keyframes spin-ccw {
  to { transform: rotate(-360deg); }
}
@keyframes spin-stutter {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .gear-icon { animation: none; }
}
.card h3 { font-family: var(--font-title); font-size: 1.05rem; margin: 0 0 8px; }
.card p { margin: 0; font-size: 0.92rem; color: rgba(241, 239, 232, 0.65); }

/* ===== Método MOTOR ===== */
.motor {
  position: relative;
  padding-left: 8px;
  padding-bottom: 40px;
}
.motor-line {
  position: absolute;
  left: 27px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--magician), transparent);
  opacity: 0.5;
}
.motor-step {
  position: relative;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 22px 0;
}
.motor-letter {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--border-hover);
  background: var(--deep-violet-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--magician-2);
  z-index: 1;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.motor-step:hover .motor-letter {
  box-shadow: 0 0 24px rgba(139, 47, 245, 0.5);
  transform: scale(1.08);
}
.motor-copy h3 { font-family: var(--font-title); font-size: 1.15rem; margin: 6px 0 6px; }
.motor-copy p { margin: 0; color: rgba(241, 239, 232, 0.66); max-width: 560px; }

/* ===== Escada ===== */
.ladder {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 28px;
}
@media (max-width: 860px) {
  .ladder { flex-direction: column; }
  .rung-arrow { transform: rotate(90deg); align-self: center; }
}
.rung {
  flex: 1;
  background: var(--deep-violet-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
}
.rung-highlight {
  border-color: var(--magician);
  background: linear-gradient(160deg, rgba(139,47,245,0.14), var(--deep-violet-2) 60%);
}
.rung-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--magician-2);
}
.rung h3 { font-family: var(--font-title); font-size: 1.3rem; margin: 8px 0 8px; }
.rung p { margin: 0; font-size: 0.9rem; color: rgba(241, 239, 232, 0.62); }
.rung-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(241, 239, 232, 0.3);
  font-size: 1.4rem;
  padding: 0 4px;
}

.diag-callout {
  justify-content: space-between;
  background: var(--deep-violet-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px clamp(20px, 4vw, 36px);
  margin-bottom: 96px;
}
.diag-callout h3 { font-family: var(--font-title); font-size: 1.4rem; margin: 6px 0 8px; }
.diag-callout p { margin: 0; max-width: 480px; color: rgba(241, 239, 232, 0.66); }

/* ===== Bio (quem sou) ===== */
.bio-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 96px;
}
.bio {
  max-width: 560px;
}
.bio p {
  font-size: 1.08rem;
  line-height: 1.75;
  color: rgba(241, 239, 232, 0.78);
  margin: 0 0 20px;
}
.bio .highlight {
  color: var(--magician-2);
  font-weight: 600;
}

.bio-photo {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 40px 70px -30px rgba(139, 47, 245, 0.45);
  transition: border-color 0.25s ease;
}
.bio-photo:hover { border-color: var(--border-hover); }
.bio-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 15%;
}
.bio-photo-tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(20, 15, 28, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-hover);
  border-radius: 14px;
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--paper);
  line-height: 1.5;
}
.bio-photo-tag span {
  display: block;
  color: var(--magician-2);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.03em;
}

@media (max-width: 860px) {
  .bio-grid { grid-template-columns: 1fr; gap: 32px; }
  .bio-photo { order: -1; }
  .bio { max-width: none; }
}

/* ===== CTA final ===== */
.cta-final {
  position: relative;
  text-align: center;
  padding: 130px 24px 150px;
}
.cta-final h2 {
  position: relative; z-index: 1;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.cta-final p {
  position: relative; z-index: 1;
  color: rgba(241, 239, 232, 0.68);
  max-width: 480px;
  margin: 0 auto 34px;
}
.cta-final .btn { position: relative; z-index: 1; }

/* ===== Footer ===== */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 40px 24px 56px;
  border-top: 1px solid var(--border);
  color: rgba(241, 239, 232, 0.45);
  font-size: 0.85rem;
  text-align: center;
}
.footer .nav-brand { font-size: 0.95rem; color: rgba(241, 239, 232, 0.75); }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-glow,
  .hero-nebula,
  .hero-nebula--2,
  .badge,
  .reveal {
    animation: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .card,
  .btn,
  .motor-letter {
    transition: none;
  }
}
.footer-contact { font-family: var(--font-mono); font-size: 0.8rem; }
.footer-contact a { color: var(--magician-2); text-underline-offset: 3px; }
.footer-contact a:hover { text-decoration: underline; }
.footer-sep { margin: 0 8px; opacity: 0.4; }

/* ===== Focus states (keyboard navigation) ===== */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--magician-2);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible {
  outline-offset: 4px;
}

/* ===== WhatsApp FAB ===== */
.whatsapp-fab {
  position: fixed;
  right: clamp(16px, 4vw, 32px);
  bottom: clamp(16px, 4vw, 32px);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--magician), var(--magician-2));
  color: var(--paper);
  box-shadow: 0 8px 24px rgba(139, 47, 245, 0.4);
  animation: fab-in 0.6s ease 1.2s both, fab-pulse 3.5s ease-in-out 2.2s infinite;
}
.whatsapp-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(139, 47, 245, 0.55);
}
.whatsapp-fab-icon { width: 22px; height: 22px; flex-shrink: 0; }
.whatsapp-fab-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.86rem;
  white-space: nowrap;
}
@keyframes fab-in {
  from { opacity: 0; transform: translateY(14px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(139, 47, 245, 0.4); }
  50% { box-shadow: 0 8px 24px rgba(139, 47, 245, 0.4), 0 0 0 8px rgba(139, 47, 245, 0.12); }
}
@media (max-width: 480px) {
  .whatsapp-fab-label { display: none; }
  .whatsapp-fab { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-fab { animation: fab-in 0.01s linear both; }
}

/* ===== Chat da Biah ===== */
.chat-fab {
  position: fixed;
  right: clamp(16px, 4vw, 32px);
  bottom: clamp(16px, 4vw, 32px);
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--magician), var(--magician-2));
  color: var(--paper);
  box-shadow: 0 8px 24px rgba(139, 47, 245, 0.4);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  animation: fab-in 0.6s ease 1.2s both, fab-pulse 3.5s ease-in-out 2.2s infinite;
}
.chat-fab:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(139, 47, 245, 0.55); }
.chat-fab-icon { width: 22px; height: 22px; flex-shrink: 0; }
.chat-fab.is-open { display: none; }
@media (prefers-reduced-motion: reduce) { .chat-fab { animation: fab-in 0.01s linear both; } }

.chat-panel {
  position: fixed;
  right: clamp(12px, 4vw, 32px);
  bottom: clamp(12px, 4vw, 32px);
  z-index: 1002;
  width: min(370px, calc(100vw - 24px));
  height: min(560px, calc(100vh - 100px));
  display: none;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  background: var(--deep-violet-2);
  border: 1px solid var(--border);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}
.chat-panel.is-open { display: flex; }
.chat-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--deep-violet);
}
.chat-panel-head strong { font-family: var(--font-title); font-size: 0.95rem; color: var(--paper); }
.chat-panel-head small { display: block; color: var(--magician-2); font-size: 0.72rem; margin-top: 2px; }
.chat-close {
  border: 0;
  background: transparent;
  color: var(--paper);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  padding: 4px;
}
.chat-close:hover { opacity: 1; }
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-bubble {
  max-width: 84%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.45;
  white-space: pre-wrap;
}
.chat-bubble.from-bot {
  align-self: flex-start;
  background: rgba(241, 239, 232, 0.08);
  color: var(--paper);
  border-bottom-left-radius: 4px;
}
.chat-bubble.from-user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--magician), var(--magician-2));
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-bubble.is-typing { opacity: 0.6; font-style: italic; }
.chat-foot {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
}
.chat-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--deep-violet);
  color: var(--paper);
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 0.86rem;
  resize: none;
  outline: none;
}
.chat-input:focus { border-color: var(--border-hover); }
.chat-send {
  border: 0;
  border-radius: 10px;
  padding: 0 16px;
  background: linear-gradient(135deg, var(--magician), var(--magician-2));
  color: #fff;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
}
.chat-send:disabled { opacity: 0.5; cursor: wait; }
.chat-whatsapp-link {
  display: block;
  text-align: center;
  padding: 8px 12px 12px;
  font-size: 0.72rem;
  color: var(--magician-2);
  text-decoration: none;
}
.chat-whatsapp-link:hover { text-decoration: underline; }
@media (max-width: 480px) {
  .chat-fab span:last-child { display: none; }
  .chat-fab { padding: 14px; }
}

/* ===== Agendar ===== */
.booking-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(60px, 10vw, 110px) clamp(20px, 5vw, 24px) 60px;
}
.booking-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
}
.booking-section {
  padding-top: 0;
  display: grid;
  justify-items: center;
  padding-bottom: 110px;
}
.booking-card {
  width: 100%;
  max-width: 640px;
  background: var(--deep-violet-2);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 40px);
  display: grid;
  gap: 30px;
}
.booking-step { display: grid; gap: 12px; }
.booking-step[hidden] { display: none; }
.booking-step-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--magician-2);
}
.booking-hint { margin: 0; font-size: 0.82rem; color: rgba(241, 239, 232, 0.55); }

.modality-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modality-option {
  text-align: left;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(241, 239, 232, 0.03);
  color: var(--paper);
  cursor: pointer;
  display: grid;
  gap: 4px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.modality-option strong { font-family: var(--font-title); font-size: 1rem; }
.modality-option small { color: rgba(241, 239, 232, 0.6); font-size: 0.78rem; }
.modality-option:hover { border-color: var(--border-hover); }
.modality-option.is-active {
  border-color: var(--magician);
  background: rgba(139, 47, 245, 0.14);
  box-shadow: 0 0 0 1px var(--magician) inset;
}

.booking-card input[type="date"],
.booking-card input[type="text"],
.booking-card input[type="tel"],
.booking-card textarea {
  width: 100%;
  background: rgba(241, 239, 232, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--paper);
  padding: 12px 14px;
  font: inherit;
  outline: none;
  color-scheme: dark;
}
.booking-card input:focus,
.booking-card textarea:focus {
  border-color: var(--magician);
  box-shadow: 0 0 0 3px rgba(139, 47, 245, 0.18);
}

.slots-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.slots-placeholder { margin: 0; font-size: 0.85rem; color: rgba(241, 239, 232, 0.55); }
.slot-option {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(241, 239, 232, 0.03);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.slot-option:hover { border-color: var(--border-hover); }
.slot-option.is-active {
  border-color: var(--magician);
  background: var(--magician);
  color: #fff;
}

.booking-fields { display: grid; gap: 14px; }
.booking-fields label {
  display: grid;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(241, 239, 232, 0.65);
}
.booking-fields label span { text-transform: none; letter-spacing: normal; opacity: 0.7; }

.booking-submit { width: 100%; justify-content: center; }
.booking-submit:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
#booking-message:not(:empty) { color: #f3b6b6; font-size: 0.85rem; margin: -8px 0 0; }

.booking-success {
  width: 100%;
  max-width: 560px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 40px 24px;
}
.booking-success[hidden] { display: none; }
.booking-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--magician);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 8px;
}

@media (max-width: 560px) {
  .modality-grid { grid-template-columns: 1fr; }
}
