/* ==========================================================================
   EDUNE — Design system (versão HTML/CSS/PHP)
   Todas as cores vivem em variáveis; altere aqui para retematizar o site.
   ========================================================================== */

:root {
  --background: #1f3346;
  --foreground: #f7fafc;
  --card: #2a4258;
  --muted: #32506a;
  --muted-foreground: #c3d0dc;
  --border: rgba(255, 255, 255, 0.12);

  --brand: #52e0a4;
  --brand-2: #37cfc0;
  --brand-foreground: #12283a;
  --brand-soft: #26405a;
  --highlight: #52e0a4;

  --light-bg: #ffffff;
  --light-fg: #14293c;
  --light-card: #f2f6fa;

  --red: #dc2626;

  --gradient-brand: linear-gradient(135deg, var(--brand), var(--brand-2));
  --gradient-soft: linear-gradient(180deg, #1a2c3e, var(--background));
  --shadow-soft: 0 1px 2px rgba(4, 14, 24, 0.4), 0 12px 32px -20px rgba(2, 8, 15, 0.8);
  --shadow-lift: 0 18px 40px -22px rgba(2, 8, 15, 0.9);

  --radius: 14px;
  --radius-lg: 22px;
  --container: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: "Sora", ui-sans-serif, system-ui, sans-serif; margin: 0; line-height: 1.15; }

.icon { width: 20px; height: 20px; flex: none; }
.icon--brand { color: var(--brand); }

/* Layout ------------------------------------------------------------------ */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.container--md { max-width: 1100px; }
.container--sm { max-width: 780px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
@media (min-width: 1024px) { .container { padding: 0 32px; } }

.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 88px 0; } }
.section--soft { background: var(--gradient-soft); }
.section--muted { background: var(--brand-soft); }
.section--faq { background: #223a4f; }
.section--light { background: var(--light-bg); color: var(--light-fg); }

.grid-2 { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: 64px; } }

.grid-3 { display: grid; gap: 24px; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.grid-4 { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.center { text-align: center; }
.narrow { max-width: 680px; margin-inline: auto; }
.mt-2 { margin-top: 8px; } .mt-5 { margin-top: 20px; } .mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; } .mt-9 { margin-top: 36px; } .mt-10 { margin-top: 40px; }
.mt-12 { margin-top: 48px; }

/* Tipografia -------------------------------------------------------------- */
.h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 800; letter-spacing: -0.02em; }
.h2--brand { color: var(--brand); text-transform: none; }
.h3 { font-size: 1.125rem; font-weight: 700; }
.lead { font-size: 1rem; opacity: 0.85; margin: 16px 0 0; }
.muted { color: var(--muted-foreground); font-size: 0.9rem; }
.eyebrow {
  max-width: 40rem; margin: 0;
  font-size: 0.9rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.03em; color: var(--brand);
}
.hero-title {
  margin-top: 16px;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
}
.prose { margin-top: 24px; display: grid; gap: 16px; opacity: 0.88; }
.prose p { margin: 0; }

/* Botões ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; font-weight: 700; font-family: inherit;
  border-radius: 999px; padding: 12px 22px; font-size: 0.95rem;
  transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn--cta { background: var(--gradient-brand); color: var(--brand-foreground); }
.btn--brand { background: var(--brand); color: var(--brand-foreground); }
.btn--sm { padding: 9px 16px; font-size: 0.875rem; }
.btn--xl { padding: 16px 30px; font-size: 1rem; }

/* Ícone de seção ---------------------------------------------------------- */
.section-icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; margin: 0 auto 20px;
  transform: rotate(45deg);
  border: 1px solid rgba(82, 224, 164, 0.4);
  background: rgba(82, 224, 164, 0.1);
  border-radius: 10px;
}
.section-icon span { width: 12px; height: 12px; border-radius: 3px; background: var(--brand); transform: rotate(-45deg); }
.section-icon--left { margin-left: 0; margin-right: auto; }

