/* Fina Educação — design system (paleta navy + dourado, derivada do banner). */
:root {
  --navy-dark: #0a1b3d;
  --navy: #122a52;
  --blue: #1d4e89;
  --blue-soft: #2e6ba8;
  --steel: #5b86b5;
  --light: #d7e3f4;
  --pale: #eef3fb;
  --gold: #e8b53d;
  --gold-dark: #c8941a;
  --white: #fff;

  --ink: #0e1b2e;
  --muted: #5a6b82;
  --line: #e3e9f2;
  --bg: #ffffff;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(10, 27, 61, 0.25);
  --shadow-lg: 0 24px 60px -20px rgba(10, 27, 61, 0.45);
  --container: 1140px;
  --font: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --transition: 0.2s ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3 { line-height: 1.2; color: var(--navy-dark); margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.section-title { text-align: center; }
.section-lead { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 2rem; font-size: 1.05rem; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy-dark);
  padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 700; z-index: 200;
}
.skip-link:focus { left: 0; }

/* Ícones */
.icon { display: inline-flex; width: 1.15em; height: 1.15em; vertical-align: -0.18em; }
.icon svg { width: 100%; height: 100%; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em; justify-content: center;
  font-weight: 700; border-radius: 999px; padding: 0.7em 1.4em; cursor: pointer;
  border: 2px solid transparent; transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap; line-height: 1;
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-gold { background: var(--gold); color: var(--navy-dark); box-shadow: 0 8px 20px -8px rgba(232, 181, 61, 0.8); }
.btn-gold:hover { background: var(--gold-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-ghost { background: rgba(255, 255, 255, 0.1); color: var(--white); border-color: rgba(255, 255, 255, 0.5); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.2); }
.btn-sm { padding: 0.5em 1em; font-size: 0.9rem; }
.btn-lg { padding: 0.95em 1.8em; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 27, 61, 0.97); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--white); }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--navy-dark);
  font-weight: 900; font-size: 1.25rem; box-shadow: var(--shadow);
}
.brand-text { font-size: 1.15rem; color: var(--white); }
.brand-text strong { color: var(--gold); }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { color: var(--light); font-weight: 600; font-size: 0.98rem; }
.nav a:hover { color: var(--white); }
.nav a.btn { color: var(--navy-dark); }
.nav a.btn:hover { color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--white); border-radius: 3px; transition: var(--transition); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(46, 107, 168, 0.35), transparent 60%),
    linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 60%, #0c2347 100%);
  color: var(--white); padding: clamp(2.5rem, 6vw, 5rem) 0;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2.5rem; align-items: center; }
.hero-copy h1 { color: var(--white); }
.hero-copy h1 .hl { color: var(--gold); }
.hero-kicker {
  display: inline-block; color: var(--gold); font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; font-size: 0.8rem; margin-bottom: 0.8rem;
}
.hero-lead { color: var(--light); font-size: 1.15rem; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.6rem 0 1.4rem; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 1.2rem; padding: 0; margin: 0; }
.hero-badges li { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--light); font-size: 0.92rem; font-weight: 600; }
.hero-badges .icon { color: var(--gold); }
.hero-art img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* ---------- Benefits ---------- */
.benefits { padding: clamp(2rem, 4vw, 3rem) 0; background: var(--pale); }
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.benefit { display: flex; gap: 0.8rem; background: var(--white); padding: 1.2rem; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.benefit h3 { font-size: 1.02rem; margin: 0 0 0.25rem; }
.benefit p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.benefit-icon { color: var(--gold-dark); width: 2rem; height: 2rem; flex: none; }

/* ---------- Seções genéricas ---------- */
.featured { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.page-head { padding: clamp(2rem, 4vw, 3rem) 0 0.5rem; background: var(--pale); }
.page-head h1 { margin-bottom: 0.4rem; }

/* ---------- Grade de ebooks ---------- */
.ebook-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-bottom: 2rem; }
.ebook-card {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: transform var(--transition), box-shadow var(--transition);
}
.ebook-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ebook-card-cover { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--navy); }
.ebook-card-tag {
  position: absolute; top: 12px; left: 12px; background: var(--gold); color: var(--navy-dark);
  font-size: 0.72rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em;
}
.ebook-card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.ebook-card-title { font-size: 1.18rem; margin: 0 0 0.3rem; }
.ebook-card-title a { color: var(--navy-dark); }
.ebook-card-sub { color: var(--muted); font-size: 0.95rem; margin: 0 0 1rem; flex: 1; }
.ebook-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; }
.price { font-weight: 800; font-size: 1.25rem; color: var(--navy-dark); }

