/* =========================================================
   myGlow.com — design system
   Estética scrapbook/colagem: fundo bege, cards coloridos
   levemente rotacionados, adesivos, molduras polaroid.
   ========================================================= */

:root {
  --pink: #ff299b;
  --pink-dark: #c4106a;
  --pink-soft: #ffd7ea;
  --pink-dev: #de4f9b;
  --pink-active: #ff8fc9;
  --cream: #d4d0bb;
  --cream-light: #e3e0d0;
  --purple: #8a38f5;
  --purple-dark: #6a3fa0;
  --blue: #2bb7cd;
  --blue-dark: #2a6ea8;
  --yellow: #eab13c;
  --yellow-dark: #c98f22;
  --green: #7caa33;
  --green-dark: #5c8a2c;
  --ink: #2b2320;
  --ink-soft: #5a4f47;
  --link: #505050;
  --white: #ffffff;

  --font-display: "Fredoka", "Baloo 2", system-ui, sans-serif;
  --font-body: "Quicksand", system-ui, sans-serif;
  --font-navbar: "Life Savers", "Fredoka", system-ui, sans-serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --shadow-card: 0 10px 24px rgba(43, 35, 32, 0.18);
  --shadow-soft: 0 4px 12px rgba(43, 35, 32, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--cream);
  font-size: 16px;
  line-height: 1.5;
}


body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("../assets/img/home/cenario-salao-fundo-do-site.svg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top center;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  margin: 0 0 0.5em;
  line-height: 1.15;
}

p {
  margin: 0 0 1em;
}

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

img {
  max-width: 100%;
  display: block;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
}

/* ---------------------------------------------------------
   Painel central (textura creme) sobre o cenário do salão
   --------------------------------------------------------- */
.page-panel {
  width: 86%;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 100vh;
  background-image: url("../assets/img/home/patterns-fundo-para-texto.png");
  background-repeat: repeat-y;
  background-size: 100% auto;
}

@media (max-width: 720px) {
  .page-panel {
    width: 100%;
  }
}

/* ---------------------------------------------------------
   Navbar
   --------------------------------------------------------- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 22px 56px;
  background: var(--pink);
  border-radius: 0;
  position: relative;
  z-index: 10;
}

.navbar__logo {
  font-family: var(--font-navbar);
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--white);
  background: none;
  padding: 0;
  border-radius: 0;
  white-space: nowrap;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.navbar__links a {
  display: inline-block;
  font-family: var(--font-navbar);
  color: var(--white);
  font-weight: 700;
  font-size: 1.15rem;
  padding: 10px 26px;
  border-radius: 999px;
  transition: background 0.15s ease;
}

.navbar__links a:hover {
  background: rgba(255, 255, 255, 0.15);
}

.navbar__links a.active {
  background: var(--pink-active);
  color: var(--white);
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.15), inset 0 2px 3px rgba(255, 255, 255, 0.35);
}

.navbar__toggle {
  display: none;
  background: var(--pink-dark);
  border: none;
  color: var(--white);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 1rem;
  cursor: pointer;
}

@media (max-width: 880px) {
  .navbar {
    flex-wrap: wrap;
    padding: 18px 28px;
  }
  .navbar__toggle {
    display: inline-block;
  }
  .navbar__links {
    flex-basis: 100%;
    justify-content: center;
    display: none;
  }
  .navbar__links.open {
    display: flex;
  }
}


.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 40px 60px;
}

@media (max-width: 720px) {
  .page {
    padding: 24px 20px 40px;
  }
}


.badge-myglow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--pink);
  background: var(--white);
  border: 2px solid var(--pink);
  border-radius: 999px;
  padding: 6px 18px;
}

.sticker-star {
  display: inline-block;
  fill: currentColor;
}

.washi-tape {
  position: absolute;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.5) 0 6px,
    rgba(255, 255, 255, 0.15) 6px 12px
  );
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow-soft);
}

/* ---------------------------------------------------------
   Placeholders de imagem / vídeo
   --------------------------------------------------------- */
.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  border: 3px dashed rgba(43, 35, 32, 0.45);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.35);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 18px;
  min-height: 140px;
}

.placeholder__icon {
  font-size: 1.8rem;
  line-height: 1;
}

