/* ---------------------------------------------------------
   Tokens (espelham o arquivo do Figma "Fisiologia para Todos — Site")
   Z-index usado na página: header = 10, skip-link = 100
--------------------------------------------------------- */
:root {
  --bordo: #541c1c;
  --deep: #2a0f0f;
  --wine: #7a2436;
  --cream: #f6efe4;
  --paper: #ffffff;
  --ink: #1d1414;
  --soft: #5b4a46;
  --peach: #f2b8a2;

  --cream-rgb: 246, 239, 228;
  --ink-rgb: 29, 20, 20;
  --bordo-rgb: 84, 28, 28;

  --font-display: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(64px, 9vw, 120px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 28px 60px rgba(20, 5, 5, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

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

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

p, h1, h2, h3, dl, dd, figure { margin: 0; }

h1, h2, h3 { font-family: var(--font-display); }

h1 em, h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: calc(1200px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--bordo);
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* ---------- Reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px 14px 26px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn__icon {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}
.btn:hover .btn__icon { transform: translateX(3px); }

.btn--light { background: var(--cream); color: var(--bordo); }
.btn--light:hover { background: var(--paper); }

.btn--ghost-light { border-color: rgba(var(--cream-rgb), 0.45); color: var(--cream); }
.btn--ghost-light:hover { background: rgba(var(--cream-rgb), 0.08); border-color: var(--cream); }

.btn--ghost-dark { border-color: rgba(var(--bordo-rgb), 0.5); color: var(--bordo); }
.btn--ghost-dark:hover { background: rgba(var(--bordo-rgb), 0.06); border-color: var(--bordo); }

/* ---------- Rótulos ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--bordo);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow--peach { color: var(--peach); }
.eyebrow__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  letter-spacing: 0;
  text-transform: none;
}
.eyebrow__line {
  width: 28px;
  height: 1.5px;
  background: currentColor;
  opacity: 0.6;
}

.label {
  color: var(--bordo);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.label--peach { color: var(--peach); font-size: 12px; }

.h2 {
  font-size: clamp(34px, 3.9vw, 56px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.015em;
}
.h2 em { font-size: 1.07em; color: var(--bordo); }

/* ---------- Header / nav ---------- */
.site-header {
  position: relative;
  z-index: 10;
  background: var(--bordo);
  color: var(--cream);
  box-shadow: 0 1px 0 var(--bordo); /* cobre a emenda de subpixel com o hero */
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 48px;
}
.nav__links {
  display: flex;
  gap: 36px;
  font-size: 15px;
  font-weight: 500;
}
.nav__links a {
  color: rgba(var(--cream-rgb), 0.78);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--cream); }

.nav__toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(var(--cream-rgb), 0.3);
  border-radius: 50%;
  background: none;
  color: var(--cream);
  cursor: pointer;
}
.nav__toggle svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bordo);
  color: var(--cream);
  padding-bottom: 96px;
}

.hero__watermark {
  position: absolute;
  left: -0.1em;
  bottom: -0.39em;
  color: rgba(var(--cream-rgb), 0.07);
  font-family: var(--font-display);
  font-size: clamp(96px, 16vw, 230px);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.hero__body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 640fr) minmax(0, 488fr);
  gap: 72px;
  align-items: center;
  padding-top: 88px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border: 1px solid rgba(var(--cream-rgb), 0.3);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--peach);
}

.hero h1 {
  margin-top: 32px;
  font-size: clamp(46px, 5.3vw, 76px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.hero h1 em {
  display: inline-block;
  font-size: 1.1em;
  color: var(--peach);
}

.hero__sub {
  max-width: 540px;
  margin-top: 32px;
  color: rgba(var(--cream-rgb), 0.78);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero__visual {
  position: relative;
  padding: 56px 0 60px 30px;
}

.photo-card {
  padding: 10px;
  border-radius: 30px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: rotate(-3deg);
}
.photo-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
}

.stamp {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: var(--peach);
  color: var(--ink);
  text-align: center;
  box-shadow: 0 12px 30px rgba(20, 5, 5, 0.25);
  transform: rotate(10deg);
  transition: transform 0.4s var(--ease);
}
.stamp:hover { transform: rotate(4deg) scale(1.04); }
.stamp__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 26px;
  line-height: 0.95;
}
.stamp__sub {
  color: var(--bordo);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.badge {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px 12px 12px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 16px 40px rgba(20, 5, 5, 0.3);
}
.badge img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}
.badge strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}
.badge span {
  display: block;
  color: var(--soft);
  font-size: 13px;
}

