/* =============================================================================
   JORNADA STHEAM · v3 · "Bancada maker"
   Base clara, papelão e tapete de corte. O amarelo é só do H e do botão.
   ============================================================================= */

:root {
  --navy: #0a2f5c;
  --navy-2: #163f72;
  --ink: #1a2233;
  --ink-2: #4c5670;
  --bench: #f6f7f9;
  --white: #ffffff;
  --line: #dfe3ea;
  /* Cores da marca, letra por letra, tiradas do logotipo */
  --c-s: #e2245e;   /* S · Ciência (átomo) */
  --c-t: #f08515;   /* T · Tecnologia (engrenagem) */
  --c-h: #10935f;   /* H · Humanidades */
  --c-e: #008484;   /* E · Engenharia */
  --c-a: #005e88;   /* A · Artes */
  --c-m: #562677;   /* M · Matemática (pi) */
  --orange: var(--c-t);
  --orange-2: #f59a3a;
  --orange-3: #c4680a;
  --green: var(--c-h);
  --mat: #0b5f60;
  --mat-2: #084c4d;
  --blue: #2457c5;

  --f-display: "Nunito", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;

  --r-s: 8px;
  --r-m: 14px;
  --r-l: 24px;
  --hdr-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bench);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.08; letter-spacing: -.015em; color: var(--navy); text-wrap: balance; }