/* Header ------------------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 50; }
.topbar { background: var(--red); padding: 8px 16px; text-align: center; }
.topbar p { margin: 0; color: #fff; font-size: 0.8rem; font-weight: 600; }
@media (min-width: 640px) { .topbar p { font-size: 0.875rem; } }

.navbar { border-bottom: 1px solid var(--border); background: rgba(31, 51, 70, 0.92); backdrop-filter: blur(10px); }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }

.brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand__mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--gradient-brand); color: var(--brand-foreground); flex: none; }
.brand__mark--soft { background: rgba(255, 255, 255, 0.1); color: var(--foreground); }
.brand__name { font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.125rem; letter-spacing: -0.02em; color: var(--brand); }
.brand__name--light { color: var(--foreground); }

.nav-desktop { display: none; align-items: center; gap: 4px; }
@media (min-width: 1024px) { .nav-desktop { display: flex; } }
.nav-desktop > a:not(.btn) { padding: 8px 12px; border-radius: 999px; font-size: 0.9rem; font-weight: 500; opacity: 0.85; transition: background .2s, color .2s; }
.nav-desktop > a:not(.btn):hover { background: var(--brand-soft); color: var(--brand); opacity: 1; }
.nav-desktop .btn { margin-left: 8px; }

.nav-toggle { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: transparent; color: var(--brand); cursor: pointer; }
@media (min-width: 1024px) { .nav-toggle { display: none; } }
.nav-toggle .nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

.nav-mobile { border-top: 1px solid var(--border); background: var(--background); padding: 8px 16px 20px; }
@media (min-width: 1024px) { .nav-mobile { display: none !important; } }
.nav-mobile a { display: flex; align-items: center; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--border); font-weight: 500; }

/* Slots de imagem --------------------------------------------------------- */
.image-slot {
  position: relative; width: 100%; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--muted);
}
.image-slot img { width: 100%; height: 100%; object-fit: cover; }
.image-slot--bare { border: 0; background: transparent; box-shadow: none; }
.image-slot--flush { border-radius: 0; border: 0; border-bottom: 1px solid var(--border); }
.image-slot--xl { border-radius: 16px; }
.shadow-lift { box-shadow: var(--shadow-lift); }
.image-slot__ph {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; padding: 16px; text-align: center;
  color: var(--muted-foreground);
}
.image-slot__ph svg { width: 24px; height: 24px; }
.image-slot__label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.image-slot__name { font-size: 10px; opacity: 0.7; }

/* Hero -------------------------------------------------------------------- */
.benefits { margin-top: 32px; display: grid; gap: 12px; }
.benefits li { display: flex; align-items: flex-start; gap: 12px; }
.benefits__dot { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; background: var(--brand-soft); flex: none; margin-top: 2px; }
.benefits__dot .icon { width: 14px; height: 14px; color: var(--brand); }

/* Por que acessar (seção clara) ------------------------------------------- */
.section--light .h2--brand { color: #12704f; }
.section--light .section-icon { border-color: rgba(18, 112, 79, 0.35); background: rgba(18, 112, 79, 0.08); }
.section--light .section-icon span { background: #12704f; }
.why-list { margin-top: 32px; display: grid; gap: 16px; }
.card-light {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--light-card); border: 1px solid rgba(20, 41, 60, 0.08);
  border-radius: var(--radius-lg); padding: 20px; color: var(--light-fg);
  transition: transform .3s ease;
}
.card-light:hover { transform: translateY(-4px); }
.card-light p { margin: 0; }
.why-num { font-family: "Sora", sans-serif; font-size: 1.5rem; font-weight: 800; color: #12704f; }

/* Chips (áreas) ----------------------------------------------------------- */
.chips { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  border-radius: 999px; border: 1px solid rgba(82, 224, 164, 0.2);
  background: var(--card); color: var(--brand);
  padding: 8px 16px; font-size: 0.875rem; font-weight: 600;
  box-shadow: var(--shadow-soft); transition: background .2s, color .2s;
}
.chips li:hover { background: var(--brand); color: var(--brand-foreground); }

/* Carrossel de nichos ----------------------------------------------------- */
.carousel { position: relative; margin-top: 48px; }
.carousel__viewport { overflow: hidden; }
.carousel__track { display: flex; gap: 16px; transition: transform .5s cubic-bezier(.22,.8,.3,1); will-change: transform; }
.carousel__slide { flex: 0 0 100%; min-width: 0; }
@media (min-width: 640px) { .carousel__slide { flex-basis: calc(50% - 8px); } }
@media (min-width: 1024px) { .carousel__slide { flex-basis: calc(33.333% - 11px); } }
.niche-card { overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); transition: transform .3s ease; }
.niche-card:hover { transform: translateY(-4px); }
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 999px; border: 1px solid var(--border);
  background: var(--card); color: var(--foreground); cursor: pointer;
  box-shadow: var(--shadow-soft); transition: background .2s;
}
.carousel__btn:hover { background: var(--brand); color: var(--brand-foreground); }
.carousel__btn--prev { left: -6px; }
.carousel__btn--next { right: -6px; }
@media (min-width: 1024px) { .carousel__btn--prev { left: -22px; } .carousel__btn--next { right: -22px; } }

