/* ==========================================================================
   Lemuel Max Personal Trainer · style.css
   Direção: "laboratório de técnica" (editorial esportivo + anotações técnicas)
   1. Fontes  2. Tokens  3. Reset  4. Tipografia  5. Layout  6. Componentes
   7. Seções  8. Motion  9. Responsivo  10. Movimento reduzido
   ========================================================================== */

/* 1. FONTES (autohospedadas, subconjunto latino: cobre ã, ç, é, ô...) ------- */
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 800; font-display: swap; src: url(../assets/fonts/barlowcondensed-800i.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: "Barlow Condensed"; font-style: italic; font-weight: 700; font-display: swap; src: url(../assets/fonts/barlowcondensed-700i.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: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url(../assets/fonts/barlow-400.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: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url(../assets/fonts/barlow-600.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: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(../assets/fonts/jetbrainsmono-500.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; }

/* 2. TOKENS --------------------------------------------------------------- */
:root {
  /* Paleta contida: 5 cores. O vermelho tem dois tons do mesmo matiz, ambos do logo:
     --vermelho (#fc2d2f) para texto/linhas: 5,1:1 no preto e 4,7:1 no grafite;
     --vermelho-fundo para superfícies com texto branco (6,4:1). */
  --preto: #0b0b0b;
  --grafite: #141414;
  --branco: #f4f4f4;
  --cinza: #a3a3a3;          /* texto secundário: 7,9:1 no preto, 7,3:1 no grafite */
  --vermelho: #fc2d2f;
  --vermelho-fundo: #c20000;

  /* derivados (transparências das cores acima, não cores novas) */
  --linha: rgba(244, 244, 244, .12);
  --linha-forte: rgba(244, 244, 244, .28);
  --placeholder: #ffb020;    /* TEMPORÁRIO: só marca o que o cliente ainda vai enviar */

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Menlo, monospace;

  --gutter: clamp(20px, 5vw, 48px);
  --max: 1240px;
  --section-y: clamp(5.5rem, 13vw, 10rem);
  --header-h: 64px;
  --radius: 2px;

  --ease: cubic-bezier(.22, 1, .36, 1);       /* saída longa e suave */
  --ease-io: cubic-bezier(.76, 0, .24, 1);    /* cortina */
}

/* 3. RESET ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); overflow-x: clip; }
body { margin: 0; background: var(--preto); color: var(--branco); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
main:focus { outline: none; }
::selection { background: var(--vermelho-fundo); color: #fff; }

/* 4. TIPOGRAFIA ----------------------------------------------------------- */
.h2, .hero-title, .cta-title, h3, .btn, .pillar-n, .footer-claim, summary {
  font-family: var(--font-display); font-style: italic; text-transform: uppercase;
}
.hero-title, .h2, .cta-title, .footer-claim { font-weight: 800; letter-spacing: -.012em; }
.h2 { font-size: clamp(2.7rem, 9vw, 5.8rem); line-height: .9; text-wrap: balance; max-width: 15ch; }
h3 { font-size: 1.55rem; line-height: 1.05; font-weight: 700; letter-spacing: .005em; }
.mono { font-family: var(--font-mono); font-style: normal; font-weight: 500; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.accent { color: var(--vermelho); }
.lead { font-size: clamp(1.08rem, 2.3vw, 1.22rem); line-height: 1.6; color: var(--cinza); max-width: 54ch; text-wrap: pretty; }
.lead::first-line { color: var(--branco); }
.section-sub { color: var(--cinza); margin-top: 1.4rem; max-width: 46ch; }
.text-link { color: var(--branco); text-decoration: underline; text-decoration-color: var(--vermelho); text-underline-offset: .25em; text-decoration-thickness: 2px; }

/* 5. LAYOUT --------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section-y); }
.section-alt { background: var(--grafite); }

/* Índice de seção: "02 — MÉTODO ————" (a linha se desenha ao entrar na tela) */
.sec-index { display: flex; align-items: center; gap: 1rem; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); color: var(--cinza); }
.sec-index .mono:first-child { color: var(--vermelho); }
.rule { flex: 1; height: 1px; background: var(--linha-forte); transform-origin: left; }

/* 6. COMPONENTES ---------------------------------------------------------- */
.icon { width: 1.2em; height: 1.2em; flex: none; }

.btn {
  --mx: 0px; --my: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 48px; padding: .8rem 1.4rem; border-radius: var(--radius); border: 1px solid transparent;
  font-size: 1.15rem; font-weight: 700; letter-spacing: .05em; line-height: 1;
  cursor: pointer; overflow: hidden; isolation: isolate;
  transform: translate(var(--mx), var(--my));
  transition: transform .5s var(--ease), color .35s var(--ease), border-color .35s var(--ease), background-color .35s var(--ease);
}
.btn-primary { background: var(--vermelho-fundo); color: #fff; }
/* preenchimento que "varre" da esquerda no hover */
.btn-primary::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--branco); transform: scaleX(0); transform-origin: right; transition: transform .55s var(--ease); }
.btn-ghost { background: transparent; color: var(--branco); border-color: var(--linha-forte); }
.btn-ghost .icon { transition: transform .45s var(--ease); }
.btn-square { width: 52px; padding: 0; background: var(--grafite); color: var(--branco); border-color: var(--linha-forte); }
.btn-sm { min-height: 44px; padding: .55rem 1rem; font-size: 1rem; }
.btn-lg { min-height: 58px; padding: 1rem 1.8rem; font-size: 1.25rem; }
.btn-xl { min-height: 66px; padding: 1.2rem 2.4rem; font-size: 1.45rem; }
.btn:active { transition-duration: .1s; filter: brightness(.92); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { color: var(--preto); }
  .btn-primary:hover::before { transform: scaleX(1); transform-origin: left; }
  .btn-ghost:hover { border-color: var(--branco); }
  .btn-ghost:hover .icon { transform: translateX(5px); }
}

:focus-visible { outline: 2px solid var(--branco); outline-offset: 4px; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--branco); color: var(--preto); padding: .8rem 1.2rem; font-weight: 600; }
.skip-link:focus { top: 1rem; }

/* Barra de progresso de leitura (scroll-timeline nativo, zero JS) */
.progress { display: none; }
@supports (animation-timeline: scroll()) {
  .progress { display: block; position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; background: var(--vermelho); transform-origin: 0 50%; transform: scaleX(0); animation: grow linear both; animation-timeline: scroll(root); }
}

/* Cabeçalho: some ao rolar para baixo, volta ao rolar para cima */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); transition: transform .5s var(--ease), background-color .4s var(--ease); }
.site-header[data-scrolled] { background: rgba(11, 11, 11, .9); box-shadow: 0 1px 0 var(--linha); }
@supports (backdrop-filter: blur(1px)) { .site-header[data-scrolled] { background: rgba(11, 11, 11, .7); backdrop-filter: blur(16px); } }
.site-header[data-hidden] { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; min-height: 48px; }
.brand img { width: 118px; filter: drop-shadow(0 0 1px rgba(244, 244, 244, .5)); }
.nav { display: none; }
.nav ul { display: flex; gap: 1.8rem; }
.nav a { position: relative; display: inline-flex; align-items: baseline; gap: .45rem; padding-block: .6rem; font-size: .95rem; font-weight: 600; color: var(--cinza); transition: color .25s; }
.nav a .mono { font-size: .66rem; color: var(--vermelho); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .2rem; height: 1px; background: var(--branco); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover, .nav a[aria-current="true"] { color: var(--branco); }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }

