/* ===================================================
   VideoDoc — Sections CSS
   =================================================== */

/* ─── HOW IT WORKS ─── */
.how-it-works {
  background: var(--bg-white);
  padding: var(--section-pad);
}

.how-it-works__header { text-align: center; margin-bottom: 72px; }
.how-it-works__header h2 { color: var(--text-dark); margin-bottom: 16px; }
.how-it-works__header p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

.how-it-works__steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 40px; position: relative; align-items: start;
}

/* connecting line */
.how-it-works__steps::before {
  content: '';
  position: absolute; top: 36px; left: 10%; right: 10%;
  height: 2px; background: linear-gradient(90deg, var(--brand-green), var(--brand-green-light));
  opacity: .2; z-index: 0;
}

.how-step {
  text-align: center; position: relative; z-index: 1;
}
.how-step__num {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--brand-green-pale);
  border: 2px solid var(--brand-green-light);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 800;
  color: var(--brand-green);
}
.how-step h3 { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.how-step p { font-size: .875rem; color: var(--text-muted); line-height: 1.6; }

@media (max-width: 768px) {
  .how-it-works__steps { grid-template-columns: 1fr 1fr; }
  .how-it-works__steps::before { display: none; }
}
@media (max-width: 480px) {
  .how-it-works__steps { grid-template-columns: 1fr; }
}

/* ─── FEATURES ─── */
.features {
  background: var(--bg-section);
  padding: var(--section-pad);
}
.features__header { text-align: center; margin-bottom: 64px; }
.features__header h2 { color: var(--text-dark); margin-bottom: 16px; }
.features__header p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

.features__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.features__grid--wide {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px; margin-top: 24px;
}

.feature-card {
  background: #fff; border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 36px;
  transition: var(--transition); box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-green), var(--brand-green-light));
  transform: scaleX(0); transition: transform .3s ease;
  transform-origin: left;
}
.feature-card:hover {
  box-shadow: var(--shadow-md); border-color: var(--brand-green-light);
  transform: translateY(-4px);
}
.feature-card:hover::before { transform: scaleX(1); }

