/* Escola das Finanças — paleta tirada do azul-ciano do logótipo.
   Layout: hero centrado em camadas, depois ritmo escuro/claro com bentos e uma faixa em movimento. */
/* Space Grotesk (SIL Open Font License), variável 300–700, alojada em assets/fonts (Google Fonts v22). */
@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("assets/fonts/space-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("assets/fonts/space-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #172060; /* azul-noite um pouco mais claro, para o hero não ficar tão pesado */
  --ink-2: #212B72;
  --ink-3: #2C3886;
  --cobalt: #2440FF;
  --cyan: #3BE3FF;
  --mint: #00F2C0; /* o verde do logótipo */
  --amber: #FFC94D;
  --paper: #F3F5FB;
  --mist: #E3E8F7;
  --white: #FFFFFF;
  --on-dark: #F3F5FB;
  --on-dark-soft: #C3CAEB;
  --on-light: #0A0F2E;
  --on-light-soft: #4B5378;
  --veil: rgba(243, 245, 251, 0.08);
  --veil-2: rgba(243, 245, 251, 0.14);
  --check-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='%230A0F2E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --check-cyan: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='%233BE3FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

  --font: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --display: clamp(40px, 8.2vw, 150px);
  --h2: clamp(32px, 4.4vw, 68px);
  --lead: clamp(18px, 1.5vw, 22px);
  --body: 17px;
  --small: 15px;

  --margin: clamp(16px, 4vw, 64px);
  --gap-section: clamp(56px, 6.5vw, 104px);
  --r-xl: 36px;
  --r-lg: 28px;
  --r-md: 18px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--body);
  line-height: 1.5;
  color: var(--on-dark);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, blockquote, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
svg text { font-family: var(--font); }
::selection { background: var(--cyan); color: var(--ink); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

[hidden] { display: none !important; }
main > section[id] { scroll-margin-top: 80px; } /* para links vindos de fora da página */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--margin); top: -80px; z-index: 60; background: var(--cyan); color: var(--ink); padding: 12px 18px; border-radius: 999px; font-weight: 600; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.h2 { font-size: var(--h2); font-weight: 600; line-height: 1; letter-spacing: -0.04em; text-wrap: balance; max-width: 15ch; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.section-head > p { max-width: 44ch; font-size: var(--lead); line-height: 1.45; }

/* Botões em pílula */
.btn {
  --bg: var(--ink); --fg: var(--on-dark);
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px;
  background: var(--bg); color: var(--fg);
  font: 600 var(--body)/1.1 var(--font); letter-spacing: -0.01em;
  text-decoration: none; border: 0; border-radius: 999px; cursor: pointer;
  transition: transform .25s var(--ease-out), background-color .2s ease, box-shadow .3s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn--cyan { --bg: var(--cyan); --fg: var(--ink); }
.btn--cyan:hover { --bg: #7BEEFF; }
.btn--glow:hover { box-shadow: 0 12px 44px -10px var(--cyan); /* taste-skill-ignore: brilho só no hover do CTA */ }
.btn--ghost { --bg: var(--veil); --fg: var(--on-dark); }
.btn--ghost:hover { --bg: var(--veil-2); }
.btn--ink { --bg: var(--ink); --fg: var(--on-dark); }
.btn--ink:hover { --bg: var(--cobalt); }
.btn--lg { min-height: 58px; padding: 16px 30px; font-size: 18px; }
.btn--sm { min-height: 44px; padding: 10px 20px; font-size: var(--small); }
.btn--block { width: 100%; }

.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: .4em; align-items: center; min-height: 44px; }
.link-arrow::after { content: "→"; transition: transform .2s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* Duotone cobalto: fotos a preto e branco sobre azul */
.duo { background: var(--mist); overflow: hidden; }
.duo img, .duo video { width: 100%; height: 100%; object-fit: cover; }

/* Apontamentos a menta */
.hl { background: linear-gradient(transparent 56%, var(--mint) 56%, var(--mint) 90%, transparent 90%); /* taste-skill-ignore: marcador, não é gradiente */ color: inherit; padding: 0 .08em; margin: 0 -.04em; border-radius: 4px; }
/* Títulos que se enchem com o scroll (main.js): --p é a posição da frente de enchimento em cada palavra */
.is-fill .tw { background: linear-gradient(90deg, var(--tc) calc(var(--p, 115%) - 15%), var(--tg) calc(var(--p, 115%) + 15%)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.is-fill .hl { background-repeat: no-repeat; background-size: 0 100%; }
.aulas .is-fill .hl, .explica .is-fill .hl, .desafio .is-fill .hl { background: none; }
.manifesto__title .mw:nth-last-child(-n+2) { color: var(--mint); }

/* NAV */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; gap: 24px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--margin) 14px;
  transition: background-color .3s ease;
}
.nav.is-solid { background: var(--ink); }
.nav__cta { white-space: nowrap; flex: none; }
.nav__brand { display: inline-flex; align-items: center; min-height: 44px; }
.nav__brand img { width: 150px; }
.nav__partners { display: inline-flex; align-items: center; }
.nav__partner-logos, .partner-pill { display: inline-flex; align-items: center; gap: 16px; padding: 8px 16px; border-radius: 999px; }
/* Logótipos dos parceiros em versão branca, sobre fundo escuro */
.nav__partner-logos img, .footer .partner-pill img { filter: brightness(0) invert(1); }
.partner-pill { padding: 0; gap: 20px; }
.nav__partner-logos { padding-inline: 4px; }
.nav__sep { width: 1px; height: 20px; background: rgba(243, 245, 251, .3); }
.nav__partner-logos .nav__magma { height: 20px; }
.nav__partner-logos { --lh: 18px; }
.partner-pill { --lh: 22px; }
.nav__partner-logos img, .partner-pill img { height: var(--lh); width: auto; }
/* O ficheiro da Cofidis tem margem vazia e o da Fidelidade é mais largo: com estas alturas ficam com a mesma largura e a Cofidis com letras mais altas */
.nav__partner-logos img[src$="cofidis.svg"], .partner-pill img[src$="cofidis.svg"] { height: calc(var(--lh) * 1.2); }
.nav__partner-logos img[src$="fidelidade.png"], .partner-pill img[src$="fidelidade.png"] { height: calc(var(--lh) * .62); }

/* Alinhamento ótico: a Magma e a Fidelidade têm uma linha pequena por baixo do nome ("studio",
   "seguros desde 1808"), por isso o nome fica acima do centro da imagem. Estes desvios (em % da
   altura de cada logótipo) põem o centro das três palavras principais na mesma linha. */
.nav__partner-logos img[src$="logo-magma.png"], .footer__magma img { transform: translateY(19%); }
.nav__partner-logos img[src$="cofidis.svg"], .partner-pill img[src$="cofidis.svg"] { transform: translateY(-3%); }
.inscricao__partners { margin-top: 28px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; font-weight: 600; }
.partner-link { position: relative; display: inline-flex; align-items: center; border-radius: 4px; transition: opacity .15s ease; }
.partner-link::after { content: ""; position: absolute; inset: -10px -3px; }
.partner-link:hover { opacity: .75; }
.partner-link:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.footer__by { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer__with { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; color: var(--on-dark-soft); }
.nav__links { display: flex; gap: 4px; margin-inline: auto; padding: 5px; border-radius: 999px; background: var(--veil); }
.nav__links a { color: var(--on-dark); text-decoration: none; font-weight: 500; font-size: var(--small); padding: 10px 16px; border-radius: 999px; transition: background-color .2s ease; }
.nav__links a:hover { background: var(--veil-2); }

.nav__menu { display: none; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--veil); cursor: pointer; place-content: center; }
.nav__burger, .nav__burger::before, .nav__burger::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--on-dark); transition: transform .3s var(--ease-out), opacity .2s ease; }
.nav__burger { position: relative; }
.nav__burger::before, .nav__burger::after { content: ''; position: absolute; left: 0; }
.nav__burger::before { top: -6px; } .nav__burger::after { top: 6px; }
.nav__menu[aria-expanded='true'] .nav__burger { background: transparent; }
.nav__menu[aria-expanded='true'] .nav__burger::before { transform: translateY(6px) rotate(45deg); }
.nav__menu[aria-expanded='true'] .nav__burger::after { transform: translateY(-6px) rotate(-45deg); }
.nav__sheet { position: absolute; top: 100%; left: var(--margin); right: var(--margin); display: grid; gap: 4px; padding: 10px; border-radius: var(--r-lg); background: var(--ink-3);
  box-shadow: 0 24px 60px -16px rgba(5, 8, 30, .6); /* taste-skill-ignore: menu aberto por cima da página */ }
.nav__sheet { max-height: calc(100svh - 120px); overflow-y: auto; }
.nav__sheet a { display: flex; align-items: center; min-height: 52px; padding: 0 18px; border-radius: var(--r-md); text-decoration: none; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.nav__sheet a:hover { background: var(--veil); }

/* HERO: fintech + escola. Papel pontilhado de caderno, texto à esquerda, cartões de app à direita */
.hero {
  position: relative; min-height: 100svh; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 4vw, 72px);
  padding: 104px var(--margin) 40px;
  background-color: var(--ink);
}
/* Papel pontilhado que se esbate no fundo, para o hero passar para a secção seguinte sem corte */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: radial-gradient(rgba(243, 245, 251, .13) 1px, transparent 1.6px); /* taste-skill-ignore: papel pontilhado de caderno */
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.hero::before {
  content: ""; position: absolute; z-index: -1; right: -10%; top: 6%; width: 60%; height: 72%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(36, 64, 255, .5), transparent); /* taste-skill-ignore: luz por trás dos cartões */
}
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.hero__title { font-size: clamp(40px, 4.5vw, 82px); font-weight: 700; line-height: 1; letter-spacing: -0.045em; }
.hero__rotator { display: block; overflow: hidden; height: 1.06em; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__word { display: inline-block; color: var(--cyan); transition: transform .26s var(--ease-out), opacity .22s ease; }
.hero__word.is-out { transform: translateY(-80%); opacity: 0; }
.hero__word.is-in { transform: translateY(80%); opacity: 0; transition: none; }
.hero__rest { display: block; white-space: nowrap; }
.hero__lead { max-width: 40ch; font-size: var(--lead); line-height: 1.45; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__micro { font-size: var(--small); color: var(--on-dark-soft); display: flex; align-items: center; gap: 10px; }
.hero__micro strong { color: var(--on-dark); font-weight: 600; }
/* Selo "a maior escola" por cima do título */
.hero__badge { margin: 0; color: var(--on-dark-soft); font-size: 13px; font-weight: 600; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; }
.tag__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.6); opacity: .5; } }
.countdown { color: var(--cyan); font-weight: 600; margin-left: 6px; }
.hero__foot {
  position: absolute; left: var(--margin); right: var(--margin); bottom: 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: var(--small); color: var(--on-dark-soft);
}
.hero__partners { display: flex; gap: 14px; align-items: center; }
.hero__partner-logos { display: inline-flex; align-items: center; gap: 18px; background: var(--white); padding: 10px 20px; border-radius: 999px; }
.hero__partner-logos img { height: 26px; width: auto; }
.hero__count strong { color: var(--on-dark); font-weight: 600; }

