/* Home — FAQ + CTA final (estética navy / ícone igual ao hero do blog) */

/* ----- FAQ ----- */
.home-faq {
  padding: clamp(3.5rem, 7vw, 5.25rem) 0;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

[data-theme="dark"] .home-faq {
  background: linear-gradient(180deg, #0b1220 0%, #070d14 100%);
  border-top-color: rgba(255, 255, 255, 0.06);
}

.home-faq .container {
  max-width: 720px;
}

.home-faq-head {
  text-align: center;
  margin-bottom: 2rem;
}

.home-faq-eyebrow {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0d9488;
}

[data-theme="dark"] .home-faq-eyebrow {
  color: #5eead4;
}

.home-faq-title {
  margin: 0 0 0.5rem;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #0f172a;
}

.home-faq-title span {
  background: var(--home-gradient-solid);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .home-faq-title {
  color: #f8fafc;
}

.home-faq-lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #64748b;
}

[data-theme="dark"] .home-faq-lead {
  color: #94a3b8;
}

.home-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.home-faq-item {
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

[data-theme="dark"] .home-faq-item {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(148, 163, 184, 0.12);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.home-faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.25rem;
  padding-right: 2.75rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  position: relative;
  user-select: none;
}

[data-theme="dark"] .home-faq-item summary {
  color: #f1f5f9;
}

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

.home-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.35rem;
  font-weight: 400;
  color: #0d9488;
  line-height: 1;
  transition: transform 0.25s ease;
}

.home-faq-item[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(0deg);
}

.home-faq-answer {
  padding: 0 1.25rem 1.15rem;
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.62;
  color: #475569;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  padding-top: 0.85rem;
}

[data-theme="dark"] .home-faq-answer {
  color: #cbd5e1;
  border-top-color: rgba(148, 163, 184, 0.12);
}

.home-faq-answer a {
  color: #0d9488;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.home-faq-answer a:hover {
  color: #0f766e;
}

[data-theme="dark"] .home-faq-answer a {
  color: #5eead4;
}

[data-theme="dark"] .home-faq-answer a:hover {
  color: #99f6e4;
}

/* ----- CTA final (navy, centralizado) ----- */
.home-cta-final {
  position: relative;
  padding: clamp(3.75rem, 8vw, 5.5rem) 0;
  overflow: hidden;
  text-align: center;
  background: radial-gradient(ellipse 70% 55% at 50% 35%, #0d2137 0%, #000814 50%, #00040a 100%);
  border-top: 1px solid rgba(0, 175, 239, 0.12);
}

.home-cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 28%, rgba(0, 175, 239, 0.14), transparent 52%);
  pointer-events: none;
}

.home-cta-final-inner {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  margin: 0 auto;
}

.home-cta-final h2 {
  margin: 0 0 1.75rem;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #ffffff;
}

.home-cta-icon-wrap {
  width: min(100%, 300px);
  aspect-ratio: 1;
  margin: 0 auto 1.75rem;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 12px 40px rgba(0, 175, 239, 0.22));
}

.home-cta-hero-icon {
  width: 100%;
  height: 100%;
}

/* Mesmas animações do blog-hero-icon (blog-home.css) */
.home-cta-hero-icon .ring {
  transform-origin: 250px 250px;
}

.home-cta-hero-icon .ring-1 {
  animation: homeCtaRingSpin 16s linear infinite;
}

.home-cta-hero-icon .ring-2 {
  animation: homeCtaRingSpinReverse 18s linear infinite;
}

.home-cta-hero-icon .ring-3 {
  animation: homeCtaRingPulse 3.5s ease-in-out infinite;
}

.home-cta-hero-icon .dot {
  animation: homeCtaDotFloat 4s ease-in-out infinite;
}

.home-cta-hero-icon .dot-2 {
  animation-delay: 0.4s;
}

.home-cta-hero-icon .dot-3 {
  animation-delay: 0.8s;
}

.home-cta-hero-icon .dot-4 {
  animation-delay: 1.2s;
}

.home-cta-hero-icon .dot-5 {
  animation-delay: 1.6s;
}

.home-cta-hero-icon .center-solid {
  transform-origin: 250px 250px;
  opacity: 0.25;
  animation:
    homeCtaCenterFloat 4.5s ease-in-out infinite,
    homeCtaCenterReveal 5.2s ease-in-out infinite;
}

.home-cta-hero-icon .center-draw path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.82);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1250;
  stroke-dashoffset: 1250;
  opacity: 0;
  animation: homeCtaDrawCenter 6.2s cubic-bezier(0.65, 0.02, 0.35, 1) infinite;
}

