/* Portal EasyCurso — estilos da loja (complementa ds.css).
   Estilos inline do design foram mantidos; hovers (style-hover) viraram classes,
   e os pontos que mudam por breakpoint ficam aqui. */

body { margin: 0; background: var(--color-neutral-100); color: var(--color-text); font-family: var(--font-body); text-wrap: pretty; }
a { color: var(--color-accent-700); }
a:hover { color: var(--color-accent-900); }
.ec-track::-webkit-scrollbar { display: none; }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
[id] { scroll-margin-top: 120px; }
[hidden] { display: none !important; }

@keyframes ec-dd { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes ec-drawer { from { transform: translateX(100%); } to { transform: none; } }
@keyframes ec-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes ec-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes ec-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-accent) 55%, transparent); } 50% { box-shadow: 0 0 0 10px transparent; } }
@keyframes ec-h { from { transform: translateX(-260px); } to { transform: translateX(100vw); } }
@keyframes ec-v { from { transform: translateY(-220px); } to { transform: translateY(1000px); } }
@keyframes ec-node { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes ec-dash { to { stroke-dashoffset: -200; } }
@media (prefers-reduced-motion: reduce) {
  .ec-fx * { animation: none !important; }
  .ec-fx { animation: none !important; }
  .marquee, .wa, .btn-buy, .toast { animation: none !important; }
}

/* botão com aparência de link (usado pelo macro comprar com reset=True) */
.ec-reset { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; text-align: inherit; text-decoration: none; }

/* alternância desktop / mobile em 1024px */
.d-desk { display: none; }
.d-mob { display: inline-flex; }
@media (min-width: 1024px) {
  .d-desk { display: flex; }
  .d-mob { display: none; }
}

/* ---------- header flutuante ---------- */
.site-header { position: fixed; top: 15px; left: clamp(12px, 2.5vw, 32px); right: clamp(12px, 2.5vw, 32px); z-index: 29; margin-top: 40px; transition: margin-top .5s ease-in-out; }
.site-header.is-scrolled { margin-top: 0; }
.hdr-box { background: var(--color-bg); transition: box-shadow .2s; padding: 13px 24px; min-height: 68px; box-sizing: border-box; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; box-shadow: var(--shadow-sm); }
.site-header.is-scrolled .hdr-box { box-shadow: var(--shadow-md); }
.site-header.is-open .hdr-box { box-shadow: var(--shadow-lg); }
.logo-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--color-text); justify-self: start; }
.hdr-nav { align-items: center; gap: 32px; justify-content: center; }
.nav-btn { font-family: var(--font-body); font-size: 14px; font-weight: 600; background: transparent; border: 0; padding: 6px 0; cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; color: var(--color-text); }
.hv-acc:hover, .hv-acc.is-open, .hv-acc.is-active { color: var(--color-accent-700); }
.hdr-right { display: flex; align-items: center; gap: 16px; justify-content: flex-end; }
.login-wrap { position: relative; }
.hdr-login { font-family: var(--font-body); font-size: 14px; font-weight: 700; color: var(--color-accent-700); padding: 10px 14px; }
.btn-buy:hover { filter: brightness(0.92); }
.hdr-price { white-space: nowrap; }
.dd-login { animation: ec-dd .2s ease-out; position: absolute; right: 0; top: calc(100% + 21px); min-width: 240px; background: var(--color-bg); box-shadow: var(--shadow-lg); padding: 8px 0; display: grid; }
.dd-item { display: flex; align-items: center; height: 48px; padding: 0 24px; font-size: 14px; font-weight: 700; color: var(--color-text); text-decoration: none; }
.dd-item:hover { background: var(--color-accent-100); }
.dd-mega { animation: ec-dd .2s ease-out; position: absolute; left: 0; right: 0; top: calc(100% + 8px); display: flex; flex-direction: column; gap: 8px; }
.dd-mega > .blueprint { background: var(--color-bg); }
.mega-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.mega-title { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent-700); margin-bottom: 16px; }
.mega-links { display: flex; flex-direction: column; gap: 10px; }
.mega-link { font-size: 15px; line-height: 1.3; color: var(--color-text); text-decoration: none; display: inline-flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.mega-link:hover { color: var(--color-accent-700); }
.dd-sol { animation: ec-dd .2s ease-out; position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--color-bg); padding: 32px 56px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.dd-aud { display: block; text-decoration: none; padding: 12px; margin: -12px; color: var(--color-text); }
.dd-aud:hover { background: var(--color-accent-100); }
.dd-aud-t { display: block; font-family: var(--font-heading); font-size: 20px; font-weight: 600; line-height: 1.1; text-transform: uppercase; color: var(--color-accent-700); }
.dd-aud-d { display: block; font-size: 13px; line-height: 1.35; margin-top: 8px; }

.ec-overlay { position: fixed; inset: 0; z-index: 28; background: color-mix(in srgb, var(--color-neutral-900) 20%, transparent); }

/* ---------- drawer mobile ---------- */
.drawer-ov { position: fixed; inset: 0; z-index: 30; background: color-mix(in srgb, var(--color-neutral-900) 20%, transparent); }
.drawer { animation: ec-drawer .25s ease-out; position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 100%); z-index: 31; background: var(--color-bg); border-left: 1px solid var(--color-divider); overflow-y: auto; padding: 16px 16px 32px; box-sizing: border-box; }
.drawer-sec { border-bottom: 1px solid var(--color-divider); }
.drawer-sec > summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; min-height: 52px; font-family: var(--font-heading); font-size: 20px; text-transform: uppercase; }
.drawer-plus { color: var(--color-accent); font-size: 22px; }
.drawer-links { display: grid; gap: 4px; padding: 0 0 16px; }
.drawer-link { display: flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--color-text); text-decoration: none; gap: 8px; }
.drawer-top { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--color-divider); font-family: var(--font-heading); font-size: 20px; text-transform: uppercase; color: var(--color-text); text-decoration: none; }