.placeholder__file {
  font-family: monospace;
  font-size: 0.75rem;
  background: rgba(43, 35, 32, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------------------------------------------------------
   Cards "scrapbook"
   --------------------------------------------------------- */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 22px;
  color: var(--white);
}

.card--purple {
  background: var(--purple);
}
.card--blue {
  background: var(--blue);
}
.card--yellow {
  background: var(--yellow);
  color: var(--ink);
}
.card--green {
  background: var(--green);
}
.card--pink {
  background: var(--pink);
}
.card--pink-dev {
  background: var(--pink-dev);
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.card__social {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 600;
}

.card__social a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* aviso de conteúdo ainda provisório */
.transcription-note {
  background: var(--white);
  border: 2px dashed var(--pink);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  max-width: 620px;
  margin-bottom: 28px;
}

/* ---------------------------------------------------------
   Video player com fallback
   --------------------------------------------------------- */
.video-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-card);
}

.video-frame__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #1d1815;
}

.video-frame__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #574d47;
}

.video-frame video {
  width: 100%;
  display: block;
  background: #000;
}

.video-frame .placeholder {
  border: none;
  border-radius: 0;
  background: #ffffff10;
  color: var(--cream-light);
  min-height: 260px;
}

/* ---------------------------------------------------------
   Home
   --------------------------------------------------------- */
.home-hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.character-edna {
  width: 30%;
  min-width: 190px;
  max-width: 330px;
  flex-shrink: 0;
}

/* A moldura é o fundo; o vídeo é posicionado na área interna dela.
   As porcentagens vêm da geometria do SVG (778x414, barra de título de 49px). */
.video-window {
  position: relative;
  flex: 1;
  min-width: 0;
  align-self: center;
  aspect-ratio: 778 / 414;
  background: url("../assets/img/home/moldura-video-home.svg") no-repeat center / 100% 100%;
}

/* width/height em % em vez de insets: <video> é elemento substituído e,
   com width:auto, assumiria a largura nativa do arquivo (1248px) */
.video-window video {
  position: absolute;
  top: 11.84%;
  left: 1.54%;
  width: 96.13%;
  height: 83.9%;
  display: block;
  background: #000;
  object-fit: cover;
}

.video-window .placeholder {
  position: absolute;
  top: 11.84%;
  right: 2.33%;
  bottom: 4.26%;
  left: 1.54%;
  min-height: 0;
  border: none;
  background: rgba(43, 35, 32, 0.06);
}

/* o balão sobe um pouco e cobre o tronco da Edna, como no design */
.speech-bubble {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  margin: -9% 0 48px;
}

.home-page {
  padding-bottom: 0;
}

.home-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.home-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  width: 36%;
  padding-bottom: 60px;
}

.paper-tags {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  font-weight: 400;
}

.paper-tag {
  display: inline-block;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 6px 16px;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
}

.paper-tags .paper-tag {
  font-size: clamp(1.4rem, 3.2vw, 2.6rem);
  padding: 6px 20px;
}

.paper-tag--1 {
  align-self: flex-start;
  margin-left: 18px;
  transform: rotate(-3deg);
}

