@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* ═══════════════════════════════════════════════════════════
   Agenda Salões — Design Tokens & Core System
   ═══════════════════════════════════════════════════════════ */
:root {
  --bg: #1c1410;
  --bg-alt: #251a14;
  --bg-elevated: #30221c;
  --text: #f5e6dd;
  --text-muted: #a59186;
  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(236, 72, 153, 0.2);
  --primary: #ec4899;
  --primary-rgb: 236, 72, 153;
  --primary-soft: rgba(236, 72, 153, 0.15);
  --accent: #fbbf24;
  --surface: #201610;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --grad-warm: linear-gradient(135deg, #ec4899 0%, #fbbf24 100%);
  --grad-text: linear-gradient(135deg, #ec4899 20%, #fbbf24 80%);
  --grad-mesh: radial-gradient(circle at 10% 20%, rgba(236, 72, 153, 0.1) 0%, transparent 40%),
               radial-gradient(circle at 90% 80%, rgba(251, 191, 36, 0.08) 0%, transparent 40%),
               radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.03) 0%, transparent 60%);
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);
  --max-width: 1100px;
}

/* ── Base Reset ── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  background-image: var(--grad-mesh);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: #fff;
  font-weight: 600;
  line-height: 1.25;
}

h1 {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  letter-spacing: -0.01em;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--grad-warm);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

p {
  color: var(--text-muted);
}

a {
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s var(--ease);
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Interactive Elements & Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  gap: 8px;
  border: none;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--grad-warm);
  color: #fff;
  box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.5);
}

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

.btn-secondary {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--border);
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.15);
}

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Glassmorphism Card Utility ── */
.glass-card {
  background: rgba(42, 29, 24, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: all 0.3s var(--ease-out);
}

.glass-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(var(--primary-rgb), 0.08);
}

/* ── Fixed Header ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(28, 20, 16, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}

.header.scrolled {
  padding: 10px 0;
  box-shadow: var(--shadow-md);
  background: rgba(28, 20, 16, 0.95);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--grad-warm);
  padding: 2px;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a:not(.btn) {
  font-size: 14.5px;
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
  padding: 8px 0;
}

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).active {
  color: #fff;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-warm);
  transition: width 0.25s var(--ease);
}

.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn).active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

/* ── Hero Section ── */
.hero {
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}

.hero-content h1 {
  font-size: 3.2rem;
  margin-bottom: 24px;
  line-height: 1.15;
}

.hero-content p {
  font-size: 1.15rem;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ── WhatsApp Phone Simulator ── */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-mockup {
  width: 320px;
  height: 580px;
  background: #1c1410;
  border: 10px solid #2d2019;
  border-radius: 40px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.05), inset 0 0 10px rgba(0,0,0,0.8);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  z-index: 10;
}

.phone-header {
  background: #251a14;
  padding: 16px 16px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}

.phone-avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--grad-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #fff;
  font-size: 16px;
}

.phone-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.phone-title {
  flex: 1;
}

.phone-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.phone-status {
  font-size: 10px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
}

.phone-status::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent);
}

.phone-body {
  flex: 1;
  background-color: #170f0c;
  background-image: radial-gradient(rgba(236, 72, 153, 0.02) 1px, transparent 0),
                    radial-gradient(rgba(251, 191, 36, 0.02) 1px, transparent 0);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 12px;
}

.chat-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  line-height: 1.4;
  position: relative;
  animation: bubbleIn 0.4s var(--ease-out) both;
}

@keyframes bubbleIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.bubble-received {
  align-self: flex-start;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.bubble-sent {
  align-self: flex-end;
  background: var(--grad-warm);
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 2px 10px rgba(var(--primary-rgb), 0.2);
}

.bubble-typing {
  align-self: flex-start;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
}

.bubble-typing span {
  width: 6px;
  height: 6px;
  background-color: var(--text-muted);
  border-radius: 50%;
  animation: dotBounce 1.4s infinite ease-in-out;
}

.bubble-typing span:nth-child(2) { animation-delay: 0.16s; }
.bubble-typing span:nth-child(3) { animation-delay: 0.32s; }

@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

.phone-footer {
  background: #251a14;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--border);
}

.phone-input {
  flex: 1;
  background: #1c1410;
  border: 1px solid var(--border);
  border-radius: 20px;
  height: 34px;
  padding: 0 14px;
  color: var(--text-muted);
  font-size: 11px;
  display: flex;
  align-items: center;
}

.phone-send-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--grad-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
}

