/* Valores do Figma. Edite estas variáveis para ajustes globais. */
:root {
  --lime: #dcf166;
  --ink: #111826;
  --body: #334154;
  --surface: #f1f5f9;
  --border: #e2e8f0;
  --profile: #f0fdfa;
  --placeholder: #d9d9d4;
  --placeholder-border: #9a9a94;
  --placeholder-text: #5c5c57;
  --logo-width: 96px;
  --logo-offset: -48px;
  --fade-width: 62px;
}

* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--ink); font-family: "Instrument Sans", sans-serif; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; }
h1, h2, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }

.page { width: calc(100% - 32px); max-width: 712px; margin-inline: auto; padding-bottom: 48px; }
.header { height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.name { font-size: 22px; font-weight: 700; line-height: 24px; }
.contact { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 100px; background: var(--surface); font-size: 14px; font-weight: 600; line-height: 20px; white-space: nowrap; }
.tabs { display: flex; gap: 8px; height: 50px; margin-top: 12px; margin-bottom: 16px; padding: 4px; border-radius: 15px; background: var(--surface); }
.tab { min-width: 0; flex: 1; display: flex; align-items: center; justify-content: center; border-radius: 16px; font-size: 13px; line-height: 26px; font-weight: 700; color: #64748a; }
.tab[aria-selected="true"] { background: #fff; color: var(--ink); }
/* A aba inativa usa a cor do Figma sem a opacidade de 80%, para preservar contraste. */
.tab:focus-visible { outline-offset: -3px; }
.hire-panel { display: flex; flex-direction: column; gap: 24px; }
.profile { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 26px; border-radius: 32px; background: var(--profile); }
.profile-heading { width: 100%; display: flex; align-items: center; gap: 12px; }
.portrait { position: relative; flex: 0 0 88px; height: 82px; border-radius: 16px; overflow: hidden; background: var(--placeholder); }
/* O enquadramento reproduz o deslocamento da foto original no Figma. */
.portrait img { position: absolute; width: 115px; height: 115px; max-width: none; left: -10.0155px; top: -4.9885px; object-fit: cover; }
h1 { font-size: 25px; font-weight: 700; line-height: 26px; }
h1 span { display: block; white-space: nowrap; }
.bio { width: 268px; max-width: 100%; font-size: 16px; font-weight: 400; line-height: 24px; color: var(--body); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.social { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; border: 2px solid var(--border); border-radius: 100px; background: #fff; font-size: 14px; font-weight: 600; line-height: 20px; }
.youtube { width: 110px; }
.instagram { width: 120px; }
.companies { display: flex; flex-direction: column; gap: 16px; }
.companies h2, .work-together h2 { font-size: 20px; font-weight: 700; line-height: 28px; }

/* Dois grupos idênticos: -50% percorre exatamente uma sequência, sem salto. */
.marquee { position: relative; height: 64px; overflow: hidden; }
.marquee::before, .marquee::after { content: ""; position: absolute; z-index: 1; inset-block: 0; width: var(--fade-width); pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, #fff, #ffffff00); }
.marquee::after { right: 0; background: linear-gradient(90deg, #ffffff00, #fff); }
.logo-track { position: relative; left: var(--logo-offset); display: flex; width: max-content; animation: logo-loop 32s linear infinite; }
.logo-group { display: flex; gap: 12px; padding-right: 12px; flex-shrink: 0; }
.logo-slot { display: flex; align-items: center; justify-content: center; flex: 0 0 var(--logo-width); width: var(--logo-width); height: 64px; border: 1px dashed var(--placeholder-border); border-radius: 12px; background: var(--placeholder); color: var(--placeholder-text); font-size: 12px; font-weight: 700; line-height: 15px; overflow: hidden; }
.logo-slot.has-image { border: 0; padding: 12px; background: transparent; }
.logo-slot img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.marquee:hover .logo-track, .marquee:focus-within .logo-track { animation-play-state: paused; }
@keyframes logo-loop { to { transform: translateX(-50%); } }

.work-together { display: flex; flex-direction: column; gap: 12px; }
.work-links { display: flex; flex-direction: column; gap: 8px; }
.work-link { display: flex; align-items: center; gap: 16px; min-height: 80px; padding: 18px 14px; border: 2px solid var(--border); border-radius: 16px; background: #fff; }
.work-link.primary { border-color: #080808; background: var(--lime); }
.work-label { flex: 1; min-width: 0; color: var(--body); font-size: 14px; font-weight: 600; line-height: 20px; }
.work-link > img { flex-shrink: 0; }
.arrow-box { display: flex; align-items: center; justify-content: center; flex: 0 0 36px; height: 36px; border-radius: 12px; background: var(--lime); }
.primary .arrow-box { background: #fff; }
.arrow-box img { transform: rotate(-90deg); }

.products { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.product { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 12px; border-radius: 12px; background: var(--surface); }
.product-cover { width: 100%; height: 200px; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px dashed var(--placeholder-border); border-radius: 12px; background: var(--placeholder); color: var(--placeholder-text); font-size: 12px; font-weight: 700; line-height: 15px; }
.product-cover.has-image { border: 0; }
.product-cover img { width: 100%; height: 100%; object-fit: cover; }
/* A capa panorâmica da mentoria aparece inteira, sem cortar texto ou rosto. */
.product--mentoria { grid-column: 1 / -1; }
.product--mentoria .product-cover { height: auto; aspect-ratio: 1440 / 684; }
.product--mentoria h2 { width: 100%; }
.tag { padding: 4px 10px; border-radius: 999px; background: var(--lime); color: #080808; font-size: 12px; font-weight: 700; line-height: 15px; }
.product h2 { width: 267px; max-width: 100%; font-size: 16px; font-weight: 700; line-height: 24px; }
.product-button { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; min-height: 52px; padding: 12px; border: 1.5px solid #080808; border-radius: 999px; background: var(--lime); color: #080808; font-size: 16px; font-weight: 700; line-height: 20px; text-align: center; }
noscript p { margin-top: 24px; font-size: 14px; line-height: 20px; }

/* O desktop usa os valores do frame de 1280 px, sem ampliar a coluna. */
@media (min-width: 768px) {
  :root { --logo-width: 150px; --logo-offset: -75px; --fade-width: 128px; }
  .header { height: 64px; }
  .name { font-size: 20px; line-height: 28px; }
  .contact { min-height: 40px; padding: 8px 16px; font-size: 16px; font-weight: 700; line-height: 24px; }
  .contact img { width: 24px; height: 24px; }
  .tabs { height: 68px; margin-top: 20px; margin-bottom: 24px; padding: 8px; border-radius: 16px; }
  .tab { font-size: 20px; line-height: 28px; }
  .bio { width: 100%; }
  .companies h2, .work-together h2 { font-size: 24px; line-height: 32px; }
  .work-links { gap: 12px; }
  .work-label { font-size: 16px; line-height: 24px; }
  .arrow-box { flex-basis: 40px; height: 40px; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .product-cover { height: 300px; font-size: 13px; line-height: 16px; }
  .product h2 { width: 100%; font-size: 18px; line-height: 26px; }
  .product-button { margin-top: auto; }
}

/* Ajuste apenas para telas menores que o frame mobile de 375 px. */
@media (max-width: 374px) {
  .name { font-size: 20px; }
  .contact { gap: 5px; padding-inline: 10px; }
  .portrait { flex-basis: 64px; height: 64px; }
  .portrait img { width: 90px; height: 90px; left: -10px; top: -4px; }
  h1 { font-size: 22px; line-height: 24px; }
  .companies h2 { font-size: 18px; }
  .work-link { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
}

