:root{
  --bg0:#070006;
  --bg1:#120011;
  --panel:#140015;
  --panel2:#0f0010;
  --text:#f3eef6;
  --muted:#c8b8cc;
  --gold:#d6b15e;
  --gold2:#b98a32;
  --purple:#6f2cff;
  --purple2:#3a156b;
  --line:rgba(214,177,94,.25);
  --shadow: 0 18px 50px rgba(0,0,0,.55);
  --radius:18px;
  --radius2:26px;
  --max:1120px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--text);
  background:
    radial-gradient(900px 600px at 18% 8%, rgba(111,44,255,.18), transparent 60%),
    radial-gradient(900px 600px at 80% 18%, rgba(214,177,94,.16), transparent 55%),
    radial-gradient(1100px 800px at 50% 110%, rgba(255,125,0,.06), transparent 65%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height:1.45;
}

a{color:inherit; text-decoration:none}
img{max-width:100%; height:auto; display:block}
.container{width:min(var(--max), calc(100% - 40px)); margin:0 auto}

.skip{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}
.skip:focus{left:18px;top:18px;width:auto;height:auto;padding:10px 12px;background:#000;border:1px solid var(--line);border-radius:12px;z-index:9999}

.header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(10,0,10,.78), rgba(10,0,10,.40));
  border-bottom:1px solid rgba(214,177,94,.18);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 0;
  gap:16px;
}
.brand{
  display:flex; align-items:center; gap:12px; min-width: 240px;
}
.badge{
  width:44px; height:44px; border-radius:14px;
  background: radial-gradient(60% 60% at 35% 35%, rgba(214,177,94,.55), rgba(214,177,94,.10) 60%, rgba(0,0,0,.2)),
              linear-gradient(135deg, rgba(111,44,255,.35), rgba(0,0,0,.35));
  border:1px solid rgba(214,177,94,.35);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  display:grid; place-items:center;
}
.badge svg{width:26px;height:26px;opacity:.95}
.brand-title{font-weight:800; letter-spacing:.08em; font-size:12px}
.brand-sub{display:block; margin-top:2px; font-size:12px; color:var(--muted)}

.links{display:flex; gap:14px; align-items:center; flex-wrap:wrap; justify-content:flex-end}
.links a{font-size:13px; color:var(--muted)}
.links a:hover{color:var(--text)}

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:12px 14px; border-radius:14px; font-weight:800;
  border:1px solid rgba(214,177,94,.35);
  background: linear-gradient(135deg, rgba(111,44,255,.30), rgba(111,44,255,.10));
  box-shadow: 0 14px 34px rgba(0,0,0,.45);
  color:var(--text);
  cursor:pointer;
}
.btn:hover{border-color: rgba(214,177,94,.55)}
.btn.gold{
  background: linear-gradient(135deg, rgba(214,177,94,.30), rgba(214,177,94,.10));
}
.btn.ghost{
  background: transparent;
  border:1px solid rgba(214,177,94,.22);
  color:var(--muted);
  box-shadow:none;
}
.btn.small{padding:10px 12px; border-radius:12px; font-size:13px}

.hero{
  padding:44px 0 24px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:22px;
  align-items:stretch;
}
.card{
  background: linear-gradient(180deg, rgba(20,0,21,.75), rgba(14,0,16,.68));
  border:1px solid rgba(214,177,94,.16);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.hero-media{
  position:relative;
  min-height: 320px;
  background:
    radial-gradient(900px 420px at 20% 20%, rgba(214,177,94,.14), transparent 60%),
    radial-gradient(900px 420px at 70% 35%, rgba(111,44,255,.18), transparent 60%),
    linear-gradient(135deg, rgba(0,0,0,.25), rgba(0,0,0,.55));
}
.hero-media::after{
  content:"";
  position:absolute; inset:0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.55), transparent 55%);
  pointer-events:none;
}
.hero-copy{
  padding:26px 26px 22px;
  display:flex; flex-direction:column; gap:14px;
}
.kicker{
  display:inline-flex; align-items:center; gap:10px;
  font-size:12px; letter-spacing:.18em; font-weight:800;
  color: rgba(214,177,94,.92);
  text-transform:uppercase;
}
.kicker .dot{width:8px;height:8px;border-radius:99px;background:rgba(214,177,94,.85); box-shadow:0 0 18px rgba(214,177,94,.35)}
h1{margin:0; font-size:34px; line-height:1.06}
.lead{margin:0; color:var(--muted); font-size:15px}
.hero-actions{display:flex; gap:12px; flex-wrap:wrap; margin-top:6px}
.note{font-size:12px;color:rgba(200,184,204,.85); margin-top:8px}

