/* Prévia institucional do ERP. Os estilos ficam restritos a esta página. */
body.ff-erp-preview {
    --hub-bg: #101014;
    --hub-header: #101014;
    --hub-text: #f6f4ef;
    --hub-text-muted: #b8b6c3;
    --hub-surface-solid: #1a191f;
    --hub-line-strong: #46434f;
    --ep-surface: #1b1825;
    --ep-line: #35323e;
    --ep-accent: #c5b8ff;
    --ep-link: #c5b8ff;
    --ep-mint: #55f2ab;
    background: var(--hub-bg);
    color: var(--hub-text);
}
[data-bs-theme='light'] body.ff-erp-preview {
    --hub-bg: #fafafa;
    --hub-header: #fafafa;
    --hub-text: #22212a;
    --hub-text-muted: #615e6c;
    --hub-surface-solid: #fff;
    --hub-line-strong: #b8b4c4;
    --ep-surface: #efecf6;
    --ep-line: #d5d0df;
    --ep-accent: #5b35c7;
    --ep-link: #5b35c7;
}
.ff-erp-preview .ff-header { position: relative; background: var(--hub-bg); border-bottom: 1px solid var(--ep-line); backdrop-filter: none; }
.ff-erp-preview .ff-nav { display: flex; justify-content: space-between; gap: 24px; min-height: 92px; }
.ff-erp-preview .ff-icon-button { width: 44px; height: 44px; border-radius: 50%; background: transparent; }
.ff-erp-preview .ff-nav__actions { display: flex; align-items: center; gap: 22px; }
.ff-erp-preview .ff-back-link { display: inline-flex; min-height: 44px; }
.ff-erp-preview .ff-shell,
.ff-erp-preview .ep-shell { width: min(1320px, calc(100% - 96px)); margin-inline: auto; }
.ff-erp-preview .ep-nav { display: flex; align-items: center; gap: 32px; font-size: 0.86rem; }
.ff-erp-preview .ep-nav a { padding-block: 14px; color: var(--hub-text-muted); }
.ff-erp-preview .ep-nav a:hover { color: var(--hub-text); }
.ff-erp-preview :is(a, button, summary):focus-visible { outline: 3px solid var(--ep-accent); outline-offset: 5px; }
.ff-erp-preview :is(a, summary) { -webkit-tap-highlight-color: transparent; }
.ff-erp-preview :is(h1, h2, h3) { font-weight: 440; letter-spacing: -0.04em; text-wrap: balance; }
.ff-erp-preview :is(#por-dentro, #lancamento) { scroll-margin-top: 36px; }
.ep-main { overflow: clip; }
.ep-hero { display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: clamp(40px, 5vw, 80px); padding-block: 88px 104px; }
.ff-erp-preview .ep-hero h1 { font-size: clamp(3.5rem, 6.4vw, 6rem); line-height: 1.01; }
.ep-hero h1 > span { color: var(--ep-accent); }
.ff-erp-preview .ep-lead { margin: 32px 0 12px; font-size: clamp(1.12rem, 1.6vw, 1.4rem); font-weight: 600; }
.ff-erp-preview .ep-intro { max-width: 45ch; margin: 0; color: var(--hub-text-muted); font-size: 1.08rem; line-height: 1.75; }
.ff-erp-preview .ep-button { display: inline-flex; justify-content: space-between; align-items: center; gap: 32px; min-height: 56px; margin-top: 32px; padding: 12px 20px 12px 24px; border: 1px solid var(--ep-mint); border-radius: 32px; background: var(--ep-mint); color: #0b0751; font-size: 0.95rem; font-weight: 800; transition: background-color 180ms ease, border-color 180ms ease; }
.ep-button i { font-size: 1.4rem; }
.ff-erp-preview .ep-button:hover { background: #b0ffdc; border-color: #b0ffdc; }
.ff-erp-preview .ep-availability { margin: 20px 0 0; max-width: 43ch; color: var(--hub-text-muted); font-size: 0.86rem; line-height: 1.6; }
.ep-availability strong { color: var(--hub-text); font-weight: 700; }
.ep-route { position: relative; margin: 0; padding: 28px 34px 24px; border: 1px solid var(--ep-line); border-radius: 4px; background: var(--ep-surface); }
.ep-route__header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--ep-line); font-size: 0.8rem; }
.ep-route__header > span:first-child { font-size: 1rem; font-weight: 800; }
.ep-route__header strong { padding-left: 4px; color: var(--ep-accent); }
.ep-route__header > span:last-child { color: var(--hub-text-muted); }
.ff-erp-preview .ep-route h2 { margin: 25px 0 30px; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.2; }
.ep-route__steps { position: relative; margin: 0; padding: 0; list-style: none; }
.ep-route__steps::before,
.ep-route__steps::after { content: ''; position: absolute; top: 23px; bottom: 44px; left: 23px; width: 1px; background: var(--ep-line); }
.ep-route__steps::after { background: var(--ep-accent); transform-origin: top; }
.ep-route__steps li { position: relative; z-index: 1; display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: start; gap: 20px; padding-bottom: 34px; }
.ep-route__steps li:last-child { padding-bottom: 8px; }
.ep-route__icon { display: grid; place-items: center; height: 48px; border: 1px solid var(--ep-line); border-radius: 50%; background: var(--ep-surface); color: var(--ep-accent); font-size: 1.3rem; }
.ep-route__steps li > div { padding-top: 2px; }
.ep-route__steps strong { display: block; font-size: 0.97rem; font-weight: 750; line-height: 1.5; }
.ep-route__steps li > div > span { display: block; margin-top: 4px; color: var(--hub-text-muted); font-size: 0.83rem; }
.ep-route__result { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--ep-line); font-size: 0.98rem; font-weight: 650; }
.ep-route__result i { color: var(--ep-accent); font-size: 1.5rem; }
.ep-route figcaption { margin-top: 22px; color: var(--hub-text-muted); font-size: 0.73rem; }
.ep-scope { display: grid; grid-template-columns: 1fr 1.1fr; align-items: start; gap: clamp(48px, 8vw, 120px); padding-block: 100px 110px; border-top: 1px solid var(--ep-line); }
.ff-erp-preview .ep-scope h2 { font-size: clamp(2.5rem, 4vw, 3.7rem); line-height: 1.13; }
.ep-scope h2 span { color: var(--ep-accent); }
.ep-scope__intro > p { max-width: 38ch; margin: 30px 0 0; color: var(--hub-text-muted); font-size: 1.04rem; line-height: 1.8; }
.ep-benefits { margin: 0; }
.ep-benefits > div { padding-block: 27px; border-bottom: 1px solid var(--ep-line); }
.ep-benefits > div:first-child { padding-top: 0; }
.ep-benefits dt { margin-bottom: 12px; color: var(--ep-accent); font-size: 0.82rem; font-weight: 750; }
.ep-benefits dd { margin: 0; }
.ep-benefits dd > strong { font-size: 1.19rem; font-weight: 650; letter-spacing: -0.02em; }
.ep-benefits dd p { max-width: 53ch; margin: 10px 0 0; color: var(--hub-text-muted); line-height: 1.75; }
.ep-next { padding-block: 96px; background: #0b0751; color: #f6f4ef; }
.ep-next__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(48px, 8vw, 120px); align-items: start; }
.ff-erp-preview .ep-next h2 { font-size: clamp(2.6rem, 4vw, 3.75rem); line-height: 1.13; }
.ep-next h2 span { color: #c5b8ff; }
.ep-next p { max-width: 46ch; color: #d6d2ec; line-height: 1.8; }
.ep-next__grid > div:first-child p { margin: 28px 0 0; }
.ff-erp-preview .ep-next h3 { max-width: 21ch; font-size: 1.6rem; line-height: 1.3; }
.ep-next__status > p { margin: 18px 0 24px; }
.ff-erp-preview .ep-text-link { display: inline-flex; align-items: center; gap: 18px; min-height: 44px; border-bottom: 1px solid #8f84c0; color: #f6f4ef; font-weight: 700; }
.ep-text-link:hover { border-color: #55f2ab; }
.ep-faq { display: grid; grid-template-columns: 0.85fr 1.3fr; gap: 80px; padding-block: 100px; }
.ff-erp-preview .ep-faq h2 { font-size: clamp(2rem, 3vw, 3rem); line-height: 1.13; }
.ep-faq details { border-bottom: 1px solid var(--ep-line); }
.ep-faq details:first-child { border-top: 1px solid var(--ep-line); }
.ep-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 24px; list-style: none; cursor: pointer; font-weight: 750; line-height: 1.5; }
.ep-faq summary::-webkit-details-marker { display: none; }
.ep-faq summary > i { flex: 0 0 auto; font-size: 1.25rem; transform: rotate(45deg); transition: transform 180ms ease; }
.ep-faq details[open] summary > i { transform: none; }
.ep-faq details > p { max-width: 58ch; margin: 0 0 26px; color: var(--hub-text-muted); line-height: 1.8; }
.ep-faq__links { display: flex; flex-wrap: wrap; gap: 16px 28px; padding-bottom: 20px; }
.ff-erp-preview .ep-faq__links a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ep-link); text-decoration: underline; text-underline-offset: 5px; }
.ep-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 32px; padding-block: 36px; border-top: 1px solid var(--ep-line); }
.ep-footer__brand { font-weight: 850; font-size: 1.1rem; }
.ep-footer__brand span { margin-left: 5px; color: var(--ep-accent); }
.ep-footer p { margin: 0; color: var(--hub-text-muted); font-size: 0.84rem; }
.ep-footer nav { display: flex; gap: 24px; margin-left: auto; font-size: 0.8rem; }
.ep-footer nav a { padding-block: 12px; }
body.ff-erp-preview #ff-cookie-banner .ff-cookie-text a { color: var(--ep-link); }
body.ff-erp-preview #ff-cookie-banner .ff-cookie-btn--primary { background: #55f2ab; color: #0b0751; }
body.ff-erp-preview #ff-cookie-banner { border-radius: 4px; }
@media (prefers-reduced-motion: no-preference) {
    .ep-route__steps::after { animation: ep-connect 1.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
    @keyframes ep-connect { from { transform: scaleY(0); } to { transform: scaleY(1); } }
}
@media (max-width: 1050px) {
    .ff-erp-preview .ep-nav { display: none; }
    .ep-hero { gap: 30px; padding-block: 64px 80px; }
    .ep-route { padding-inline: 24px; }
    .ep-route__header { align-items: start; flex-direction: column; gap: 4px; }
    .ep-route__steps li { gap: 14px; }
    .ep-scope { grid-template-columns: 1fr 1.1fr; gap: 40px; }
    .ep-next__grid { gap: 40px; }
    .ep-faq { gap: 36px; }
}
@media (max-width: 850px) {
    .ff-erp-preview .ff-shell,
    .ff-erp-preview .ep-shell { width: calc(100% - 56px); }
    .ep-hero { grid-template-columns: 1fr; gap: 52px; }
    .ff-erp-preview .ep-hero h1 { font-size: clamp(3.5rem, 10vw, 5.4rem); }
    .ff-erp-preview .ep-intro { max-width: 52ch; }
    .ep-route { max-width: 640px; width: 100%; padding: 28px 36px; }
    .ep-route__header { flex-direction: row; }
    .ep-scope { grid-template-columns: 1fr; gap: 44px; padding-block: 72px; }
    .ep-scope__intro { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: end; }
    .ep-scope__intro > p { margin: 0; }
    .ep-benefits > div { padding-block: 28px; }
    .ep-benefits dd p { max-width: 64ch; }
    .ep-next { padding-block: 72px; }
    .ep-next__grid { grid-template-columns: 1fr; gap: 40px; }
    .ep-next__status { padding-top: 32px; border-top: 1px solid #514884; }
    .ff-erp-preview .ep-next h3 { max-width: none; }
    .ep-faq { grid-template-columns: 1fr; gap: 36px; padding-block: 72px; }
    .ep-footer nav { margin-left: 0; }
}
@media (max-width: 540px) {
    .ff-erp-preview .ff-shell,
    .ff-erp-preview .ep-shell { width: calc(100% - 40px); }
    .ff-erp-preview .ff-nav { min-height: 80px; gap: 14px; }
    .ff-erp-preview .ff-brand { width: 145px; }
    .ff-erp-preview .ff-nav__actions { gap: 14px; }
    .ff-erp-preview .ff-back-link { font-size: 0.8rem; }
    .ep-hero { padding-block: 52px 64px; gap: 44px; }
    .ff-erp-preview .ep-hero h1 { font-size: clamp(3.15rem, 12.9vw, 4.2rem); }
    .ff-erp-preview .ep-lead { margin-top: 26px; font-size: 1.12rem; }
    .ff-erp-preview .ep-intro { font-size: 1rem; line-height: 1.75; }
    .ff-erp-preview .ep-availability { font-size: 0.82rem; }
    .ff-erp-preview .ep-button { width: 100%; margin-top: 26px; }
    .ep-route { padding: 24px 20px; }
    .ep-route__header { align-items: start; flex-direction: column; }
    .ff-erp-preview .ep-route h2 { font-size: 1.65rem; }
    .ep-route__steps li { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
    .ep-route__steps::before,
    .ep-route__steps::after { left: 21px; }
    .ep-route__icon { height: 44px; }
    .ep-route__steps strong { font-size: 0.92rem; }
    .ep-route__steps li > div > span { font-size: 0.8rem; }
    .ep-route__result { font-size: 0.9rem; }
    .ep-scope__intro { display: block; }
    .ep-scope__intro > p { margin-top: 26px; }
    .ff-erp-preview .ep-scope h2 { font-size: 2.65rem; }
    .ep-benefits dd > strong { font-size: 1.08rem; }
    .ff-erp-preview .ep-next h2 { font-size: 2.6rem; }
    .ep-faq summary { font-size: 0.96rem; gap: 16px; }
    .ep-footer { gap: 12px; padding-bottom: 34px; }
    .ep-footer__brand { width: 100%; }
}
@media (max-width: 370px) {
    .ep-hero__copy { display: flex; flex-direction: column; }
    .ff-erp-preview .ep-hero h1 { font-size: 2.75rem; }
    .ff-erp-preview .ep-lead { order: 1; }
    .ff-erp-preview .ep-button { order: 2; }
    .ff-erp-preview .ep-availability { order: 3; }
    .ff-erp-preview .ep-intro { order: 4; margin-top: 24px; }
    .ff-erp-preview .ff-back-link span { display: none; }
    .ff-erp-preview .ff-back-link { width: 44px; justify-content: center; }
    .ff-erp-preview .ep-scope h2 { font-size: 2.3rem; }
}
@media (prefers-reduced-motion: reduce) {
    .ff-erp-preview .ep-route__steps::after { animation: none; }
}