.feature-card__icon {
  width: 56px; height: 56px; border-radius: var(--radius-sm);
  background: var(--brand-green-pale);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-card h3 {
  font-size: 1.1rem; font-weight: 700; color: var(--text-dark);
  margin-bottom: 12px;
}
.feature-card p {
  font-size: .9rem; color: var(--text-muted); line-height: 1.65;
}
.feature-card--highlight {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-dark-3));
  border-color: transparent; color: #fff;
}
.feature-card--highlight .feature-card__icon {
  background: rgba(255,255,255,.1);
}
.feature-card--highlight h3 { color: #fff; }
.feature-card--highlight p { color: rgba(255,255,255,.65); }
.feature-card--highlight::before { display: none; }

@media (max-width: 900px) {
  .features__grid { grid-template-columns: 1fr 1fr; }
  .features__grid--wide { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .features__grid { grid-template-columns: 1fr; }
}

/* ─── USE CASES ─── */
.use-cases {
  background: var(--bg-white);
  padding: var(--section-pad);
}
.use-cases__header { text-align: center; margin-bottom: 64px; }
.use-cases__header h2 { color: var(--text-dark); margin-bottom: 16px; }
.use-cases__header p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

.use-cases__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.use-case-card {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}
.use-case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.use-case-card__thumb {
  height: 160px; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.use-case-card__body { padding: 24px; }
.use-case-card h3 { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.use-case-card p { font-size: .875rem; color: var(--text-muted); }

@media (max-width: 768px) {
  .use-cases__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .use-cases__grid { grid-template-columns: 1fr; }
}

/* ─── DEMO / VIDEO SECTION ─── */
.demo-section {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-dark-3) 100%);
  padding: var(--section-pad);
  position: relative; overflow: hidden;
}
.demo-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(26,158,120,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,158,120,.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.demo-section__inner {
  max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center; position: relative; z-index: 1;
}
.demo-section__content h2 { color: #fff; margin-bottom: 16px; }
.demo-section__content p { color: rgba(255,255,255,.65); margin-bottom: 32px; }

.demo-section__features { margin: 32px 0; }
.demo-feature-item {
  display: flex; align-items: flex-start; gap: 16px;
  margin-bottom: 20px;
}
.demo-feature-item__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-green-light);
  margin-top: 6px; flex-shrink: 0;
}
.demo-feature-item h4 { color: #fff; font-size: .95rem; margin-bottom: 4px; }
.demo-feature-item p { color: rgba(255,255,255,.55); font-size: .875rem; }

.demo-section__visual {
  position: relative;
}
.demo-mockup {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.4);
}
.demo-mockup__bar {
  padding: 12px 16px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; gap: 8px;
}
.demo-mockup__url {
  background: rgba(255,255,255,.06); border-radius: 6px;
  padding: 6px 12px; font-size: .75rem; color: rgba(255,255,255,.4);
  flex: 1;
}
.demo-mockup__content { padding: 20px; }
.demo-doc-preview {
  background: #fff; border-radius: var(--radius-sm);
  padding: 20px;
}
.demo-doc-preview__title {
  height: 14px; background: #e2e8e4; border-radius: 4px;
  margin-bottom: 12px; width: 60%;
}
.demo-doc-preview__line {
  height: 8px; background: #f0f4f2; border-radius: 4px; margin-bottom: 8px;
}
.demo-doc-preview__line.short { width: 70%; }
.demo-doc-preview__line.shorter { width: 45%; }
.demo-doc-preview__img {
  height: 100px; background: linear-gradient(135deg, var(--brand-green-pale), #c8e6d4);
  border-radius: var(--radius-sm); margin: 16px 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}

@media (max-width: 900px) {
  .demo-section__inner { grid-template-columns: 1fr; }
}

/* ─── PRICING ─── */
.pricing {
  background: var(--bg-section);
  padding: var(--section-pad);
}
.pricing__header { text-align: center; margin-bottom: 64px; }
.pricing__header h2 { color: var(--text-dark); margin-bottom: 16px; }
.pricing__header p { color: var(--text-muted); max-width: 480px; margin: 0 auto; }

.pricing__toggle {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin-bottom: 48px;
}
.pricing__toggle span {
  font-size: .875rem; color: var(--text-muted); font-weight: 500;
}
.pricing__toggle span.active { color: var(--brand-green); font-weight: 700; }
.toggle-switch {
  width: 48px; height: 26px; background: var(--brand-green);
  border-radius: 100px; position: relative; cursor: pointer;
}
.toggle-switch::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  transition: transform .25s ease;
}
.toggle-switch.annual::after { transform: translateX(22px); }

.pricing__discount {
  background: var(--brand-green-pale); color: var(--brand-green);
  border-radius: 100px; padding: 2px 10px; font-size: .75rem; font-weight: 700;
}

.pricing__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; align-items: start;
}

.pricing-card {
  background: #fff; border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 36px;
  position: relative; transition: var(--transition);
}
.pricing-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.pricing-card--featured {
  background: var(--brand-dark);
  border-color: var(--brand-green-light);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--brand-green-light);
}
.pricing-card__badge-popular {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--brand-green-light); color: #fff;
  border-radius: 100px; padding: 4px 16px; font-size: .78rem; font-weight: 700;
  white-space: nowrap;
}

.pricing-card__plan {
  font-family: var(--font-display); font-size: .8rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand-green); margin-bottom: 16px;
}
.pricing-card--featured .pricing-card__plan { color: var(--brand-green-light); }