a { color: var(--blue); text-underline-offset: 3px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.i { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -.2em; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.wrap-narrow { width: min(780px, 100% - 40px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 10px 14px; border-radius: var(--r-s); z-index: 100; }
.skip:focus { left: 8px; }

/* ------------------------------------------------------------------ Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 1rem/1.15 var(--f-body);
  color: var(--navy);
  background: var(--orange);
  padding: .95em 1.5em;
  border-radius: var(--r-m);
  text-decoration: none; text-align: center;
  box-shadow: 0 4px 0 var(--orange-3);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { background: var(--orange-2); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--orange-3); }
.btn-sm { padding: .7em 1.1em; font-size: .92rem; box-shadow: 0 3px 0 var(--orange-3); }
.btn-lg { padding: 1.1em 1.8em; font-size: 1.08rem; }
.btn-block { display: flex; width: 100%; }
.link { font-weight: 600; color: var(--navy); }

/* --------------------------------------------------------------- Cabeçalho */
.hdr {
  position: sticky; top: 0; z-index: 50; height: var(--hdr-h);
  display: flex; align-items: center;
  background: rgba(246, 247, 249, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.hdr.scrolled { border-bottom-color: var(--line); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand-word { display: flex; align-items: baseline; font: 900 1.5rem/1 var(--f-display); letter-spacing: -.01em; }
.brand-word small { font: 800 .72rem/1 var(--f-display); color: var(--navy); margin-right: 6px; }
.c-s { --tc: var(--c-s); color: var(--c-s); } .c-t { --tc: var(--c-t); color: var(--c-t); } .c-h { --tc: var(--c-h); color: var(--c-h); }
.c-e { --tc: var(--c-e); color: var(--c-e); } .c-a { --tc: var(--c-a); color: var(--c-a); } .c-m { --tc: var(--c-m); color: var(--c-m); }
.brand-txt { display: flex; flex-direction: column; line-height: 1.2; }
.brand-txt small { font-size: .78rem; color: var(--ink-2); }
.nav { display: flex; gap: 24px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .93rem; font-weight: 500; }
.nav a:hover { color: var(--navy); text-decoration: underline; }

/* ----------------------------------------------------------------- Abertura */
.hero { padding: 36px 0 72px; overflow: hidden; }
.tiles {
  --gap: clamp(6px, 1.4vw, 18px);
  position: relative;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--gap);
  margin-bottom: 14px;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tiles-hint { font-size: .93rem; color: var(--ink-2); min-height: 1.6em; margin-bottom: clamp(26px, 4.4vw, 50px); }
.tiles-hint b { color: var(--navy); }
.tile {
  aspect-ratio: 1; display: grid; place-items: center;
  font: 800 clamp(2.4rem, 11vw, 9rem)/1 var(--f-display);
  color: var(--navy);
  background:
    var(--white);
  border-radius: clamp(8px, 1.6vw, 22px);
  border: 2px solid var(--line);
  box-shadow: inset 0 -7px 0 var(--tc, var(--line));
  color: var(--tc, var(--navy));
}
.tile-h {
  border: 0; padding: 0; cursor: pointer;
  color: var(--white);
  background: var(--green);
  box-shadow: inset 0 -7px 0 #0b6e47, 0 18px 30px -14px rgba(10, 47, 92, .45);
  transform: rotate(-5deg) translateY(-6%);
  z-index: 1;
}
.tile-h:focus-visible { outline: 4px solid var(--blue); outline-offset: 4px; border-radius: clamp(8px, 1.6vw, 22px); }

/* Tirar o H: ele sobe e sai, o STEAM se fecha no meio, depois o H volta */
.tiles.no-h .tile-h { opacity: 0; transform: rotate(16deg) translateY(-120%); }
.tiles.no-h .tile-l { transform: translateX(calc(50% + var(--gap) / 2)); }
.tiles.no-h .tile-r { transform: translateX(calc(-50% - var(--gap) / 2)); }

@media (prefers-reduced-motion: no-preference) {
  .tile { transition: transform .45s cubic-bezier(.3, 1.3, .5, 1), opacity .3s ease; }
  .tile-h:hover { transform: rotate(-9deg) translateY(-9%); }
  .tiles.is-in .tile-h { animation: drop .9s cubic-bezier(.3, 1.5, .5, 1) .25s both; }
  .tiles.is-in .tile-l { animation: part-l .6s ease .25s both; }
  .tiles.is-in .tile-r { animation: part-r .6s ease .25s both; }

  /* Os três H carimbando em sequência */
  .motion .h-list .h-chip { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), opacity .2s ease; }
  .motion .h-list:not(.is-in) .h-chip { opacity: 0; transform: scale(1.9) rotate(-28deg); }
  .motion .h-list li:nth-child(2) .h-chip { transition-delay: .25s; }
  .motion .h-list li:nth-child(3) .h-chip { transition-delay: .5s; }

  /* Os quatro passos se acendendo em ordem, e o 1 piscando no fim: é um ciclo */
  .motion .cycle li::before { transition: background .3s ease, color .3s ease; }
  .motion .cycle li::after { transition: transform .45s ease; }
  .motion .cycle li:nth-child(2)::before, .motion .cycle li:nth-child(2)::after { transition-delay: .45s; }
  .motion .cycle li:nth-child(3)::before, .motion .cycle li:nth-child(3)::after { transition-delay: .9s; }
  .motion .cycle li:nth-child(4)::before, .motion .cycle li:nth-child(4)::after { transition-delay: 1.35s; }
  .motion .cycle li:nth-child(5)::before, .motion .cycle li:nth-child(5)::after { transition-delay: 1.8s; }
  .motion .cycle li:nth-child(6)::before, .motion .cycle li:nth-child(6)::after { transition-delay: 2.25s; }
  .motion .cycle.is-in li:first-child::before { animation: again .6s ease 2.95s; }
}
@keyframes again { 50% { transform: scale(1.35); } }
@keyframes drop {
  from { opacity: 0; transform: rotate(14deg) translateY(-130%); }
  to { opacity: 1; transform: rotate(-5deg) translateY(-6%); }
}
@keyframes part-l { from { transform: translateX(58%); } to { transform: none; } }
@keyframes part-r { from { transform: translateX(-58%); } to { transform: none; } }

.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.7rem); font-weight: 800; max-width: 15ch; }
.hero-sub { margin-top: 22px; font-size: 1.16rem; color: var(--ink-2); max-width: 54ch; }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; }
.hero-note { margin-top: 22px; font-size: .93rem; color: var(--ink-2); }
.hero-note .i { color: var(--green); }
.hero-photo { position: relative; transform: rotate(2deg); }
.hero-photo img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-l); border: 8px solid var(--white); box-shadow: 0 24px 40px -24px rgba(18, 32, 63, .5); }
.hero-photo figcaption { margin-top: 12px; font-size: .88rem; color: var(--ink-2); padding-inline: 8px; }

/* -------------------------------------------------------------------- Fatos */
.facts { background: var(--white); border-block: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 28px 24px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact strong { display: block; font: 800 1.45rem/1.1 var(--f-display); color: var(--navy); margin-bottom: 8px; }
.fact span { font-size: .93rem; color: var(--ink-2); display: block; }

/* ------------------------------------------------------------------- Seções */
.sec { padding: clamp(64px, 9vw, 112px) 0; }
.sec-tint { background: var(--white); border-block: 1px solid var(--line); }
.sec-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.sec-head h2, .bio-copy h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 800; }
.lead { margin-top: 16px; font-size: 1.12rem; color: var(--ink-2); max-width: 62ch; }
.source { margin-top: 18px; font-size: .93rem; color: var(--ink-2); max-width: 56ch; }