/* ---------- rodapé ---------- */
.site-footer { background: var(--color-accent-900); color: var(--color-bg); margin-top: 0; }
.ft-grid { max-width: 1200px; margin: 0 auto; padding: 48px clamp(20px, 5vw, 72px) 32px; display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.8fr)) minmax(0, 1.4fr); gap: 32px; }
.ft-col { display: grid; gap: 8px; align-content: start; font-size: 14px; }
.ft-h { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--color-accent-300); margin-bottom: 4px; }
.ft-link { text-decoration: none; color: var(--color-neutral-200); }
.ft-link:hover { color: var(--color-bg); }
.ft-bottom { max-width: 1200px; margin: 0 auto; padding: 16px clamp(20px, 5vw, 72px) 32px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--color-neutral-400); }
.avisar-box { display: grid; gap: 12px; align-content: start; }
.avisar-form { display: flex; gap: 8px; }
.avisar-input { min-height: 40px; flex: 1 1 auto; min-width: 0; background: rgba(255,255,255,0.06); color: var(--color-bg); border-color: rgba(255,255,255,0.25); }
.avisar-btn { font-family: var(--font-body); min-height: 40px; }
.avisar-ok { margin: 0; font-size: 13px; color: var(--color-accent-300); }

/* ---------- barra de compra, voltar ao topo, whatsapp, toast ---------- */
.buybar { position: fixed; left: 50%; bottom: 16px; z-index: 25; width: min(720px, calc(100% - 24px)); transform: translate(-50%, calc(100% + 40px)); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.buybar.is-visible { transform: translate(-50%, 0); }
.buybar-box { background: var(--color-accent-900); color: var(--color-bg); border-color: var(--color-accent-900); box-shadow: var(--shadow-lg); padding: 10px 10px 10px 18px; display: flex; align-items: center; gap: 16px; }
.buybar-cover { width: 32px; height: 42px; flex: none; background: linear-gradient(160deg, var(--color-accent-500), var(--color-accent-800)); box-shadow: inset 4px 0 0 rgba(0,0,0,0.2); }
.buybar-title { display: block; font-family: var(--font-heading); font-size: 17px; line-height: 1.1; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar-price { font-family: var(--font-heading); font-size: 24px; white-space: nowrap; }
.totop { position: fixed; right: 20px; bottom: 96px; z-index: 25; width: 44px; height: 44px; background: var(--color-bg); box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transition: opacity .3s; }
.totop.is-visible { opacity: 1; pointer-events: auto; }
.wa { background: var(--color-accent); }
.wa:hover { background: var(--color-accent-600); }
.toast { position: fixed; top: 100px; left: 50%; transform: translateX(-50%); z-index: 45; animation: ec-dd .25s ease-out; background: var(--color-accent-900); color: var(--color-bg); padding: 12px 18px; display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow-lg); font-size: 14px; max-width: calc(100% - 32px); box-sizing: border-box; }

/* ---------- home: hero ---------- */
.hero-arrow { position: absolute; top: 50%; z-index: 5; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3); background: rgba(13,13,13,0.7); color: var(--color-bg); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transform: translateY(-50%); }
.hero-arrow:hover { background: var(--color-accent); border-color: var(--color-accent); }
.hero-arrow-prev { left: -6px; }
.hero-arrow-next { right: -6px; }
.hero-card { position: absolute; left: 50%; top: 50%; width: 250px; aspect-ratio: 3 / 4; cursor: pointer; transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .45s, filter .45s; }
.hero-dot { width: 10px; height: 4px; border: 0; padding: 0; border-radius: 2px; cursor: pointer; background: rgba(255,255,255,0.3); transition: width .3s, background .3s; }
.hero-dot.is-active { width: 24px; background: var(--color-accent); }
.hero-cta { display: flex; align-items: center; justify-content: center; width: min(100%, 340px); margin: 0 auto; height: 52px; border: 0; border-radius: 4px; background: var(--color-accent); color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; text-decoration: none; }
.hero-cta:hover { filter: brightness(0.92); }
.hero-cover-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px); background-size: 18px 18px; }

