/* Estilos da home (index.html). As páginas de produto usam style.css. */

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/dm-sans-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: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/dm-sans-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;
}
@font-face {
  font-family: 'Gloria Hallelujah';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/gloria-hallelujah-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: 'Gloria Hallelujah';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/gloria-hallelujah-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;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 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: 400 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: #161616;
  --paper: #efebdc;
  --paper-light: #fffef9;
  --yellow: #f6df4d;
  --pink: #f4b8c8;
  --blue: #b9d9f4;
  --green: #b9dfc1;
  --line: 2px solid var(--ink);
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --font-hand: "Gloria Hallelujah", cursive;
}

* {
  box-sizing: border-box;
}

html {
  /* Tamanho-base de 19px (118.75% de 16px), igual as paginas de produto.
     Em % para continuar respeitando a fonte padrao do navegador. */
  font-size: 118.75%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  /* rem: respeita quem aumentou a fonte padrao no navegador (px fixo ignorava) */
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

svg {
  display: block;
}

::selection {
  background: var(--yellow);
}

:focus-visible {
  outline: 3px solid #7357ff;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -100px;
  z-index: 200;
  padding: .8rem 1rem;
  background: var(--ink);
  color: white;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding: 110px 0;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1.4rem;
  font-size: .77rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
}

.section-heading {
  max-width: 780px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.055em;
  font-weight: 600;
}

.section-intro {
  max-width: 600px;
  margin: 1.4rem 0 0;
  font-size: 1.06rem;
}

.hand {
  font-family: var(--font-hand);
  font-weight: 400;
}

.highlight {
  position: relative;
  z-index: 0;
  display: inline-block;
  white-space: nowrap;
}

.highlight:not(.rn-ready)::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -2%;
  right: -2%;
  bottom: 4%;
  height: 30%;
  background: var(--yellow);
  transform: rotate(-1.5deg);
  clip-path: polygon(1% 15%, 99% 0, 98% 90%, 0 100%);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  min-height: 52px;
  padding: .85rem 1.4rem;
  border: var(--line);
  background: var(--paper);
  /* Cor explicita: sem ela o botao herda o branco de cards escuros (branco no amarelo, 1.34:1) */
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 700;
  transition: transform .15s, box-shadow .15s, background .15s;
}

.button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.button:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}

.button-dark {
  background: var(--ink);
  color: white;
  box-shadow: 4px 4px 0 #777;
}

.button-yellow {
  background: var(--yellow);
}

.button-white {
  background: white;
}

.arrow {
  font-size: 1.3em;
  line-height: 1;
  transition: transform .2s;
}

a:hover .arrow {
  transform: translateX(4px);
}

/* Navegação */
.nav {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: var(--line);
  background: var(--paper);
  position: relative;
  z-index: 50;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -.07em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.logo-wordmark {
  height: 46px;
  width: auto;
  margin-left: -14px;
}

.footer-logo .logo-wordmark {
  height: clamp(3.6rem, 8.5vw, 6.2rem);
  width: auto;
  margin-left: 0;
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 600;
  font-size: .94rem;
  position: relative;
  /* Area de clique de 44px sem mudar o layout (padding vertical em elemento inline) */
  padding-block: 12px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 7px;
  height: 2px;
  background: var(--ink);
  transition: right .2s;
}

.nav-links a:hover::after {
  right: 0;
}

.nav-cta {
  min-height: 44px;
  padding: .6rem 1.1rem;
  box-shadow: 3px 3px 0 var(--ink);
}

.menu-button {
  display: none;
  width: 46px;
  height: 42px;
  border: var(--line);
  background: var(--yellow);
  padding: 9px;
}

.menu-button span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
}

/* Hero */
.hero {
  overflow: hidden;
  border-bottom: var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  min-height: 650px;
}

.hero-copy {
  padding: 28px 40px 56px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.hero-kicker {
  font-family: var(--font-hand);
  font-size: 1.4rem;
  margin: 0 0 1rem;
  transform: rotate(-2deg);
  width: fit-content;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, min(6vw, 9.4vh), 4em);
  letter-spacing: -.072em;
  line-height: .94;
}

