/* Who is Drin? — cores da série (Instagram/Imagens/Template/base.css) */
:root {
  --teal: #237a7b; --teal-dark: #134a4d; --teal-light: #3f9c9a;
  --cream: #f4ead3; --cream-2: #e9dcbd; --paper: #fbf6ea; --ink: #163c40;
  --orange: #ef8f35; --yellow: #f6c944; --pink: #ea6fae; --sky: #8ccff0; --green: #6db24f; --purple: #9b7fd8;
  --r: 18px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { font-family: 'Fredoka', system-ui, sans-serif; color: var(--ink); background: var(--cream); line-height: 1.55; font-size: 18px; overflow-x: hidden; }
body::after { /* papel */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.hand { font-family: 'Patrick Hand', cursive; }
h1, h2, h3 { line-height: 1.12; font-weight: 600; }
h2 { font-size: clamp(30px, 4.2vw, 44px); margin-bottom: 14px; }
h2 small { display: block; font-size: .5em; font-weight: 500; color: var(--teal); margin-top: 6px; }
section { padding: 72px 0; }
.eyebrow { font-family: 'Patrick Hand', cursive; font-size: 22px; color: var(--orange); margin-bottom: 4px; }
.sub { font-size: 19px; max-width: 640px; margin-bottom: 30px; }
.small { font-size: 15px; opacity: .8; margin-top: 22px; }

/* Botões */
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn { display: inline-block; padding: 14px 24px; border-radius: 999px; font-weight: 600; text-decoration: none; font-size: 17px; transition: transform .15s, box-shadow .15s; cursor: pointer; }
.btn-main { background: var(--orange); color: #fff; box-shadow: 0 4px 0 #c46d1d; }
.btn-ghost { background: var(--paper); color: var(--teal-dark); box-shadow: inset 0 0 0 2px var(--teal); }
.btn:hover { transform: translateY(-2px); }
.btn.soon { background: var(--cream-2); color: #6b7a76; box-shadow: none; cursor: default; transform: none; }

/* Navegação */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 20px; background: rgba(19, 74, 77, .96); backdrop-filter: blur(6px); }
.nav-logo img { height: 52px; width: auto; }
.nav nav { display: flex; align-items: center; gap: 20px; }
.nav nav a { color: var(--cream); text-decoration: none; font-weight: 500; font-size: 16px; }
.nav nav a:hover { color: var(--yellow); }
.nav .pill { background: var(--yellow); color: var(--teal-dark) !important; padding: 8px 16px; border-radius: 999px; }
.nav-left { display: flex; align-items: center; gap: 16px; }
.nav-ig { display: flex; align-items: center; }
/* Selo "free on YouTube" (o mesmo do post fixado C-inicio do Instagram) */
.nav-yt { display: flex; align-items: center; gap: 7px; padding: 5px 14px 6px; transform: rotate(-2deg); text-decoration: none; white-space: nowrap;
  background: var(--cream); filter: drop-shadow(0 3px 5px rgba(0,0,0,.3)); transition: transform .2s;
  clip-path: polygon(0 6%, 3% 0, 8% 5%, 14% 1%, 21% 6%, 28% 0, 35% 4%, 43% 1%, 50% 6%, 58% 0, 65% 5%, 72% 1%, 80% 6%, 87% 0, 94% 5%, 100% 1%,
                     99% 50%, 100% 96%, 95% 100%, 89% 95%, 82% 100%, 75% 94%, 68% 100%, 60% 95%, 52% 100%, 45% 94%, 37% 100%, 30% 95%, 22% 100%, 15% 94%, 8% 100%, 2% 95%, 1% 50%); }
.nav-yt[href]:hover { transform: rotate(0deg) scale(1.04); }
.nav-yt.soon { cursor: default; }
.nav-yt .f { font-family: "Patrick Hand", cursive; font-size: 17px; color: var(--teal-dark); }
.nav-yt .f b { color: var(--orange); font-weight: 400; }
.nav-yt .yt { display: flex; align-items: center; gap: 5px; font-size: 18px; font-weight: 700; color: var(--teal-dark); }
.nav-yt .yt i { width: 25px; height: 18px; background: #e8362d; border-radius: 5px; position: relative; box-shadow: 0 2px 0 #a8221b; }
.nav-yt .yt i::after { content: ""; position: absolute; left: 10px; top: 5px; border-left: 8px solid #fff; border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
@media (max-width: 720px) { .nav nav a:not(.pill):not(.nav-ig) { display: none; } .nav-logo img { height: 44px; } .nav-left { gap: 10px; } }
.nav .pill { white-space: nowrap; }
@media (max-width: 440px) { .nav-yt .f { display: none; } .nav { padding: 8px 12px; } .nav nav { gap: 12px; } }
@media (max-width: 380px) { .nav-left { gap: 6px; } .nav-logo img { height: 38px; } .nav-yt { padding: 4px 9px 5px; } .nav-yt .yt { font-size: 15px; } .nav .pill { padding: 7px 12px; font-size: 15px; } .nav nav { gap: 8px; } }

/* Hero */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: flex-end; padding: 0; color: var(--cream); overflow: hidden; }
.hero-img { position: absolute; inset: 0; background-size: cover; background-position: center 30%; }
.hero-img::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(19,74,77,0) 20%, rgba(19,74,77,.82) 52%, rgba(19,74,77,.97) 75%); }
@media (max-width: 720px) {
  .hero { display: block; min-height: 0; background: var(--teal-dark); }
  .hero-img { position: relative; aspect-ratio: 16/10; }
  .hero-img::after { background: linear-gradient(180deg, rgba(19,74,77,0) 60%, rgba(19,74,77,1) 100%); }
  .hero-text { padding: 8px 20px 48px; }
}
.hero-text { position: relative; max-width: 1120px; margin: 0 auto; padding: 0 20px 64px; width: 100%; }
.hero .eyebrow { color: var(--yellow); }
.hero h1 { font-size: clamp(36px, 6vw, 68px); max-width: 780px; text-shadow: 0 3px 18px rgba(0,0,0,.3); }
.hero .lead { font-size: clamp(17px, 2vw, 21px); max-width: 640px; margin-top: 14px; }
.hero .lead b { color: var(--yellow); font-weight: 600; }
/* Hero: o último episódio, à direita (no telemóvel, por baixo do texto) */
.hero-text { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: end; }
@media (max-width: 980px) { .hero-text { grid-template-columns: 1fr; gap: 28px; } .hero-ep { max-width: 420px; } }
.hero-ep:empty { display: none; }
.hero-ep .he-card { display: block; width: 100%; background: rgba(19,74,77,.72); border: 2px solid rgba(244,234,211,.35); border-radius: 22px; padding: 14px; color: var(--cream); text-align: left; font: inherit; box-shadow: 0 10px 30px rgba(0,0,0,.25); backdrop-filter: blur(4px); }
.hero-ep button.he-card { cursor: pointer; transition: transform .15s; }
.hero-ep button.he-card:hover { transform: translateY(-3px); }
.he-label { font-family: 'Patrick Hand', cursive; font-size: 20px; color: var(--yellow); margin: 0 4px 8px; }
.he-thumb { position: relative; display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 16/9; background: var(--teal-dark); }
.he-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.he-thumb .he-logo { object-fit: contain; padding: 18px; }
.he-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-size: 26px; box-shadow: 0 4px 0 #c46d1d; padding-left: 4px; }
.he-title { margin: 10px 4px 2px; font-size: 20px; font-weight: 600; line-height: 1.2; }
.he-sub { margin: 0 4px; font-size: 15px; opacity: .8; }
.he-count { display: flex; gap: 8px; margin: 10px 4px 2px; }
.he-count span { flex: 1; text-align: center; background: rgba(244,234,211,.12); border-radius: 10px; padding: 6px 0; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.he-count b { display: block; font-size: 24px; letter-spacing: 0; }
.he-start { display: block; width: 100%; text-align: center; margin-top: 12px; border: 0; font-family: inherit; }

/* Como funciona */
.how { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.how-cards { display: grid; gap: 18px; }
.how-cards img { border-radius: var(--r); box-shadow: 0 12px 26px rgba(22,60,64,.16); width: 84%; }
.how-cards img:first-child { transform: rotate(-1.5deg); }
.how-cards img:last-child { justify-self: end; transform: rotate(1.5deg); }
.how p { margin-bottom: 12px; }
.how { padding-bottom: 55px; }
.learn { padding-top: 36px; }
.note { font-size: 24px; color: var(--teal); margin-top: 8px; }
@media (max-width: 820px) { .how { grid-template-columns: 1fr; gap: 28px; } }

/* Episódios */
.episodes { background: var(--teal-dark); color: var(--cream); }
.episodes .eyebrow { color: var(--yellow); }
.episodes .small { color: var(--cream); }
.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
@media (max-width: 360px) { .ep-grid { grid-template-columns: 1fr; } }
.ep { background: var(--paper); color: var(--ink); border-radius: var(--r); overflow: hidden; box-shadow: 0 10px 24px rgba(0,0,0,.25); display: flex; flex-direction: column; }
.ep-thumb { position: relative; border: 0; padding: 0; background: #0d3133; aspect-ratio: 16/9; overflow: hidden; cursor: default; font: inherit; }
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ep-out .ep-thumb[data-yt], .ep-out .ep-thumb[data-url] { cursor: pointer; }
.ep-out .ep-thumb:not([disabled]):hover img { transform: scale(1.04); }
.ep-badge { position: absolute; left: 12px; bottom: 12px; background: rgba(19,74,77,.92); color: var(--cream); padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.ep-out .ep-badge { background: var(--orange); color: #fff; }
.ep-min { position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.55); color: #fff; padding: 4px 9px; border-radius: 8px; font-size: 13px; }
.ep-body { padding: 16px 18px 20px; }
.ep-n { font-family: 'Patrick Hand', cursive; color: var(--orange); font-size: 18px; }
.ep h3 { font-size: 21px; margin-bottom: 10px; }
.ep ul { list-style: none; font-size: 15px; line-height: 1.4; }
.ep li { margin-top: 6px; }
.ep li b { display: inline-block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 6px; margin-right: 4px; color: var(--ink); }
.t-feelings { background: #f8cfe3; } .t-science { background: #cdeaf8; } .t-values { background: #fbe7a6; }
.t-habits { background: #d3ebc6; } .t-safety { background: #f9d3ae; } .t-concepts { background: #ddd2f3; }

/* Capa dos episódios por estrear */
.ep-thumb img.ep-logo { object-fit: contain; padding: 18% 30%; opacity: .18; filter: grayscale(1) brightness(2); }
.ep h3.ep-secret { font-family: "Patrick Hand", cursive; font-weight: 400; color: #7a8a8b; }
.ep-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: rgba(19,74,77,.55); color: var(--cream); text-align: center; padding: 10px; }
.cv-title { font-family: "Patrick Hand", cursive; font-size: 30px; line-height: 1; transform: rotate(-2deg);
  background: var(--cream); color: var(--teal-dark); padding: 6px 18px 4px; box-shadow: 0 6px 14px rgba(0,0,0,.25); }
.ep-next .cv-title { background: var(--yellow); }
.cv-date { font-weight: 600; font-size: 17px; margin-top: 4px; }
.cv-count { display: flex; gap: 8px; }
.cv-count span { background: rgba(0,0,0,.3); border-radius: 10px; min-width: 52px; padding: 4px 6px 3px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; line-height: 1.1; }
.cv-count b { display: block; font-size: 22px; letter-spacing: 0; }

/* O que aprendem */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.area { background: var(--paper); border-radius: var(--r); padding: 22px; border-top: 8px solid; box-shadow: 0 6px 16px rgba(22,60,64,.08); }
.area h3 { font-size: 22px; margin-bottom: 6px; }
.area p { font-size: 16px; }
.c-pink { border-color: var(--pink); } .c-sky { border-color: var(--sky); } .c-yellow { border-color: var(--yellow); }
.c-green { border-color: var(--green); } .c-orange { border-color: var(--orange); } .c-purple { border-color: var(--purple); }
@media (max-width: 820px) { .areas { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .areas { grid-template-columns: 1fr; } }
.pk { margin-top: 44px; background: var(--teal); color: var(--cream); border-radius: 24px; padding: 34px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 34px; align-items: center; }
.pk h3 { font-size: 30px; margin-bottom: 10px; color: var(--yellow); }
.pk b { color: var(--yellow); font-weight: 600; }
.steps { list-style: none; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; background: rgba(255,255,255,.1); border-radius: 14px; padding: 12px 16px 12px 60px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); color: var(--teal-dark); font-weight: 700; display: grid; place-items: center; }
.steps b { display: block; color: var(--cream); }
.steps span { font-size: 15px; opacity: .9; }
@media (max-width: 820px) { .pk { grid-template-columns: 1fr; padding: 26px 20px; } }

/* História */
.story { background: var(--cream-2); }
.timeline { list-style: none; margin-top: 30px; position: relative; max-width: 820px; }
.timeline::before { content: ""; position: absolute; left: 47px; top: 10px; bottom: 10px; width: 4px; background: var(--teal-light); border-radius: 2px; opacity: .5; }
.timeline li { display: grid; grid-template-columns: 98px 1fr; gap: 20px; margin-bottom: 30px; position: relative; }
.year { width: 98px; height: 52px; border-radius: 999px; background: var(--teal); color: var(--cream); display: grid; place-items: center; font-weight: 700; font-size: 22px; position: relative; z-index: 1; }
.timeline li:last-child .year { background: var(--orange); }
.timeline h3 { font-size: 23px; margin: 10px 0 4px; }
.sign { font-size: 26px; color: var(--teal); line-height: 1.3; }
.makers { display: flex; align-items: center; gap: 28px; margin-top: 16px; flex-wrap: wrap; }
.polaroid { background: #fff; padding: 12px 12px 8px; width: 240px; transform: rotate(-3deg); box-shadow: 0 12px 26px rgba(0,0,0,.2); position: relative; }
.polaroid::before { content: ""; position: absolute; width: 90px; height: 28px; background: rgba(246,201,68,.75); top: -14px; left: 75px; transform: rotate(3deg); }
.polaroid img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.polaroid figcaption { text-align: center; font-size: 22px; padding-top: 4px; }
@media (max-width: 520px) { .timeline li { grid-template-columns: 74px 1fr; gap: 14px; } .year { width: 74px; font-size: 18px; height: 44px; } .timeline::before { left: 35px; } }

/* Livro */
.book { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center; padding-top: 90px; padding-bottom: 90px; }
.book-cover img { border-radius: 6px; transform: rotate(-3deg); box-shadow: 0 24px 44px rgba(0,0,0,.35), 10px 0 0 #d9cfae; }
.book p { margin-bottom: 12px; }
.ages { display: flex; flex-wrap: wrap; gap: 10px; }
.ages span { background: var(--paper); border-radius: 999px; padding: 6px 14px; font-size: 15px; font-weight: 500; box-shadow: inset 0 0 0 1.5px var(--cream-2); }
@media (max-width: 820px) { .book { grid-template-columns: 1fr; gap: 34px; } .book-cover { max-width: 260px; margin: 0 auto; } }

/* Rodapé */
.foot { background: var(--teal-dark); color: var(--cream); text-align: center; padding: 44px 20px 36px; }
.foot a { color: var(--yellow); }
.foot-logo { height: 70px; width: auto; margin: 0 auto 14px; }
.foot .small { color: var(--cream); }

/* Leitor */
.player { position: fixed; inset: 0; z-index: 200; background: rgba(8,30,32,.88); display: grid; place-items: center; padding: 16px; }
.player[hidden] { display: none; }
.player-box { position: relative; width: min(1100px, 100%); }
.player-frame { aspect-ratio: 16/9; background: #000; border-radius: 12px; overflow: visible; position: relative; }
.player-frame iframe { border-radius: 12px; }
.player-yt { position: absolute; right: 0; bottom: -34px; color: var(--cream); font-size: 15px; }
.player-frame iframe { width: 100%; height: 100%; border: 0; }
.player-close { position: absolute; top: -46px; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--cream); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }
.ep-next .ep-min { display: none; }