.paper-tag--2 {
  align-self: flex-start;
  transform: rotate(1deg);
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, #b36bf0, var(--purple));
  color: var(--white);
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.35rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.store-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.store-button__icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.qr-code {
  width: 100%;
  max-width: 250px;
  padding: 18px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.home-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.myglow-tag {
  position: relative;
  margin: 10px 0 24px;
}

.myglow-tag__img {
  display: block;
  width: 230px;
}

.pin {
  position: absolute;
  width: 42px;
  height: auto;
}

.pin--1 {
  top: -30px;
  left: -34px;
}

.pin--2 {
  bottom: -18px;
  left: -26px;
}

.pin--3 {
  bottom: -26px;
  right: -26px;
}

.pin--4 {
  top: -22px;
  right: -28px;
}

/* o trio encosta na base do painel, como se estivesse "em pé" nele */
.trio {
  display: block;
  width: 100%;
  margin-top: auto;
}

@media (max-width: 720px) {
  .home-hero {
    flex-direction: column;
    align-items: center;
  }

  .character-edna {
    max-width: 220px;
  }

  .video-window {
    width: 100%;
  }

  /* empilhado, o balão cobriria os controles do vídeo */
  .speech-bubble {
    margin-top: 16px;
  }

  .home-bottom {
    flex-direction: column;
    align-items: center;
  }

  .home-cta {
    width: 100%;
    align-items: center;
    padding-bottom: 0;
  }
}

/* ---------------------------------------------------------
   Título de seção (tags de papel sobrepostas)
   --------------------------------------------------------- */
.section-title {
  display: block;
  margin: 0 0 52px;
  padding-left: 46px;
  font-size: 1rem;
  font-weight: 400;
}

.paper-tag--title {
  position: relative;
  display: block;
  width: max-content;
  max-width: 100%;
  font-size: 1.8rem;
  padding: 8px 22px;
  border-width: 1px;
  white-space: normal;
}

.section-title__line1 {
  transform: rotate(-2deg);
}

.section-title__line2 {
  margin: -4px 0 0 44px;
  transform: rotate(1.5deg);
}


.pin--tl {
  width: 78px;
  top: -34px;
  left: -38px;
}

.pin--tr {
  width: 78px;
  top: -42px;
  right: -48px;
}

.pin--bl {
  width: 72px;
  bottom: -34px;
  left: -50px;
}

.pin--br {
  width: 82px;
  bottom: -38px;
  right: -54px;
}

@media (max-width: 720px) {
  .paper-tag--title {
    font-size: 1.25rem;
  }

  .pin--tl,
  .pin--tr,
  .pin--bl,
  .pin--br {
    width: 54px;
  }
}

/* 
   Especialistas 
 */
.specialist-row {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}

.specialist-row--left {
  justify-content: flex-start;
}

.specialist-row--right {
  justify-content: flex-end;
}

.specialist-card {
  width: min(72%, 725px);
  height: auto;
}

.specialist-sticker {
  width: min(41%, 395px);
  height: auto;
  flex-shrink: 0;
  /* acima do card mesmo quando vem antes no HTML (disco da Cindy) */
  position: relative;
  z-index: 1;
}

.specialist-row--left .specialist-sticker {
  margin-left: -10%;
}

.specialist-row--right .specialist-sticker {
  margin-right: -10%;
}

.specialist-sticker:hover {
  animation: sticker-wobble 0.9s ease-in-out;
}

/* a aranha pende do fio, então balança a partir do topo */
.specialist-sticker[src*="icone-urso-lucy"] {
  transform-origin: 50% 0;
}

@keyframes sticker-wobble {
  0%   { transform: rotate(0deg); }
  20%  { transform: rotate(-9deg); }
  40%  { transform: rotate(7deg); }
  60%  { transform: rotate(-4deg); }
  80%  { transform: rotate(2deg); }
  100% { transform: rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .specialist-sticker:hover {
    animation: none;
  }
}

@media (max-width: 720px) {
  .specialist-row,
  .specialist-row--right {
    justify-content: center;
  }

  .specialist-card {
    width: 78%;
  }

  .specialist-sticker {
    width: 22%;
  }
}

/* ---------------------------------------------------------
   Desenvolvedores — foto polaroid + bloco de bio colorido
   --------------------------------------------------------- */
.icon-sprite {
  display: none;
}

.dev-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 44px;
}

.dev-row--photo-right {
  flex-direction: row-reverse;
}

.dev-row--purple {
  --dev-color: var(--purple);
}
.dev-row--blue {
  --dev-color: var(--blue);
}
.dev-row--green {
  --dev-color: var(--green);
}
.dev-row--pink {
  --dev-color: var(--pink-dev);
}

.dev-photo {
  width: min(27%, 300px);
  height: auto;
  flex-shrink: 0;
}

.dev-body {
  flex: 1;
  min-width: 0;
}

.dev-bio {
  margin: 0;
  padding: 20px 26px;
  background: var(--dev-color);
  color: var(--white);
  font-family: var(--font-navbar);
  font-size: 1.02rem;
  line-height: 1.5;
}

.dev-links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 0;
  font-family: var(--font-navbar);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--link);
}

.dev-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--link);
  text-decoration: underline;
}

.dev-links a:hover {
  text-decoration: none;
}