/* Hero: fotografia + cartão único */
.hero__media { position: relative; }
.hero__photo { margin: 0; aspect-ratio: 4 / 5; max-height: calc(100svh - 168px); width: 100%; border-radius: var(--r-xl); overflow: hidden; background: var(--ink-2); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.mini {
  position: absolute; left: -56px; bottom: 48px; width: min(340px, 86%);
  display: flex; flex-direction: column; gap: 10px;
  background: var(--paper); color: var(--ink); border-radius: 24px; padding: 20px 22px; text-decoration: none;
  box-shadow: 0 30px 70px -24px rgba(3, 6, 25, .8); /* taste-skill-ignore: cartão flutuante do hero */
  transition: opacity .25s ease, transform .3s var(--ease-out);
}
.mini:hover { transform: translateY(-3px); }
.mini.is-swap { opacity: 0; transform: translateY(8px); }
.mini__label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--on-light-soft); }
.mini__label .tag__dot { background: #00B894; }
/* Espaço sempre para duas linhas, para a caixa ter a mesma altura em todas as aulas */
.mini__title { font-size: 26px; font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; min-height: 2.2em; }
.mini__date { align-self: flex-start; font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--mist); }

/* O que vais aprender: verbo enorme, frase curta, temas em pílulas */
.aprende__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 56px); }
.aprende__aside { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 40ch; color: var(--on-dark-soft); }
.vtabs { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--ink-2); width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; margin-bottom: 16px; }
.vtabs::-webkit-scrollbar { display: none; }
.vtab { position: relative; overflow: hidden; flex: none; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: transparent; color: var(--on-dark-soft); font: 600 16px var(--font); cursor: pointer; transition: background-color .25s ease, color .25s ease; }
.vtab:hover { color: var(--on-dark); }
.vtab[aria-selected="true"] { background: var(--paper); color: var(--ink); }
.vtab__bar { position: absolute; left: 22px; right: 22px; bottom: 7px; height: 2px; border-radius: 2px; background: var(--mint); transform: scaleX(0); transform-origin: left; }
.vtab[aria-selected="true"] .vtab__bar { animation: vtab-fill var(--vtab-time, 7s) linear forwards; }
.vtabs.is-paused .vtab__bar { animation: none; transform: scaleX(0); }
@keyframes vtab-fill { to { transform: scaleX(1); } }
.vpanel { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); min-height: clamp(420px, 38vw, 540px); border-radius: 32px; overflow: hidden; background: var(--ink-2); }
.vpanel:not([hidden]) { animation: vpanel-in .3s var(--ease-out); }
@keyframes vpanel-in { from { opacity: 0; transform: translateY(8px); } }
.vpanel__copy { display: flex; flex-direction: column; gap: 20px; padding: clamp(28px, 4vw, 56px); }
.vpanel__count { font-size: 14px; font-weight: 600; color: var(--on-dark-soft); font-variant-numeric: tabular-nums; }
.vpanel__title { font-size: clamp(32px, 3.8vw, 60px); font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: var(--on-dark); max-width: 14ch; text-wrap: balance; }
.vpanel__title span { color: var(--mint); }
.vpanel__pills { margin-top: auto; display: grid; gap: 8px; max-width: 520px; }
.vpanel__pills .tpill { justify-content: space-between; min-height: 56px; padding-left: 20px; border-radius: 18px; }
.vpanel__pills .tpill { align-items: center; padding-top: 12px; padding-bottom: 12px; }
.tpill__body { flex: 1; display: grid; gap: 3px; text-align: left; }
.tpill__sub { font-size: 13px; font-weight: 500; line-height: 1.35; opacity: .7; }
.tpill__when { flex: none; }
.vpanel__pills a.tpill { padding-right: 12px; }
.vpanel__media { margin: 0; position: relative; }
.vpanel__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tpill { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 8px 6px 16px; border: 0; border-radius: 999px; background: var(--veil); color: var(--on-dark); font: 600 15px var(--font); text-decoration: none; cursor: pointer; transition: background-color .2s ease, color .2s ease, transform .2s var(--ease-out); }
.tpill:hover { transform: translateY(-2px); background: var(--veil-2); }
.tpill__when { font-size: 13px; padding: 5px 10px; border-radius: 999px; background: rgba(243, 245, 251, .1); color: var(--on-dark-soft); }
.tpill--now { background: var(--paper); color: var(--ink); }
.tpill--now:hover { background: var(--white); }
.tpill--now .tpill__when { background: var(--mint); color: var(--ink); }
.tpill__icon { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); position: relative; flex: none; }
.tpill__icon::before, .tpill__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--paper); transform: translate(-50%, -50%); }
.tpill__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.tpill--now[aria-pressed="true"] { background: var(--mint); }
.tpill--now[aria-pressed="true"] .tpill__when { background: var(--ink); color: var(--mint); }
.tpill--now[aria-pressed="true"] .tpill__icon { background: var(--ink) var(--check-cyan) center / 14px no-repeat; }
.tpill--now[aria-pressed="true"] .tpill__icon::before, .tpill--now[aria-pressed="true"] .tpill__icon::after { display: none; }
.footer__credits { width: 100%; font-size: 12px; opacity: .7; }

