/* ==========================================================
   Vera Pinheiro 1010 — estilos base além do Tailwind utility
   ========================================================== */

:root {
  --vp-blue: #4e83f6;
  --vp-blue-deep: #224a9e;
  --vp-navy: #071b3d;
  --vp-support: #e0ebfc;
  --vp-green: #adcc54;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--vp-navy);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 0 0 .5rem 0;
  z-index: 100;
  font-weight: 700;
}
.skip-link:focus {
  left: 0;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--vp-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Header ---------- */
.header-bar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(7, 27, 61, 0.06);
  box-shadow: 0 4px 20px rgba(7, 27, 61, 0.06);
}
[data-header].is-scrolled .header-bar {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(7, 27, 61, 0.1);
}

.nav-link {
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 0;
  background: var(--vp-blue);
  transition: width 200ms ease-out;
}
.nav-link:hover::after {
  width: 100%;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: var(--vp-blue-deep);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  padding: .8rem 1.5rem;
  border-radius: .85rem;
  box-shadow: 0 8px 20px rgba(34, 74, 158, 0.35);
  transition: transform 200ms ease-out, box-shadow 200ms ease-out, background-color 200ms ease-out;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--vp-navy);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(7, 27, 61, 0.4);
}
.btn-primary:active {
  transform: scale(0.97);
  box-shadow: 0 6px 14px rgba(34, 74, 158, 0.35);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: transparent;
  color: var(--vp-navy);
  font-weight: 700;
  font-size: .95rem;
  padding: .8rem 1.5rem;
  border-radius: .85rem;
  border: 2px solid rgba(7, 27, 61, 0.15);
  transition: border-color 200ms ease-out, background-color 200ms ease-out, transform 150ms ease-out;
  cursor: pointer;
}
.btn-ghost:hover {
  border-color: var(--vp-blue);
  background: rgba(78, 131, 246, 0.06);
}
.btn-ghost:active {
  transform: scale(0.97);
  background: rgba(78, 131, 246, 0.12);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  background: #fff;
  color: var(--vp-blue-deep);
  font-weight: 700;
  font-size: .95rem;
  padding: .85rem 1.75rem;
  border-radius: .85rem;
  border: 2px solid var(--vp-blue);
  transition: background-color 200ms ease-out, color 200ms ease-out, transform 150ms ease-out;
  cursor: pointer;
}
.btn-outline:hover {
  background: var(--vp-blue-deep);
  color: #fff;
}
.btn-outline:active {
  transform: scale(0.97);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--vp-blue-deep);
  font-weight: 800;
  font-size: 1rem;
  padding: .9rem 2rem;
  border-radius: .85rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.28);
  transition: transform 200ms ease-out;
  cursor: pointer;
}
.btn-white:hover {
  transform: translateY(-2px);
}
.btn-white:active {
  transform: scale(0.97);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  background: transparent;
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  padding: .85rem 1.75rem;
  border-radius: .85rem;
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: background-color 200ms ease-out, border-color 200ms ease-out, transform 150ms ease-out;
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}
.btn-outline-white:active {
  transform: scale(0.97);
}

/* ---------- Group divider label (FAQ / plan clusters) ---------- */
.group-label {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--vp-blue-deep);
}
.group-label-dark {
  color: var(--vp-green);
}

/* ---------- Hero ---------- */
.hero-bg {
  background: radial-gradient(ellipse at top right, var(--vp-support) 0%, #ffffff 55%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(32px);
  opacity: .35;
  z-index: 0;
  pointer-events: none;
}
.blob-1 {
  width: 360px;
  height: 360px;
  top: -100px;
  right: -100px;
  background: var(--vp-blue);
}
.blob-2 {
  width: 280px;
  height: 280px;
  bottom: -90px;
  left: -90px;
  background: var(--vp-green);
  opacity: .25;
}
.blob-3 {
  width: 400px;
  height: 400px;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--vp-blue-deep);
  opacity: .3;
}
.blob-4 {
  width: 360px;
  height: 360px;
  bottom: -150px;
  right: -120px;
  background: #ffffff;
  opacity: .12;
}