/* Diferenciais ------------------------------------------------------------ */
.feature-card {
  height: 100%; border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: var(--card); padding: 24px; box-shadow: var(--shadow-soft);
  transition: transform .3s ease, box-shadow .3s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.feature-card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--gradient-brand); color: var(--brand-foreground); }
.feature-card__icon .icon { width: 24px; height: 24px; }
.feature-card p { margin: 8px 0 0; }

/* Plataforma por dentro --------------------------------------------------- */
.mockup { border-radius: 26px; background: var(--gradient-brand); padding: 12px; box-shadow: var(--shadow-lift); }
@media (min-width: 640px) { .mockup { padding: 20px; } }
.mockup__inner { border-radius: 18px; background: var(--card); padding: 10px; }
.mockup__dots { display: flex; gap: 6px; padding: 0 4px 8px; }
.mockup__dots span { width: 10px; height: 10px; border-radius: 999px; background: var(--border); }
.video-embed { position: relative; width: 100%; border-radius: 16px; overflow: hidden; background: var(--muted); }
.video-embed--16-10 { aspect-ratio: 16 / 10; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Histórias de sucesso ---------------------------------------------------- */
.stories { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 16px; scroll-snap-type: x mandatory; }
.stories__item { min-width: 70%; scroll-snap-align: center; }
@media (min-width: 640px) {
  .stories { display: grid; grid-template-columns: repeat(2, 1fr); overflow: visible; padding-bottom: 0; }
  .stories__item { min-width: 0; }
}
@media (min-width: 1024px) { .stories { grid-template-columns: repeat(4, 1fr); } }
.stories__card {
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: var(--card); padding: 8px; box-shadow: var(--shadow-soft);
  overflow: hidden; transition: transform .3s ease;
}
.stories__card:hover { transform: translateY(-4px); }

/* Blog -------------------------------------------------------------------- */
.post-card {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: var(--card); box-shadow: var(--shadow-soft);
  transition: transform .3s ease, box-shadow .3s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.post-card__cta { margin-top: 12px; font-size: 0.875rem; font-weight: 600; color: var(--brand); }
.post-card__cta:hover { text-decoration: underline; text-underline-offset: 4px; }
.post-card__date { margin: auto 0 0; padding-top: 24px; font-size: 0.75rem; color: var(--muted-foreground); }

/* FAQ --------------------------------------------------------------------- */
.accordion { display: grid; gap: 12px; }
.accordion__item {
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: var(--card); padding: 4px 20px; box-shadow: var(--shadow-soft);
}
.accordion__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  list-style: none; cursor: pointer; padding: 16px 0; font-weight: 600;
}
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__chev { transition: transform .25s ease; color: var(--brand); }
.accordion__item[open] .accordion__chev { transform: rotate(45deg); }
.accordion__content { padding: 0 0 18px; font-size: 0.9rem; color: var(--muted-foreground); }

/* Footer ------------------------------------------------------------------ */
.site-footer { background: #16293b; padding: 56px 0 0; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-note { margin-top: 16px; max-width: 24rem; font-size: 0.875rem; opacity: 0.75; }
.footer-title { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.7; }
.footer-links { margin-top: 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; font-size: 0.875rem; }
.footer-links a:hover { color: var(--brand); }
.footer-handle { margin-top: 16px; font-size: 0.875rem; }
.socials { margin-top: 16px; display: flex; gap: 12px; }
.socials a, .socials span, .socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.1); transition: background .2s; }
.socials a:hover { background: rgba(255,255,255,.2); }
.footer-bottom {
  margin-top: 48px; padding: 24px 0 32px; border-top: 1px solid rgba(255,255,255,.15);
  display: flex; flex-direction: column; gap: 12px; font-size: 0.75rem; opacity: 0.8;
}
.footer-bottom p { margin: 0; }
.footer-bottom div { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-bottom a:hover { text-decoration: underline; }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; } }