.pricing-card__price {
  margin-bottom: 8px;
}
.pricing-card__currency {
  font-size: 1.2rem; font-weight: 700; color: var(--text-dark);
  vertical-align: top; line-height: 1.8;
}
.pricing-card--featured .pricing-card__currency { color: #fff; }
.pricing-card__amount {
  font-family: var(--font-display); font-size: 3rem; font-weight: 800;
  color: var(--text-dark); letter-spacing: -.03em;
}
.pricing-card--featured .pricing-card__amount { color: #fff; }
.pricing-card__period {
  font-size: .875rem; color: var(--text-muted);
}

.pricing-card__desc {
  font-size: .875rem; color: var(--text-muted); margin-bottom: 28px; padding-bottom: 28px;
  border-bottom: 1px solid var(--border-light);
}
.pricing-card--featured .pricing-card__desc { color: rgba(255,255,255,.55); border-color: rgba(255,255,255,.1); }

.pricing-card__features { margin-bottom: 32px; }
.pricing-feature {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 12px; font-size: .875rem; color: var(--text-body);
}
.pricing-card--featured .pricing-feature { color: rgba(255,255,255,.8); }
.pricing-feature__check {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-green-pale); color: var(--brand-green);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.pricing-card--featured .pricing-feature__check {
  background: rgba(26,158,120,.2); color: var(--brand-green-light);
}

.pricing-card .btn { width: 100%; justify-content: center; }

@media (max-width: 900px) {
  .pricing__grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

/* ─── TESTIMONIALS ─── */
.testimonials {
  background: var(--bg-white);
  padding: var(--section-pad);
}
.testimonials__header { text-align: center; margin-bottom: 64px; }
.testimonials__header h2 { color: var(--text-dark); margin-bottom: 16px; }

.testimonials__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--bg-section);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 32px;
  transition: var(--transition);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md); transform: translateY(-4px);
  border-color: var(--brand-green-light);
}
.testimonial-card__quote {
  font-size: .95rem; color: var(--text-body); line-height: 1.75;
  margin-bottom: 24px; font-style: italic;
}
.testimonial-card__quote::before { content: '"'; color: var(--brand-green-light); font-size: 1.6rem; line-height: 0; vertical-align: -.4em; margin-right: 4px; }
.testimonial-card__author {
  display: flex; align-items: center; gap: 12px;
}
.testimonial-card__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand-green); display: flex; align-items: center;
  justify-content: center; font-weight: 700; color: #fff; font-size: .9rem;
  flex-shrink: 0;
}
.testimonial-card__name { font-weight: 700; color: var(--text-dark); font-size: .875rem; }
.testimonial-card__role { font-size: .78rem; color: var(--text-muted); }
.testimonial-card__stars { margin-bottom: 0; }

@media (max-width: 900px) {
  .testimonials__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .testimonials__grid { grid-template-columns: 1fr; }
}

/* ─── STATS BAND ─── */
.stats-band {
  background: var(--brand-dark);
  padding: 64px 24px;
}
.stats-band__inner {
  max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 40px; text-align: center;
}
.stat-item__num {
  font-family: var(--font-display); font-size: 2.8rem; font-weight: 800;
  color: var(--brand-green-light); line-height: 1;
  margin-bottom: 8px;
}
.stat-item__label { font-size: .875rem; color: rgba(255,255,255,.5); }

@media (max-width: 768px) {
  .stats-band__inner { grid-template-columns: repeat(2, 1fr); }
}