/* Placeholders (temporários, visíveis de propósito) */
.ph { color: var(--placeholder); }
.placeholder { margin-top: 2rem; padding: .9rem 1.1rem; border: 1px dashed var(--placeholder); color: var(--placeholder); font-weight: 600; font-size: .98rem; width: fit-content; max-width: 100%; }

/* Mídia com cortina + parallax + legenda de figura + marcas de corte */
.media { position: relative; margin: 0; }
.media-par { position: relative; overflow: hidden; height: 100%; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.fig { position: absolute; left: var(--gutter); bottom: 1rem; z-index: 2; display: inline-flex; align-items: center; gap: .6rem; padding: .45rem .7rem; background: rgba(11, 11, 11, .78); color: var(--branco); font-size: .66rem; }
.fig::before { content: ""; width: 6px; height: 6px; background: var(--vermelho); }
.frame i, .media::before, .media::after { pointer-events: none; }
.media::before, .media::after { content: ""; position: absolute; z-index: 2; width: 18px; height: 18px; border: 0 solid var(--branco); opacity: .8; }
.media::before { top: 12px; left: 12px; border-width: 1px 0 0 1px; }
.media::after { top: 12px; right: 12px; border-width: 1px 1px 0 0; }

/* Checklist */
.checklist { display: grid; gap: .7rem; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; font-weight: 600; }
.checklist .icon { color: var(--vermelho); width: 1.05em; height: 1.05em; margin-top: .3em; }

/* 7. SEÇÕES --------------------------------------------------------------- */

/* Hero */
.hero { position: relative; min-height: 100vh; display: grid; grid-template-rows: 1fr auto; overflow: hidden; isolation: isolate; }
@supports (min-height: 100svh) { .hero { min-height: 100svh; } }
.hero-media { position: absolute; inset: 0; z-index: -2; animation: settle 2.8s var(--ease) both; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 16% 18%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11, 11, 11, .6) 0%, rgba(11, 11, 11, 0) 20%, rgba(11, 11, 11, .45) 42%, rgba(11, 11, 11, .93) 66%, var(--preto) 100%); }
.frame { position: absolute; inset: calc(var(--header-h) + 8px) 12px 12px; z-index: 0; pointer-events: none; }
.frame i { position: absolute; width: 22px; height: 22px; border: 0 solid rgba(244, 244, 244, .55); animation: fadeIn 1s var(--ease) 1.2s both; }
.frame i:nth-child(1) { top: 0; left: 0; border-width: 1px 0 0 1px; }
.frame i:nth-child(2) { top: 0; right: 0; border-width: 1px 1px 0 0; }
.frame i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.frame i:nth-child(4) { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
.hero-content { align-self: end; padding-top: calc(var(--header-h) + 3rem); padding-bottom: 1.8rem; position: relative; }
.kicker { margin-bottom: 1.1rem; }
.kicker .mono { display: inline-block; font-size: .7rem; color: var(--branco); background: rgba(11, 11, 11, .7); padding: .4rem .6rem; }
.hero-title { font-size: clamp(3.5rem, 16.5vw, 8.6rem); line-height: .84; margin-bottom: 1.4rem; }
.hero-title .line { display: block; overflow: hidden; padding: .14em .06em .03em 0; margin-top: -.14em; } /* folga para acento (É) e itálico */
.hero-title .line > span { display: inline-block; }
.hero-sub { font-size: clamp(1.06rem, 2.6vw, 1.22rem); color: #d4d4d4; max-width: 33rem; margin-bottom: 1.8rem; text-wrap: pretty; }
.hero-ctas { display: grid; gap: .7rem; }
.rail { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--linha); background: rgba(11, 11, 11, .6); }
.rail > div { padding: 1rem var(--gutter); border-bottom: 1px solid var(--linha); }
.rail > div:nth-child(odd) { border-right: 1px solid var(--linha); }
.rail dt { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cinza); }
.rail dd { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.7rem; line-height: 1.05; text-transform: uppercase; }