.social-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .dev-row,
  .dev-row--photo-right {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .dev-photo {
    width: 62%;
    align-self: center;
  }

  .dev-bio {
    font-size: 0.95rem;
    padding: 16px 18px;
  }
}

/* ---------------------------------------------------------
   Processo / Sobre
   --------------------------------------------------------- */
.video-description {
  margin-top: 18px;
  background: var(--white);
  border: 2px dashed var(--pink);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--ink-soft);
  font-style: italic;
  max-width: 620px;
}

.sobre-card {
  max-width: 720px;
  font-size: 1.02rem;
  line-height: 1.7;
}

.sobre-card p:last-child {
  margin-bottom: 0;
}

/* Sobre — card do app e card da política de privacidade */
.info-card {
  padding: 32px 38px;
  margin-bottom: 36px;
  color: var(--white);
  font-family: var(--font-navbar);
  font-size: 1.08rem;
  line-height: 1.6;
}

.info-card--about {
  background: #ed198a;
}

.info-card--privacy {
  background: var(--purple);
}

.info-card > :last-child {
  margin-bottom: 0;
}

.info-card h3,
.info-card h4 {
  font-family: var(--font-navbar);
  font-weight: 800;
}

.info-card h3 {
  font-size: 1.35rem;
  margin: 30px 0 10px;
}

/* URLs longas nas referências não podem estourar a largura no celular */
.info-card--refs li {
  overflow-wrap: anywhere;
}

.info-card--privacy h3:first-of-type {
  margin-top: 14px;
}

.section-title--sub {
  margin-top: 64px;
}

/* nos títulos, a palavra "myGlow" vem na fonte da marca */
.tag-myglow {
  font-family: var(--font-navbar);
  font-weight: 700;
}

.tag-myglow--pink {
  color: var(--pink);
}

/* etiqueta de data presa na borda superior do card */
.update-tag {
  position: absolute;
  top: -18px;
  right: 32px;
  max-width: calc(100% - 32px);
  margin: 0;
  padding: 5px 12px;
  background: var(--white);
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  transform: rotate(-1.5deg);
  box-shadow: var(--shadow-soft);
}

.info-card h4 {
  font-size: 1.12rem;
  margin: 18px 0 8px;
}

/* o reset global remove os marcadores de lista; aqui eles são necessários */
.info-card ul {
  list-style: disc;
  padding-left: 1.4em;
  margin: 0 0 1em;
}

.info-card li {
  margin-bottom: 6px;
}

.info-card a {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .info-card {
    padding: 22px 20px;
    font-size: 1rem;
  }

  .info-card--privacy {
    padding-top: 34px;
  }

  .update-tag {
    right: 14px;
    font-size: 0.72rem;
  }
}

/* ---------------------------------------------------------
   Rodapé
   --------------------------------------------------------- */
.site-footer {
  background: #f6f6f6;
  border-top: 2px solid var(--pink);
  color: var(--pink);
  font-family: "Inter", system-ui, sans-serif;
}

.site-footer__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 52px 48px 36px;
}

.site-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 72px;
  border-bottom: 1px solid rgba(255, 41, 155, 0.25);
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-footer__icon {
  width: 92px;
  height: auto;
}

.site-footer__name {
  display: block;
  font-family: var(--font-navbar);
  font-weight: 700;
  font-size: 3rem;
  line-height: 1;
}

.site-footer__tagline {
  display: block;
  margin-top: 6px;
  font-size: 1.1rem;
  font-weight: 500;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  font-size: 1.1rem;
  font-weight: 600;
}

.site-footer__nav a:hover {
  text-decoration: underline;
}

.site-footer__copy {
  margin: 28px 0 0;
  text-align: center;
  font-size: 1.1rem;
}

@media (max-width: 720px) {
  .site-footer__inner {
    padding: 40px 20px 28px;
  }

  .site-footer__top {
    flex-direction: column;
    padding-bottom: 36px;
  }

  .site-footer__name {
    font-size: 2.4rem;
  }

  .site-footer__nav {
    justify-content: center;
    gap: 12px 24px;
    font-size: 1rem;
  }

  .site-footer__copy {
    font-size: 0.95rem;
  }
}
