/* ==========================================================================
   Caminhos DBD — tema "Trilha" (espresso / ambar / musgo)
   Motivo: trilha pontilhada com waypoints — "sem desvios, direto ao destino".
   ========================================================================== */

:root {
  --bg: #1a120b;
  --bg-alt: #241a11;
  --bg-card: #241a11;
  --bg-elevated: #2c2014;
  --ink: #f5ede0;
  --ink-soft: #cdbfa8;
  --ink-faint: #9a8b73;
  --line: #3a2c1d;

  --ambar: #e0a458;
  --ambar-dark: #b87d38;
  --ambar-deep: #8a5a24;
  --musgo: #8aa370;
  --musgo-dark: #5f7a49;

  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --radius-sm: 10px;

  --font-display: "Bitter", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

/* ---- Hardening defensivo ---- */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 16px;
  color: var(--ink);
}
p {
  margin: 0 0 16px;
  color: var(--ink-soft);
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}
section {
  padding: 84px 0;
}
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}
.section-head .eyebrow-tag {
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
}
.section-head p {
  font-size: 17px;
}

.eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ambar);
  background: color-mix(in srgb, var(--ambar) 12%, transparent);
  border: 1px dashed color-mix(in srgb, var(--ambar) 55%, transparent);
  padding: 7px 16px;
  border-radius: 999px;
}
.eyebrow-tag svg {
  width: 15px;
  height: 15px;
}

/* ---- Botoes: pilula com anel pontilhado + seta de movimento ---- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15.5px;
  padding: 15px 28px;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn svg {
  width: 17px;
  height: 17px;
  transition: transform 0.2s ease;
}
.btn:hover svg {
  transform: translateX(4px);
}
.btn-primary {
  background: var(--ambar);
  color: #1a120b;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--ambar) 45%, transparent);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 1.5px dashed color-mix(in srgb, var(--musgo) 70%, transparent);
  pointer-events: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--ambar);
  border: 2px dashed color-mix(in srgb, var(--ambar) 65%, transparent);
}
.btn-outline:hover {
  background: color-mix(in srgb, var(--ambar) 10%, transparent);
  transform: translateY(-2px);
}
.btn-block {
  width: 100%;
  justify-content: center;
}

/* ---- Header ---- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  header.site-header {
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}
.brand img {
  width: 36px;
  height: 36px;
}
.main-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav .nav-links {
  display: flex;
  gap: 24px;
  font-size: 15px;
  font-weight: 600;
}
.main-nav .nav-links a {
  color: var(--ink-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav .nav-links a:hover,
.main-nav .nav-links a[aria-current="page"] {
  color: var(--ambar);
  border-bottom-color: var(--ambar);
}

/* ---- Hero: trilha pontilhada com waypoints ---- */
.hero {
  padding: 56px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(520px 320px at 85% 10%, color-mix(in srgb, var(--ambar) 14%, transparent), transparent 70%),
    radial-gradient(420px 320px at 5% 95%, color-mix(in srgb, var(--musgo) 12%, transparent), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(34px, 4.6vw, 54px);
}
.hero-copy h1 .accent {
  color: var(--ambar);
}
.hero-copy .lead {
  font-size: 18px;
  max-width: 540px;
}
.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 32px;
}
.trust-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg-card);
  border: 1px dashed var(--line);
  padding: 9px 14px;
  border-radius: 999px;
}
.trust-chip svg {
  width: 15px;
  height: 15px;
  color: var(--musgo);
  flex-shrink: 0;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  min-height: 420px;
}
.trail-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.trail-path {
  fill: none;
  stroke: var(--musgo);
  stroke-width: 3;
  stroke-dasharray: 9 10;
  stroke-linecap: round;
  opacity: 0.85;
}
.trail-dot {
  fill: var(--bg-elevated);
  stroke: var(--ambar-dark);
  stroke-width: 2.5;
}
.trail-dot.final {
  fill: var(--ambar);
  stroke: var(--ink);
}
.trail-label {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px dashed var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  animation: floatLabel 5s ease-in-out infinite;
}
.trail-label svg {
  width: 16px;
  height: 16px;
  color: var(--ambar);
}
.trail-label.l1 { top: 6%; left: 2%; animation-delay: 0s; }
.trail-label.l2 { top: 30%; right: 0%; animation-delay: 0.8s; }
.trail-label.l3 { top: 60%; left: 4%; animation-delay: 1.6s; }
.trail-label.l4 {
  bottom: 4%;
  right: 6%;
  background: var(--ambar);
  color: #1a120b;
  border-color: var(--ambar-deep);
  animation-delay: 2.4s;
}
@keyframes floatLabel {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* ---- Cards: borda tracejada + selo circular ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--bg-card);
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover {
  border-color: color-mix(in srgb, var(--ambar) 60%, transparent);
  transform: translateY(-4px);
}
.card:nth-child(even) .stamp {
  border-color: color-mix(in srgb, var(--musgo) 60%, transparent);
  color: var(--musgo);
  background: color-mix(in srgb, var(--musgo) 14%, transparent);
}
.stamp {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ambar);
  background: color-mix(in srgb, var(--ambar) 14%, transparent);
  border: 1.5px dashed color-mix(in srgb, var(--ambar) 55%, transparent);
  margin-bottom: 16px;
}
.stamp svg {
  width: 24px;
  height: 24px;
}
.card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}
.card p {
  font-size: 14.5px;
  margin-bottom: 0;
}