/* WhatsApp flutuante ------------------------------------------------------ */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: grid; place-items: center; width: 56px; height: 56px;
  border-radius: 999px; background: var(--gradient-brand); color: var(--brand-foreground);
  box-shadow: var(--shadow-lift); transition: transform .3s ease;
}
.wa-float:hover { transform: scale(1.05); }
.wa-float .icon { width: 24px; height: 24px; }

/* Animação de entrada ------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease-out, transform .7s ease-out; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .carousel__track { transition: none; }
  html { scroll-behavior: auto; }
}

.brand__logo{height:56px;width:auto;display:block}
@media (min-width:640px){.brand__logo{height:64px}}
.site-footer .brand__logo{height:64px}
@media (min-width:640px){.site-footer .brand__logo{height:80px}}

/* ===== Acesso Flix ===== */
.flix {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  background: #071033;
  color: #fff;
}
.flix::before,
.flix::after {
  content: "";
  position: absolute;
  border-radius: 9999px;
  filter: blur(110px);
  pointer-events: none;
}
.flix::before {
  left: -8rem;
  top: 33%;
  width: 24rem;
  height: 24rem;
  background: rgba(34, 211, 95, 0.22);
}
.flix::after {
  right: -6rem;
  bottom: 0;
  width: 20rem;
  height: 20rem;
  background: rgba(37, 99, 235, 0.25);
}
.flix__grid {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .flix__grid { grid-template-columns: 1fr 1fr; }
}
.flix__badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 0.4rem;
  background: var(--grad-brand, linear-gradient(135deg, #22d35f, #16a34a));
  color: #04140a;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 10px 30px -10px rgba(34, 211, 95, 0.5);
}
.flix__title {
  margin-top: 1.25rem;
  font-size: clamp(2.25rem, 5vw, 3.2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.flix__title span {
  background: linear-gradient(90deg, #22d35f, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.flix__subtitle { margin-top: 0.5rem; font-size: 1.25rem; font-weight: 700; }
.flix__text { margin-top: 1rem; max-width: 36rem; color: rgba(255,255,255,0.7); line-height: 1.7; }
.flix__list { margin-top: 1.5rem; display: grid; gap: 0.75rem; list-style: none; padding: 0; }
.flix__list li { display: flex; align-items: center; gap: 0.75rem; font-weight: 700; color: #22d35f; }
.flix__list .icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.flix__price {
  margin-top: 2rem;
  font-size: clamp(2.75rem, 6vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #22d35f;
}
.flix__price span { font-size: 1.5rem; color: rgba(255,255,255,0.8); }
.flix .btn { margin-top: 1.5rem; }
.flix__media {
  position: relative;
  max-width: 32rem;
  margin: 0 auto;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 25px 60px -20px rgba(0,0,0,0.6);
}
.flix__media img {
  width: 100%;
  display: block;
}
.flix__tag {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(34, 211, 95, 0.5);
  background: rgba(7, 16, 51, 0.9);
  color: #22d35f;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