/* ─── CTA SECTION ─── */
.cta-section {
  background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-light) 100%);
  padding: 100px 24px;
  text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.cta-section__inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.cta-section h2 { color: #fff; margin-bottom: 20px; }
.cta-section p { color: rgba(255,255,255,.8); margin-bottom: 40px; font-size: 1.1rem; }
.cta-section__btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-white {
  background: #fff; color: var(--brand-green);
  font-family: var(--font-display); font-weight: 700;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.btn-white:hover { background: rgba(255,255,255,.92); transform: translateY(-2px); }

/* ─── FOOTER ─── */
.footer {
  background: var(--brand-dark); color: rgba(255,255,255,.6);
  padding: 80px 24px 40px;
}
.footer__top {
  max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 40px;
}
.footer__brand img { height: 48px; margin-bottom: 20px; }
.footer__brand p { font-size: .875rem; line-height: 1.75; max-width: 280px; }
.footer__col h4 {
  font-family: var(--font-display); font-size: .85rem; font-weight: 700;
  color: #fff; margin-bottom: 20px; text-transform: uppercase; letter-spacing: .06em;
}
.footer__col ul li { margin-bottom: 10px; }
.footer__col ul li a {
  font-size: .875rem; color: rgba(255,255,255,.5);
  transition: color .2s;
}
.footer__col ul li a:hover { color: var(--brand-green-light); }
.footer__bottom {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .8rem;
}
.footer__links { display: flex; gap: 24px; }
.footer__links a { color: rgba(255,255,255,.4); transition: color .2s; }
.footer__links a:hover { color: var(--brand-green-light); }

@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* ─── FAQ ─── */
.faq {
  background: var(--bg-white);
  padding: var(--section-pad);
}
.faq__header { text-align: center; margin-bottom: 64px; }
.faq__header h2 { color: var(--text-dark); margin-bottom: 16px; }

.faq__list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border-light); overflow: hidden;
}
.faq-item__q {
  width: 100%; text-align: left;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0; gap: 16px;
  font-family: var(--font-display); font-size: 1rem; font-weight: 600;
  color: var(--text-dark); cursor: pointer; background: none; border: none;
}
.faq-item__q:hover { color: var(--brand-green); }
.faq-item__chevron {
  width: 20px; height: 20px; flex-shrink: 0;
  transition: transform .3s ease; color: var(--text-muted);
}
.faq-item.open .faq-item__chevron { transform: rotate(180deg); }
.faq-item__a {
  max-height: 0; overflow: hidden; transition: max-height .4s ease;
  font-size: .9rem; color: var(--text-muted); line-height: 1.75;
}
.faq-item.open .faq-item__a { max-height: 300px; padding-bottom: 24px; }

/* ─── CONTATO (landing) ─── */
.landing-contact { background: var(--bg-light); }
.landing-contact__grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start;
}
.landing-contact__info h2 { color: var(--text-dark); margin-bottom: 16px; }
.landing-contact__info > p { color: var(--text-muted); margin-bottom: 20px; line-height: 1.75; }
.landing-contact__meta { font-size: .9rem; color: var(--text-body); margin-bottom: 10px; }
.landing-contact__meta a { color: var(--brand-green); }
.landing-contact__form-wrap {
  background: #fff; border-radius: 16px; padding: 32px;
  border: 1px solid var(--border-light); box-shadow: 0 8px 32px rgba(7,17,46,.06);
}
.landing-contact__form-wrap h3 { margin-bottom: 20px; font-family: var(--font-display); color: var(--text-dark); }
.landing-contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.landing-contact__field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.landing-contact__field span { font-size: .8rem; font-weight: 600; color: var(--text-muted); }
.landing-contact__field input,
.landing-contact__field textarea {
  border: 1px solid var(--border-light); border-radius: 10px; padding: 12px 14px;
  font-family: var(--font-body); font-size: .95rem;
}
.landing-contact__field input:focus,
.landing-contact__field textarea:focus { outline: 2px solid var(--brand-green-light); border-color: var(--brand-green); }

.toast-landing {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--brand-dark); color: #fff; padding: 14px 24px; border-radius: 10px;
  font-size: .9rem; z-index: 99999; opacity: 0; transition: all .3s ease; pointer-events: none;
}
.toast-landing.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-landing.error { background: #b91c1c; }

.terms-modal { position: fixed; inset: 0; z-index: 2147483646; }
.terms-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.terms-dialog {
  position: relative; max-width: 720px; margin: 5vh auto; background: #fff; border-radius: 14px;
  padding: 28px; max-height: 90vh; display: flex; flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,0,0,.25);
}
.terms-dialog__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.terms-dialog__head h3 { margin: 0; font-size: 1.1rem; color: var(--text-dark); }
.terms-dialog__body { overflow-y: auto; font-size: .9rem; line-height: 1.7; color: var(--text-body); }

.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 2147483645;
  background: var(--brand-dark); color: rgba(255,255,255,.85); padding: 16px 24px;
  display: none; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap;
  font-size: .875rem; box-shadow: 0 -4px 24px rgba(0,0,0,.2);
}
.cookie-banner.visible { display: flex; }
.cookie-banner a { color: var(--brand-green-light); }
.cookie-banner__actions { display: flex; gap: 10px; }

@media (max-width: 900px) {
  .landing-contact__grid { grid-template-columns: 1fr; }
  .landing-contact__row { grid-template-columns: 1fr; }
}