/* Final do título na letra de mão, como nos títulos de seção */
.hero h1 .hand {
  font-size: .92em;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.hero-subtitle {
  max-width: 600px;
  font-size: 1.06rem;
  margin: 2rem 0;
}

/* Desktop: espaço menor para o topo inteiro caber na primeira tela */
@media (min-width: 901px) {
  .hero-subtitle {
    margin: 1.5rem 0 1.75rem;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-art {
  position: relative;
  align-self: center;
  margin: 48px 0 48px 20px;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 12px -12px -12px 12px;
  z-index: -1;
  border: var(--line);
  border-radius: 42% 58% 46% 54% / 48% 44% 56% 52%;
}

.hero-frame {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--yellow);
  border: var(--line);
  border-radius: 42% 58% 46% 54% / 48% 44% 56% 52%;
}

/* <picture> nao cria caixa propria: o <img> continua ocupando o mesmo lugar no layout */
picture {
  display: contents;
}

/* Ilustracoes aparecem com fade quando terminam de carregar, em vez de "descer" faixa por faixa.
   So com JS ativo (classe .js), para nunca ficarem invisiveis se o script falhar. */
.js .img-fade {
  opacity: 0;
  transition: opacity .45s ease;
}

.js .img-fade.is-loaded {
  opacity: 1;
}

.hero-illustration {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-note {
  position: absolute;
  right: -10px;
  top: -12px;
  z-index: 2;
  padding: .35rem .75rem;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--font-hand);
  font-size: 1.02rem;
  line-height: 1.15;
  transform: rotate(4deg);
}

.ticker {
  background: var(--ink);
  color: white;
  border-bottom: var(--line);
}

.ticker-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .55rem 1.35rem;
  padding: 16px 24px;
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .04em;
}

.ticker-star {
  color: var(--yellow);
  font-size: 1.15rem;
  line-height: 1;
}

/* Bolinha também antes do primeiro item, igual aos separadores */
.ticker-track::before {
  content: "•";
  color: var(--yellow);
  font-size: 1.15rem;
  line-height: 1;
}

/* Soluções */
.section-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.section-number {
  font-family: var(--font-hand);
  font-size: 4rem;
  line-height: 1;
  transform: rotate(7deg);
  flex-shrink: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.product-card {
  border: var(--line);
  padding: 35px;
  position: relative;
  background: white;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}

.product-card:first-child {
  background: var(--blue);
  transform: rotate(-.5deg);
}

.product-card:nth-child(2) {
  background: var(--pink);
  transform: rotate(.5deg);
}

.product-card:hover {
  transform: translateY(-4px) rotate(0deg);
  box-shadow: 6px 6px 0 var(--ink);
}

.product-art {
  height: 185px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.product-art svg {
  height: 100%;
  width: 100%;
}

.product-tag {
  font-family: var(--font-hand);
  font-size: 1.25rem;
  margin: 0;
}

.product-card h3 {
  margin: .3rem 0 1rem;
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: -.04em;
}

.product-card p {
  margin-top: 0;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.4rem 0 1.8rem;
  padding: 0;
  list-style: none;
}

.pills li {
  border: 1.5px solid var(--ink);
  border-radius: 50px;
  padding: .25rem .75rem;
  font-size: .78rem;
  font-weight: 600;
  background: rgba(255, 255, 255, .55);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 3px;
  font-weight: 700;
  width: fit-content;
  margin-top: auto;
}

/* Fichário interativo: cenas animadas e tirinha */
.binder {
  margin-top: 90px;
  scroll-margin-top: 100px;
}

.binder-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.8rem;
}

.binder-header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  letter-spacing: -.04em;
  line-height: 1.1;
}

.binder-header p {
  margin: 0;
  max-width: 520px;
  font-size: .95rem;
}

.binder-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  position: relative;
  z-index: 2;
}

.binder-tab {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 46px;
  padding: .65rem .75rem;
  border: var(--line);
  border-bottom: 0;
  background: #e3decb;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: -.01em;
  position: relative;
  top: 2px;
  transition: background .15s, transform .15s;
}

.binder-tab:hover {
  background: var(--paper-light);
}

.binder-tab[aria-selected="true"] {
  background: var(--yellow);
  border-bottom: 2px solid var(--yellow);
  font-weight: 700;
  z-index: 3;
}

.binder-tab-num {
  font-family: var(--font-hand);
  font-size: .95rem;
  font-weight: 400;
}

.binder-sheet {
  border: var(--line);
  background: var(--paper-light);
  box-shadow: 7px 7px 0 var(--ink);
  padding: 30px;
  position: relative;
  z-index: 1;
}

.binder-panel[hidden] {
  display: none;
}

.binder-panel:focus-visible {
  outline: 3px solid #7357ff;
  outline-offset: -4px;
}

.binder-layout {
  display: grid;
  grid-template-columns: 1.38fr .62fr;
  gap: 30px;
  align-items: start;
}

.screen-frame {
  border: var(--line);
  background: white;
  overflow: hidden;
}

.screen-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--paper);
  border-bottom: var(--line);
  font-size: .75rem;
  font-weight: 600;
}

.screen-dots {
  display: flex;
  gap: 6px;
}

.screen-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--paper-light);
}

.screen-dots span:first-child {
  background: var(--pink);
}

.screen-dots span:nth-child(2) {
  background: var(--yellow);
}

.screen-dots span:nth-child(3) {
  background: var(--green);
}

.screen-viewport {
  background: white;
  aspect-ratio: 16 / 11;
  overflow: hidden;
}

.screen-viewport img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.screen-note {
  margin: 0;
  padding: 8px 14px;
  border-top: var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: .78rem;
  line-height: 1.4;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.comic-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  counter-reset: quadro;
}

.comic-frame {
  counter-increment: quadro;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: var(--line);
  background: var(--paper-light);
  box-shadow: 4px 4px 0 var(--ink);
}

.comic-speaker {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.comic-face {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border: var(--line);
  border-radius: 50%;
}

.comic-balloon {
  position: relative;
  margin: 0;
  padding: 8px 12px;
  border: var(--line);
  border-radius: 14px;
  background: white;
  font-family: var(--font-hand);
  font-size: 1rem;
  line-height: 1.35;
}

.comic-balloon::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 16px;
  width: 14px;
  height: 14px;
  background: white;
  border-left: var(--line);
  border-bottom: var(--line);
  transform: rotate(45deg);
}

.comic-shot {
  border: var(--line);
  background: white;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.comic-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.comic-shot img.comic-shot-top {
  object-position: top center;
}

.comic-shot img.comic-shot-left {
  object-position: left top;
}

.comic-caption {
  margin: 0;
  font-size: .9rem;
  line-height: 1.45;
}

.comic-caption::before {
  content: counter(quadro) ". ";
  font-family: var(--font-hand);
  font-weight: 700;
}

.comic-note {
  margin-top: 18px;
  border: var(--line);
}

.comic-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem 1.4rem;
  margin-top: 20px;
}

.comic-footer h4 {
  margin: 0;
  flex: 1 1 320px;
}

@media (max-width: 860px) {
  .comic-strip {
    grid-template-columns: minmax(0, 1fr);
  }
}

