/* FlashAprova — site institucional (identidade DEC-014) */
:root {
  --navy: #0B2D6B;
  --navy-2: #0E3A87;
  --navy-deep: #081F4D;
  --blue: #2E86EB;
  --blue-soft: #E8F2FD;
  --yellow: #FFC107;
  --yellow-2: #FFB300;
  --green: #4CAF50;
  --gray: #E5E7EB;
  --bg: #F7F8FB;
  --ink: #0F1B33;
  --muted: #55627A;
  --white: #FFFFFF;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(11, 45, 107, .10);
  --shadow-lg: 0 24px 60px rgba(8, 31, 77, .28);
  --font-title: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.15; margin: 0 0 .5em; color: var(--navy); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.container-narrow { width: min(780px, 100% - 32px); }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-title); font-weight: 700; text-decoration: none;
  border-radius: 999px; padding: .8rem 1.5rem; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer; text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.btn-sm { padding: .5rem 1.1rem; font-size: .9rem; }
.btn-lg { padding: 1rem 1.8rem; font-size: 1.02rem; }
.btn-yellow { background: var(--yellow); color: var(--navy); box-shadow: 0 8px 20px rgba(255, 193, 7, .35); }
.btn-yellow:hover { background: var(--yellow-2); }
.btn-ghost { color: var(--white); border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }

/* Topo */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 45, 107, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand-mark { width: 46px; height: 38px; }
.brand-name { font-family: var(--font-title); font-weight: 800; font-size: 1.35rem; color: var(--white); letter-spacing: -.01em; }
.brand-name span { color: var(--yellow); }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { color: rgba(255,255,255,.85); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--yellow); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 85% 15%, rgba(46,134,235,.45), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(46,134,235,.25), transparent 40%),
    linear-gradient(160deg, var(--navy-2), var(--navy) 55%, var(--navy-deep));
  color: var(--white);
  padding: 72px 0 96px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block; font-weight: 600; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--yellow); background: rgba(255,193,7,.12); border: 1px solid rgba(255,193,7,.35);
  padding: .35rem .85rem; border-radius: 999px; margin-bottom: 1.2rem;
}
.hero h1 { color: var(--white); font-size: clamp(2.4rem, 5.6vw, 4rem); font-weight: 800; letter-spacing: -.02em; }
.hl { color: var(--yellow); position: relative; white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; left: 2%; right: 0; bottom: -.12em; height: .14em;
  background: var(--yellow); border-radius: 999px; transform: rotate(-1.5deg); opacity: .9;
}
.lead { font-size: 1.12rem; color: rgba(255,255,255,.86); max-width: 560px; }
.lead strong { color: var(--white); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.8rem 0 1.6rem; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-points li { display: flex; align-items: center; gap: .45rem; font-size: .95rem; color: rgba(255,255,255,.9); }
.hero-points li::before {
  content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green); color: var(--white); font-size: .72rem; font-weight: 700;
}

