/* ============================================================================
   titulo.css - CSS exclusivo da pagina /titulo-completo (lote P4).
   Classes especificas usam o prefixo .tc-*; tokens, botoes, cards e grades
   genericas vem do site.css.

   SECOES
     1. Hero e pipeline
     2. Antes e depois
     3. Beneficios
     4. Demonstracao simulada
     5. Integracao ERP
     6. CTA final
     7. Responsivo e movimento reduzido
   ============================================================================ */

/* -------------------------------------------------------- 1. HERO E PIPELINE */
.tc-hero { padding: clamp(30px, 5vw, 48px) 0 clamp(24px, 4vw, 40px); }
.tc-hero__panel {
    position: relative;
    overflow: hidden;
    padding: clamp(34px, 5vw, 52px) clamp(24px, 4.5vw, 48px);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--dark-2), var(--navy-deep));
}
.tc-hero__glow { position: absolute; border-radius: 50%; pointer-events: none; }
.tc-hero__glow--right {
    top: -90px;
    right: -60px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(140, 198, 63, .22), transparent 66%);
}
.tc-hero__glow--left {
    bottom: -120px;
    left: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(35, 44, 139, .4), transparent 66%);
}
.tc-hero__content { position: relative; }
.tc-hero__badge {
    display: inline-flex;
    align-items: center;
    margin: 0 0 22px;
    padding: 8px 16px;
    border: 1px solid rgba(140, 198, 63, .35);
    border-radius: 100px;
    background: rgba(140, 198, 63, .15);
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 1.5px;
    color: #B6E27A;
}
.tc-hero__grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 36px; align-items: start; }
/* coluna de texto do hero: item de grade, nao pode estourar a largura da coluna */
.tc-hero__copy { min-width: 0; }
.tc-hero__number {
    font-family: var(--font-display);
    font-size: clamp(84px, 10vw, 120px);
    font-weight: 800;
    line-height: .85;
    letter-spacing: -4px;
    color: var(--lime);
    background: linear-gradient(160deg, var(--lime), #5E8F27);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.tc-hero__title { margin: 0 0 18px; font-size: clamp(34px, 4.4vw, 44px); line-height: 1.05; color: #fff; }
.tc-hero__title span { font-size: clamp(20px, 2.5vw, 24px); font-weight: 600; letter-spacing: -.5px; color: #B6E27A; }
.tc-hero__text { max-width: 820px; margin: 0 0 20px; font-size: clamp(15.5px, 1.7vw, 17px); line-height: 1.7; color: #C2C6F0; }
.tc-hero__highlight { margin: 0 0 30px; font-family: var(--font-display); font-size: clamp(17px, 2vw, 19px); font-weight: 700; color: #fff; }

.tc-pipeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.tc-pipeline__item { min-width: 0; padding: 18px 16px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 16px; background: rgba(255, 255, 255, .05); }
.tc-pipeline__head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.tc-pipeline__number { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex: none; border-radius: 8px; background: var(--lime); font-family: var(--font-display); font-size: 13px; font-weight: 800; color: var(--dark-2); }
.tc-pipeline__icon { font-size: 19px; color: var(--lime); }
.tc-pipeline__text { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.4; color: #DDE0FF; }

/* ------------------------------------------------------ 2. ANTES E DEPOIS */
.tc-comparison { padding-top: 0; }
.tc-comparison__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.tc-comparison__card { padding: clamp(24px, 3vw, 32px); border-radius: var(--radius-lg); }
.tc-comparison__card--before { background: var(--surface); border: 1px solid var(--border-2); }
.tc-comparison__card--after { background: linear-gradient(160deg, #F3F5FF, #EAF3DC); border: 2px solid var(--lime); }
.tc-comparison__head { display: flex; align-items: center; gap: 11px; margin-bottom: 20px; }
.tc-comparison__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border-radius: 12px; font-size: 22px; }
.tc-comparison__icon--before { background: var(--surface-2); color: var(--muted-2); }
.tc-comparison__icon--after { background: var(--surface); color: var(--lime-dark); }
.tc-comparison__title { margin: 0; font-size: 19px; }
.tc-comparison__subtitle { margin: 2px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--muted-2); }
.tc-comparison__subtitle--after { font-weight: 600; color: var(--lime-dark); }
.tc-comparison__list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.tc-comparison__list li { display: flex; align-items: flex-start; gap: 11px; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.tc-comparison__list i { flex: none; margin-top: 3px; font-size: 16px; color: #C6CAE4; }
.tc-comparison__list--after li { font-weight: 500; color: #2B3054; }
.tc-comparison__list--after i { margin-top: 2px; font-size: 17px; color: var(--lime-2); }

/* ----------------------------------------------------------- 3. BENEFICIOS */
.tc-benefits { padding-top: 0; }
.tc-benefit { padding: 30px; border-color: var(--border-2); border-radius: 20px; }
.tc-benefit .icon-box { width: 52px; height: 52px; font-size: 26px; }
.tc-benefit .feature-card__title { font-size: 19px; font-weight: 700; }
.tc-benefit .feature-card__text { font-size: 14.5px; line-height: 1.62; }

/* ----------------------------------------------- 4. DEMONSTRACAO SIMULADA */
.tc-demo-section { padding-top: 0; padding-bottom: clamp(40px, 6vw, 64px); }
.tc-demo-section .section-head { margin-bottom: 28px; }
.tc-demo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.tc-demo__card { display: flex; flex-direction: column; min-width: 0; min-height: 500px; padding: clamp(24px, 3vw, 32px); border: 1px solid var(--border-2); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 24px 50px -32px rgba(35, 44, 139, .35); }
.tc-demo__heading { display: flex; align-items: center; gap: 11px; margin-bottom: 6px; }
.tc-demo__heading > i { flex: none; font-size: 22px; color: var(--navy); }
.tc-demo__input { min-width: 0; }
.tc-demo__output .tc-demo__heading > i { font-size: 20px; color: var(--lime); }
.tc-demo__heading h3 { margin: 0; font-size: 20px; font-weight: 700; }
.tc-demo__description { margin: 0 0 20px; font-size: 14px; color: var(--muted); }

.tc-demo__document { display: flex; align-items: center; gap: 16px; padding: 26px 22px; border: 1.5px dashed #C6CAE4; border-radius: 16px; background: #F7F8FC; }
.tc-demo__document-icon { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; flex: none; border-radius: 15px; background: var(--navy-tint); color: var(--navy); font-size: 29px; }
.tc-demo__document-copy { display: flex; flex-direction: column; min-width: 0; }
.tc-demo__document-copy strong { overflow-wrap: anywhere; font-family: var(--font-display); font-size: 16px; line-height: 1.4; color: var(--ink); }
.tc-demo__document-copy span { margin-top: 4px; font-size: 13px; color: var(--muted); }
.tc-demo__type-label { margin: 22px 0 10px; font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--ink); }
.tc-demo__type { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); font-size: 14px; font-weight: 600; line-height: 1.45; color: #2B3054; }
.tc-demo__type i { flex: none; font-size: 18px; color: var(--navy); }
.tc-demo__button { margin-top: auto; padding-top: 16px; padding-bottom: 16px; }
.tc-demo__button-icon { font-size: 18px; }
.tc-demo.is-loading .tc-demo__button-icon { animation: tc-spin .7s linear infinite; }

.tc-demo__state { flex: 1; min-height: 0; }
.tc-demo__state[hidden] { display: none; }
.tc-demo__idle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; }
.tc-demo__idle-icon { display: inline-flex; align-items: center; justify-content: center; width: 70px; height: 70px; border-radius: 50%; background: var(--surface-2); color: var(--muted-2); font-size: 32px; }
.tc-demo__idle p { max-width: 280px; margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }

.tc-demo__loading { position: relative; overflow: hidden; padding: 26px; border: 1px solid #EEF0F8; border-radius: 16px; background: #F7F8FC; }
.tc-demo__skeleton { position: relative; min-height: 270px; }
.tc-demo__skeleton-line { display: block; height: 7px; margin-bottom: 9px; border-radius: 5px; background: #E4E8F5; }
.tc-demo__skeleton-line--title { width: 44%; height: 11px; margin-bottom: 16px; border-radius: 6px; background: #D9DEF0; }
.tc-demo__skeleton-line--92 { width: 92%; }
.tc-demo__skeleton-line--86 { width: 86%; }
.tc-demo__skeleton-line--94 { width: 94%; }
.tc-demo__skeleton-line--74 { width: 74%; }
.tc-demo__skeleton-line--88 { width: 88%; }
.tc-demo__scanner { position: absolute; left: -26px; right: -26px; height: 70px; background: linear-gradient(180deg, transparent, rgba(140, 198, 63, .3), transparent); box-shadow: 0 0 26px rgba(140, 198, 63, .4); animation: tc-scan 2s ease-in-out infinite; }
.tc-demo__loading-label { position: absolute; right: 26px; bottom: 20px; left: 26px; display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13.5px; font-weight: 700; line-height: 1.5; color: #5E8F27; }
.tc-demo__loading-label i { flex: none; font-size: 17px; animation: tc-spin .7s linear infinite; }

.tc-demo__done { display: flex; flex-direction: column; }
.tc-demo__fields { display: flex; flex-direction: column; gap: 2px; }
.tc-demo__field { display: flex; align-items: flex-start; gap: 12px; padding: 11px 4px; border-bottom: 1px solid #EEF0F8; opacity: 0; animation: tc-row-in .5s ease both; }
.tc-demo__field > i { flex: none; margin-top: 2px; font-size: 18px; color: var(--lime-2); }
.tc-demo__field > div { min-width: 0; }
.tc-demo__field-key { display: block; margin-bottom: 3px; font-size: 11.5px; line-height: 1.4; letter-spacing: .5px; text-transform: uppercase; color: var(--muted-2); }
.tc-demo__field-value { display: block; overflow-wrap: anywhere; font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--ink-2); }
.tc-demo__field--1 { animation-delay: 0s; }
.tc-demo__field--2 { animation-delay: .09s; }
.tc-demo__field--3 { animation-delay: .18s; }
.tc-demo__field--4 { animation-delay: .27s; }
.tc-demo__field--5 { animation-delay: .36s; }
.tc-demo__field--6 { animation-delay: .45s; }
.tc-demo__field--7 { animation-delay: .54s; }
.tc-demo__field--8 { animation-delay: .63s; }
.tc-demo__privacy { display: flex; align-items: center; gap: 9px; margin-top: auto; padding: 12px 16px; border: 1px solid #D6E9BC; border-radius: 11px; background: var(--lime-tint); font-size: 12.5px; font-weight: 700; line-height: 1.45; color: var(--lime-deep); }
.tc-demo__privacy i { flex: none; font-size: 16px; }
.tc-demo__notice { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; max-width: 900px; margin: 24px auto 0; text-align: center; }
.tc-demo__notice p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-2); }

/* ----------------------------------------------------- 5. INTEGRACAO ERP */
.tc-integration { padding-top: 0; }
.tc-integration .section-head { max-width: 760px; }
.tc-integration__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.tc-integration__card { padding: 34px; border-radius: var(--radius-lg); }
.tc-integration__card--sele { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy), var(--navy-deep)); color: #fff; }
.tc-integration__glow { position: absolute; top: -60px; right: -40px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(140, 198, 63, .28), transparent 68%); pointer-events: none; }
.tc-integration__content { position: relative; }
.tc-integration__card--other { border: 1px solid var(--border-2); background: var(--surface); box-shadow: var(--shadow-card); }
.tc-integration__icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 14px; background: var(--navy-tint); color: var(--navy); font-size: 26px; }
.tc-integration__card--sele .tc-integration__icon { background: rgba(140, 198, 63, .2); color: var(--lime); }
.tc-integration__card h3 { margin: 0 0 12px; font-size: 22px; }
.tc-integration__card--sele h3 { color: #fff; }
.tc-integration__tag { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--lime); }
.tc-integration__card > p:last-child,
.tc-integration__content > p:last-child { margin: 0; font-size: 15px; line-height: 1.65; color: var(--text); }
.tc-integration__content > p:last-child { color: #C2C6F0; }

/* ---------------------------------------------------------- 6. CTA FINAL */
.tc-cta-section { padding: 0 0 clamp(48px, 7vw, 72px); }
.tc-cta { position: relative; overflow: hidden; max-width: 900px; margin: 0 auto; border: 1px solid #2A337A; border-radius: 26px; background: linear-gradient(120deg, var(--navy), var(--navy-deep)); box-shadow: 0 26px 60px -24px rgba(35, 44, 139, .6); }
.tc-cta__glow { position: absolute; top: -90px; right: -50px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(140, 198, 63, .26), transparent 68%); pointer-events: none; }
.tc-cta__main { position: relative; padding: clamp(38px, 5vw, 48px) clamp(24px, 4.5vw, 44px); text-align: center; }
.tc-cta__badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 7px 15px; border: 1px solid rgba(140, 198, 63, .32); border-radius: 100px; background: rgba(140, 198, 63, .15); font-size: 12px; font-weight: 800; line-height: 1.4; letter-spacing: 1px; color: #B6E27A; }
.tc-cta__badge i { flex: none; font-size: 14px; color: var(--lime); }
.tc-cta__main h2 { max-width: 720px; margin: 0 auto 12px; font-size: clamp(28px, 4vw, 34px); line-height: 1.12; color: #fff; }
.tc-cta__main > p:not(.tc-cta__badge) { max-width: 520px; margin: 0 auto 28px; font-size: 16.5px; line-height: 1.6; color: #C2C6F0; }
.tc-cta__primary { padding-left: 34px; padding-right: 34px; font-size: 17px; font-weight: 800; }
.tc-cta__customer { position: relative; display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; padding: 24px 44px; border-top: 1px solid rgba(255, 255, 255, .08); background: rgba(0, 0, 0, .22); }
.tc-cta__customer-copy { display: flex; align-items: center; gap: 14px; text-align: left; }
.tc-cta__customer-icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; flex: none; border-radius: 13px; background: rgba(140, 198, 63, .2); color: var(--lime); font-size: 23px; }
.tc-cta__customer-copy > span:last-child { display: flex; flex-direction: column; }
.tc-cta__customer-copy strong { font-family: var(--font-display); font-size: 17px; color: #fff; }
.tc-cta__customer-copy small { margin-top: 2px; font-size: 13.5px; color: #C2C6F0; }
.tc-cta__secondary { flex: none; padding: 14px 26px; border: 1.5px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); color: #fff; }
.tc-cta__secondary:hover { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .14); color: #fff; }

/* ------------------------------------------------------- 7. RESPONSIVO */
@media (max-width: 1024px) {
    .tc-pipeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .tc-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .tc-hero__number { font-size: 76px; }
    .tc-pipeline { grid-template-columns: minmax(0, 1fr); }
    .tc-pipeline__item { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 15px 16px; }
    .tc-pipeline__head { margin: 0; }
    .tc-comparison__grid,
    .tc-demo,
    .tc-integration__grid { grid-template-columns: minmax(0, 1fr); }
    .tc-demo__card { min-height: 460px; }
    .tc-cta__customer { padding-right: 24px; padding-left: 24px; }
}

@media (max-width: 480px) {
    .tc-hero__badge { align-items: flex-start; font-size: 10.5px; }
    .tc-hero__title br { display: none; }
    .tc-hero__title span { display: block; margin-top: 10px; }
    .tc-comparison__head { align-items: flex-start; }
    .tc-demo__card { min-height: 0; }
    .tc-demo__output { min-height: 500px; }
    .tc-demo__document { align-items: flex-start; padding: 22px 18px; }
    .tc-demo__notice .btn,
    .tc-cta__primary,
    .tc-cta__secondary { width: 100%; }
    .tc-cta__customer { align-items: stretch; }
}

@keyframes tc-spin { to { transform: rotate(360deg); } }
@keyframes tc-scan { 0% { top: -14%; } 50% { top: 80%; } 100% { top: -14%; } }
@keyframes tc-row-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
    .tc-demo__button-icon,
    .tc-demo__loading-label i,
    .tc-demo__scanner,
    .tc-demo__field { animation: none; }
    .tc-demo__field { opacity: 1; }
}