/* ---------- home: marquee, capas, catálogo ---------- */
.marquee { display: flex; width: max-content; white-space: nowrap; padding: 14px 0; font-family: var(--font-heading); font-size: 22px; letter-spacing: 0.06em; text-transform: uppercase; animation: ec-marquee 40s linear infinite; }
.mq-item { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; }
.mq-item .mq-plus { opacity: 0.6; }
.seg-opt.tab-btn { font-family: var(--font-body); font-size: 13px; cursor: pointer; border: 0; background: transparent; color: var(--color-text); padding: 8px 16px; }
.seg .seg-opt.tab-btn.is-active, .seg .seg-opt.tab-btn.is-active:hover { background: var(--color-accent); color: var(--color-bg); }
.book-card { transition: transform .2s, box-shadow .2s; }
.book-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: clamp(16px, 2.5vw, 32px); }

/* ---------- home: oferta, autores, depoimentos, garantia/FAQ ---------- */
.offer-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 36px 40px; box-shadow: var(--shadow-lg); }
.offer-cd { display: flex; gap: 8px; align-items: center; }
.offer-side { display: grid; gap: 14px; justify-items: end; }
.authors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: clamp(20px, 2.5vw, 32px); }
.author-card { display: grid; grid-template-rows: auto 1fr; overflow: visible; background: var(--color-accent-900); border-color: var(--color-accent-900); color: var(--color-bg); box-shadow: var(--shadow-lg); }
.author-photo { aspect-ratio: 16 / 9; position: relative; background: var(--color-accent-800); }
.author-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.author-name { position: absolute; left: 20px; bottom: 16px; z-index: 1; font-family: var(--font-heading); font-size: clamp(32px, 4vw, 48px); line-height: 1; text-transform: uppercase; color: var(--color-bg); text-shadow: 0 1px 2px rgba(0,0,0,0.5); pointer-events: none; }
.author-link { font-size: 14px; font-weight: 700; color: var(--color-accent-300); text-decoration: none; }
.author-site { font-size: 14px; color: var(--color-neutral-300); text-decoration: none; }
.fx-host > div { pointer-events: none; }
.quote-card { flex: 0 0 min(340px, 85%); scroll-snap-align: start; margin: 0; padding: 28px; display: flex; flex-direction: column; gap: 18px; background: var(--color-bg); box-shadow: var(--shadow-md); box-sizing: border-box; }
.stars { display: flex; gap: 3px; color: var(--color-accent); }
.gf-grid { position: relative; max-width: 1200px; margin: 0 auto; padding: 88px clamp(20px, 5vw, 72px) 120px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(24px, 5vw, 96px); align-items: start; }
.faq-sum { cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; font-family: var(--font-heading); font-size: 20px; line-height: 1.2; color: var(--color-bg); }
.faq-plus { color: var(--color-accent-300); font-size: 24px; line-height: 1; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.14); }
.faq-item p { margin: 0 0 16px; font-size: 15px; line-height: 1.5; color: var(--color-neutral-300); max-width: 60ch; }

