/* TMS 365 — tema escuro premium (complementos ao Tailwind CDN) */

html {
  scroll-behavior: smooth;
}

section[id],
article[id] {
  scroll-margin-top: 5rem;
}

/* ---------- Marca: estrada tracejada (motivo do logo) ---------- */

.road-dash {
  height: 3px;
  background-image: repeating-linear-gradient(
    90deg,
    #f47920 0 14px,
    transparent 14px 26px
  );
  border-radius: 9999px;
}

.road-dash-vertical {
  width: 3px;
  background-image: repeating-linear-gradient(
    180deg,
    #f47920 0 10px,
    transparent 10px 20px
  );
  border-radius: 9999px;
}

/* ---------- Fundo do hero ---------- */

.hero-bg {
  background-color: #0a1420;
  background-image:
    radial-gradient(ellipse 60% 45% at 70% -10%, rgba(49, 83, 120, 0.55), transparent 70%),
    radial-gradient(ellipse 45% 35% at 15% 5%, rgba(244, 121, 32, 0.14), transparent 70%);
}

.dot-grid {
  background-image: radial-gradient(rgba(148, 163, 184, 0.14) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 85%);
}

.mockup-glow {
  position: absolute;
  inset: -8% -6%;
  background:
    radial-gradient(ellipse 55% 55% at 50% 40%, rgba(244, 121, 32, 0.18), transparent 70%),
    radial-gradient(ellipse 70% 60% at 50% 60%, rgba(61, 102, 148, 0.35), transparent 75%);
  filter: blur(12px);
  z-index: 0;
  pointer-events: none;
}

/* ---------- Molduras de dispositivo ---------- */

.browser-frame {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 1px rgba(10, 20, 32, 0.9),
    0 30px 80px -20px rgba(0, 0, 0, 0.7),
    0 10px 30px -10px rgba(0, 0, 0, 0.5);
  background: #f8fafc;
}

.phone-frame {
  border-radius: 2rem;
  border: 6px solid #16283c;
  outline: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  background: #f8fafc;
}

/* ---------- Toasts flutuantes do hero ---------- */

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.toast-float {
  animation: floaty 5s ease-in-out infinite;
}
.toast-float-delay {
  animation: floaty 6s ease-in-out 1.2s infinite;
}

/* ---------- Reveal on scroll ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .toast-float, .toast-float-delay { animation: none; }
}

/* ---------- FAQ ---------- */

details summary {
  cursor: pointer;
  list-style: none;
}
details summary::-webkit-details-marker {
  display: none;
}
details .faq-chevron {
  transition: transform 0.2s ease;
}
details[open] .faq-chevron {
  transform: rotate(180deg);
}

/* ---------- Conteúdo dos posts do blog (área clara) ---------- */

.prose-post {
  color: #334155;
  line-height: 1.75;
}
.prose-post h2 {
  color: #1e293b;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
}
.prose-post h3 {
  color: #1e293b;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}
.prose-post p {
  margin: 0 0 1rem;
}
.prose-post ul,
.prose-post ol {
  margin: 0 0 1rem 1.5rem;
}
.prose-post ul { list-style: disc; }
.prose-post ol { list-style: decimal; }
.prose-post li { margin-bottom: 0.375rem; }
.prose-post a {
  color: #d96510;
  text-decoration: underline;
}
.prose-post strong { color: #1e293b; }
.prose-post blockquote {
  border-left: 4px solid #f47920;
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: #64748b;
  font-style: italic;
}
.prose-post table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.prose-post th,
.prose-post td {
  border: 1px solid #e2e8f0;
  padding: 0.5rem 0.75rem;
  text-align: left;
}
.prose-post th {
  background: #f8fafc;
  color: #1e293b;
}
