/* ==========================================================
   AS Academy — plataforma de cursos
   ========================================================== */
/* nas páginas internas o cabeçalho fixo fica com 76px */
body.ac-page { padding-top: 76px; }
.ac-bar { position: sticky; top: 76px; z-index: 30; background: rgba(12,10,10,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(227,181,160,.12); }
.ac-bar-in { max-width: 1240px; margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ac-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-title); letter-spacing: .2em; text-transform: uppercase; font-size: 13px; color: #fff; }
.ac-brand .ico { width: 20px; height: 20px; color: var(--accent); }
.ac-bar nav { display: flex; align-items: center; gap: 20px; font-size: 13px; }
.ac-bar nav a { color: #e6dfdc; }
.ac-bar nav a:hover { color: var(--accent); }
.ac-pill { padding: 7px 14px; border: 1px solid var(--accent); border-radius: 99px; color: #fff !important; }
.muted-link { color: var(--muted) !important; }
.ac-main { padding: 50px 0 90px; min-height: 70vh; }
.ac-wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.ac-narrow { max-width: 520px; margin: 0 auto; }
.ac-hero { text-align: center; margin-bottom: 40px; }
.ac-hero .xp-title { margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 30px; }
.chips a { padding: 9px 18px; border-radius: 99px; border: 1px solid rgba(255,255,255,.12); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.chips a.on, .chips a:hover { border-color: var(--accent); color: #fff; background: rgba(227,181,160,.08); }

/* Cards de curso */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.course-card { position: relative; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.012)); border: 1px solid rgba(255,255,255,.08); transition: transform .35s, border-color .35s; }
.course-card:hover { transform: translateY(-6px); border-color: rgba(227,181,160,.4); }
.course-cover { position: relative; aspect-ratio: 16/9; background: radial-gradient(circle at 70% 20%, rgba(227,181,160,.35), transparent 60%), #1a1615; overflow: hidden; }
.course-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.course-card:hover .course-cover img { transform: scale(1.05); }
.course-cover .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--accent); }
.course-cover .ph .ico { width: 54px; height: 54px; }
.tag-free, .tag-hot { position: absolute; top: 12px; padding: 5px 12px; border-radius: 99px; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; }
.tag-free { left: 12px; background: #9fe0b2; color: #0f2416; }
.tag-hot { right: 12px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #160f0d; }
.course-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.course-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.course-meta span { display: inline-flex; align-items: center; gap: 5px; }
.course-meta .ico { width: 14px; height: 14px; color: var(--accent); }
.course-body h3 { margin: 0 0 8px; font-family: var(--font-title); font-weight: 400; font-size: 20px; line-height: 1.25; color: #fff; }
.course-body p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.course-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-family: var(--font-title); font-size: 22px; color: #fff; }
.price small { display: block; font-size: 12px; color: var(--muted); text-decoration: line-through; }
.price.free { color: #9fe0b2; }
.stars-mini { color: var(--accent); font-size: 13px; letter-spacing: 1px; }
.progress-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.progress-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-radius: 6px; }
.empty-ac { text-align: center; color: var(--muted); padding: 50px 20px; }

/* Como funciona */
.steps-ac { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 60px; }
.steps-ac li { padding: 22px; border-radius: 18px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); }
.steps-ac b { display: block; font-family: var(--font-title); font-weight: 300; font-size: 34px; color: var(--accent); line-height: 1; margin-bottom: 10px; }
.steps-ac strong { display: block; color: #fff; font-weight: 500; margin-bottom: 4px; }
.steps-ac span { font-size: 13.5px; color: var(--muted); }

/* Página do curso */
.course-hero { position: relative; padding: 60px 0 50px; overflow: hidden; isolation: isolate; border-bottom: 1px solid rgba(255,255,255,.06); }
.course-hero .bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; filter: blur(30px) brightness(.35) saturate(1.2); transform: scale(1.2); }
.course-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,10,10,.4), var(--bg)); }
.course-hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.breadcrumb-ac { font-size: 12px; letter-spacing: .14em; color: var(--muted); margin-bottom: 16px; }
.breadcrumb-ac a { color: var(--accent); }
.course-hero h1 { margin: 0 0 14px; font-family: var(--font-title); font-weight: 300; font-size: clamp(30px, 4vw, 52px); line-height: 1.1; }
.course-hero .sub { color: #ddd5d2; font-size: 18px; margin: 0 0 22px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badges span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; background: rgba(255,255,255,.06); font-size: 12.5px; color: #eee; }
.badges .ico { width: 15px; height: 15px; color: var(--accent); }
.buy-box { position: sticky; top: 150px; }
.buy-box .video-wrap { margin: -10px -10px 18px; }
.buy-box .price { font-size: 38px; }
.buy-box .price small { font-size: 15px; }
.buy-box ul { list-style: none; display: grid; gap: 8px; margin: 18px 0 0; font-size: 14px; color: #ddd5d2; }
.buy-box li { display: flex; gap: 10px; }
.buy-box li .ico { width: 16px; height: 16px; color: var(--accent); margin-top: 3px; }
.btn-block { width: 100%; }
.course-content { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; margin-top: 50px; }
.course-content section + section { margin-top: 40px; }
.course-content h2 { margin: 0 0 18px; font-family: var(--font-title); font-weight: 300; font-size: 26px; letter-spacing: .06em; }
.learn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; list-style: none; margin: 0; }
.learn li { display: flex; gap: 10px; font-size: 15px; color: #e2dbd8; }
.learn .ico { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 3px; }
.acc { border: 1px solid rgba(255,255,255,.08); border-radius: 14px; overflow: hidden; }
.acc + .acc { margin-top: 10px; }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; background: rgba(255,255,255,.03); font-weight: 500; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary small { color: var(--muted); font-weight: 300; font-size: 12.5px; white-space: nowrap; }
.acc[open] summary { border-bottom: 1px solid rgba(255,255,255,.06); }
.acc ul { list-style: none; margin: 0; padding: 6px 0; }
.acc li { display: flex; align-items: center; gap: 12px; padding: 10px 18px; font-size: 14.5px; color: #ddd5d2; }
.acc li .ico { width: 16px; height: 16px; color: var(--muted); flex: none; }
.acc li .dur { margin-left: auto; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.acc li a { color: var(--accent); }
.instructor { display: flex; gap: 20px; align-items: center; }
.instructor img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 2px solid var(--line); }
.review { padding: 18px 20px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); }
.review + .review { margin-top: 10px; }
.review p { margin: 6px 0 0; color: #ddd5d2; font-size: 14.5px; }
.guarantee { display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: 16px; border: 1px dashed rgba(159,224,178,.4); background: rgba(159,224,178,.05); }
.guarantee b { font-family: var(--font-title); font-size: 36px; color: #9fe0b2; line-height: 1; }

/* Formulários de conta */
.auth-card h1 { margin: 0 0 6px; font-family: var(--font-title); font-weight: 300; font-size: 30px; }
.auth-card .lead { margin: 0 0 22px; color: var(--muted); }
.auth-alt { text-align: center; font-size: 14px; color: var(--muted); margin-top: 18px; }
.auth-alt a { color: var(--accent); }
.ok-box { padding: 12px 16px; border-radius: 12px; background: rgba(124,196,147,.1); border: 1px solid rgba(124,196,147,.4); color: #bfe6c9; font-size: 14px; margin-bottom: 14px; }

/* Área da aluna */
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 30px; }
.dash-head h1 { margin: 0; font-family: var(--font-title); font-weight: 300; font-size: 34px; }
.continue { display: grid; grid-template-columns: 220px 1fr auto; gap: 22px; align-items: center; }
.continue .course-cover { border-radius: 14px; }
.cert-list { list-style: none; margin: 0; display: grid; gap: 10px; }
.cert-list li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.03); }

/* Player */
.player-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 26px; align-items: start; }
.video-wrap { position: relative; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid rgba(255,255,255,.08); }
.video-wrap iframe, .video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lesson-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin: 20px 0; }
.lesson-head h1 { margin: 0; font-family: var(--font-title); font-weight: 400; font-size: 24px; }
.lesson-head small { display: block; color: var(--accent); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 4px; }
.tabs-ac { display: flex; gap: 4px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 20px; overflow-x: auto; }
.tabs-ac button { border: 0; background: none; color: var(--muted); padding: 12px 16px; cursor: pointer; font: inherit; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs-ac button.on { color: #fff; border-bottom-color: var(--accent); }
.pane-ac[hidden] { display: none; }
.note-area { width: 100%; min-height: 180px; padding: 14px; border-radius: 12px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.1); color: #fff; font: inherit; resize: vertical; }
.note-status { font-size: 12px; color: var(--muted); margin-top: 6px; }
.q-item { padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.03); }
.q-item + .q-item { margin-top: 10px; }
.q-item .who { font-size: 12px; color: var(--accent); letter-spacing: .08em; }
.q-item .ans { margin-top: 10px; padding: 10px 14px; border-left: 2px solid var(--accent); background: rgba(227,181,160,.06); border-radius: 0 10px 10px 0; }
.sidebar-ac { position: sticky; top: 146px; max-height: calc(100vh - 166px); overflow-y: auto; padding: 18px; }
.sidebar-ac .acc summary { padding: 13px 14px; font-size: 14px; }
.sidebar-ac .acc li { padding: 0; }
.sidebar-ac .acc li a, .sidebar-ac .acc li > span { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; color: #ddd5d2; font-size: 13.5px; }
.sidebar-ac .acc li a:hover { background: rgba(255,255,255,.03); }
.sidebar-ac .acc li.cur a { background: rgba(227,181,160,.1); color: #fff; }
.sidebar-ac .acc li.done .ico { color: #9fe0b2; }
.sidebar-ac .acc li.lock { opacity: .5; }
.quiz-link { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(227,181,160,.08); color: #fff; font-size: 13.5px; }
.quiz-link .ico { width: 16px; height: 16px; color: var(--accent); }

/* Prova */
.question { padding: 22px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); }
.question + .question { margin-top: 14px; }
.question h3 { margin: 0 0 14px; font-weight: 500; font-size: 16px; line-height: 1.5; }
.question label { display: flex; gap: 12px; align-items: flex-start; padding: 11px 14px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; }
.question label:hover { background: rgba(255,255,255,.03); }
.question input { accent-color: var(--accent); margin-top: 4px; }
.question label.right { border-color: rgba(159,224,178,.5); background: rgba(159,224,178,.07); }
.question label.wrong { border-color: rgba(242,160,138,.5); background: rgba(242,160,138,.07); }
.question .exp { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.score { text-align: center; }
.score b { display: block; font-family: var(--font-title); font-weight: 300; font-size: 64px; line-height: 1; }
.score.ok b { color: #9fe0b2; } .score.bad b { color: #f2a08a; }

/* Certificado */
.cert-sheet {
  position: relative; aspect-ratio: 297/210; width: 100%; max-width: 1000px; margin: 0 auto; container-type: inline-size;
  background: #fbf8f5; color: #2a2220; border-radius: 6px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.9);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 6cqw 8cqw;
}
.cert-sheet::before { content: ''; position: absolute; inset: 2.2cqw; border: .25cqw solid #c79a86; border-radius: 4px; pointer-events: none; }
.cert-sheet::after { content: ''; position: absolute; inset: 3cqw; border: .1cqw solid #e2c4b6; pointer-events: none; }
.cert-sheet .c-brand { font-family: var(--font-title); letter-spacing: .4em; font-size: 1.6cqw; color: #a8735f; text-transform: uppercase; }
.cert-sheet .c-title { font-family: var(--font-title); font-weight: 300; font-size: 5cqw; letter-spacing: .14em; margin: 1.2cqw 0 .6cqw; }
.cert-sheet .c-sub { font-size: 1.4cqw; letter-spacing: .3em; text-transform: uppercase; color: #7a6a65; }
.cert-sheet .c-name { font-family: var(--font-script); font-size: 6.4cqw; line-height: 1.1; margin: 2.4cqw 0 1cqw; color: #2a2220; }
.cert-sheet .c-text { font-size: 1.7cqw; line-height: 1.6; max-width: 70cqw; color: #4a3f3c; }
.cert-sheet .c-foot { display: flex; justify-content: space-between; align-items: flex-end; width: 100%; margin-top: 3.6cqw; gap: 3cqw; }
.cert-sheet .c-sign { text-align: center; min-width: 26cqw; }
.cert-sheet .c-sign img { height: 5cqw; margin: 0 auto -.6cqw; object-fit: contain; }
.cert-sheet .c-sign hr { border: 0; border-top: .12cqw solid #8a7a75; margin: .6cqw 0; }
.cert-sheet .c-sign b { display: block; font-size: 1.5cqw; font-weight: 500; }
.cert-sheet .c-sign span { font-size: 1.2cqw; color: #7a6a65; }
.cert-sheet .c-verify { display: flex; align-items: center; gap: 1.2cqw; text-align: left; font-size: 1.05cqw; color: #7a6a65; line-height: 1.5; }
.cert-sheet .c-verify b { color: #2a2220; font-size: 1.25cqw; letter-spacing: .08em; }
.cert-sheet .c-qr { width: 8cqw; height: 8cqw; background: #fff; padding: .4cqw; }
.cert-sheet .c-qr img, .cert-sheet .c-qr canvas { width: 100% !important; height: 100% !important; }
.cert-valid { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; align-items: center; margin-bottom: 24px; text-align: center; }

@media print {
  @page { size: A4 landscape; margin: 0; }
  body * { visibility: hidden !important; }
  .cert-sheet, .cert-sheet * { visibility: visible !important; }
  .cert-sheet { position: fixed; inset: 0; max-width: none; width: 100vw; height: 100vh; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
  html, body { background: #fff !important; }
}

@media (max-width: 1000px) {
  .course-hero-grid, .course-content, .player-layout { grid-template-columns: 1fr; }
  .buy-box, .sidebar-ac { position: static; max-height: none; }
  .steps-ac { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .learn { grid-template-columns: 1fr; }
  .continue { grid-template-columns: 1fr; }
  .ac-bar nav { gap: 14px; font-size: 12px; }
  .ac-brand span { display: none; }
  .steps-ac { grid-template-columns: 1fr; }
}