/* Faixa em movimento (velocidade reage à rolagem, ver main.js) */
.marquee { background: var(--vermelho-fundo); color: #fff; overflow: hidden; padding-block: .75rem; }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee span { display: inline-flex; align-items: center; gap: 1.8rem; padding-right: 1.8rem; font-family: var(--font-display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: clamp(1.35rem, 4vw, 2rem); letter-spacing: .02em; white-space: nowrap; }
.marquee span::after { content: "/"; font-weight: 700; opacity: .55; }
html:not(.motion) .marquee-track { animation: marquee 40s linear infinite; }

/* 01 Para quem é: carrossel com encaixe no celular, bento no desktop */
.deck { display: flex; gap: 12px; margin-top: clamp(2.5rem, 6vw, 4rem); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; }
.deck::-webkit-scrollbar { display: none; }
.card { position: relative; flex: 0 0 82%; min-height: 470px; scroll-snap-align: start; display: flex; flex-direction: column; justify-content: flex-end; gap: .8rem; padding: 1.6rem; background: var(--grafite); border: 1px solid var(--linha); overflow: hidden; isolation: isolate; }
.card p { color: var(--cinza); }
.card h3 { font-size: 2rem; line-height: .95; }
.card-n { color: var(--vermelho); }
.card-photo { padding: 0; border: 0; }
.card-media { position: absolute; inset: 0; z-index: -2; margin: 0; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.card-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 11, 11, 0) 30%, rgba(11, 11, 11, .95) 85%); }
.card-photo .card-body { padding: 1.6rem; display: grid; gap: .8rem; }
.card-photo p { color: #d0d0d0; }
.card-text { justify-content: space-between; }
.card-text .card-n { order: -1; }
.card-glyph { position: absolute; right: 1.2rem; top: .2rem; font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 9rem; line-height: 1; color: var(--linha); }
.card-red { background: var(--vermelho-fundo); border: 0; }
.card-red p, .card-red .card-n { color: #fff; }
.card-link { display: inline-flex; align-items: center; gap: .5rem; margin-top: .4rem; }
.card-link .icon { transition: transform .45s var(--ease); }
.deck-hint { display: flex; align-items: center; gap: .8rem; margin-top: 1.2rem; color: var(--cinza); }
.deck-bar { position: relative; flex: 0 0 72px; height: 1px; background: var(--linha-forte); }
.deck-bar b { position: absolute; inset: 0 auto 0 0; width: 25%; background: var(--vermelho); transition: transform .4s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .card-photo:hover .card-media img { transform: scale(1.05); }
  .card-red:hover .card-link .icon { transform: translateX(6px); }
}

/* Split (mídia + conteúdo) */
.split { display: grid; padding-block: 0; }
.split .media { aspect-ratio: 4 / 3.2; }
#metodo .media img { object-position: 64% 50%; }
#joelho-ombro .media img { object-position: 22% 50%; }
.split-content { padding: clamp(3.5rem, 10vw, 7rem) var(--gutter); display: grid; gap: 1.8rem; align-content: center; }
.split-content .sec-index { margin-bottom: 0; }

/* Pilares */
.pillars { display: grid; }
.pillar { display: grid; grid-template-columns: 3.4rem 1fr; gap: 1rem; padding-block: 1.3rem; border-top: 1px solid var(--linha); }
.pillar:last-child { border-bottom: 1px solid var(--linha); }
.pillar-n { font-size: 2.3rem; line-height: .9; font-weight: 800; color: var(--vermelho); }
.pillar p { color: var(--cinza); margin-top: .35rem; }

/* 03 Serviços: ficha técnica */
.specs { display: grid; gap: clamp(2.5rem, 6vw, 4rem); margin-top: clamp(2.5rem, 6vw, 4rem); }
.spec { display: grid; gap: 1.1rem; align-content: start; }
.spec-head { display: flex; align-items: baseline; gap: 1rem; padding-bottom: 1rem; border-bottom: 2px solid var(--branco); }
.spec-head .mono { color: var(--vermelho); }
.spec-head h3 { font-size: clamp(1.9rem, 5vw, 2.5rem); }
.spec > p { color: var(--cinza); max-width: 44ch; }
.spec-table > div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding-block: .85rem; border-bottom: 1px solid var(--linha); }
.spec-table dt { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cinza); padding-top: .3em; }
.spec-table dd { font-weight: 600; }
.focus { margin-top: clamp(2.5rem, 6vw, 3.5rem); color: var(--cinza); line-height: 2; }
.focus span { color: var(--branco); }