.glowing-bg-circle {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.15) 0%, transparent 70%);
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* ── Section: Como funciona ── */
.how-it-works {
  padding: 80px 0;
  position: relative;
  background: rgba(20, 14, 11, 0.4);
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.step-card {
  text-align: center;
  position: relative;
}

.step-num {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.6;
}

.step-card h3 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: #fff;
}

.step-card p {
  font-size: 0.95rem;
}

/* ── Benefits Sections (Consumidor & Estabelecimentos) ── */
.benefits {
  padding: 100px 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.benefits-content h2 {
  text-align: left;
}

.benefits-content h2::after {
  margin: 0.75rem 0 0 0;
}

.benefits-intro {
  font-size: 1.1rem;
  margin: 20px 0 30px;
  color: var(--text);
}

.benefits-list {
  list-style: none;
  margin-bottom: 40px;
}

.benefits-list li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 18px;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.benefits-list li strong {
  color: #fff;
}

.benefits-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ec4899' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.benefits.reverse .benefits-grid {
  grid-template-columns: 1fr 1fr;
}

.benefits.reverse .benefits-grid > :first-child {
  order: 2;
}

.tagline {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary-soft);
  border: 1px solid var(--border-glow);
  color: var(--primary);
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

/* ── Content / Legal Page Styles ── */
.legal-layout {
  padding: 160px 0 100px;
  max-width: 800px;
  margin: 0 auto;
}

.legal-header {
  margin-bottom: 50px;
  text-align: center;
}

.legal-header h1 {
  font-size: 3rem;
  margin-bottom: 16px;
}

.legal-meta {
  font-size: 14px;
  color: var(--text-muted);
}

.legal-content h3 {
  font-size: 1.35rem;
  margin: 35px 0 15px;
  color: #fff;
  font-family: var(--font-sans);
}

.legal-content p {
  margin-bottom: 20px;
  font-size: 1.02rem;
  color: var(--text-muted);
}

.legal-content ul {
  margin: 15px 0 25px 24px;
}

.legal-content li {
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 1rem;
}

.legal-content li strong {
  color: #fff;
}

/* ── Editorial Page Styles (About) ── */
.editorial-layout {
  padding: 160px 0 100px;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  max-width: 800px;
  margin: 0 auto;
}

.editorial-header h1 {
  font-size: 3.2rem;
  margin-bottom: 30px;
  text-align: center;
}

.editorial-content {
  font-size: 1.1rem;
  line-height: 1.7;
}

.editorial-content p {
  margin-bottom: 24px;
}

.editorial-content strong {
  color: #fff;
}

.editorial-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 35px;
  margin: 40px 0;
}

.editorial-card h2 {
  text-align: left;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.editorial-card h2::after {
  margin: 0.5rem 0 0 0;
}

.editorial-card li {
  margin-bottom: 12px;
  list-style-type: square;
  margin-left: 20px;
  color: var(--text-muted);
}

/* ── Footer ── */
.footer {
  background: #140e0b;
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand h4 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 18px;
}

.footer-brand p {
  font-size: 13.5px;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 24px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.footer-info span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-nav h5 {
  font-size: 14.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  margin-bottom: 20px;
  font-family: var(--font-sans);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
}

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

.footer-links a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Mobile Menu Overlay ── */
.mobile-nav {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  background-image: var(--grad-mesh);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.mobile-nav-links a:not(.btn) {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-muted);
}

.mobile-nav-links a:not(.btn):hover,
.mobile-nav-links a:not(.btn).active {
  color: #fff;
}

/* ── Responsiveness ── */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .benefits-grid {
    grid-template-columns: 1fr !important;
    gap: 50px;
  }

  .benefits-content {
    order: 1 !important;
  }

  .benefits-visual {
    order: 2 !important;
    display: flex;
    justify-content: center;
  }

  .benefits-content h2 {
    text-align: center;
  }

  .benefits-content h2::after {
    margin: 0.75rem auto 0;
  }

  .grid-cards {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }
  .hero { padding: 130px 0 60px; }
  .hero-content h1 { font-size: 2.4rem; }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
