/* Ciclo de vida dos processos, novos módulos e IA com governança */

/* Tela (moldura de dispositivo) */
.modules-v2-screen { margin:0; background:#091727; border-radius:.7rem; overflow:hidden; padding:.45rem .45rem .4rem; box-shadow:0 18px 40px rgba(10,35,57,.18); }
.modules-v2-screen img { display:block; width:100%; height:auto; border-radius:.35rem; }

/* Lista de benefícios */
.cycle-v2-benefits-label { color:var(--hv2-orange); font-size:.7rem; font-weight:850; letter-spacing:.14em; text-transform:uppercase; margin:1.1rem 0 .55rem; }
.modules-v2-benefits { list-style:none; margin:0; padding:0; display:grid; gap:.5rem; }
.modules-v2-benefits li { position:relative; padding-left:1.6rem; font-size:.93rem; line-height:1.45; color:var(--hv2-ink); }
.modules-v2-benefits li::before { content:""; position:absolute; left:0; top:.2rem; width:1rem; height:1rem; border-radius:50%; background:var(--hv2-orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.5 2.4L12 5.3' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; }

/* Ciclo */
.cycle-v2-tabs { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:.5rem; max-width:1100px; margin:0 auto 2rem; }
.cycle-v2-tab { position:relative; display:flex; flex-direction:column; align-items:flex-start; gap:.15rem; padding:.85rem 1rem .8rem 1rem; background:var(--hv2-soft); border:1px solid var(--hv2-border); border-radius:.6rem; color:var(--hv2-ink); text-align:left; cursor:pointer; transition:background .2s ease,border-color .2s ease,transform .2s ease; }
.cycle-v2-tab:hover { border-color:#c9d6e2; transform:translateY(-2px); }
.cycle-v2-tab:focus-visible { outline:3px solid rgba(255,107,26,.45); outline-offset:2px; }
.cycle-v2-tab[aria-selected="true"] { background:var(--hv2-navy-2); border-color:var(--hv2-navy-2); color:#fff; }
.cycle-v2-tab-index { font-size:.7rem; font-weight:850; letter-spacing:.12em; color:var(--hv2-orange); }
.cycle-v2-tab-name { font-size:.95rem; font-weight:850; line-height:1.2; }
.cycle-v2-panel { display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:3rem; align-items:center; max-width:1180px; margin:0 auto; }
.cycle-v2-panel[hidden] { display:none; }
.cycle-v2-step { color:var(--hv2-muted); font-size:.8rem; font-weight:750; letter-spacing:.06em; text-transform:uppercase; margin:0 0 .4rem; }
.cycle-v2-copy h3, .modules-v2-copy h3 { font-size:clamp(1.5rem,2.2vw,2rem); font-weight:900; letter-spacing:-.03em; margin:0 0 .7rem; color:var(--hv2-ink); }
.cycle-v2-copy > p, .modules-v2-copy > p { color:var(--hv2-muted); line-height:1.65; margin:0 0 .5rem; }
.cycle-v2-note { text-align:center; color:var(--hv2-muted); font-size:.85rem; margin:2.2rem auto 0; max-width:720px; }

/* Simulação de prompt (IA · BPMN Designer) */
.prompt-demo { margin-top:1.4rem; background:#fff; border:1px solid var(--hv2-border); border-radius:.75rem; box-shadow:0 10px 26px rgba(12,42,68,.08); padding:.9rem 1rem; }
.prompt-demo-head { display:flex; align-items:center; gap:.5rem; font-size:.78rem; font-weight:850; color:var(--hv2-ink); letter-spacing:.02em; margin-bottom:.55rem; }
.prompt-demo-dot { width:.55rem; height:.55rem; border-radius:50%; background:var(--hv2-orange); box-shadow:0 0 0 4px rgba(255,107,26,.15); }
.prompt-demo-input { min-height:6.2em; margin:0; padding:.65rem .75rem; background:var(--hv2-soft); border:1px solid var(--hv2-border); border-radius:.5rem; font-size:.88rem; line-height:1.5; color:var(--hv2-ink); }
.prompt-demo-input:has([data-prompt-typed]:empty)::before { content:attr(data-placeholder); color:#9aabbb; }
.prompt-demo-caret { display:inline-block; width:2px; height:1.05em; margin-left:1px; vertical-align:-.15em; background:var(--hv2-orange); animation:prompt-caret 1s steps(1) infinite; }
.prompt-demo.is-done .prompt-demo-caret { display:none; }
.prompt-demo-foot { display:flex; align-items:center; gap:.8rem; margin-top:.65rem; flex-wrap:wrap; }
.prompt-demo-btn { border:0; border-radius:.45rem; background:#d9363e; color:#fff; font-size:.82rem; font-weight:800; padding:.45rem 1.1rem; cursor:pointer; }
.prompt-demo-btn:focus-visible { outline:3px solid rgba(255,107,26,.45); outline-offset:2px; }
.prompt-demo.is-running .prompt-demo-btn { opacity:.65; cursor:progress; }
.prompt-demo-status { font-size:.82rem; font-weight:750; color:#178a52; }
.prompt-demo-status:not(:empty)::before { content:"✓ "; }
@keyframes prompt-caret { 50% { opacity:0; } }

/* Módulos */
.modules-v2-list { display:grid; gap:4rem; max-width:1180px; margin:0 auto; }
.modules-v2-row { display:grid; grid-template-columns:minmax(0,7fr) minmax(0,5fr); gap:3rem; align-items:center; }
.modules-v2-row-reverse .modules-v2-media { order:2; }
.modules-v2-media { position:relative; min-width:0; }
.modules-v2-media-stacked { padding-bottom:16%; }
.modules-v2-media-stacked > .modules-v2-screen:first-child { width:88%; }
.modules-v2-screen-secondary { position:absolute; right:0; bottom:0; width:52%; padding:.3rem; box-shadow:0 22px 46px rgba(10,35,57,.28); }
.modules-v2-screen-secondary-wide { width:64%; }
.modules-v2-kicker { color:var(--hv2-orange); font-size:.72rem; font-weight:850; letter-spacing:.15em; margin:0 0 .45rem; }
.modules-v2-copy .modules-v2-promise { color:var(--hv2-ink); font-weight:750; font-size:1.05rem; line-height:1.45; }
.modules-v2-link { display:inline-block; margin-top:1.2rem; color:var(--hv2-orange); font-weight:850; text-decoration:none; }
.modules-v2-link:hover { text-decoration:underline; }

/* IA */
.ai-v2-orchestration { display:grid; grid-template-columns:minmax(0,7fr) minmax(0,5fr); gap:3rem; align-items:center; max-width:1180px; margin:0 auto 4rem; }
.ai-v2 .modules-v2-copy h3, .ai-v2 h3 { color:#fff; }
.ai-v2 .modules-v2-copy > p { color:rgba(255,255,255,.72); }
.ai-v2 .modules-v2-benefits li { color:rgba(255,255,255,.88); }
.ai-v2 .modules-v2-screen { background:#03101e; box-shadow:0 22px 50px rgba(0,0,0,.35); }
.ai-v2-governance { max-width:1180px; margin:0 auto; text-align:center; }
.ai-v2-governance-heading h3 { font-size:clamp(1.5rem,2.2vw,2rem); font-weight:900; letter-spacing:-.03em; margin:0 0 .5rem; }
.ai-v2-governance-heading p { color:rgba(255,255,255,.72); margin:0 auto 2rem; max-width:640px; }
.ai-v2-principles { list-style:none; margin:0 0 2.2rem; padding:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; text-align:left; }
.ai-v2-principles li { display:flex; flex-direction:column; gap:.35rem; padding:1.2rem 1.25rem; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.12); border-radius:.75rem; }
.ai-v2-principle-index { color:var(--hv2-orange); font-size:.72rem; font-weight:850; letter-spacing:.12em; }
.ai-v2-principles strong { font-size:1rem; color:#fff; }
.ai-v2-principles span:last-child { color:rgba(255,255,255,.7); font-size:.9rem; line-height:1.5; }

@media (max-width: 991.98px) {
  .cycle-v2-tabs { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .cycle-v2-panel, .modules-v2-row, .ai-v2-orchestration { grid-template-columns:minmax(0,1fr); gap:1.6rem; }
  .modules-v2-row-reverse .modules-v2-media { order:0; }
  .modules-v2-list { gap:3rem; }
  .ai-v2-principles { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 575.98px) {
  .cycle-v2-tabs { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .cycle-v2-tab { padding:.7rem .8rem; }
  .ai-v2-principles { grid-template-columns:minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .prompt-demo-caret { animation:none; }
  .cycle-v2-tab { transition:none; }
  .cycle-v2-tab:hover { transform:none; }
}

/* Tela sobreposta à esquerda (cobre a árvore, deixa o conteúdo principal à mostra) */
.modules-v2-media-left > .modules-v2-screen:first-child { margin-left:auto; }
.modules-v2-media-left > .modules-v2-screen-secondary { right:auto; left:0; }

/* Roda de ferramentas de Automação & IA (SVG) sobreposta à tela */
.modules-v2-media-wheel { padding-bottom:10%; }
.modules-v2-media-wheel > .modules-v2-screen:first-child { width:86%; }
.modules-v2-wheel { position:absolute; right:0; bottom:0; width:40%; filter:drop-shadow(0 18px 30px rgba(10,35,57,.28)); }
.automation-wheel { display:block; width:100%; height:auto; font-family:inherit; }
.automation-wheel-label { fill:#fff; font-size:11.5px; font-weight:800; }
.automation-wheel-center { fill:#0a2945; font-size:21px; font-weight:900; letter-spacing:-.02em; }
@media (max-width: 575.98px) {
  .modules-v2-wheel { width:48%; }
}

/* Três telas: principal centralizada, uma sobreposta à esquerda e outra à direita */
.modules-v2-media-trio { padding-bottom:22%; }
.modules-v2-media-trio > .modules-v2-screen:first-child { width:82%; margin:0 auto; }
.modules-v2-media-trio > .modules-v2-screen-secondary { left:0; right:auto; width:50%; }
.modules-v2-media-trio > .modules-v2-screen-tertiary { left:auto; right:0; bottom:6%; width:42%; z-index:1; }

/* Roda da Plataforma ExultarOne (seção Solução) */
.integrated-v2-wheel { position:relative; display:flex; align-items:center; justify-content:center; min-width:0; }
.integrated-v2-wheel::before { content:""; position:absolute; inset:8%; border-radius:50%; background:radial-gradient(circle, rgba(255,107,26,.18), rgba(35,135,206,.10) 55%, transparent 72%); filter:blur(22px); pointer-events:none; }
.platform-wheel { position:relative; display:block; width:100%; max-width:560px; height:auto; font-family:inherit; filter:drop-shadow(0 24px 44px rgba(0,0,0,.35)); }
.platform-wheel-seg { transition:opacity .2s ease; }
.platform-wheel-name { fill:#fff; font-size:13px; font-weight:850; }
.platform-wheel-sub { fill:rgba(255,255,255,.88); font-size:8.6px; font-weight:600; }
.platform-wheel-brand { font-size:25px; font-weight:900; letter-spacing:-.03em; }
.platform-wheel-brand-a { fill:#0a2945; }
.platform-wheel-brand-b { fill:#ff6b1a; }
.platform-wheel-center { fill:#0a2945; font-size:8.4px; font-weight:800; letter-spacing:.02em; text-transform:uppercase; }
@media (max-width: 991.98px) {
  .platform-wheel { max-width:480px; }
}

/* Produtos: 10 áreas da plataforma (cores da roda da Solução) */
.products-v3-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:1rem; max-width:1320px; margin:0 auto; }
.products-v3-card { position:relative; display:flex; flex-direction:column; background:#fff; border:1px solid var(--hv2-border); border-radius:.85rem; padding:1.35rem 1.15rem 1.15rem; overflow:hidden; box-shadow:0 10px 26px rgba(12,42,68,.06); transition:transform .2s ease, box-shadow .2s ease; }
.products-v3-card::before { content:""; position:absolute; left:0; right:0; top:0; height:5px; background:var(--area); }
.products-v3-card:hover { transform:translateY(-3px); box-shadow:0 16px 34px rgba(12,42,68,.12); }
.products-v3-head { display:flex; align-items:center; gap:.65rem; margin-bottom:.6rem; }
.products-v3-icon { flex:0 0 auto; width:2.3rem; height:2.3rem; border-radius:.55rem; background:var(--area); display:flex; align-items:center; justify-content:center; }
.products-v3-icon svg { width:1.3rem; height:1.3rem; fill:none; stroke:#fff; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.products-v3-head h3 { margin:0; font-size:1rem; font-weight:900; line-height:1.2; color:var(--hv2-ink); }
.products-v3-promise { color:var(--hv2-muted); font-size:.86rem; line-height:1.45; margin:0 0 .75rem; }
.products-v3-items { list-style:none; margin:0 0 1rem; padding:0; display:grid; gap:.3rem; }
.products-v3-items li { position:relative; padding-left:.9rem; font-size:.8rem; line-height:1.4; color:var(--hv2-ink); }
.products-v3-items li::before { content:""; position:absolute; left:.1rem; top:.5em; width:.36rem; height:.36rem; border-radius:50%; background:var(--area); }
.products-v3-link { margin-top:auto; color:var(--area-text); font-size:.84rem; font-weight:850; text-decoration:none; }
.products-v3-link:hover { text-decoration:underline; }
.products-v3-link:focus-visible { outline:3px solid rgba(255,107,26,.45); outline-offset:3px; border-radius:.25rem; }
@media (max-width: 1199.98px) { .products-v3-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width: 767.98px) { .products-v3-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width: 479.98px) { .products-v3-grid { grid-template-columns:minmax(0,1fr); } }
@media (prefers-reduced-motion: reduce) { .products-v3-card { transition:none; } .products-v3-card:hover { transform:none; } }
.products-v3-shared { max-width:860px; margin:1.8rem auto 0; text-align:center; color:var(--hv2-muted); font-size:.9rem; line-height:1.6; }
.products-v3-shared strong { color:var(--hv2-ink); font-weight:850; }

/* Desafio: dores de quem lidera + "Como resolvemos" */
.fragmentation-v2-card { display:flex; flex-direction:column; min-height:0; }
.fragmentation-v2-card h3 { max-width:200px; font-size:1.05rem; line-height:1.18; }
.fragmentation-v2-card p { max-width:210px; }
.fragmentation-v2-card p.fragmentation-v2-answer { margin-top:auto; padding-top:1rem; max-width:none; font-size:.8rem; line-height:1.45; color:var(--hv2-ink); border-top:1px dashed #dce5ed; margin-bottom:0; }
.fragmentation-v2-card p.fragmentation-v2-answer strong { display:block; color:var(--frag); font-size:.7rem; letter-spacing:.08em; text-transform:uppercase; margin-bottom:.25rem; }
.fragmentation-v2-card > p:not(.fragmentation-v2-answer) { margin-bottom:1rem; }

/* Desafio com 6 dores: grade 3 × 2 e cores na ordem dos ícones */
.fragmentation-v2-grid { grid-template-columns:repeat(3,minmax(0,1fr)); max-width:1080px; }
.fragmentation-v2-card-1 { --frag:#0b4a8f; --frag-soft:#edf5ff; }
.fragmentation-v2-card-2 { --frag:#c81e3a; --frag-soft:#fdecef; }
.fragmentation-v2-card-3 { --frag:#078b9a; --frag-soft:#eafafb; }
.fragmentation-v2-card-4 { --frag:#4d7d20; --frag-soft:#f0f7e9; }
.fragmentation-v2-card-5 { --frag:#ff5f0a; --frag-soft:#fff2ea; }
.fragmentation-v2-card-6 { --frag:#6b2ba1; --frag-soft:#f5edfb; }
.fragmentation-v2-card h3, .fragmentation-v2-card p { max-width:270px; }
.fragmentation-v2-card:nth-child(3n)::after { display:none; }
@media (max-width: 991.98px) {
  .fragmentation-v2-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .fragmentation-v2-card::after { display:none !important; }
}
@media (max-width: 575.98px) {
  .fragmentation-v2-grid { grid-template-columns:minmax(0,1fr); }
}

/* Hero: título mais compacto (o texto ficou mais longo com "projetos") */
@media (min-width: 1200px) {
  .hero-v2-copy h1 { font-size:clamp(2.55rem, 2.75vw, 3.3rem); line-height:1.04; letter-spacing:-.045em; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-v2-copy h1 { font-size:2.3rem; line-height:1.05; }
}
@media (max-width: 575.98px) {
  .hero-v2-copy h1 { font-size:clamp(1.8rem, 7.6vw, 2.25rem); line-height:1.06; }
}

/* Link para serviços na faixa de fechamento do Desafio */
.fragmentation-v2-close p { flex:1; margin:0; }
.fragmentation-v2-services { flex:0 0 auto; display:inline-flex; align-items:center; gap:.35rem; padding:.55rem 1rem; border-radius:999px; background:var(--hv2-orange); color:#fff; font-size:.85rem; font-weight:850; text-decoration:none; white-space:nowrap; }
.fragmentation-v2-services:hover { background:#e85b10; color:#fff; }
.fragmentation-v2-services:focus-visible { outline:3px solid rgba(255,107,26,.45); outline-offset:3px; }
@media (max-width: 767.98px) { .fragmentation-v2-close { flex-wrap:wrap; } .fragmentation-v2-services { margin-left:auto; } }
