/* ==========================================================================
   Corretor Imbatível — Design System (Editorial Redesign)
   Rigor editorial modular: regras de 2px, listas numeradas, flush-left.
   Mobile-first, sem breakpoints fixos além do sticky CTA.
   ========================================================================== */

:root {
	--navy-950: #081420;
	--navy-900: #0F2436;
	--navy-800: #16344C;
	--gold-500: #C9A227;
	--gold-400: #E4C468;
	--cream-100: #FBFAF7;
	--white: #FFFFFF;
	--text-primary: #101820;
	--text-secondary: #4B5563;
	--border: #E6E2D8;
	--border-dark: rgba(255, 255, 255, 0.15);

	--font-display: 'Playfair Display', Georgia, serif;
	--font-body: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	--container-max: 1160px;
	--container-pad: clamp(20px, 5vw, 64px);
	--section-pad: clamp(64px, 10vw, 96px);
	--col-gap: 56px;
	--item-gap: 22px;

	--radius-btn: 10px;
	--radius-media: 16px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--text-primary);
	background: var(--white);
	line-height: 1.6;
	font-size: 16px;
	overflow-x: hidden;
	max-width: 100vw;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 {
	font-family: var(--font-display);
	font-weight: 700;
	color: var(--navy-900);
	line-height: 1.15;
	margin: 0 0 1rem;
}

.ci-container {
	width: 100%;
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 var(--container-pad);
	box-sizing: border-box;
}

/* -------------------------------------------------------------------------
   Header
   ---------------------------------------------------------------------- */
.ci-header {
	padding: 18px 0;
	border-bottom: 1px solid var(--border);
}
.ci-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--item-gap);
}
.ci-header__logo img { height: 40px; width: auto; }

/* -------------------------------------------------------------------------
   Buttons
   ---------------------------------------------------------------------- */
.ci-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-family: var(--font-body);
	font-weight: 800;
	letter-spacing: 0.02em;
	text-decoration: none;
	border-radius: var(--radius-btn);
	padding: 18px 34px;
	font-size: 0.95rem;
	min-height: 44px;
	transition: transform 0.15s ease, background-color 0.15s ease;
	cursor: pointer;
	border: none;
}
.ci-btn--primary {
	background: var(--gold-500);
	color: var(--navy-900);
}
.ci-btn--primary:hover { background: var(--gold-400); transform: translateY(-1px); }
.ci-btn--primary:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 2px; }
.ci-btn--lg { padding: 18px 36px; font-size: 1rem; }
.ci-btn--sm { padding: 10px 20px; font-size: 0.8rem; min-height: 40px; }
.ci-btn--block { width: 100%; }
.ci-btn--outline-gold {
	background: transparent;
	color: var(--gold-400);
	border: 2px solid var(--gold-500);
	padding: 14px 28px;
	margin-top: var(--item-gap);
}
.ci-btn--outline-gold:hover { background: rgba(201, 162, 39, 0.12); transform: translateY(-1px); }

.ci-link-arrow {
	display: inline-block;
	font-weight: 800;
	text-decoration: none;
	color: var(--navy-900);
	border-bottom: 2px solid var(--gold-500);
	padding-bottom: 2px;
}

/* -------------------------------------------------------------------------
   Typography helpers
   ---------------------------------------------------------------------- */
.ci-eyebrow {
	font-family: var(--font-body);
	font-weight: 800;
	font-size: 13px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gold-500);
	margin: 0 0 1rem;
}
.ci-heading {
	font-size: clamp(26px, 4vw, 40px);
	line-height: 1.15;
}
.ci-heading--light { color: var(--cream-100); }
.ci-lede {
	font-size: clamp(16px, 2vw, 19px);
	line-height: 1.6;
	color: var(--text-secondary);
	max-width: 62ch;
	margin: 0 0 1rem;
}

/* -------------------------------------------------------------------------
   Sections
   ---------------------------------------------------------------------- */
.ci-section { padding: var(--section-pad) 0; }
.ci-section--dark { background: var(--navy-900); color: var(--cream-100); }
.ci-section--dark .ci-lede { color: rgba(251, 250, 247, 0.82); }
.ci-section--muted { background: var(--cream-100); }
.ci-section--ruled { border-top: 2px solid var(--gold-500); border-bottom: 2px solid var(--gold-500); }

/* -------------------------------------------------------------------------
   Hero
   ---------------------------------------------------------------------- */