.binder-notes {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.binder-badge {
  display: inline-block;
  width: fit-content;
  padding: .2rem .65rem;
  border: 1.5px solid var(--ink);
  background: var(--blue);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.binder-badge.badge-pink {
  background: var(--pink);
}

.binder-notes h4,
.comic-footer h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.15;
  letter-spacing: -.035em;
}

.binder-notes p {
  margin: 0;
  font-size: .95rem;
}

.margin-note {
  padding: 16px 18px;
  border: var(--line);
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-1.2deg);
  margin-top: .3rem;
}

.margin-note-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: .35rem;
}

.margin-note p {
  font-family: var(--font-hand);
  font-size: 1rem;
  line-height: 1.35;
  margin: 0;
}

/* Projetos paralelos / pesquisa */
.projects-heading {
  margin: 90px 0 1.6rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
}

.projects-heading h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: -.035em;
  margin: 0;
}

.projects-heading p {
  max-width: 560px;
  margin: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 310px;
  border: var(--line);
  padding: 25px;
  background: var(--paper);
  transition: transform .2s, box-shadow .2s;
}

.project-card:hover {
  transform: translateY(-5px) rotate(-.5deg);
  box-shadow: 6px 6px 0 var(--ink);
}

.project-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.8rem;
}

.project-card h4 {
  margin: 0 0 .8rem;
  font-family: var(--font-hand);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
}

.project-card p {
  margin: 0 0 1.5rem;
  font-size: .96rem;
}

.project-card-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .88rem;
  font-weight: 700;
  border-bottom: 1.5px solid var(--ink);
  width: fit-content;
  padding-bottom: 2px;
}

.radar {
  margin: 2.2rem 0 0;
  font-size: .98rem;
  max-width: 820px;
}

.radar strong {
  font-family: var(--font-hand);
  font-size: 1.2rem;
  font-weight: 400;
}

/* Para quem */
.audience {
  background: var(--yellow);
  border-block: var(--line);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 3.5rem;
}

.audience-card {
  border: var(--line);
  background: var(--paper);
  padding: 26px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.audience-card:nth-child(2) {
  transform: translateY(16px);
}

.audience-person {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  object-position: center top;
  margin-bottom: 1rem;
  background: #f3ede0;
  border-bottom: var(--line);
}

.audience-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.audience-role {
  font-family: var(--font-hand);
  font-size: 1.18rem;
  margin: 0;
}

.audience-card h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  margin: .2rem 0 .8rem;
  letter-spacing: -.04em;
}

.audience-card p:not(.audience-role) {
  font-size: .96rem;
}

.audience-card .pills {
  margin: 1rem 0 0;
}

.institution-card {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 3rem;
  align-items: center;
  border: var(--line);
  background: var(--ink);
  color: white;
  padding: 44px 48px;
  margin-top: 45px;
}

.institution-card h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1.1;
  margin: .6rem 0 0;
}

.institution-card p {
  margin: 0;
}

.institution-card .pills {
  margin: 1.5rem 0 0;
  gap: .6rem;
}

.institution-card .pills li {
  background: transparent;
  border-color: white;
}

/* Instituições */
.universities-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 75px;
  align-items: center;
}

.benefits {
  list-style: none;
  padding: 0;
  margin: 2.3rem 0 0;
}

.benefits li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 17px 0;
  border-top: 1.5px solid var(--ink);
}

.benefits li:last-child {
  border-bottom: 1.5px solid var(--ink);
}

.check {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: var(--green);
}

.benefits p {
  margin: 0;
}

.demo-card {
  background: var(--ink);
  color: white;
  padding: 42px;
  border: var(--line);
  box-shadow: 10px 10px 0 var(--yellow);
  position: relative;
  transform: rotate(1deg);
}

.demo-card::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--yellow);
  right: 26px;
  top: 26px;
}

.demo-card h3 {
  font-family: var(--font-display);
  /* min(): em telas muito estreitas palavras longas nao criam rolagem lateral */
  font-size: min(2.25rem, 10.5vw);
  letter-spacing: -.05em;
  line-height: 1.06;
  margin: 0 0 1.3rem;
  max-width: 340px;
}

.demo-card p {
  color: #eee;
  margin-bottom: 2rem;
}

.demo-card .hand {
  color: var(--yellow);
  font-size: 1.3rem;
  transform: rotate(-3deg);
}

/* Contato */
.contact {
  background: var(--pink);
  border-top: var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 80px;
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: 120px;
}

.contact-copy .section-heading {
  font-size: clamp(2.8rem, 5vw, 4.4rem);
}

.contact-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.contact-meta .eyebrow {
  margin: 0;
}

.contact-number {
  font-family: var(--font-hand);
  font-size: 2.3rem;
  line-height: 1;
  transform: rotate(6deg);
}

.contact-doodle {
  width: 210px;
  margin: 35px 0 0 25px;
}

.form {
  padding: 34px;
  border: var(--line);
  background: var(--paper);
  box-shadow: 7px 7px 0 var(--ink);
}








.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-family: var(--font-hand);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: .35rem;
}


.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: white;
  padding: .8rem .9rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  box-shadow: 3px 3px 0 var(--yellow);
  border-width: 2px;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  width: 100%;
}

.form-privacy {
  margin: .9rem 0 0;
  font-size: .8rem;
  line-height: 1.45;
}

.form-status {
  display: none;
  margin: 1rem 0 0;
  padding: .8rem;
  border: 1.5px solid var(--ink);
  background: var(--green);
  font-weight: 600;
}

.form-status.error {
  background: var(--pink);
}