/* Aviso */
.notice { display: grid; gap: .4rem; padding: 1.1rem 1.2rem; border-left: 2px solid var(--vermelho); background: rgba(244, 244, 244, .04); }
.notice .mono { color: var(--vermelho); }
.notice p { color: #d6d6d6; font-size: .98rem; }

/* 05 Sobre */
.about { display: grid; gap: clamp(3rem, 7vw, 6rem); align-items: center; }
.media-portrait { aspect-ratio: 4 / 3.4; margin-inline: calc(var(--gutter) * -1); }
.media-portrait img { object-position: 28% 30%; }
.about-content { display: grid; gap: 1.6rem; }
.about-content .sec-index { margin-bottom: 0; }
.h2-name { font-size: clamp(3rem, 11vw, 6.2rem); }
.role { color: var(--cinza); margin-top: -.6rem; }
.creds > div { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; padding-block: 1rem; border-top: 1px solid var(--linha); }
.creds > div:last-child { border-bottom: 1px solid var(--linha); }
.creds dt { color: var(--vermelho); font-size: .78rem; padding-top: .25em; }
.creds strong { display: block; font-weight: 600; line-height: 1.35; }
.creds dd span { color: var(--cinza); font-size: .92rem; }
.link-ig { display: inline-flex; align-items: center; gap: .7rem; min-height: 48px; width: fit-content; color: var(--cinza); transition: color .25s; }
.link-ig strong { color: var(--branco); }
.link-ig .icon { color: var(--vermelho); }
.link-ig:hover { color: var(--branco); }

/* 06 Depoimentos (slots vazios até o cliente enviar) */
.quotes { display: grid; gap: 12px; margin-top: clamp(2.5rem, 6vw, 3.5rem); }
.quote { display: grid; gap: 1rem; align-content: start; padding: 1.6rem; border: 1px dashed rgba(255, 176, 32, .45); min-height: 200px; }
.quote > .mono { color: var(--cinza); }
.quote blockquote { font-size: 1.1rem; font-weight: 600; }
.quote figcaption { font-size: .9rem; }

/* 07 Como começar */
.media-wide { aspect-ratio: 16 / 10; margin-block: clamp(2.5rem, 6vw, 4rem); }
.media-wide img { object-position: 62% 40%; }
.steps { display: grid; counter-reset: s; }
.step { position: relative; display: grid; gap: .5rem; padding: 1.5rem 0 1.5rem 0; border-top: 1px solid var(--linha); }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 2px; background: var(--vermelho); }
.step-n { color: var(--vermelho); }
.step h3 { font-size: 1.9rem; }
.step p { color: var(--cinza); }
.steps-foot { display: grid; gap: 1.2rem; justify-items: start; margin-top: 1rem; }
.steps-foot .placeholder { margin-top: 0; }

