/* Banco Atlas — página Investir (Pilares Atlas) */

.pg--investir [hidden] { display: none !important; }

/* ------------------------------------------------------------ topo */
.ivh { padding-bottom: clamp(56px, 6vw, 96px); }
.ivh .ttl { font-size: clamp(44px, 5.3vw, 84px); }
.ivh__tag { display: inline-flex; align-items: center; gap: 10px; color: var(--d-muted); }
.ivh__tag i { width: 8px; height: 8px; border-radius: 50%; background: #5d6068; }
.ivh__tag i[data-estado="aberto"] { background: var(--ok); box-shadow: 0 0 0 0 rgba(24, 160, 88, .6); animation: ivPulso 2.2s infinite; }
.ivh__tag i[data-estado="breve"] { background: #d8a73a; }
@keyframes ivPulso { 0% { box-shadow: 0 0 0 0 rgba(24, 160, 88, .55); } 70% { box-shadow: 0 0 0 10px rgba(24, 160, 88, 0); } 100% { box-shadow: 0 0 0 0 rgba(24, 160, 88, 0); } }
.ivh .phero__stats b { font-variant-numeric: tabular-nums; }

.ivh__visual { min-height: 560px; }
.colunata { width: min(100%, 520px); height: auto; overflow: visible; }
.colunata__piso { stroke: rgba(255, 255, 255, .18); stroke-width: 1; }
.colunata__halo { opacity: 0; transition: opacity 2s var(--ease) 2.2s; }
.is-ready .colunata__halo { opacity: 1; animation: ivHalo 6s ease-in-out 4s infinite; }
@keyframes ivHalo { 50% { opacity: .55; } }

.pilar { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); opacity: 0; }
.pilar path { fill: none; stroke: rgba(11, 12, 14, .22); stroke-width: 1.2; }
.is-ready .pilar { transform: none; opacity: 1; transition: transform 1.5s var(--ease) calc(.55s + var(--k) * .14s), opacity .4s calc(.55s + var(--k) * .14s); }

.colunata__viga { transform: translateY(-90px); opacity: 0; }
.is-ready .colunata__viga { transform: none; opacity: 1; transition: transform 1.2s cubic-bezier(.3, 1.4, .5, 1) 1.45s, opacity .5s 1.45s; }

.colunata__marca path { fill: rgba(255, 255, 255, 0); stroke: #fff; stroke-width: 1.1; stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-ready .colunata__marca path { stroke-dashoffset: 0; fill: rgba(255, 255, 255, .96); transition: stroke-dashoffset 1.6s var(--ease) 2s, fill 1s ease 3s; }
.is-ready .colunata__marca path + path { transition-delay: 2.15s, 3.15s; }

.colunata__gotas circle { fill: #fff; opacity: 0; }
.is-ready .colunata__gotas circle { animation: ivGota 4.2s cubic-bezier(.3, .6, .4, 1) infinite; animation-delay: calc(3.2s + var(--k) * .52s); }
@keyframes ivGota {
  0% { opacity: 0; transform: translate(0, 0) scale(.6); }
  15% { opacity: .95; }
  70% { opacity: .5; }
  100% { opacity: 0; transform: translate(var(--x), -118px) scale(1.15); }
}

.ivchip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 18px;
  background: rgba(24, 25, 29, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--d-line-2), 0 30px 60px -30px rgba(0, 0, 0, .8);
  opacity: 0; transform: translateY(18px) scale(.96); }
.ivchip i { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; background: #fff; color: var(--ink); }
.ivchip i svg { width: 18px; height: 18px; }
.ivchip b { display: block; font-size: 14px; font-weight: 500; color: #fff; }
.ivchip small { font-size: 12px; color: var(--d-muted); }
.ivchip--a { left: -4%; bottom: 17%; }
.ivchip--b { right: -2%; top: 9%; }
.is-ready .ivchip { opacity: 1; transform: none; transition: opacity 1s var(--ease) 2.6s, transform 1.2s var(--ease) 2.6s; animation: ivFlutua 7s ease-in-out 4s infinite; }
.is-ready .ivchip--b { transition-delay: 3s; animation-delay: 5s; }
@keyframes ivFlutua { 50% { translate: 0 -8px; } }

/* ------------------------------------------------------------ como funciona */
.ivsteps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ivstep { position: relative; overflow: hidden; padding: clamp(26px, 3vw, 38px); border-radius: 30px; background: var(--mist); }
.ivstep__n { position: absolute; right: 24px; top: 18px; font: 500 64px/1 var(--font); letter-spacing: -.06em; color: rgba(11, 12, 14, .07); }
.ivstep__ic { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 56px; border-radius: 16px; background: var(--ink); color: #fff; }
.ivstep__ic svg { width: 22px; height: 22px; }
.ivstep h3 { margin-bottom: 10px; font-size: 22px; font-weight: 500; letter-spacing: -.03em; }
.ivstep p { font-size: 15.5px; color: var(--muted); }
.ivfim { display: flex; align-items: center; gap: 18px; margin-top: 16px; padding: 22px 28px; border-radius: 24px; box-shadow: inset 0 0 0 1px var(--line); }
.ivfim svg { width: 24px; height: 24px; flex: none; }
.ivfim p { font-size: 15.5px; color: var(--muted); }
.ivfim b { color: var(--ink); font-weight: 500; }

/* ------------------------------------------------------------ simulador */
.ivprazos { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; margin: 8px 0 22px; }
.ivprazo { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px; border-radius: 16px; background: var(--mist); text-align: left; transition: background .3s, color .3s, box-shadow .3s, transform .4s var(--ease); }
.ivprazo b { font-size: 16px; font-weight: 500; letter-spacing: -.02em; }
.ivprazo small { font-size: 12.5px; color: var(--muted); transition: color .3s; }
.ivprazo:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.ivprazo.is-on { background: var(--ink); color: #fff; box-shadow: 0 14px 30px -16px rgba(11, 12, 14, .6); transform: translateY(-2px); }
.ivprazo.is-on small { color: var(--d-muted); }
.ivswitch { display: flex; align-items: flex-start; gap: 14px; margin-top: auto; padding: 16px; border-radius: 16px; background: var(--mist); cursor: pointer; }
.ivswitch input { position: absolute; opacity: 0; pointer-events: none; }
.ivswitch__ui { position: relative; width: 44px; height: 26px; flex: none; border-radius: 999px; background: var(--mist-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .3s; }
.ivswitch__ui::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(11, 12, 14, .25); transition: transform .45s var(--ease); }
.ivswitch input:checked + .ivswitch__ui { background: var(--ink); }
.ivswitch input:checked + .ivswitch__ui::after { transform: translateX(18px); }
.ivswitch input:focus-visible + .ivswitch__ui { outline: 2px solid var(--ink); outline-offset: 2px; }
.ivswitch b { display: block; font-size: 14.5px; font-weight: 500; }
.ivswitch small { font-size: 12.5px; color: var(--muted); }

.ivbars { display: grid; grid-template-columns: repeat(var(--n, 12), minmax(0, 1fr)); align-items: end; gap: 3px; height: 104px; margin-top: 26px; }
.ivbars i { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.ivbars i::before { content: ''; display: block; height: var(--h, 4%); min-height: 3px; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #fff, rgba(255, 255, 255, .55));
  transform-origin: 50% 100%; animation: barIn .8s var(--ease) both; animation-delay: calc(var(--k) * 18ms); transition: height .6s var(--ease); }
.ivbars i.is-fim::before { background: linear-gradient(180deg, #8ff0b8, var(--ok)); }
.ivbars__leg { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 12px; color: var(--d-muted); }
.ivout .simx__grid { margin-top: 22px; }
.ivout .simx__big { font-size: clamp(50px, 5.6vw, 78px); }

.ivsim[data-estado="breve"] { grid-template-columns: minmax(0, 1fr); }
.ivbreve { display: flex; flex-direction: column; align-items: center; max-width: 720px; margin: 0 auto; padding: clamp(36px, 5vw, 64px); border-radius: 32px; background: #fff; text-align: center; box-shadow: 0 40px 80px -50px rgba(11, 12, 14, .35); }
.ivbreve__ic { width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 18px; background: var(--ink); color: #fff; }
.ivbreve__ic svg { width: 24px; height: 24px; }
.ivbreve h3 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 500; letter-spacing: -.04em; }
.ivbreve p { max-width: 520px; margin: 14px 0 28px; color: var(--muted); }

/* ------------------------------------------------------------ travado x livre */
.ivduo { display: grid; grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr); align-items: center; }
.ivduo__c { padding: clamp(28px, 3.4vw, 44px); border-radius: 32px; }
.ivduo__c--trav { color: #fff; background: radial-gradient(120% 90% at 0% 0%, #2a2c31 0%, #0b0c0e 60%); box-shadow: 0 50px 100px -50px rgba(11, 12, 14, .6); }
.ivduo__c--livre { background: var(--mist); }
.ivduo__ic { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 40px; border-radius: 17px; background: #fff; color: var(--ink); }
.ivduo__c--livre .ivduo__ic { background: var(--ink); color: #fff; }
.ivduo__ic svg { width: 22px; height: 22px; }
.ivduo__c small { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.ivduo__c--trav small { color: var(--d-muted); }
.ivduo__c h3 { margin: 6px 0 12px; font-size: clamp(26px, 2.6vw, 34px); font-weight: 500; letter-spacing: -.04em; }
.ivduo__c p { font-size: 15.5px; color: var(--muted); }
.ivduo__c--trav p { color: var(--d-muted); }
.ivduo__c ul { margin-top: 26px; }
.ivduo__c li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.ivduo__c--trav li { border-color: var(--d-line); color: #d6d7db; }
.ivduo__c li::before { content: ''; width: 6px; height: 6px; flex: none; border-radius: 50%; background: currentColor; opacity: .55; }
.ivduo__flow { position: relative; height: 2px; margin: 0 10px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }
.ivduo__flow i { position: absolute; left: 0; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 12px rgba(24, 160, 88, .7); opacity: 0; }
.is-in .ivduo__flow i, .ivduo.is-in .ivduo__flow i { animation: ivFluxo 2.6s cubic-bezier(.5, 0, .5, 1) infinite; animation-delay: calc(var(--k) * .52s); }
@keyframes ivFluxo { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 10px); opacity: 0; } }

/* ------------------------------------------------------------ para onde vai o dinheiro */
.ivciclo { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr) 56px minmax(0, 1fr) 56px minmax(0, 1fr); align-items: start; }
.ivciclo__p { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ivciclo__p i { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 17px; background: #141518; color: #fff; box-shadow: inset 0 0 0 1px var(--d-line-2); }
.ivciclo__p:last-child i { background: #fff; color: var(--ink); }
.ivciclo__p i svg { width: 22px; height: 22px; }
.ivciclo__p b { font-size: 17px; font-weight: 500; letter-spacing: -.02em; }
.ivciclo__p span { font-size: 14px; color: var(--d-muted); }
.ivciclo__seta { position: relative; height: 1px; margin-top: 26px; background: var(--d-line-2); overflow: hidden; }
.ivciclo__seta i { position: absolute; top: 0; left: -40%; width: 40%; height: 1px; background: linear-gradient(90deg, transparent, #fff, transparent); }
.ivciclo.is-in .ivciclo__seta i { animation: ivSeta 2.4s ease-in-out infinite; }
.ivciclo.is-in span.ivciclo__seta:nth-of-type(2) i { animation-delay: .5s; }
.ivciclo.is-in span.ivciclo__seta:nth-of-type(3) i { animation-delay: 1s; }
@keyframes ivSeta { to { left: 100%; } }

.ivmapa { margin-top: clamp(56px, 6vw, 88px); }
.ivmapa__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-bottom: 18px; }
.ivmapa__top .live { color: var(--d-muted); }
.ivmapa__top small { font-size: 12.5px; color: var(--d-muted); }
.ivmapa__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; border-radius: 28px; background: var(--d-line); }
.ivmapa__grid div { padding: clamp(22px, 2.4vw, 30px); background: #111214; }
.ivmapa__grid small { display: block; min-height: 2.6em; font-size: 13px; line-height: 1.3; color: var(--d-muted); }
.ivmapa__grid b { display: block; margin-top: 10px; font-size: clamp(24px, 2.4vw, 34px); font-weight: 500; letter-spacing: -.045em; font-variant-numeric: tabular-nums; color: #fff; }
.ivmapa .fine { color: #7b7e86; }

/* ------------------------------------------------------------ regras e riscos */
.ivregras { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.ivrisco { margin-top: 36px; background: #fff6e5; }
.ivrisco svg { color: #a66b00; }
.ivfaq details { border-top: 1px solid var(--line); }
.ivfaq details:last-child { border-bottom: 1px solid var(--line); }
.ivfaq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: 17px; font-weight: 500; letter-spacing: -.015em; cursor: pointer; list-style: none; }
.ivfaq summary::-webkit-details-marker { display: none; }
.ivfaq summary svg { width: 18px; height: 18px; flex: none; color: var(--muted); transition: transform .5s var(--ease); }
.ivfaq details[open] summary svg { transform: rotate(45deg); }
.ivfaq details p { padding: 0 40px 22px 0; font-size: 15.5px; color: var(--muted); }
.ivfaq details[open] p { animation: ivAbre .6s var(--ease); }
@keyframes ivAbre { from { opacity: 0; transform: translateY(-6px); } }

/* ------------------------------------------------------------ telas menores */
@media (max-width: 1100px) {
  .ivmapa__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ivciclo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px 24px; }
  .ivciclo__seta { display: none; }
}
@media (max-width: 960px) {
  .ivh__visual { min-height: 460px; }
  .ivsteps { grid-template-columns: minmax(0, 1fr); }
  .ivstep__ic { margin-bottom: 28px; }
  .ivduo { grid-template-columns: minmax(0, 1fr); }
  .ivduo__flow { width: 2px; height: 64px; margin: 0 auto; background: repeating-linear-gradient(180deg, var(--line-2) 0 6px, transparent 6px 12px); }
  .ivduo__flow i { left: 50%; top: 0; margin: 0 0 0 -5px; }
  .is-in .ivduo__flow i, .ivduo.is-in .ivduo__flow i { animation-name: ivFluxoV; }
  .ivregras { grid-template-columns: minmax(0, 1fr); }
}
@keyframes ivFluxoV { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 10px); opacity: 0; } }
@media (max-width: 620px) {
  .ivh__visual { min-height: 0; margin: 8px -8px 0; }
  .ivchip { padding: 9px 14px 9px 9px; border-radius: 15px; }
  .ivchip i { width: 32px; height: 32px; border-radius: 10px; }
  .ivchip b { font-size: 13px; }
  .ivchip small { font-size: 11px; }
  .ivchip--a { left: 0; bottom: 4%; }
  .ivchip--b { right: 0; top: 0; }
  .ivh .phero__stats { gap: 22px 28px; }
  .ivh .phero__stats b { font-size: 26px; }
  .ivfim { align-items: flex-start; padding: 20px; }
  .ivciclo { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .ivciclo__p { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 16px; row-gap: 2px; }
  .ivciclo__p i { grid-row: span 2; margin: 0; }
  .ivmapa__grid { border-radius: 22px; }
  .ivmapa__grid div { padding: 18px; }
  .ivmapa__grid small { font-size: 12px; }
  .ivfaq summary { font-size: 16px; padding: 18px 0; }
  .ivfaq details p { padding-right: 0; }
  .ivbars { height: 84px; gap: 2px; }
  .ivprazos { grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)); }
  .ivprazo { padding: 12px; }
  .ivprazo small { font-size: 11.5px; }
}