/* O que vais aprender: propósito à esquerda, temas à direita */
.aprende { background: var(--ink); padding: clamp(32px, 5vw, 80px) var(--margin) var(--gap-section); }
.aprende > * { min-width: 0; }
.aprende__side { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.aprende__side > p { margin-top: 20px; max-width: 42ch; color: var(--on-dark-soft); font-size: var(--lead); }
.aprende__side .explica__verbs { width: 100%; }
.aprende__side > .btn { margin-top: 28px; }
.aprende__stage { position: relative; min-height: 460px; display: grid; align-items: center; }
.tpanel { grid-area: 1 / 1; position: relative; }
.js-tabs .tpanel { opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .2s ease, transform .25s ease, visibility 0s .2s; }
.js-tabs .tpanel.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease, transform .35s var(--ease-out); }
.tpanel__word { position: absolute; z-index: 0; top: -0.72em; left: -0.04em; font-size: clamp(56px, 6vw, 100px); font-weight: 700; text-transform: uppercase; letter-spacing: -0.06em; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(0, 242, 192, .35); pointer-events: none; white-space: nowrap; }
.tpanel__cards { position: relative; z-index: 1; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tpanel__cards--1 { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
.tcard { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--r-lg); background: var(--ink-2); transition: transform .35s var(--ease-out), background-color .25s ease; }
.tcard:hover { transform: translateY(-4px) rotate(-.4deg); background: var(--ink-3); }
.tcard--now { background: var(--paper); color: var(--ink); }
.tcard--now:hover { background: var(--white); }
.tpanel__cards .tcard:nth-child(2) { transform: translateY(28px); }
.tpanel__cards .tcard:nth-child(2):hover { transform: translateY(24px) rotate(.4deg); }
.tcard__icon { width: 48px; height: 48px; fill: none; stroke: var(--mint); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tcard--now .tcard__icon { stroke: var(--cobalt); }
.tcard__t { font-size: clamp(21px, 1.7vw, 26px); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; }
.tcard__d { font-size: var(--small); color: var(--on-dark-soft); }
.tcard--now .tcard__d { color: var(--on-light-soft); }
.tcard__foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tcard .tema__when { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--veil); color: var(--on-dark-soft); }
.tcard--now .tema__when { background: var(--mint); color: var(--ink); }
.tcard__add, .tcard__news { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border: 0; border-radius: 999px; font: 600 14px var(--font); cursor: pointer; text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.tcard__add { background: var(--ink); color: var(--on-dark); }
.tcard__add::before { content: "+"; font-size: 18px; line-height: 1; }
.tcard__add:hover { background: var(--cobalt); }
.tcard__on { display: none; }
.tcard__add[aria-pressed="true"] { background: var(--mint); color: var(--ink); }
.tcard__add[aria-pressed="true"]::before { content: ""; width: 14px; height: 14px; background: var(--check-ink) center / contain no-repeat; }
.tcard__add[aria-pressed="true"] .tcard__on { display: inline; }
.tcard__add[aria-pressed="true"] .tcard__off { display: none; }
.tcard__news { background: var(--veil); color: var(--on-dark); }
.tcard__news:hover { background: var(--veil-2); }

/* O que vais aprender: verbos à esquerda, painel à direita */
.explica { background: var(--ink); padding: var(--gap-section) var(--margin); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.explica > * { min-width: 0; }
.explica__verbs { max-width: 100%; }
.explica__side > p { margin-top: 20px; max-width: 40ch; color: var(--on-dark-soft); font-size: var(--lead); }
.explica__verbs { margin-top: 32px; display: grid; gap: 4px; }
.explica__verb { text-align: left; border: 0; background: none; cursor: pointer; padding: 10px 16px; border-radius: var(--r-md); min-height: 56px; font-size: clamp(24px, 2.2vw, 32px); font-weight: 700; letter-spacing: -0.035em; color: var(--on-dark-soft); opacity: .55; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; transition: opacity .25s ease, color .25s ease, background-color .25s ease; }
.explica__verb span { font-size: 16px; font-weight: 500; letter-spacing: 0; }
.explica__verb:hover { opacity: .85; background: var(--veil); }
.explica__verb.is-active { color: var(--cyan); opacity: 1; background: var(--veil); }
.explica__verb.is-active span { color: var(--on-dark); }

/* Ícones a flutuar por trás do hero */
.hero__icons { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.fi { position: absolute; width: 56px; height: 56px; fill: none; stroke: var(--on-dark-soft); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .28; animation: drift 9s ease-in-out infinite alternate; }
.fi--1 { left: 47%; top: 16%; }
.fi--2 { right: 4%; top: 13%; animation-delay: -2s; width: 48px; }
.fi--3 { left: 52%; bottom: 14%; animation-delay: -4s; }
.fi--4 { right: 2%; bottom: 22%; animation-delay: -1s; width: 64px; height: 64px; }
.fi--5 { left: 4%; bottom: 13%; animation-delay: -6s; width: 44px; }
.fi--6 { left: 30%; top: 12%; animation-delay: -3s; width: 46px; }
/* Stickers: ícones menta grandes, ligados ao tema de cada secção */
.aprende, .bento-wrap, .parceiros { position: relative; isolation: isolate; overflow: clip; }
.stk { position: absolute; z-index: -1; pointer-events: none; fill: none; stroke: var(--mint); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.stk--chip { stroke: var(--ink); stroke-width: 3.4; }
.stk__bg { fill: var(--mint); stroke: none; }
/* Mealheiro: a moeda cai na ranhura (main.js); sem animação fica parada por cima */
.piggy__euro { stroke-width: 1.2; }
.piggy--done .piggy__euro { stroke-width: 1.8; }
.piggy__sparks { opacity: 0; }
@media (hover: hover) { .stk.piggy { pointer-events: auto; z-index: 1; } }
.stk--hero-a { width: 92px; height: 92px; left: 44%; top: 15%; transform: rotate(-12deg); }
.stk--hero-b { width: 84px; height: 84px; left: 3%; bottom: 9%; transform: rotate(8deg); }
.stk--aprende { width: clamp(110px, 12vw, 170px); height: auto; aspect-ratio: 1; right: 5%; top: 5%; transform: rotate(10deg); }
.stk--bento { width: clamp(96px, 9vw, 132px); height: auto; aspect-ratio: 1; right: 6%; top: 7%; transform: rotate(-10deg); }
.stk--parceiros { width: clamp(100px, 10vw, 140px); height: auto; aspect-ratio: 1; right: 7%; top: 8%; transform: rotate(12deg); }
.vpanel__copy { position: relative; }
.vpanel__badge { position: absolute; z-index: 1; right: clamp(28px, 4vw, 56px); top: clamp(28px, 4vw, 56px); width: clamp(84px, 8vw, 112px); height: auto; aspect-ratio: 1; transform: rotate(-8deg); filter: drop-shadow(0 10px 20px rgba(10, 15, 46, .35)); }
.vpanel:not([hidden]) .vpanel__badge { animation: stk-pop .4s var(--ease-out) .1s backwards; }
@keyframes stk-pop { from { opacity: 0; transform: scale(.8) rotate(-12deg); } }
@keyframes drift { from { transform: translate(0, 0) rotate(-4deg); } to { transform: translate(10px, -18px) rotate(5deg); } }

/* O teu salário, desmontado */
.viz {
  position: relative; background: var(--ink-2); border-radius: var(--r-xl); padding: clamp(20px, 2.4vw, 32px);
  display: flex; flex-direction: column; gap: 18px;
}
.viz__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.viz__title { font-size: clamp(18px, 1.5vw, 22px); font-weight: 600; letter-spacing: -0.02em; transition: opacity .25s ease; }
.viz__chip { font-size: 14px; font-weight: 600; text-decoration: none; padding: 8px 14px; border-radius: 999px; background: var(--veil); color: var(--cyan); transition: background-color .2s ease, opacity .25s ease; min-height: 36px; display: inline-flex; align-items: center; }
.viz__chip:hover { background: var(--veil-2); }
.viz.is-swapping .viz__title, .viz.is-swapping .viz__chip { opacity: 0; }
.viz__stage { width: 100%; height: auto; overflow: visible; font-family: var(--font); font-variant-numeric: tabular-nums; }
.viz__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.viz__dots { display: flex; gap: 6px; }
.viz__dot { width: 44px; height: 44px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-content: center; }
.viz__dot::before { content: ""; width: 10px; height: 10px; border-radius: 999px; background: var(--veil-2); transition: width .3s var(--ease-out), background-color .3s ease; }
.viz__dot.is-active::before { width: 28px; background: var(--cyan); }
.viz__next { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--on-dark-soft); padding: 8px 14px; border-radius: 999px; background: var(--veil); }
.viz__next strong { color: var(--on-dark); font-weight: 600; }
.viz__note { font-size: 13px; color: var(--on-dark-soft); }

/* Peças do SVG */
.t-small { font-size: 15px; fill: var(--on-dark-soft); }
.t-mid { font-size: 24px; font-weight: 600; fill: var(--on-dark); letter-spacing: -0.02em; }
.t-big { font-size: 46px; font-weight: 700; fill: var(--on-dark); letter-spacing: -0.04em; }
.t-cyan { fill: var(--cyan); }
.t-amber { fill: var(--amber); }
.t-ink { fill: var(--ink); }
.c-cyan { fill: var(--cyan); }
.c-amber { fill: var(--amber); }
.c-white { fill: var(--white); }
.c-cobalt { fill: var(--cobalt); }
.c-veil { fill: var(--veil); }
.goal { stroke: var(--cyan); stroke-width: 2; stroke-dasharray: .015 .012; }
.shield { fill: none; stroke: var(--cyan); stroke-width: 5; stroke-linejoin: round; }
.tick { fill: none; stroke: var(--cyan); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.strike { stroke: var(--amber); stroke-width: 4; stroke-linecap: round; }
.axis { stroke: var(--veil-2); stroke-width: 2; }
.area { fill: rgba(59, 227, 255, .12); }
.line-main { fill: none; stroke: var(--cyan); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.line-soft { fill: none; stroke: var(--on-dark-soft); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; }

/* Cenas: entram quando ficam ativas; ao sair, só voltam ao início depois de desaparecerem */
.vscene { opacity: 0; transition: opacity .3s ease; }
.vscene.is-active { opacity: 1; }
.grow-x, .grow-y { transform-box: fill-box; transition: transform .6s var(--ease-out) calc(var(--d, 0s) * .6); }
.grow-x { transform-origin: left center; transform: scaleX(0); }
.grow-y { transform-origin: center bottom; transform: scaleY(0); }
.is-active .grow-x { transform: scaleX(1); }
.is-active .grow-y { transform: scaleY(1); }
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .8s ease calc(var(--d, 0s) * .6); }
.goal.draw { stroke-dasharray: .015 .012; stroke-dashoffset: 0; opacity: 0; transition: opacity .6s ease var(--d, 0s); }
.is-active .goal.draw { opacity: 1; }
.is-active .draw { stroke-dashoffset: 0; }
.fade { opacity: 0; transition: opacity .4s ease calc(var(--d, 0s) * .6); }
.is-active .fade { opacity: 1; }
.vscene:not(.is-active) .grow-x, .vscene:not(.is-active) .grow-y, .vscene:not(.is-active) .draw, .vscene:not(.is-active) .fade { transition-duration: 0s; transition-delay: .45s; }

/* PROVA: a maior escola, em números */

/* MANIFESTO */
.manifesto { padding: clamp(72px, 12vh, 140px) var(--margin) clamp(48px, 6vw, 96px); display: grid; gap: 36px; align-content: center; }
.manifesto__title { font-size: clamp(30px, 7vw, 120px); font-weight: 700; text-transform: uppercase; line-height: .9; letter-spacing: -0.05em; max-width: 20ch; text-wrap: balance; }
.manifesto__text { font-size: clamp(22px, 2.3vw, 34px); font-weight: 500; line-height: 1.25; letter-spacing: -0.02em; max-width: 46ch; margin-left: auto; text-wrap: pretty; }
.mw { opacity: .22; transition: opacity .2s linear; }

/* BENTO */
.bento-wrap { background: var(--paper); color: var(--on-light); padding: var(--gap-section) var(--margin); border-radius: var(--r-xl) var(--r-xl) 0 0; }
.bento-wrap .section-head, .parceiros .section-head { flex-direction: column; align-items: flex-start; gap: 20px; }
/* Texto do programa a toda a largura, justificado */
.bento-wrap .section-head > p { max-width: none; width: 100%; text-align: justify; hyphens: auto; }
.parceiros .section-head > p { text-align: justify; hyphens: auto; }
.bento {
  margin-top: 48px; display: grid; gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas: "photo photo ink ink" "photo photo cobalt cyan";
}
.bento__tile { border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; min-height: 240px; position: relative; overflow: hidden; }
.bento__tile--photo { grid-area: photo; padding: 0; min-height: 500px; }
.bento__tile--photo video { position: absolute; inset: 0; object-position: 50% 60%; }
.bento__tile--photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px;
  display: flex; flex-direction: column; gap: 4px; color: var(--white);
  background: linear-gradient(to top, rgba(10, 15, 46, .78), transparent); /* taste-skill-ignore: scrim neutro sob texto em foto */
}
.bento__tile--cobalt { grid-area: cobalt; background: var(--cyan); color: var(--ink); } /* o mesmo ciano dos botões de inscrição */
.bento__tile--cyan { grid-area: cyan; background: var(--mint); color: var(--ink); transform: rotate(1.5deg); }
.bento__tile--ink { grid-area: ink; background: var(--ink); color: var(--on-dark); min-height: 220px; }
.bento__tile--mist { grid-area: mist; background: var(--mist); }
.bento__big { font-size: clamp(48px, 5.4vw, 88px); font-weight: 700; line-height: .9; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.bento__kicker { font-size: clamp(24px, 2.2vw, 34px); font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; max-width: 18ch; }
.bento__h { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.topics li { background: var(--white); border-radius: 999px; padding: 12px 18px; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.topics li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--cobalt); }

/* AULAS */
.aulas { background: var(--ink); }
.aulas__pin { padding: var(--gap-section) 0 clamp(64px, 7vw, 112px); display: flex; flex-direction: column; gap: 40px; }
.aulas__head { padding: 0 var(--margin); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; }
.aulas__sub { margin-top: 20px; max-width: 46ch; font-size: var(--lead); color: var(--on-dark-soft); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 44px; font: 600 var(--small)/1 var(--font); padding: 12px 20px; border: 0; border-radius: 999px; cursor: pointer; background: var(--veil); color: var(--on-dark); transition: background-color .2s ease, color .2s ease; }
.chip span { opacity: .6; margin-left: 4px; }
.chip:hover { background: var(--veil-2); }
.chip.is-active { background: var(--on-dark); color: var(--ink); }
.aulas__pin { overflow: hidden; }
.cards-viewport { contain: paint; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--margin); scrollbar-width: none; overscroll-behavior-x: contain; }
.cards-viewport::-webkit-scrollbar { display: none; }
.cards-viewport.has-more { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); /* taste-skill-ignore: sinal de que há mais aulas */ }
.cards { display: flex; gap: 16px; padding: 4px var(--margin); width: max-content; }
.cards .card { width: clamp(290px, 27vw, 400px); scroll-snap-align: start; }
.scroller-nav { display: inline-flex; gap: 8px; margin-left: 8px; }
.scroller-btn { width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--cyan); color: var(--ink); font-size: 22px; font-weight: 600; cursor: pointer; display: grid; place-content: center; transition: transform .2s var(--ease-out), background-color .2s ease, opacity .2s ease; }
.scroller-btn:hover:not(:disabled) { transform: translateX(var(--nudge, 2px)); }
.scroller-btn[data-dir="-1"] { --nudge: -2px; }
.scroller-btn:disabled { background: var(--veil); color: var(--on-dark-soft); cursor: default; }
.card__thumb { overflow: hidden; background: var(--ink-3); }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; }


.card {
  background: var(--ink-2); border-radius: var(--r-lg); padding: 10px;
  display: flex; flex-direction: column;
  outline: 2px solid transparent; outline-offset: -2px;
  transition: transform .4s var(--ease-out), background-color .25s ease, outline-color .25s ease;
}
.card:hover { background: var(--ink-3); }
.card.is-hidden { display: none; }
.card.is-picked { outline-color: var(--mint); }
.card__thumb { aspect-ratio: 16 / 10; border-radius: var(--r-md); }
.chips { align-items: center; }
.card__thumb img { transition: transform .6s var(--ease-out); }
.card:hover .card__thumb img { transform: scale(1.06); }
.card__body { padding: 18px 14px 14px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card__date { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card__date time { font-size: 30px; font-weight: 700; letter-spacing: -0.04em; text-transform: uppercase; }
.card__date span { font-size: var(--small); color: var(--on-dark-soft); }
.card__title { font-size: 21px; font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; }
.card__text { font-size: var(--small); color: var(--on-dark-soft); line-height: 1.5; }
.card__guide { align-self: flex-start; font-size: var(--small); font-weight: 600; color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; padding: 6px 0; }
.card__guide:hover { text-decoration-thickness: 2px; }
.card__guide:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.card__meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.card__meta li { font-size: 14px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--veil); }
.card__pick {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px;
  border-radius: 999px; background: var(--veil); font-weight: 600; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .2s var(--ease-out);
}
.card__pick:hover { background: var(--veil-2); }
.card__pick:active { transform: scale(.98); }
.card__pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.card__pick:has(input:focus-visible) { outline: 3px solid var(--cyan); outline-offset: 3px; }
.card__pick::before { content: "+"; font-size: 22px; line-height: 1; font-weight: 500; }
.card__pick-on { display: none; }
.card__pick:has(input:checked) { background: var(--mint); color: var(--ink); }
.card__pick:has(input:checked)::before { content: ""; width: 18px; height: 18px; background: var(--check-ink) center / contain no-repeat; }
.card__pick:has(input:checked) .card__pick-on { display: inline; }
.card__pick:has(input:checked) .card__pick-off { display: none; }
.card.is-past { opacity: .45; }

/* TEMAS AO LONGO DO ANO */
.temas { background: var(--paper); color: var(--on-light); padding: var(--gap-section) var(--margin); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.temas__head { position: sticky; top: 110px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.temas__head p { max-width: 40ch; font-size: var(--lead); }
.temas__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tema { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--r-lg); background: var(--mist); }
.tema--now { background: var(--white); }
.tema__t { font-size: 21px; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.tema__d { font-size: var(--small); color: var(--on-light-soft); }
.tema__when { margin-top: auto; align-self: flex-start; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(10, 15, 46, .08); color: var(--on-light-soft); }
.tema--now .tema__when { background: var(--mint); color: var(--ink); }
.form__consent--opt { color: var(--on-light-soft); }

/* ALUNOS: retrato redondo, etiqueta, citação curta e autor */
.alunos { background: var(--paper); color: var(--on-light); padding: var(--gap-section) var(--margin) 0; }
.testis { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.testi { display: flex; gap: 22px; align-items: center; }
.testi__photo { flex: none; width: 140px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--ink); }
.testi__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; transform: scale(1.2); transform-origin: 88% 50%; }
/* Retratos quadrados (fotos enviadas pelos alunos): cara centrada, sem zoom */
/* <picture> (AVIF/WebP com JPG de reserva) não mexe no layout: a regra continua a ser da <img> */
picture { display: contents; }
.testi__photo img.is-portrait { object-position: 50% 30%; transform: none; }
.testi__body { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.testi__tag { font-size: 14px; padding: 4px 12px; border-radius: 999px; border: 1px solid #8A91B0; color: var(--on-light-soft); /* taste-skill-ignore: etiqueta em contorno pedida pela referência */ }
.testi__quote { font-size: clamp(19px, 1.5vw, 22px); font-weight: 600; line-height: 1.22; letter-spacing: -0.015em; color: var(--ink); }
.testi__by { font-size: 15px; color: var(--on-light-soft); display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; }
.testi__name { border: 0; background: none; padding: 0; min-height: 44px; font: 500 15px var(--font); color: var(--cobalt); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.testi__name:hover { color: var(--ink); }
/* Pontos do carrossel dos testemunhos (só em tablet e telemóvel) */
/* Área de toque de 44px; o ponto visível continua pequeno */
.testi__dots { display: none; justify-content: center; gap: 0; margin-top: 8px; }
.testi__dots button { width: 44px; height: 44px; padding: 0; border: 0; background: none; display: grid; place-items: center; cursor: pointer; }
.testi__dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(10, 15, 46, .2); transition: width .25s var(--ease-out), background-color .25s ease; }
.testi__dots button[aria-current="true"]::before { width: 22px; border-radius: 4px; background: var(--cobalt); }
.testi-dialog { width: min(640px, calc(100% - 32px)); border: 0; border-radius: var(--r-lg); padding: 40px; background: var(--paper); color: var(--on-light); }
.testi-dialog::backdrop { background: rgba(10, 15, 46, .7); }
.testi-dialog blockquote { margin-top: 16px; font-size: 19px; line-height: 1.5; }
.testi-dialog__who { margin-top: 20px; font-weight: 700; }
.testi-dialog__close { position: absolute; top: 8px; right: 8px; }
/* Botão pequeno no canto, fora da etiqueta; a área de toque continua com 44 px */
.testi-dialog__close button { position: relative; width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--mist); color: var(--ink); font-size: 16px; line-height: 1; cursor: pointer; }
.testi-dialog__close button::after { content: ""; position: absolute; inset: -8px; }

/* PARCEIROS: cada logótipo no seu cartão, em quatro faixas; os cartões são mais pequenos do que os ficheiros para ficarem nítidos */
.parceiros { background: var(--paper); color: var(--on-light); padding: var(--gap-section) var(--margin); }
.logos { margin-top: 48px; }
.logos__dup { display: contents; }
.logos__lanes {
  display: grid; gap: 10px; margin-inline: calc(var(--margin) * -1); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); /* taste-skill-ignore: esbater as pontas das faixas */
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); /* taste-skill-ignore: esbater as pontas */
}
.logos__track { display: flex; width: max-content; animation: slide var(--dur, 80s) linear infinite; }
.logos__lane--rev .logos__track { animation-direction: reverse; }
.logo-tile { flex: none; width: 132px; height: 72px; margin-right: 10px; display: grid; place-items: center; padding: 12px 16px; border-radius: 16px; background: var(--white); transition: transform .3s var(--ease-out); }
.logo-tile:hover { transform: scale(1.06); }
.logo-tile img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
@keyframes slide { to { transform: translateX(-50%); } }

/* DESAFIO */
.desafio {
  background: var(--ink); padding: var(--gap-section) var(--margin); border-radius: var(--r-xl) var(--r-xl) 0 0; margin-top: calc(var(--r-xl) * -1);
  position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 112px); align-items: start;
}
/* Coluna fixa: título, etapas e ação */
.desafio__side { position: sticky; top: 110px; display: flex; flex-direction: column; align-items: flex-start; gap: 40px; }
.desafio__title { position: relative; font-size: clamp(56px, 8.4vw, 150px); font-weight: 700; text-transform: uppercase; letter-spacing: -0.06em; line-height: .86; }
.desafio__outline { display: block; color: transparent; -webkit-text-stroke: 2px var(--cyan); }
/* A cópia sólida revela-se de cima para baixo com o scroll (--fill vai de 0 a 1) */
.desafio__fill { position: absolute; inset: 0; color: var(--cyan); clip-path: inset(0 0 calc((1 - var(--fill, 1)) * 100%) 0); }
.drail { display: grid; gap: 4px; padding-left: 18px; position: relative; }
.drail::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--veil-2); }
.drail__step { position: relative; }
.drail__step::before { content: ""; position: absolute; left: -18px; top: 10px; width: 3px; height: 24px; border-radius: 3px; background: var(--cyan); transform: scaleY(0); transition: transform .4s var(--ease-out); }
.drail__step.is-on::before { transform: scaleY(1); }
.drail__step a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--on-dark-soft); opacity: .6; transition: color .3s ease, opacity .3s ease; }
.drail__step.is-on a { color: var(--on-dark); opacity: 1; }