/* ---- Planos ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.plan-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
}
.plan-card.featured {
  border: 1.5px solid var(--ambar);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-lg);
}
.plan-card .badge {
  position: absolute;
  top: 18px;
  right: -34px;
  transform: rotate(38deg);
  background: var(--ambar);
  color: #1a120b;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 40px;
  box-shadow: 0 4px 10px color-mix(in srgb, var(--ambar-dark) 40%, transparent);
}
.plan-card .plan-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}
.plan-card .plan-price {
  font-size: 34px;
  font-weight: 800;
  color: var(--ambar);
  margin-bottom: 2px;
}
.plan-card .plan-price span {
  font-size: 15px;
  color: var(--ink-faint);
  font-weight: 600;
}
.plan-card .plan-equiv {
  font-size: 13px;
  color: var(--musgo);
  font-weight: 600;
  margin-bottom: 18px;
}
.plan-card .plan-bullets {
  flex: 1;
  margin-bottom: 22px;
}
.plan-card .plan-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 7px 0;
}
.plan-check {
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--musgo) 22%, transparent);
  color: var(--musgo);
  display: flex;
  align-items: center;
  justify-content: center;
}
.plan-check svg {
  width: 11px;
  height: 11px;
}

/* ---- Passos (como funciona) ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.step-card {
  background: var(--bg-card);
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ambar);
  color: #1a120b;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 14px;
}

/* ---- FAQ ---- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px dashed var(--line);
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  text-align: left;
  padding: 20px 36px 20px 0;
  cursor: pointer;
  position: relative;
}
.faq-q::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 16px;
  font-size: 24px;
  color: var(--ambar);
  transition: transform 0.2s ease;
}
.faq-item.open .faq-q::after {
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-a p {
  padding-bottom: 20px;
  font-size: 15px;
}
.faq-item.open .faq-a {
  max-height: 400px;
}

/* ---- Footer ---- */
footer.site-footer {
  background: #120c07;
  border-top: 1px solid var(--line);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ambar);
  margin-bottom: 16px;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  color: var(--ink-faint);
  font-size: 14px;
}
.footer-col ul li a:hover {
  color: var(--ink);
}
.footer-brand .brand {
  margin-bottom: 14px;
}
.footer-brand p {
  font-size: 13.5px;
  color: var(--ink-faint);
  max-width: 280px;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 13px;
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a {
  color: var(--ink-faint);
}
.footer-bottom a:hover {
  color: var(--ambar);
}

/* ---- WhatsApp flutuante ---- */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--musgo);
  color: #0f1a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  border: 2px dashed color-mix(in srgb, var(--musgo-dark) 70%, transparent);
}
.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

/* ---- Pagina-satelite (device/app) ---- */
.page-icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--ambar) 14%, transparent);
  border: 1.5px dashed color-mix(in srgb, var(--ambar) 55%, transparent);
  color: var(--ambar);
  margin-bottom: 18px;
}
.page-icon-badge svg {
  width: 28px;
  height: 28px;
}
.breadcrumb {
  font-size: 13px;
  color: var(--ink-faint);
  margin-bottom: 18px;
}
.breadcrumb a {
  color: var(--ink-faint);
}
.breadcrumb a:hover {
  color: var(--ambar);
}
.page-hero {
  padding: 48px 0 20px;
}
.device-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}
.device-table th, .device-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px dashed var(--line);
  font-size: 14.5px;
}
.device-table th {
  color: var(--ambar);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.prose h2 {
  font-size: 24px;
  margin-top: 36px;
}
.prose h3 {
  font-size: 19px;
  margin-top: 24px;
}
.prose p, .prose li {
  color: var(--ink-soft);
  font-size: 15.5px;
}
.prose ul {
  list-style: none;
  margin-bottom: 16px;
}
.prose ul li {
  padding-left: 26px;
  position: relative;
  margin-bottom: 8px;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ambar);
}

/* ---- Blog ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  background: var(--bg-card);
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.blog-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.blog-card .blog-card-body {
  padding: 22px;
}
.blog-card .blog-tag {
  font-size: 12px;
  color: var(--musgo);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.blog-card h3 {
  font-size: 18px;
  margin: 8px 0;
}

/* ---- Utilidades institucionais ---- */
.legal-prose h2 {
  font-size: 20px;
  margin-top: 30px;
}
.legal-prose p, .legal-prose li {
  color: var(--ink-soft);
  font-size: 15px;
}
.placeholder-tag {
  color: var(--ambar);
  font-weight: 700;
}

/* ---- Pagina 404 ---- */
.page-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  padding: 80px 0;
}
.page-404 .code-404 {
  font-family: var(--font-display);
  font-size: 96px;
  color: var(--ambar);
  line-height: 1;
}

/* ---- Contato ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-grid .card {
  margin-bottom: 16px;
}

/* ---- Responsivo ---- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { min-height: 300px; order: -1; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .main-nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 6vw 28px;
    gap: 18px;
    display: none;
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav .nav-links {
    flex-direction: column;
    gap: 16px;
  }
}
@media (max-width: 560px) {
  section { padding: 56px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