/* Capa estilizada (fallback sem imagem) */
.cover-fallback, .cover-img { width: 100%; height: 100%; }
.cover-img { object-fit: cover; }
.cover-fallback {
  display: flex; flex-direction: column; justify-content: center; padding: 1.4rem;
  background:
    radial-gradient(120% 120% at 110% -10%, rgba(46, 107, 168, 0.5), transparent 55%),
    linear-gradient(150deg, var(--navy-dark), var(--blue));
  color: var(--white); text-align: left;
}
.cover-kicker { color: var(--gold); font-weight: 800; letter-spacing: 0.22em; font-size: 0.72rem; }
.cover-title { font-size: clamp(1.2rem, 2.2vw, 1.7rem); font-weight: 900; line-height: 1.12; margin-top: 0.4rem; color: var(--white); }
.cover-rule { width: 46px; height: 4px; background: var(--gold); border-radius: 4px; margin: 0.7rem 0; }
.cover-sub { color: var(--light); font-size: 0.92rem; }
.cover-brand { margin-top: auto; padding-top: 0.8rem; font-weight: 700; color: var(--gold); font-size: 0.85rem; }

/* ---------- Steps ---------- */
.steps { padding: clamp(2.5rem, 5vw, 4rem) 0; background: var(--navy-dark); color: var(--white); }
.steps .section-title { color: var(--white); margin-bottom: 2rem; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius); padding: 1.6rem; }
.step-num { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: var(--navy-dark); font-weight: 900; margin-bottom: 0.8rem; }
.step h3 { color: var(--white); }
.step p { color: var(--light); margin: 0; }

/* ---------- Categorias ---------- */
.categories { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.cat-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; padding: 0; margin: 0; }
.cat-list a {
  display: inline-block; background: var(--pale); color: var(--navy); font-weight: 700;
  padding: 0.7em 1.3em; border-radius: 999px; border: 1px solid var(--line); transition: var(--transition);
}
.cat-list a:hover { background: var(--navy); color: var(--white); }