/* Painéis da história */
.desafio__story { display: flex; flex-direction: column; gap: 20px; }
.dpanel {
  min-height: 56svh; display: flex; flex-direction: column; justify-content: center; gap: 28px;
  padding: clamp(28px, 4vw, 56px); border-radius: var(--r-xl); background: var(--ink-2);
  opacity: .4; transform: scale(.97); transition: opacity .5s ease, transform .6s var(--ease-out), background-color .5s ease;
}
.dpanel.is-on { opacity: 1; transform: none; }
.dpanel__label { font-size: 15px; font-weight: 600; color: var(--cyan); }
.desafio__quote { position: relative; padding-top: 64px; }
.desafio__mark { position: absolute; top: -28px; left: -6px; font-size: 160px; font-weight: 700; line-height: 1; color: var(--mint); }
.desafio__quote p { position: relative; font-size: clamp(24px, 2.3vw, 34px); line-height: 1.22; letter-spacing: -0.025em; font-weight: 600; max-width: 24ch; }
.desafio__quote footer { margin-top: 28px; display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--on-dark-soft); }
.desafio__quote footer img { width: 72px; filter: brightness(0) invert(1); }
.desafio__quote footer strong { display: block; color: var(--on-dark); }
.dpanel__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dfact { padding: 24px; border-radius: var(--r-lg); background: var(--ink-3); display: flex; flex-direction: column; gap: 12px; }
.dfact h3 { font-size: 22px; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.dfact p { color: var(--on-dark-soft); }
.dfact__icon { width: 72px; height: 72px; fill: none; stroke: var(--cyan); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.dfact__icon .coin, .dfact__icon .coin-e { transform-box: fill-box; transform-origin: center; animation: shrink 3.2s ease-in-out infinite; }
.dfact__icon .arrow { stroke: var(--amber); animation: dip 3.2s ease-in-out infinite; }
.dfact__icon .drop { fill: var(--amber); stroke: none; animation: drop 2.4s cubic-bezier(.5, 0, .75, 0) infinite; }
@keyframes shrink { 0%, 20% { transform: scale(1); } 60%, 80% { transform: scale(.72); } 100% { transform: scale(1); } }
@keyframes dip { 0%, 20% { transform: translateY(-4px); opacity: .4; } 60%, 80% { transform: translateY(4px); opacity: 1; } 100% { transform: translateY(-4px); opacity: .4; } }
@keyframes drop { 0% { transform: translateY(-6px); opacity: 0; } 15% { opacity: 1; } 70% { transform: translateY(24px); opacity: 1; } 80%, 100% { transform: translateY(26px); opacity: 0; } }
.dpanel--solution.is-on { background: var(--cobalt); }
.dpanel--solution .dpanel__label { color: var(--white); }
.dpanel__big p { font-size: clamp(28px, 3vw, 36px); font-weight: 700; line-height: 1.12; letter-spacing: -0.035em; max-width: 20ch; }
.dpanel__big footer { margin-top: 14px; font-size: 15px; color: #D3DAFF; }
.dpanel__gives { display: flex; flex-wrap: wrap; gap: 8px; }
.dpanel__gives li { padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.dpanel__gives li::before { content: ""; width: 14px; height: 14px; background: var(--check-cyan) center / contain no-repeat; }
.dpanel .btn { align-self: flex-start; }
.desafio__dots { display: none; justify-content: center; gap: 8px; margin-top: 16px; }
.desafio__dots button { width: 28px; height: 28px; padding: 0; border: 0; background: none; display: grid; place-items: center; cursor: pointer; }
.desafio__dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--veil-2); transition: width .25s var(--ease-out), background-color .25s ease; }
.desafio__dots button[aria-current="true"]::before { width: 22px; border-radius: 4px; background: var(--cyan); }
.mws { opacity: .45; transition: opacity .25s linear; }

/* FAQ */
.faq { background: var(--paper); color: var(--on-light); padding: var(--gap-section) var(--margin); display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 112px); align-items: start; }
.faq__head { position: sticky; top: 110px; }
.faq__head p { margin-top: 24px; max-width: 36ch; }
.faq__list { display: grid; gap: 10px; }
.faq__item { background: var(--mist); border-radius: var(--r-md); transition: background-color .25s ease, color .25s ease; }
.faq__item[open] { background: var(--ink); color: var(--on-dark); }
.faq__item summary {
  list-style: none; cursor: pointer; min-height: 64px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 18px 20px 18px 26px; font-size: clamp(18px, 1.5vw, 22px); font-weight: 600; letter-spacing: -0.01em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__q { font: inherit; letter-spacing: inherit; margin: 0; }
.faq__item summary::after {
  content: "+"; flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-content: center; font-size: 24px; font-weight: 500;
  background: var(--ink); color: var(--on-dark);
  transition: transform .35s var(--ease-out), background-color .2s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); background: var(--mint); color: var(--ink); }
.faq__answer { overflow: hidden; }
.faq__answer p { padding: 0 26px 26px; max-width: 60ch; color: inherit; }

/* INSCRIÇÃO */
.inscricao { background: var(--paper); padding: var(--gap-section) var(--margin) 0; }
.inscricao__panel {
  background: var(--cyan); color: var(--ink); border-radius: var(--r-xl);
  padding: clamp(28px, 5vw, 72px);
  display: grid; grid-template-columns: 5fr 6fr; gap: clamp(28px, 5vw, 80px); align-items: center;
}
.inscricao__title { font-size: clamp(44px, 6.4vw, 110px); font-weight: 700; text-transform: uppercase; line-height: .88; letter-spacing: -0.05em; text-wrap: balance; }
.inscricao__intro > p { margin-top: 24px; font-size: var(--lead); max-width: 34ch; }
.perks { margin-top: 28px; display: grid; gap: 12px; }
.perks li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.perks li::before { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ink) var(--check-cyan) center / 14px no-repeat; }
.inscricao__form { background: var(--paper); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 36px); }
.form { display: grid; gap: 20px; }
.form__picks { border: 0; padding: 0; margin: 0; min-width: 0; }
.form__picks-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-height: 340px; overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; scrollbar-width: thin; }
.form__picks legend { width: 100%; display: flex; justify-content: space-between; align-items: center; font-weight: 600; margin-bottom: 10px; padding: 0; }
.form__all { border: 0; background: none; padding: 10px 0; min-height: 44px; font-weight: 600; color: var(--cobalt); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.form__picks label {
  display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px;
  background: var(--mist); border-radius: var(--r-md); cursor: pointer; font-size: var(--small); line-height: 1.25;
  transition: background-color .2s ease, color .2s ease;
}
.form__picks label b { display: block; font-size: var(--body); }
.form__picks label:has(input:checked) { background: var(--ink); color: var(--on-dark); }
.form__picks input { appearance: none; flex: none; width: 24px; height: 24px; margin: 0; border-radius: 50%; background: var(--white); display: grid; place-content: center; cursor: pointer; }
.form__picks input::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); opacity: 0; transform: scale(.6); transition: transform .2s var(--ease-out), opacity .2s ease; }
.form__picks input:checked { background: var(--cyan); }
.form__picks input:checked::after { opacity: 1; transform: scale(1); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field span { display: block; font-size: var(--small); font-weight: 600; margin-bottom: 6px; color: var(--on-light); }
.field input { width: 100%; min-height: 56px; font: 400 var(--body) var(--font); padding: 14px 18px; border: 0; background: var(--white); color: var(--on-light); border-radius: var(--r-md); }
.field input::placeholder { color: #8A91B0; }
.field input[aria-invalid="true"] { outline: 2px solid #D93A5B; outline-offset: -2px; }
.form__error { color: #B3123A; font-weight: 600; font-size: var(--small); min-height: 1.4em; }
.form__error:empty { display: none; }
.form__note { font-size: 14px; color: var(--on-light-soft); text-align: center; }
.form__done { color: var(--on-light); display: grid; gap: 12px; }
.piggy--done { width: 72px; height: 72px; fill: none; stroke: var(--ink); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.form__done h3 { font-size: 32px; font-weight: 700; letter-spacing: -0.03em; }
.form__cal { display: grid; gap: 8px; margin-top: 8px; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__unijobs { display: grid; gap: 10px; margin-top: 8px; padding: 16px 18px; border-radius: var(--r-md); background: var(--mist); font-size: var(--small); }
/* Calendário: cada aula abre a escolha do serviço (Google, Apple, Outlook, Yahoo, .ics) */
.cal { display: grid; gap: 6px; }
.cal__btn, .cal__all { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 12px 18px; border: 0; border-radius: var(--r-md); background: var(--mist); color: inherit; text-align: left; text-decoration: none; font: 600 var(--small)/1.3 var(--font); cursor: pointer; transition: background-color .2s ease; }
.cal__btn:hover, .cal__all:hover, .cal__btn[aria-expanded="true"] { background: #D3DAF0; }
.cal__add { color: var(--cobalt); white-space: nowrap; }
.cal__btn[aria-expanded="true"] .cal__add { color: var(--on-light-soft); }
.cal__all small { display: block; font-weight: 500; font-size: 13px; color: var(--on-light-soft); }
.cal__all::after { content: "Descarregar"; color: var(--cobalt); white-space: nowrap; }
.cal__menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 6px; border-radius: var(--r-md); background: var(--white); box-shadow: inset 0 0 0 1px var(--mist); animation: cal-in .22s var(--ease-out); }
.cal__menu[hidden] { display: none; }
@keyframes cal-in { from { opacity: 0; transform: translateY(-4px); } }
.cal__opt { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 10px; border-radius: 12px; color: var(--on-light); text-decoration: none; font-weight: 600; font-size: 14px; line-height: 1.2; }
.cal__opt:hover, .cal__opt:focus-visible { background: var(--mist); }
.cal__opt small { display: block; margin-top: 2px; font-weight: 500; font-size: 12px; color: var(--on-light-soft); }
.cal__ico { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: #fff; font: 700 13px/1 var(--font); letter-spacing: -0.02em; }
.cal__ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cal__ico--google { background: #1A73E8; }
.cal__ico--apple { background: #1D1D1F; }
.cal__ico--outlook { background: #0F6CBD; }
.cal__ico--office { background: #D83B01; }
.cal__ico--yahoo { background: #6001D2; font-size: 12px; }
.cal__ico--ics { background: var(--ink); }
@media (max-width: 420px) { .cal__menu { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .cal__menu { animation: none; } }

.form__consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--on-light); cursor: pointer; }
.form__consent input { appearance: none; flex: none; width: 24px; height: 24px; margin: 0; border-radius: 7px; background: var(--white); cursor: pointer; display: grid; place-content: center; transition: background-color .2s ease; }
.form__consent input::after { content: ""; width: 14px; height: 14px; background: var(--check-cyan) center / contain no-repeat; opacity: 0; transition: opacity .2s ease; }
.form__consent input:checked { background: var(--ink); }
.form__consent input:checked::after { opacity: 1; }
.form__consent input[aria-invalid="true"] { outline: 2px solid #D93A5B; outline-offset: 2px; }
.form__consent a { color: var(--cobalt); font-weight: 600; padding-block: 13px; margin-block: -13px; }

/* Botões de pausa para o que se move sozinho */
.pause-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--veil); color: var(--on-dark-soft); font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.pause-btn:hover { background: var(--veil-2); color: var(--on-dark); }
.pause-btn__icon { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.pause-btn[aria-pressed="true"] .pause-btn__icon { width: 0; height: 0; border: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.pause-btn--light { margin-top: 24px; background: var(--mist); color: var(--on-light); }
.pause-btn--light:hover { background: #D3DAF0; color: var(--on-light); }
.logos.is-paused .logos__track, .logos.is-off .logos__track { animation-play-state: paused; }
.logos__controls { display: flex; justify-content: center; }

/* FOOTER: uma linha, sem ruído */
.footer { background: var(--ink); color: var(--on-dark); padding: 56px var(--margin) calc(96px + env(safe-area-inset-bottom, 0px)); }
.footer__row { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.footer__brand { display: inline-flex; align-items: center; min-height: 44px; }
.footer__brand img { width: 150px; }
.footer__mail { font-size: 17px; font-weight: 600; user-select: all; }
.footer__social { display: flex; flex-wrap: wrap; gap: 4px; }
@media (max-width: 480px) { .footer__social { gap: 0; margin-inline: -10px; } .footer__social a { padding: 0 10px; } }
.footer__social a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; text-decoration: none; font-weight: 500; transition: background-color .2s ease, color .2s ease; }
.footer__social a:hover { background: var(--veil); color: var(--cyan); }
.footer__magma { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; font-size: 14px; color: var(--on-dark-soft); }
.footer__magma img { width: 104px; filter: brightness(0) invert(1); }
.footer__base { margin-top: 32px; padding-top: 24px; display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; font-size: 14px; color: var(--on-dark-soft); }
.footer__base a { color: var(--on-dark-soft); display: inline-block; padding-block: 12px; }
.footer__base a:hover { color: var(--on-dark); }

/* BARRA DE INSCRIÇÃO */
.dock {
  position: fixed; z-index: 45; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: min(560px, calc(100% - 2 * var(--margin)));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 24px; border-radius: 999px;
  background: var(--ink-3); color: var(--on-dark);
  box-shadow: 0 18px 50px -12px rgba(5, 8, 30, .55); /* taste-skill-ignore: barra flutuante */
  transform: translate(-50%, 160%); transition: transform .28s cubic-bezier(.4, 0, 1, 1);
}
.dock.is-on { transform: translate(-50%, 0); transition: transform .4s var(--ease-out); }
/* Voltar ao topo: aparece depois do primeiro ecrã e sobe quando a barra de inscrição está aberta */
.totop {
  position: fixed; z-index: 44; right: var(--margin); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--mint); color: var(--ink); box-shadow: 0 12px 30px -10px rgba(5, 8, 30, .6); /* taste-skill-ignore: botão flutuante */
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .2s ease, transform .3s var(--ease-out);
}
.totop svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.totop.is-on { opacity: 1; transform: translateY(var(--lift, 0px)); pointer-events: auto; }
.totop.is-on:hover { transform: translateY(calc(var(--lift, 0px) - 2px)); }
.totop.is-on:active { transform: translateY(var(--lift, 0px)) scale(.97); }
@media (max-width: 600px) { .totop { width: 44px; height: 44px; right: 12px; } .totop svg { width: 18px; height: 18px; } }
.dock.is-on + .totop { --lift: -76px; }
/* Painéis empilhados na mesma célula: a secção fica com a altura do maior e nada salta ao mudar de separador */
.vpanels { display: grid; }
.vpanels > .vpanel { grid-area: 1 / 1; }
.vpanels > .vpanel[hidden] { display: grid !important; visibility: hidden; pointer-events: none; }
.dock__count { font-weight: 600; line-height: 1.2; }
.dock__next { font-size: 14px; color: var(--on-dark-soft); }
.dock__next span { color: var(--cyan); font-weight: 600; }
.dock .btn { flex: none; }

/* Entradas: só escondemos quando o JS está pronto */
.js-motion [data-rise] { opacity: 0; transform: translateY(28px); }
.js-motion [data-hero] { opacity: 0; transform: translateY(16px); }

/* ECRÃS MÉDIOS */
@media (max-width: 1240px) {
  .nav { gap: 14px; }
  .nav__links a { padding: 10px 11px; }
  .nav__brand img { width: 128px; }
  .nav__partner-logos { --lh: 15px; }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .nav { flex-wrap: wrap; row-gap: 8px; }
  .nav__partners { order: 5; width: 100%; justify-content: center; }
  .nav__links a { padding: 10px 9px; }
}
@media (max-width: 1100px) {
  .testis { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; contain: paint; overscroll-behavior-x: contain;
    margin-inline: calc(var(--margin) * -1); padding: 4px var(--margin); scroll-padding-inline: var(--margin); }
  .testis::-webkit-scrollbar { display: none; }
  .testis .testi { flex: 0 0 min(86%, 520px); scroll-snap-align: start; padding: 20px; border-radius: var(--r-lg); background: var(--mist); }
  .testi__dots { display: flex; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "photo photo" "ink ink" "cobalt cyan"; }
  .bento__tile--photo { min-height: 380px; }
  .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .stk--aprende, .stk--bento, .stk--parceiros { width: 72px; top: 24px; }
  .stk--hero-a { width: 52px; height: 52px; left: auto; right: 4%; top: 118px; }
  .bento-wrap .section-head > p, .parceiros .section-head > p { text-align: left; }
  .stk--hero-b { width: 60px; height: 60px; }
  .vpanel__badge { width: 60px; right: 20px; top: 24px; }
  .vpanel__title { padding-right: 64px; }
  .vtabs { width: auto; margin-inline: calc(var(--margin) * -1); border-radius: 0; padding-inline: var(--margin); background: transparent; }
  .vtab { background: var(--ink-2); padding: 0 18px; }
  .vpanel { grid-template-columns: minmax(0, 1fr); min-height: 0; border-radius: 24px; }
  .vpanels { grid-template-columns: minmax(0, 1fr); }
  .vpanel__media { order: -1; aspect-ratio: 16 / 9; }
  .vpanel__pills { margin-top: 8px; }
  .manifesto { padding: clamp(56px, 10vh, 96px) var(--margin) 72px; }
  .tpanel__word { display: none; }
  .aprende { grid-template-columns: 1fr; }
  .aprende__stage { min-height: 0; }
  .tpanel__word { font-size: 64px; top: -46px; }
  .tpanel__cards .tcard:nth-child(2), .tpanel__cards .tcard:nth-child(2):hover { transform: none; }
  .faq, .inscricao__panel { grid-template-columns: 1fr; }
  .temas { grid-template-columns: 1fr; }
  .temas__head { position: static; }
  .explica { grid-template-columns: 1fr; }
  .hero__photo { aspect-ratio: 4 / 3; max-height: none; }
  .mini { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 16px 18px; }
  .mini__title { font-size: 22px; }
  .desafio { grid-template-columns: 1fr; }
  .desafio__side { position: static; gap: 24px; }
  .drail { display: none; }
  .desafio__cta { display: none; }
  .dpanel { min-height: 0; opacity: 1; transform: none; }
  .dpanel--solution { background: var(--cobalt); }
  .fi--1, .fi--3, .fi--6 { display: none; }
  .hero { grid-template-columns: 1fr; padding-bottom: 40px; min-height: 0; }
  .hero__foot { position: static; grid-column: 1 / -1; }
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .nav__menu { display: grid; }
  .nav { gap: 10px; }
  .faq__head { position: static; }
}
/* TELEMÓVEL */
@media (max-width: 600px) {
  .tpanel__cards { grid-template-columns: 1fr; }
  .aprende .explica__verbs { margin-bottom: 24px; }
  .nav { flex-wrap: wrap; row-gap: 8px; }
  .nav__partners { order: 5; width: 100%; justify-content: center; }
  .nav__partner-logos { gap: 12px; padding: 6px 12px; }
  .nav__partner-logos { --lh: 14px; }
  .hero { padding-top: 156px; }
  .inscricao__title { font-size: 9.6vw; }
  .temas__list { grid-template-columns: 1fr; }
  .hero__photo { aspect-ratio: 1; }
  .explica__verbs { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; scrollbar-width: none; }
  .explica__verb span { display: none; }
  .explica__verb { font-size: 20px; min-height: 48px; }
  .dpanel__big p { font-size: 23px; }
  .dpanel__pair { grid-template-columns: 1fr; }
  .desafio__mark { font-size: 120px; top: -20px; }
  .desafio__quote { padding-top: 48px; }
  .hero__partner-logos img { height: 20px; }
  .hero__title { font-size: 8.4vw; }
  .testi__photo { width: 96px; }
  /* No carrossel do telemóvel a foto fica por cima, para a frase ter a largura toda */
  .testis .testi { flex-direction: column; align-items: flex-start; gap: 14px; }
  .testis .testi__photo { width: 72px; }
  .logo-tile { width: 104px; height: 58px; padding: 9px 12px; border-radius: 13px; }
  :root { --body: 16px; }
  .nav__brand img { width: 120px; }
  .hero { padding-top: 144px; padding-bottom: 150px; }
  .chips { flex-wrap: nowrap; }
  .chip { padding-inline: 16px; }
  .scroller-nav { display: none; }
  .hero__actions { width: 100%; flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .hero__foot { flex-direction: column; align-items: center; text-align: center; bottom: 20px; }
  .hero__partners span { display: none; }
  .card__thumb { aspect-ratio: 16 / 8; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "photo" "ink" "cobalt" "cyan"; }
  .bento__tile { min-height: 0; }
  .bento__tile--photo { min-height: 340px; }
  .topics { grid-template-columns: 1fr; }
  .cards .card { width: 82vw; }
  .scroller-nav { margin-left: 0; }
  .manifesto__title { font-size: 8vw; }
  .form__picks-list, .form__row { grid-template-columns: 1fr; }
  .dock { padding-left: 18px; }
  .inscricao { padding-inline: 10px; }
  .inscricao__panel { padding: 28px 14px 14px; }
  .inscricao__intro { padding-inline: 8px; }
  .inscricao__form { padding: 18px 14px; }
  .form .btn--lg { font-size: 15.5px; padding-inline: 12px; letter-spacing: -0.01em; }
  .dock__next { display: none; }
  /* 2. Os parceiros ficam fixos por baixo da marca, também com o menu sólido */
  .nav.is-solid { box-shadow: 0 8px 24px rgba(10, 15, 46, .35); padding-top: calc(8px + env(safe-area-inset-top, 0px)); padding-bottom: 4px; row-gap: 4px; }
  .nav.is-solid .nav__partners { padding-top: 2px; border-top: 1px solid rgba(243, 245, 251, .12); }
  main > section[id] { scroll-margin-top: 112px; }
  /* Rodapé: os parceiros passam para a linha de baixo quando não cabem */
  .footer__with { flex-wrap: wrap; row-gap: 10px; }
  .partner-pill { --lh: 19px; gap: 16px; }
  /* Hero mais curto: sem margem de baixo a mais e foto mais larga */
  .hero { padding-bottom: 40px; }
  .hero__photo { aspect-ratio: 4 / 3; }
  /* 4. Temas: a data e o "+" passam para baixo do nome */
  .vpanel__pills .tpill { flex-wrap: wrap; row-gap: 10px; padding: 14px 12px 12px 16px; }
  .vpanel__pills .tpill__body { flex-basis: 100%; }
  .vpanel__pills .tpill__when { margin-right: auto; }
  .tpill__sub { font-size: 14px; }
  /* 5. Programa: 0 € e 90 min lado a lado */
  .bento { grid-template-columns: 1fr 1fr; grid-template-areas: "photo photo" "ink ink" "cobalt cyan"; gap: 10px; }
  .bento__tile { padding: 20px; gap: 12px; }
  .bento__tile--photo { min-height: 280px; }
  .bento__tile--cobalt .bento__big, .bento__tile--cyan .bento__big { font-size: 40px; }
  .bento__tile--cobalt p:not(.bento__big), .bento__tile--cyan p:not(.bento__big) { font-size: 14px; line-height: 1.35; }
  /* 5. O Desafio: os três cartões em carrossel de deslizar */
  .desafio__story { flex-direction: row; align-items: stretch; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; contain: paint;
    margin-inline: calc(var(--margin) * -1); padding: 4px var(--margin); scroll-padding-inline: var(--margin); overscroll-behavior-x: contain; }
  .desafio__story::-webkit-scrollbar { display: none; }
  .desafio__story .dpanel { flex: 0 0 86%; scroll-snap-align: start; }
  .desafio__story .dpanel { min-height: 0; justify-content: flex-start; gap: 18px; padding: 24px 20px; }
  .desafio__story .desafio__quote { padding-top: 40px; }
  .desafio__story .dpanel__pair { gap: 10px; }
  .desafio__story .dfact { padding: 16px; gap: 6px; }
  .desafio__story .dfact__icon { width: 40px; height: 40px; }
  .desafio__story .dfact h3 { font-size: 18px; }
  .desafio__story .dfact p { font-size: 14px; line-height: 1.4; }
  .desafio__dots { display: flex; }
  /* 6. Inscrição: vantagens numa linha compacta para o formulário subir */
  .perks { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 14px; }
  .perks li { font-size: 14px; gap: 8px; }
  .perks li::before { width: 22px; height: 22px; background-size: 12px; }
  .inscricao__intro > p { margin-top: 14px; }
}

@media (prefers-reduced-motion: reduce) {
   .vpanel:not([hidden]) .vpanel__badge { animation: none; }
  .vtab__bar { display: none; }
  .vpanel:not([hidden]) { animation: none; }
.dpanel { opacity: 1; transform: none; }
  .mws, .mw { opacity: 1 !important; }
  .vscene:not(.is-active) { display: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .js-motion [data-rise], .js-motion [data-hero] { opacity: 1; transform: none; }
  .manifesto__text .mw { opacity: 1; }
}

/* Telemóveis estreitos (320–360px): logótipos do menu e do rodapé mais compactos */
@media (max-width: 360px) {
  .nav__partner-logos { gap: 8px; padding: 5px 10px; --lh: 12px; }
  .partner-pill { --lh: 17px; gap: 12px; }
  /* Marca, botão e menu cabem numa só linha */
  .nav { gap: 8px; }
  .nav__brand img { width: 100px; }
  .nav__cta { padding-inline: 14px; font-size: 14px; }
}

/* Hero no telemóvel */
@media (max-width: 600px) {
  .hero__badge { font-size: 12px; letter-spacing: .1em; max-width: calc(100% - 64px); } /* espaço à direita para o mealheiro */
}

/* Edição terminada (main.js põe .is-ended no <html> depois da última aula) */
.is-ended .form__picks { display: none; }
