/* ==========================================================================
   LP "Protocolo Capilar (BR)" — base compartilhada
   Figma JWn0ZkfnOWrq5dmNx5Qs8L, frame 3341:4664 (1440 desktop).
   Design System BN7zJUzBLSLErbnVk779Eu: breakpoints 1440 / 768 / 390,
   margens 112 / 48 / 20, botões pill com estados hover/pressed/disabled.

   Cada seção tem a própria folha (assets/produto/css/<slug>.css), com o
   desktop primeiro e os blocos @media no fim. Aqui fica só o que é comum.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fontes
   Os "-override" alinham a baseline do Chrome/Windows com a do Figma: o
   Myriad Pro tem métricas typo (75/25) e win (~96/25) diferentes, e sem a
   correção o texto desce de 2px (16px) a 7px (72px) em relação ao desenho.
   -------------------------------------------------------------------------- */

@font-face {
	font-family: "Myriad Pro";
	src: url("../../fonts/myriadpro-regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	ascent-override: 75%;
	descent-override: 25%;
	line-gap-override: 0%;
}

@font-face {
	font-family: "Myriad Pro";
	src: url("../../fonts/myriadpro-semibold.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
	ascent-override: 75%;
	descent-override: 25%;
	line-gap-override: 0%;
}

@font-face {
	font-family: "Myriad Pro";
	src: url("../../fonts/myriadpro-bold.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
	ascent-override: 75%;
	descent-override: 25%;
	line-gap-override: 0%;
}

/* --------------------------------------------------------------------------
   2. Tokens (contagens do frame 3341:4664)
   -------------------------------------------------------------------------- */

:root {
	/* Marca */
	--vp-brown: #503629;        /* títulos de destaque, barra fixa, pressed */
	--vp-bronze: #845d32;       /* rótulos, ícones, hover do primário */
	--vp-gold: #bc955c;         /* botão primário, bordas de destaque */
	--vp-gold-soft: #d4b48a;    /* separadores sobre fundo escuro */
	--vp-amber: #ffb71b;        /* estrelas */
	--vp-sand: #f1e9dd;         /* fundo do badge de seção */
	--vp-cream: #faf7f2;        /* fundos de seção */
	--vp-cream-2: #f8f4ec;      /* hover do secundário, cartões */
	--vp-offwhite: #f8f8f5;     /* bordas de cartões */
	--vp-stone: #d6d1ca;        /* pressed do secundário */

	/* Texto */
	--vp-ink: #000;
	--vp-text: #636569;         /* parágrafos */
	--vp-muted: #9e9e9e;        /* desabilitado, datas */
	--vp-line: #d9d9d9;

	/* Outros */
	--vp-verified: #4285f4;
	--vp-white: #fff;

	/* Tipografia */
	--vp-font: "Myriad Pro", "Myriad", "Segoe UI", system-ui, -apple-system, sans-serif;

	/* Layout — Design System "Layout & Grid" */
	--vp-max: 1440px;
	--vp-gutter: 112px;
	--vp-content: 1216px;       /* 1440 - 2 x 112 */
	--vp-sticky-h: 80px;        /* barra fixa de CTA */

	/* Movimento — DS: 100ms ease-out nos estados */
	--vp-ease: cubic-bezier(0, 0, 0.2, 1);
	--vp-fast: 100ms;
}

@media (max-width: 1023px) {
	:root { --vp-gutter: 48px; }
}

@media (max-width: 767px) {
	:root {
		--vp-gutter: 20px;
		--vp-sticky-h: 80px;
	}
}

/* --------------------------------------------------------------------------
   3. Reset
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body.vp-page {
	margin: 0;
	/* A barra fixa (80) + os 48px que sobram no fim do frame do Figma. */
	padding-bottom: calc(var(--vp-sticky-h) + 48px);
	background: var(--vp-white);
	color: var(--vp-ink);
	font-family: var(--vp-font);
	font-size: 16px;
	line-height: 1.4;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

/*
 * O reset fica dentro de :where() — especificidade zero —, para qualquer
 * classe (.vp-h2, .vp-btn, .vp-badge, as das seções) vencer sem precisar de
 * dois seletores. Com ".vp-page h2" (0,1,1) o reset ganhava das classes
 * (0,1,0): o .vp-h2 saía com 16px e o <a class="vp-btn--primary">, com
 * texto preto.
 */
:where(.vp-page) :where(h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol, address) {
	margin: 0;
	padding: 0;
	font: inherit;
}

:where(.vp-page) :where(ul, ol) {
	list-style: none;
}

:where(.vp-page) :where(img, svg, video) {
	display: block;
	max-width: none;
}

:where(.vp-page) img {
	height: auto;
}

:where(.vp-page) a {
	color: inherit;
	text-decoration: none;
}

:where(.vp-page) button {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

:where(.vp-page) :where(strong, b) {
	font-weight: 600;
}

.vp-main section[id],
.vp-main [id] {
	scroll-margin-top: 16px;
}

/* Foco visível só pelo teclado, na cor da marca. */
.vp-page :focus-visible {
	outline: 2px solid var(--vp-bronze);
	outline-offset: 2px;
}

.vp-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.vp-skip:focus {
	position: fixed !important;
	top: 8px;
	left: 8px;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 12px 16px;
	clip: auto;
	background: var(--vp-white);
	color: var(--vp-brown);
	border-radius: 8px;
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */

/* Faixa de conteúdo: 1216 no desktop, margens do DS abaixo disso. */
.vp-container {
	width: 100%;
	max-width: calc(var(--vp-content) + 2 * var(--vp-gutter));
	margin-inline: auto;
	padding-inline: var(--vp-gutter);
}

/* Quebra que só vale numa largura. */
@media (min-width: 768px) {
	.vp-br-mobile { display: none; }
}

@media (max-width: 767px) {
	.vp-br-desktop { display: none; }
}

/* --------------------------------------------------------------------------
   5. Tipografia compartilhada
   -------------------------------------------------------------------------- */

/* Título de seção — Display/48 Regular (mobile: Display/40). */
.vp-h2 {
	color: var(--vp-ink);
	font-size: 48px;
	line-height: 52.8px;
	font-weight: 400;
	letter-spacing: 0;
}

/* Texto de apoio do título — Text/20 Regular, #636569. */
.vp-lead {
	color: var(--vp-text);
	font-size: 20px;
	line-height: 28px;
	font-weight: 400;
}

@media (max-width: 767px) {
	.vp-h2 {
		font-size: 40px;
		line-height: 44px;
	}

	.vp-lead {
		font-size: 18px;
		line-height: 25.2px;
	}
}

/* Cabeçalho de seção: badge + título + apoio, centralizados.
   Figma: "... Header" (col gap 32) > "... Header Content" (col gap 24) >
   badge + "Title Group" (col gap 12). */
.vp-section-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	text-align: center;
}

.vp-section-head__titles {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
}

/* --------------------------------------------------------------------------
   6. Badge de seção — "Badge / Section / *" (3209:150 e irmãos)
   Pílula #F1E9DD de 32px; dentro, rótulo branco (pad 10, 14/19.6 600
   #845D32) e subtítulo 14/19.6 400 #000, gap 12; padding 0/16/0/3.
   -------------------------------------------------------------------------- */

.vp-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	height: 32px;
	padding: 0 16px 0 3px;
	border: 1px solid var(--vp-sand);
	border-radius: 9999px;
	background: var(--vp-sand);
	white-space: nowrap;
	-webkit-backdrop-filter: blur(11px);
	backdrop-filter: blur(11px);
}

.vp-badge__label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 24px;
	padding: 0 10px;
	border-radius: 9999px;
	background: var(--vp-white);
	color: var(--vp-bronze);
	font-size: 14px;
	line-height: 19.6px;
	font-weight: 600;
}

.vp-badge__text {
	color: var(--vp-ink);
	font-size: 14px;
	line-height: 19.6px;
	font-weight: 400;
}

/* --------------------------------------------------------------------------
   7. Botões — DS "Buttons" (3582:1660 Primary / 3582:1732 Secondary)
   Large: 48px, 16/22.4 600, padding 12/24, pill.
   Estados (DS): primário #BC955C → hover #845D32 → pressed #503629 →
   disabled #D9D9D9/#9E9E9E; secundário branco com borda #BC955C → hover
   #F8F4EC/#845D32 → pressed #D6D1CA/#503629.
   -------------------------------------------------------------------------- */

.vp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 48px;
	/* 12/24 do Figma menos a borda de 1px: o componente 3582:1660 não tem
	   stroke, e a borda (que o secundário precisa) somaria 2px à largura. */
	padding: 11px 23px;
	border: 1px solid transparent;
	border-radius: 9999px;
	font-family: var(--vp-font);
	font-size: 16px;
	line-height: 22.4px;
	font-weight: 600;
	text-align: center;
	white-space: nowrap;
	cursor: pointer;
	transition:
		background-color var(--vp-fast) var(--vp-ease),
		border-color var(--vp-fast) var(--vp-ease),
		color var(--vp-fast) var(--vp-ease);
}

.vp-btn--primary {
	background: var(--vp-gold);
	border-color: var(--vp-gold);
	color: var(--vp-white);
}

.vp-btn--primary:hover {
	background: var(--vp-bronze);
	border-color: var(--vp-bronze);
}

.vp-btn--primary:active {
	background: var(--vp-brown);
	border-color: var(--vp-brown);
}

.vp-btn--secondary {
	background: var(--vp-white);
	border-color: var(--vp-gold);
	color: var(--vp-gold);
}

.vp-btn--secondary:hover {
	background: var(--vp-cream-2);
	color: var(--vp-bronze);
}

.vp-btn--secondary:active {
	background: var(--vp-stone);
	color: var(--vp-brown);
}

/* Terciário/ghost: só texto; ganha fundo no hover. */
.vp-btn--ghost {
	background: transparent;
	color: var(--vp-gold);
}

.vp-btn--ghost:hover {
	background: var(--vp-cream-2);
	color: var(--vp-bronze);
}

.vp-btn--ghost:active {
	background: var(--vp-stone);
	color: var(--vp-brown);
}

.vp-btn--dark {
	background: var(--vp-brown);
	border-color: var(--vp-brown);
	color: var(--vp-white);
}

.vp-btn--dark:hover {
	background: var(--vp-bronze);
	border-color: var(--vp-bronze);
}

.vp-btn[disabled],
.vp-btn[aria-disabled="true"],
.vp-btn.is-disabled {
	background: var(--vp-line);
	border-color: var(--vp-line);
	color: var(--vp-muted);
	cursor: not-allowed;
	pointer-events: none;
}

.vp-btn--secondary[disabled],
.vp-btn--secondary[aria-disabled="true"] {
	background: var(--vp-white);
}

/* Medium (DS): 40px, 14px, padding 10/16. */
.vp-btn--md {
	height: 40px;
	padding: 9px 15px;
	font-size: 14px;
	line-height: 19.6px;
}

@media (max-width: 767px) {
	/* No mobile os CTAs ocupam a largura toda (LP Vitruvian, 3582:2199). */
	.vp-btn--block-mobile {
		display: flex;
		width: 100%;
	}
}

/* --------------------------------------------------------------------------
   8. Estrelas (kid_star 1259:9104, #FFB71B)
   -------------------------------------------------------------------------- */

.vp-stars {
	display: inline-flex;
	align-items: center;
	color: var(--vp-amber);
}

/* --------------------------------------------------------------------------
   9. Marquee — trilhos que rolam sozinhos (hero, prova social, selos)
   O JS duplica os itens do trilho (a cópia é aria-hidden) e a animação anda
   exatamente meia largura, então o laço não tem emenda. O quadro inicial
   (translateX 0) é o do Figma.
   -------------------------------------------------------------------------- */

.vp-marquee {
	overflow: hidden;
}

.vp-marquee__track {
	display: flex;
	width: max-content;
	animation: vp-marquee-x var(--vp-marquee-duration, 40s) linear infinite;
}

.vp-marquee--reverse .vp-marquee__track {
	animation-direction: reverse;
}

.vp-marquee--vertical .vp-marquee__track {
	flex-direction: column;
	width: auto;
	height: max-content;
	animation-name: vp-marquee-y;
}

.vp-marquee:hover .vp-marquee__track,
.vp-marquee:focus-within .vp-marquee__track {
	animation-play-state: paused;
}

@keyframes vp-marquee-x {
	from { transform: translate3d(0, 0, 0); }
	to   { transform: translate3d(calc(-50% - var(--vp-marquee-gap, 0px) / 2), 0, 0); }
}

@keyframes vp-marquee-y {
	from { transform: translate3d(0, 0, 0); }
	to   { transform: translate3d(0, calc(-50% - var(--vp-marquee-gap, 0px) / 2), 0); }
}

/* --------------------------------------------------------------------------
   10. Movimento reduzido e modo estático
   ?vp-static=1 congela tudo no primeiro quadro — é assim que a ferramenta de
   comparação fotografa a página para medir contra o Figma.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }

	.vp-page *,
	.vp-page *::before,
	.vp-page *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	/* Letreiros ficam parados no primeiro quadro. Com 0.01ms o trilho ao
	   contrário (reverse) pintava o quadro -50% por um instante. */
	.vp-page .vp-marquee__track {
		animation: none !important;
	}
}

.vp-static,
.vp-static body {
	scroll-behavior: auto !important;
}

.vp-static *,
.vp-static *::before,
.vp-static *::after {
	animation: none !important;
	transition: none !important;
}