/* Rodapé */
footer {
  background: var(--ink);
  color: white;
  padding: 70px 0 28px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  padding-bottom: 42px;
}

.footer-logo {
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: .9;
}

.footer-phrase {
  font-family: var(--font-hand);
  color: var(--yellow);
  font-size: 1.55rem;
  max-width: 320px;
  transform: rotate(-3deg);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem 1.5rem;
  padding: 20px 0;
  border-top: 1px solid #444;
  font-size: .88rem;
}

.footer-nav-label {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-right: .4rem;
}

.footer-nav a {
  border-bottom: 1px solid #777;
  padding-block: 4px;
}

.footer-nav a:hover {
  color: var(--yellow);
  border-color: var(--yellow);
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: .9rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  border-bottom: 1px solid #777;
}

/* Acessibilidade */
.accessibility {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 100;
}

.acc-toggle {
  width: 48px;
  height: 48px;
  border: var(--line);
  border-radius: 50%;
  background: var(--yellow);
  display: grid;
  place-items: center;
  box-shadow: 2px 2px 0 var(--ink);
}

.acc-toggle svg {
  width: 25px;
}

.acc-panel {
  display: none;
  position: absolute;
  bottom: 58px;
  left: 0;
  width: 230px;
  background: var(--paper);
  border: var(--line);
  padding: 16px;
  box-shadow: 5px 5px 0 var(--ink);
}

.acc-panel.open {
  display: block;
}

.acc-panel strong {
  display: block;
  margin-bottom: 10px;
}

.acc-panel button {
  width: 100%;
  border: 1.5px solid var(--ink);
  background: white;
  padding: 8px;
  margin-top: 6px;
  font-size: .82rem;
}

.acc-panel button[aria-pressed="true"] {
  background: var(--yellow);
  font-weight: 700;
}

html.large-text {
  font-size: 137.5%;
}

html.dyslexia-font body,
html.dyslexia-font .section-heading,
html.dyslexia-font .hero h1,
html.dyslexia-font .hand,
html.dyslexia-font .hero-kicker,
html.dyslexia-font .hero-note,
html.dyslexia-font .product-tag,
html.dyslexia-font .audience-role,
html.dyslexia-font .project-card h4,
html.dyslexia-font .margin-note p,
html.dyslexia-font .field label {
  font-family: "Lexend", sans-serif;
  letter-spacing: .01em;
}

html.monochrome {
  filter: grayscale(100%);
}

html.reduce-motion *,
html.reduce-motion *::before,
html.reduce-motion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

:has(> [data-rn]) {
  position: relative;
  z-index: 0;
}

[data-rn] {
  position: relative;
  z-index: 1;
}

