/* Base: fundo, tipografia, botões, rótulos e textura. */
html body,
html body.ast-separate-container,
html body.ast-plain-container {
	background-color: var(--rl-paper);
	background-image: none;
	color: var(--rl-ink);
	font-family: var(--rl-sans);
	-webkit-font-smoothing: antialiased;
}

body h1, body h2, body h3, body h4,
body .elementor-heading-title,
.rl-serif {
	font-family: var(--rl-serif);
	font-weight: 400;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

body h1, body .elementor-widget-theme-post-title .elementor-heading-title { line-height: 1.06; }

a { color: inherit; }

/* Botão pílula — aplica-se a .rl-btn, botões Elementor, CF7 e botões de bloco. */
.rl-btn,
body .elementor-button,
body .elementor-widget-button .elementor-button,
body .wpcf7-submit,
body .wp-block-button__link,
body .ast-button,
body button.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 22px;
	border: 0;
	border-radius: 999px;
	background-color: var(--rl-orange-btn);
	color: #fff;
	font-family: var(--rl-sans);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.1em;
	line-height: 1.2;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .3s var(--rl-ease), transform .3s var(--rl-ease);
}
.rl-btn:hover, .rl-btn:focus-visible,
body .elementor-button:hover, body .elementor-button:focus-visible,
body .elementor-widget-button .elementor-button:hover, body .elementor-widget-button .elementor-button:focus-visible,
body .wpcf7-submit:hover, body .wpcf7-submit:focus-visible,
body .wp-block-button__link:hover, body .wp-block-button__link:focus-visible {
	background-color: var(--rl-orange-btn-hover);
	color: #fff;
}
.rl-btn--dark { background-color: var(--rl-deep); }
.rl-btn--dark:hover { background-color: var(--rl-olive); }
.rl-btn--glass {
	background-color: rgba(241, 236, 226, .12);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: inset 0 0 0 1px rgba(241, 236, 226, .3);
	color: var(--rl-paper);
}

.rl-eyebrow {
	font-family: var(--rl-sans);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

/* Textura de grão (equivalente ao .grain do lanulab). */
.rl-grain { position: relative; isolation: isolate; }
.rl-grain::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	opacity: .07;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.rl-grain > * { position: relative; z-index: 1; }

:focus-visible { outline: 2px solid var(--rl-orange); outline-offset: 3px; }

/* Páginas antigas (só com o kit): breadcrumb afastado da borda no mobile. */
body.page .elementor-widget-breadcrumbs { padding-left: var(--rl-gutter); padding-right: var(--rl-gutter); }
/* Página "Sobre o e-book": botão com tipografia própria (serif grande, 2 linhas) volta ao padrão pílula. */
body.page-id-21 .elementor-21 .elementor-button {
	font-family: var(--rl-sans) !important; font-size: 13px !important; font-weight: 900 !important;
	letter-spacing: .1em !important; text-transform: uppercase !important; line-height: 1.2 !important;
	padding: 18px 32px !important; white-space: nowrap;
}

/* Botão flutuante "voltar ao topo" do Astra no padrão da marca. */
body #ast-scroll-top {
	width: 44px; height: 44px; border-radius: 50%; background: var(--rl-deep); color: var(--rl-paper);
	box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(241, 236, 226, .15);
	display: flex; align-items: center; justify-content: center; transition: background .3s var(--rl-ease), transform .3s var(--rl-ease);
}
body #ast-scroll-top:hover { background: var(--rl-orange-btn); transform: translateY(-2px); }
body #ast-scroll-top .ast-icon svg { fill: currentColor; width: 14px; height: 14px; }