/* 08 FAQ */
.faq-grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); }
.faq { border-top: 1px solid var(--linha-forte); }
.faq details { border-bottom: 1px solid var(--linha-forte); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 2.4rem 1fr 18px; align-items: center; gap: .6rem; padding: 1.3rem 0; min-height: 60px; font-size: 1.32rem; font-weight: 700; line-height: 1.12; transition: color .25s; }
.faq summary .mono { color: var(--vermelho); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 14px; height: 14px; justify-self: end;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
  transition: transform .5s var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); color: var(--vermelho); }
.faq summary:hover { color: #fff; }
.faq-a { padding: 0 0 1.4rem 3rem; color: var(--cinza); max-width: 60ch; }
@supports selector(::details-content) {
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content { height: 0; overflow: clip; transition: height .5s var(--ease), content-visibility .5s allow-discrete; }
  .faq details[open]::details-content { height: auto; }
}

/* CTA final */
.cta-final { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(7rem, 22vw, 12rem); text-align: center; }
.cta-media { position: absolute; inset: 0; z-index: -2; }
.cta-media img { width: 100%; height: 115%; object-fit: cover; object-position: 28% 40%; }
.cta-final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 55%, rgba(11, 11, 11, .55), rgba(11, 11, 11, .3) 80%), linear-gradient(180deg, var(--preto), transparent 25%, transparent 75%, var(--preto)); }
.cta-content { display: grid; justify-items: center; gap: 1.6rem; }
.cta-title { font-size: clamp(4rem, 19vw, 10rem); line-height: .84; }