.hero-side{
  padding:22px;
}
.side-title{margin:0 0 10px; font-size:16px}
.side-list{margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:10px}
.side-item{
  display:flex; gap:10px; align-items:flex-start;
  padding:12px; border-radius:16px;
  border:1px solid rgba(214,177,94,.14);
  background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.10));
}
.bullet{
  width:10px;height:10px;border-radius:99px;margin-top:5px;
  background: rgba(111,44,255,.65);
  box-shadow: 0 0 18px rgba(111,44,255,.35);
}
.side-item span{color:var(--muted); font-size:13px}

.section{padding:26px 0}
.section-head{display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:14px}
.section-head h2{margin:0; font-size:22px}
.section-head p{margin:0; color:var(--muted); font-size:13px; max-width: 62ch}

.grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:14px;
}
.course{
  overflow:hidden;
  border-radius: var(--radius);
  border:1px solid rgba(214,177,94,.16);
  background: linear-gradient(180deg, rgba(16,0,18,.72), rgba(0,0,0,.20));
  box-shadow: 0 14px 40px rgba(0,0,0,.40);
  display:flex; flex-direction:column;
  min-height: 320px;
}
.course .thumb{
  height:140px;
  background: linear-gradient(135deg, rgba(214,177,94,.18), rgba(111,44,255,.12));
  position:relative;
  overflow:hidden;
}
.course .thumb img{
  width:100%; height:100%; object-fit:cover;
  opacity:.92;
}
.course .thumb::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.55));
}
.course .body{padding:14px 14px 12px; display:flex; flex-direction:column; gap:10px; flex:1}
.course h3{margin:0; font-size:15px}
.price-row{display:flex; align-items:baseline; justify-content:space-between; gap:10px}
.price{font-weight:900; letter-spacing:.02em}
.small{font-size:12px; color:var(--muted)}
.course .actions{padding:0 14px 14px; display:flex; gap:10px; flex-wrap:wrap}

.block{
  padding:18px;
  border-radius: var(--radius2);
  border:1px solid rgba(214,177,94,.16);
  background: linear-gradient(180deg, rgba(20,0,21,.62), rgba(0,0,0,.18));
  box-shadow: var(--shadow);
}
.block p{margin:0; color:var(--muted); font-size:13px}
.block p + p{margin-top:10px}

.playlists{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:14px;
}
.frame{
  border-radius: 18px;
  overflow:hidden;
  border:1px solid rgba(214,177,94,.16);
  background: rgba(0,0,0,.18);
  box-shadow: 0 18px 45px rgba(0,0,0,.40);
}
.frame iframe{width:100%; height:280px; border:0}

.footer{
  padding:26px 0 34px;
  border-top:1px solid rgba(214,177,94,.16);
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.20));
}
.foot-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
  align-items:start;
}
.legal{font-size:12px; color:rgba(200,184,204,.86); line-height:1.55}
.legal a{color:rgba(214,177,94,.92)}
.mini{font-size:12px; color:rgba(200,184,204,.86)}

@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr}
  .grid{grid-template-columns: repeat(2, 1fr)}
  .playlists{grid-template-columns: 1fr}
  .frame iframe{height:300px}
  h1{font-size:22px}
}
@media (max-width: 560px){
  .container{width: min(var(--max), calc(100% - 26px))}
  .grid{grid-template-columns: 1fr}
  .links{display:none}
  .hero-copy{padding:22px}
  .hero-side{padding:18px}
}

/* OVERRIDE: fundo global uniforme (vinho cósmico) - sem alterar estrutura/layout */
html, body{
  background: #120014 !important;
}