/* ---------- Marquee ---------- */
.marquee {
  width: max-content;
  animation: marquee 24s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .marquee { animation: none; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Story cards ---------- */
.story-card {
  background: #fff;
  border: 1px solid rgba(7, 27, 61, 0.08);
  border-radius: 1.25rem;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 4px 16px rgba(7, 27, 61, 0.04);
}

/* ---------- Plan accordion ---------- */
.plan-item {
  background: #fff;
  border: 1px solid rgba(7, 27, 61, 0.08);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: box-shadow 200ms ease-out;
}
.plan-item[open] {
  box-shadow: 0 12px 28px rgba(7, 27, 61, 0.08);
}
.plan-item summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}
.plan-item summary::-webkit-details-marker {
  display: none;
}
.plan-item summary:hover {
  background: var(--vp-support);
}
.plan-num {
  font-style: italic;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--vp-blue);
  width: 2.5rem;
  flex-shrink: 0;
}
.plan-title {
  flex: 1;
  font-size: 1.05rem;
}
.plan-title em {
  font-style: normal;
  font-weight: 500;
  color: rgba(7, 27, 61, 0.6);
}
.plan-item .chev {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  transition: transform 250ms ease-out;
  color: var(--vp-blue-deep);
}
.plan-item[open] .chev {
  transform: rotate(180deg);
}
.plan-body {
  padding: 0 1.5rem 1.5rem 4.25rem;
  color: rgba(7, 27, 61, 0.75);
  line-height: 1.65;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid rgba(255, 255, 255, 0.15);
}
.timeline li {
  position: relative;
  padding-bottom: 2.25rem;
}
.timeline li:last-child {
  padding-bottom: 0;
}
.timeline-dot {
  position: absolute;
  left: -2.44rem;
  top: .2rem;
  width: .85rem;
  height: .85rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.6);
}
.timeline-dot--active {
  background: var(--vp-green);
  border-color: var(--vp-green);
  box-shadow: 0 0 0 5px rgba(173, 204, 84, 0.25);
}
.timeline h3 {
  font-weight: 700;
  font-size: 1.05rem;
}
.timeline p {
  margin-top: .35rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  font-size: .95rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

/* ---------- Check list ---------- */
.check-dot {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--vp-green);
  position: relative;
  margin-top: .1rem;
}
.check-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: .3rem;
  height: .6rem;
  border-right: 2px solid var(--vp-navy);
  border-bottom: 2px solid var(--vp-navy);
  transform: translate(-50%, -50%) rotate(45deg);
}

/* ---------- Objections ---------- */
.objection {
  background: var(--vp-support);
  border-radius: 1.25rem;
  padding: 1.5rem 1.75rem;
}
.objection-q {
  font-weight: 800;
  color: var(--vp-blue-deep);
}
.objection-a {
  margin-top: .5rem;
  color: rgba(7, 27, 61, 0.75);
  line-height: 1.65;
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid rgba(7, 27, 61, 0.1);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item .chev {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  transition: transform 250ms ease-out;
  color: var(--vp-blue);
}
.faq-item[open] .chev {
  transform: rotate(180deg);
}
.faq-body {
  padding-bottom: 1.25rem;
  color: rgba(7, 27, 61, 0.72);
  line-height: 1.65;
}
.link {
  color: var(--vp-blue-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Social icons ---------- */
.social-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 200ms ease-out, transform 200ms ease-out;
}
.social-icon svg {
  width: 1.2rem;
  height: 1.2rem;
  color: #fff;
}
.social-icon:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}
.social-icon:active {
  transform: scale(0.92);
}

/* ---------- Mobile menu toggle (press feedback + icon crossfade) ---------- */
[data-menu-toggle] {
  transition: transform 150ms ease-out, background-color 200ms ease-out;
}
[data-menu-toggle]:active {
  transform: scale(0.92);
}
[data-menu-toggle] svg {
  transition: opacity 200ms ease-out, transform 200ms ease-out;
}
[data-icon-open] {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}
[data-icon-close] {
  opacity: 0;
  transform: rotate(-45deg) scale(0.7);
}
[data-menu-toggle].is-open [data-icon-open] {
  opacity: 0;
  transform: rotate(45deg) scale(0.7);
}
[data-menu-toggle].is-open [data-icon-close] {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* ---------- Mobile menu panel (open/close) ---------- */
#menu-mobile {
  transition: opacity 220ms ease-out, transform 220ms ease-out;
  transform-origin: top center;
}
#menu-mobile:not(.is-open) {
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
}
#menu-mobile.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--vp-navy);
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  padding: .8rem 1.5rem;
  border-radius: .8rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  z-index: 100;
  opacity: 0;
  transition: transform 300ms ease-out, opacity 300ms ease-out;
  pointer-events: none;
}
.toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ---------- Image load-in (soft placeholder + fade, no layout shift) ---------- */
.img-fade {
  background-color: var(--vp-support);
  transition: opacity 500ms ease-out;
}
.img-fade:not(.is-loaded) {
  opacity: 0;
}
.img-fade.is-loaded {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .img-fade:not(.is-loaded) {
    opacity: 1;
  }
}

/* ---------- Reveal on scroll ----------
   Two deliberate tiers, not one entrance stamped on everything:
   - .reveal-up / .reveal-photo: the hero moment (used once each — the
     photo gets the "materialize" blur treatment precisely because it's
     the single hero use, not a repeated pattern).
   - .reveal-section: lighter, faster — used on section intros only, to
     pace the long scroll. Repeated list items (cards, accordion rows,
     timeline entries) intentionally carry NO scroll-entrance motion:
     they're static reference content and the reader shouldn't wait on
     them to fade in one by one. */
.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-photo {
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  filter: blur(8px);
  transition: opacity 700ms ease-out, transform 700ms ease-out, filter 700ms ease-out;
}
.reveal-photo.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.reveal-section {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 450ms ease-out, transform 450ms ease-out;
}
.reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-up,
  .reveal-photo,
  .reveal-section {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}