/* So esconde quando o JS esta ativo (classe .js no <html>): sem script, o conteudo aparece. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .section {
    padding: 80px 0;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 36px 0 48px;
  }

  .hero-copy {
    display: contents;
    padding: 0;
  }

  .hero-kicker {
    order: 1;
  }

  .hero h1 {
    order: 2;
    font-size: clamp(2.4rem, 1.5rem + 3.5vw, 3.6rem);
  }

  .hero-art {
    order: 3;
    width: min(360px, 84%);
    margin: 24px auto 22px;
  }

  .hero-subtitle {
    order: 4;
    margin: 0 0 1.4rem;
  }

  .hero-actions {
    order: 5;
  }

  .product-grid,
  .binder-layout,
  .universities-grid,
  .contact-grid {
    /* minmax(0, 1fr): a coluna nao cresce alem da tela por causa do conteudo (rolagem lateral em 320px) */
    grid-template-columns: minmax(0, 1fr);
  }

  .binder-header {
    align-items: start;
    flex-direction: column;
    gap: .9rem;
  }

  .universities-grid,
  .contact-grid {
    gap: 50px;
  }

  .project-grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-card:last-child {
    grid-column: 1 / -1;
    min-height: 240px;
  }

  .projects-heading {
    align-items: start;
    flex-direction: column;
  }

  .audience-grid {
    grid-template-columns: 1fr 1fr;
  }

  .audience-card:nth-child(2) {
    transform: none;
  }

  .audience-card:nth-child(3) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: .7fr 1fr;
    gap: 24px;
  }

  .audience-card:nth-child(3) .audience-person {
    height: 100%;
    border-bottom: 0;
    border-right: var(--line);
    margin-bottom: 0;
  }

  .institution-card {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .contact-copy {
    position: static;
  }

  .contact-doodle {
    display: none;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .mobile-menu {
    display: none;
    position: absolute;
    top: 85px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: var(--line);
    padding: 20px 24px 28px;
    z-index: 49;
  }

  .mobile-menu.open {
    display: block;
  }

  .mobile-menu a {
    display: block;
    padding: 12px 0;
    font-weight: 600;
  }

  .mobile-menu .button {
    margin-top: 10px;
  }
}

@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 32px, 1180px);
  }

  .section {
    padding: 65px 0;
  }

  .hero-grid {
    padding: 24px 0 40px;
  }

  .hero-kicker {
    font-size: 1.15rem;
    margin-bottom: .6rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 1.3rem + 3.5vw, 2.5rem);
  }

  .hero-art {
    width: min(270px, 76%);
    margin: 18px auto 18px;
  }

  .hero-note {
    right: -4px;
    top: -10px;
    font-size: .88rem;
  }

  .hero-subtitle {
    font-size: .98rem;
    margin: 0 0 1.25rem;
  }

  .hero-actions {
    gap: .75rem;
  }

  /* No celular a quebra de linha deixava pontos soltos no fim da linha:
     o ponto vira marcador de cada item, numa coluna centralizada. */
  .ticker-track {
    display: grid;
    grid-template-columns: max-content;
    justify-content: center;
    gap: .6rem;
    padding: 16px;
    font-size: .78rem;
  }

  .ticker-track .ticker-star,
  .ticker-track::before {
    display: none;
  }

  .ticker-track > span::before {
    content: "•";
    color: var(--yellow);
    font-size: 1.1rem;
    line-height: 0;
    margin-right: .45rem;
    vertical-align: -.08em;
  }

  .section-top {
    align-items: start;
  }

  .section-number,
  .contact-number {
    display: none;
  }

  .product-card {
    padding: 24px;
  }

  .product-art {
    height: 150px;
  }

  .binder {
    margin-top: 68px;
  }

  .binder-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .binder-tab {
    top: 0;
    border-bottom: var(--line);
    justify-content: flex-start;
    font-size: .8rem;
    padding: .55rem .75rem;
  }

  .binder-tab[aria-selected="true"] {
    border-bottom: var(--line);
  }

  .binder-sheet {
    padding: 18px;
    margin-top: 8px;
  }

  .margin-note {
    transform: none;
  }

  .project-grid,
  .audience-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .project-card:last-child {
    grid-column: auto;
  }

  .audience-card:nth-child(3) {
    grid-column: auto;
    display: block;
  }

  .audience-card:nth-child(3) .audience-person {
    height: auto;
    border-right: 0;
    border-bottom: var(--line);
    margin-bottom: 1rem;
  }

  .institution-card {
    padding: 30px 26px;
    gap: 1.4rem;
  }

  .demo-card {
    padding: 30px;
  }

  .form {
    padding: 22px;
  }

  .footer-top,
  .footer-bottom {
    align-items: start;
    flex-direction: column;
  }

  .footer-top {
    padding-bottom: 35px;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===== Fichário: cenas animadas ===== */
/* Fichário: cenas animadas (motor em assets/js/fichario-anim.js). Palco lógico fixo de 880x605 (16:11),
   escalado para a largura do .screen-viewport pelo JS. */
.ga-anim { position: relative; width: 100%; height: 100%; overflow: hidden; background: #f7f8fa; }
.ga-anim[hidden] { display: none; }

.ga-stage {
  position: absolute; top: 0; left: 0;
  width: 880px; height: 605px;
  padding: 16px 18px;
  transform-origin: top left;
  font-family: "DM Sans", sans-serif;
  color: #1f2430;
  transition: opacity .5s ease;
}
.ga-stage.is-fading { opacity: 0; }

/* Avisos no topo */
.ga-alert {
  border-radius: 10px; border: 1.5px solid transparent;
  max-height: 0; opacity: 0; overflow: hidden; margin-bottom: 0;
  transition: max-height .45s ease, opacity .35s ease, margin .45s ease;
}
.ga-alert.is-open { max-height: 120px; opacity: 1; margin-bottom: 10px; }
.ga-alert-head { display: flex; align-items: center; gap: 8px; padding: 9px 14px; font-weight: 700; font-size: 14px; }
.ga-alert-body { padding: 8px 14px 10px; font-size: 12.5px; line-height: 1.4; }
.ga-alert svg { width: 18px; height: 18px; flex: none; }
.ga-red { background: #fdf0f1; border-color: #f2b8bf; color: #a3161f; }
.ga-red .ga-alert-head { background: #fbdde1; }
.ga-amber { background: #fffaf0; border-color: #f0d38c; color: #7a4300; }
.ga-amber .ga-alert-head { background: #fdf0cf; }

.ga-hint { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #5b6170; margin: 6px 2px 12px; }
.ga-turma { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.ga-pill {
  display: inline-block; border: 1.5px solid #1f2430; border-radius: 6px;
  padding: 1px 8px; font-size: 11.5px; font-weight: 500; background: #fff; white-space: nowrap;
}

/* Semana */
.ga-week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.ga-day { background: #fff; border: 1px solid #e1e4ea; border-radius: 10px; padding: 10px; min-height: 250px; display: flex; flex-direction: column; }
.ga-day-head { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding-bottom: 8px; border-bottom: 1px solid #e6e8ee; margin-bottom: 10px; }
.ga-day-name { font-weight: 700; font-size: 14px; }
.ga-plus { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 17px; line-height: 1; color: #1f2430; position: relative; }
.ga-plus.is-clicked::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid #f6df4d; animation: ga-ripple .5s ease-out forwards;
}
@keyframes ga-ripple { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.ga-body { flex: 1; display: flex; flex-direction: column; gap: 8px; position: relative; }
.ga-empty { margin: auto 0 6px; text-align: center; font-size: 11.5px; color: #9aa0ad; }
.ga-body .ga-card ~ .ga-empty, .ga-body .ga-card + .ga-empty { display: none; }

/* Cartões de aula */
.ga-card {
  border-radius: 10px; border: 1.5px solid #9ed9b0; background: #f1fbf4;
  padding: 9px 10px; font-size: 11.5px; line-height: 1.35;
  transition: background .35s, border-color .35s, box-shadow .2s, transform .2s;
}
.ga-card-top { display: flex; align-items: center; gap: 6px; color: #3d4352; margin-bottom: 6px; }
.ga-card-top .ga-time { flex: 1; white-space: nowrap; }
.ga-tag { font-size: 9.5px; font-weight: 700; padding: 1px 5px; border-radius: 4px; background: #1f2430; color: #fff; }
.ga-tag.is-soft { background: none; color: #1f2430; }
.ga-card-title { font-weight: 700; font-size: 13px; color: #1f2430; margin-bottom: 4px; }
.ga-card-meta { color: #5b6170; }
.ga-ead { border-color: #b8c2d3; background: #eef1f6; }
.ga-flag { display: none; width: 16px; height: 16px; border-radius: 50%; place-items: center; color: #fff; font-size: 10px; font-weight: 700; }
.ga-card.is-small .ga-flag-amber { display: grid; background: #e59a00; }
.ga-card.is-small { border-color: #f0c36a; background: #fffaf0; }

.ga-card.is-new { animation: ga-pop .4s ease-out; }
@keyframes ga-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ga-card.is-conflict { border-color: #ef8d98; background: #fdecee; }
.ga-card.is-conflict .ga-flag-red { display: grid; background: #d1222f; }
.ga-clash {
  display: none; margin-top: 8px; padding: 6px 7px; border-radius: 6px;
  background: #fbd9dd; color: #a3161f; font-size: 10.5px; font-weight: 600;
}
.ga-card.is-conflict .ga-clash { display: block; }
.ga-card.is-dragging {
  position: absolute; z-index: 5; width: 148px; margin: 0;
  transform: rotate(-2deg) scale(1.04); box-shadow: 0 12px 24px rgba(20, 24, 40, .22);
  transition: background .35s, border-color .35s;
}
.ga-card.is-resolved { animation: ga-glow 1.2s ease-out; }
@keyframes ga-glow { 0% { box-shadow: 0 0 0 0 rgba(46, 160, 90, .55); } 100% { box-shadow: 0 0 0 14px rgba(46, 160, 90, 0); } }

/* Aviso de sucesso */
.ga-toast {
  position: absolute; right: 22px; bottom: 20px;
  display: flex; align-items: center; gap: 8px;
  background: #1f2430; color: #fff; border-radius: 10px; padding: 10px 14px;
  font-size: 13px; font-weight: 600;
  opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s;
}
.ga-toast.is-open { opacity: 1; transform: none; }
.ga-toast b { color: #8fe0a8; }

.ga-cursor { position: absolute; top: 0; left: 0; width: 22px; height: 26px; z-index: 10; pointer-events: none; filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); }
.ga-cursor.is-grab path { fill: #f6df4d; }

/* Botão de pausa na barra da janela */
.ga-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 28px; padding: 3px 10px;
  border: 1.5px solid var(--ink); border-radius: 0; background: var(--paper-light);
  color: var(--ink); font: inherit; font-size: .75rem; font-weight: 700; cursor: pointer;
}
.ga-toggle:hover { background: var(--yellow); }
.ga-toggle:focus-visible { outline: 3px solid #7357ff; outline-offset: 2px; }
.ga-toggle svg { width: 12px; height: 12px; }
.ga-toggle[hidden] { display: none; }

/* Comum às cenas novas */
.ga-cursor path { transition: transform .12s; transform-origin: 2px 2px; }
.ga-cursor.is-click path { transform: scale(.82); }
.tc-mail, .py-run, .py-register { position: relative; }
.tc-mail.is-clicked::after, .py-run.is-clicked::after, .py-register.is-clicked::after {
  content: ""; position: absolute; inset: -5px; border-radius: 10px;
  border: 2px solid #f6df4d; animation: ga-ripple .5s ease-out forwards;
}

/* ---------- 02 · TCC em atraso ---------- */
.tc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }
.tc-stat { background: #fff; border: 1px solid #e1e4ea; border-radius: 12px; padding: 12px 14px; }
.tc-stat-label { font-size: 12.5px; font-weight: 600; }
.tc-stat-num { font-size: 30px; font-weight: 700; line-height: 1.15; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.tc-stat-sub { font-size: 11px; color: #5b6170; }
.tc-stat-blue { background: #f4f7fc; border-color: #cfdcf2; color: #1e3a8a; }
.tc-stat-blue .tc-stat-sub { color: #3b5b9a; }
.tc-stat-late { transition: background .4s, border-color .4s, box-shadow .4s; }
.tc-stat-late.is-hot { background: #fdf0f1; border-color: #f2b8bf; color: #8f1520; box-shadow: 0 0 0 4px rgba(209, 34, 47, .08); }
.tc-stat-late.is-hot .tc-stat-sub { color: #a3161f; }
.tc-panels { display: grid; grid-template-columns: .9fr 1.1fr; gap: 12px; margin-bottom: 12px; }
.tc-panel { background: #fff; border: 1px solid #e1e4ea; border-radius: 12px; padding: 12px 14px; height: 236px; }
.tc-panel h5 { margin: 0 0 2px; font-size: 13.5px; font-weight: 700; }
.tc-panel p { margin: 0; font-size: 11px; color: #5b6170; }
.tc-donut-wrap { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.tc-donut { width: 160px; height: 160px; transform: rotate(-90deg); flex: none; }
.tc-legend { list-style: none; margin: 0; padding: 0; font-size: 11.5px; display: grid; gap: 7px; }
.tc-legend li { display: flex; align-items: center; gap: 6px; }
.tc-legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.tc-bars { display: grid; gap: 9px; margin-top: 14px; }
.tc-bar-row { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 8px; font-size: 11px; color: #3d4352; }
.tc-bar-row b { font-weight: 500; text-align: right; white-space: nowrap; }
.tc-bar { height: 18px; border-left: 1.5px solid #9aa0ad; }
.tc-bar > span { display: block; height: 100%; overflow: hidden; width: 0; }
.tc-strip { display: flex; width: 300px; height: 100%; }
.tc-strip i { height: 100%; flex: none; width: calc(var(--u) * 75px); }
.c-ap { background: #10b981; } .c-en { background: #3b82f6; } .c-pe { background: #64748b; } .c-at { background: #ef4444; }
.tc-table { background: #fff; border: 1px solid #e1e4ea; border-radius: 12px; padding: 12px 14px; }
.tc-table h5 { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: #a3161f; display: flex; align-items: center; gap: 7px; }
.tc-table h5 svg { width: 17px; height: 17px; }
.tc-head, .tc-row { display: grid; grid-template-columns: 1.1fr 1.3fr .9fr 1fr 1fr; align-items: center; gap: 8px; font-size: 12px; }
.tc-head { color: #5b6170; padding: 6px 8px; background: #f7f8fa; border-radius: 6px; }
.tc-row { padding: 6px 8px; border-bottom: 1px solid #eef0f3; opacity: 0; transform: translateX(-14px); transition: opacity .35s, transform .35s; }
.tc-row.is-in { opacity: 1; transform: none; }
.tc-row b { font-weight: 700; }
.tc-days { justify-self: start; font-size: 11px; font-weight: 700; color: #a3161f; background: #fdecee; border: 1px solid #f2b8bf; border-radius: 6px; padding: 1px 7px; }
.tc-mail {
  justify-self: end; display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600; color: #1d4ed8; border: 1px solid #bfd0f5; border-radius: 7px;
  padding: 4px 9px; background: #fff; transition: background .3s, color .3s, border-color .3s;
}
.tc-mail svg { width: 13px; height: 13px; }
.tc-mail.is-sent { background: #ecfdf3; border-color: #9ed9b0; color: #137a3d; }

/* ---------- 04 · Prova com terminal ---------- */
.py-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 8px; }
.py-meta { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; color: #3d4352; }
.py-chip { border: 1px solid #d5d9e1; border-radius: 6px; padding: 1px 7px; background: #fff; font-weight: 700; }
.py-count { transition: background .3s, color .3s; }
.py-title { font-size: 19px; font-weight: 700; margin: 4px 0 0; }
.py-steps { display: flex; gap: 6px; align-items: center; font-size: 12px; }
.py-steps span { width: 26px; height: 26px; border-radius: 50%; border: 1px solid #d5d9e1; display: grid; place-items: center; font-weight: 700; background: #fff; }
.py-steps span:first-child { background: #161616; color: #fff; border-color: #161616; }
.py-q { display: flex; align-items: baseline; justify-content: space-between; border-top: 1px solid #e6e8ee; padding-top: 8px; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.py-q small { font-size: 11px; color: #5b6170; font-weight: 500; letter-spacing: .06em; margin-right: 8px; }
.py-q em { font-style: normal; font-size: 11.5px; font-weight: 500; color: #5b6170; }
.py-ide { background: #1e1f24; border-radius: 10px; overflow: hidden; color: #d7dae0; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.py-task { padding: 9px 14px; font-family: "DM Sans", sans-serif; font-size: 12px; border-bottom: 1px solid #33353d; }
.py-task b { color: #34d399; letter-spacing: .08em; font-size: 11px; margin-right: 6px; }
.py-split { display: grid; grid-template-columns: 1.25fr 1fr; height: 372px; }
.py-editor { border-right: 1px solid #33353d; }
.py-file { padding: 7px 12px; font-size: 11.5px; border-bottom: 1px solid #33353d; background: #24262c; }
.py-code { padding: 8px 0; font-size: 12.5px; line-height: 1.7; }
.py-code div { display: grid; grid-template-columns: 34px 1fr; }
.py-code div::before { content: attr(data-n); color: #5f6470; text-align: right; padding-right: 12px; }
.py-code [data-line] { white-space: pre; min-height: 1.7em; }
.k-com { color: #7f8796; } .k-kw { color: #c792ea; } .k-fn { color: #82aaff; } .k-str { color: #c3e88d; } .k-var { color: #f07178; } .k-num { color: #f78c6c; }
.py-caret { display: inline-block; width: 7px; height: 1.15em; vertical-align: -2px; background: #f6df4d; animation: py-blink 1s steps(1) infinite; }
@keyframes py-blink { 50% { opacity: 0; } }
.py-side { display: grid; grid-template-rows: 1fr auto; }
.py-console { padding: 0; }
.py-console-head, .py-cases-head { padding: 7px 12px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; color: #9aa0ad; border-bottom: 1px solid #33353d; font-family: "DM Sans", sans-serif; }
.py-out { padding: 8px 12px; font-size: 12.5px; line-height: 1.7; }
.py-ready { color: #7dd3fc; transition: opacity .2s; }
.py-ready.is-gone { display: none; }
.py-out [data-out] { opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s; }
.py-out [data-out].is-in { opacity: 1; transform: none; }
.py-out .is-result { color: #34d399; font-weight: 700; }
.py-cases { border-top: 1px solid #33353d; }
.py-case-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 9px 12px; font-family: "DM Sans", sans-serif; }
.py-case { font-size: 11px; font-weight: 700; border: 1px solid #4b4f5a; border-radius: 6px; padding: 3px 8px; color: #c4c8d0; transition: background .25s, border-color .25s, color .25s; }
.py-case.is-run { border-color: #f6df4d; color: #f6df4d; }
.py-case.is-pass { background: #0f3d2a; border-color: #34d399; color: #6ee7b7; }
.py-case.is-pass::before { content: "✓ "; }
.py-summary { margin: 0 12px 10px; font-family: "DM Sans", sans-serif; font-size: 12px; font-weight: 700; color: #6ee7b7; opacity: 0; transition: opacity .3s; }
.py-summary.is-in { opacity: 1; }
.py-foot { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-top: 1px solid #33353d; font-family: "DM Sans", sans-serif; }
.py-run { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: #e6e8ec; border: 1px solid #4b4f5a; border-radius: 7px; padding: 5px 11px; background: #23262d; }
.py-run svg { width: 11px; height: 11px; }
.py-register { margin-left: auto; font-size: 12px; font-weight: 700; color: #fff; background: #1570ef; border-radius: 7px; padding: 6px 13px; transition: background .3s; }
.py-register.is-done { background: #12893f; }
.py-register.is-done::before { content: "✓ "; }

/* ---------- 05 · Circuito lógico ---------- */
.lc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.lc-head h5 { margin: 0; font-size: 15px; font-weight: 700; }
.lc-head code { font-family: ui-monospace, Menlo, Consolas, monospace; background: #eef1f6; border-radius: 5px; padding: 1px 7px; font-size: 14px; }
.lc-tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: #5b6170; }
.lc-main { display: grid; grid-template-columns: 1fr 250px; gap: 12px; }
.lc-board {
  background-color: #f1f4f8; border: 1px solid #e1e4ea; border-radius: 12px; height: 420px;
  background-image: radial-gradient(#c9d0db 1px, transparent 1px); background-size: 18px 18px;
  display: grid; place-items: center;
}
.lc-board svg { width: 540px; height: 400px; overflow: visible; }
.lc-wire { fill: none; stroke: #94a3b8; stroke-width: 3; stroke-linecap: round; transition: stroke .25s; }
.lc-wire.is-on { stroke: #3b5bdb; }
.lc-dot { fill: #94a3b8; transition: fill .25s; }
.lc-dot.is-on { fill: #3b5bdb; }
.lc-gate { fill: #fff; stroke: #334155; stroke-width: 2.5; stroke-linejoin: round; }
.lc-sw rect { fill: #fff; stroke: #334155; stroke-width: 2.5; transition: fill .25s, stroke .25s; transform-box: fill-box; transform-origin: center; }
.lc-sw.is-on rect { fill: #e0e7ff; stroke: #3b5bdb; }
.lc-sw.is-clicked rect { animation: lc-press .3s ease-out; }
@keyframes lc-press { 40% { transform: scale(.9); } }
.lc-sw text { font-family: ui-monospace, Menlo, Consolas, monospace; text-anchor: middle; fill: #1f2430; }
.lc-sw .lc-name { font-size: 15px; font-weight: 700; }
.lc-sw .lc-val { font-size: 12px; }
.lc-bulb { fill: #334155; transition: fill .25s, filter .25s; }
.lc-bulb.is-on { fill: #fcd34d; filter: drop-shadow(0 0 10px rgba(252, 211, 77, .95)); }
.lc-label { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; fill: #5b6170; text-anchor: middle; }
.lc-table { background: #fff; border: 1px solid #e1e4ea; border-radius: 12px; padding: 10px 12px; }
.lc-table h6 { margin: 0 0 6px; font-size: 11px; letter-spacing: .08em; color: #5b6170; }
.lc-table table { width: 100%; border-collapse: collapse; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; text-align: center; }
.lc-table th { font-weight: 700; padding: 5px 0; border-bottom: 1.5px solid #1f2430; }
.lc-table th:last-child, .lc-table td:last-child { border-left: 1.5px solid #1f2430; }
.lc-table td { padding: 6px 0; border-bottom: 1px solid #eef0f3; transition: background .2s; }
.lc-table tr.is-current td { background: #fff6c9; }
.lc-table tr.is-filled .lc-s { font-weight: 700; color: #3b5bdb; }
.lc-verdict {
  margin-top: 10px; display: flex; align-items: center; justify-content: space-between;
  border: 1.5px solid #9ed9b0; background: #ecfdf3; color: #137a3d; border-radius: 10px; padding: 10px 14px;
  font-size: 13px; font-weight: 700; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s;
}
.lc-verdict.is-in { opacity: 1; transform: none; }
.lc-score { background: #137a3d; color: #fff; border-radius: 7px; padding: 3px 10px; opacity: 0; transition: opacity .35s; }
.lc-score.is-in { opacity: 1; }
.py-ide ~ .ga-toast { bottom: auto; top: 14px; }

/* 05 · montagem do circuito */
.lc-board { height: 470px; }
.lc-board svg { width: 540px; height: 456px; }
.lc-palette rect { fill: #fff; stroke: #c3cad6; stroke-width: 1.5; }
.lc-palette text { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; font-weight: 700; text-anchor: middle; fill: #334155; }
.lc-palette .lc-pal-title { font-family: "DM Sans", sans-serif; font-size: 10.5px; letter-spacing: .08em; text-anchor: start; fill: #5b6170; }
.lc-wire { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; stroke-linecap: butt; }
.lc-gatewrap { opacity: 0; transition: opacity .2s; }
.lc-gatewrap.is-dragging, .lc-gatewrap.is-placed { opacity: 1; }
.lc-gatewrap.is-dragging { filter: drop-shadow(0 8px 10px rgba(20, 24, 40, .25)); }
.lc-test {
  position: relative; font-size: 12px; font-weight: 700; color: #fff; background: #1f2430;
  border-radius: 7px; padding: 6px 12px; transition: background .3s;
}
.lc-test.is-running { background: #3b5bdb; }
.lc-test.is-clicked::after {
  content: ""; position: absolute; inset: -5px; border-radius: 10px;
  border: 2px solid #f6df4d; animation: ga-ripple .5s ease-out forwards;
}
/* 05 · sem tabela-verdade: o circuito ocupa a largura toda */
.lc-main { grid-template-columns: 1fr; }
.lc-board svg { width: 640px; height: 540px; }
.lc-test { min-width: 150px; text-align: center; font-variant-numeric: tabular-nums; }
.lc-test.is-ok { background: #137a3d; }
