/* ==========================================================
   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: var(--header-h); z-index: 30; background: rgba(233,221,207,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(173,135,88,.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: var(--text); }
.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: color-mix(in srgb, var(--text) 86%, var(--bg)); }
.ac-bar nav a:hover { color: var(--accent); }
.ac-pill { padding: 7px 14px; border: 1px solid var(--accent); border-radius: 99px; color: var(--text) !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(74,52,42,.12); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.chips a.on, .chips a:hover { border-color: var(--accent); color: var(--text); background: rgba(173,135,88,.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(74,52,42,.05), rgba(74,52,42,.012)); border: 1px solid rgba(74,52,42,.08); transition: transform .35s, border-color .35s; }
.course-card:hover { transform: translateY(-6px); border-color: rgba(173,135,88,.4); }
.course-cover { position: relative; aspect-ratio: 16/9; background: radial-gradient(circle at 70% 20%, rgba(173,135,88,.3), transparent 60%), #e9ddcf; 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: #4f8a5e; color: #fff; }
.tag-hot { right: 12px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.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: var(--text); }
.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: var(--text); }
.price small { display: block; font-size: 12px; color: var(--muted); text-decoration: line-through; }
.price.free { color: #4f8a5e; }
.stars-mini { color: var(--accent); font-size: 13px; letter-spacing: 1px; }
.progress-bar { height: 6px; border-radius: 6px; background: rgba(74,52,42,.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(74,52,42,.03); border: 1px solid rgba(74,52,42,.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: var(--text); 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(74,52,42,.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(244,238,230,.55), 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: color-mix(in srgb, var(--text) 86%, var(--bg)); 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(74,52,42,.06); font-size: 12.5px; color: color-mix(in srgb, var(--text) 86%, var(--bg)); }
.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: color-mix(in srgb, var(--text) 86%, var(--bg)); }
.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: color-mix(in srgb, var(--text) 86%, var(--bg)); }
.learn .ico { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 3px; }
.acc { border: 1px solid rgba(74,52,42,.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(74,52,42,.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(74,52,42,.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: color-mix(in srgb, var(--text) 86%, var(--bg)); }
.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(74,52,42,.03); border: 1px solid rgba(74,52,42,.06); }
.review + .review { margin-top: 10px; }
.review p { margin: 6px 0 0; color: color-mix(in srgb, var(--text) 86%, var(--bg)); 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: #4f8a5e; 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(74,52,42,.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(74,52,42,.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(74,52,42,.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: var(--text); border-bottom-color: var(--accent); }
.pane-ac[hidden] { display: none; }
.note-area { width: 100%; min-height: 180px; padding: 14px; border-radius: 12px; background: rgba(255,255,255,.65); border: 1px solid rgba(74,52,42,.1); color: var(--text); 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(74,52,42,.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(173,135,88,.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: color-mix(in srgb, var(--text) 86%, var(--bg)); font-size: 13.5px; }
.sidebar-ac .acc li a:hover { background: rgba(74,52,42,.03); }
.sidebar-ac .acc li.cur a { background: rgba(173,135,88,.1); color: var(--text); }
.sidebar-ac .acc li.done .ico { color: #4f8a5e; }
.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(173,135,88,.08); color: var(--text); font-size: 13.5px; }
.quiz-link .ico { width: 16px; height: 16px; color: var(--accent); }

/* Prova */
.question { padding: 22px; border-radius: 16px; background: rgba(74,52,42,.03); border: 1px solid rgba(74,52,42,.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(74,52,42,.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: #4f8a5e; } .score.bad b { color: #b85a42; }

/* Certificado — layout luxo (papel marfim, moldura rosé-gold, foto em fade, selo e assinatura) */
.cert-sheet {
  --gold: linear-gradient(135deg, #8f6d44 0%, #e9c6b4 28%, #ad8758 50%, #f3dccf 72%, #8f6d44 100%);
  --ink: #4a342a; --bronze: #ad8758;
  position: relative; aspect-ratio: 297/210; width: 100%; max-width: 1000px; margin: 0 auto; container-type: inline-size;
  background: radial-gradient(120% 90% at 50% 40%, #fffdf9 0%, #faf4ec 60%, #f1e6d8 100%);
  color: var(--ink); border-radius: 6px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(74,52,42,.28);
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
/* moldura dupla rosé-gold */
.cert-sheet::before { content: ''; position: absolute; inset: 1.8cqw; padding: .45cqw; border-radius: 3px; background: var(--gold); pointer-events: none; z-index: 3;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.cert-sheet::after { content: ''; position: absolute; inset: 3cqw; border: .1cqw solid rgba(217,195,174,.55); pointer-events: none; z-index: 3; }
.cert-sheet .c-corner { position: absolute; width: 7cqw; height: 7cqw; z-index: 4; fill: none; stroke: #ad8758; stroke-width: 1.6; }
.cert-sheet .c-corner circle { fill: #ad8758; stroke: none; }
.cert-sheet .c-corner.tl { top: 2.9cqw; left: 2.9cqw; }
.cert-sheet .c-corner.tr { top: 2.9cqw; right: 2.9cqw; transform: scaleX(-1); }
.cert-sheet .c-corner.bl { bottom: 2.9cqw; left: 2.9cqw; transform: scaleY(-1); }
.cert-sheet .c-corner.br { bottom: 2.9cqw; right: 2.9cqw; transform: scale(-1); }
/* foto em fade */
.cert-sheet .c-photo { position: absolute; top: 0; bottom: 0; width: 40%; background-size: cover; background-position: center 20%; z-index: 1;
  filter: grayscale(.4) sepia(.3) contrast(.92); opacity: .42; }
.cert-sheet.foto-dir .c-photo { right: 0; -webkit-mask-image: linear-gradient(to left, #000 0%, rgba(0,0,0,.6) 35%, transparent 100%); mask-image: linear-gradient(to left, #000 0%, rgba(0,0,0,.6) 35%, transparent 100%); }
.cert-sheet.foto-esq .c-photo { left: 0; -webkit-mask-image: linear-gradient(to right, #000 0%, rgba(0,0,0,.6) 35%, transparent 100%); mask-image: linear-gradient(to right, #000 0%, rgba(0,0,0,.6) 35%, transparent 100%); }
/* conteúdo */
.cert-sheet .c-body { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 5cqw 9cqw 4.6cqw; }
.cert-sheet.foto-dir .c-body { padding-right: 24cqw; padding-left: 8cqw; }
.cert-sheet.foto-esq .c-body { padding-left: 24cqw; padding-right: 8cqw; }
.cert-sheet .c-logo { height: 7.4cqw; margin-bottom: 1.2cqw; display: flex; justify-content: center; }
.cert-sheet .c-logo img { height: 100%; width: auto; max-width: 20cqw; object-fit: contain; }
.cert-sheet .c-logo img.tint { filter: brightness(0) saturate(100%) invert(46%) sepia(28%) saturate(720%) hue-rotate(330deg) brightness(92%); }
.cert-sheet .c-logo .c-mono { height: 100%; width: auto; }
.cert-sheet .c-brand { font-family: var(--font-title); letter-spacing: .42em; font-size: 1.25cqw; color: var(--bronze); text-transform: uppercase; }
.cert-sheet .c-brand i { font-style: normal; margin: 0 .4em; }
.cert-sheet .c-title { font-family: var(--font-title); font-weight: 300; font-size: 5.4cqw; letter-spacing: .2em; margin: 1.4cqw 0 0; padding-left: .2em; line-height: 1;
  background: linear-gradient(180deg, #3a2e2b 0%, #7b5b4f 55%, #3a2e2b 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cert-sheet .c-sub { font-family: var(--font-title); font-style: italic; font-size: 3.4cqw; color: var(--bronze); line-height: 1; margin-top: .2cqw; }
.cert-sheet .c-lead { font-size: 1.15cqw; letter-spacing: .32em; text-transform: uppercase; color: #8a7670; margin-top: 2cqw; }
.cert-sheet .c-name { font-family: var(--font-title); font-style: italic; font-size: 6.6cqw; line-height: 1.05; margin: .6cqw 0 .2cqw; color: var(--ink); }
.cert-sheet .c-orn { display: flex; align-items: center; gap: 1cqw; color: #ad8758; font-size: 1cqw; margin-bottom: 1.2cqw; }
.cert-sheet .c-orn span { width: 12cqw; height: .1cqw; background: linear-gradient(90deg, transparent, #ad8758); }
.cert-sheet .c-orn span:last-child { transform: scaleX(-1); }
.cert-sheet .c-text { font-size: 1.55cqw; line-height: 1.65; max-width: 62cqw; color: #4a3f3c; }
.cert-sheet .c-foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; width: 100%; margin-top: 3cqw; gap: 2cqw; }
.cert-sheet .c-verify { display: flex; align-items: center; gap: 1cqw; text-align: left; font-size: .95cqw; color: var(--muted); line-height: 1.5; }
.cert-sheet .c-verify b { color: var(--ink); font-size: 1.1cqw; letter-spacing: .08em; }
.cert-sheet .c-qr { width: 7cqw; height: 7cqw; flex: none; background: #fff; padding: .35cqw; border: .1cqw solid rgba(217,195,174,.5); }
.cert-sheet .c-qr img, .cert-sheet .c-qr canvas { width: 100% !important; height: 100% !important; }
.cert-sheet .c-seal { width: 9.5cqw; height: 9.5cqw; border-radius: 50%; padding: .5cqw; background: var(--gold); box-shadow: 0 .4cqw 1.2cqw rgba(120,70,50,.25); }
.cert-sheet .c-seal div { width: 100%; height: 100%; border-radius: 50%; border: .12cqw dashed rgba(74,52,42,.8); display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, #f6e2d6, #c9937d 70%, #8f6d44); color: var(--text); text-shadow: 0 .1cqw .2cqw rgba(90,50,35,.5); }
.cert-sheet .c-seal b { font-family: var(--font-title); font-weight: 400; font-size: 3cqw; line-height: 1; letter-spacing: .05em; }
.cert-sheet .c-seal small { font-size: .7cqw; letter-spacing: .25em; }
.cert-sheet .c-sign { text-align: center; justify-self: end; min-width: 22cqw; }
.cert-sheet .c-sign img { height: 8.4cqw; width: auto; max-width: 24cqw; margin: 0 auto -1.8cqw; object-fit: contain; display: block; }
.cert-sheet .c-sign hr { border: 0; height: .12cqw; background: linear-gradient(90deg, transparent, #9a7a70, transparent); margin: .6cqw 0; }
.cert-sheet .c-sign b { display: block; font-size: 1.35cqw; font-weight: 500; letter-spacing: .08em; }
.cert-sheet .c-sign span { font-size: 1.05cqw; color: var(--muted); }
.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; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  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; }
}