/* Rodapé */
.site-footer { border-top: 1px solid var(--linha); padding-top: clamp(4rem, 10vw, 6rem); padding-bottom: calc(6.5rem + env(safe-area-inset-bottom)); }
.footer-claim { font-size: clamp(2.4rem, 10vw, 6.4rem); line-height: .88; color: rgba(244, 244, 244, .44); margin-bottom: clamp(3rem, 8vw, 5rem); max-width: 12ch; }
.footer-claim .accent { color: var(--vermelho); }
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-brand img { width: 160px; filter: drop-shadow(0 0 1px rgba(244, 244, 244, .5)); }
.footer-links { display: grid; }
.footer-links a, .footer-links li > span { display: grid; grid-template-columns: 7rem 1fr; align-items: center; min-height: 52px; border-bottom: 1px solid var(--linha); font-weight: 600; transition: color .25s; }
.footer-links .mono { color: var(--cinza); }
.footer-links a:hover { color: var(--vermelho); }
.footer-bottom { display: grid; gap: .5rem; padding-top: 1.5rem; color: var(--cinza); font-size: .68rem; }

/* Barra de ação fixa no celular */
.action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: 1fr auto; gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(11, 11, 11, .92); border-top: 1px solid var(--linha);
  transform: translateY(110%); transition: transform .55s var(--ease); }
@supports (backdrop-filter: blur(1px)) { .action-bar { background: rgba(11, 11, 11, .72); backdrop-filter: blur(16px); } }
.action-bar .btn { min-height: 52px; }
.action-bar.is-visible { transform: none; }
html:not(.js) .action-bar { position: static; transform: none; } /* sem JS: vira um bloco no fim da página */

/* 8. MOTION ---------------------------------------------------------------- */
/* Entrada do hero (CSS puro, roda sem JS) */
.hero-in { animation: rise 1.1s var(--ease) both; animation-delay: calc(var(--d, 0) * 110ms + 150ms); }
.hero-title .line > .hero-in { animation-name: lineUp; animation-duration: 1.2s; }

/* Tudo abaixo só liga quando o JS confirma que pode animar (classe .motion).
   Sem JS ou com movimento reduzido: conteúdo aparece direto. */

/* Títulos: palavra por palavra saindo de uma máscara */
.motion [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .12em .08em 0 0; margin: -.12em -.08em 0 0; }
.motion [data-split] .wi { display: inline-block; transform: translateY(105%) skewY(4deg); transition: transform 1.1s var(--ease); transition-delay: calc(var(--wi) * 55ms); }
.motion [data-split].is-in .wi { transform: none; }

/* Texto de apoio: só opacidade, atrasado em relação ao título (sem "fade-up") */
.motion .fade { opacity: 0; transition: opacity 1s var(--ease); transition-delay: calc(var(--i, 0) * 110ms + 250ms); }
.motion .fade.is-in { opacity: 1; }

/* Linhas que se desenham */
.motion .rule { transform: scaleX(0); transition: transform 1.4s var(--ease) .2s; }
.motion .sec-index.is-in .rule { transform: scaleX(1); }
.motion .pillar, .motion .step { background: linear-gradient(var(--linha), var(--linha)) top left / 0 1px no-repeat; border-top-color: transparent; transition: background-size 1.2s var(--ease), opacity 1s var(--ease); transition-delay: calc(var(--i, 0) * 120ms); }
.motion .pillar.is-in, .motion .step.is-in { background-size: 100% 1px; }

/* Imagens: cortina de baixo para cima */
.motion .reveal-img .media-par { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-io); }
.motion .reveal-img.is-in .media-par { clip-path: inset(0 0 0 0); }
.motion .reveal-img .fig { opacity: 0; transform: translateX(-8px); transition: opacity .8s var(--ease) 1s, transform .8s var(--ease) 1s; }
.motion .reveal-img.is-in .fig { opacity: 1; transform: none; }