.facts {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  margin-top: 88px;
  padding-top: 32px;
  border-top: 1px solid rgba(var(--cream-rgb), 0.18);
}
.facts dt {
  color: var(--peach);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.facts dd {
  margin-top: 8px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
}

/* ---------- O projeto ---------- */
.sobre { padding: var(--section-y) 0 64px; }

.split {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}
.split .eyebrow { padding-top: 14px; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 56px;
}
.pillar {
  padding: 36px;
  border-radius: 28px;
  background: var(--paper);
}
.pillar__num {
  display: block;
  color: var(--bordo);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 48px;
  line-height: 1;
}
.pillar h3 {
  margin-top: 14px;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.15;
}
.pillar p {
  margin-top: 14px;
  color: var(--soft);
  font-size: 17px;
  line-height: 1.5;
}

.quem {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(var(--ink-rgb), 0.14);
}
.quem p {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
}

/* ---------- Podcast ---------- */
.podcast { padding: 56px 0 var(--section-y); }

.podcast__card {
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  padding: 64px;
  border-radius: 36px;
  background: var(--deep);
  color: var(--cream);
}

.tag {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(242, 184, 162, 0.14);
  color: var(--peach);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.podcast__text h2 {
  margin-top: 24px;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.podcast__text > p:not(.tag) {
  margin: 24px 0 28px;
  color: rgba(var(--cream-rgb), 0.75);
  font-size: 18px;
  line-height: 1.5;
}

.episode { margin-bottom: 28px; }
.episode .label { margin-bottom: 12px; }
.episode__player {
  display: block;
  width: 100%;
  height: 152px;
  border: 0;
  border-radius: 12px;
}

.wave {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 150px;
}
.wave span {
  width: 7px;
  height: var(--h);
  border-radius: 4px;
  background: rgba(var(--cream-rgb), 0.28);
}
.wave span:nth-child(-n + 15) { background: var(--peach); }

.podcast__side .label { margin: 28px 0 14px; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chips li {
  padding: 9px 18px;
  border: 1px solid rgba(var(--cream-rgb), 0.28);
  border-radius: 999px;
  background: rgba(var(--cream-rgb), 0.04);
  font-size: 15px;
  font-weight: 500;
}

/* ---------- Seções com cabeçalho + grade (Aulas, Instagram) ---------- */
.stack {
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.section-head__title .h2 {
  max-width: 760px;
  margin-top: 20px;
}

/* ---------- Aulas ---------- */
.aulas {
  padding: var(--section-y) 0;
  background: var(--paper);
}

.lessons {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}
.lesson {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lesson__cover {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 4 / 5;
  padding: 18px;
  border-radius: 20px;
  background: var(--tone);
  transition: transform 0.4s var(--ease);
}
.lesson:hover .lesson__cover { transform: translateY(-4px); }
.lesson__tag {
  color: var(--peach);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lesson__play circle { fill: none; stroke: var(--peach); stroke-width: 2; }
.lesson__play path { fill: var(--cream); }
.lesson__title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.18;
}
.lesson__meta {
  margin-top: -6px;
  color: var(--soft);
  font-size: 14px;
}

/* ---------- Instagram ---------- */
.instagram {
  padding: var(--section-y) 0;
  background: var(--bordo);
  color: var(--cream);
}
.instagram .h2 em { color: var(--peach); }

.posts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}
.post {
  display: block;
  height: 100%;
  padding: 10px 10px 16px;
  border-radius: 22px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 20px 50px rgba(20, 5, 5, 0.3);
  transition: transform 0.4s var(--ease);
}
.post:hover { transform: translateY(-4px); }
.post img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  object-fit: cover;
}
.post__caption {
  display: block;
  margin-top: 12px;
  padding-inline: 4px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

/* ---------- Contato ---------- */
.contato {
  padding: var(--section-y) 0 80px;
  background: var(--deep);
  color: var(--cream);
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.cta h2 {
  max-width: 900px;
  font-size: clamp(40px, 5.6vw, 80px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.cta h2 em { font-size: 1.07em; color: var(--peach); }
.cta p {
  max-width: 620px;
  margin: 28px 0;
  color: rgba(var(--cream-rgb), 0.75);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
}

.channels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 80px;
}
.channel {
  display: flex;
  flex-direction: column;
  gap: 40px;
  height: 100%;
  padding: 28px;
  border: 1px solid rgba(var(--cream-rgb), 0.14);
  border-radius: 22px;
  background: rgba(var(--cream-rgb), 0.06);
  transition: background-color 0.2s, border-color 0.2s;
}
.channel:hover {
  background: rgba(var(--cream-rgb), 0.1);
  border-color: rgba(var(--cream-rgb), 0.28);
}
.channel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.channel__name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
}
.channel__icon {
  fill: none;
  stroke: var(--peach);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}
.channel:hover .channel__icon { transform: translate(2px, -2px); }
.channel__desc {
  color: rgba(var(--cream-rgb), 0.7);
  font-size: 15px;
  line-height: 1.45;
}

/* ---------- Rodapé ---------- */
.footer {
  background: var(--deep);
  color: var(--cream);
}
.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0 48px;
  border-top: 1px solid rgba(var(--cream-rgb), 0.14);
}
.footer .brand { font-size: 17px; }
.footer .brand img { width: 40px; height: 40px; }
.footer__credits {
  color: rgba(var(--cream-rgb), 0.6);
  font-size: 14px;
  line-height: 1.6;
  text-align: right;
}

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .nav__toggle { display: grid; }
  .nav__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: var(--gutter);
    right: var(--gutter);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 20px;
    border-radius: 24px;
    background: var(--deep);
    box-shadow: var(--shadow);
  }
  .menu-open .nav__menu { display: flex; }
  .nav__links {
    flex-direction: column;
    gap: 0;
    font-size: 18px;
  }
  .nav__links a {
    display: block;
    padding: 12px 4px;
    color: var(--cream);
  }
  .nav__menu .btn { justify-content: center; }

  .lessons, .posts {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 224px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .posts { padding-bottom: 8px; }
  .lessons::-webkit-scrollbar, .posts::-webkit-scrollbar { display: none; }
  .lessons li, .posts li { scroll-snap-align: start; }
  .post { box-shadow: none; }

  .channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .hero { padding-bottom: 48px; }
  .hero__body {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding-top: 40px;
  }
  .hero__visual {
    max-width: 488px;
    padding: 44px 0 0;
  }
  .badge { display: none; }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 40px;
    padding-top: 24px;
  }
  .facts dd { font-size: 15px; }

  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .split .eyebrow { padding-top: 0; }
  .quem { gap: 12px; padding-top: 28px; }

  .pillars {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-top: 28px;
  }
  .pillar { padding: 28px 24px; }

  .podcast { padding-top: 24px; }
  .podcast__card {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 32px 24px;
    border-radius: 28px;
  }
  .podcast__text > p:not(.tag) { font-size: 16px; }
  .wave { height: 96px; }
  .wave span { width: 5px; border-radius: 3px; }
  .chips { gap: 8px; }

  /* cabeçalho vira coluna: título, carrossel, botão */
  .stack { gap: 24px; }
  .section-head { display: contents; }
  .section-head__title { order: 1; }
  .lessons, .posts { order: 2; }
  .section-head__cta { order: 3; align-self: flex-start; }

  .posts { gap: 14px; }
  .post__caption { font-size: 14px; }

  .channels { margin-top: 40px; }
}

@media (max-width: 640px) {
  .nav { padding-top: 16px; }
  .brand { font-size: 16px; gap: 10px; }
  .brand img { width: 36px; height: 36px; }

  .pill { font-size: 12px; padding: 7px 14px 7px 10px; }
  .hero h1 { margin-top: 22px; letter-spacing: -0.025em; }
  .hero__sub, .actions { margin-top: 22px; }
  .actions { gap: 10px; }

  .photo-card {
    padding: 8px;
    border-radius: 24px;
    transform: rotate(-2deg);
  }
  .photo-card img { border-radius: 18px; }
  .stamp { width: 96px; height: 96px; gap: 2px; }
  .stamp__title { font-size: 19px; }
  .stamp__sub { font-size: 9px; }

  .channels {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .channel { gap: 20px; }

  .footer__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 24px 0 32px;
  }
  .contato { padding-bottom: 40px; }
  .footer__credits { font-size: 13px; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn__icon, .stamp, .lesson__cover, .post, .channel__icon { transition: none; }
}