/* ---------- páginas internas (grids 2 colunas) ---------- */
.page-wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 72px); }
.g-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(24px, 5vw, 96px); align-items: start; }
.g-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: clamp(20px, 2.5vw, 32px); }

/* ---------- responsivo ---------- */
@media (max-width: 1023px) {
  .hdr-box { grid-template-columns: minmax(0, 1fr) auto !important; padding: 13px 16px !important; }
}
@media (max-width: 759px) {
  .offer-box { grid-template-columns: minmax(0, 1fr) !important; padding: 28px 24px !important; }
  .offer-side { justify-items: start; }
  .gf-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .g-split { grid-template-columns: minmax(0, 1fr) !important; }
  .ft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-grid > :first-child, .ft-grid > :last-child { grid-column: 1 / -1; }
  .dd-sol { grid-template-columns: minmax(0, 1fr); padding: 24px; }
}
@media (max-width: 559px) {
  .site-header { left: 10px; right: 10px; }
  .hdr-box { padding: 10px 12px !important; min-height: 56px; gap: 8px; }
  .hdr-right { gap: 8px; }
  .hdr-price { display: none; }
  .btn-buy { padding: 8px 12px !important; font-size: 14px !important; }
  .buybar-cover, .buybar-price { display: none; }
  .buybar-box { padding: 10px 10px 10px 14px; gap: 10px; }
  .wa { right: 14px !important; }
  .totop { right: 14px; }
  .hero-card { width: 200px; }
}

/* ---------- páginas internas: âncoras, FAQ clara, fatos, tabela de conteúdo ---------- */
section[id] { scroll-margin-top: 140px; }
.faq-light .faq-item { border-bottom: 1px solid var(--color-divider); }
.faq-light .faq-sum { color: var(--color-text); }
.faq-light .faq-plus { color: var(--color-accent-700); }
.faq-light .faq-item p { color: var(--color-neutral-800); }
.au-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border-top: 1px solid var(--color-divider); padding-top: 16px; margin-top: 8px; }
.row-link { display: block; text-decoration: none; color: inherit; transition: background .2s, box-shadow .2s; }
.row-link:hover { background: var(--color-accent-100); }
.toc td { border-color: var(--color-divider); }
@media (max-width: 559px) {
  .au-facts { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .toc colgroup { display: none; }
  .toc, .toc tbody, .toc tr, .toc td { display: block; width: 100%; box-sizing: border-box; }
  .toc tr { padding: 16px 20px; border-bottom: 1px solid var(--color-divider); }
  .toc tr:last-child { border-bottom: 0; }
  .toc td { padding: 0 !important; border: 0 !important; }
  .toc td + td { margin-top: 6px; }
}