/* Parallax ligado à rolagem: roda na thread de composição (sem JS), só onde há suporte */
@supports (animation-timeline: view()) {
  .motion .media img, .motion .cta-media img { animation: drift linear both; animation-timeline: view(); scale: 1.12; }
  .motion .hero-media img { animation: heroOut linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
}

@keyframes settle { from { transform: scale(1.1); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes lineUp { from { transform: translateY(108%) skewY(5deg); } to { transform: none; } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes grow { to { transform: scaleX(1); } }
@keyframes drift { from { translate: 0 -5%; } to { translate: 0 5%; } }
@keyframes heroOut { to { translate: 0 12%; opacity: .55; } }

/* 9. RESPONSIVO ----------------------------------------------------------- */
@media (max-width: 379px) {
  .hide-xs { display: none; }
  .hero-title { font-size: 3.2rem; }
}

@media (min-width: 600px) {
  .hero-ctas { display: flex; flex-wrap: wrap; }
  .rail { grid-template-columns: repeat(4, 1fr); }
  .rail > div { border-bottom: 0; border-right: 1px solid var(--linha); }
  .rail > div:last-child { border-right: 0; }
  .card { flex-basis: 46%; }
  .quotes { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1.4fr; align-items: start; }
  .footer-bottom { grid-template-columns: 1fr auto; }
}

@media (min-width: 960px) {
  :root { --header-h: 76px; }
  .brand img { width: 140px; }
  .nav { display: block; }
  .action-bar { display: none; }
  .site-footer { padding-bottom: 2.5rem; }

  .hero-media img { object-position: 30% 28%; }
  .hero::before { background:
      linear-gradient(90deg, rgba(11, 11, 11, 0) 30%, rgba(11, 11, 11, .8) 56%, rgba(11, 11, 11, .95) 80%),
      linear-gradient(180deg, rgba(11, 11, 11, .5) 0%, transparent 22%, transparent 78%, var(--preto) 100%); }
  /* Grade de 2 colunas DENTRO do contêiner: o texto ocupa a coluna da direita.
     (padding em % seria calculado sobre a tela inteira e empurraria o texto para fora em telas largas) */
  .hero-content { align-self: center; padding-bottom: 0; display: grid; grid-template-columns: 47fr 53fr; justify-items: start; }
  .hero-content > * { grid-column: 2; }
  .hero-title { font-size: clamp(4.4rem, 6.6vw, 7.4rem); }
  .frame { inset: calc(var(--header-h) + 12px) 24px 24px; }
  .rail > div { padding-block: 1.3rem; }
  .rail dd { font-size: 2.1rem; }

  /* bento */
  .deck { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, minmax(300px, auto)); gap: 14px; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .card { min-height: 0; }
  .card-photo { grid-row: span 2; min-height: 640px; }
  .card:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
  .card:nth-child(2) { grid-column: 2; grid-row: 1; }
  .card:nth-child(3) { grid-column: 3; grid-row: 1 / span 2; }
  .card:nth-child(4) { grid-column: 2; grid-row: 2; }
  .deck-hint { display: none; }

  .split { grid-template-columns: 1fr 1fr; min-height: 720px; }
  .split .media { aspect-ratio: auto; }
  .split-rev .media { order: 2; }
  .split-content { padding: 7rem clamp(3rem, 6vw, 7rem); max-width: 760px; }
  .split-rev .split-content { justify-self: end; }

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

  .about { grid-template-columns: 1fr 1fr; }
  .media-portrait { aspect-ratio: 4 / 4.8; margin-inline: 0; }

  .media-wide { aspect-ratio: 21 / 8; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .steps-foot { grid-auto-flow: column; justify-content: start; align-items: center; margin-top: 2rem; }

  .faq-grid { grid-template-columns: 5fr 7fr; align-items: start; }
  .faq-head { position: sticky; top: calc(var(--header-h) + 2rem); }
}

@media (min-width: 1280px) {
  .hero-content { grid-template-columns: 1fr 1fr; }
}

/* 10. MOVIMENTO REDUZIDO -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .progress { display: none; }
}