.home-cta-hero-icon .center-draw path:first-child {
  animation-delay: 0s;
}

.home-cta-hero-icon .center-draw path:last-child {
  stroke-dasharray: 1180;
  stroke-dashoffset: 1180;
  animation-delay: 0.7s;
}

.home-cta-final-lead {
  margin: 0 auto 1.75rem;
  font-size: 1.02rem;
  line-height: 1.65;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  max-width: 34rem;
}

/* Tema claro: mesma hierarquia visual do escuro, fundo claro e traços do ícone legíveis */
html:not([data-theme="dark"]) .home-cta-final {
  background:
    radial-gradient(ellipse 72% 48% at 50% 18%, rgba(84, 160, 255, 0.14) 0%, transparent 52%),
    radial-gradient(ellipse 95% 58% at 50% 108%, rgba(29, 209, 161, 0.1) 0%, transparent 54%),
    linear-gradient(180deg, #ffffff 0%, #f5f9fc 42%, #e9f2f9 100%);
  border-top: 1px solid rgba(84, 160, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html:not([data-theme="dark"]) .home-cta-final::before {
  background: radial-gradient(circle at 50% 26%, rgba(29, 209, 161, 0.11) 0%, rgba(84, 160, 255, 0.08) 42%, transparent 58%);
}

html:not([data-theme="dark"]) .home-cta-final h2 {
  color: #0f172a;
}

html:not([data-theme="dark"]) .home-cta-final-lead {
  color: #475569;
}

html:not([data-theme="dark"]) .home-cta-icon-wrap {
  filter: drop-shadow(0 14px 36px rgba(84, 160, 255, 0.22));
}

html:not([data-theme="dark"]) .home-cta-hero-icon > path:first-of-type {
  opacity: 0.35;
}

html:not([data-theme="dark"]) .home-cta-hero-icon .ring-1 {
  stroke: #0ea5e9;
  stroke-opacity: 0.4;
}

html:not([data-theme="dark"]) .home-cta-hero-icon .ring-2 {
  stroke: #16a34a;
  stroke-opacity: 0.38;
}

html:not([data-theme="dark"]) .home-cta-hero-icon .ring-3 {
  stroke: #0284c7;
  stroke-opacity: 0.28;
}

html:not([data-theme="dark"]) .home-cta-hero-icon .dot-1,
html:not([data-theme="dark"]) .home-cta-hero-icon .dot-3,
html:not([data-theme="dark"]) .home-cta-hero-icon .dot-5 {
  fill: #0ea5e9;
}

html:not([data-theme="dark"]) .home-cta-hero-icon .dot-2,
html:not([data-theme="dark"]) .home-cta-hero-icon .dot-4 {
  fill: #22c55e;
}

html:not([data-theme="dark"]) .home-cta-hero-icon .center-draw path {
  stroke: rgba(15, 23, 42, 0.42);
}

@keyframes homeCtaRingSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes homeCtaRingSpinReverse {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

@keyframes homeCtaRingPulse {
  0%,
  100% {
    stroke-opacity: 0.12;
  }
  50% {
    stroke-opacity: 0.4;
  }
}

@keyframes homeCtaDotFloat {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  50% {
    transform: translateY(-4px);
    opacity: 0.95;
  }
}

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

@keyframes homeCtaCenterReveal {
  0%,
  18% {
    opacity: 0.2;
  }
  45%,
  100% {
    opacity: 1;
  }
}

@keyframes homeCtaDrawCenter {
  0% {
    stroke-dashoffset: 1250;
    opacity: 0;
  }
  6% {
    opacity: 0.95;
  }
  62% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  82% {
    stroke-dashoffset: 0;
    opacity: 0.55;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-cta-hero-icon .ring-1,
  .home-cta-hero-icon .ring-2,
  .home-cta-hero-icon .ring-3,
  .home-cta-hero-icon .dot,
  .home-cta-hero-icon .center-solid,
  .home-cta-hero-icon .center-draw path {
    animation: none !important;
  }

  .home-cta-hero-icon .center-draw path {
    stroke-dashoffset: 0;
    opacity: 0.6;
  }

  .home-cta-hero-icon .center-solid {
    opacity: 0.7;
  }
}

@media (max-width: 480px) {
  .home-faq-item summary {
    padding: 1rem 1rem;
    padding-right: 2.5rem;
    font-size: 0.92rem;
  }

  .home-cta-icon-wrap {
    width: min(100%, 240px);
  }
}