/* OVERRIDE: imagem no card hero + tipografia justificada (desktop e mobile) */
.hero-media{
  background-image: url("hero-projeto.png") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

/* Textos justificados com boa quebra */
.lead,
.section-head p,
.block p,
.side-item span,
.course .small,
.small,
.legal,
.uch-points li,
.liv-points li{
  text-align: justify;
  hyphens: auto;
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Botões/CTAs: permitir 2 linhas no mobile sem cortar palavras */
.btn{
  white-space: normal;
  text-align: center;
  line-height: 1.15;
  min-height: 44px;
}

/* Ajustes específicos mobile sem alterar desktop */
@media (max-width: 560px){
  .hero-media{
    background-position: center top !important;
  }
  .hero-actions .btn,
  .course .actions .btn{
    width: 100%;
  }
}

/* OVERRIDE: playlists em capas (sem iframe) — evita erro 153 em arquivo local */
.playlists{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:14px;
}
.pl-card{
  display:flex;
  gap:14px;
  align-items:stretch;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(214,177,94,.16);
  background: rgba(0,0,0,.18);
  box-shadow: 0 18px 45px rgba(0,0,0,.40);
}
.pl-thumb{
  width: 44%;
  min-height: 220px;
  background:
    radial-gradient(700px 260px at 30% 30%, rgba(214,177,94,.16), transparent 60%),
    radial-gradient(700px 260px at 75% 40%, rgba(111,44,255,.18), transparent 60%),
    linear-gradient(135deg, rgba(0,0,0,.20), rgba(0,0,0,.55));
  position:relative;
}
.pl-play{
  position:absolute;
  inset:auto auto 16px 16px;
  width:44px;height:44px;border-radius:14px;
  display:grid;place-items:center;
  border:1px solid rgba(214,177,94,.35);
  background: linear-gradient(135deg, rgba(111,44,255,.30), rgba(111,44,255,.10));
  color: rgba(243,238,246,.95);
  font-weight:900;
}
.pl-meta{padding:16px; display:flex; flex-direction:column; justify-content:center; gap:6px}
.pl-title{font-weight:900; letter-spacing:.01em}
.pl-sub{font-size:12px; color: rgba(200,184,204,.86)}

@media (max-width: 980px){
  .playlists{grid-template-columns: 1fr}
  .pl-thumb{min-height: 200px}
}
@media (max-width: 560px){
  .pl-card{flex-direction:column}
  .pl-thumb{width:100%; min-height: 180px}
}


/* OVERRIDE: logo oficial do Instituto no topo */
.badge{display:grid;place-items:center}
.brand-logo{
  width:44px;height:44px;
  object-fit:cover;
  border-radius:999px;
  display:block;
}

body{
  user-select:none;
  -webkit-user-select:none;
  -moz-user-select:none;
}

img{
  pointer-events:none;
}

/* --- Marca institucional (título + subtítulo) --- */

.brand-fixed{
  display:flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
}

.brand-text{
  display:flex;
  flex-direction:column;
  justify-content:center;
  line-height:1;
}

.brand-title{
  margin:0;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight:700;
  letter-spacing:.2px;
  color:#d4af37;
}

.brand-subtitle{
  margin-top:-1px;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight:400;
  color:#d8d0c6;
}

/* --- TOPO --- */

header .brand-fixed .brand-title{
  font-size:16px;
}

header .brand-fixed .brand-subtitle{
  font-size:12px;
}

/* --- RODAPÉ --- */

footer .brand-fixed .brand-title{
  font-size:16px;
}

footer .brand-fixed .brand-subtitle{
  font-size:13px;
}

/* --- TAMANHO DO LOGO --- */

header .brand-fixed img{
  width:42px;
  height:42px;
}

footer .brand-fixed img{
  width:38px;
  height:38px;
}

@media (max-width: 560px){

  header .brand-fixed{
    gap:10px;
  }

  header .brand-fixed img{
    width:36px;
    height:36px;
  }

  header .brand-text{
    min-width:0;
  }

  header .brand-fixed .brand-title{
    font-size:14px !important;
    white-space:nowrap;
    line-height:1;
  }

  header .brand-fixed .brand-subtitle{
    font-size:12px !important;
    white-space:nowrap;
    line-height:1.05;
  }

}

@media (max-width: 560px){

  .nav{
    gap:10px;
  }

  .btn{
    padding:10px 12px;
  }

}

@media (max-width: 560px){

  footer .brand-fixed{
    gap:10px;
  }

  footer .brand-fixed img{
    width:34px;
    height:34px;
  }

  footer .brand-text{
    min-width:0;
  }

  footer .brand-fixed .brand-title{
    font-size:11px !important;
    white-space:nowrap;
    line-height:1;
  }

  footer .brand-fixed .brand-subtitle{
    font-size:9px !important;
    white-space:nowrap;
    line-height:1.05;
  }

}

@media (max-width: 560px){

  .nav{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:12px;
  }

  .nav .brand-fixed{
    width:100%;
  }

  .nav > .btn.gold.small{
    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    margin:0;
  }

}

@media (max-width: 560px){
  #doacao .block > p[style*="margin-top:14px"]{
    display:flex;
    flex-direction:column;
    gap:12px;
  }

  #doacao .block > p[style*="margin-top:14px"] .btn{
    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    margin:0;
  }
}

@media (max-width: 560px){
  .foot-grid{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:18px !important;
  }

  .foot-grid > div{
    width:100% !important;
    min-width:0 !important;
  }

  .foot-grid .legal,
  .foot-grid .mini{
    text-align:justify !important;
    text-justify:inter-word;
    hyphens:auto;
    overflow-wrap:anywhere;
    word-break:normal;
  }
}

body::after{
  content: "ICH • USO RESTRITO";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: block;
  width: max-content;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 3px;
  line-height: 1;
  color: rgba(212,175,55,0.18);
  text-shadow: 0 0 2px rgba(0,0,0,0.25);
  white-space: nowrap;
  pointer-events: none;
  z-index: 2147483647;
}

html, body {
  margin: 0;
  padding: 0;
  background: #12030a !important; /* use o tom mais escuro real do site */
  min-height: 100%;
}

body {
  overflow-x: hidden;
}

#app, main, .site-wrap, .page, .page-wrap {
  background: transparent;
}

html {
  overscroll-behavior-y: none;
  overscroll-behavior-x: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, #1a060c 0%, #12030a 100%);
  z-index: -1;
  pointer-events: none;
}