.ci-hero { padding: clamp(48px, 8vw, 64px) 0 var(--section-pad); }
.ci-hero__grid {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--col-gap);
}
.ci-hero__content { flex: 1 1 460px; }
.ci-hero__media { flex: 1 1 420px; position: relative; display: flex; justify-content: center; }
.ci-hero__headline {
	font-size: clamp(32px, 5vw, 54px);
	line-height: 1.14;
	margin-bottom: 1.1rem;
}
.ci-hero__sub { font-size: clamp(16px, 2vw, 19px); color: var(--text-secondary); max-width: 56ch; margin-bottom: 1rem; }
.ci-hero__credit { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 1.75rem; }
.ci-hero__credit strong { color: var(--gold-500); font-weight: 800; }
.ci-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--item-gap); margin-bottom: 0.9rem; }
.ci-hero__microcopy { font-size: 0.85rem; color: var(--text-secondary); }
.ci-hero__blueprint {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	color: var(--navy-900);
	opacity: 0.05;
	pointer-events: none;
	z-index: 0;
}

/* -------------------------------------------------------------------------
   Credibility bar
   ---------------------------------------------------------------------- */
.ci-credibility {
	background: var(--navy-900);
	border-top: 2px solid var(--gold-500);
	border-bottom: 2px solid var(--gold-500);
	padding: 16px 0;
}
.ci-credibility__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 18px;
}
.ci-credibility__inner span {
	color: var(--white);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	position: relative;
	padding-right: 18px;
}
.ci-credibility__inner span:not(:last-child)::after {
	content: '•';
	color: var(--gold-500);
	position: absolute;
	right: 0;
}

/* -------------------------------------------------------------------------
   Numbered list (Problema / Aprendizado)
   ---------------------------------------------------------------------- */
.ci-numbered-list {
	list-style: none;
	margin: var(--item-gap) 0 0;
	padding: 0;
	border-top: 2px solid var(--navy-900);
}
.ci-numbered-list__item {
	display: flex;
	gap: 20px;
	padding: 22px 0;
	border-bottom: 1px solid var(--border);
}
.ci-numbered-list__number {
	font-family: var(--font-display);
	font-weight: 700;
	color: var(--gold-500);
	font-size: 1.3rem;
	flex: 0 0 auto;
	min-width: 2.4ch;
}
.ci-numbered-list__body { display: flex; flex-direction: column; gap: 0.3rem; }
.ci-numbered-list__title { font-weight: 800; color: var(--navy-900); font-size: 1.05rem; }
.ci-numbered-list__text { color: var(--text-secondary); font-size: 0.95rem; }

/* -------------------------------------------------------------------------
   Pull quotes
   ---------------------------------------------------------------------- */
.ci-pullquote {
	font-family: var(--font-display);
	font-style: italic;
	font-size: clamp(20px, 3vw, 28px);
	color: var(--navy-900);
	margin: var(--item-gap) 0 0;
	padding-top: 24px;
	border-top: none;
	position: relative;
}
.ci-pullquote::before {
	content: '';
	display: block;
	width: 56px;
	height: 3px;
	background: var(--gold-500);
	margin-bottom: 20px;
}
.ci-pullquote--left { text-align: left; }

/* -------------------------------------------------------------------------
   Identificação
   ---------------------------------------------------------------------- */
.ci-identificacao__list {
	list-style: none;
	padding: 0;
	margin: var(--item-gap) 0 0;
}
.ci-identificacao__list li {
	font-family: var(--font-display);
	font-style: italic;
	font-size: clamp(18px, 2.4vw, 22px);
	padding: 20px 0;
	border-bottom: 1px solid var(--border-dark);
}
.ci-identificacao__closing {
	font-weight: 800;
	font-size: 1.15rem;
	color: var(--gold-400);
	margin-top: var(--item-gap);
	max-width: 60ch;
}

/* -------------------------------------------------------------------------
   Chapter list (conteúdo do eBook)
   ---------------------------------------------------------------------- */
.ci-ebook-content {
	display: flex;
	flex-wrap: wrap;
	gap: var(--col-gap);
	align-items: center;
}
.ci-ebook-content__media { flex: 1 1 360px; display: flex; justify-content: center; }
.ci-ebook-content__body { flex: 1 1 480px; }
.ci-chapter-list {
	list-style: none;
	margin: var(--item-gap) 0 0;
	padding: 0;
	border-top: 1px solid var(--border);
}
.ci-chapter-list__item {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 14px;
	padding: 16px 0;
	border-bottom: 1px solid var(--border);
}
.ci-chapter-list__label {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--gold-500);
	flex: 0 0 auto;
}
.ci-chapter-list__title { color: var(--navy-900); font-size: 0.95rem; font-weight: 700; }

/* -------------------------------------------------------------------------
   Transformação
   ---------------------------------------------------------------------- */