/* ---------- Prova social ---------- */
.proof { padding: clamp(2.5rem, 5vw, 4rem) 0; background: linear-gradient(160deg, var(--blue), var(--navy)); color: var(--white); }
.proof-inner { text-align: center; max-width: 760px; margin: 0 auto; }
.proof-big { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 800; color: var(--white); }
.proof-sub { color: var(--light); margin: 0; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(2.5rem, 5vw, 4rem) 0; background: var(--pale); }
.faq-list { max-width: 760px; margin: 1.5rem auto 0; display: flex; flex-direction: column; gap: 0.8rem; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 1.2rem; }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 1.1rem 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--navy-dark); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.6rem; color: var(--gold-dark); font-weight: 400; line-height: 1; }
.faq-item[open] summary::after { content: '–'; }
.faq-answer { padding-bottom: 1.1rem; color: var(--muted); }
.faq-answer p { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { padding: clamp(2.5rem, 5vw, 3.5rem) 0; background: linear-gradient(120deg, var(--gold), var(--gold-dark)); }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta-band h2 { color: var(--navy-dark); margin: 0 0 0.3rem; }
.cta-band p { color: #3a2c05; margin: 0; font-weight: 600; }
.cta-band .btn-gold { background: var(--navy-dark); color: var(--white); box-shadow: var(--shadow); }
.cta-band .btn-gold:hover { background: var(--navy); }

/* ---------- Breadcrumb ---------- */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0 0 1rem; font-size: 0.88rem; color: var(--muted); }
.breadcrumb li + li::before { content: '›'; margin-right: 0.4rem; color: var(--steel); }
.breadcrumb a { color: var(--blue); }
.breadcrumb [aria-current='page'] { color: var(--muted); }

/* ---------- Página de produto ---------- */
.product { padding: clamp(1.5rem, 3vw, 2.5rem) 0; background: var(--pale); }
.product-top { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 2.5rem; align-items: start; }
.product-cover { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 3 / 4; }
.tag { display: inline-block; background: var(--navy); color: var(--white); font-size: 0.74rem; font-weight: 800; padding: 5px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.05em; }
.product-info h1 { margin: 0.8rem 0 0.4rem; }
.product-sub { font-size: 1.2rem; color: var(--blue); font-weight: 600; margin: 0 0 0.8rem; }
.product-headline { font-size: 1.05rem; color: var(--muted); }
.buybox { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); margin-top: 1.2rem; }
.buybox-price { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.price-big { font-size: 2.2rem; font-weight: 900; color: var(--navy-dark); }
.price-note { color: var(--muted); font-size: 0.9rem; }
.buybox-meta { list-style: none; padding: 0; margin: 1.1rem 0 0; display: grid; gap: 0.55rem; }
.buybox-meta li { display: flex; align-items: center; gap: 0.55rem; color: var(--ink); font-size: 0.96rem; }
.buybox-meta .icon { color: var(--gold-dark); flex: none; }

.product-detail { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; align-items: start; }
.product-main h2 { margin-top: 2rem; }
.product-main h2:first-child { margin-top: 0; }
.learn-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.7rem; }
.learn-list li { display: flex; gap: 0.6rem; align-items: flex-start; }
.learn-list .icon { color: var(--gold-dark); flex: none; margin-top: 0.18em; }
.contents-list { margin: 0 0 1rem; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
.contents-list li { margin-bottom: 0.4rem; font-weight: 600; break-inside: avoid; }

.product-aside { position: sticky; top: 86px; }
.aside-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 0.3rem; text-align: center; }
.aside-card .price-big { display: block; }
.aside-card .btn { margin-top: 0.8rem; }
.aside-note { color: var(--muted); font-size: 0.85rem; margin: 0.8rem 0 0; display: flex; align-items: center; justify-content: center; gap: 0.4rem; }
.aside-note .icon { color: var(--gold-dark); }

/* ---------- Contato ---------- */
.contact { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.contact-card h2 { font-size: 1.3rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: var(--light); padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer-brand p { max-width: 360px; font-size: 0.95rem; }
.footer-slogan { color: var(--gold); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.8rem; }
.footer-col h3 { color: var(--white); font-size: 1rem; }
.footer-col a { display: block; color: var(--light); margin-bottom: 0.5rem; font-size: 0.95rem; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; font-size: 0.85rem; color: var(--steel); }

/* ---------- Responsivo ---------- */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .ebook-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .product-top { grid-template-columns: 1fr; }
  .product-cover { max-width: 320px; margin: 0 auto; aspect-ratio: 3 / 4; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .product-aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--navy-dark); padding: 0.5rem 20px 1.2rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease; align-items: stretch;
  }
  .nav.open { max-height: 380px; }
  .nav a { padding: 0.85rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); width: 100%; }
  .nav a.btn { margin-top: 0.8rem; justify-content: center; }
  .site-header.menu-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .site-header.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@media (max-width: 540px) {
  body { font-size: 16px; }
  .benefits-grid, .ebook-grid, .contact-grid { grid-template-columns: 1fr; }
  .contents-list { columns: 1; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  .btn:hover, .ebook-card:hover { transform: none; }
}