/* Flashcard demo */
.hero-demo { position: relative; display: grid; justify-items: center; }
.demo-stack { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.demo-back { position: absolute; width: min(360px, 86%); aspect-ratio: 4 / 3.3; border-radius: 22px; }
.demo-back-1 { background: var(--blue); transform: rotate(-12deg) translate(-26px, 6px); }
.demo-back-2 { background: var(--yellow); transform: rotate(-5deg) translate(-12px, 2px); }
.flashcard {
  position: relative; width: min(360px, 86%); aspect-ratio: 4 / 3.3; border: 0; padding: 0; background: none;
  perspective: 1200px; cursor: pointer; font: inherit; text-align: left; color: var(--ink);
  transform: rotate(2deg);
}
.flashcard-inner {
  position: absolute; inset: 0; transition: transform .6s cubic-bezier(.2,.7,.2,1); transform-style: preserve-3d;
}
.flashcard[aria-pressed="true"] .flashcard-inner { transform: rotateY(180deg); }
.face {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: .8rem;
  padding: 24px; border-radius: 22px; background: var(--white); box-shadow: var(--shadow-lg);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.face-back { transform: rotateY(180deg); }
.tag { align-self: flex-start; font-size: .75rem; font-weight: 600; color: var(--blue); background: var(--blue-soft); padding: .25rem .65rem; border-radius: 999px; }
.tag-green { color: #2E7D32; background: #E8F5E9; }
.q { font-family: var(--font-title); font-weight: 600; font-size: 1.12rem; line-height: 1.35; color: var(--navy); }
.hint { margin-top: auto; font-size: .85rem; color: var(--muted); }
.a { font-family: var(--font-title); font-weight: 800; font-size: 1.5rem; color: var(--navy); }
.a-sub { font-size: .9rem; color: var(--muted); }
.rate { margin-top: auto; display: flex; gap: 8px; }
.rate span { flex: 1; text-align: center; font-size: .78rem; font-weight: 600; padding: .45rem 0; border-radius: 10px; background: var(--gray); color: var(--muted); }
.rate .ok { background: var(--green); color: var(--white); }
.demo-caption { position: relative; margin: 48px 0 0; font-size: .85rem; color: rgba(255,255,255,.7); }

/* Números */
.stats { margin-top: -44px; position: relative; z-index: 2; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.stats-grid div { padding: 22px 20px; display: grid; gap: 2px; border-right: 1px solid var(--gray); }
.stats-grid div:last-child { border-right: 0; }
.stats-grid strong { font-family: var(--font-title); font-weight: 800; font-size: 1.45rem; color: var(--navy); }
.stats-grid span { font-size: .9rem; color: var(--muted); }

/* Seções */
.section { padding: 96px 0; }
.section-alt { background: var(--bg); }
.kicker { font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: .6rem; }
.kicker-yellow { color: var(--yellow); }
.section-lead { font-size: 1.08rem; color: var(--muted); max-width: 680px; margin-bottom: 2.6rem; }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: var(--white); border: 1px solid var(--gray); border-radius: var(--radius); padding: 28px; transition: box-shadow .2s, transform .2s; }
.feature:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.feature p { color: var(--muted); margin: 0; }
.feature-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px; }
.feature-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fi-blue { background: var(--blue-soft); color: var(--blue); }
.fi-yellow { background: #FFF6DA; color: #B98500; }
.fi-green { background: #E8F5E9; color: #2E7D32; }

/* Áreas */
.areas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.area {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--gray); color: var(--ink); text-decoration: none;
}
.area-live { border: 2px solid var(--navy); box-shadow: var(--shadow); transition: transform .2s; }
.area-live:hover { transform: translateY(-3px); }
.area:not(.area-live) { opacity: .72; }
.area-icon { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: color-mix(in srgb, var(--area) 14%, white); color: var(--area); }
.area-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.area-body { display: grid; gap: 2px; }
.area-body strong { font-family: var(--font-title); font-size: 1.1rem; color: var(--navy); }
.area-body > span:last-child { font-size: .9rem; color: var(--muted); }
.area-status { justify-self: start; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #2E7D32; background: #E8F5E9; padding: .15rem .55rem; border-radius: 999px; }
.area-status.soon { color: var(--muted); background: var(--gray); }
.area-arrow { margin-left: auto; font-size: 1.4rem; color: var(--navy); }

/* Passos */
.steps { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.steps li { position: relative; padding: 28px; border-radius: var(--radius); background: var(--bg); }
.steps p { color: var(--muted); margin: 0; }
.step-n {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; margin-bottom: 16px;
  background: var(--navy); color: var(--yellow); font-family: var(--font-title); font-weight: 800; font-size: 1.2rem;
}

/* Diferenciais */
.section-navy { background: linear-gradient(160deg, var(--navy), var(--navy-deep)); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; margin-top: 2.4rem; }
.benefit { display: flex; gap: 14px; }
.benefit p { color: rgba(255,255,255,.78); margin: 0; font-size: .95rem; }
.check { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--green); font-weight: 800; }

/* FAQ */
.faq { display: grid; gap: 12px; margin-top: 1.8rem; }
.faq details { border: 1px solid var(--gray); border-radius: 14px; background: var(--white); }
.faq details[open] { border-color: var(--blue); box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 54px 18px 20px; position: relative;
  font-family: var(--font-title); font-weight: 600; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%;
  background: var(--blue-soft); color: var(--blue); font-weight: 700; transition: transform .2s;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* CTA final */
.cta-final { background: var(--bg); padding: 0 0 96px; }
.cta-inner {
  text-align: center; padding: 56px 24px; border-radius: 28px; color: var(--white);
  background: radial-gradient(circle at 80% 0%, rgba(46,134,235,.5), transparent 50%), linear-gradient(150deg, var(--navy-2), var(--navy-deep));
  box-shadow: var(--shadow-lg);
}
.cta-mark { width: 96px; height: 80px; margin: 0 auto 18px; }
.cta-inner h2 { color: var(--white); }
.cta-inner p { color: rgba(255,255,255,.82); margin-bottom: 1.6rem; }

/* Rodapé */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.75); padding: 48px 0 24px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand p { margin: .6rem 0 0; font-size: .95rem; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: rgba(255,255,255,.85); text-decoration: none; }
.footer-links a:hover { color: var(--yellow); }
.footer-copy { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }

/* Responsivo */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 48px 0 88px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid div:nth-child(2) { border-right: 0; }
  .stats-grid div:nth-child(-n+2) { border-bottom: 1px solid var(--gray); }
  .cards-3, .steps, .benefits { grid-template-columns: 1fr; }
  .areas { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); padding: 8px 16px 20px; border-bottom: 1px solid rgba(255,255,255,.1);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav .btn { margin-top: 14px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 520px) {
  .section { padding: 72px 0; }
  .hero-ctas .btn { width: 100%; }
  .stats-grid strong { font-size: 1.2rem; }
  .stats-grid div { padding: 16px 14px; }
  .face { padding: 18px; }
  .q { font-size: 1rem; }
  .a { font-size: 1.25rem; }
  .a-sub { font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