.ci-transformation {
	display: flex;
	flex-wrap: wrap;
	gap: var(--col-gap);
	margin-top: var(--item-gap);
}
.ci-transformation__col { flex: 1 1 320px; }
.ci-transformation__title { font-size: 1.15rem; margin-bottom: 1rem; }
.ci-transformation__title--before { color: var(--text-secondary); }
.ci-transformation__title--after { color: var(--gold-500); }
.ci-dash-list { list-style: none; padding: 0; margin: 0; }
.ci-dash-list li {
	padding: 12px 0 12px 24px;
	border-bottom: 1px solid var(--border);
	color: var(--text-secondary);
	position: relative;
}
.ci-dash-list li::before {
	content: '—';
	position: absolute;
	left: 0;
	color: var(--text-secondary);
}
.ci-dash-list--gold li { color: var(--navy-900); font-weight: 700; }
.ci-dash-list--gold li::before { content: '—'; color: var(--gold-500); }

/* -------------------------------------------------------------------------
   Especialista
   ---------------------------------------------------------------------- */
.ci-especialista { display: flex; flex-wrap: wrap; gap: var(--col-gap); align-items: flex-start; }
.ci-especialista__photo { flex: 1 1 300px; max-width: 340px; }
.ci-especialista__photo img,
.ci-image-placeholder {
	border-radius: var(--radius-media);
	aspect-ratio: 4 / 5;
	object-fit: cover;
	width: 100%;
}
.ci-image-placeholder {
	background: var(--cream-100);
	border: 1px dashed var(--border);
	color: var(--text-secondary);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-size: 0.85rem;
	padding: 1.5rem;
}
.ci-especialista__content { flex: 1 1 420px; }
.ci-especialista__credentials {
	list-style: none;
	padding: 0;
	margin: var(--item-gap) 0 0;
}
.ci-especialista__credentials li {
	padding: 12px 0 12px 1.4rem;
	border-bottom: 1px solid var(--border);
	position: relative;
	color: var(--text-secondary);
}
.ci-especialista__credentials li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 1.15em;
	width: 8px;
	height: 8px;
	background: var(--gold-500);
	border-radius: 50%;
}

/* -------------------------------------------------------------------------
   Audience
   ---------------------------------------------------------------------- */
.ci-audience-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 0 var(--col-gap);
	margin-top: var(--item-gap);
}
.ci-audience-grid__item { padding: 20px 0; border-bottom: 1px solid var(--border); }
.ci-audience-grid__title { font-size: 1.05rem; margin-bottom: 0.4rem; }
.ci-audience-grid__text { color: var(--text-secondary); margin: 0; font-size: 0.95rem; }

/* -------------------------------------------------------------------------
   Oferta
   ---------------------------------------------------------------------- */
.ci-oferta { text-align: center; max-width: 640px; margin: 0 auto; }
.ci-oferta__mockup { display: flex; justify-content: center; margin: var(--item-gap) 0; }
.ci-oferta__product { font-size: 1.2rem; margin-bottom: var(--item-gap); color: rgba(251, 250, 247, 0.9); font-weight: 700; }
.ci-oferta__price {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
	margin-bottom: var(--item-gap);
}
.ci-oferta__price-old { text-decoration: line-through; opacity: 0.6; font-size: 1rem; }
.ci-oferta__price-new {
	font-family: var(--font-display);
	font-size: clamp(34px, 6vw, 48px);
	font-weight: 700;
	color: var(--gold-400);
}
.ci-oferta__installment { font-size: 0.9rem; opacity: 0.75; }
.ci-oferta__microcopy { font-size: 0.82rem; opacity: 0.7; margin-top: var(--item-gap); }

/* -------------------------------------------------------------------------
   Prova social (renders only when real testimonials exist)
   ---------------------------------------------------------------------- */
.ci-testimonial-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: var(--item-gap);
	margin-top: var(--item-gap);
}
.ci-testimonial { border-bottom: 1px solid var(--border); padding: 0 0 var(--item-gap); margin: 0; }
.ci-testimonial p { font-style: italic; font-family: var(--font-display); color: var(--navy-900); }
.ci-testimonial footer { margin-top: 0.75rem; font-size: 0.9rem; color: var(--text-secondary); display: flex; gap: 0.4rem; }

/* -------------------------------------------------------------------------
   FAQ
   ---------------------------------------------------------------------- */
