/* INFINI — Brand Resources
   Cores vêm do manual da marca; tipografia é a Optima (files/fonts) + Source Code Pro nos rótulos, como no manual. */

@font-face { font-family: 'Optima'; src: url('files/fonts/optima-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Optima'; src: url('files/fonts/optima-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Optima'; src: url('files/fonts/optima-bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Optima'; src: url('files/fonts/optima-bold-italic.woff2') format('woff2'); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Optima'; src: url('files/fonts/optima-extrablack.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  --bg: #faf7f5;
  --bg-alt: #f4efec;
  --surface: #ffffff;
  --ink: #1f1a19;
  --ink-2: #5b504d;
  --ink-3: #857874;
  --line: #ebe3df;
  --line-2: #dfd3ce;

  --rose: #c8a19d;
  --terracota: #bc7a66;
  --blush: #eddbd5;

  --prev-claro: #f5f0ed;
  --prev-rose: #c8a19d;
  --prev-escuro: #2b2321;

  --acento: var(--terracota);   /* gerador: controles */
  --acento-2: #ecdcd4;          /* gerador: amostra "Original" */

  --serif: 'Optima', Candara, 'Segoe UI', sans-serif;
  --mono: 'Source Code Pro', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(31, 26, 25, .04), 0 18px 40px -24px rgba(31, 26, 25, .22);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1160px;
  --gutter: 24px;
  --topo-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topo-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--blush); color: var(--ink); }
:focus-visible { outline: 2px solid var(--terracota); outline-offset: 3px; border-radius: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ic { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.rotulo {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.pular { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; }
.pular:focus { top: 12px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--grande { height: 48px; padding: 0 22px; }
.btn--escuro { background: var(--ink); color: #fff; }
.btn--escuro:hover { background: #3d3331; }
.btn--leve { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--leve:hover { border-color: var(--ink); }
.btn--claro { background: #fff; color: var(--ink); }
.btn--claro:hover { background: var(--bg); }
.btn__tam { padding-left: 10px; margin-left: 2px; border-left: 1px solid var(--line-2); color: var(--ink-3); font-weight: 500; }

/* ---------- Topo ---------- */
.topo {
  position: sticky; top: 0; z-index: 50; height: var(--topo-h);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}
/* no topo da página fica transparente; ao rolar vira vidro */
.topo.rolou {
  background: rgba(250, 247, 245, .8); border-bottom-color: var(--line);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
}
.topo__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.marca { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.marca img { width: 26px; height: 26px; }
.marca__nome { font-size: 17px; letter-spacing: .32em; margin-right: -.32em; }
.marca__sub { padding-left: 12px; border-left: 1px solid var(--line-2); font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }

.menu { display: flex; gap: 2px; }
.menu a {
  padding: 8px 14px; border-radius: 999px; text-decoration: none;
  font-size: 15px; color: var(--ink-2);
  transition: color .2s, background-color .2s;
}
.menu a:hover { color: var(--ink); }
.menu a.ativo { color: var(--ink); background: rgba(188, 122, 102, .12); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: calc(-1 * var(--topo-h)); /* passa por baixo do topo de vidro */
  padding: calc(var(--topo-h) + clamp(72px, 12vw, 140px)) 0 clamp(24px, 4vw, 48px);
}
.hero::before {
  content: ''; position: absolute; z-index: -2; width: 900px; height: 900px; right: -260px; top: -340px;
  background: radial-gradient(closest-side, rgba(237, 219, 213, .9), rgba(237, 219, 213, 0));
}
.hero__simbolo {
  position: absolute; z-index: -1; width: min(620px, 70vw); right: max(-120px, calc((100vw - var(--container)) / 2 - 140px)); top: 50%;
  transform: translateY(-50%) rotate(-8deg); opacity: .55; pointer-events: none;
}
.hero__rotulo span { margin: 0 .6em; color: var(--line-2); }
.hero__logo { margin: 28px 0 0; font-size: 0; }
.hero__logo img { width: min(560px, 82vw); height: auto; }
.hero__frase { margin-top: 36px; max-width: 30ch; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; color: var(--ink); }
.hero__sub { margin-top: 16px; max-width: 46ch; color: var(--ink-2); }

.indice {
  list-style: none; margin: clamp(48px, 7vw, 80px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 880px;
}
.indice a {
  display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 18px 20px 20px;
  border-radius: var(--radius-sm); text-decoration: none;
  background: rgba(255, 255, 255, .6); border: 1px solid var(--line);
  transition: background-color .25s, border-color .25s, transform .3s var(--ease);
}
.indice a:hover { background: #fff; border-color: var(--line-2); transform: translateY(-2px); }
.indice strong { margin-top: 18px; font-weight: 400; font-size: 19px; }
.indice em { font-style: normal; font-size: 14px; color: var(--ink-3); }

/* ---------- Seções ---------- */
.secao { padding: clamp(72px, 10vw, 120px) 0; }
.secao--alt { background: var(--bg-alt); }
.secao__cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 56px); }
.secao__cab h2 { margin-top: 14px; font-weight: 400; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: .01em; }
.secao__desc { margin-top: 14px; max-width: 52ch; color: var(--ink-2); }

.grade { display: grid; gap: 20px; }

/* ---------- Logos ---------- */
.fundos { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.fundos .rotulo { margin-right: 6px; font-size: 10.5px; }
.fundos button {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px; border: 0; border-radius: 999px;
  background: transparent; font-size: 14px; color: var(--ink-2); cursor: pointer; transition: background-color .2s, color .2s;
}
.fundos button:hover { color: var(--ink); }
.fundos button[aria-checked="true"] { background: var(--ink); color: #fff; }
.fundos i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }

.grupo + .grupo { margin-top: 56px; }
.grupo__tit { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.grupo__tit::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.grade--logos { grid-template-columns: repeat(3, 1fr); }
.logo {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: box-shadow .35s var(--ease), transform .35s var(--ease), border-color .35s;
}
.logo:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.logo__previa {
  --prev: var(--prev-claro);
  display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 10; padding: 10%; border: 0; cursor: pointer;
  background: var(--prev); transition: background-color .45s var(--ease);
}
.logo[data-fundo="rose"] .logo__previa { --prev: var(--prev-rose); }
.logo[data-fundo="escuro"] .logo__previa { --prev: var(--prev-escuro); }
.logos[data-fundo="claro"] .logo__previa { --prev: var(--prev-claro); }
.logos[data-fundo="rose"] .logo__previa { --prev: var(--prev-rose); }
.logos[data-fundo="escuro"] .logo__previa { --prev: var(--prev-escuro); }
.logo__previa img { width: 100%; height: 100%; max-height: 112px; object-fit: contain; transition: transform .5s var(--ease); }
.logo:hover .logo__previa img { transform: scale(1.03); }

.logo__info { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 16px 20px; border-top: 1px solid var(--line); }
.logo__txt { min-width: 0; }
.logo__txt h4 { font-weight: 400; font-size: 17px; line-height: 1.3; }
.logo__txt p { font-size: 14px; line-height: 1.4; color: var(--ink-3); }
.logo__acoes { display: flex; gap: 6px; flex: none; }
.logo__acoes .btn { height: 34px; padding: 0 13px; font-size: 11px; }
.logo__acoes .ic { width: 15px; height: 15px; margin-left: -2px; }

/* ---------- Cores ---------- */
.grade--cores { grid-template-columns: repeat(4, 1fr); }
.cor { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.cor__amostra {
  position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; padding: 0; border: 0;
  background: var(--c); cursor: copy;
}
.cor--metal .cor__amostra {
  cursor: default;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 240, 230, .55) 45%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(160deg, #8c4f37 0%, #c98a6b 28%, #f0c3a7 46%, #b46e50 64%, #e2a98a 82%, #93563d 100%);
}
.cor__dica {
  position: absolute; left: 16px; bottom: 16px; padding: 6px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .88); color: var(--ink);
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s var(--ease);
}
.cor__amostra:hover .cor__dica, .cor__amostra:focus-visible .cor__dica { opacity: 1; transform: none; }
.cor__info { padding: 20px 20px 18px; }
.cor__info h3 { font-weight: 400; font-size: 21px; }
.cor__info > p { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.cor dl { margin: 12px 0 0; }
.cor dl div { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; border-top: 1px solid var(--line); }
.cor dl div:first-child { border-top: 0; }
.cor dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.cor dd { margin: 0; }
.cor dd button {
  padding: 3px 8px; margin-right: -8px; border: 0; border-radius: 8px; background: transparent; cursor: copy;
  font-family: var(--mono); font-size: 13.5px; color: var(--ink); transition: background-color .2s;
}
.cor dd button:hover { background: var(--bg-alt); }

/* Cores do símbolo: digital × impressão */
.simbolo { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: 20px; margin-top: 20px; }
.simbolo__arte { display: grid; place-items: center; padding: 48px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.simbolo__arte img { width: min(220px, 100%); }
.simbolo__info { padding: 28px 28px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.simbolo__info h3 { margin-top: 10px; font-weight: 400; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; }
.simbolo__info > p:not(.rotulo) { margin-top: 10px; max-width: 58ch; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.tons { margin-top: 18px; }
.tom { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 8px 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.tom__cor { position: relative; width: 40px; height: 40px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(31, 26, 25, .12); }
.tom__txt h4 { font-weight: 400; font-size: 17px; line-height: 1.3; }
.tom__txt p { font-size: 13.5px; line-height: 1.45; color: var(--ink-3); }
.tom dl { display: flex; gap: 20px; margin: 0; }
.tom dl div { display: flex; flex-direction: column; align-items: flex-end; }
.tom dt { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.tom dd { margin: 0; }
.tom dd button {
  padding: 2px 6px; margin-right: -6px; border: 0; border-radius: 8px; background: transparent; cursor: copy;
  font-family: var(--mono); font-size: 13px; color: var(--ink); white-space: nowrap; transition: background-color .2s;
}
.tom dd button:hover { background: var(--bg-alt); }
.tom--errado { grid-template-columns: 40px 1fr; }
.tom--errado .tom__cor::after {
  content: ''; position: absolute; left: calc(50% - 1px); top: -4px; bottom: -4px; width: 2px; border-radius: 2px;
  background: #a8412f; transform: rotate(45deg);
}
.tom--errado h4 { color: #a8412f; }

/* ---------- Tipografia ---------- */
.tipo { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 20px; }
.tipo__capa {
  position: relative; display: flex; flex-direction: column; padding: 28px;
  border-radius: var(--radius); background: var(--rose); color: var(--ink); overflow: hidden;
}
.tipo__capa .rotulo { color: rgba(31, 26, 25, .7); }
.tipo__aa {
  flex: 1; display: flex; align-items: center; min-height: 1.1em; margin: 0 0 0 -.04em;
  font-size: clamp(150px, 19vw, 230px); line-height: 1; letter-spacing: -.01em; color: #fff;
}
.tipo__capa h3 { font-weight: 400; font-size: 34px; line-height: 1.1; color: var(--ink); }
.tipo__meta { margin-top: 6px; font-size: 15px; color: rgba(31, 26, 25, .72); }
.tipo__capa .btn { align-self: flex-start; margin-top: 28px; }
.tipo__nota { margin-top: 14px; font-size: 13.5px; line-height: 1.5; color: rgba(31, 26, 25, .72); }

.tipo__corpo { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.teste { display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; padding: 14px 16px 14px 24px; border-bottom: 1px solid var(--line); }
.teste__campo {
  flex: 1 1 240px; min-width: 0; height: 40px; padding: 0; border: 0; background: transparent; outline: none;
  font-size: 17px; color: var(--ink);
}
.teste__campo::placeholder { color: var(--ink-3); }
.teste__tam { display: flex; align-items: center; gap: 12px; }
.teste__tam output { min-width: 2ch; text-align: right; color: var(--ink); }
.teste__tam input[type="range"] { width: 120px; accent-color: var(--terracota); }

.estilos { list-style: none; margin: 0; padding: 0; }
.estilos li { padding: 18px 24px 20px; border-bottom: 1px solid var(--line); }
.estilos__amostra {
  margin-top: 6px; font-size: var(--tam, 40px); line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.glifos { padding: 22px 24px 26px; color: var(--ink-2); font-size: clamp(18px, 2vw, 22px); line-height: 1.5; letter-spacing: .04em; overflow-wrap: anywhere; }

/* ---------- Manual ---------- */
.manual {
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(32px, 6vw, 72px);
  padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.manual__paginas { position: relative; display: block; aspect-ratio: 16 / 9; margin: 4% 10% 4% 2%; }
.manual__paginas img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  border-radius: 10px; box-shadow: 0 1px 2px rgba(31, 26, 25, .08), 0 24px 48px -28px rgba(31, 26, 25, .45);
  transition: transform .6s var(--ease);
}
/* três páginas em leque: a 1ª do HTML fica atrás */
.manual__paginas img:nth-child(1) { transform: translate(13%, -9%) rotate(9deg) scale(.9); }
.manual__paginas img:nth-child(2) { transform: translate(5%, -3%) rotate(3.5deg) scale(.9); }
.manual__paginas img:nth-child(3) { transform: translate(-3%, 4%) rotate(-3deg) scale(.9); }
.manual__paginas:hover img:nth-child(1) { transform: translate(18%, -12%) rotate(12deg) scale(.9); }
.manual__paginas:hover img:nth-child(2) { transform: translate(7%, -4%) rotate(5deg) scale(.9); }
.manual__paginas:hover img:nth-child(3) { transform: translate(-5%, 5%) rotate(-4.5deg) scale(.9); }
.manual__txt h3 { margin-top: 14px; font-weight: 400; font-size: clamp(26px, 3vw, 34px); line-height: 1.2; }
.manual__txt > p:not(.rotulo) { margin-top: 14px; color: var(--ink-2); max-width: 42ch; }
.manual__acoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* ---------- Rodapé ---------- */
.rodape { padding: 40px 0 48px; border-top: 1px solid var(--line); }
.rodape__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.rodape img { width: 96px; height: auto; opacity: .9; }
.rodape .rotulo { text-transform: none; letter-spacing: .06em; }

/* ---------- Aviso (copiado) ---------- */
.aviso {
  position: fixed; left: 50%; bottom: 24px; z-index: 100; display: flex; align-items: center; gap: 10px;
  padding: 11px 18px 11px 12px; border-radius: 999px; background: var(--ink); color: #fff;
  font-size: 15px; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .5);
  opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .25s, transform .3s var(--ease);
}
.aviso.on { opacity: 1; transform: translate(-50%, 0); }
.aviso i { width: 20px; height: 20px; border-radius: 50%; background: var(--c, var(--terracota)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }

/* ---------- Entrada suave (o index.js só marca o que está fora da tela) ---------- */
.revela { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.revela.visto { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1000px) {
  .simbolo { grid-template-columns: 1fr; }
  .simbolo__arte { padding: 32px; }
  .grade--logos { grid-template-columns: repeat(2, 1fr); }
  .grade--cores { grid-template-columns: repeat(2, 1fr); }
  .tipo { grid-template-columns: 1fr; }
  .manual { grid-template-columns: 1fr; }
  .manual__paginas { margin: 6% 12% 0 0; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; --topo-h: 60px; }
  body { font-size: 16px; }
  .marca__sub { display: none; }
  .menu a { padding: 7px 10px; font-size: 14px; }
  .indice { grid-template-columns: repeat(2, 1fr); }
  .hero__simbolo { width: 90vw; right: -40vw; opacity: .45; }
  .fundos { width: 100%; justify-content: space-between; }
  .fundos .rotulo { display: none; }
  .fundos button { padding: 0 10px; }

}
@media (max-width: 620px) {
  .simbolo__info { padding: 22px 18px 8px; }
  .tom { grid-template-columns: 40px 1fr; }
  .tom dl { grid-column: 2; }
  .tom dl div { align-items: flex-start; }
  .tom dd button { margin: 0 0 0 -6px; }
  .grade--logos { grid-template-columns: 1fr; }
  .estilos li { padding: 16px 16px 18px; }
  .teste { padding: 12px 16px; }
  .glifos { padding: 18px 16px 22px; }
}
@media (max-width: 420px) {
  .marca__nome { display: none; }
  .grade--cores { grid-template-columns: 1fr; }
  .cor { flex-direction: row; }
  .cor__amostra { width: 38%; aspect-ratio: auto; flex: none; }
  .cor__dica { display: none; }
  .cor__info { flex: 1; padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .revela { opacity: 1; transform: none; }
}