/* Tapete de corte: a seção do problema */
.mat {
  color: #e8f3ef;
  background:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 100% 40px,
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 40px 100%,
    var(--mat);
}
.mat h2, .mat h3 { color: var(--white); }
.mat .lead { color: #cfe6df; }
.hard { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hard article { background: var(--mat-2); border-radius: var(--r-m); padding: 26px 24px; }
.hard h3 { font-size: 1.22rem; margin-bottom: 10px; }
.hard p { font-size: .98rem; color: #cfe6df; }
.mat-close { margin-top: 36px; font: 700 1.3rem/1.35 var(--f-display); color: #ffb35c; max-width: 34ch; }

/* O que é STHEAM */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.split .sec-head { margin-bottom: 0; }
.h-list { display: grid; gap: 14px; }
.h-list li { display: flex; gap: 18px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); padding: 22px; }
.h-chip { flex: none; width: 44px; height: 44px; display: grid; place-items: center; font: 800 1.4rem/1 var(--f-display); color: var(--white); background: var(--green); border-radius: var(--r-s); transform: rotate(-5deg); }
.h-list h3 { font-size: 1.2rem; margin-bottom: 6px; }
.h-list p { font-size: .98rem; color: var(--ink-2); }

/* A formação */
.envs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.env { border-top: 6px solid var(--ec, var(--line)); padding-top: 20px; }
.env-s { --ec: var(--c-s); } .env-a { --ec: var(--c-a); } .env-h { --ec: var(--c-h); }
.env h3 { font-size: 1.3rem; margin-bottom: 8px; }
.env p { color: var(--ink-2); font-size: .98rem; }
.cycle { margin-top: 52px; background: var(--bench); border-radius: var(--r-l); padding: clamp(24px, 4vw, 40px); }
.cycle h3 { font-size: 1.3rem; margin-bottom: 22px; }
.cycle ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: passo; }
.cycle li { counter-increment: passo; position: relative; overflow: hidden; background: var(--white); border-radius: var(--r-m); padding: 20px; border: 1px solid var(--line); }
.cycle li::after { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--green); transform: scaleX(1); transform-origin: left; }
.motion .cycle:not(.is-in) li::after { transform: scaleX(0); }
.cycle.is-in li::before, .no-motion .cycle li::before { background: var(--green); color: var(--white); }
.cycle li::before { content: counter(passo); display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 12px; font: 800 .95rem/1 var(--f-display); color: var(--white); background: var(--navy); border-radius: 50%; }
.cycle strong { display: block; font: 700 1.12rem/1.2 var(--f-display); color: var(--navy); margin-bottom: 4px; }
.cycle span { font-size: .93rem; color: var(--ink-2); }
.specs { margin-top: 28px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.specs div { padding: 18px 20px; border-left: 1px solid var(--line); }
.specs div:first-child { border-left: 0; }
.specs dt { font-size: .82rem; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
.specs dd { font-weight: 600; color: var(--navy); font-size: .98rem; }

/* Projetos */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.chip { font: 600 .93rem/1 var(--f-body); color: var(--navy); background: var(--white); border: 1.5px solid var(--line); border-radius: 999px; padding: .7em 1.1em; cursor: pointer; }
.chip:hover { border-color: var(--navy); }
.chip.is-on { background: var(--navy); border-color: var(--navy); color: var(--white); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); padding: 20px; display: flex; flex-direction: column; }
.card .area { font-size: .8rem; font-weight: 700; color: var(--c-e); margin-bottom: 10px; }
.card h3 { font-size: 1.12rem; margin-bottom: 6px; }
.card p { font-size: .93rem; color: var(--ink-2); }
.card-photo { grid-column: span 2; grid-row: span 2; padding: 0; overflow: hidden; flex-direction: row; }
.card-photo img { width: 46%; height: 100%; min-height: 240px; object-fit: cover; }
.card-photo div { padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.card-photo h3 { font-size: 1.4rem; }
.tech-cards .card h3 { font-size: 1.05rem; }
.bncc { margin-top: 40px; max-width: 760px; background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--c-t); border-radius: var(--r-m); padding: clamp(20px, 3vw, 28px); }
.bncc h3 { font-size: 1.3rem; margin-bottom: 10px; }
.bncc p { color: var(--ink-2); }
.bncc p + p { margin-top: 10px; }
.bncc strong { color: var(--navy); }
.card.card-wide { grid-row: auto; }
.card-wide img { height: 300px; object-position: center 45%; }
.card.card-img { padding: 0; overflow: hidden; }
.card-img img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 55%; }
.card-img div { padding: 18px 20px 20px; }

/* Quem é o Fábio */
.sec-navy { background: var(--navy); color: #d5dcec; }
.sec-navy h2, .sec-navy h3 { color: var(--white); }
.sec-navy .lead { color: #b9c3da; }
.sec-navy a:not(.btn) { color: #ffb35c; }
.bio { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.bio-photos { position: relative; padding-bottom: 80px; }
.bio-photos img { border: 8px solid var(--white); border-radius: var(--r-m); }
.bio-main { transform: rotate(-2deg); }
.bio-main img { aspect-ratio: 3 / 4; object-fit: cover; }
.bio-side { position: absolute; right: -4%; bottom: 0; width: 56%; transform: rotate(4deg); }
.bio-photos figcaption { margin-top: 8px; font-size: .84rem; color: #b9c3da; }
.bio-main figcaption { max-width: 42%; }

.timeline { margin-top: 34px; display: grid; gap: 22px; border-left: 3px solid var(--navy-2); padding-left: 24px; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -32px; top: 6px; width: 13px; height: 13px; border-radius: 3px; background: var(--orange); transform: rotate(45deg); }
.timeline strong { display: block; font: 700 1.1rem/1.25 var(--f-display); color: var(--white); margin-bottom: 4px; }
.timeline p { font-size: .97rem; color: #b9c3da; max-width: 58ch; }
.quote { margin-top: 38px; background: var(--navy-2); border-radius: var(--r-m); padding: 26px 28px; border-left: 6px solid var(--green); }
.quote p { font: 500 1.18rem/1.45 var(--f-display); color: var(--white); }
.quote footer { margin-top: 12px; font-size: .9rem; color: #b9c3da; }

/* Vídeo */
.video-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.video-grid .sec-head { margin-bottom: 0; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-l); overflow: hidden; background: var(--navy); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: none; }
.video-poster img { width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; inset: 50% auto auto 50%; translate: -50% -50%; width: 78px; height: 78px; display: grid; place-items: center; font-size: 1.7rem; color: var(--white); background: var(--orange); border-radius: 50%; box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.video-poster:hover .play { background: var(--orange-2); }

/* Galeria */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-m); }
.gallery figcaption { margin-top: 10px; font-size: .9rem; color: var(--ink-2); }

/* Depoimentos */
.testis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); padding: 26px; }
.testi p { font-size: 1.02rem; margin-bottom: 16px; }
.testi strong { display: block; color: var(--navy); }
.testi span { font-size: .88rem; color: var(--ink-2); }

/* Para quem é */
.fit { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; }
.fit > div { border-radius: var(--r-l); padding: clamp(24px, 3.4vw, 38px); }
.fit-yes { background: var(--white); border: 2px solid var(--navy); }
.fit-no { background: transparent; border: 2px dashed var(--line); }
.fit h3 { font-size: 1.3rem; margin-bottom: 18px; }
.fit ul { display: grid; gap: 12px; }
.fit li { display: flex; gap: 12px; align-items: flex-start; }
.fit li .i { margin-top: .22em; }
.fit-yes .i { color: var(--green); }
.fit-no .i { color: #b4472f; }
.fit-no li { color: var(--ink-2); }

/* Inscrição */
.offer { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.offer h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
.offer-what ul { margin-top: 26px; display: grid; gap: 12px; }
.offer-what li { display: flex; gap: 12px; align-items: flex-start; color: #e6ebf7; }
.offer-what .i { color: #ffb35c; margin-top: .22em; }
.offer-buy { background: var(--white); color: var(--ink); border-radius: var(--r-l); padding: clamp(24px, 3.4vw, 38px); }
.price { font: 800 4.4rem/1 var(--f-display); color: var(--navy); display: flex; align-items: flex-start; gap: 6px; }
.price small { font-size: 1.4rem; margin-top: .5rem; }
.price-note { margin: 8px 0 22px; font-size: .93rem; color: var(--ink-2); }
.price-note strong { color: var(--navy); }
.offer-author { font-size: .88rem; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }
.price-foot { margin-top: 10px; font-size: .78rem; color: var(--ink-2); }
.guarantee { margin-top: 18px; font-size: .9rem; color: var(--ink-2); }
.guarantee .i { color: var(--green); }

/* Dúvidas */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font: 700 1.08rem/1.3 var(--f-display); color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--ink-2); transition: transform .2s ease; }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq p { padding: 0 22px 22px; color: var(--ink-2); max-width: 66ch; }

/* Fechamento */
.final { background: var(--orange); padding: clamp(56px, 8vw, 96px) 0; }
.final-in { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.final h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; max-width: 20ch; }
.final .btn { background: var(--navy); color: var(--white); box-shadow: 0 4px 0 #050b1c; }
.final .btn:hover { background: var(--navy-2); }

/* Rodapé */
.ftr { background: var(--navy); color: #b9c3da; padding: 40px 0 110px; font-size: .95rem; }
.ftr strong { color: var(--white); }
.ftr-small { margin-top: 12px; font-size: .84rem; max-width: 80ch; }

/* WhatsApp, barra do celular e aviso */
.wa { position: fixed; right: 18px; bottom: 18px; z-index: 40; background: #128c4b; color: var(--white); font-weight: 700; font-size: .92rem; text-decoration: none; padding: .8em 1.1em; border-radius: 999px; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.mcta { display: none; }
.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 20px; z-index: 60; max-width: min(520px, 100% - 32px); background: var(--navy); color: var(--white); padding: 14px 18px; border-radius: var(--r-m); font-size: .95rem; opacity: 0; pointer-events: none; transition: opacity .2s, translate .2s; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); }
.toast.show { opacity: 1; translate: -50% 0; }

/* Modo revisão (?revisao=1) */
.review { position: fixed; left: 16px; bottom: 16px; z-index: 70; width: min(360px, 100% - 32px); max-height: 60vh; overflow: auto; background: var(--white); color: var(--ink); border: 2px solid var(--navy); border-radius: var(--r-m); padding: 18px 20px; box-shadow: 0 18px 40px rgba(0, 0, 0, .3); font-size: .9rem; }
.review h2 { font-size: 1.05rem; margin-bottom: 10px; }
.review ol { list-style: decimal; padding-left: 20px; display: grid; gap: 8px; }
.review a { color: var(--ink); }
.review p { margin-top: 12px; font-size: .8rem; color: var(--ink-2); }
.is-review [data-validar] { outline: 3px dashed #e0457b; outline-offset: 6px; border-radius: 6px; position: relative; }
.is-review [data-validar]::after { content: attr(data-n); position: absolute; top: -14px; left: -14px; width: 26px; height: 26px; display: grid; place-items: center; font: 800 .8rem/1 var(--f-body); color: var(--white); background: #e0457b; border-radius: 50%; z-index: 2; }

/* --------------------------------------------------------------- Responsivo */
@media (max-width: 1000px) {
  .nav { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .cycle ol, .specs { grid-template-columns: repeat(2, 1fr); }
  .specs div:nth-child(3) { border-left: 0; }
  .specs div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact { padding: 22px 20px; }
  .fact:nth-child(odd) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { padding: 20px 0 52px; }
  .hero-grid, .split, .bio, .video-grid, .fit, .offer { grid-template-columns: 1fr; }
  .hero-photo { max-width: 340px; }
  .hard, .envs, .testis { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card { padding: 16px; }
  .card-photo { grid-row: auto; flex-direction: column; }
  .card-photo img { width: 100%; height: auto; aspect-ratio: 16 / 10; min-height: 0; }
  .card-photo div { padding: 16px; }
  .bio-photos { max-width: 360px; }
  .hdr .btn-sm { display: none; }
  .mcta { display: block; position: fixed; inset: auto 0 0; z-index: 45; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(246, 247, 249, .96); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .25s ease; }
  .mcta.show { transform: none; }
  .wa { bottom: 84px; }
  .review { bottom: 84px; }
}
@media (max-width: 440px) {
  .cycle ol, .specs, .facts-grid { grid-template-columns: 1fr; }
  .specs div { border-left: 0; }
  .specs div:nth-child(n+2) { border-top: 1px solid var(--line); }
  .fact { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+2) { border-top: 1px solid var(--line); }
}

/* Logotipo na inscrição: selo branco sobre o azul-marinho */
.offer-logo { width: 150px; height: 150px; background: var(--white); border-radius: var(--r-l); padding: 6px; margin-bottom: 22px; }
@media (max-width: 760px) { .brand-txt { display: none; } }

/* =============================================================================
   Identidade STHEAM em movimento
   ============================================================================= */

/* Barra da jornada: enche com as seis cores conforme a pessoa rola a página */
.journey { position: fixed; inset: 0 0 auto; height: 4px; z-index: 55; pointer-events: none; }
.journey span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--c-s) 0 16.67%, var(--c-t) 0 33.33%, var(--c-h) 0 50%, var(--c-e) 0 66.67%, var(--c-a) 0 83.33%, var(--c-m) 0);
  clip-path: inset(0 calc((1 - var(--p, 0)) * 100%) 0 0);
}

/* Peças da abertura: cada uma é um botão, com o ícone do logo no canto */
.tile { position: relative; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tile:focus-visible { outline: 4px solid var(--blue); outline-offset: 4px; }
.tile-h { --tc: var(--c-h); }
.tile-face { position: absolute; inset: 0 0 7px; display: grid; place-items: center; align-content: center; gap: .3rem; }
.tile-face svg { width: 34%; height: auto; aspect-ratio: 1; }
.tile-face small { font: 800 clamp(.95rem, 1.7vw, 1.35rem)/1.1 var(--f-display); }
.tile.is-flipped { background: var(--tc); border-color: var(--tc); color: var(--white); box-shadow: inset 0 -7px 0 rgba(0, 0, 0, .2); }
.tile.is-flipped .badge { opacity: 0; }
.badge {
  position: absolute; top: -13%; right: -9%; width: 36%; height: 36%; padding: 7%;
  color: var(--tc); background: var(--white); border: 2px solid var(--line); border-radius: 50%;
  box-shadow: 0 6px 14px -4px rgba(10, 47, 92, .35);
  pointer-events: none; overflow: visible; z-index: 2;
}
.badge use { transform-box: fill-box; transform-origin: center; }

@media (prefers-reduced-motion: no-preference) {
  .motion .tiles .badge { opacity: 0; transform: scale(.2) rotate(-40deg); transition: opacity .25s ease, transform .55s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(var(--i) * 120ms); }
  .motion .tiles.icons-in .badge { opacity: 1; transform: none; }
  .motion .tiles.icons-in .tile.is-flipped .badge { opacity: 0; transition-delay: 0s; }
  .motion .tiles.icons-in .c-s .badge use { animation: spin 1.3s ease calc(var(--i) * 120ms + .35s); }
  .motion .tiles.icons-in .c-t .badge use { animation: spin .9s ease-in-out calc(var(--i) * 120ms + .35s); }
  .motion .tiles.icons-in .tile-h .badge use { animation: nod .9s ease calc(var(--i) * 120ms + .35s); }
  .motion .tiles.icons-in .c-e .badge use { animation: glow 1s ease calc(var(--i) * 120ms + .35s); }
  .motion .tiles.icons-in .c-a .badge use { animation: wiggle .8s ease calc(var(--i) * 120ms + .35s); }
  .motion .tiles.icons-in .c-m .badge use { animation: hop .7s ease calc(var(--i) * 120ms + .35s); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes nod { 30% { transform: rotate(-14deg); } 60% { transform: rotate(8deg); } }
@keyframes glow { 0%, 100% { opacity: 1; } 25% { opacity: .25; } 50% { opacity: 1; } 70% { opacity: .5; } }
@keyframes wiggle { 25% { transform: rotate(-16deg); } 55% { transform: rotate(12deg); } 80% { transform: rotate(-5deg); } }
@keyframes hop { 40% { transform: translateY(-30%); } 70% { transform: translateY(4%); } }

/* Monte uma aula STHEAM */
.sec-build { background: #eef5f1; border-block: 1px solid #dcebe3; }
.build { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 52px); align-items: start; }
.build-label { font-size: .85rem; font-weight: 700; color: var(--ink-2); margin-bottom: 10px; }
.build-projects { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.build-letters { display: flex; flex-wrap: wrap; gap: 10px; }
.build-letters .bl {
  width: 56px; height: 56px; border-radius: 12px; cursor: pointer;
  font: 900 1.6rem/1 var(--f-display);
  color: #9aa3b5; background: var(--white); border: 2px dashed #b4bdcf;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .12s ease;
}
.build-letters .bl.is-on { color: var(--white); background: var(--tc); border: 2px solid var(--tc); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .2); }
.build-letters .bl:active { transform: translateY(2px); }
.build-status { margin-top: 22px; font: 800 1.15rem/1.35 var(--f-display); color: var(--navy); max-width: 34ch; min-height: 3.2em; }
.lesson { background: var(--white); border: 1px solid #dcebe3; border-radius: var(--r-l); padding: clamp(22px, 3vw, 32px); box-shadow: 0 22px 40px -30px rgba(10, 47, 92, .5); }
.lesson-title { display: flex; flex-direction: column; gap: 4px; font-size: 1.5rem; margin-bottom: 18px; }
.lesson-title small { font: 700 .85rem/1 var(--f-body); color: var(--ink-2); }
.lesson-list { display: grid; gap: 10px; }
.lesson-list li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; background: var(--bench); border-left: 5px solid var(--tc); border-radius: var(--r-s); }
.lesson-list li.is-h { background: #e3f3ea; }
.lesson-list .ll { flex: none; width: 30px; height: 30px; display: grid; place-items: center; color: var(--white); background: var(--tc); border-radius: 8px; font: 900 1rem/1 var(--f-display); }
.lesson-list p { font-size: .98rem; color: var(--ink); }
.lesson-empty { color: var(--ink-2); font-size: .98rem; }
@media (prefers-reduced-motion: no-preference) {
  .motion .build-letters .bl-h.nudge { animation: nudge 1.5s ease 2; }
}
@keyframes nudge { 0%, 45%, 100% { transform: none; } 15% { transform: translateY(-7px) rotate(-8deg); } 30% { transform: translateY(0) rotate(4deg); } }

@media (max-width: 760px) {
  .build { grid-template-columns: 1fr; }
  .build-letters .bl { width: 48px; height: 48px; font-size: 1.4rem; }
}
@media (max-width: 600px) {
  .tile-face small { display: none; }
  .tile-face svg { width: 56%; }
  .badge { border-width: 1px; }
}

/* Selo "Assistir no YouTube" no canto do vídeo */
.video-tag { position: absolute; left: 14px; bottom: 14px; font: 700 .85rem/1 var(--f-body); color: var(--white); background: rgba(10, 47, 92, .85); padding: .6em .85em; border-radius: 999px; }

/* Política de privacidade e aviso de cookies */
.ftr a { color: #ffb35c; }
.consent { position: fixed; left: 16px; bottom: 16px; z-index: 65; width: min(440px, 100% - 32px); background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-m); padding: 18px 20px; box-shadow: 0 18px 40px rgba(10, 47, 92, .25); font-size: .92rem; }
.consent p { color: var(--ink-2); }
.consent a { color: var(--navy); text-decoration: underline; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.consent-no { font: 700 .92rem/1 var(--f-body); color: var(--navy); background: transparent; border: 2px solid var(--navy); border-radius: 999px; padding: .65em 1.1em; cursor: pointer; }
.consent-no:hover { background: var(--bench); }
.legal-top { background: var(--white); border-bottom: 1px solid var(--line); }
.legal-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.legal-top .back { font-weight: 700; color: var(--navy); }
.legal { max-width: 760px; margin-inline: auto; padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 96px); }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 8px; }
.legal .updated { color: var(--ink-2); margin-bottom: 28px; }
.legal h2 { font-size: 1.3rem; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 10px; }
.legal ul { list-style: disc; padding-left: 1.3em; margin-top: 8px; display: grid; gap: 6px; }
.legal a { color: var(--navy); text-decoration: underline; }
.legal .tbl { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.legal .tbl > div { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; padding: 12px 16px; background: var(--white); }
.legal .tbl > div + div { border-top: 1px solid var(--line); }
.legal .tbl strong { color: var(--navy); }
.legal .choice { margin-top: 14px; font: 700 .95rem/1 var(--f-body); color: var(--navy); background: var(--white); border: 2px solid var(--navy); border-radius: 999px; padding: .75em 1.2em; cursor: pointer; }
@media (max-width: 560px) { .legal .tbl > div { grid-template-columns: 1fr; gap: 4px; } }