.ci-faq__list { margin-top: var(--item-gap); border-top: 1px solid var(--border); }
.ci-faq__item { border-bottom: 1px solid var(--border); }
.ci-faq__question {
	width: 100%;
	background: none;
	border: none;
	text-align: left;
	font-family: var(--font-body);
	font-weight: 800;
	font-size: 1rem;
	color: var(--navy-900);
	padding: 20px 0;
	min-height: 44px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	cursor: pointer;
}
.ci-faq__icon { font-size: 1.4rem; color: var(--gold-500); transition: transform 0.2s ease; flex: 0 0 auto; }
.ci-faq__question[aria-expanded="true"] .ci-faq__icon { transform: rotate(45deg); }
.ci-faq__answer { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.ci-faq__answer p { margin: 0 0 20px; color: var(--text-secondary); }

/* -------------------------------------------------------------------------
   CTA final
   ---------------------------------------------------------------------- */
.ci-cta-final { text-align: center; background: var(--cream-100); }
.ci-cta-final .ci-lede { margin: 0 auto var(--item-gap); }
.ci-cta-final__mockup { display: flex; justify-content: center; margin-top: var(--item-gap); }
.ci-cta-final__mockup .ci-mockup-css,
.ci-cta-final__mockup .ci-mockup-image { max-width: 180px; }

/* -------------------------------------------------------------------------
   Mockup (CSS fallback)
   ---------------------------------------------------------------------- */
.ci-mockup-css {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	min-height: 320px;
	width: 100%;
	max-width: 420px;
}
.ci-mockup-css__book {
	background: linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 100%);
	border-radius: var(--radius-media);
	color: var(--cream-100);
	width: 220px;
	padding: 24px 16px;
	text-align: center;
	box-shadow: 0 8px 20px -8px rgba(15, 36, 54, 0.18);
	position: relative;
	z-index: 2;
}
.ci-mockup-css__badge { display: inline-block; margin-bottom: 1rem; }
.ci-mockup-css__badge--sm { margin-bottom: 0.5rem; }
.ci-mockup-css__title {
	font-family: var(--font-display);
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	margin: 0 0 0.5rem;
}
.ci-mockup-css__title--sm { font-size: 0.8rem; }
.ci-mockup-css__subtitle { font-size: 0.7rem; opacity: 0.8; margin: 0 0 1rem; }
.ci-mockup-css__author { font-size: 0.65rem; opacity: 0.65; margin: 0; }
.ci-mockup-css__tablet {
	background: var(--navy-950);
	border-radius: 18px;
	width: 140px;
	height: 190px;
	margin-left: -40px;
	margin-bottom: -20px;
	padding: 10px;
	box-shadow: 0 8px 20px -8px rgba(15, 36, 54, 0.18);
	transform: rotate(6deg);
}
.ci-mockup-css__tablet-screen {
	background: linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 100%);
	border-radius: 10px;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: var(--cream-100);
	text-align: center;
}
.ci-mockup-image { position: relative; z-index: 1; border-radius: var(--radius-media); box-shadow: 0 8px 20px -8px rgba(15, 36, 54, 0.18); }

/* -------------------------------------------------------------------------
   Footer
   ---------------------------------------------------------------------- */
.ci-footer { background: var(--navy-950); color: rgba(251, 250, 247, 0.7); padding: 56px 0 calc(56px + 100px); }
.ci-footer__inner { text-align: center; }
.ci-footer__brand { font-family: var(--font-display); color: var(--cream-100); font-size: 1.1rem; margin-bottom: 1rem; }
.ci-footer__disclaimer { font-size: 0.8rem; max-width: 60ch; margin: 0 auto 1rem; }
.ci-footer__copy { font-size: 0.75rem; opacity: 0.7; margin: 0 0 0.75rem; }
.ci-footer__links { font-size: 0.75rem; }
.ci-footer__links a { color: rgba(251, 250, 247, 0.7); text-decoration: none; }
.ci-footer__links a:hover { color: var(--gold-400); }
.ci-footer__links span { margin: 0 0.5rem; color: var(--gold-500); }

/* -------------------------------------------------------------------------
   Sticky CTA (mobile only, per spec: viewport < 860px)
   ---------------------------------------------------------------------- */
.ci-sticky-cta {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 40;
	padding: 10px var(--container-pad);
	background: rgba(15, 36, 54, 0.97);
	backdrop-filter: blur(6px);
	transform: translateY(100%);
	transition: transform 0.25s ease;
}
.ci-sticky-cta.is-visible { transform: translateY(0); }
@media (min-width: 860px) { .ci-sticky-cta { display: none; } }

/* -------------------------------------------------------------------------
   Layout breakpoint (organic reflow, single point per spec §3/§19)
   ---------------------------------------------------------------------- */
@media (max-width: 860px) {
	.ci-hero__grid,
	.ci-ebook-content,
	.ci-especialista { flex-direction: column; }
	.ci-hero__actions { flex-direction: column; align-items: stretch; }
	.ci-hero__actions .ci-btn { width: 100%; text-align: center; }
	.ci-hero__actions .ci-link-arrow { text-align: center; }
	.ci-header__inner { gap: 12px; }
}

/* -------------------------------------------------------------------------
   Motion
   ---------------------------------------------------------------------- */
.ci-reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.ci-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	.ci-btn, .ci-reveal, .ci-sticky-cta, .ci-faq__icon, .ci-faq__answer {
		transition: none !important;
	}
	.ci-reveal { opacity: 1; transform: none; }
}
